Fix path to scripts folder now that ajax PHP is in a subfolder

This commit is contained in:
Junior 2024-06-01 12:28:31 -04:00
parent 0f4cdd1b35
commit 07c4dd7d4d
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ $query = "SELECT songid FROM " . RECENTSTABLE . " ORDER BY timeplayed DESC limit
$sth = $globaldbh->prepare($query); $sth = $globaldbh->prepare($query);
$sth->execute(); $sth->execute();
$data['volume'] = getSystemVolume(); $data['volume'] = getSystemVolume();
system("HOME=" . WEBUSERHOMEDIR . " && scripts/homeaudio_togglemute.pl -show", $retval); system("HOME=" . WEBUSERHOMEDIR . " && ../scripts/homeaudio_togglemute.pl -show", $retval);
$data['muted'] = ($retval == 0) ? false : true; $data['muted'] = ($retval == 0) ? false : true;
$data['songplaying'] = ""; $data['songplaying'] = "";
$data['songlist'] = ""; $data['songlist'] = "";

View File

@ -3,9 +3,9 @@
require '../header.php'; require '../header.php';
if ( isset($_REQUEST['show']) && ($_REQUEST['show'] == 'show') ) { if ( isset($_REQUEST['show']) && ($_REQUEST['show'] == 'show') ) {
system("HOME=" . WEBUSERHOMEDIR . " && scripts/homeaudio_togglemute.pl -show", $retval); system("HOME=" . WEBUSERHOMEDIR . " && ../scripts/homeaudio_togglemute.pl -show", $retval);
} else { } else {
system("HOME=" . WEBUSERHOMEDIR . " && scripts/homeaudio_togglemute.pl", $retval); system("HOME=" . WEBUSERHOMEDIR . " && ../scripts/homeaudio_togglemute.pl", $retval);
} }
$data = array(); $data = array();