コード例 #1
0
    $endTime = $this->TT->getDifferenceToStarttime();
    t3lib_div::devLog('[INFO/PERFORMANCE] html2ps is starting conversion: ' . ($endTime - $this->startTime) . ' ms', $this->extKey, 0);
}
// 110723, dwildt +
// Start the conversion
$time = time();
if (get_var('process_mode', $_REQUEST) == 'batch') {
    $batch = get_var('batch', $_REQUEST);
    for ($i = 0; $i < count($batch); $i++) {
        if (trim($batch[$i]) != "") {
            if (!preg_match("/^https?:/", $batch[$i])) {
                $batch[$i] = "http://" . $batch[$i];
            }
        }
    }
    $status = $pipeline->process_batch($batch, $g_media);
} else {
    $status = $pipeline->process($g_baseurl, $g_media);
}
// 110723, dwildt +
if ($this->b_drs_perform) {
    $endTime = $this->TT->getDifferenceToStarttime();
    t3lib_div::devLog('[INFO/PERFORMANCE] html2ps has finished the conversion: ' . ($endTime - $this->startTime) . ' ms', $this->extKey, 0);
}
// 110723, dwildt +
error_log(sprintf("Processing of '%s' completed in %u seconds", $g_baseurl, time() - $time));
if ($status == null) {
    print $pipeline->error_message();
    error_log("Error in conversion pipeline");
    die;
}