case 41: include "setting_backup.php"; break; // Used for bulk delete of spider log files // Used for bulk delete of spider log files case 44: clearSpLog(); break; // Used for re-index with erase all sites // Used for re-index with erase all sites case 45: $info = '0'; $back = ''; echo "<div class='submenu cntr'>Erase & Re-index all</div>\n "; // delete temp table cleanTemp($back); // delete pending table cleanPending($back); // clear tables in db $erase = array("domains", "keywords", "links", "link_details", "link_keyword", "media"); foreach ($erase as $allthis) { $db_con->query("TRUNCATE `" . $mysql_table_prefix . "{$allthis}`"); } // define all sites as erased $sql_query = "UPDATE " . $mysql_table_prefix . "sites set indexdate='NULL'"; $db_con->query($sql_query); if ($debug && $db_con->errno) { $err_row = __LINE__ - 2; printf("<p><span class='red'> MySQL failure: %s \n<br /></span></p>", $db_con->error); if (__FUNCTION__) { printf("<p><span class='red'> Found in script: " . __FILE__ . " row: {$err_row} in function(): " . __FUNCTION__ . " <br /></span></p>");
indexscreen($url, $reindex); break; case add_site: addsiteform(); break; case clean: cleanForm(); break; case 15: cleanKeywords(); break; case 16: cleanLinks(); break; case 17: cleanTemp(); break; case statistics: if (!isset($type)) { $type = ""; } statisticsForm($type); break; case 19: siteStats($site_id); break; case 20: siteScreen($site_id); break; case 21: if (!isset($start)) {