예제 #1
0
파일: index.php 프로젝트: hisapi/his
     }
     // END WHILE (WAIT FOR JOB TO FINISH)
     $new_job_id->build();
     $gather_from = "obj_response";
     if ($mode_xml || $mode_cxml) {
         $gather_from = "obj_output";
     }
     $original_html = $new_job_id->{$gather_from}->val;
     $new_job_id->{$gather_from}->build();
     $remote_content_collected = $new_job_id->{$gather_from}->body;
 }
 // END IF (WAIT MODE)
 // THIS IS NO-WAIT
 if ($refresh_cache && $mode_edit && intval($q->int_wait) == 0) {
     $latest_content = getTranslation("time behavior fast", $settings);
     $q->update(array("str_cache_latest" => $latest_content));
     $q->build();
     $original_html = "";
     $remote_content_collected = $latest_content;
 }
 if ($mode_cxml || $mode_xml) {
     if (intval($q->int_wait) == 1 && !$trigger_wait_message) {
         // cxml mode => give user direct raw download
         if (!$mode_server && !$mode_output) {
             header("Location: {$original_html}");
         }
         exit;
     } else {
         if ($trigger_wait_message) {
             // cxml mode, with no waiting => print submission message
             if (!$mode_server && !$mode_output) {
예제 #2
0
}
if (isset($_GET['action'])) {
    if ($_GET['action'] == 'update-hf-retry') {
        $the_rt = "0";
        if (isset($_POST['int_retry_count'])) {
            $the_rt = intval($_POST['int_retry_count']);
            if ($the_rt > 999) {
                $the_rt = 999;
            }
        }
        $the_hf = new hf_id_user();
        $the_hf->get_from_hashrange($u->id_user, $qn);
        if ($the_hf->id != "undefined") {
            $new_props = array();
            $new_props['int_retry_count'] = $the_rt;
            $the_hf->update($new_props);
        }
    }
}
if (isset($_GET['action'])) {
    if ($_GET['action'] == 'delete-hf-terminate-name') {
        if (isset($_POST['str_name'])) {
            $props = array();
            $props['id_hf'] = $_POST['id_hf'];
            $props['id'] = $_POST['id'];
            $props['str_name'] = $_POST['str_name'];
            $the_kill = new hf_kill();
            $the_kill->get_from_hashrange($props['id_hf'], $props['id']);
            if ($the_kill->id != 'undefined') {
                $the_kill->delete();
            }