本文整理汇总了PHP中makeUp函数的典型用法代码示例。如果您正苦于以下问题:PHP makeUp函数的具体用法?PHP makeUp怎么用?PHP makeUp使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了makeUp函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
if (!isset($pVals[$row[3]])) {
$pVals[$row[3]] = array($row[0], $row[1], $row[2], $row[4], $row[5]);
} else {
continue;
}
} while ($row = db_simpleSelect(1));
}
}
}
$list_topics = '';
unset($result);
$i = 1;
if (!isset($startPageModern) or !$startPageModern) {
$tpl = makeUp('main_last_discuss_cell');
} else {
$tpl = makeUp('main_modern_lcell');
}
foreach ($colls as $cols) {
$forum = $cols[5];
$numReplies = $cols[6];
if ($numReplies >= 1) {
$numReplies -= 1;
}
$topic = $cols[0];
$topic_views = $cols[8];
$topic_reverse = '';
if (isset($themeDesc) and in_array($topic, $themeDesc)) {
$topic_reverse = "<img src=\"{$main_url}/img/topic_reverse.gif\" style=\"vertical-align:middle\" alt=\"\" /> ";
}
if (!isset($preModerationType) or $preModerationType == 0) {
$topic_title = $cols[1];
示例2: Copyright
<?php
/*
This file is part of miniBB. miniBB is free discussion forums/message board software, without any warranty. See COPYING file for more details. Copyright (C) 2004 Paul Puzyrev, Sergei Larionov. www.minibb.net
*/
//$st: 1 - dont show included forum, 0 - show all (select included)
$forumsList = '';
$keyAr = 0;
if ($viewTopicsIfOnlyOneForum != 1 and $row = db_simpleSelect(0, $Tf, 'forum_id, forum_name', '', '', '', 'forum_order')) {
$i = 0;
$listForums = '';
$tpl = makeUp('main_forums_list');
do {
if ($user_id != 1 and isset($clForums) and in_array($row[0], $clForums) and isset($clForumsUsers[$row[0]]) and !in_array($user_id, $clForumsUsers[$row[0]])) {
$show = FALSE;
} else {
$show = TRUE;
}
if ($show) {
$sel = '';
if (isset($forumGroups) and isset($forumGroupsDesc) and in_array($row[0], $forumGroups)) {
$forumGroupName = $forumGroupsDesc[$keyAr];
$listForums .= "<option value={$row[0]}>{$forumGroupName}</option>";
$keyAr++;
}
if ($keyAr > 0) {
$sp = ' ';
} else {
$sp = '';
}
if (isset($st) && $st == 1) {
示例3: GridImage
require_once 'geograph/gridsquare.class.php';
$g_image = new GridImage();
}
$ok = $g_image->loadFromId($g_id);
if ($ok && $g_image->moderation_status == 'rejected' && (!isset($userRanks[$cc]) || $userRanks[$cc] == 'Member')) {
$ok = false;
}
if ($ok) {
if ($g_matches[1][$i]) {
$g_img = $g_image->getThumbnail(120, 120, false, true);
#$g_img = preg_replace('/alt="(.*?)"/','alt="'.$g_image->grid_reference.' : \1 by '.$g_image->realname.'"',$g_img);
$g_title = $g_image->grid_reference . ' : ' . htmlentities($g_image->title) . ' by ' . $g_image->realname;
$postText2 = str_replace("[[[{$g_id}]]]", "<a href=\"http://{$_SERVER['HTTP_HOST']}/photo/{$g_id}\" target=\"_blank\" title=\"{$g_title}\">{$g_img}</a>", $postText2);
} else {
$postText2 = preg_replace("/(?<!\\[)\\[\\[{$g_id}\\]\\]/", "{<a href=\"http://{$_SERVER['HTTP_HOST']}/photo/{$g_id}\" target=\"_blank\">{$g_image->grid_reference} : {$g_image->title}</a>}", $postText2);
}
}
$global_thumb_count++;
}
$thumb_count++;
} else {
$postText2 = str_replace("[[{$g_id}]]", "<a href=\"http://{$_SERVER['HTTP_HOST']}/gridref/" . str_replace(' ', '+', $g_id) . "\" target=\"_blank\">{$g_id}</a>", $postText2);
}
}
}
echo ParseTpl(makeUp('hack_preview2'));
exit;
} elseif (isset($_POST['prevForm']) and trim($_POST['postText']) == '') {
echo '';
exit;
}
示例4: highlightText
if ($row = db_searchSelect(0, $Tt, 'topic_id, forum_id, topic_title, topic_time', $sqlStr, $makeLim, 'topic_id desc')) {
$num = 1 + $page * $viewmaxsearch - (PAGE1_OFFSET + 1) * $viewmaxsearch;
do {
$txt = highlightText($row[2], $phrase, $searchType);
$datetime = convert_date($row[3]);
$forum_name = isset($forums[$row[1]]) ? $forums[$row[1]] : 'N/A';
if (isset($preModerationType) and $preModerationType > 0 and isset($premodTopics) and in_array($row[0], $premodTopics)) {
$txt = $l_topicQueued;
}
if (isset($mod_rewrite) and $mod_rewrite) {
$furl = addTopicURLPage(genTopicURL($main_url, $row[1], $forum_name, $row[0], $row[2]), PAGE1_OFFSET + 1);
} else {
$furl = "{$main_url}/{$indexphp}action=vthread&forum={$row[1]}&topic={$row[0]}";
}
$searchResults .= <<<out
<table class="tbTransparent" style="width:100%"><tr><td class="tbTransparentCell">{$num}. <span class="txtSm"><strong>{$l_posted}</strong>: {$datetime} - <strong>{$forum_name}</strong></span> / <a href="{$furl}">{$txt}</a>
</td></tr></table><br />
out;
$num++;
} while ($row = db_searchSelect(1));
}
}
//where topics
}
//numRows>0
} else {
$warning = $l_search[10];
}
echo load_header();
echo ParseTpl(makeUp('search'));
return;
示例5: ParseTpl
$USERINFO .= ParseTpl($usrCell);
}
//if posts
}
if ($user > 1 and ($user_id == 1 or $isMod == 1 and $user_id != $user and !$blockedMod)) {
/* activity link */
$act = $row[0];
$actnew = $act == 0 ? 1 : 0;
$mes1 = $act == 0 ? $l_no : $l_yes;
$mes2 = $act == 0 ? $l_yes : $l_no;
$what = $l_member;
$whatValue = "{$mes1} [<a href=\"{$main_url}/{$indexphp}action=userinfo&user={$user}&activity={$actnew}\">{$mes2}</a>]";
$USERINFO .= ParseTpl($usrCell);
/* edit profile link */
$what = $l_editPrefs;
$whatValue = "<a href=\"{$main_url}/{$indexphp}action=prefs&adminUser={$user}\">>>></a>";
$USERINFO .= ParseTpl($usrCell);
}
/* finally */
$userInfo = $l_about . ' “' . $row[1] . '”';
$title .= $l_about . ' ' . $row[1];
$tpl = makeUp('main_user_info');
} else {
$title .= $l_userNotExists;
$errorMSG = $l_userNotExists;
$correctErr = $backErrorLink;
$tpl = makeUp('main_warning');
}
echo load_header();
echo ParseTpl($tpl);
return;
示例6: load_header
}
//inserted post successfully
} else {
$errorMSG = $l_antiSpam;
$correctErr = $backErrorLink;
$title .= $l_antiSpam;
echo load_header();
echo ParseTpl(makeUp('main_warning'));
return;
}
} else {
$errorMSG = $l_forbidden;
$correctErr = $backErrorLink;
$title .= $l_forbidden;
echo load_header();
echo ParseTpl(makeUp('main_warning'));
return;
}
if (isset($themeDesc) and in_array($topic, $themeDesc)) {
$anchor = 1;
} else {
$totalPosts = db_simpleSelect(0, $Tt, 'posts_count', 'topic_id', '=', $topic);
$vmax = $viewmaxreplys;
$anchor = $totalPosts[0];
if ($anchor > $vmax) {
$anchor = $totalPosts[0] - floor($totalPosts[0] / $vmax) * $vmax;
if ($anchor == 0) {
$anchor = $vmax;
}
}
}
示例7: load_header
function load_header()
{
//we need to load this template separately, because we load page title
if (!isset($GLOBALS['forum'])) {
$GLOBALS['forum'] = 0;
}
if (!isset($GLOBALS['topic'])) {
$GLOBALS['topic'] = 0;
}
if (!isset($GLOBALS['page'])) {
$GLOBALS['page'] = 0;
}
define('HEADER_CALLED', 1);
if (!isset($GLOBALS['adminPanel'])) {
$GLOBALS['adminPanel'] = 0;
}
if (strlen($GLOBALS['action']) > 0 || $GLOBALS['adminPanel'] == 1) {
$GLOBALS['l_menu'][0] = "<a href=\"{$GLOBALS['main_url']}/{$GLOBALS['startIndex']}\">{$GLOBALS['l_menu'][0]}</a> {$GLOBALS['l_sepr']} ";
} else {
$GLOBALS['l_menu'][0] = '';
}
if ($GLOBALS['action'] != 'stats') {
$GLOBALS['l_menu'][3] = "<a href=\"{$GLOBALS['main_url']}/{$GLOBALS['indexphp']}action=stats\">{$GLOBALS['l_menu'][3]}</a> {$GLOBALS['l_sepr']} ";
} else {
$GLOBALS['l_menu'][3] = '';
}
if ($GLOBALS['viewTopicsIfOnlyOneForum'] == 1 and $GLOBALS['action'] == 'vtopic') {
$GLOBALS['l_menu'][7] = "<a href=\"#newtopic\">{$GLOBALS['l_menu'][7]}</a> " . $GLOBALS['l_sepr'] . ' ';
} elseif (isset($GLOBALS['nTop']) && $GLOBALS['nTop'] == 1 && (!isset($_GET['showSep']) || $_GET['showSep'] != 1)) {
if ($GLOBALS['action'] == 'vtopic' && isset($_GET['showSep'])) {
$GLOBALS['l_menu'][7] = isset($GLOBALS['newTopicLink']) ? $GLOBALS['newTopicLink'] . ' ' . $GLOBALS['l_sepr'] . ' ' : '';
} elseif ($GLOBALS['action'] == 'vtopic') {
$GLOBALS['l_menu'][7] = "<a href=\"#newtopic\">{$GLOBALS['l_menu'][7]}</a> {$GLOBALS['l_sepr']} ";
} elseif ($GLOBALS['action'] == 'vthread') {
$GLOBALS['l_menu'][7] = "<a href=\"#newreply\">{$GLOBALS['l_reply']}</a> {$GLOBALS['l_sepr']} ";
} else {
$GLOBALS['l_menu'][7] = '';
}
} elseif (isset($GLOBALS['mTop']) && $GLOBALS['mTop'] == 1 && $GLOBALS['action'] == '') {
$GLOBALS['l_menu'][7] = "<a href=\"#newtopic\">{$GLOBALS['l_menu'][7]}</a> {$GLOBALS['l_sepr']} ";
} else {
$GLOBALS['l_menu'][7] = '';
}
if ($GLOBALS['action'] != 'search') {
$GLOBALS['l_menu'][1] = "<a href=\"{$GLOBALS['main_url']}/{$GLOBALS['indexphp']}action=search\">{$GLOBALS['l_menu'][1]}</a> {$GLOBALS['l_sepr']} ";
} else {
$GLOBALS['l_menu'][1] = '';
}
if ($GLOBALS['action'] != 'registernew' and $GLOBALS['user_id'] == 0 and $GLOBALS['adminPanel'] != 1 and $GLOBALS['enableNewRegistrations']) {
$GLOBALS['l_menu'][2] = "<a href=\"{$GLOBALS['main_url']}/{$GLOBALS['indexphp']}action=registernew\">{$GLOBALS['l_menu'][2]}</a> {$GLOBALS['l_sepr']} ";
} else {
$GLOBALS['l_menu'][2] = '';
}
if ($GLOBALS['action'] != 'manual') {
if (isset($GLOBALS['mod_rewrite']) and $GLOBALS['mod_rewrite']) {
$urlp = $GLOBALS['manualIndex'];
} else {
$urlp = "{$GLOBALS['indexphp']}action=manual";
}
$GLOBALS['l_menu'][4] = "<a href=\"{$GLOBALS['main_url']}/{$urlp}\">{$GLOBALS['l_menu'][4]}</a> {$GLOBALS['l_sepr']} ";
} else {
$GLOBALS['l_menu'][4] = '';
}
if ($GLOBALS['action'] == 'prefs' and isset($GLOBALS['adminUser']) and $GLOBALS['adminUser'] == 0 or $GLOBALS['user_id'] == 0 or !$GLOBALS['enableProfileUpdate']) {
$GLOBALS['l_menu'][5] = '';
} else {
$GLOBALS['l_menu'][5] = "<a href=\"{$GLOBALS['main_url']}/{$GLOBALS['indexphp']}action=prefs\">{$GLOBALS['l_menu'][5]}</a> {$GLOBALS['l_sepr']} ";
}
if ($GLOBALS['user_id'] != 0) {
$GLOBALS['l_menu'][6] = "<a href=\"{$GLOBALS['main_url']}/{$GLOBALS['indexphp']}mode=logout\">{$GLOBALS['l_menu'][6]}</a> {$GLOBALS['l_sepr']} ";
} else {
$GLOBALS['l_menu'][6] = '';
}
if (!isset($GLOBALS['title']) or $GLOBALS['title'] == '') {
$GLOBALS['title'] = $GLOBALS['sitename'];
}
if (isset($GLOBALS['includeHeader']) and $GLOBALS['includeHeader'] != '') {
include $GLOBALS['includeHeader'];
return;
}
return ParseTpl(makeUp('main_header'));
}
示例8: elseif
} elseif ($user_id == $topicPoster and $user_id != 0 and $user_id != 1 and $topicSticky != 1 and !$c4) {
if ($topicStatus == 0 and $userUnlock != 2) {
$closeTopic = "<a href=\"{$main_url}/{$indexphp}action=locktopic&forum={$forum}&topic={$topic}&chstat=1\">{$l_closeTopic}</a>";
} elseif ($topicStatus == 1 and $userUnlock == 1 and $userUnlock != 2) {
$closeTopic = "<a href=\"{$main_url}/{$indexphp}action=locktopic&forum={$forum}&topic={$topic}&chstat=0\">{$l_unlockTopic}</a>";
} else {
$closeTopic = '';
}
}
if ($page > PAGE1_OFFSET + 1) {
$tpage = ' - ' . $l_page . ' ' . ($page - PAGE1_OFFSET);
} else {
$tpage = '';
}
$title1 = $title;
$title = strip_tags($topicName);
if (isset($addMainTitle)) {
$title .= ' - ' . str_replace(' - ', '', $title1);
}
$title .= $tpage;
//$title=strip_tags($topicName).' - '.str_replace(' - ','',$title).$tpage;
}
//if posts
if (isset($mod_rewrite) and $mod_rewrite) {
$linkToForums = addForumURLPage(genForumURL($main_url, $forum, $forumsArray[$forum][0]), PAGE1_OFFSET + 1);
} else {
$linkToForums = "{$main_url}/{$indexphp}action=vtopic&forum={$forum}";
}
echo load_header();
echo ParseTpl(makeUp('main_posts'));
示例9: sendMail
sendMail($admin_email, $subS, $msgS, $reply_to_email, $reply_to_email);
}
unset($setTpls);
$emailusers = $tmpUe;
$insresOrig = $insres;
//Insert user into email notifies if allowed
if (isset($_POST['CheckSendMail']) and emailCheckBox() != '' and substr(emailCheckBox(), 0, 8) != '<!--U-->') {
$ae = db_simpleSelect(0, $Ts, 'count(*)', 'user_id', '=', $user_id, '', '', 'topic_id', '=', $topic);
$ae = $ae[0];
if ($ae == 0) {
$topic_id = $topic;
insertArray(array('user_id', 'topic_id'), $Ts);
}
}
$insres = $insresOrig;
}
//inserted post successfully
} else {
$errorMSG = $l_antiSpam;
$title .= $l_antiSpam;
$displayFormElements = array('topicTitle' => 1, 'postText' => 1);
$antiWarn = $l_antiSpamWait;
$antiSpam = 1;
include $pathToFiles . 'bb_func_posthold.php';
echo load_header();
echo ParseTpl(makeUp('main_posthold'));
return;
}
$anchor = $topic_last_post_id;
$totalPosts = $topic_d[2] + 1;
}
示例10: round
if ($cols[1]) {
if (isset($preModerationType) and $preModerationType > 0 and isset($premodTopics) and in_array($cols[0], $premodTopics)) {
$cols[2] = $l_topicQueued;
}
if (!isset($vMax)) {
$vMax = $cols[1];
}
$val = $cols[1];
$stats_barWidth = round(100 * ($val / $vMax));
if ($stats_barWidth > $stats_barWidthLim) {
$key = '<a href="' . gen_vthread_url($cols[3], $forumNames[$cols[3]], $cols[0], $cols[2], PAGE1_OFFSET + 1) . '"' . $nof . '>' . $cols[2] . '</a>';
} else {
$key2 = '<a href="' . gen_vthread_url($cols[3], $forumNames[$cols[3]], $cols[0], $cols[2], PAGE1_OFFSET + 1) . '"' . $nof . '>' . $cols[2] . '</a>';
$key = '<a href="' . gen_vthread_url($cols[3], $forumNames[$cols[3]], $cols[0], $cols[2], PAGE1_OFFSET + 1) . '"' . $nof . '>...</a>';
}
$list_stats_viewed .= ParseTpl($tpl);
} else {
break;
}
} while ($cols = db_simpleSelect(1));
}
unset($xtr);
$numUsers = db_simpleSelect(2, $Tu, 'count(*)') - 1;
$numTopics = db_simpleSelect(2, $Tf, 'SUM(topics_count)');
$numPosts = db_simpleSelect(2, $Tf, 'SUM(posts_count)') - $numTopics;
$adminInf = db_simpleSelect(2, $Tu, $dbUserSheme['username'][1], $dbUserId, '=', 1);
$lastRegUsr = db_simpleSelect(0, $Tu, "{$dbUserId}, {$dbUserSheme['username'][1]}", '', '', '', "{$dbUserId} DESC", 1);
$title = $title . $l_stats;
echo load_header();
echo ParseTpl(makeUp('stats'));
示例11: elseif
} elseif ($user_id == $topicPoster and $user_id != 0 and $user_id != 1 and $topicSticky != 1) {
if ($topicStatus == 0) {
$closeTopic = "<a href=\"{$main_url}/{$indexphp}action=locktopic&forum={$forum}&topic={$topic}&chstat=1\">{$l_closeTopic}</a>";
} elseif ($topicStatus == 1 and $userUnlock == 1) {
$closeTopic = "<a href=\"{$main_url}/{$indexphp}action=locktopic&forum={$forum}&topic={$topic}&chstat=0\">{$l_unlockTopic}</a>";
} else {
$closeTopic = '';
}
}
$title = $title . $topicName;
}
//if posts
$st = 0;
$frm = $forum;
#$l_chooseForum = 'Jump To Forum';
include $pathToFiles . 'bb_func_forums.php';
if (isset($mod_rewrite) and $mod_rewrite) {
$linkToForums = "{$main_url}/{$forum}_0.html";
} else {
$linkToForums = "{$main_url}/{$indexphp}action=vtopic&forum={$forum}";
}
if (!$USER->hasPerm("basic") && file_exists("templates/main_posts_{$CONF['forum_to_template'][$forum]}_anon.html")) {
$templatename = "main_posts_{$CONF['forum_to_template'][$forum]}_anon";
} elseif (file_exists("templates/main_posts_{$CONF['forum_to_template'][$forum]}.html")) {
$templatename = "main_posts_{$CONF['forum_to_template'][$forum]}";
} else {
$templatename = 'main_posts';
}
echo load_header();
echo ParseTpl(makeUp($templatename));
示例12: Copyright
<?php
/*
This file is part of miniBB. miniBB is free discussion forums/message board software, without any warranty. See COPYING file for more details. Copyright (C) 2004 Paul Puzyrev, Sergei Larionov. www.minibb.net
Latest File Update: 2008-Mar-18
*/
if (!defined('INCLUDED776')) {
die('Fatal error.');
}
$tpl = makeUp('faq');
$tplTmp = explode('{$manual}', $tpl);
$title .= $l_menu[4];
if (!defined('DISABLE_MANUAL_STYLE')) {
$l_meta .= <<<out
<style type="text/css">
<!--
P{
font-family: georgia, tahoma, verdana, arial, sans-serif;
color: #000000;
text-decoration: none;
font-size: 12pt;
line-height:15pt;
padding-bottom:5pt;
text-indent: 4pt;
}
SMALL{
font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
color:#696969;
示例13: str_replace
$mainPostForm = $mpf;
}
if ($page > PAGE1_OFFSET + 1) {
$tpage = ' - ' . $l_page . ' ' . ($page - PAGE1_OFFSET);
$description .= ' (' . $l_page . ' ' . ($page - PAGE1_OFFSET) . ')';
} else {
$tpage = '';
}
$title1 = $title;
$title = $forumName;
if (isset($addMainTitle)) {
$title .= ' - ' . str_replace(' - ', '', $title1);
}
$title .= $tpage;
if (!isset($_GET['showSep'])) {
$main = makeUp('main_topics');
} else {
$main = '';
}
$nTop = 1;
$allowForm = ($user_id == 1 or $isMod == 1);
$c1 = (in_array($forum, $clForums) and isset($clForumsUsers[$forum]) and !in_array($user_id, $clForumsUsers[$forum]) and !$allowForm);
$c3 = (isset($poForums) and in_array($forum, $poForums) and !$allowForm);
$c4 = (isset($roForums) and in_array($forum, $roForums) and !$allowForm);
if ($c1 or $c3 or $c4) {
$main = preg_replace("/(<form.*<\\/form>)/Uis", '', $main);
$nTop = 0;
$newTopicLink = '';
}
if ($user_id == 0) {
$l_sub_post_tpc = $l_enterforums . '/' . $l_sub_post_tpc;
示例14: substr
if (isset($modsForums[$ms])) {
$moderatorsList .= $modsForums[$ms] . ', ';
}
}
if ($moderatorsList != '') {
$moderatorsList = '<br><span class=txtSm>' . $l_moderatorsAre . ': ' . substr($moderatorsList, 0, strlen($moderatorsList) - 2) . '</span>';
}
}
if (isset($forumGroups) and isset($forumGroupsDesc) and in_array($forum, $forumGroups)) {
$forumGroupName = $forumGroupsDesc[$keyAr];
$list_forums .= ParseTpl(makeUp('main_forumgroup'));
$keyAr++;
}
if (isset($mod_rewrite) and $mod_rewrite) {
$linkToForums = "{$main_url}/{$forum}_0.html";
} else {
$linkToForums = "{$main_url}/{$indexphp}action=vtopic&forum={$forum}";
}
$checked = empty($showIds) && $forum != $CONF['forum_gridsquare'] || in_array($forum, $showIds) ? ' checked' : '';
$list_forums .= ParseTpl($tpl);
$i = -$i;
}
} while ($cols = db_simpleSelect(1));
$forum = 0;
unset($result);
unset($countRes);
}
$title = $sitename;
echo load_header();
echo ParseTpl(makeUp('main_forums'));
示例15: load_header
function load_header()
{
//we need to load this template separately, because we load page title
if (!isset($GLOBALS['adminPanel'])) {
$GLOBALS['adminPanel'] = 0;
}
if (strlen($GLOBALS['action']) > 0 || $GLOBALS['adminPanel'] == 1) {
$f = 1;
$GLOBALS['l_menu'][0] = " <a href=\"{$GLOBALS['main_url']}/{$GLOBALS['indexphp']}\">{$GLOBALS['l_menu'][0]}</a> ";
} else {
$f = 0;
$GLOBALS['l_menu'][0] = '';
}
if ($GLOBALS['action'] != 'stats') {
$GLOBALS['l_menu'][3] = ($f == 1 ? $GLOBALS['l_sepr'] : '') . " <a href=\"{$GLOBALS['main_url']}/{$GLOBALS['indexphp']}action=stats\">{$GLOBALS['l_menu'][3]}</a> ";
} else {
$GLOBALS['l_menu'][3] = '';
}
if ($GLOBALS['viewTopicsIfOnlyOneForum'] == 1 and $GLOBALS['action'] == '') {
$GLOBALS['l_menu'][7] = "{$GLOBALS['l_sepr']} <a href=\"#newtopic\">{$GLOBALS['l_menu'][7]}</a> ";
}
if (isset($GLOBALS['nTop']) && $GLOBALS['nTop'] == 1) {
if ($GLOBALS['action'] == 'vtopic') {
$GLOBALS['l_menu'][7] = "{$GLOBALS['l_sepr']} <a href=\"#newtopic\">{$GLOBALS['l_menu'][7]}</a> ";
} elseif ($GLOBALS['action'] == 'vthread') {
$GLOBALS['l_menu'][7] = "{$GLOBALS['l_sepr']} <a href=\"#newreply\">{$GLOBALS['l_reply']}</a> ";
}
} else {
$GLOBALS['l_menu'][7] = '';
}
if ($GLOBALS['action'] != 'search') {
$GLOBALS['l_menu'][1] = "{$GLOBALS['l_sepr']} <a href=\"{$GLOBALS['main_url']}/{$GLOBALS['indexphp']}action=search\">{$GLOBALS['l_menu'][1]}</a> ";
} else {
$GLOBALS['l_menu'][1] = '';
}
if ($GLOBALS['action'] != 'registernew' and $GLOBALS['user_id'] == 0 and $GLOBALS['adminPanel'] != 1 and $GLOBALS['enableNewRegistrations']) {
$GLOBALS['l_menu'][2] = "{$GLOBALS['l_sepr']} <a href=\"{$GLOBALS['main_url']}/{$GLOBALS['indexphp']}action=registernew\">{$GLOBALS['l_menu'][2]}</a> ";
} else {
$GLOBALS['l_menu'][2] = '';
}
if ($GLOBALS['action'] != 'manual') {
$GLOBALS['l_menu'][4] = "{$GLOBALS['l_sepr']} <a href=\"{$GLOBALS['main_url']}/{$GLOBALS['indexphp']}action=manual\">{$GLOBALS['l_menu'][4]}</a> ";
} else {
$GLOBALS['l_menu'][4] = '';
}
if ($GLOBALS['action'] != 'prefs' && $GLOBALS['user_id'] != 0 and $GLOBALS['enableProfileUpdate']) {
$GLOBALS['l_menu'][5] = "{$GLOBALS['l_sepr']} <a href=\"{$GLOBALS['main_url']}/{$GLOBALS['indexphp']}action=prefs\">{$GLOBALS['l_menu'][5]}</a> ";
} else {
$GLOBALS['l_menu'][5] = '';
}
if ($GLOBALS['user_id'] != 0) {
$GLOBALS['l_menu'][6] = "{$GLOBALS['l_sepr']} <a href=\"{$GLOBALS['main_url']}/{$GLOBALS['indexphp']}mode=logout\">{$GLOBALS['l_menu'][6]}</a> ";
} else {
$GLOBALS['l_menu'][6] = '';
}
if (!isset($GLOBALS['title']) or $GLOBALS['title'] == '') {
$GLOBALS['title'] = $GLOBALS['sitename'];
}
if (isset($GLOBALS['includeHeader'])) {
include $GLOBALS['includeHeader'];
return;
}
return ParseTpl(makeUp('main_header'));
}