本文整理汇总了PHP中FileTemplate::put方法的典型用法代码示例。如果您正苦于以下问题:PHP FileTemplate::put方法的具体用法?PHP FileTemplate::put怎么用?PHP FileTemplate::put使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileTemplate
的用法示例。
在下文中一共展示了FileTemplate::put方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_menu_content
public function get_menu_content()
{
$tpl = new FileTemplate('calendar/CalendarModuleMiniMenu.tpl');
$tpl->add_lang(LangLoader::get('common', 'calendar'));
$tpl->put('CALENDAR', CalendarAjaxCalendarController::get_view(true));
return $tpl->render();
}
示例2: get_content
public function get_content()
{
$tpl = new FileTemplate('newsletter/newsletter_mini.tpl');
$tpl->add_lang(LangLoader::get('common', 'newsletter'));
$tpl->put('USER_MAIL', AppContext::get_current_user()->get_email());
return $tpl;
}
示例3: create_response
/**
* @param Template $view
* @return InstallDisplayResponse
*/
private function create_response()
{
$view = new FileTemplate('install/license.tpl');
$view->put('LICENSE_FORM', $this->form->display());
$step_title = $this->lang['step.license.title'];
$response = new InstallDisplayResponse(1, $step_title, $view);
return $response;
}
示例4: build_view
private function build_view()
{
$config_html = new SitemapExportConfig('sitemap/export/sitemap.html.tpl', 'sitemap/export/module_map.html.tpl', 'sitemap/export/sitemap_section.html.tpl', 'sitemap/export/sitemap_link.html.tpl');
$sitemap = SitemapService::get_personal_sitemap();
$tpl = new FileTemplate('sitemap/ViewSitemapController.tpl');
$tpl->add_lang($this->lang);
$tpl->put('SITEMAP', $sitemap->export($config_html));
return $tpl;
}
示例5: build_response
private function build_response(View $view)
{
$body_view = new FileTemplate('newsletter/NewsletterBody.tpl');
$body_view->add_lang($this->lang);
$body_view->put('TEMPLATE', $view);
$response = new SiteDisplayResponse($body_view);
$breadcrumb = $response->get_graphical_environment()->get_breadcrumb();
$breadcrumb->add($this->lang['newsletter'], NewsletterUrlBuilder::home()->rel());
$breadcrumb->add($this->lang['unsubscribe.newsletter'], NewsletterUrlBuilder::unsubscribe()->rel());
$graphical_environment = $response->get_graphical_environment();
$graphical_environment->set_page_title($this->lang['unsubscribe.newsletter'], $this->lang['newsletter']);
$graphical_environment->get_seo_meta_data()->set_canonical_url(NewsletterUrlBuilder::unsubscribe());
return $response;
}
示例6: get_menu_content
public function get_menu_content()
{
//Create file template
$tpl = new FileTemplate('guestbook/GuestbookModuleMiniMenu.tpl');
//Assign the lang file to the tpl
$tpl->add_lang(LangLoader::get('common', 'guestbook'));
$tpl->put('U_GUESTBOOK', GuestbookUrlBuilder::home()->rel());
$guestbook_cache = GuestbookMessagesCache::load();
$random_message = $guestbook_cache->get_message(array_rand($guestbook_cache->get_messages()));
if ($random_message !== null) {
$user_group_color = User::get_group_color($random_message['groups'], $random_message['level']);
$tpl->put_all(array('C_ANY_MESSAGE_GUESTBOOK' => true, 'C_USER_GROUP_COLOR' => !empty($user_group_color), 'C_MORE_CONTENTS' => strlen($random_message['contents']) >= 200, 'C_VISITOR' => empty($random_message['user_id']), 'CONTENTS' => $random_message['contents'], 'SHORT_CONTENTS' => nl2br(TextHelper::substr_html($random_message['contents'], 0, 200)), 'USER_PSEUDO' => $random_message['login'], 'USER_LEVEL_CLASS' => UserService::get_level_class($random_message['level']), 'USER_GROUP_COLOR' => $user_group_color, 'U_MESSAGE' => GuestbookUrlBuilder::home($random_message['page'], $random_message['id'])->rel(), 'U_PROFILE' => UserUrlBuilder::profile($random_message['user_id'])->rel()));
}
return $tpl->render();
}
示例7: get_menu_content
public function get_menu_content()
{
//Create file template
$tpl = new FileTemplate('web/WebModuleMiniMenu.tpl');
//Assign the lang file to the tpl
$tpl->add_lang(LangLoader::get('common', 'web'));
//Load module cache
$web_cache = WebCache::load();
$partners_weblinks = $web_cache->get_partners_weblinks();
$tpl->put('C_PARTNERS', !empty($partners_weblinks));
foreach ($partners_weblinks as $partner) {
$partner_picture = new Url($partner['partner_picture']);
$picture = $partner_picture->rel();
$tpl->assign_block_vars('partners', array('C_HAS_PARTNER_PICTURE' => !empty($picture), 'NAME' => $partner['name'], 'U_PARTNER_PICTURE' => $picture, 'U_VISIT' => WebUrlBuilder::visit($partner['id'])->rel()));
}
return $tpl->render();
}
示例8: get_view
private function get_view()
{
global $Bread_crumb, $LANG, $encoded_title, $id_article, $article_infos, $id_cat;
load_module_lang('wiki');
include_once PATH_TO_ROOT . '/wiki/wiki_functions.php';
$bread_crumb_key = 'wiki';
require_once PATH_TO_ROOT . '/wiki/wiki_bread_crumb.php';
$config = WikiConfig::load();
$tpl = new FileTemplate('wiki/index.tpl');
if ($config->get_number_articles_on_index() > 1) {
$result = PersistenceContext::get_querier()->select("SELECT a.title, a.encoded_title, a.id\r\n\t\t\tFROM " . PREFIX . "wiki_articles a\r\n\t\t\tLEFT JOIN " . PREFIX . "wiki_contents c ON c.id_contents = a.id_contents\r\n\t\t\tWHERE a.redirect = 0\r\n\t\t\tORDER BY c.timestamp DESC\r\n\t\t\tLIMIT :number_articles_on_index OFFSET 0", array('number_articles_on_index' => $config->get_number_articles_on_index()));
$tpl->assign_block_vars('last_articles', array('C_ARTICLES' => $result->get_rows_count(), 'L_ARTICLES' => $LANG['wiki_last_articles_list']));
$i = 0;
while ($row = $result->fetch()) {
$tpl->assign_block_vars('last_articles.list', array('ARTICLE' => $row['title'], 'TR' => $i > 0 && $i % 2 == 0 ? '</tr><tr>' : '', 'U_ARTICLE' => url('wiki.php?title=' . $row['encoded_title'], $row['encoded_title'])));
$i++;
}
$result->dispose();
if ($i == 0) {
$tpl->put_all(array('L_NO_ARTICLE' => '<td class="center" colspan="2">' . $LANG['wiki_no_article'] . '</td>'));
}
}
//Affichage de toutes les catégories si c'est activé
if ($config->are_categories_displayed_on_index()) {
$tpl->assign_block_vars('cat_list', array('L_CATS' => $LANG['wiki_cats_list']));
$i = 0;
foreach (WikiCategoriesCache::load()->get_categories() as $id => $cat) {
//Si c'est une catégorie mère
if ($cat['id_parent'] == 0) {
$tpl->assign_block_vars('cat_list.list', array('CAT' => stripslashes($cat['title']), 'U_CAT' => url('wiki.php?title=' . $cat['encoded_title'], $cat['encoded_title'])));
$i++;
}
}
if ($i == 0) {
$tpl->put_all(array('L_NO_CAT' => $LANG['wiki_no_cat']));
}
}
$tpl->put_all(array('TITLE' => $config->get_wiki_name() ? $config->get_wiki_name() : $LANG['wiki'], 'INDEX_TEXT' => $config->get_index_text() ? FormatingHelper::second_parse(wiki_no_rewrite($config->get_index_text())) : $LANG['wiki_empty_index'], 'L_EXPLORER' => $LANG['wiki_explorer'], 'U_EXPLORER' => url('explorer.php')));
$page_type = 'index';
include PATH_TO_ROOT . '/wiki/wiki_tools.php';
$tpl->put('wiki_tools', $tools_tpl);
return new StringTemplate($tpl->render());
}
示例9: get_content
public function get_content()
{
$user = AppContext::get_current_user();
$theme_id = AppContext::get_request()->get_string('switchtheme', '');
if (!empty($theme_id)) {
$theme = ThemesManager::get_theme($theme_id);
if ($theme !== null) {
if ($theme->is_activated() && $theme->check_auth()) {
$user->update_theme($theme->get_id());
}
}
$query_string = preg_replace('`switchtheme=[^&]+`', '', QUERY_STRING);
AppContext::get_response()->redirect(trim(HOST . SCRIPT . (!empty($query_string) ? '?' . $query_string : '')));
}
$tpl = new FileTemplate('ThemesSwitcher/themeswitcher.tpl');
$tpl->add_lang(LangLoader::get('themeswitcher_common', 'ThemesSwitcher'));
foreach (ThemesManager::get_activated_and_authorized_themes_map() as $id => $theme) {
$selected = $user->get_theme() == $id ? ' selected="selected"' : '';
$tpl->assign_block_vars('themes', array('NAME' => $theme->get_configuration()->get_name(), 'IDNAME' => $id, 'SELECTED' => $selected));
}
$tpl->put('DEFAULT_THEME', UserAccountsConfig::load()->get_default_theme());
return $tpl;
}
示例10: array
$tpl->assign_block_vars('cat.no_sub_article', array('NO_SUB_ARTICLE' => $LANG['wiki_no_sub_article']));
}
$i = 0;
foreach (WikiCategoriesCache::load()->get_categories() as $key => $cat) {
if ($cat['id_parent'] == $id_cat) {
$tpl->assign_block_vars('cat.list_cats', array('NAME' => stripslashes($cat['title']), 'U_CAT' => url('wiki.php?title=' . $cat['encoded_title'], $cat['encoded_title'])));
$i++;
}
}
if ($i == 0) {
$tpl->assign_block_vars('cat.no_sub_cat', array('NO_SUB_CAT' => $LANG['wiki_no_sub_cat']));
}
}
$page_type = $article_infos['is_cat'] == 1 ? 'cat' : 'article';
include '../wiki/wiki_tools.php';
$tpl->put('wiki_tools', $tools_tpl);
$tpl->display();
} elseif (!empty($encoded_title) && $num_rows == 0) {
$error_controller = PHPBoostErrors::unexisting_page();
DispatchManager::redirect($error_controller);
} else {
$modulesLoader = AppContext::get_extension_provider_service();
$module_name = 'wiki';
$module = $modulesLoader->get_provider($module_name);
if ($module->has_extension_point(HomePageExtensionPoint::EXTENSION_POINT)) {
echo $module->get_extension_point(HomePageExtensionPoint::EXTENSION_POINT)->get_home_page()->get_view()->display();
} elseif (!$no_alert_on_error) {
$controller = new UserErrorController(LangLoader::get_message('error', 'status-messages-common'), 'Le module <strong>' . $module_name . '</strong> n\'a pas de fonction get_home_page!', UserErrorController::FATAL);
DispatchManager::redirect($controller);
}
}
示例11: url
} else {
AppContext::get_response()->redirect(HOST . DIR . url('/pages/pages.php?error=delete_failure', '', '&'));
}
}
$tpl = new FileTemplate('pages/post.tpl');
if ($id_edit > 0) {
//Autorisation particulière ?
$special_auth = !empty($page_infos['auth']);
$array_auth = unserialize($page_infos['auth']);
//Vérification de l'autorisation d'éditer la page
if ($special_auth && !AppContext::get_current_user()->check_auth($array_auth, EDIT_PAGE) || !$special_auth && !AppContext::get_current_user()->check_auth($config_authorizations, EDIT_PAGE)) {
AppContext::get_response()->redirect(HOST . DIR . url('/pages/pages.php?error=e_auth', '', '&'));
}
//Erreur d'enregistrement ?
if ($error == 'cat_contains_cat') {
$tpl->put('message_helper', MessageHelper::display($LANG['pages_cat_contains_cat'], MessageHelper::WARNING));
} elseif ($error == 'preview') {
$tpl->put('message_helper', MessageHelper::display($LANG['pages_notice_previewing'], MessageHelper::NOTICE));
$tpl->assign_block_vars('previewing', array('PREVIEWING' => pages_second_parse(stripslashes(pages_parse($contents))), 'TITLE' => stripslashes($title)));
}
//Génération de l'arborescence des catégories
$cats = array();
//numéro de la catégorie de la page ou de la catégorie
$id_cat_display = $page_infos['is_cat'] == 1 ? $categories[$page_infos['id_cat']]['id_parent'] : $page_infos['id_cat'];
$cat_list = display_pages_cat_explorer($id_cat_display, $cats, 1);
$tpl->put_all(array('CONTENTS' => !empty($error) ? stripslashes($contents) : pages_unparse($page_infos['contents']), 'COUNT_HITS_CHECKED' => !empty($error) ? $count_hits == 1 ? 'checked="checked"' : '' : ($page_infos['count_hits'] == 1 ? 'checked="checked"' : ''), 'COMMENTS_ACTIVATED_CHECKED' => !empty($error) ? $enable_com == 1 ? 'checked="checked"' : '' : ($page_infos['activ_com'] == 1 ? 'checked="checked"' : ''), 'DISPLAY_PRINT_LINK_CHECKED' => !empty($error) ? $display_print_link == 1 ? 'checked="checked"' : '' : ($page_infos['display_print_link'] == 1 ? 'checked="checked"' : ''), 'OWN_AUTH_CHECKED' => !empty($page_infos['auth']) ? 'checked="checked"' : '', 'CAT_0' => $id_cat_display == 0 ? 'selected' : '', 'ID_CAT' => $id_cat_display, 'SELECTED_CAT' => $id_cat_display, 'CHECK_IS_CAT' => 'disabled="disabled"' . ($page_infos['is_cat'] == 1 ? ' checked="checked"' : '')));
} else {
//Autorisations
if (!AppContext::get_current_user()->check_auth($config_authorizations, EDIT_PAGE)) {
AppContext::get_response()->redirect('/pages/pages.php?error=e_auth');
}
示例12: FileTemplate
}
} else {
$error = 'e_upload_invalid_format';
}
} else {
$error = 'e_upload_failed_unwritable';
}
$error = !empty($error) ? '?error=' . $error : '';
AppContext::get_response()->redirect(HOST . SCRIPT . $error);
} else {
$template = new FileTemplate('forum/admin_ranks_add.tpl');
//Gestion erreur.
$get_error = retrieve(GET, 'error', '');
$array_error = array('e_upload_invalid_format', 'e_upload_max_weight', 'e_upload_error', 'e_upload_php_code', 'e_upload_failed_unwritable');
if (in_array($get_error, $array_error)) {
$template->put('message_helper', MessageHelper::display($LANG[$get_error], MessageHelper::WARNING));
}
if ($get_error == 'incomplete') {
$template->put('message_helper', MessageHelper::display($LANG['e_incomplete'], MessageHelper::NOTICE));
}
//On recupère les images des groupes
$rank_options = '<option value="">--</option>';
$image_folder_path = new Folder(PATH_TO_ROOT . '/forum/templates/images/ranks/');
foreach ($image_folder_path->get_files('`\\.(png|jpg|bmp|gif)$`i') as $image) {
$file = $image->get_name();
$rank_options .= '<option value="' . $file . '">' . $file . '</option>';
}
$template->put_all(array('RANK_OPTIONS' => $rank_options, 'L_REQUIRE' => LangLoader::get_message('form.explain_required_fields', 'status-messages-common'), 'L_REQUIRE_RANK_NAME' => $LANG['require_rank_name'], 'L_REQUIRE_NBR_MSG_RANK' => $LANG['require_nbr_msg_rank'], 'L_FORUM_MANAGEMENT' => $LANG['forum_management'], 'L_CAT_MANAGEMENT' => $LANG['cat_management'], 'L_ADD_CAT' => $LANG['cat_add'], 'L_FORUM_RANKS_MANAGEMENT' => LangLoader::get_message('forum.ranks_management', 'common', 'forum'), 'L_FORUM_ADD_RANKS' => LangLoader::get_message('forum.actions.add_rank', 'common', 'forum'), 'L_UPLOAD_RANKS' => $LANG['upload_rank'], 'L_UPLOAD_FORMAT' => $LANG['explain_upload_img'], 'L_UPLOAD' => $LANG['upload'], 'L_RANK_NAME' => $LANG['rank_name'], 'L_NBR_MSG' => $LANG['nbr_msg'], 'L_IMG_ASSOC' => $LANG['img_assoc'], 'L_DELETE' => LangLoader::get_message('delete', 'common'), 'L_UPDATE' => $LANG['update'], 'L_RESET' => $LANG['reset'], 'L_ADD' => LangLoader::get_message('add', 'common')));
$template->display();
}
require_once '../admin/admin_footer.php';
示例13: sprintf
} else {
$current_cat = $LANG['pages_no_selected_cat'];
}
$tpl->put_all(array('L_TITLE' => sprintf($LANG['pages_remove_this_cat'], stripslashes($page_infos['title'])), 'L_REMOVE_ALL_CONTENTS' => $LANG['pages_remove_all_contents'], 'L_MOVE_ALL_CONTENTS' => $LANG['pages_move_all_contents'], 'L_FUTURE_CAT' => $LANG['pages_future_cat'], 'L_SELECT_CAT' => $LANG['pages_change_cat'], 'L_SUBMIT' => $LANG['submit'], 'L_ROOT' => $LANG['pages_root'], 'L_ALERT_REMOVING_CAT' => $LANG['pages_confirm_remove_cat']));
$tpl->assign_block_vars('remove', array('ID_ARTICLE' => $del_cat, 'CATS' => $cat_list, 'CURRENT_CAT' => $current_cat, 'SELECTED_CAT' => $page_infos['id_cat'], 'CAT_0' => $page_infos['id_cat'] == 0 ? 'selected' : '', 'ID_CAT' => $page_infos['id_cat']));
//Gestion des erreurs
$error = retrieve(GET, 'error', '');
if ($error == 'e_cat_contains_cat') {
$errstr = $LANG['pages_cat_contains_cat'];
} elseif ($error == 'e_not_a_cat') {
$errstr = $LANG['pages_not_a_cat'];
} else {
$errstr = '';
}
if (!empty($errstr)) {
$tpl->put('message_helper', MessageHelper::display($errstr, MessageHelper::WARNING));
}
} elseif ($id_rename > 0) {
$tpl->put_all(array('ID_RENAME' => $id_rename, 'L_SUBMIT' => $LANG['submit'], 'L_TITLE' => sprintf($LANG['pages_rename_page'], stripslashes($page_infos['title'])), 'L_NEW_TITLE' => $LANG['pages_new_title'], 'L_CREATE_REDIRECTION' => $LANG['pages_create_redirection'], 'L_EXPLAIN_RENAME' => $LANG['pages_explain_rename'], 'FORMER_TITLE' => stripslashes($page_infos['title'])));
$tpl->assign_block_vars('rename', array());
//Erreur : la page existe déjà
if ($error == 'title_already_exists') {
$tpl->put('message_helper', MessageHelper::display($LANG['pages_already_exists'], MessageHelper::WARNING));
}
} elseif ($id_new > 0) {
$tpl->put_all(array('ID_NEW' => $id_new, 'L_TITLE' => sprintf($LANG['pages_creation_redirection_title'], stripslashes($page_infos['title'])), 'L_REDIRECTION_NAME' => $LANG['pages_new_title'], 'L_CREATE_REDIRECTION' => $LANG['pages_create_redirection'], 'L_SUBMIT' => $LANG['submit']));
$tpl->assign_block_vars('new', array());
//Erreur : la page existe déjà
if ($error == 'title_already_exists') {
$tpl->put('message_helper', MessageHelper::display($LANG['pages_already_exists'], MessageHelper::WARNING));
}
示例14: build_response
private function build_response(View $view)
{
$body_view = new FileTemplate('newsletter/NewsletterBody.tpl');
$body_view->add_lang($this->lang);
$body_view->put('TEMPLATE', $view);
$response = new SiteDisplayResponse($body_view);
$breadcrumb = $response->get_graphical_environment()->get_breadcrumb();
$breadcrumb->add($this->lang['newsletter'], NewsletterUrlBuilder::home()->rel());
$breadcrumb->add($this->lang['archives.list'], NewsletterUrlBuilder::archives()->rel());
if ($this->stream->get_id() > 0) {
$stream = NewsletterStreamsCache::load()->get_stream($this->stream->get_id());
$breadcrumb->add($stream->get_name(), NewsletterUrlBuilder::archives($this->stream->get_id(), $this->stream->get_rewrited_name())->rel());
}
$graphical_environment = $response->get_graphical_environment();
$graphical_environment->set_page_title($this->lang['archives.list'], $this->lang['newsletter']);
$graphical_environment->get_seo_meta_data()->set_canonical_url(NewsletterUrlBuilder::archives($this->stream->get_id(), $this->stream->get_rewrited_name()));
return $response;
}
示例15: url
} else {
$tpl->put_all(array('L_ALERT' => $LANG['alert_topic'], 'L_BACK_TOPIC' => $LANG['alert_back'], 'URL_TOPIC' => 'topic' . url('.php?id=' . $alert, '-' . $alert . '-' . Url::encode_rewrite($topic_name) . '.php')));
$tpl->assign_block_vars('alert_confirm', array('MSG' => $LANG['alert_topic_already_done']));
}
}
//Si on enregistre une alerte
if (!empty($alert_post)) {
$tpl->put_all(array('L_ALERT' => $LANG['alert_topic'], 'L_BACK_TOPIC' => $LANG['alert_back'], 'URL_TOPIC' => 'topic' . url('.php?id=' . $alert_post, '-' . $alert_post . '-' . Url::encode_rewrite($topic_name) . '.php')));
//On vérifie qu'une alerte sur le même sujet n'ait pas été postée
$nbr_alert = PersistenceContext::get_querier()->count(PREFIX . 'forum_alerts', 'WHERE idtopic=:idtopic AND status = 0', array('idtopic' => $alert_post));
if (empty($nbr_alert)) {
$alert_title = retrieve(POST, 'title', '');
$alert_contents = retrieve(POST, 'contents', '', TSTRING_PARSE);
//Instanciation de la class du forum.
$Forumfct = new Forum();
$Forumfct->Alert_topic($alert_post, $alert_title, $alert_contents);
$tpl->assign_block_vars('alert_confirm', array('MSG' => str_replace('%title', $topic_name, $LANG['alert_success'])));
} else {
$tpl->assign_block_vars('alert_confirm', array('MSG' => $LANG['alert_topic_already_done']));
}
}
//Listes les utilisateurs en lignes.
list($users_list, $total_admin, $total_modo, $total_member, $total_visit, $total_online) = forum_list_user_online("AND s.location_script LIKE '/forum/%'");
$vars_tpl = array('FORUM_NAME' => $config->get_forum_name() . ' : ' . $LANG['alert_topic'], 'DESC' => $topic['subtitle'], 'C_USER_CONNECTED' => AppContext::get_current_user()->check_level(User::MEMBER_LEVEL), 'TOTAL_ONLINE' => $total_online, 'USERS_ONLINE' => $total_online - $total_visit == 0 ? '<em>' . $LANG['no_member_online'] . '</em>' : $users_list, 'ADMIN' => $total_admin, 'MODO' => $total_modo, 'MEMBER' => $total_member, 'GUEST' => $total_visit, 'U_FORUM_CAT' => '<a href="forum' . url('.php?id=' . $topic['idcat'], '-' . $topic['idcat'] . '.php') . '">' . $category->get_name() . '</a>', 'U_TITLE_T' => '<a href="topic' . url('.php?id=' . $topic_id, '-' . $topic_id . '.php') . '">' . stripslashes($topic['title']) . '</a>', 'L_FORUM_INDEX' => $LANG['forum_index'], 'L_SUBMIT' => $LANG['submit'], 'L_PREVIEW' => $LANG['preview'], 'L_RESET' => $LANG['reset'], 'L_USER' => $total_online > 1 ? $LANG['user_s'] : $LANG['user'], 'L_ADMIN' => $total_admin > 1 ? $LANG['admin_s'] : $LANG['admin'], 'L_MODO' => $total_modo > 1 ? $LANG['modo_s'] : $LANG['modo'], 'L_MEMBER' => $total_member > 1 ? $LANG['member_s'] : $LANG['member'], 'L_GUEST' => $total_visit > 1 ? $LANG['guest_s'] : $LANG['guest'], 'L_AND' => $LANG['and'], 'L_ONLINE' => strtolower($LANG['online']));
$tpl->put_all($vars_tpl);
$tpl_top->put_all($vars_tpl);
$tpl_bottom->put_all($vars_tpl);
$tpl->put('forum_top', $tpl_top);
$tpl->put('forum_bottom', $tpl_bottom);
$tpl->display();
include '../kernel/footer.php';