コード例 #1
0
ファイル: index.php プロジェクト: Nekrofage/FJR
 //
 //-- mod: sf
 // send constants
 $template->assign_vars(array('L_SUBFORUMS' => $lang['sf_Subforums'], 'L_FORUM' => $lang['Forum'], 'L_TOPICS' => $lang['Topics'], 'L_REPLIES' => $lang['Replies'], 'L_VIEWS' => $lang['Views'], 'L_POSTS' => $lang['Posts'], 'L_LASTPOST' => $lang['Last_Post'], 'L_MODERATOR' => $lang['Moderators']));
 if (!defined('IN_VIEWFORUM')) {
     //-- mod: sf - end
     define('SHOW_ONLINE', true);
     // www.phpBB-SEO.com SEO TOOLKIT BEGIN - TITLE
     $page_title = !empty($this_cat_title) ? $this_cat_title : $board_config['sitename'];
     // www.phpBB-SEO.com SEO TOOLKIT END - TITLE
     // www.phpBB-SEO.com SEO TOOLKIT BEGIN - META
     $phpbb_seo->seo_meta['meta_desc'] = $phpbb_seo->meta_filter_txt("{$page_title} : " . $phpbb_seo->seo_meta['meta_desc_def']);
     $phpbb_seo->seo_meta['keywords'] = $phpbb_seo->make_keywords($phpbb_seo->seo_meta['meta_desc']);
     // www.phpBB-SEO.com SEO TOOLKIT END - META
     include $phpbb_root_path . 'includes/page_header.' . $phpEx;
     build_toolbar('index', $l_privmsgs_text, $s_privmsg_new);
     include $get->url('includes/class_onlinelist');
     $onlinelist = new onlinelist_class();
     $onlinelist->display();
     unset($onlinelist);
     $birthday->generate_list();
     $rcs->display_legend();
     $newest_color = $rcs->get_colors($newest_userdata);
     $template->set_filenames(array('body' => 'index_body.tpl'));
     $search_latest_hours = explode(',', $board_config['search_latest_hours']);
     for ($search_i = 0; $search_i < count($search_latest_hours) - 1; $search_i++) {
         $template->assign_block_vars('search_latest', array('L_SEARCH_LATEST_XXH' => sprintf($lang['Search_latest_XXh'], $search_latest_hours[$search_i]), 'U_SEARCH_LATEST_XXH' => append_sid('search.' . $phpEx . '?search_id=latest&amp;hours=' . $search_latest_hours[$search_i])));
     }
     $template->assign_vars(array('L_SEARCH_LATEST' => $lang['Search_latest'], 'L_SEARCH_LATEST_XXH' => sprintf($lang['Search_latest_XXh'], $search_latest_hours[$search_i]), 'U_SEARCH_LATEST_XXH' => append_sid('search.' . $phpEx . '?search_id=latest&amp;hours=' . $search_latest_hours[$search_i])));
     $template->assign_vars(array('TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts), 'TOTAL_USERS' => sprintf($l_total_user_s, $total_users), 'TOTAL_TOPICS' => $total_topics, 'BOARD_STARTED' => $start_date, 'POSTS_PER_DAY' => $posts_per_day, 'TOPICS_PER_DAY' => $topics_per_day, 'USERS_PER_DAY' => $users_per_day, 'TOTAL_MALE' => sprintf($l_total_male, $total_male), 'TOTAL_FEMALE' => sprintf($l_total_female, $total_female), 'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . $get->url('userlist', array('mode' => 'viewprofile', POST_USERS_URL => $newest_uid), true) . '"' . $newest_color . '>', $newest_user, '</a>'), 'FORUM_IMG' => $images['forum'], 'FORUM_NEW_IMG' => $images['forum_new'], 'FORUM_LOCKED_IMG' => $images['forum_locked'], 'U_SHOUTBOX' => append_sid("shoutbox.{$phpEx}"), 'L_SHOUTBOX' => $lang['Shoutbox'], 'U_SHOUTBOX_MAX' => append_sid("shoutbox_max.{$phpEx}"), 'L_FORUM' => $lang['Forum'], 'L_POSTS_PER_DAY' => $lang['Posts_per_day'], 'L_TOTAL_TOPICS' => $lang['Total_topics'], 'L_TOPICS_PER_DAY' => $lang['Topics_per_day'], 'L_USERS_PER_DAY' => $lang['Users_per_day'], 'L_BOARD_STARTED' => $lang['Board_started'], 'L_TOPICS' => $lang['Topics'], 'L_REPLIES' => $lang['Replies'], 'L_VIEWS' => $lang['Views'], 'L_POSTS' => $lang['Posts'], 'L_LASTPOST' => $lang['Last_Post'], 'L_NO_NEW_POSTS' => $lang['No_new_posts'], 'L_NEW_POSTS' => $lang['New_posts'], 'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], 'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], 'L_ONLINE_EXPLAIN' => $lang['Online_explain'], 'L_MODERATOR' => $lang['Moderators'], 'L_FORUM_LOCKED' => $lang['Forum_is_locked'], 'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'], 'U_MARK_READ' => append_sid("index.{$phpEx}?mark=forums")));
     //-- mod: sf
