Replace fixed path with absolute path in docroot variable

This commit is contained in:
bergware
2016-10-24 09:30:54 +02:00
parent b7aed12d4f
commit 16dab2eafc
25 changed files with 147 additions and 85 deletions
+3 -1
View File
@@ -10,9 +10,11 @@
*/
?>
<?
$docroot = $docroot ?: @$_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
function addLog($line) { echo "<script>addLog('$line');</script>"; }
readfile("/usr/local/emhttp/logging.htm");
readfile("$docroot/logging.htm");
$var = parse_ini_file('state/var.ini');
$parsed_url = parse_url($_GET['url']);