} } return $c; } protected function peek() { $this->lookAhead = $this->get(); return $this->lookAhead; } } // -- Exceptions --------------------------------------------------------------- class JSMinException extends Exception { } /************** OUTPUT *****************/ if (count(get_script_requests()) > 0) { if (is_debug_mode()) { if (($code = get_javascript_code()) !== null) { print_headers(); echo supports_gzip_encoding() ? gzip_content($code) : $code; } } else { if (($filename = compressed_js_filename()) !== null) { if (!is_file($filename)) { save_javascript(get_javascript_code(true), $filename); } print_headers($filename); echo get_saved_javascript($filename); } } }
} } return $c; } protected function peek() { $this->lookAhead = $this->get(); return $this->lookAhead; } } // -- Exceptions --------------------------------------------------------------- class JSMinException extends Exception { } /************** OUTPUT *****************/ if (count(get_script_requests()) > 0) { if (is_debug_mode()) { if (($code = get_javascript_code()) !== null) { print_headers(); echo supports_gzip_encoding() ? gzip_content($code) : $code; } } else { if (($filename = compressed_js_filename()) !== null) { if (!is_file($filename)) { save_javascript(get_javascript_code(true), $filename); } print_headers(); echo get_saved_javascript($filename); } } }
// Skip the headers while (!feof($domainlist)) { $line = fgets($domainlist); if (strpos($line, "\t") !== false) { break; } } $logfile = @fopen($logfile, 'w'); if (!$logfile) { exit('logfile to open log file'); } $dnslogfile = @fopen($dnslogfile, 'w'); if (!$dnslogfile) { exit('logfile to open dns log file'); } fwrite($logfile, print_headers($servers)); $count = 0; while (!feof($domainlist)) { $line = trim(fgets($domainlist)); list($index, $domain) = explode("\t", $line, 2); $count++; echo $domain . ' ' . $count . "\n"; // Do each lookup 3 times for ($i = 0; $i < 3; $i++) { $result = $domain . "\t" . $i; foreach ($servers as $server) { // This is odd, if I don't call microtime() twice, the first time around the $i = 0 loop it takes a extra ~0.3sec $start = microtime(); $start = microtime(); $record = $server->rawQuery($domain, 'A', 'IN'); $end = microtime();
$idb = "<I>"; $ide = "</I>"; } print "<A HREF=\"" . $_SERVER["SCRIPT_NAME"] . "/" . $path_array[1] . "/{$val}\">{$icb}{$idb} [{$val}]{$ice}{$ide}</A>\n"; } print "</TD></TR></TABLE>\n"; } else { print_headers($VERSION, $_SERVER["REQUEST_URI"], $_SESSION["autorefresh"], ""); print "Sorry, we aren't handling text cookie values yet!\n"; } } else { print_headers($VERSION, $_SERVER["REQUEST_URI"], $refresh, ""); print locale("VALIDOPTIONVAR", $path_array[1]) . "\n"; } } else { print_headers($VERSION, $_SERVER["REQUEST_URI"], $refresh, ""); print "<P><A HREF=\"" . $_SERVER["SCRIPT_NAME"] . "/host\">" . locale("VIEWHOSTS") . "</A>\n"; print "<P><A HREF=\"" . $_SERVER["SCRIPT_NAME"] . "/stat\">" . locale("VIEWSTATS") . "</A>\n"; } $php_end_time = time(); $php_total_time = $php_end_time - $php_start_time; debug(__FUNCTION__, "total sql time: {$total_sql_time}"); debug(__FUNCTION__, "total php time: {$php_total_time}"); print_footer($VERSION); if ($update_last) { $_SESSION["last_real"] = $_SERVER["REQUEST_URI"]; } ?> </BODY> </HTML>
die('-1'); } ?> <table id="rowtable" class="widefat post fixed" cellspacing="0"> <thead> <tr> <?php print_headers($this_table_obj); ?> </tr> </thead> <tfoot> <tr> <?php print_headers($this_table_obj); ?> </tr> </tfoot> <tbody> <?php print_rows($this_table_obj); ?> </tbody> </table> <?php /** * {@internal Missing Short Description}} *