本文整理汇总了PHP中display_calendar函数的典型用法代码示例。如果您正苦于以下问题:PHP display_calendar函数的具体用法?PHP display_calendar怎么用?PHP display_calendar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了display_calendar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gmmktime
}
}
if (empty($start_date) || $start_date <= 0) {
$start_date = gmmktime(0, 0, 0, intval(create_date('m', cal_date(time(), $config['board_timezone']))), intval(create_date('d', cal_date(time(), $config['board_timezone']))), intval(create_date('Y', cal_date(time(), $config['board_timezone']))));
}
// get the forum id selected
$fid = '';
if (isset($_POST['selected_id']) || isset($_GET['fid'])) {
$fid = isset($_POST['selected_id']) ? $_POST['selected_id'] : $_GET['fid'];
if ($fid != 'Root') {
$type = substr($fid, 0, 1);
$id = intval(substr($fid, 1));
if (!in_array($type, array(POST_FORUM_URL, POST_CAT_URL))) {
$type = POST_CAT_URL;
$id = 0;
}
$fid = $type . $id;
if ($fid == POST_CAT_URL . '0') {
$fid = 'Root';
}
}
}
$calendar_start_date = create_date('F Y', cal_date($start_date, $config['board_timezone']));
// Header
$template->assign_vars(array('L_CALENDAR' => $lang['Calendar'], 'L_CALENDAR_START_DATE' => $calendar_start_date, 'U_CALENDAR' => append_sid('calendar.' . PHP_EXT)));
display_calendar('CALENDAR_MONTH', 0, $start_date, $fid);
// system
$s_hidden_fields = '';
$nav_separator = empty($nav_separator) ? empty($lang['Nav_Separator']) ? ' » ' : $lang['Nav_Separator'] : $nav_separator;
$template->assign_vars(array('NAV_SEPARATOR' => $nav_separator, 'S_ACTION' => append_sid('calendar.' . PHP_EXT), 'S_HIDDEN_FIELDS' => $s_hidden_fields));
full_page_generation('calendar_body.tpl', $lang['Calendar'], '', '');
示例2: template_top
include_once $_SERVER['DOCUMENT_ROOT'] . '/xtracks-app/bootstrap.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Analyze Landing Pages', NULL, NULL, NULL);
?>
<div id="info">
<h2>Analyze Incoming Landing Pages</h2>
</div>
<?php
display_calendar('/ajax/sort_landing_pages.php', true, true, true, true, true, true);
?>
<script type="text/javascript">
document.observe('dom:loaded', function() {
loadContent('/ajax/sort_landing_pages.php',null);
});
</script>
<?php
template_bottom();
示例3: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//show the template
template_top('Account Overview', NULL, NULL, NULL);
?>
<div class="row" style="margin-bottom: 15px;">
<div class="col-xs-12">
<h6>Account Overview Screen</h6>
<small>The account overview screen gives you a quick glance at how all of your campaigns are currently performing.</small>
</div>
</div>
<?php
display_calendar('/tracking202/ajax/account_overview.php', true, false, true, false, true, true);
?>
<script type="text/javascript">
loadContent('/tracking202/ajax/account_overview.php',null);
</script>
<?php
template_bottom();
示例4: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Spy View', NULL, NULL, NULL);
?>
<div id="info">
<h2>Spy View</h2>
Spy is a live view of visitors interacting with your affiliate campaigns.
</div>
<?php
display_calendar('/tracking202/ajax/click_history.php?spy=1', false, true, true, false, false, true, false);
?>
<script type="text/javascript">
if($('s-status-loading')) { $('s-status-loading').style.display=''; }
runSpy();
new PeriodicalExecuter(runSpy, 5);
</script>
<?php
template_bottom();
示例5: T_
"/>
<input type="hidden" name="year" value="<?php
print $year;
?>
"/>
<input type="hidden" name="respondent_id" value="<?php
print $respondent_id;
?>
"/>
<input type="hidden" name="contact_phone_id" value="<?php
print $contact_phone_id;
?>
"/>
<input type="submit" class="btn btn-primary pull-right" value="<?php
echo T_("Schedule Appointment");
?>
"/>
</form>
<?php
}
print "</div>";
}
}
} else {
display_calendar($respondent_id, $questionnaire_id);
}
}
}
print "<br/><div class='col-md-12'><a class='btn btn-warning pull-left' href='?'>" . T_("Clear") . "</a><a class='btn btn-default pull-right' href='javascript:parent.closePopup();'>" . T_("Cancel") . "</a></div><div class='clearfix'></div>";
xhtml_foot();
$db->CompleteTrans();
示例6: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Rotators Breakdown Overview', NULL, NULL, NULL);
?>
<div class="row" style="margin-bottom: 15px;">
<div class="col-xs-12">
<h6>Rotators Breakdown Overview</h6>
<small>The breakdown overview allows you to see your rotators stats per day, per hour, or an interval that you set.</small>
</div>
</div>
<?php
display_calendar('/tracking202/ajax/sort_rotator.php', true, false, true, false, true, true, true);
?>
<script type="text/javascript">
loadContent('/tracking202/ajax/sort_rotator.php',null);
</script>
<?php
template_bottom();
示例7: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/xtracks-app/bootstrap.php';
AUTH::require_user();
//show the template
template_top('Breakdown Overview', NULL, NULL, NULL);
?>
<div id="info">
<h2>Breakdown Overview</h2>
The breakdown overview allows you to see your stats per day, per hour, or an interval that you set.
</div>
<?php
display_calendar('/ajax/sort_breakdown.php', true, true, true, false, true, true);
?>
<script type="text/javascript">
document.observe('dom:loaded', function() {
loadContent('/ajax/sort_breakdown.php',null);
});
</script>
<?php
template_bottom();
示例8: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/xtracks-app/bootstrap.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Analyze Your Text Advertisements', NULL, NULL, NULL);
?>
<div id="info">
<h2>Analyze Your Text Advertisements</h2>
</div>
<?php
display_calendar('/ajax/sort_text_ads.php', true, true, true, true, true, true);
?>
<script type="text/javascript">
document.observe('dom:loaded', function() {
loadContent('/ajax/sort_text_ads.php',null);
});
</script>
<?php
template_bottom();
示例9: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/xtracks-app/bootstrap.php';
AUTH::require_user();
//show the template
template_top('Hourly Overview', NULL, NULL, NULL);
?>
<div id="info">
<h2>Hourly Overview</h2>
The breakdown overview allows you to see your stats per hour average.
</div>
<?php
display_calendar('/ajax/sort_hourly.php', true, true, true, false, true, true);
?>
<script type="text/javascript">
document.observe('dom:loaded', function() {
loadContent('/ajax/sort_hourly.php',null);
});
</script>
<?php
template_bottom();
示例10: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Analyze Browsers', NULL, NULL, NULL);
?>
<div class="row" style="margin-bottom: 15px;">
<div class="col-xs-12">
<h6>Analyze Incoming Browsers</h6>
</div>
</div>
<?php
display_calendar('/tracking202/ajax/sort_browsers.php', true, true, true, true, true, true);
?>
<script type="text/javascript">
loadContent('/tracking202/ajax/sort_browsers.php',null);
</script>
<?php
template_bottom();
示例11: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Analyze Incoming Countries', NULL, NULL, NULL);
?>
<div class="row" style="margin-bottom: 15px;">
<div class="col-xs-12">
<h6>Analyze Incoming Countries</h6>
</div>
</div>
<?php
display_calendar('/tracking202/ajax/sort_countries.php', true, true, true, true, true, true);
?>
<script type="text/javascript">
loadContent('/tracking202/ajax/sort_countries.php',null);
</script>
<?php
template_bottom();
示例12: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Analyze Devices', NULL, NULL, NULL);
?>
<div class="row" style="margin-bottom: 15px;">
<div class="col-xs-12">
<h6>Analyze Incoming Devices</h6>
</div>
</div>
<?php
display_calendar('/tracking202/ajax/sort_devices.php', true, true, true, true, true, true);
?>
<script type="text/javascript">
loadContent('/tracking202/ajax/sort_devices.php',null);
</script>
<?php
template_bottom();
示例13: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Analyze Your Keywords', NULL, NULL, NULL);
?>
<div id="info">
<h2>Analyze Your Keywords</h2>
</div>
<?php
display_calendar('/tracking202/ajax/sort_keywords.php', true, true, true, true, true, true);
?>
<script type="text/javascript">
loadContent('/tracking202/ajax/sort_keywords.php',null);
</script>
<?php
template_bottom();
示例14: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Analyze Your Text Advertisements', NULL, NULL, NULL);
?>
<div class="row" style="margin-bottom: 15px;">
<div class="col-xs-12">
<h6>Analyze Your Text Advertisements</h6>
</div>
</div>
<?php
display_calendar('/tracking202/ajax/sort_text_ads.php', true, true, true, true, true, true);
?>
<script type="text/javascript">
loadContent('/tracking202/ajax/sort_text_ads.php',null);
</script>
<?php
template_bottom();
示例15: page_header
//.........这里部分代码省略.........
$global_message_output = sprintf($lang['ctracker_gmb_link'], $config['ctracker_global_message'], $config['ctracker_global_message']);
}
$template->assign_block_vars('ctracker_message', array('ROW_COLOR' => 'e1ffdf', 'ICON_GLOB' => $images['ctracker_note'], 'L_MESSAGE_TEXT' => $global_message_output, 'L_MARK_MESSAGE' => $lang['ctracker_gmb_mark'], 'U_MARK_MESSAGE' => append_sid('index.' . PHP_EXT . '?marknow=globmsg')));
}
if (($config['login_history'] == 1 || $config['login_ip_check'] == 1) && $user->data['session_logged_in']) {
$template->assign_block_vars('login_sec_link', array());
}
/*
* CrackerTracker Password Expiry Check
*/
if ($user->data['session_logged_in'] && $config['ctracker_pw_control'] == 1) {
$pwd_expiry_time = $user->data['user_passchg'] + (!empty($config['ctracker_pw_validity']) ? (int) $config['ctracker_pw_validity'] : 365) * 24 * 60 * 60;
if (time() > $pwd_expiry_time) {
$template->assign_block_vars('ctracker_message', array('ROW_COLOR' => 'ffdfdf', 'ICON_GLOB' => $images['ctracker_note'], 'L_MESSAGE_TEXT' => sprintf($lang['ctracker_info_pw_expired'], $config['ctracker_pw_validity'], $user->data['user_id']), 'L_MARK_MESSAGE' => '', 'U_MARK_MESSAGE' => ''));
}
}
/*
* CrackerTracker Debug Mode Check
*/
if (defined('CT_DEBUG_MODE') && CT_DEBUG_MODE === true && $user->data['user_level'] == ADMIN) {
$template->assign_block_vars('ctracker_message', array('ROW_COLOR' => 'ffdfdf', 'ICON_GLOB' => $images['ctracker_note'], 'L_MESSAGE_TEXT' => $lang['ctracker_dbg_mode'], 'L_MARK_MESSAGE' => '', 'U_MARK_MESSAGE' => ''));
}
// CrackerTracker v5.x
if ($config['switch_header_table']) {
$template->assign_block_vars('switch_header_table', array('HEADER_TEXT' => $config['header_table_text'], 'L_STAFF_MESSAGE' => $lang['staff_message']));
}
if ($config['show_calendar_box_index']) {
$path_parts = pathinfo($_SERVER['SCRIPT_NAME']);
if ($path_parts['basename'] != CMS_PAGE_LOGIN) {
if (!defined('IN_CALENDAR')) {
if (intval($config['calendar_header_cells']) > 0) {
$template->assign_block_vars('switch_calendar_box', array());
include_once IP_ROOT_PATH . 'includes/functions_calendar.' . PHP_EXT;
display_calendar('CALENDAR_BOX', intval($config['calendar_header_cells']));
}
}
}
}
$top_html_block_text = get_ad('glt');
$header_banner_text = get_ad('glh');
$nav_menu_ads_top = get_ad('nmt');
$nav_menu_ads_bottom = get_ad('nmb');
$social_connect_buttons = '';
if (!empty($config['enable_social_connect'])) {
include_once IP_ROOT_PATH . 'includes/class_social_connect.' . PHP_EXT;
$available_networks = SocialConnect::get_available_networks();
foreach ($available_networks as $social_network) {
$social_connect_url = append_sid(CMS_PAGE_LOGIN . '?social_network=' . $social_network->get_name_clean());
$social_connect_img = '<img src="' . IP_ROOT_PATH . 'images/social_connect/' . $social_network->get_name_clean() . '_button_connect.png" alt="" title="' . $social_network->get_name() . '" />';
$social_connect_buttons .= '<a href="' . $social_connect_url . '">' . $social_connect_img . '</a>';
}
}
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array('TOTAL_USERS_ONLINE' => $l_online_users, 'LOGGED_IN_USER_LIST' => $online_userlist, 'BOT_LIST' => !empty($online_botlist) ? $online_botlist : '', 'AC_LIST_TEXT' => $ac_online_users['text'], 'AC_LIST' => $ac_online_users['list'], 'RECORD_USERS' => sprintf($lang['Record_online_users'], $config['record_online_users'], create_date($config['default_dateformat'], $config['record_online_date'], $config['board_timezone'])), 'TOP_HTML_BLOCK' => $top_html_block_text, 'S_HEADER_BANNER' => empty($header_banner_text) ? false : true, 'HEADER_BANNER_CODE' => $header_banner_text, 'NAV_MENU_ADS_TOP' => $nav_menu_ads_top, 'NAV_MENU_ADS_BOTTOM' => $nav_menu_ads_bottom, 'L_SEARCH_NEW' => $lang['Search_new'], 'L_SEARCH_NEW2' => $lang['Search_new2'], 'L_NEW' => $lang['New'], 'L_NEW2' => empty($lang['NEW_POSTS_SHORT']) ? $lang['New_Label'] : $lang['NEW_POSTS_SHORT'], 'L_NEW3' => empty($lang['NEW_POSTS_LONG']) ? $lang['New_Messages_Label'] : $lang['NEW_POSTS_LONG'], 'L_POSTS' => $lang['Posts'], 'L_DISPLAY_ALL' => !empty($u_display_new) ? $u_display_new['all'] : '', 'L_DISPLAY_U' => !empty($u_display_new) ? $u_display_new['u'] : '', 'L_DISPLAY_M' => !empty($u_display_new) ? $u_display_new['m'] : '', 'L_DISPLAY_P' => !empty($u_display_new) ? $u_display_new['p'] : '', 'L_DISPLAY_UNREAD' => !empty($u_display_new) ? $u_display_new['unread'] : '', 'L_DISPLAY_MARKED' => !empty($u_display_new) ? $u_display_new['marked'] : '', 'L_DISPLAY_PERMANENT' => !empty($u_display_new) ? $u_display_new['permanent'] : '', 'L_DISPLAY_U_S' => !empty($u_display_new) ? $u_display_new['u_string_full'] : '', 'L_DISPLAY_M_S' => !empty($u_display_new) ? $u_display_new['m_string_full'] : '', 'L_DISPLAY_P_S' => !empty($u_display_new) ? $u_display_new['p_string_full'] : '', 'L_DISPLAY_UNREAD_S' => !empty($u_display_new) ? $u_display_new['unread_string'] : '', 'L_DISPLAY_MARKED_S' => !empty($u_display_new) ? $u_display_new['marked_string'] : '', 'L_DISPLAY_PERMANENT_S' => !empty($u_display_new) ? $u_display_new['permanent_string'] : '', 'U_DISPLAY_U' => !empty($u_display_new) ? $u_display_new['u_url'] : '', 'U_DISPLAY_M' => !empty($u_display_new) ? $u_display_new['m_url'] : '', 'U_DISPLAY_P' => !empty($u_display_new) ? $u_display_new['p_url'] : '', 'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'], 'L_SEARCH_SELF' => $lang['Search_your_posts'], 'L_RECENT' => $lang['Recent_topics'], 'L_WATCHED_TOPICS' => $lang['Watched_Topics'], 'L_BOOKMARKS' => $lang['Bookmarks'], 'L_DIGESTS' => $lang['DIGESTS'], 'L_DRAFTS' => $lang['Drafts'], 'RANDOM_QUOTE' => $randomquote_phrase, 'L_LOGIN_SEC' => $lang['ctracker_gmb_loginlink'], 'U_LOGIN_SEC' => append_sid('ct_login_history.' . PHP_EXT), 'L_VIEWER' => $lang['Username'], 'L_NUMBER' => $lang['Views'], 'L_STAMP' => $lang['Last_updated'], 'L_YOUR_ACTIVITY' => $lang['Cpl_Personal_Profile'], 'L_PROFILE_EXPLAIN' => $lang['profile_explain'], 'L_PROFILE_MAIN' => $lang['profile_main'], 'L_CPL_NAV' => $lang['Profile'], 'L_CPL_REG_INFO' => $lang['Registration_info'], 'L_CPL_DELETE_ACCOUNT' => $lang['Delete_My_Account'], 'L_CPL_PROFILE_INFO' => $lang['Profile_info'], 'L_CPL_PROFILE_VIEWED' => $lang['Profile_viewed'], 'L_CPL_AVATAR_PANEL' => $lang['Avatar_panel'], 'L_CPL_SIG_EDIT' => $lang['sig_edit_link'], 'L_CPL_PREFERENCES' => $lang['Preferences'], 'L_CPL_SETTINGS_OPTIONS' => $lang['Cpl_Settings_Options'], 'L_CPL_BOARD_SETTINGS' => $lang['Cpl_Board_Settings'], 'L_CPL_MORE_INFO' => $lang['Cpl_More_info'], 'L_CPL_NEWMSG' => $lang['Cpl_NewMSG'], 'L_CPL_PERSONAL_PROFILE' => $lang['Cpl_Personal_Profile'], 'L_CPL_OWN_POSTS' => $lang['Search_your_posts'], 'L_CPL_OWN_PICTURES' => $lang['Personal_Gallery'], 'L_CPL_BOOKMARKS' => $lang['Bookmarks'], 'L_CPL_SUBSCFORUMS' => $lang['UCP_SubscForums'], 'L_CPL_PRIVATE_MESSAGES' => $lang['Private_Messages'], 'L_CPL_INBOX' => $lang['Inbox'], 'L_CPL_OUTBOX' => $lang['Outbox'], 'L_CPL_SAVEBOX' => $lang['Savebox'], 'L_CPL_SENTBOX' => $lang['Sentbox'], 'L_CPL_DRAFTS' => $lang['Drafts'], 'L_CPL_ZEBRA' => $lang['UCP_ZEBRA'], 'L_CPL_ZEBRA_EXPLAIN' => $lang['FRIENDS_EXPLAIN'], 'U_CPL_PROFILE_VIEWED' => append_sid('profile_view_user.' . PHP_EXT . '?' . POST_USERS_URL . '=' . $user->data['user_id']), 'U_CPL_NEWMSG' => append_sid(CMS_PAGE_PRIVMSG . '?mode=post'), 'U_CPL_REGISTRATION_INFO' => append_sid(CMS_PAGE_PROFILE . '?mode=editprofile&cpl_mode=reg_info'), 'U_CPL_DELETE_ACCOUNT' => append_sid('contact_us.' . PHP_EXT . '?account_delete=' . $user->data['user_id']), 'U_CPL_PROFILE_INFO' => append_sid(CMS_PAGE_PROFILE . '?mode=editprofile&cpl_mode=profile_info'), 'U_CPL_PREFERENCES' => append_sid(CMS_PAGE_PROFILE . '?mode=editprofile&cpl_mode=preferences'), 'U_CPL_BOARD_SETTINGS' => append_sid(CMS_PAGE_PROFILE . '?mode=editprofile&cpl_mode=board_settings'), 'U_CPL_AVATAR_PANEL' => append_sid(CMS_PAGE_PROFILE . '?mode=editprofile&cpl_mode=avatar'), 'U_CPL_SIGNATURE' => append_sid(CMS_PAGE_PROFILE . '?mode=signature'), 'U_CPL_OWN_POSTS' => append_sid(CMS_PAGE_SEARCH . '?search_author=' . urlencode($user->data['username']) . '&showresults=posts'), 'U_CPL_OWN_PICTURES' => append_sid('album.' . PHP_EXT . '?user_id=' . $user->data['user_id']), 'U_CPL_CALENDAR_SETTINGS' => append_sid('profile_options.' . PHP_EXT . '?sub=preferences&module=calendar_settings&' . POST_USERS_URL . '=' . $user->data['user_id']), 'U_CPL_SUBFORUM_SETTINGS' => append_sid('profile_options.' . PHP_EXT . '?sub=preferences&module=forums_settings&' . POST_USERS_URL . '=' . $user->data['user_id']), 'U_CPL_SUBSCFORUMS' => append_sid('subsc_forums.' . PHP_EXT), 'U_CPL_BOOKMARKS' => append_sid(CMS_PAGE_SEARCH . '?search_id=bookmarks'), 'U_CPL_INBOX' => append_sid(CMS_PAGE_PRIVMSG . '?folder=inbox'), 'U_CPL_OUTBOX' => append_sid(CMS_PAGE_PRIVMSG . '?folder=outbox'), 'U_CPL_SAVEBOX' => append_sid(CMS_PAGE_PRIVMSG . '?folder=savebox'), 'U_CPL_SENTBOX' => append_sid(CMS_PAGE_PRIVMSG . '?folder=sentbox'), 'U_CPL_DRAFTS' => append_sid('drafts.' . PHP_EXT), 'U_CPL_ZEBRA' => append_sid(CMS_PAGE_PROFILE . '?mode=zebra&zmode=friends'), 'SOCIAL_CONNECT_BUTTONS' => $social_connect_buttons, 'P_ACTIVITY_MOD_PATH' => PLUGINS_PATH . $config['plugins']['activity']['dir'], 'U_ACTIVITY' => append_sid('activity.' . PHP_EXT), 'L_ACTIVITY' => $lang['Activity']));
}
// The following assigns all _common_ variables that may be used at any point in a template.
$current_time = create_date($config['default_dateformat'], time(), $config['board_timezone']);
$template->assign_vars(array('DOCTYPE_HTML' => $doctype_html, 'HEADER_LANG' => $header_lang, 'NAV_LINKS' => $nav_links_html, 'S_HIGHSLIDE' => !empty($config['thumbnail_highslide']) ? true : false, 'S_HEADER_DROPDOWN' => $config['switch_header_dropdown'] ? true : false, 'S_HEADER_DD_LOGGED_IN' => $config['switch_header_dropdown'] && $user->data['upi2db_access'] ? true : false, 'S_AJAX_FEATURES' => !empty($config['ajax_features']) ? true : false, 'S_AJAX_USER_CHECK' => $ajax_user_check, 'S_AJAX_USER_CHECK_ALT' => $ajax_user_check_alt, 'U_LOGIN_LOGOUT' => append_sid(IP_ROOT_PATH . $u_login_logout), 'USER_USERNAME' => $user->data['session_logged_in'] ? htmlspecialchars($user->data['username']) : $lang['Guest'], 'UPI2DB_FIRST_USE' => $upi2db_first_use, 'L_PAGE_TITLE' => $meta_content['page_title_clean'], 'PAGE_TITLE' => $config['page_title_simple'] ? $meta_content['page_title_clean'] : $meta_content['page_title'], 'META_TAG' => $phpbb_meta, 'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit), 'CURRENT_TIME' => sprintf($lang['Current_time'], $current_time), 'CURRENT_TIME_ONLY' => $current_time, 'S_TIMEZONE' => $time_message, 'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text, 'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread, 'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new, 'PRIVMSG_IMG' => $icon_pm, 'NEW_PM_SWITCH' => $new_pm_switch, 'PRIVATE_CHAT_IMG' => $icon_private_chat, 'U_PRIVATE_CHAT' => $u_private_chat, 'NEW_PRIVATE_CHAT_SWITCH' => $new_private_chat_switch, 'L_USERNAME' => $lang['Username'], 'L_PASSWORD' => $lang['Password'], 'L_LOGIN_LOGOUT' => $l_login_logout, 'L_LOGIN_LOGOUT2' => $l_login_logout2, 'L_LOGIN' => $lang['Login'], 'L_HOME' => $lang['Home'], 'L_INDEX' => sprintf($lang['Forum_Index'], $config['sitename']), 'L_REGISTER' => $lang['Register'], 'L_BOARDRULES' => $lang['BoardRules'], 'L_PROFILE' => $lang['Profile'], 'L_CPL_NAV' => $lang['Profile'], 'L_SEARCH' => $lang['Search'], 'L_PRIVATEMSGS' => $lang['Private_Messages'], 'L_WHO_IS_ONLINE' => $lang['Who_is_Online'], 'L_MEMBERLIST' => $lang['Memberlist'], 'L_FAQ' => $lang['FAQ'], 'L_ADV_SEARCH' => $lang['Adv_Search'], 'L_SEARCH_EXPLAIN' => $lang['Search_Explain'], 'L_KB' => $lang['KB_title'], 'L_NEWS' => $lang['News_Cmx'], 'L_USERGROUPS' => $lang['Usergroups'], 'L_BOARD_DISABLE' => $lang['Board_disabled'], 'L_AJAX_SHOUTBOX' => $lang['Ajax_Chat'], 'L_BACK_TOP' => $lang['Back_to_top'], 'L_BACK_BOTTOM' => $lang['Back_to_bottom'], 'L_CALENDAR' => $lang['Calendar'], 'L_DOWNLOADS' => $lang['Downloads'], 'L_DOWNLOADS_ADV' => $lang['Downloads_ADV'], 'L_HACKS_LIST' => $lang['Hacks_List'], 'L_AVATAR_GEN' => $lang['AvatarGenerator'], 'L_LINKS' => $lang['Links'], 'L_WORDGRAPH' => $lang['Wordgraph'], 'L_ACRONYMS' => $lang['Acronyms'], 'L_SITEMAP' => $lang['Sitemap'], 'L_RANKS' => $lang['Rank_Header'], 'L_STAFF' => $lang['Staff'], 'L_CONTACT_US' => $lang['Contact_us'], 'L_UPLOAD_IMAGE' => $lang['Upload_Image_Local'], 'L_UPLOADED_IMAGES' => $lang['Uploaded_Images_Local'], 'L_ALBUM' => $lang['Album'], 'L_PIC_NAME' => $lang['Pic_Name'], 'L_DESCRIPTION' => $lang['Description'], 'L_GO' => $lang['Go'], 'L_SEARCH_CONTENTS' => $lang['Search_Contents'], 'L_SEARCH_MATCHES' => $lang['Search_Matches'], 'U_PREFERENCES' => append_sid('profile_options.' . PHP_EXT), 'L_PREFERENCES' => $lang['Preferences']));
// get the nav sentence
$nav_key = '';
$nav_key = !empty($meta_content['cat_id']) ? POST_CAT_URL . $meta_content['cat_id'] : $nav_key;
$nav_key = !empty($meta_content['forum_id']) ? POST_FORUM_URL . $meta_content['forum_id'] : $nav_key;
$nav_key = !empty($meta_content['topic_id']) ? POST_TOPIC_URL . $meta_content['topic_id'] : $nav_key;
$nav_key = !empty($meta_content['post_id']) ? POST_POST_URL . $meta_content['post_id'] : $nav_key;
if (empty($nav_key)) {
$selected_id = request_var('selected_id', 0);