header("Expires: 0");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-cache, must-revalidate");	
	if(!CategoriesCheckRightsRead()){
		echo FATAL_ERROR_SHOW_128("{ERROR_NO_PRIVS}<hr>".@implode("<br>", $GLOBALS["CategoriesCheckRights"]));
		exit;
		
	}
	if(isset($_GET["test-cat"])){test_category();exit;}
	if(isset($_GET["add-uris-js"])){add_uris_js();exit;}
	if(isset($_GET["add-uris-popup"])){add_uris_popup();exit;}
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["field-list"])){field_list();exit;}
	if(isset($_GET["query"])){query();exit;}
	if(isset($_POST["items"])){SaveItems();exit;}
	if(isset($_POST["DeleteCategorizedURI"])){DeleteCategorizedURI();exit;}
	if(isset($_GET["move-category-popup"])){MoveCategory_popup();exit;}
	if(isset($_POST["RemoveAll"])){RemoveAll();exit;}
	if(isset($_POST["MoveCategorizedWebsitePattern"])){MoveCategorizedWebsiteAll();exit;}
	if(isset($_GET["RemoveDisabled-popup"])){removedisabled_popup();exit;}
	if(isset($_POST["RemoveDisabled"])){removedisabled_perform();exit;}
	if(isset($_POST["WEBTESTS"])){test_category_perform();exit;}
js();	
	
function js(){
	header("content-type: application/x-javascript");
	$page=CurrentPageName();
	$tpl=new templates();
	$width=950;
	$title=$tpl->_ENGINE_parse_body("{categories}");
示例#2
0
    die;
}
if (isset($_GET["search"])) {
    search();
    exit;
}
if (isset($_GET["popup-add-js"])) {
    popup_js();
    exit;
}
if (isset($_GET["popup-add"])) {
    popup_add();
    exit;
}
if (isset($_POST["items"])) {
    SaveItems();
    exit;
}
if (isset($_POST["ID"])) {
    SaveItemID();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_POST["remove"])) {
    remove();
    exit;
}
table();
示例#3
0
$petMap = array('id' => array('name' => 'speciesId', 'required' => true), 'name_enus' => array('name' => 'name', 'required' => true), 'type' => array('name' => 'petTypeId', 'required' => true), 'icon' => array('name' => 'icon', 'required' => true), 'npc' => array('name' => 'creatureId', 'required' => false));
$reparse = false;
for ($x = 0; $x < count($argv); $x++) {
    $reparse |= strpos($argv[$x], 'reparse') !== false;
}
if ($reparse) {
    heartbeat();
    $idSet = GetItemsToReparse();
    for ($x = 0; $x < count($idSet); $x++) {
        SaveItems($idSet[$x]);
    }
} else {
    heartbeat();
    $ids = NewItems(50);
    if (count($ids)) {
        SaveItems(FetchItems($ids));
    }
    heartbeat();
    $ids = NewPets(50);
    if (count($ids)) {
        SavePets(FetchPets($ids));
    }
    heartbeat();
    CatchKill();
    GetNewModels(50);
}
DebugMessage('Done! Started ' . TimeDiff($startTime));
function GetNewModels($limit = 20)
{
    global $db, $caughtKill;
    $sql = <<<EOF