bb_option('name'); ?> </a></h1> <div id="tagline"><?php bb_option('description'); ?> </div> </div> <!-- navigation START --> <div id="navigation"> <ul id="menus"> <li class="<?php if (is_front()) { ?> current_page_item <?php } ?> page_item"><a class="home" title="Главная" href="<?php bb_option('uri'); ?> ">Главная</a></li> <li class="<?php if (is_bb_search()) { ?> current_page_item <?php } ?> page_item"><a href="<?php
<?php if (!is_topic()) { ?> <p> <label for="tags-input"><?php printf(__('Enter a few words (called <a href="%s">tags</a>) separated by commas to help someone find your topic:'), bb_get_tag_page_link()); ?> <input id="tags-input" name="tags" type="text" size="50" maxlength="100" value="<?php bb_tag_name(); ?> " tabindex="4" /> </label> </p> <?php } if (is_bb_tag() || is_front()) { ?> <p> <label for="forum-id"><?php _e('Pick a section:'); ?> <?php bb_new_topic_forum_dropdown(); ?> </label> </p> <?php } ?> <p class="submit"> <input type="submit" id="postformsub" name="Submit" value="<?php
function bb_anon_filter_new_topic_url($url) { if (is_front() && bb_get_option('bb_anon_write_topics') == "Y") { $url = add_query_arg('new', '1', bb_get_option('uri')); } return $url; }
file_cache($_SERVER['REQUEST_URI']); } $page = from($_GET, 'page'); $page = $page ? (int) $page : 1; $perpage = config('posts.perpage'); $posts = get_posts(null, $page, $perpage); $total = ''; $tl = blog_tagline(); if ($tl) { $tagline = ' - ' . $tl; } else { $tagline = ''; } if (empty($posts) || $page < 1) { // a non-existing page render('no-posts', array('title' => 'Blog - ' . blog_title(), 'description' => blog_title() . ' Blog Homepage', 'canonical' => site_url(), 'bodyclass' => 'noposts', 'is_front' => is_front(true))); die; } render('main', array('title' => 'Blog - ' . blog_title(), 'description' => blog_title() . ' Blog Homepage', 'canonical' => site_url() . 'blog', 'page' => $page, 'posts' => $posts, 'bodyclass' => 'inblog', 'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Blog', 'pagination' => has_pagination($total, $perpage, $page), 'is_blog' => is_blog(true))); } else { if (config("views.counter") != "true") { if (!login()) { file_cache($_SERVER['REQUEST_URI']); } } $post = get_static_post($static); if (!$post) { not_found(); } $post = $post[0]; if (config("views.counter") == "true") {
$page = $page ? (int) $page : 1; $perpage = config('posts.perpage'); $posts = get_posts(null, $page, $perpage); $total = ''; $tl = blog_tagline(); if ($tl) { $tagline = ' - ' . $tl; } else { $tagline = ''; } if (empty($posts) || $page < 1) { // a non-existing page render('no-posts', array('title' => blog_title() . $tagline, 'description' => blog_description(), 'canonical' => site_url(), 'bodyclass' => 'noposts', 'is_front' => is_front(true))); die; } render('main', array('title' => blog_title() . $tagline, 'description' => blog_description(), 'canonical' => site_url(), 'page' => $page, 'posts' => $posts, 'bodyclass' => 'infront', 'breadcrumb' => '', 'pagination' => has_pagination($total, $perpage, $page), 'is_front' => is_front(true))); }); // Get submitted login data post('/login', function () { $proper = is_csrf_proper(from($_REQUEST, 'csrf_token')); $captcha = isCaptcha(from($_REQUEST, 'g-recaptcha-response')); $user = from($_REQUEST, 'user'); $pass = from($_REQUEST, 'password'); if ($proper && $captcha && !empty($user) && !empty($pass)) { session($user, $pass); $log = session($user, $pass); if (!empty($log)) { config('views.root', 'system/admin/views'); render('login', array('title' => 'Login - ' . blog_title(), 'description' => 'Login page on ' . blog_title(), 'canonical' => site_url(), 'error' => '<ul>' . $log . '</ul>', 'bodyclass' => 'editprofile', 'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Login')); } } else {