sg = $sitemapBuilder; } private function HtmlPrintBoxHeader($id, $title) { ?>
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->GetSvnVersion() . ')'; 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 { /** @var $wpdb wpdb*/ 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->GetOptions()); 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 'Please log in as admin
'; return; } if(!$this->sg->DeleteOldFiles()) { $message = __("The old files could NOT be deleted. Please use an FTP program and delete them by yourself.","sitemap"); } else { $message = __("The old files were successfully deleted.","sitemap"); } } else if(!empty($_GET["sm_ping_all"])) { check_admin_referer('sitemap'); //Check again, just for the case that something went wrong before if(!current_user_can("administrator")) { echo 'Please log in as admin
'; return; } echo << HTML; echo "" . __('The plugin is notifying the selected search engines about your main sitemap and all sub-sitemaps. This might take a minute or two.','sitemaps') . "
"; flush(); $results = $this->sg->SendPingAll(); echo "" . __('All done!','sitemap') . "
"; echo << HTML; exit; } else if(!empty($_GET["sm_ping_main"])) { check_admin_referer('sitemap'); //Check again, just for the case that something went wrong before if(!current_user_can("administrator")) { echo 'Please log in as admin
'; return; } $this->sg->SendPing(); $message = __("Ping was executed, please see below for the result.","sitemap"); } //Print out the message to the user, if any if($message!="") { ?>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;">