User-agent: * Disallow: s_cf=(!isset($_POST["sm_pages_cf"]) || !is_array($_POST["sm_pages_cf"])?array():$_POST["sm_pages_cf"]); //Array with all lastmods $pages_lm=(!isset($_POST["sm_pages_lm"]) || !is_array($_POST["sm_pages_lm"])?array():$_POST["sm_pages_lm"]); //Array where the new pages are stored $pages=array(); //Loop through all defined pages and set their properties into an object if(isset($_POST["sm_pages_mark"]) && is_array($_POST["sm_pages_mark"])) { for($i=0; $iSetUrl($pages_ur[$i]); $p->SetProprity($pages_pr[$i]); $p->SetChangeFreq($pages_cf[$i]); //Try to parse last modified, if -1 (note ===) automatic will be used (0) $lm=(!empty($pages_lm[$i])?strtotime($pages_lm[$i],time()):-1); if($lm===-1) $p->setLastMod(0); else $p->setLastMod($lm); //Add it to the array array_push($pages,$p); } } return $pages; } /** * Converts a mysql datetime value into a unix timestamp * * @param The value in the mysql datetime format * @return int The time in seconds */ function GetTimestampFromMySql($mysqlDateTime) { list($date, $hours) = split(' ', $mysqlDateTime); list($year,$month,$day) = split('-',$date); list($hour,$min,$sec) = split(':',$hours); return mktime(intval($hour), intval($min), intval($sec), intval($month), intval($day), intval($year)); } /** * Returns a link pointing to a spcific page of the authors website * * @since 3.0 * @param The page to link to * @return string The full url */ function GetRedirectLink($redir) { return trailingslashit("http://www.arnebrachhold.de/redir/" . $redir); } /** * Returns a link pointing back to the plugin page in WordPress * * @since 3.0 * @return string The full url */ function GetBackLink() { global $wp_version; $url = ''; //admin_url was added in WP 2.6.0 if(function_exists("admin_url")) $url = admin_url("options-general.php?page=" . GoogleSitemapGeneratorLoader::GetBaseName()); else $url = $_SERVER['PHP_SELF'] . "?page=" . GoogleSitemapGeneratorLoader::GetBaseName(); //Some browser cache the page... great! So lets add some no caching params depending on the WP and plugin version $url.='&sm_wpv=' . $wp_version . '&sm_pv=' . GoogleSitemapGeneratorLoader::GetVersion(); return $url; } /** * Shows the option page of the plugin. Before 3.1.1, this function was basically the UI, afterwards the UI was outsourced to another class * * @see GoogleSitemapGeneratorUI * @since 3.0 * @return bool */ function HtmlShowOptionsPage() { $ui = $this->GetUI(); if($ui) { $ui->HtmlShowOptionsPage(); return true; } return false; } /** * Includes the user interface class and intializes it * * @since 3.1.1 * @see GoogleSitemapGeneratorUI * @return GoogleSitemapGeneratorUI */ function GetUI() { global $wp_version; if($this->_ui === null) { $className='GoogleSitemapGeneratorUI'; $fileName='sitemap-ui.php'; if(!class_exists($className)) { $path = trailingslashit(dirname(__FILE__)); if(!file_exists( $path . $fileName)) return false; require_once($path. $fileName); } $this->_ui = new $className($this); } return $this->_ui; } function HtmlShowHelp() { } }
Fatal error: Class 'GoogleSitemapGenerator' not found in /home/goxray/public_html/wp-content/plugins/google-sitemap-generator/sitemap.php on line 234