Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ home/ bdapparelinfo/ powmax.net/ Wp-Administrator/ modul/ |
|
<?php $form_error = array(); if(isset($_POST['addcat'])){ $cat_parent_name = $_POST['cat_parent_name']; $cat_name = addslashes($_POST['cat_name']); $cat_position = $_POST['cat_position']; $sir_no = $_POST['sir_no']; $parentsCatID=mysql_fetch_array(mysql_query("SELECT * FROM `menu` WHERE `id`='$cat_parent_name'")); if($cat_parent_name=='26' || $parentsCatID['parents_cat_id']=='26'){ $url_link = addslashes('product.php?page='); } else if($cat_parent_name=='22' OR $parentsCatID['parents_cat_id']=='22'){ $url_link = addslashes('gallery.php?page='); }else{ $url_link = addslashes('about.php?page='); } //echo $url_link; exit; /*echo $cat_name; exit;*/ $add_cat = $function_file->addcat($cat_name, $cat_parent_name, $url_link, $cat_position, $sir_no); }// end inserting User $ID=$_GET['id']; //$edit_pages = $function_file->edit_pages_id($ID); $view_sub_cat=mysql_fetch_array(mysql_query("SELECT * FROM `menu` WHERE `id`='$ID'")); $Parent_cat=$view_sub_cat['parents_cat_id']; if(isset($_POST['edicat'])){ $cat_edit_id = $_POST['edit_id']; $cat_parent_name = $_POST['cat_parent_name']; $cat_name = addslashes($_POST['cat_name']); $cat_position = $_POST['cat_position']; $sir_no = $_POST['sir_no']; /*echo $cat_name; exit;*/ $add_cat = $function_file->editcat($cat_edit_id, $cat_parent_name, $cat_name, $cat_position, $sir_no); }// end inserting User ?>