コード例 #2
0
ファイル: viewforum.php プロジェクト: Nekrofage/FJR
//
// Dump out the page header and load viewforum template
//
define('SHOW_ONLINE', true);
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - TITLE
$extra_title = $start != 0 ? ' - ' . $lang['Page'] . (floor($start / $board_config['topics_per_page']) + 1) : '';
$page_title = strip_tags($forum_row['forum_name']) . $extra_title;
// www.phpBB-SEO.com SEO TOOLKIT END - TITLE
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - META
$phpbb_seo->seo_meta['meta_desc'] = $phpbb_seo->meta_filter_txt($board_config['sitename'] . " : {$page_title} :  " . $forum_row['forum_desc']);
$phpbb_seo->seo_meta['keywords'] = $phpbb_seo->make_keywords($phpbb_seo->seo_meta['meta_desc']);
// www.phpBB-SEO.com SEO TOOLKIT END - META
include $phpbb_root_path . 'includes/page_header.' . $phpEx;
//-- mod : toolbar -------------------------------------------------------------
//-- add
build_toolbar('viewforum', $l_privmsgs_text, $s_privmsg_new, $forum_id);
//-- fin mod : toolbar ---------------------------------------------------------
$template->set_filenames(array('body' => 'viewforum_body.tpl'));
make_jumpbox('viewforum.' . $phpEx);
// Start Smilies Invasion Mod
if ($board_config['allow_smilies']) {
    $forum_row['forum_name'] = smilies_pass($forum_row['forum_name']);
}
// V: Addon Smilies&Bbcode too long desc
$long_desc = $forum_row['forum_desc_long'];
if ($long_desc) {
    $bbcode_uid = make_bbcode_uid();
    $long_desc = smilies_pass($long_desc);
    $long_desc = bbencode_first_pass($long_desc, $bbcode_uid);
    $long_desc = bbencode_second_pass($long_desc, $bbcode_uid);
    $long_desc = nl2br($long_desc);
コード例 #3
0
ファイル: touch.php プロジェクト: voitto/eggs
function mobile_toolbar($title, $options = array())
{
    $options['no-end'] = true;
    build_toolbar($title, $options);
}
コード例 #4
0
ファイル: viewtopic.php プロジェクト: Nekrofage/FJR
    while ($meta_row = $db->sql_fetchrow($result)) {
        $m_kewrd .= " " . $meta_row['word_text'];
    }
}
$phpbb_seo->seo_meta['keywords'] = $phpbb_seo->make_keywords("{$m_kewrd} " . $phpbb_seo->seo_meta['meta_desc']);
// www.phpBB-SEO.com SEO TOOLKIT END - META
include $phpbb_root_path . 'includes/page_header.' . $phpEx;
//-- mod : toolbar -------------------------------------------------------------
//-- add
if ($can_watch_topic) {
    $uw_parm = $is_watching_topic ? 'unwatch' : 'watch';
    $tlbr_more = array('watch' => array('link_pgm' => 'viewtopic', 'link_parms' => array(POST_TOPIC_URL => intval($topic_id), $uw_parm => 'topic', 'start' => intval($start)), 'txt' => $is_watching_topic ? 'Stop_watching_topic' : 'Start_watching_topic', 'img' => $is_watching_topic ? 'tlbr_un_watch' : 'tlbr_watch'));
} else {
    $tlbr_more = array();
}
build_toolbar('viewtopic', $l_privmsgs_text, $s_privmsg_new, $forum_id, $tlbr_more);
//-- fin mod : toolbar ---------------------------------------------------------
//-- mod : quick post es -------------------------------------------------------
//-- add
$forum_qpes = intval($forum_topic_data['forum_qpes']);
if (!empty($forum_qpes)) {
    include $phpbb_root_path . 'qpes.' . $phpEx;
}
//-- fin mod : quick post es ---------------------------------------------------
//
// User authorisation levels output
//
$s_auth_can = ($is_auth['auth_post'] ? $lang['Rules_post_can'] : $lang['Rules_post_cannot']) . '<br />';
$s_auth_can .= ($is_auth['auth_reply'] ? $lang['Rules_reply_can'] : $lang['Rules_reply_cannot']) . '<br />';
$s_auth_can .= ($is_auth['auth_edit'] ? $lang['Rules_edit_can'] : $lang['Rules_edit_cannot']) . '<br />';
$s_auth_can .= ($is_auth['auth_delete'] ? $lang['Rules_delete_can'] : $lang['Rules_delete_cannot']) . '<br />';