return; } echo "printing $url"; require_once "CL_job.php"; $jobArgs=array('userID'=>$userID, 'jobType'=>'pdf', 'priority'=>(L_auth::isModerator($userID)?1:0), 'timeCreated'=>gmdate('Y-m-d H:i:s'), 'status'=>0, 'param1'=>$url, 'param2'=>$userEmail, ); $previousJobTime=leoJob::searchJob($jobArgs); if ($previousJobTime) { echo "You have ordered the same PDF on GMT $previousJobTime<BR>"; } else { leoJob::addJob($jobArgs); echo "PDF order has been send<BR><BR>Will send email to $userEmail when the pdf is created<BR><BR>"; } // $res=file_get_contents($url); // echo "#<pre>".$res."</pre>#"; echo "<BR><BR><a href='javascript:closePdfDiv();'>OK</a><br>";