alert('info', Comment_Updated); } else { alert('error', Status_Invalid); } } } else { alert('error', Status_Invalid); } } /****************************************/ /* Delete comment */ /****************************************/ if (isset($_POST['delete'])) { $source = @$_POST['check']; $source = multipleSelect($source); $delete = multipleDelete('comment', $source); if (isset($delete)) { alert('info', Comment_Deleted); } else { alert('error', Please_Select_Item); } } /****************************************/ /* Enable and Disbale comment */ /****************************************/ if (isset($_REQUEST['act'])) { if (!isset($_POST['delete']) and $_REQUEST['act'] == 'enable') { $db->update(FDBPrefix . 'comment', array("status" => "1"), 'id=' . $_REQUEST['id']); alert('info', Status_Applied); } if (!isset($_POST['delete']) and $_REQUEST['act'] == 'disable') {
refresh(); } else { notice('error', Status_Fail); } } } else { notice('error', Status_Invalid); } } /****************************************/ /* Delete contact */ /****************************************/ if (isset($_POST['delete'])) { $source = @$_POST['check']; $source = multipleSelect($source); $delete = multipleDelete('contact', $source); if (isset($delete)) { notice('info', Contact_Deleted); } else { notice('error', Please_Select_contact); } redirect(getUrl()); } /****************************************/ /* Redirect when contact-Id not found */ /****************************************/ if (!isset($_POST['save_edit']) and !isset($_POST['apply_edit'])) { if (isset($_REQUEST['view'])) { if ($_REQUEST['view'] == 'edit') { $id = $_REQUEST['id']; $react = oneQuery('contact', 'id', $id, 'id');
alert('success', Module_Saved, 0, 0, 'NOTICE_REF'); redirect('?app=module'); } else { $_SESSION['NOTICE'] = alert('error', Status_Invalid); } } else { $_SESSION['NOTICE'] = alert('error', Status_Invalid); } } /****************************************/ /* Delete Module */ /****************************************/ if (isset($_POST['delete']) or isset($_POST['delete_confirm'])) { $source = @$_POST['check']; $source = multipleSelect($source); $delete = multipleDelete('module', $source); if (isset($delete)) { $_SESSION['NOTICE_REF'] = alert('info', Module_Deleted); } else { $_SESSION['NOTICE_REF'] = alert('error', Module_Not_Selected); } } /****************************************/ /* Redirect when Module-Id not found */ /****************************************/ if (!isset($_POST['save_edit']) and !isset($_POST['apply_edit'])) { if (isset($_REQUEST['act'])) { if ($_REQUEST['act'] == 'edit') { $id = $_REQUEST['id']; $react = oneQuery('module', 'id', $id, 'id'); if (!isset($react)) {
redirect(getUrl()); } else { notice('error', Status_Invalid); } } } else { notice('error', Status_Invalid); } } /****************************************/ /* Delete Menu */ /****************************************/ if (isset($_POST['delete']) or isset($_POST['delete_confirm'])) { $source = @$_POST['check']; $source = multipleSelect($source); $delete = multipleDelete('menu', $source, '', '', '', '', 1); if (isset($delete)) { if ($delete == 'noempty') { notice('info', Menu_Contain_Submenu); } else { $_SESSION['NOTICE'] = notice('info', Menu_Deleted); } } else { $_SESSION['NOTICE'] = notice('error', Please_Select_Menu); } redirect(getUrl()); } /****************************************/ /* Redirect when menu-Id not found */ /****************************************/ if (!isset($_POST['save_edit']) and !isset($_POST['apply_edit'])) {
redirect(getUrl()); } else { notice('error', Status_Invalid); } } } else { notice('error', Status_Invalid); } } /****************************************/ /* User Delete */ /****************************************/ if (isset($_POST['delete']) or isset($_POST['delete_confirm'])) { $source = @$_POST['check']; $source = multipleSelect($source); $delete = multipleDelete('user', $source); if (isset($delete)) { notice('info', User_Deleted); } else { notice('error', Please_Select_User); } redirect(getUrl()); } /****************************************/ /* Redirect when User-Id not found */ /****************************************/ if (!isset($_POST['save_edit']) and !isset($_POST['apply_edit'])) { if (isset($_REQUEST['act'])) { if ($_REQUEST['act'] == 'edit' and !isset($_REQUEST['view'])) { $id = $_REQUEST['id']; $db = new FQuery();
redirect(getUrl()); } else { notice('error', Status_Exist); } } } else { notice('error', Status_Invalid); } } /****************************************/ /* Permalink Delete */ /****************************************/ if (isset($_POST['delete']) or isset($_POST['delete_confirm'])) { $source = @$_POST['check']; $source = multipleSelect($source); $delete = multipleDelete('permalink', $source, 'permalink', 'id', 'locker = 1'); if ($delete == 'noempty') { notice('error', Status_Cant_Delete); } else { if (isset($delete)) { notice('info', Status_Deleted); } else { notice('error', Status_Please_Select); } } redirect(getUrl()); } /****************************************/ /* Enable and Disbale permalink */ /****************************************/ if (isset($_REQUEST['act'])) {