示例#1
0
        $adb->dbCategory("create");
    } else {
        $message = CONTENT_ADMIN_ITEM_LAN_0;
    }
}
if (isset($_POST['update_category'])) {
    if ($_POST['cat_heading'] && $_POST['parent1'] != "none") {
        $adb->dbCategory("update");
    } else {
        $message = CONTENT_ADMIN_ITEM_LAN_0;
    }
}
if (isset($_POST['create_content'])) {
    if ($_POST['content_text'] && $_POST['content_heading'] && $_POST['content_author_name'] && $_POST['parent1'] != "none") {
        //$adb -> dbContentCreate("admin");
        $adb->dbContent("create", "");
    } else {
        $message = CONTENT_ADMIN_ITEM_LAN_0;
    }
}
if (isset($_POST['update_content'])) {
    if ($_POST['content_text'] && $_POST['content_heading'] && $_POST['content_author_name'] && $_POST['content_heading'] && $_POST['parent1'] != "none") {
        //$adb -> dbContentUpdate("admin");
        $adb->dbContent("update", "");
    } else {
        $message = CONTENT_ADMIN_ITEM_LAN_0;
    }
}
if (isset($_POST['update_order'])) {
    if (isset($qs[1])) {
        if (isset($qs[2])) {
示例#2
0
$aform = new contentform();
require_once e_HANDLER . "file_class.php";
$fl = new e_file();
//these have to be set for the tinymce wysiwyg
$e_wysiwyg = "content_text";
global $tp;
include_lan($plugindir . 'languages/' . e_LANGUAGE . '/lan_content.php');
if (e_QUERY) {
    $qs = explode(".", e_QUERY);
}
// define e_pagetitle
$aa->setPageTitle();
require_once HEADERF;
if (isset($_POST['create_content'])) {
    if ($_POST['content_text'] && $_POST['content_heading'] && $_POST['parent'] != "none" && $_POST['content_author_name'] != "" && $_POST['content_author_email'] != "") {
        $adb->dbContent("create", "submit");
    } else {
        $message = CONTENT_ADMIN_SUBMIT_LAN_4;
    }
}
if (isset($qs[0]) && $qs[0] == "s") {
    $message = CONTENT_ADMIN_SUBMIT_LAN_2 . "<br /><br />" . CONTENT_ADMIN_SUBMIT_LAN_5;
    $ns->tablerender("", "<div style='text-align:center'><b>" . $message . "</b></div>");
    require_once FOOTERF;
    exit;
}
if (isset($qs[0]) && $qs[0] == "d") {
    $message = CONTENT_ADMIN_SUBMIT_LAN_3 . "<br /><br />" . CONTENT_ADMIN_SUBMIT_LAN_5;
    $ns->tablerender("", "<div style='text-align:center'><b>" . $message . "</b></div>");
    require_once FOOTERF;
    exit;
示例#3
0
    header("location:" . $plugindir . "content.php");
    exit;
}
// define e_pagetitle
$aa->setPageTitle();
if (isset($_POST['delete'])) {
    $tmp = array_pop(array_flip($_POST['delete']));
    list($delete, $del_id) = explode("_", $tmp);
}
//these have to be set for the tinymce wysiwyg
$e_wysiwyg = "content_text";
// ##### DB ---------------------------------------------------------------------------------------
require_once HEADERF;
if (isset($_POST['create_content'])) {
    if ($_POST['content_text'] && $_POST['content_heading'] && $_POST['parent'] != "none") {
        $adb->dbContent("create", "contentmanager");
    } else {
        $message = CONTENT_ADMIN_ITEM_LAN_0;
    }
}
if (isset($_POST['update_content'])) {
    if ($_POST['content_text'] && $_POST['content_heading'] && $_POST['parent'] != "none") {
        $adb->dbContent("update", "contentmanager");
    } else {
        $message = CONTENT_ADMIN_ITEM_LAN_0;
    }
}
if ($delete == 'content' && is_numeric($del_id)) {
    if ($sql->db_Delete($plugintable, "content_id='{$del_id}' ")) {
        $message = CONTENT_ADMIN_ITEM_LAN_3;
        $e107cache->clear("content");