Пример #1
0
    if ($forum_config['o_database_revision'] > FORUM_DB_REVISION) {
        $alert_items['newer_database'] = '<p><strong>' . $lang_common['Database mismatch'] . '</strong> ' . $lang_common['Database mismatch alert'] . '</p>';
    }
    if (!empty($alert_items)) {
        $admod_links['alert'] = '<li id="alert"><a href="' . forum_link($forum_url['admin_index']) . '">' . $lang_common['New alerts'] . '</a></li>';
    }
    ($hook = get_hook('hd_alert')) ? eval($hook) : null;
}
$tpl_main = str_replace('<!-- forum_admod -->', !empty($admod_links) ? '<ul id="brd-admod">' . implode(' ', $admod_links) . '</ul>' : '', $tpl_main);
// END SUBST - <!-- forum_admod -->
// MAIN SECTION INTERFACE ELEMENT SUBSTITUTION
$main_elements = array();
// Top breadcrumbs
$main_elements['<!-- forum_crumbs_top -->'] = FORUM_PAGE != 'index' ? '<div id="brd-crumbs-top" class="crumbs">' . "\n\t" . '<p>' . generate_crumbs(false) . '</p>' . "\n" . '</div>' : '';
// Bottom breadcrumbs
$main_elements['<!-- forum_crumbs_end -->'] = FORUM_PAGE != 'index' ? '<div id="brd-crumbs-end" class="crumbs">' . "\n\t" . '<p>' . generate_crumbs(false) . '</p>' . "\n" . '</div>' : '';
// Main section heading
$main_elements['<!-- forum_main_title -->'] = '<h1 class="main-title">' . (isset($forum_page['main_title']) ? $forum_page['main_title'] : forum_htmlencode(is_array($last_crumb = end($forum_page['crumbs'])) ? reset($last_crumb) : $last_crumb)) . (isset($forum_page['main_head_pages']) ? ' <small>' . $forum_page['main_head_pages'] . '</small>' : '') . '</h1>' . "\n";
// Top pagination and post links
$main_elements['<!-- forum_main_pagepost_top -->'] = !empty($forum_page['page_post']) ? '<div id="brd-pagepost-top" class="main-pagepost gen-content">' . "\n\t" . implode("\n\t", $forum_page['page_post']) . "\n" . '</div>' : '';
// Bottom pagination and postlink
$main_elements['<!-- forum_main_pagepost_end -->'] = !empty($forum_page['page_post']) ? '<div id="brd-pagepost-end" class="main-pagepost gen-content">' . "\n\t" . implode("\n\t", $forum_page['page_post']) . "\n" . '</div>' : '';
// Main section menu e.g. profile menu
$main_elements['<!-- forum_main_menu -->'] = !empty($forum_page['main_menu']) ? '<div class="main-menu gen-content">' . "\n\t" . '<ul>' . "\n\t\t" . implode("\n\t\t", $forum_page['main_menu']) . "\n\t" . '</ul>' . "\n" . '</div>' : '';
// Main section menu e.g. profile menu
if (substr(FORUM_PAGE, 0, 5) == 'admin' && FORUM_PAGE_TYPE != 'paged') {
    $main_elements['<!-- forum_admin_menu -->'] = '<div class="admin-menu gen-content">' . "\n\t" . '<ul>' . "\n\t\t" . generate_admin_menu(false) . "\n\t" . '</ul>' . "\n" . '</div>';
    $forum_page['admin_sub'] = generate_admin_menu(true);
    $main_elements['<!-- forum_admin_submenu -->'] = $forum_page['admin_sub'] != '' ? '<div class="admin-submenu gen-content">' . "\n\t" . '<ul>' . "\n\t\t" . $forum_page['admin_sub'] . "\n\t" . '</ul>' . "\n" . '</div>' : '';
}
($hook = get_hook('hd_main_elements')) ? eval($hook) : null;
Пример #2
0
    $forum_page['crumbs'] = array(array($forum_config['o_board_title'], forum_link($forum_url['index'])), array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])), array($lang_admin_common['Management'], forum_link($forum_url['admin_reports'])), $lang_admin_reindex['Rebuilding index title']);
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html lang="<?php 
    $lang_common['lang_identifier'];
    ?>
" dir="<?php 
    echo $lang_common['lang_direction'];
    ?>
">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><?php 
    echo generate_crumbs(true);
    ?>
</title>
<style type="text/css">
body {
	font: 68.75% Verdana, Arial, Helvetica, sans-serif;
	color: #333333;
	background-color: #FFFFFF
}
</style>
</head>
<body>

<p><?php 
    echo $lang_admin_reindex['Rebuilding index'];
    ?>