function videogallerys_huge_it_videogallery() { require_once "admin/video_gallery_func.php"; require_once "admin/video_gallery_view.php"; if (!function_exists('print_html_nav')) { require_once "videogallery_function/html_videogallery_func.php"; } if (isset($_GET["task"])) { $task = $_GET["task"]; } else { $task = ''; } if (isset($_GET["id"])) { $id = $_GET["id"]; } else { $id = 0; } global $wpdb; switch ($task) { case 'add_cat': add_videogallery(); break; case 'popup_posts': if ($id) { popup_posts($id); } else { $id = $wpdb->get_var("SELECT MAX( id ) FROM " . $wpdb->prefix . "huge_it_videogallery_galleries"); popup_posts($id); } break; case 'videogallery_video': if ($id) { videogallery_video($id); } else { $id = $wpdb->get_var("SELECT MAX( id ) FROM " . $wpdb->prefix . "huge_it_videogallery_galleries"); videogallery_video($id); } break; case 'edit_cat': if ($id) { editvideogallery($id); } else { $id = $wpdb->get_var("SELECT MAX( id ) FROM " . $wpdb->prefix . "huge_it_videogallery_galleries"); editvideogallery($id); } break; case 'save': if ($id) { apply_cat($id); } case 'apply': if ($id) { apply_cat($id); editvideogallery($id); } break; case 'remove_cat': removevideogallery($id); showvideogallery(); break; default: showvideogallery(); break; } }
function sliders_huge_it_slider() { require_once "sliders.php"; require_once "sliders.html.php"; if (!function_exists('print_html_nav')) { require_once "slider_function/html_slider_func.php"; } if (isset($_GET["task"])) { $task = $_GET["task"]; } else { $task = ''; } if (isset($_GET["id"])) { $id = $_GET["id"]; } else { $id = 0; } global $wpdb; switch ($task) { case 'add_cat': add_slider(); break; case 'add_shortcode_post': add_shortcode_post(); break; case 'popup_posts': if ($id) { popup_posts($id); } break; case 'popup_video': if ($id) { popup_video($id); } else { $id = $wpdb->get_var("SELECT MAX( id ) FROM " . $wpdb->prefix . "huge_itslider_sliders"); popup_video($id); } break; case 'edit_cat': if ($id) { editslider($id); } else { $id = $wpdb->get_var("SELECT MAX( id ) FROM " . $wpdb->prefix . "huge_itslider_sliders"); editslider($id); } break; case 'save': if ($id) { apply_cat($id); } case 'apply': if ($id) { apply_cat($id); editslider($id); } break; case 'remove_cat': removeslider($id); showslider(); break; default: showslider(); break; } }
function catalogs_huge_it_catalog() { require_once "admin/catalogs_func.php"; require_once "admin/catalogs_view.php"; if (!function_exists('print_html_nav')) { require_once "catalog_function/html_catalog_func.php"; } if (isset($_GET["del_review"])) { $del_review_id = $_GET["del_review"]; } if (isset($_GET["task"])) { $task = $_GET["task"]; } else { $task = ''; } if (isset($_GET["id"])) { $id = $_GET["id"]; } else { $id = 0; } global $wpdb; switch ($task) { case 'add_cat': add_catalog(); break; case 'popup_posts': if ($id) { popup_posts($id); } else { $id = $wpdb->get_var("SELECT MAX( id ) FROM " . $wpdb->prefix . "huge_itgallery_gallerys"); popup_posts($id); } break; case 'catalog_add_shortcode_popup': catalog_add_shortcode_popup(); break; case 'reviews': if ($id) { catalog_reviews($id); } else { $id = $wpdb->get_var("SELECT MAX( id ) FROM " . $wpdb->prefix . "huge_itgallery_gallerys"); catalog_reviews($id); } if (isset($_GET["del_id"])) { if ($_GET["del_id"] != '') { $wpdb->query($wpdb->prepare("DELETE FROM " . $wpdb->prefix . "huge_it_catalog_reviews WHERE id = '%d' ", $_GET["del_id"])); header("Location: admin.php?page=catalogs_huge_it_catalog&id=" . $_GET['id'] . "&task=reviews&prod_id=" . $_GET['prod_id'] . "&TB_iframe=1"); } } break; case 'ratings': if ($id) { catalog_ratings($id); } else { $id = $wpdb->get_var("SELECT MAX( id ) FROM " . $wpdb->prefix . "huge_itgallery_gallerys"); catalog_ratings($id); } if (isset($_GET["del_id"])) { if ($_GET["del_id"] != '') { $wpdb->query($wpdb->prepare("DELETE FROM " . $wpdb->prefix . "huge_it_catalog_rating WHERE id = '%d' ", $_GET["del_id"])); header("Location: admin.php?page=catalogs_huge_it_catalog&id=" . $_GET['id'] . "&task=ratings&prod_id=" . $_GET['prod_id'] . "&TB_iframe=1"); } } break; case 'edit_cat': if ($id) { edit_catalog($id); } else { $id = $wpdb->get_var("SELECT MAX( id ) FROM " . $wpdb->prefix . "huge_it_catalogs"); edit_catalog($id); } break; case 'edit_album': if ($id) { edit_album($id); } else { $id = $wpdb->get_var("SELECT MAX( id ) FROM " . $wpdb->prefix . "huge_it_catalogs"); edit_album($id); } break; case 'save': if ($id) { apply_cat($id); } case 'apply': if ($id) { apply_cat($id); edit_catalog($id); } break; case 'remove_cat': removecatalog($id); showcatalog(); break; default: showcatalog(); break; } }