本文整理汇总了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);
}
}
示例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');
}
示例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']));
}
示例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');
}
示例5: delete_complete
/** Forumtråden ble slettet */
protected function delete_complete()
{
\ess::$b->page->add_message("Forumtråden ble slettet.");
$this->forum->redirect();
}