pull/109/head
midoks 5 years ago
parent dd93a30cfc
commit fe2238ab7e
  1. 2
      plugins/php/conf/app_start.php
  2. 1
      plugins/php/index.py

@ -30,7 +30,7 @@ function app_xhprof_end() {
$run_id = $xhprof_runs->save_run($xhprof_data, 'xhprof_foo'); $run_id = $xhprof_runs->save_run($xhprof_data, 'xhprof_foo');
$profiler_url = sprintf('http://0.0.0.0:5858/index.php?run=%s&source=xhprof_foo', $run_id); $profiler_url = sprintf('http://{$LOCAL_IP}:5858/index.php?run=%s&source=xhprof_foo', $run_id);
echo "<script language='javascript'>window.open('{$profiler_url}')</script>"; echo "<script language='javascript'>window.open('{$profiler_url}')</script>";
// echo '<a href="' . $profiler_url . '" target="_blank">Profiler output</a>'; // echo '<a href="' . $profiler_url . '" target="_blank">Profiler output</a>';

@ -82,6 +82,7 @@ def contentReplace(content, version):
content = content.replace('{$ROOT_PATH}', mw.getRootDir()) content = content.replace('{$ROOT_PATH}', mw.getRootDir())
content = content.replace('{$SERVER_PATH}', service_path) content = content.replace('{$SERVER_PATH}', service_path)
content = content.replace('{$PHP_VERSION}', version) content = content.replace('{$PHP_VERSION}', version)
content = content.replace('{$LOCAL_IP}', mw.getLocalIp())
if mw.isAppleSystem(): if mw.isAppleSystem():
# user = mw.execShell( # user = mw.execShell(

Loading…
Cancel
Save