set_time_limit(0); $action = HtmlReplace(trim($_GET["action"])); $title = HtmlReplace(trim($_GET["title"])); $url = HtmlReplace(trim($_GET["url"])); switch ($action) { case "saveform": saveform(); break; case "update": add_update_link($_GET["url"], "", "", "update"); break; case "update_all_links": update_all_links(); break; case "add_all_links": add_all_links($_GET["url"]); break; case "del": del(); break; case "dolistform": dolistform(); break; } ?> <link rel="stylesheet" href="xp.css" type="text/css"> <div class="nav" style="display:none;"><a href="?action=add">添加</a></div> <?php if ($action == "add") { addform($action); } elseif ($action == "modify") {
$action = HtmlReplace(trim($_GET['action'])); $title = HtmlReplace(trim($_GET['title'])); $url = HtmlReplace(trim($_GET['url'])); $keywords = HtmlReplace(trim($_GET['keywords'])); switch ($action) { case 'saveform': saveform(); break; case 'update': add_update_link($_GET['url'], '', '', 'update'); break; case 'update_all_links': update_all_links(); break; case 'add_all_links': add_all_links($_GET['url']); break; case 'del': del(); break; case 'dolistform': dolistform(); break; } headhtml(); echo '<div class="nav" style="display:none;"><a href="?action=add">添加</a></div> '; if ($action == 'add') { addform($action); } elseif ($action == 'modify') { addform($action);