if (!empty($_POST['ping']) && preg_match('/^[-_a-z0-9\.\s]+$/i', $_POST['ping'])){ $ping_text = $_POST['ping']; $ping_page = !empty($_POST['page']) && preg_match('/^[-_a-z0-9\/]+$/i', $_POST['page']) ? $_POST['page'] : ''; // If the ping page is not empty and we're logged in if (!empty($ping_page) && $this_userid != MMRPG_SETTINGS_GUEST_ID){ // Update the database with the user's last page so we can keep track rpg_website::session_update($ping_page); //echo 'ping_page='.$ping_page."\n"; } // Exit and print the ping relay exit($ping_text); } // Otherwise, if this is a regular request and we're logged in elseif ($this_userid != MMRPG_SETTINGS_GUEST_ID){ // Update the database with the user's last page so we can keep track rpg_website::session_update($this_current_uri); } } // Clear the prototype temp session var $_SESSION['PROTOTYPE_TEMP'] = array(); // Define the default SEO and markup variables $this_seo_robots = MMRPG_CONFIG_IS_LIVE ? 'index,follow' : 'noindex,nofollow'; $this_seo_title = 'Mega Man RPG World | Last Updated '.preg_replace('#([0-9]{4})([0-9]{2})([0-9]{2})-([0-9]{2})#', '$1/$2/$3', MMRPG_CONFIG_CACHE_DATE); $this_seo_keywords = 'megaman,mega man,protoman,proto man,bass,rpg,prototype,dr.light,dr.wily,dr.cossack,battle,browser,pbbg,ipad,firefox,chrome,safari'; $this_seo_description = 'Battle through more than thirty robot masters in classic RPG style with either Dr. Light and Mega Man, Dr. Wily and Bass, or Dr. Cossack and Proto Man! Mega Man RPG World is a browser-based fangame that combines the mechanics of both the Pokémon and Mega Man series of video games into one strange and wonderful little time waster.'; $this_markup_header = ''; $this_markup_counter = ''; $this_markup_body = '';