• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP feather_escape函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中feather_escape函数的典型用法代码示例。如果您正苦于以下问题:PHP feather_escape函数的具体用法?PHP feather_escape怎么用?PHP feather_escape使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: deletepost

 public function deletepost($id)
 {
     global $lang_common, $lang_post, $pd;
     if ($this->user->g_read_board == '0') {
         message($lang_common['No view'], '403');
     }
     // Fetch some informations about the post, the topic and the forum
     $cur_post = $this->model->get_info_delete($id);
     if ($this->config['o_censoring'] == '1') {
         $cur_post['subject'] = censor_words($cur_post['subject']);
     }
     // Sort out who the moderators are and if we are currently a moderator (or an admin)
     $mods_array = $cur_post['moderators'] != '' ? unserialize($cur_post['moderators']) : array();
     $is_admmod = $this->user->g_id == FEATHER_ADMIN || $this->user->g_moderator == '1' && array_key_exists($this->user->username, $mods_array) ? true : false;
     $is_topic_post = $id == $cur_post['first_post_id'] ? true : false;
     // Do we have permission to edit this post?
     if (($this->user->g_delete_posts == '0' || $this->user->g_delete_topics == '0' && $is_topic_post || $cur_post['poster_id'] != $this->user->id || $cur_post['closed'] == '1') && !$is_admmod) {
         message($lang_common['No permission'], '403');
     }
     if ($is_admmod && $this->user->g_id != FEATHER_ADMIN && in_array($cur_post['poster_id'], get_admin_ids())) {
         message($lang_common['No permission'], '403');
     }
     // Load the delete.php language file
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/delete.php';
     if ($this->feather->request()->isPost()) {
         $this->model->handle_deletion($is_topic_post, $id, $cur_post['tid'], $cur_post['fid']);
     }
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_delete['Delete post']);
     define('FEATHER_ACTIVE_PAGE', 'delete');
     $this->header->setTitle($page_title)->display();
     require FEATHER_ROOT . 'include/parser.php';
     $cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
     $this->feather->render('delete.php', array('lang_common' => $lang_common, 'lang_delete' => $lang_delete, 'cur_post' => $cur_post, 'id' => $id, 'is_topic_post' => $is_topic_post));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:35,代码来源:delete.php


示例2: display

 public function display()
 {
     global $lang_common;
     if ($this->user->g_read_board == '0') {
         message($lang_common['No view'], '403');
     } elseif ($this->user->g_view_users == '0') {
         message($lang_common['No permission'], '403');
     }
     // Load the userlist.php language file
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/userlist.php';
     // Load the search.php language file
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/search.php';
     // Determine if we are allowed to view post counts
     $show_post_count = $this->config['o_show_post_count'] == '1' || $this->user->is_admmod ? true : false;
     $username = $this->request->get('username') && $this->user->g_search_users == '1' ? feather_trim($this->request->get('username')) : '';
     $show_group = $this->request->get('show_group') ? intval($this->request->get('show_group')) : -1;
     $sort_by = $this->request->get('sort_by') && (in_array($this->request->get('sort_by'), array('username', 'registered')) || $this->request->get('sort_by') == 'num_posts' && $show_post_count) ? $this->request->get('sort_by') : 'username';
     $sort_dir = $this->request->get('sort_dir') && $this->request->get('sort_dir') == 'DESC' ? 'DESC' : 'ASC';
     $num_users = $this->model->fetch_user_count($username, $show_group);
     // Determine the user offset (based on $page)
     $num_pages = ceil($num_users / 50);
     $p = !$this->request->get('p') || $page <= 1 || $page > $num_pages ? 1 : intval($page);
     $start_from = 50 * ($p - 1);
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_common['User list']);
     if ($this->user->g_search_users == '1') {
         $focus_element = array('userlist', 'username');
     }
     // Generate paging links
     $paging_links = '<span class="pages-label">' . $lang_common['Pages'] . ' </span>' . paginate_old($num_pages, $p, '?username=' . urlencode($username) . '&amp;show_group=' . $show_group . '&amp;sort_by=' . $sort_by . '&amp;sort_dir=' . $sort_dir);
     define('FEATHER_ALLOW_INDEX', 1);
     define('FEATHER_ACTIVE_PAGE', 'userlist');
     $this->header->setTitle($page_title)->setPage($p)->setFocusElement($focus_element)->setPagingLinks($paging_links)->display();
     $this->feather->render('userlist.php', array('lang_common' => $lang_common, 'lang_search' => $lang_search, 'lang_ul' => $lang_ul, 'feather' => $this->feather, 'username' => $username, 'show_group' => $show_group, 'sort_by' => $sort_by, 'sort_dir' => $sort_dir, 'show_post_count' => $show_post_count, 'paging_links' => $paging_links, 'feather_config' => $this->config, 'dropdown_menu' => $this->model->generate_dropdown_menu($show_group), 'userlist_data' => $this->model->print_users($username, $start_from, $sort_by, $sort_dir, $show_group)));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:35,代码来源:userlist.php


