witam mam taki kod, i on zamiast odpalic nastepny proces to na te same miejsce wbija sie inny port a tamten zostaje wyłaczony;/

  1. <?php
  2. if ($_GET['action']=='start'){
  3. if($_GET['starts'] == '1') {
  4.  $q = "SELECT * FROM panel WHERE login='{$_SESSION["login"]}'";
  5. $r = mysql_query ($q);
  6.  
  7. $plik = @fopen("servy/{$rr['shout_port']}","wbr+");
  8. $data = (isset($_GET['starts'])?"".strtr($rr['shout_data'], $rr):'');
  9. fwrite($plik, $data);
  10. chmod ("servy/{$rr['shout_port']}", 0777);
  11. @fclose($plik);
  12.  
  13.  #  if(file_exists("servy/{$rr['shout_port']}") == false) {
  14.  #  mkdir ("servy/{$rr['shout_port']}");
  15.  #  #passthru("cp -R /etc/play/content /etc/play/{$_POST['port']}/content");
  16.  #  }
  17. $query = "UPDATE panel SET shout_on='1' WHERE login='{$_SESSION["login"]}'";
  18. $result = mysql_query ($query);
  19. addlog("Uruchomiono Serwer ShoutCast");
  20. passthru("/usr/sbin/shoutcast /opt/lsws/DEFAULT/html/servy/{$rr['shout_port']} > /dev/null &");
  21. }
  22. header("Location: index.php");
  23.  }
  24. ?>