Example #1
0
 } elseif ($qs[0] == "order" && is_numeric($qs[1]) && is_numeric($qs[2]) && $qs[3] == "dec" && isset($qs[4])) {
     $message = $adb->dbSetOrder("dec", "ci", $qs[4]);
     $ns->tablerender("", "<div style='text-align:center'><b>" . $message . "</b></div>");
     $aform->show_content_order("ci");
     //increase category order
 } elseif ($qs[0] == "order" && $qs[1] == "inc" && isset($qs[2])) {
     $message = $adb->dbSetOrder("inc", "cc", $qs[2]);
     $ns->tablerender("", "<div style='text-align:center'><b>" . $message . "</b></div>");
     $aform->show_order("admin");
     //decrease category order
 } elseif ($qs[0] == "order" && $qs[1] == "dec" && isset($qs[2])) {
     $message = $adb->dbSetOrder("dec", "cc", $qs[2]);
     $ns->tablerender("", "<div style='text-align:center'><b>" . $message . "</b></div>");
     $aform->show_order("admin");
 } elseif ($qs[0] == "submitted" && !isset($qs[1])) {
     $aform->show_submitted();
 } elseif ($qs[0] == "options" && !isset($qs[1])) {
     $aform->show_options();
 } elseif ($qs[0] == "options" && isset($qs[1]) && (is_numeric($qs[1]) || $qs[1] == "default")) {
     $aform->show_options_cat();
     //category content manager : choose category
 } elseif ($qs[0] == "manager" && !isset($qs[1])) {
     if (!getperms("0")) {
         header("location:" . e_SELF);
         exit;
     }
     //$aform -> show_admin_contentmanager();
     $aform->manager();
     //category content manager : view contentmanager
 } elseif ($qs[0] == "manager" && isset($qs[1]) && is_numeric($qs[1])) {
     if (!getperms("0")) {
Example #2
0
    $ns->tablerender("", "<div style='text-align:center'><b>" . $message . "</b></div>");
    require_once FOOTERF;
    exit;
    //show list of items in this category
} elseif ($qs[0] == "content" && is_numeric($qs[1])) {
    $aform->show_manage_content("contentmanager", USERID, USERNAME);
    //create new item
} elseif ($qs[0] == "content" && $qs[1] == "create" && is_numeric($qs[2])) {
    $aform->show_create_content("contentmanager", USERID, USERNAME);
    //edit item
} elseif ($qs[0] == "content" && $qs[1] == "edit" && is_numeric($qs[2])) {
    $aform->show_create_content("contentmanager", USERID, USERNAME);
    //manage submitted
} elseif ($qs[0] == "content" && $qs[1] == "submitted" && is_numeric($qs[2])) {
    //$aform -> show_submitted("contentmanager", USERID, USERNAME, $qs[2]);
    $aform->show_submitted($qs[2]);
    //post submitted content item
} elseif ($qs[0] == "content" && $qs[1] == "sa" && is_numeric($qs[2])) {
    $newqs = array_reverse($qs);
    if ($newqs[0] == "cu") {
        //item; submit post / update redirect
        $mainparent = $aa->getMainParent($qs[2]);
        $message = CONTENT_ADMIN_ITEM_LAN_117 . "<br /><br />";
        $message .= CONTENT_ADMIN_ITEM_LAN_88 . " <a href='" . e_SELF . "?content.create." . $mainparent . "'>" . CONTENT_ADMIN_ITEM_LAN_90 . "</a><br />";
        $message .= CONTENT_ADMIN_ITEM_LAN_89 . " <a href='" . e_SELF . "?content." . $mainparent . "'>" . CONTENT_ADMIN_ITEM_LAN_90 . "</a><br />";
        $message .= CONTENT_ADMIN_ITEM_LAN_91 . " <a href='" . e_SELF . "?content.edit." . $qs[2] . "'>" . CONTENT_ADMIN_ITEM_LAN_90 . "</a><br />";
        $message .= CONTENT_ADMIN_ITEM_LAN_124 . " <a href='" . e_PLUGIN . "content/content.php?content." . $qs[2] . "'>" . CONTENT_ADMIN_ITEM_LAN_90 . "</a>";
        $ns->tablerender("", "<div style='text-align:center'><b>" . $message . "</b></div>");
        require_once e_ADMIN . "footer.php";
        exit;
    }