示例3: display

 public function display()
 {
     global $lang_common, $lang_admin_common, $lang_admin_censoring;
     require FEATHER_ROOT . 'include/common_admin.php';
     if ($this->user->g_id != FEATHER_ADMIN) {
         message($lang_common['No permission'], '403');
     }
     define('FEATHER_ADMIN_CONSOLE', 1);
     // Load the admin_options.php language file
     require FEATHER_ROOT . 'lang/' . $admin_language . '/censoring.php';
     // Add a censor word
     if ($this->request->post('add_word')) {
         $this->model->add_word();
     } elseif ($this->request->post('update')) {
         $this->model->update_word();
     } elseif ($this->request->post('remove')) {
         $this->model->remove_word();
     }
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_admin_common['Admin'], $lang_admin_common['Censoring']);
     $focus_element = array('censoring', 'new_search_for');
     define('FEATHER_ACTIVE_PAGE', 'admin');
     $this->header->setTitle($page_title)->setFocusElement($focus_element)->display();
     generate_admin_menu('censoring');
     $this->feather->render('admin/censoring.php', array('lang_admin_censoring' => $lang_admin_censoring, 'lang_admin_common' => $lang_admin_common, 'feather_config' => $this->config, 'word_data' => $this->model->get_words()));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:26,代码来源:censoring.php


