/bin/sh: -c include_once 'config.php'; $czas = (time()-3600); $q = $db->query("SELECT * FROM `cau` WHERE `time` <'{$czas}' AND `online`=1 AND `spy`=0 and kanal = 'support' AND `numer`!='{$from}'"); $txte = ''; $tt = 0; while($r = $q->fetch_assoc()) { $txte = substr($r['nick'], 0, 200).'>'; $t .= ''.$main->nick($r['nick'], $r['staff']); ""; $a .= ''.$r['numer']. ""; $tt++; } $q = $db->query("select `numer` from `cau` where `online`= '1' AND `kanal` = 'support'"); while($n = $q->fetch_assoc()) $odbi[] = $n['numer']; $q = $db->query("UPDATE `cau` SET `online`=0 WHERE `time`<'{$czas}' AND `online`=1 AND `numer`!='{$from}' AND `spy`=0 and kanal = 'support' "); $czas_ki = time(); if($tt > 0){ $main->cmdd(" Automatycznie wyrzucono: {$t} ", $odbi); }