function deleteBCW($type = -1, $id) { $type = intval($type); switch ($type) { case 1: // Blotter posts $query = "DELETE FROM " . THblotter_table . " WHERE id=" . intval($id); break; case 2: // Capcodes $query = "DELETE FROM " . THcapcodes_table . " WHERE id=" . intval($id); rebuild_capcodes(); break; case 3: // Wordfilters $query = "DELETE FROM " . THfilters_table . " WHERE id=" . intval($id); rebuild_filters(); break; default: die("BCW error: Invalid type provided!"); break; } $this->myquery($query); }
exit; } if (isset($_GET["kav4proxy-configure"])) { kav4proxy_configure(); exit; } if (isset($_GET["squid-realtime-cache"])) { squid_realtime_cache(); exit; } if (isset($_GET["visited-sites"])) { visited_sites(); exit; } if (isset($_GET["rebuild-filters"])) { rebuild_filters(); exit; } if (isset($_GET["ufdbguardconf"])) { ufdbguardconf(); exit; } if (isset($_GET["export-web-categories"])) { export_web_categories(); exit; } if (isset($_GET["export-deleted-categories"])) { export_deleted_categories(); exit; } if (isset($_GET["ufdbguard-compile-database"])) {