コード例 #1
0
ファイル: common.php プロジェクト: thezawad/vakuum
 private function sendBack($post_result)
 {
     if ($this->checkStop()) {
         throw new Exception('stop');
     }
     $return_url = $this->return_url;
     $public_key = $this->public_key;
     writelog('Sending back to ' . $return_url);
     writelog($post_result);
     $client = new BFL_RemoteAccess_Client($return_url, $public_key, 0);
     $client->writeRecord($post_result);
 }
コード例 #2
0
ファイル: Access.php プロジェクト: thezawad/vakuum
 public static function stopJudge($task_name, $judger)
 {
     $client = new BFL_RemoteAccess_Client($judger->getConfig()->getRemoteURL(), $judger->getConfig()->getRemoteKey(), 1);
     $client->stopJudge($task_name);
 }
コード例 #3
0
ファイル: Data.php プロジェクト: thezawad/vakuum
 public static function updateTestdata($judger_url, $public_key, $prob_name)
 {
     $client = new BFL_RemoteAccess_Client($judger_url, $public_key);
     return $client->updateTestdata($prob_name);
 }