if (isset($qs[2]) && is_numeric($qs[2])) { $lc->verify_link_manage($qs[2]); } if (isset($linkspage_pref['link_directpost']) && $linkspage_pref['link_directpost']) { $lc->dbLinkCreate(); } else { $lc->dbLinkCreate("submit"); } } else { js_location(e_SELF); } } } //message submitted link if (isset($qs[0]) && $qs[0] == "s") { $lc->show_message(LAN_LINKS_29, LAN_LINKS_28); } $qsorder = FALSE; if (isset($qs[0]) && substr($qs[0], 0, 5) == "order") { $qsorder = TRUE; } //show all categories if ((!isset($qs[0]) || $qsorder) && $linkspage_pref['link_page_categories']) { echo displayNavigator('cat'); displayCategory(); } //show all categories if (isset($qs[0]) && $qs[0] == "cat" && !isset($qs[1])) { echo displayNavigator('cat'); displayCategory(); }
break; case 'dec': $lc->dbOrderUpdateDec($linkid, $link_order, $link_location); break; } if (isset($_POST['delete'])) { $tmp = array_pop($tmp = array_flip($_POST['delete'])); list($delete, $del_id) = explode("_", $tmp); $del_id = intval($del_id); } elseif (isset($_POST['create_category'])) { $lc->dbCategoryCreate(); } elseif (isset($_POST['update_category'])) { $lc->dbCategoryUpdate(); } elseif (isset($_POST['updateoptions'])) { $linkspage_pref = $lc->UpdateLinksPagePref(); $lc->show_message(LCLAN_ADMIN_6); } elseif (isset($_POST['add_link'])) { $lc->dbLinkCreate(); } elseif (isset($_POST['uploadlinkicon'])) { $lc->uploadLinkIcon(); } elseif (isset($_POST['uploadcatlinkicon'])) { $lc->uploadCatLinkIcon(); } elseif (isset($_POST['update_order'])) { $lc->dbOrderUpdate($_POST['link_order']); } elseif (isset($_POST['update_category_order'])) { $lc->dbOrderCatUpdate($_POST['link_category_order']); } //delete link if (isset($delete) && $del_id) { switch ($delete) { case 'main':