sg = &$sitemapBuilder; if(floatval($wp_version) >= 2.7) { $this->mode = 27; } } function HtmlPrintBoxHeader($id, $title, $right = false) { if($this->mode == 27) { ?>
Please log in as admin
'; return; } $oldErr = error_reporting(E_ALL); $oldIni = ini_set("display_errors",1); echo 'This is the debug mode of the XML Sitemap Generator. It will show all PHP notices and warnings as well as the internal logs, messages and configuration.
'; echo 'DO NOT POST THIS INFORMATION ON PUBLIC PAGES LIKE SUPPORT FORUMS AS IT MAY CONTAIN PASSWORDS OR SECRET SERVER INFORMATION!
'; echo "WordPress ' . $GLOBALS['wp_version'] . ' with ' . ' DB ' . $GLOBALS['wp_db_version'] . ' on PHP ' . phpversion() . '
'; echo 'Plugin version: ' . $this->sg->GetVersion() . ' (' . $this->sg->_svnVersion . ')'; echo '
"; $sc = $_SERVER; unset($sc["HTTP_COOKIE"]); print_r($sc); echo ""; echo "
";
$opts = array();
if(function_exists('wp_load_alloptions')) {
$opts = wp_load_alloptions();
} else {
global $wpdb;
$os = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options");
foreach ( (array) $os as $o ) $opts[$o->option_name] = $o->option_value;
}
$popts = array();
foreach($opts as $k=>$v) {
//Try to filter out passwords etc...
if(preg_match("/pass|login|pw|secret|user|usr|key|auth|token/si",$k)) continue;
$popts[$k] = htmlspecialchars($v);
}
print_r($popts);
echo "";
echo '"; print_r($this->sg->_options); echo ""; echo '
'; var_dump($GLOBALS['wpdb']->queries); echo ''; $total = 0; foreach($GLOBALS['wpdb']->queries as $q) { $total+=$q[1]; } echo '
' . count($GLOBALS['wpdb']->queries) . ' queries in ' . round($total,2) . ' seconds.'; } else { echo '
Please edit wp-db.inc.php in wp-includes and set SAVEQUERIES to true if you want to see the queries.
'; } echo ""; print_r($status); echo ""; echo ''; echo '
DO NOT POST THIS INFORMATION ON PUBLIC PAGES LIKE SUPPORT FORUMS AS IT MAY CONTAIN PASSWORDS OR SECRET SERVER INFORMATION!
'; echo 'sg->GetRedirectLink("sitemap-donate-note"),__('Thanks for using this plugin! You\'ve installed this plugin over a month ago. If it works and you are satisfied with the results, isn\'t it worth at least a few dollar? Donations help me to continue support and development of this free software! Sure, no problem!','sitemap')); ?> " style="float:right; display:block; border:none; margin-left:10px;"> " style="float:right; display:block; border:none;">
sg->GetRedirectLink("sitemap-works-note"),__('Thanks for using this plugin! You\'ve installed this plugin some time ago. If it works and your are satisfied, why not rate it and recommend it to others? :-)','sitemap')); ?> " style="float:right; display:block; border:none;">