| 128 |
if (!$player) openError("Unable to read player.",lastURI()); |
if (!$player) openError("Unable to read player.",lastURI()); |
| 129 |
|
|
| 130 |
# execute command |
# execute command |
| 131 |
if (!readConfig("common_isdemo")) exec("sudo -u music /home/music/bin/gdkeypad.pl {$player['ipaddr']} {$player['id']} 0 {$_GET['command']} > /dev/null"); |
//$command = "sudo -u music /home/music/bin/gdkeypad.pl {$player['ipaddr']} {$player['id']} 0 {$_GET['command']} > /dev/null"; |
| 132 |
|
$command = "sudo -u music -H sh -c \". ~/.bashrc; /home/music/bin/gdkeypad.pl {$player['ipaddr']} {$player['id']} 0 {$_GET['command']} > /dev/null\""; |
| 133 |
|
if ($_GET['debug']) print "$command<br/>"; |
| 134 |
|
if (!readConfig("common_isdemo")) exec($command); |
| 135 |
|
|
| 136 |
# relocate |
# relocate |
| 137 |
if ($_GET['isreal']) header("Location: index.php?mode=player&sid={$_GET['sid']}"); |
if ($_GET['isreal']) header("Location: index.php?mode=player&sid={$_GET['sid']}"); |
| 236 |
$tpl->display("index.tpl"); |
$tpl->display("index.tpl"); |
| 237 |
} |
} |
| 238 |
|
|
|
?> |
|
| 239 |
|
?> |