Fix path to scripts folder now that ajax PHP is in a subfolder
This commit is contained in:
		
							parent
							
								
									0f4cdd1b35
								
							
						
					
					
						commit
						07c4dd7d4d
					
				| 
						 | 
					@ -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'] = "";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user