예제 #1
0
    $rss = $row['rss'];
}
$who_view = 3;
$groups_view = array();
if ($row['groups_view'] == "0" or $row['groups_view'] == "1" or $row['groups_view'] == "2") {
    $who_view = intval($row['groups_view']);
} else {
    $groups_view = array_map("intval", explode(",", $row['groups_view']));
}
if (empty($custom_title)) {
    $custom_title = $mod;
}
$page_title = sprintf($lang_module['edit'], $mod);
$contents = array();
if (file_exists(NV_ROOTDIR . "/modules/" . $row['module_file'] . "/funcs/rss.php")) {
    $contents['rss'] = array($lang_module['activate_rss'], $rss);
}
$contents['action'] = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=edit&mod=" . $mod;
$contents['custom_title'] = array($lang_module['custom_title'], $custom_title, 70);
$contents['theme'] = array($lang_module['theme'], $lang_module['theme_default'], $theme_list, $theme);
$contents['act'] = array($lang_global['activate'], $act);
$contents['keywords'] = array($lang_module['keywords'], $keywords, 255, $lang_module['keywords_info']);
if ($mod != $global_config['site_home_module']) {
    $contents['who_view'] = array($lang_global['who_view'], array($lang_global['who_view0'], $lang_global['who_view1'], $lang_global['who_view2'], $lang_global['who_view3']), $who_view);
    $contents['groups_view'] = array($lang_global['groups_view'], $groups_list, $groups_view);
}
$contents['submit'] = $lang_global['submit'];
$contents = edit_theme($contents);
include NV_ROOTDIR . "/includes/header.php";
echo nv_admin_theme($contents);
include NV_ROOTDIR . "/includes/footer.php";
예제 #2
0
     break;
 case 'remove_calendar':
     remove_calendar();
     remove_calendar_events();
     break;
 case 'publish_calendar':
     change_calendar(1);
     break;
 case 'unpublish_calendar':
     change_calendar(0);
     break;
     ////////////THEME////////////////
 ////////////THEME////////////////
 case 'add_theme':
 case 'edit_theme':
     edit_theme();
     break;
 case 'theme':
     show_theme();
     break;
 case 'save_theme':
 case 'apply_theme':
     save_theme();
     break;
 case 'cancel_theme':
     cancel_theme();
     break;
 case 'remove_theme':
     removeTheme();
     break;
 case 'preview_theme':
예제 #3
0
function Form_maker_Themes()
{
    require_once "Theme_functions.php";
    require_once "Themes_function.html.php";
    if (!function_exists('print_html_nav')) {
        require_once "nav_function/nav_html_func.php";
    }
    global $wpdb;
    if (isset($_GET["task"])) {
        $task = esc_html($_GET["task"]);
    } else {
        $task = "";
    }
    if (isset($_GET["id"])) {
        $id = (int) $_GET["id"];
    } else {
        $id = 0;
    }
    switch ($task) {
        case 'theme':
            show_theme();
            break;
        case 'default':
            default_theme($id);
            show_theme();
            break;
        case 'add_theme':
            add_theme();
            break;
        case 'Save':
            if ($id) {
                apply_theme($id);
            } else {
                save_theme();
            }
            show_theme();
            break;
        case 'Apply':
            if ($id) {
                apply_theme($id);
            } else {
                save_theme();
                $id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "formmaker_themes");
            }
            edit_theme($id);
            break;
        case 'edit_theme':
            edit_theme($id);
            break;
        case 'remove_theme':
            remove_theme($id);
            show_theme();
            break;
        default:
            show_theme();
    }
}
function Spider_Video_Player_Themes()
{
    wp_enqueue_script('media-upload');
    wp_admin_css('thickbox');
    require_once "Theme_functions.php";
    // add functions for Spider_Video_Player
    require_once "Themes_function.html.php";
    // add functions for vive Spider_Video_Player
    if (isset($_GET["task"])) {
        $task = htmlspecialchars($_GET["task"]);
    } else {
        $task = "";
    }
    if (isset($_GET["id"])) {
        $id = htmlspecialchars($_GET["id"]);
    } else {
        $id = 0;
    }
    switch ($task) {
        case 'theme':
            show_theme();
            break;
        case 'default':
            $nonce_sp_vid = $_REQUEST['_wpnonce'];
            if (!wp_verify_nonce($nonce_sp_vid, 'nonce_sp_vid')) {
                die("Are you sure you want to do this?");
            }
            default_theme($id);
            show_theme();
            break;
        case 'add_theme':
            add_theme();
            break;
        case 'Save':
            if ($id) {
                check_admin_referer('nonce_sp_vid', 'nonce_sp_vid');
                apply_theme($id);
            } else {
                check_admin_referer('nonce_sp_vid', 'nonce_sp_vid');
                save_theme();
            }
            show_theme();
            break;
        case 'Apply':
            if ($id) {
                check_admin_referer('nonce_sp_vid', 'nonce_sp_vid');
                apply_theme($id);
            } else {
                check_admin_referer('nonce_sp_vid', 'nonce_sp_vid');
                save_theme();
            }
            edit_theme($id);
            break;
        case 'edit_theme':
            edit_theme($id);
            break;
        case 'remove_theme':
            $nonce_sp_vid = $_REQUEST['_wpnonce'];
            if (!wp_verify_nonce($nonce_sp_vid, 'nonce_sp_vid')) {
                die("Are you sure you want to do this?");
            }
            remove_theme($id);
            show_theme();
            break;
        default:
            show_theme();
    }
}
예제 #5
0
function Spider_Video_Player_Themes()
{
    wp_enqueue_script('media-upload');
    wp_admin_css('thickbox');
    require_once "Theme_functions.php";
    // add functions for Spider_Video_Player
    require_once "Themes_function.html.php";
    // add functions for vive Spider_Video_Player
    if (isset($_GET["task"])) {
        $task = htmlspecialchars($_GET["task"]);
    } else {
        $task = "";
    }
    if (isset($_GET["id"])) {
        $id = htmlspecialchars($_GET["id"]);
    } else {
        $id = 0;
    }
    switch ($task) {
        case 'theme':
            show_theme();
            break;
        case 'default':
            default_theme($id);
            show_theme();
            break;
        case 'add_theme':
            add_theme();
            break;
        case 'Save':
            if ($id) {
                apply_theme($id);
            } else {
                save_theme();
            }
            show_theme();
            break;
        case 'Apply':
            if ($id) {
                apply_theme($id);
            } else {
                save_theme();
            }
            edit_theme($id);
            break;
        case 'edit_theme':
            edit_theme($id);
            break;
        case 'remove_theme':
            remove_theme($id);
            show_theme();
            break;
        default:
            show_theme();
    }
}