当前位置: 首页>>代码示例>>PHP>>正文


PHP security::redirect方法代码示例

本文整理汇总了PHP中security::redirect方法的典型用法代码示例。如果您正苦于以下问题:PHP security::redirect方法的具体用法?PHP security::redirect怎么用?PHP security::redirect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在security的用法示例。


在下文中一共展示了security::redirect方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: delete

 function delete($colum = '')
 {
     if ($colum == '') {
         $colum = $this->key;
     }
     $this->db->delete_record($this->table, $colum, $_POST['cid'], $this->pathadm);
     $this->db->delete_record($this->table_image, $colum, $_POST['cid'], $this->path_otheradm);
     security::redirect($this->module, 'list_reports');
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:9,代码来源:class_cards_report.php

示例2: delete

 function delete()
 {
     $cat = new category_pro();
     $pro = new product();
     if ($this->db->check_delete($pro->table, $this->key, $_POST['cid']) > 0) {
         $this->db->alert('Bạn phải xóa sản phẩm thuộc nhóm chủng loại cần xóa trước');
         security::redirect($pro->module, 'list');
         return false;
     }
     $this->db->delete_record($this->table, $this->key, $_POST['cid']);
     $cat->delete($this->key);
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:12,代码来源:class_channel_pro.php

示例3: delete

 function delete()
 {
     $cat = new category_news();
     $news = new news();
     if ($this->db->check_delete($news->table, $this->key, $_POST['cid']) > 0) {
         $this->db->alert('You must delete news first.');
         security::redirect($news->module, 'list');
         return false;
     }
     $this->db->delete_record($this->table, $this->key, $_POST['cid']);
     $cat->delete($this->key);
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:12,代码来源:class_channel_news.php

示例4: delete

 function delete($colum = '')
 {
     $cha = new channel_news();
     $news = new news();
     $module = $cha->module;
     if ($colum == '') {
         $colum = $this->key;
         if ($this->db->check_delete($news->table, $colum, $_POST['cid']) > 0) {
             $this->db->alert('Bạn phải xóa tin tức thuộc chủ đề cần xóa trước');
             security::redirect($news->module, 'list');
             return false;
         }
         $module = $this->module;
     }
     $this->db->delete_record($this->table, $colum, $_POST['cid']);
     security::redirect($module, 'list');
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:17,代码来源:class_category_news.php

示例5: delete

 function delete($colum = '')
 {
     $cha = new channel_pro();
     $pro = new product();
     $module = $cha->module;
     if ($colum == '') {
         $colum = $this->key;
         if ($this->db->check_delete($pro->table, $colum, $_POST['cid']) > 0) {
             $this->db->alert('Bạn phải xóa sản phẩm thuộc nhóm chủng loại cần xóa trước');
             security::redirect($pro->module, 'list');
             return false;
         }
         $module = $this->module;
     }
     $this->db->delete_record($this->table, $colum, $_POST['cid']);
     security::redirect($module, 'list');
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:17,代码来源:class_category_pro.php

示例6: delete

 function delete()
 {
     $this->db->delete_record($this->table, $this->key, $_POST['cid']);
     security::redirect($this->module, 'list');
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:5,代码来源:class_menu.php

示例7: delete

 function delete()
 {
     $this->db->delete_record($this->table, $this->key, $_POST['cid']);
     security::redirect('product', 'comment&id=' . $_GET['id']);
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:5,代码来源:class_comment_pro.php

示例8: edit

 function edit()
 {
     $input = array('footer' => $_POST['footer'], 'hit' => intval($_POST['hit']), 'aboutus' => intval($_POST['aboutus']), 'currency1' => clear($_POST['currency1']), 'metakey' => clear($_POST['metakey']), 'metatag' => clear($_POST['metatag']), 'metades' => clear($_POST['metades']), 'header_left' => clear($_POST['header_left']), 'header_right' => clear($_POST['header_right']), 'home_footer' => clear($_POST['home_footer']), 'home' => clear($_POST['home']), 'bookmark' => clear($_POST['bookmark']), 'home_header' => clear($_POST['home_header']), 's_home' => clear($_POST['s_home']), 's_about' => clear($_POST['s_about']), 's_privacy' => clear($_POST['s_privacy']), 's_contact' => clear($_POST['s_contact']), 's_blog' => clear($_POST['s_blog']), 's_advice' => clear($_POST['s_advice']), 's_faq' => clear($_POST['s_faq']), 's_terms' => clear($_POST['s_terms']), 's_sitemap' => clear($_POST['s_sitemap']), 's_glossary' => clear($_POST['s_glossary']), 'blog_stat' => (int) $_POST['blog_stat']);
     $this->db->update_record($this->table, $input, 'id = 1');
     security::redirect($this->module, 'form');
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:6,代码来源:class_config.php

示例9: delete_detail

 function delete_detail($colum = '')
 {
     $list = 'list';
     if ($colum == '') {
         $colum = $this->key_detail;
         $list = 'form&id=' . intval($_GET['id']);
     }
     $this->db->delete_record($this->table_detail, $colum, $_POST['cid']);
     security::redirect($this->module, $list);
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:10,代码来源:class_order.php

示例10: deleteimg

 function deleteimg()
 {
     $this->db->delete_record($this->table, $this->key, $_POST['cid'], $this->pathadm);
     security::redirect($this->module, 'listimg');
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:5,代码来源:class_advertise.php

示例11: add

 function add()
 {
     $input = array('AnnualFee' => clear($_POST['AnnualFee']), 'alias' => clear($_POST['alias']), 'BigCreative' => clear($_POST['assign_banner']), 'OfferName' => $_POST['name'], 'RedirectLink' => $_POST['RedirectLink'], 'CreditType' => $_POST['CreditType'], 'TextDetails' => $_POST['TextDetails'], 'Textdisplay' => $_POST['Textdisplay'], 'PurchaseIntroRate' => $_POST['PurchaseIntroRate'], 'PurchaseIntroPeriod' => $_POST['PurchaseIntroPeriod'], 'PurchaseGoToRate' => $_POST['PurchaseGoToRate'], 'TransferIntroRate' => $_POST['TransferIntroRate'], 'TransferIntroPeriod' => $_POST['TransferIntroPeriod'], 'TransferGoToRate' => $_POST['TransferGoToRate'], 'LateFee' => $_POST['LateFee'], 'CashAdvancedFee' => $_POST['CashAdvancedFee'], 'CashAdvancedGoToRate' => $_POST['CashAdvancedGoToRate'], 'PenaltyGoToRate' => $_POST['PenaltyGoToRate'], 'TransferFee' => $_POST['TransferFee'], 'Issuer' => $_POST['Issuer'], 'Private' => $_POST['Private'], 'Perks' => $_POST['Perks'], 'header_text' => $_POST['header_text'], 'footer_text' => $_POST['footer_text'], 'ordering' => intval($_POST['ordering']), 'top' => intval($_POST['top']), 'good' => intval($_POST['good']), 'asign_article' => implode(',', $_POST['asign_article']), 'sapxep' => implode(',', $_POST['sapxep']), 'card_slogan' => clear($_POST['card_slogan']));
     $this->db->insert_record($this->table, $input);
     security::redirect('cards', 'list_credit_cards');
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:6,代码来源:class_credit_cards.php

示例12: add

 function add()
 {
     $articles = isset($_POST['asign_article']) ? implode(",", $_POST['asign_article']) : "";
     $sapx = isset($_POST['sapxep']) ? implode(",", $_POST['sapxep']) : "";
     $offeridrand = substr(number_format(time() * rand(), 0, '', ''), 0, 5);
     $input = array('OfferID' => $offeridrand, 'AnnualFee' => clear($_POST['AnnualFee']), 'alias' => clear($_POST['alias']), 'BigCreative' => clear($_POST['assign_banner']), 'OfferName' => $_POST['name'], 'RedirectLink' => $_POST['RedirectLink'], 'CreditType' => $_POST['CreditType'], 'TextDetails' => addslashes($_POST['TextDetails']), 'Textdisplay' => $_POST['Textdisplay'], 'PurchaseIntroRate' => $_POST['PurchaseIntroRate'], 'PurchaseIntroPeriod' => $_POST['PurchaseIntroPeriod'], 'PurchaseGoToRate' => $_POST['PurchaseGoToRate'], 'TransferIntroRate' => $_POST['TransferIntroRate'], 'TransferIntroPeriod' => $_POST['TransferIntroPeriod'], 'TransferGoToRate' => $_POST['TransferGoToRate'], 'LateFee' => $_POST['LateFee'], 'CashAdvancedFee' => $_POST['CashAdvancedFee'], 'CashAdvancedGoToRate' => $_POST['CashAdvancedGoToRate'], 'PenaltyGoToRate' => $_POST['PenaltyGoToRate'], 'TransferFee' => $_POST['TransferFee'], 'Issuer' => $_POST['Issuer'], 'Private' => $_POST['Private'], 'Perks' => addslashes($_POST['Perks']), 'header_text' => $_POST['header_text'], 'footer_text' => $_POST['footer_text'], 'title_text' => $_POST['title_text'], 'keywords_text' => $_POST['keywords_text'], 'description_text' => $_POST['description_text'], 'ordering' => intval($_POST['ordering']), 'top' => intval($_POST['top']), 'good' => intval($_POST['good']), 'asign_article' => $articles, 'sapxep' => $sapx, 'card_slogan' => clear($_POST['card_slogan']));
     $this->db->insert_record($this->table, $input);
     security::redirect('cards', 'list_credit_cards');
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:9,代码来源:class_credit_cards.php

示例13: delete_product_image

 function delete_product_image($colum = '')
 {
     $view = 'list';
     if ($colum == '') {
         $colum = $this->key_image;
         $view = 'imglist&id=' . $_GET['id'];
     }
     $this->db->delete_record($this->table_image, $colum, $_POST['cid'], $this->path_otheradm);
     security::redirect($this->module, $view);
 }
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:10,代码来源:class_product.php


注:本文中的security::redirect方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。