Location: PHPKode > projects > phpSC > addons/proxy/proxy_edit.php
<div align="center"><h3>To listen to the proxyified stream, simply copy and paste the URL provided into your media player.</h3>
  <?PHP
$sql = "SELECT * FROM servers";
$result = mysql_query($sql,$conn) or die(mysql_error());
while($data = mysql_fetch_array($result)) {
if($data['status'] == 0) {
$status = "OFF";
$color = "red";
$message = "<i>Server must be on to proxify!</i>";
}
if($data['status'] == 1) {
$status = "ON";
$color = "green";
$message = _HTTP_ROOT."/external/proxy_listen.php?server=".$data['id'];
}
?>
<table width="90%" border="1">
  <tr>
    <td width="88%"><strong><?=$data['name']?></strong></td>
    <td width="12%"><center><font color="<?=$color?>"><?=$status?></font></center></td>
  </tr>
  <tr>
    <td colspan="2"><center><?PHP echo $message ?></center></td>
  </tr>
</table>
<BR />
<?PHP
}
?>

Return current item: phpSC