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


PHP forum::redirect方法代码示例

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


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

示例1: index

 function index()
 {
     $msg_id = $this->validate->get->getInt('id');
     $authorizer = check_model::getInstance();
     if (!$authorizer->is_msg_id($msg_id)) {
         cpg_die(ERROR, Lang::item('error.wrong_msg_id'), __FILE__, __LINE__);
     }
     $msg = $this->forum->get_message_data($msg_id, 'topic_id');
     $total_msg = $this->forum->get_message_count($msg['topic_id']);
     $current = $this->forum->get_message_pos($msg['topic_id'], $msg_id);
     $start = floor(($current - 1) / Config::item('fr_msg_per_page')) * Config::item('fr_msg_per_page');
     $superCage = Inspekt::makeSuperCage();
     if ($CONFIG['display_redirection_page'] == 0 && $superCage->get->keyExists('message_id')) {
         forum::redirect('forum.php?c=topic&id=' . $msg['topic_id'] . '&start=' . $start . '&message_id=' . $superCage->get->getAlNum('message_id') . '#cpgMessageBlock');
     } else {
         forum::redirect('forum.php?c=topic&id=' . $msg['topic_id'] . '&start=' . $start . '#' . $msg_id);
     }
 }
开发者ID:phill104,项目名称:branches,代码行数:18,代码来源:message.php

示例2: moveboard

 /**
  * ****************************************************
  * DELETE BOARD
  * ****************************************************
  */
 function moveboard()
 {
     $data1 = array('board' => $this->validate->get->getInt('board1'), 'order' => $this->validate->get->getInt('order1'));
     $data2 = array('board' => $this->validate->get->getInt('board2'), 'order' => $this->validate->get->getInt('order2'));
     $to_cat = $this->validate->get->getInt('to_cat');
     $to_board = $this->validate->get->getInt('to_board');
     $board = $this->validate->get->getInt('board');
     $this->forum->move_board($data1, $data2, $board, $to_cat, $to_board);
     //forum::message(Lang::item('admin.move_board'), Lang::item('admin.move_board_success'), 'forum.php?c=admin', 3);
     forum::redirect('forum.php?c=admin');
 }
开发者ID:phill104,项目名称:branches,代码行数:16,代码来源:admin.php

示例3: unnotify

 function unnotify()
 {
     $vars = array();
     $errors = array();
     $vars['topic_id'] = $this->validate->get->getInt('id');
     $this->forum->unnotify_topic($vars['topic_id']);
     forum::redirect(forum::link('topic', '', $vars['topic_id']));
 }
开发者ID:phill104,项目名称:branches,代码行数:8,代码来源:topic.php

示例4: remove_avatar

 function remove_avatar()
 {
     $authorizer = check_model::getInstance();
     // user or not
     if (!$authorizer->is_user()) {
         cpg_die(ERROR, Lang::item('error.perm_denied'), __FILE__, __LINE__);
     }
     $data['fr_avatar'] = '';
     $this->forum->edit_profile(USER_ID, $data);
     forum::redirect('forum.php?c=profile');
 }
开发者ID:phill104,项目名称:branches,代码行数:11,代码来源:profile.php

示例5: delete_complete

 /** Forumtråden ble slettet */
 protected function delete_complete()
 {
     \ess::$b->page->add_message("Forumtråden ble slettet.");
     $this->forum->redirect();
 }
开发者ID:Kuzat,项目名称:kofradia,代码行数:6,代码来源:Topic.php


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