mirror of
https://github.com/unraid/webgui.git
synced 2026-03-10 21:10:01 -05:00
Replace fixed path with absolute path in docroot variable
This commit is contained in:
@@ -12,7 +12,9 @@
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
$notify = "/usr/local/emhttp/webGui/scripts/notify";
|
||||
$docroot = $docroot ?: @$_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
$notify = "$docroot/webGui/scripts/notify";
|
||||
|
||||
switch ($_POST['cmd']) {
|
||||
case 'init':
|
||||
shell_exec("$notify init");
|
||||
@@ -45,7 +47,7 @@ case 'get':
|
||||
echo shell_exec("$notify get");
|
||||
break;
|
||||
case 'archive':
|
||||
shell_exec("$notify archive '{$_POST['file']}'");
|
||||
shell_exec("$notify archive \"{$_POST['file']}\"");
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user