<?php
include_once "conn.php";

$n=isset($_GET['n'])?$_GET['n']:exit('No Net!');
$nurl=str_replace('qqd.cron.php','','http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']);
$look=$_GET['get']?'&get=1':'';
$now=date("Y-m-d-H:i:s");
$result = mysql_query("SELECT qid FROM {$tableqz}qqs where isqqd>0  and (nextqqd<'$now' or nextqqd IS NULL) and sidzt=0");
while($row = mysql_fetch_array($result)){ 
	$urls[]="{$nurl}qqd.run.php?cron=".$_GET['cron']."&qid={$row['qid']}{$look}";
}

if($urls){
	$get=duo_curl($urls);
}
if($_GET['get']==1){
	print_r($get);
}
exit('Ok!');