示例4: display

 public function display($id = null, $name = null, $page = null, $pid = null)
 {
     global $lang_common, $lang_post, $lang_topic, $lang_bbeditor, $pd;
     if ($this->user->g_read_board == '0') {
         message($lang_common['No view'], '403');
     }
     // Load the viewtopic.php language file
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/topic.php';
     // Load the post.php language file
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/post.php';
     // Antispam feature
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/antispam.php';
     $index_questions = rand(0, count($lang_antispam_questions) - 1);
     // BBcode toolbar feature
     require FEATHER_ROOT . 'lang/' . $this->user['language'] . '/bbeditor.php';
     // Load the viewtopic.php model file
     require_once FEATHER_ROOT . 'model/viewtopic.php';
     // Fetch some informations about the topic TODO
     $cur_topic = $this->model->get_info_topic($id);
     // Sort out who the moderators are and if we are currently a moderator (or an admin)
     $mods_array = $cur_topic['moderators'] != '' ? unserialize($cur_topic['moderators']) : array();
     $is_admmod = $this->user->g_id == FEATHER_ADMIN || $this->user->g_moderator == '1' && array_key_exists($this->user->username, $mods_array) ? true : false;
     if ($is_admmod) {
         $admin_ids = get_admin_ids();
     }
     // Can we or can we not post replies?
     $post_link = $this->model->get_post_link($id, $cur_topic['closed'], $cur_topic['post_replies'], $is_admmod);
     // Add/update this topic in our list of tracked topics
     if (!$this->user->is_guest) {
         $tracked_topics = get_tracked_topics();
         $tracked_topics['topics'][$id] = time();
         set_tracked_topics($tracked_topics);
     }
     // Determine the post offset (based on $_GET['p'])
     $num_pages = ceil(($cur_topic['num_replies'] + 1) / $this->user->disp_posts);
     $p = !isset($page) || $page <= 1 || $page > $num_pages ? 1 : intval($page);
     $start_from = $this->user->disp_posts * ($p - 1);
     $url_topic = url_friendly($cur_topic['subject']);
     $url_forum = url_friendly($cur_topic['forum_name']);
     // Generate paging links
     $paging_links = '<span class="pages-label">' . $lang_common['Pages'] . ' </span>' . paginate($num_pages, $p, 'topic/' . $id . '/' . $url_topic . '/#');
     if ($this->config['o_censoring'] == '1') {
         $cur_topic['subject'] = censor_words($cur_topic['subject']);
     }
     $quickpost = $this->model->is_quickpost($cur_topic['post_replies'], $cur_topic['closed'], $is_admmod);
     $subscraction = $this->model->get_subscraction($cur_topic['is_subscribed'], $id);
     // Add relationship meta tags
     $page_head = $this->model->get_page_head($id, $num_pages, $p, $url_topic);
     $page_title = array(feather_escape($this->config['o_board_title']), feather_escape($cur_topic['forum_name']), feather_escape($cur_topic['subject']));
     define('FEATHER_ALLOW_INDEX', 1);
     define('FEATHER_ACTIVE_PAGE', 'viewtopic');
     $this->header->setTitle($page_title)->setPage($p)->setPagingLinks($paging_links)->setPageHead($page_head)->display();
     $forum_id = $cur_topic['forum_id'];
     require FEATHER_ROOT . 'include/parser.php';
     $this->feather->render('viewtopic.php', array('id' => $id, 'p' => $p, 'post_data' => $this->model->print_posts($id, $start_from, $cur_topic, $is_admmod), 'lang_common' => $lang_common, 'lang_topic' => $lang_topic, 'lang_post' => $lang_post, 'lang_bbeditor' => $lang_bbeditor, 'cur_topic' => $cur_topic, 'subscraction' => $subscraction, 'is_admmod' => $is_admmod, 'feather_config' => $this->config, 'paging_links' => $paging_links, 'post_link' => $post_link, 'start_from' => $start_from, 'lang_antispam' => $lang_antispam, 'pid' => $pid, 'quickpost' => $quickpost, 'index_questions' => $index_questions, 'lang_antispam_questions' => $lang_antispam_questions, 'url_forum' => $url_forum, 'url_topic' => $url_topic, 'feather' => $this->feather));
     // Increment "num_views" for topic
     $this->model->increment_views($id);
     $this->footer->display('viewtopic', $id, $p, $pid, $cur_topic['forum_id'], $num_pages);
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:59,代码来源:viewtopic.php


示例5: editpost

 public function editpost($id)
 {
     global $lang_common, $lang_prof_reg, $lang_post, $lang_register;
     if ($this->user->g_read_board == '0') {
         message($lang_common['No view'], '403');
     }
     // Fetch some informations about the post, the topic and the forum
     $cur_post = $this->model->get_info_edit($id);
     // Sort out who the moderators are and if we are currently a moderator (or an admin)
     $mods_array = $cur_post['moderators'] != '' ? unserialize($cur_post['moderators']) : array();
     $is_admmod = $this->user->g_id == FEATHER_ADMIN || $this->user->g_moderator == '1' && array_key_exists($this->user->username, $mods_array) ? true : false;
     $can_edit_subject = $id == $cur_post['first_post_id'];
     if ($this->config['o_censoring'] == '1') {
         $cur_post['subject'] = censor_words($cur_post['subject']);
         $cur_post['message'] = censor_words($cur_post['message']);
     }
     // Do we have permission to edit this post?
     if (($this->user->g_edit_posts == '0' || $cur_post['poster_id'] != $this->user->id || $cur_post['closed'] == '1') && !$is_admmod) {
         message($lang_common['No permission'], '403');
     }
     if ($is_admmod && $this->user->g_id != FEATHER_ADMIN && in_array($cur_post['poster_id'], get_admin_ids())) {
         message($lang_common['No permission'], '403');
     }
     // Load the post.php language file
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/post.php';
     // Load the bbeditor.php language file
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/bbeditor.php';
     // Start with a clean slate
     $errors = array();
     if ($this->feather->request()->isPost()) {
         // Let's see if everything went right
         $errors = $this->model->check_errors_before_edit($id, $can_edit_subject, $errors);
         // Setup some variables before post
         $post = $this->model->setup_variables($cur_post, $is_admmod, $can_edit_subject, $errors);
         // Did everything go according to plan?
         if (empty($errors) && !$this->request->post('preview')) {
             // Edit the post
             $this->model->edit_post($id, $can_edit_subject, $post, $cur_post, $is_admmod);
             redirect(get_link('post/' . $id . '/#p' . $id), $lang_post['Post redirect']);
         }
     } else {
         $post = '';
     }
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_post['Edit post']);
     $required_fields = array('req_subject' => $lang_common['Subject'], 'req_message' => $lang_common['Message']);
     $focus_element = array('edit', 'req_message');
     define('FEATHER_ACTIVE_PAGE', 'edit');
     $this->header->setTitle($page_title)->setFocusElement($focus_element)->setRequiredFields($required_fields)->display();
     if ($this->request->post('preview')) {
         require_once FEATHER_ROOT . 'include/parser.php';
         $preview_message = parse_message($post['message'], $post['hide_smilies']);
     } else {
         $preview_message = '';
     }
     $this->feather->render('edit.php', array('lang_common' => $lang_common, 'cur_post' => $cur_post, 'lang_post' => $lang_post, 'errors' => $errors, 'preview_message' => $preview_message, 'id' => $id, 'feather_config' => $this->config, 'feather_user' => $this->user, 'checkboxes' => $this->model->get_checkboxes($can_edit_subject, $is_admmod, $cur_post, 1), 'feather' => $this->feather, 'can_edit_subject' => $can_edit_subject, 'post' => $post, 'lang_bbeditor' => $lang_bbeditor));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:57,代码来源:edit.php


示例6: generate_dropdown_menu

 public function generate_dropdown_menu($show_group)
 {
     $dropdown_menu = '';
     $select_dropdown_menu = array('g_id', 'g_title');
     $result = DB::for_table('groups')->select_many($select_dropdown_menu)->where_not_equal('g_id', FEATHER_GUEST)->order_by('g_id')->find_many();
     foreach ($result as $cur_group) {
         if ($cur_group['g_id'] == $show_group) {
             $dropdown_menu .= "\t\t\t\t\t\t\t" . '<option value="' . $cur_group['g_id'] . '" selected="selected">' . feather_escape($cur_group['g_title']) . '</option>' . "\n";
         } else {
             $dropdown_menu .= "\t\t\t\t\t\t\t" . '<option value="' . $cur_group['g_id'] . '">' . feather_escape($cur_group['g_title']) . '</option>' . "\n";
         }
     }
     return $dropdown_menu;
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:14,代码来源:userlist.php


示例7: display

 public function display()
 {
     global $lang_common;
     if ($this->user->g_read_board == '0') {
         message($lang_common['No view'], '403');
     }
     // Load the help.php language file
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/help.php';
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_help['Help']);
     define('FEATHER_ACTIVE_PAGE', 'help');
     $this->header->setTitle($page_title)->display();
     $this->feather->render('help.php', array('lang_help' => $lang_help, 'lang_common' => $lang_common));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:14,代码来源:help.php


示例8: display

 public function display()
 {
     global $lang_common;
     if ($this->user->g_read_board == '0') {
         message($lang_common['No view'], '403');
     }
     // Load the index.php language file
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/index.php';
     $page_title = array(feather_escape($this->config['o_board_title']));
     define('FEATHER_ALLOW_INDEX', 1);
     define('FEATHER_ACTIVE_PAGE', 'index');
     $this->header->setTitle($page_title)->display();
     $this->feather->render('index.php', array('index_data' => $this->model->print_categories_forums(), 'lang_common' => $lang_common, 'lang_index' => $lang_index, 'stats' => $this->model->collect_stats(), 'feather_config' => $this->config, 'online' => $this->model->fetch_users_online(), 'forum_actions' => $this->model->get_forum_actions(), 'cur_cat' => 0));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:15,代码来源:index.php


示例9: display

 public function display()
 {
     global $lang_common, $lang_admin_common, $lang_admin_index;
     require FEATHER_ROOT . 'include/common_admin.php';
     if (!$this->user->is_admmod) {
         message($lang_common['No permission'], '403');
     }
     define('FEATHER_ADMIN_CONSOLE', 1);
     // Load the admin_index.php language file
     require FEATHER_ROOT . 'lang/' . $admin_language . '/index.php';
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_admin_common['Admin'], $lang_admin_common['Server statistics']);
     define('FEATHER_ACTIVE_PAGE', 'admin');
     $this->header->setTitle($page_title)->display();
     generate_admin_menu('index');
     $total = $this->model->get_total_size();
     $this->feather->render('admin/statistics.php', array('lang_admin_common' => $lang_admin_common, 'lang_admin_index' => $lang_admin_index, 'feather_config' => $this->config, 'server_load' => $this->model->get_server_load(), 'num_online' => $this->model->get_num_online(), 'total_size' => $total['size'], 'total_records' => $total['records'], 'php_accelerator' => $this->model->get_php_accelerator(), 'feather' => $this->feather));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:18,代码来源:statistics.php


示例10: display

 public function display($id, $name = null, $page = null)
 {
     global $lang_common, $lang_forum;
     if ($this->user->g_read_board == '0') {
         message($lang_common['No view'], '403');
     }
     if ($id < 1) {
         message($lang_common['Bad request'], '404');
     }
     // Load the viewforum.php language file
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/forum.php';
     // Fetch some informations about the forum
     $cur_forum = $this->model->get_info_forum($id);
     // Is this a redirect forum? In that case, redirect!
     if ($cur_forum['redirect_url'] != '') {
         header('Location: ' . $cur_forum['redirect_url']);
         exit;
     }
     // Sort out who the moderators are and if we are currently a moderator (or an admin)
     $mods_array = $cur_forum['moderators'] != '' ? unserialize($cur_forum['moderators']) : array();
     $is_admmod = $this->user->g_id == FEATHER_ADMIN || $this->user->g_moderator == '1' && array_key_exists($this->user->username, $mods_array) ? true : false;
     $sort_by = $this->model->sort_forum_by($cur_forum['sort_by']);
     // Can we or can we not post new topics?
     if ($cur_forum['post_topics'] == '' && $this->user->g_post_topics == '1' || $cur_forum['post_topics'] == '1' || $is_admmod) {
         $post_link = "\t\t\t" . '<p class="postlink conr"><a href="' . get_link('post/new-topic/' . $id . '/') . '">' . $lang_forum['Post topic'] . '</a></p>' . "\n";
     } else {
         $post_link = '';
     }
     // Determine the topic offset (based on $page)
     $num_pages = ceil($cur_forum['num_topics'] / $this->user->disp_topics);
     $p = !isset($page) || $page <= 1 || $page > $num_pages ? 1 : intval($page);
     $start_from = $this->user->disp_topics * ($p - 1);
     $url_forum = url_friendly($cur_forum['forum_name']);
     // Generate paging links
     $paging_links = '<span class="pages-label">' . $lang_common['Pages'] . ' </span>' . paginate($num_pages, $p, 'forum/' . $id . '/' . $url_forum . '/#');
     $forum_actions = $this->model->get_forum_actions($id, $this->config['o_forum_subscriptions'], $cur_forum['is_subscribed']);
     $page_title = array(feather_escape($this->config['o_board_title']), feather_escape($cur_forum['forum_name']));
     define('FEATHER_ALLOW_INDEX', 1);
     define('FEATHER_ACTIVE_PAGE', 'viewforum');
     $page_head = $this->model->get_page_head($id, $num_pages, $p, $url_forum);
     $this->header->setTitle($page_title)->setPage($p)->setPagingLinks($paging_links)->setPageHead($page_head)->display();
     $this->feather->render('viewforum.php', array('id' => $id, 'forum_data' => $this->model->print_topics($id, $sort_by, $start_from), 'lang_common' => $lang_common, 'lang_forum' => $lang_forum, 'cur_forum' => $cur_forum, 'paging_links' => $paging_links, 'post_link' => $post_link, 'is_admmod' => $is_admmod, 'start_from' => $start_from, 'url_forum' => $url_forum, 'forum_actions' => $forum_actions));
     $this->footer->display('viewforum', $id, $p, '', $id, $num_pages);
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:44,代码来源:viewforum.php


示例11: display

 public function display()
 {
     global $lang_common, $lang_admin_maintenance, $lang_admin_common;
     require FEATHER_ROOT . 'include/common_admin.php';
     if ($this->user->g_id != FEATHER_ADMIN) {
         message($lang_common['No permission'], '403');
     }
     define('FEATHER_ADMIN_CONSOLE', 1);
     // Load the admin_options.php language file
     require FEATHER_ROOT . 'lang/' . $admin_language . '/maintenance.php';
     $action = '';
     if ($this->request->post('action')) {
         $action = $this->request->post('action');
     } elseif ($this->request->get('action')) {
         $action = $this->request->get('action');
     }
     if ($action == 'rebuild') {
         $this->model->rebuild();
         $page_title = array(feather_escape($this->config['o_board_title']), $lang_admin_maintenance['Rebuilding search index']);
         $this->feather->render('admin/maintenance/rebuild.php', array('lang_admin_maintenance' => $lang_admin_maintenance, 'page_title' => $page_title));
         $query_str = $this->model->get_query_str();
         exit('<script type="text/javascript">window.location="' . get_link('admin/maintenance/') . $query_str . '"</script><hr /><p>' . sprintf($lang_admin_maintenance['Javascript redirect failed'], '<a href="' . get_link('admin/maintenance/') . $query_str . '">' . $lang_admin_maintenance['Click here'] . '</a>') . '</p>');
     }
     if ($action == 'prune') {
         $prune_from = feather_trim($this->request->post('prune_from'));
         $prune_sticky = intval($this->request->post('prune_sticky'));
         $page_title = array(feather_escape($this->config['o_board_title']), $lang_admin_common['Admin'], $lang_admin_common['Prune']);
         define('FEATHER_ACTIVE_PAGE', 'admin');
         $this->header->setTitle($page_title)->display();
         generate_admin_menu('maintenance');
         if ($this->request->post('prune_comply')) {
             $this->model->prune_comply($prune_from, $prune_sticky);
         }
         $this->feather->render('admin/maintenance/prune.php', array('lang_admin_maintenance' => $lang_admin_maintenance, 'lang_admin_common' => $lang_admin_common, 'prune_sticky' => $prune_sticky, 'prune_from' => $prune_from, 'prune' => $this->model->get_info_prune($prune_sticky, $prune_from)));
         $this->footer->display();
     }
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_admin_common['Admin'], $lang_admin_common['Maintenance']);
     define('FEATHER_ACTIVE_PAGE', 'admin');
     $this->header->setTitle($page_title)->display();
     generate_admin_menu('maintenance');
     $this->feather->render('admin/maintenance/admin_maintenance.php', array('lang_admin_maintenance' => $lang_admin_maintenance, 'lang_admin_common' => $lang_admin_common, 'first_id' => $this->model->get_first_id(), 'categories' => $this->model->get_categories()));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:43,代码来源:maintenance.php


示例12: forget

 public function forget()
 {
     global $lang_common, $lang_login;
     define('FEATHER_QUIET_VISIT', 1);
     if (!$this->user->is_guest) {
         header('Location: ' . get_base_url());
         exit;
     }
     // Load the login.php language file
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/login.php';
     $errors = $this->model->password_forgotten();
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_login['Request pass']);
     $required_fields = array('req_email' => $lang_common['Email']);
     $focus_element = array('request_pass', 'req_email');
     define('FEATHER_ACTIVE_PAGE', 'login');
     $this->header->setTitle($page_title)->setFocusElement($focus_element)->setRequiredFields($required_fields)->display();
     $this->feather->render('login/password_forgotten.php', array('errors' => $errors, 'lang_login' => $lang_login, 'lang_common' => $lang_common));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:19,代码来源:login.php


示例13: display

 public function display()
 {
     global $lang_common, $lang_admin_common;
     require FEATHER_ROOT . 'include/common_admin.php';
     if ($this->user->g_id != FEATHER_ADMIN) {
         message($lang_common['No permission'], '403');
     }
     define('FEATHER_ADMIN_CONSOLE', 1);
     // Load the admin_options.php language file
     require FEATHER_ROOT . 'lang/' . $admin_language . '/options.php';
     if ($this->feather->request->isPost()) {
         $this->model->update_options();
     }
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_admin_common['Admin'], $lang_admin_common['Options']);
     define('FEATHER_ACTIVE_PAGE', 'admin');
     $this->header->setTitle($page_title)->display();
     generate_admin_menu('options');
     $this->feather->render('admin/options.php', array('lang_admin_options' => $lang_admin_options, 'feather_config' => $this->config, 'feather_user' => $this->user, 'languages' => forum_list_langs(), 'styles' => $this->model->get_styles(), 'times' => $this->model->get_times(), 'feather' => $this->feather));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:20,代码来源:options.php


示例14: display

 public function display()
 {
     global $lang_common, $lang_admin_common, $lang_admin_permissions;
     require FEATHER_ROOT . 'include/common_admin.php';
     if (!$this->user->is_admmod) {
         message($lang_common['No permission'], '403');
     }
     define('FEATHER_ADMIN_CONSOLE', 1);
     // Load the admin_options.php language file
     require FEATHER_ROOT . 'lang/' . $admin_language . '/permissions.php';
     // Update permissions
     if ($this->feather->request->isPost()) {
         $this->model->update_permissions();
     }
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_admin_common['Admin'], $lang_admin_common['Permissions']);
     define('FEATHER_ACTIVE_PAGE', 'admin');
     $this->header->setTitle($page_title)->display();
     generate_admin_menu('permissions');
     $this->feather->render('admin/permissions.php', array('lang_admin_permissions' => $lang_admin_permissions, 'lang_admin_common' => $lang_admin_common, 'feather_config' => $this->config));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:21,代码来源:permissions.php


示例15: display

 public function display($action = null)
 {
     global $lang_common, $lang_admin_common, $lang_admin_index;
     require FEATHER_ROOT . 'include/common_admin.php';
     if (!$this->user->is_admmod) {
         message($lang_common['No permission'], '403');
     }
     // Load the admin_index.php language file
     require FEATHER_ROOT . 'lang/' . $admin_language . '/index.php';
     define('FEATHER_ADMIN_CONSOLE', 1);
     // Check for upgrade
     if ($action == 'check_upgrade') {
         if (!ini_get('allow_url_fopen')) {
             message($lang_admin_index['fopen disabled message']);
         }
         $latest_version = trim(@file_get_contents('http://featherbb.org/latest_version'));
         if (empty($latest_version)) {
             message($lang_admin_index['Upgrade check failed message']);
         }
         if (version_compare($this->config['o_cur_version'], $latest_version, '>=')) {
             message($lang_admin_index['Running latest version message']);
         } else {
             message(sprintf($lang_admin_index['New version available message'], '<a href="http://featherbb.org/">FeatherBB.org</a>'));
         }
     } elseif ($action == 'remove_install_file') {
         $deleted = $this->remove_install_folder(FEATHER_ROOT . 'install');
         if ($deleted) {
             redirect(get_link('admin/'), $lang_admin_index['Deleted install.php redirect']);
         } else {
             message($lang_admin_index['Delete install.php failed']);
         }
     }
     $install_folder_exists = is_dir(FEATHER_ROOT . 'install');
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_admin_common['Admin'], $lang_admin_common['Index']);
     define('FEATHER_ACTIVE_PAGE', 'admin');
     $this->header->setTitle($page_title)->display();
     generate_admin_menu('index');
     $this->feather->render('admin/index.php', array('lang_admin_index' => $lang_admin_index, 'install_file_exists' => $install_folder_exists, 'feather_config' => $this->config));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:40,代码来源:index.php


示例16: display

 public function display()
 {
     global $lang_common, $lang_admin_common;
     require FEATHER_ROOT . 'include/common_admin.php';
     if (!$this->user->is_admmod) {
         message($lang_common['No permission'], '403');
     }
     define('FEATHER_ADMIN_CONSOLE', 1);
     // The plugin to load should be supplied via GET
     $plugin = $this->request->get('plugin') ? $this->request->get('plugin') : '';
     if (!preg_match('%^AM?P_(\\w*?)\\.php$%i', $plugin)) {
         message($lang_common['Bad request'], '404');
     }
     // AP_ == Admins only, AMP_ == admins and moderators
     $prefix = substr($plugin, 0, strpos($plugin, '_'));
     if ($this->user->g_moderator == '1' && $prefix == 'AP') {
         message($lang_common['No permission'], '403');
     }
     // Make sure the file actually exists
     if (!file_exists(FEATHER_ROOT . 'plugins/' . $plugin)) {
         message(sprintf($lang_admin_common['No plugin message'], $plugin));
     }
     // Construct REQUEST_URI if it isn't set TODO?
     if (!isset($_SERVER['REQUEST_URI'])) {
         $_SERVER['REQUEST_URI'] = (isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : '') . '?' . (isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '');
     }
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_admin_common['Admin'], str_replace('_', ' ', substr($plugin, strpos($plugin, '_') + 1, -4)));
     define('FEATHER_ACTIVE_PAGE', 'admin');
     $this->header->setTitle($page_title)->display();
     // Attempt to load the plugin. We don't use @ here to suppress error messages,
     // because if we did and a parse error occurred in the plugin, we would only
     // get the "blank page of death"
     include FEATHER_ROOT . 'plugins/' . $plugin;
     if (!defined('FEATHER_PLUGIN_LOADED')) {
         message(sprintf($lang_admin_common['Plugin failed message'], $plugin));
     }
     $this->feather->render('admin/loader.php');
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:39,代码来源:plugins.php


示例17: display

 public function display()
 {
     global $lang_common, $lang_search, $lang_forum, $lang_topic, $pd;
     // Load the search.php language file
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/search.php';
     require FEATHER_ROOT . 'lang/' . $this->user->language . '/forum.php';
     if ($this->user->g_read_board == '0') {
         message($lang_common['No view'], '403');
     } elseif ($this->user->g_search == '0') {
         message($lang_search['No search permission'], false, '403 Forbidden');
     }
     require FEATHER_ROOT . 'include/search_idx.php';
     // Figure out what to do :-)
     if ($this->request->get('action') || $this->request->get('search_id')) {
         $search = $this->model->get_search_results();
         // We have results to display
         if (isset($search['is_result'])) {
             $page_title = array(feather_escape($this->config['o_board_title']), $lang_search['Search results']);
             define('FEATHER_ACTIVE_PAGE', 'search');
             $this->header->setTitle($page_title)->display();
             $this->feather->render('search/header.php', array('lang_common' => $lang_common, 'lang_search' => $lang_search, 'search' => $search));
             if ($search['show_as'] == 'posts') {
                 require FEATHER_ROOT . 'lang/' . $this->user->language . '/topic.php';
                 require FEATHER_ROOT . 'include/parser.php';
             }
             $this->model->display_search_results($search, $this->feather);
             $this->feather->render('search/footer.php', array('search' => $search));
             $this->footer->display();
         } else {
             message($lang_search['No hits']);
         }
     }
     $page_title = array(feather_escape($this->config['o_board_title']), $lang_search['Search']);
     $focus_element = array('search', 'keywords');
     define('FEATHER_ACTIVE_PAGE', 'search');
     $this->header->setTitle($page_title)->setFocusElement($focus_element)->display();
     $this->feather->render('search/form.php', array('lang_common' => $lang_common, 'lang_search' => $lang_search, 'feather_config' => $this->config, 'feather' => $this->feather, 'forums' => $this->model->get_list_forums()));
     $this->footer->display();
 }
开发者ID:beaver-dev,项目名称:featherbb,代码行数:39,代码来源:search.php


示例18: feather_escape

}
?>
" size="50" maxlength="80" /><br /></label>
<?php 
if ($feather_config['o_regs_verify'] == '1') {
    ?>
						<label class="required"><strong><?php 
    echo $lang_register['Confirm email'];
    ?>
 <span><?php 
    echo $lang_common['Required'];
    ?>
</span></strong><br />
						<input type="text" name="req_email2" value="<?php 
    if ($feather->request->post('req_email2')) {
        echo feather_escape($feather->request->post('req_email2'));
    }
    ?>
" size="50" maxlength="80" /><br /></label>
<?php 
}
?>
					</div>
				</fieldset>
			</div>
<?php 
// Only display the language selection box if there's more than one language available
if (count($languages) > 1) {
    ?>
			<div class="inform">
				<fieldset>
开发者ID:beaver-dev,项目名称:featherbb,代码行数:31,代码来源:form.php


示例19: get_base_url

?>
"<?php 
echo $button_status;
?>
 /></p>
			<div class="clearer"></div>
		</div>
		<ul class="crumbs">
			<li><a href="<?php 
echo get_base_url();
?>
"><?php 
echo $lang_common['Index'];
?>
</a></li>
			<li><span>»&#160;</span><a href="<?php 
echo get_link('forum/' . $id . '/' . $url_forum . '/');
?>
"><?php 
echo feather_escape($cur_forum['forum_name']);
?>
</a></li>
			<li><span>»&#160;</span><strong><?php 
echo $lang_misc['Moderate'];
?>
</strong></li>
		</ul>
		<div class="clearer"></div>
	</div>
</div>
</form>
开发者ID:beaver-dev,项目名称:featherbb,代码行数:31,代码来源:moderator_forum.php


示例20: print_posts


                      

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP feature_enabled函数代码示例发布时间:2022-05-15
下一篇:
PHP fctErrorMSG函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap