function buildSystem() { global $RESPONSE, $INTERNAL, $GROUPS; require_once LIVEZILLA_PATH . "_lib/functions.internal.build.inc.php"; $INTERNAL[CALLER_SYSTEM_ID]->GetExternalObjects(); buildIntern(); buildExtern(); buildFilters(); buildEvents(); buildActions(); buildGoals(); if (!LOGIN && !SERVERSETUP) { buildNewPosts(); if (!isset($_POST[POST_GLOBAL_SHOUT])) { $external = $INTERNAL[CALLER_SYSTEM_ID]->IsExternal($GROUPS); if ($external) { buildRatings(); buildMessages(); } buildArchive($external); buildResources(); } } }
function buildSystem() { global $INTERNAL; require_once LIVEZILLA_PATH . "_lib/functions.internal.build.inc.php"; $INTERNAL[CALLER_SYSTEM_ID]->GetExternalObjects(); buildIntern(); buildExtern(); buildEvents(); buildFilters(); if (!$INTERNAL[CALLER_SYSTEM_ID]->ClientWeb) { buildActions(); buildGoals(); } if (!SERVERSETUP) { if (!LOGIN) { buildNewPosts(); if (!isset($_POST[POST_GLOBAL_SHOUT])) { buildResources(); if (!$INTERNAL[CALLER_SYSTEM_ID]->ClientWeb) { buildRatings(); buildTickets(); buildArchive(); buildChatVouchers(); } else { demandTickets(); demandEmails(); demandChats(); } } } } }
$tpl_header->assign('SUBTEXT', $msg_public_header); $tpl_header->assign('FEED_URL', $SETTINGS->modR ? $SETTINGS->w_path . '/rss-feed.html' : $SETTINGS->w_path . '/index.php?cmd=rss-feed'); $tpl_header->assign('H_URL', $SETTINGS->modR ? $SETTINGS->w_path . '/index.html' : $SETTINGS->w_path . '/index.php'); $tpl_header->assign('P_URL', $SETTINGS->modR ? $SETTINGS->w_path . '/profile.html' : $SETTINGS->w_path . '/index.php?cmd=profile'); $tpl_header->assign('C_URL', $SETTINGS->modR ? $SETTINGS->w_path . '/contact.html' : $SETTINGS->w_path . '/index.php?cmd=contact'); $tpl_header->assign('A_URL', $SETTINGS->modR ? $SETTINGS->w_path . '/all-archive.html' : $SETTINGS->w_path . '/index.php?cmd=all-archive'); $tpl_header->assign('SEARCH_URL', $SETTINGS->modR ? $SETTINGS->w_path . '/index.html' : $SETTINGS->w_path . '/index.php?cmd=search'); $tpl_header->assign('H_CURRENT', $cmd == 'home' ? ' id="current"' : ''); $tpl_header->assign('P_CURRENT', $cmd == 'profile' ? ' id="current"' : ''); $tpl_header->assign('C_CURRENT', $cmd == 'contact' ? ' id="current"' : ''); $tpl_header->assign('A_CURRENT', $cmd == 'archive' || $cmd == 'all-archive' ? ' id="current"' : ''); $tpl_header->assign('H_CURRENT_CLASS', $cmd == 'home' ? ' class="selected"' : ''); $tpl_header->assign('P_CURRENT_CLASS', $cmd == 'profile' ? ' class="selected"' : ''); $tpl_header->assign('C_CURRENT_CLASS', $cmd == 'contact' ? ' class="selected"' : ''); $tpl_header->assign('A_CURRENT_CLASS', $cmd == 'archive' || $cmd == 'all-archive' ? ' class="selected"' : ''); $tpl_header->assign('HOME', $msg_public_header2); $tpl_header->assign('PROFILE', $msg_public_header3); $tpl_header->assign('CONTACT', $msg_public_header4); $tpl_header->assign('ARCHIVE', $msg_public_header5); $tpl_header->assign('RSS_FEED', $msg_public_header12); $tpl_header->assign('MENU', $msg_public_header14); $tpl_header->assign('SHOW_ARCHIVE', buildArchive($SETTINGS->totalArchives)); $tpl_header->assign('VIEW_PROFILE', $msg_public_header8); $tpl_header->assign('SEARCH_BLOG', $msg_public_header6); $tpl_header->assign('SEARCH', $msg_public_header7); $tpl_header->assign('KEYWORDS', $msg_public_header9); $tpl_header->assign('IMAGE', $SETTINGS->profileImage ? '<img class="profile_image" src="' . $SETTINGS->w_path . '/uploads/' . $SETTINGS->profileImage . '"' . ($SETTINGS->imageWidth > 0 ? ' width="' . $SETTINGS->imageWidth . '"' : ' ') . ' ' . ($SETTINGS->imageHeight > 0 ? ' height="' . $SETTINGS->imageHeight . '" ' : ' ') . 'title="' . $msg_public_header3 . '" alt="' . $msg_public_header3 . '" /><br />' : ''); $tpl_header->assign('ENTERED_KEYWORDS', isset($_GET['keywords']) ? cleanData($_GET['keywords']) : ''); $tpl_header->assign('FAVOURITE_SITES', loadFavouriteSites()); $tpl_header->assign('ADSENSE_BLOCK', loadAdsense()); $tpl_header->display('themes/' . THEME . '/header.tpl.php');
static function Build() { require_once LIVEZILLA_PATH . "_lib/functions.internal.build.inc.php"; Server::$Operators[CALLER_SYSTEM_ID]->GetExternalObjects(); buildIntern(); buildExtern(); buildEvents(); if (!Server::$Operators[CALLER_SYSTEM_ID]->ClientWeb) { buildActions(); } if (!SERVERSETUP) { if (!LOGIN) { buildNewPosts(); if (!isset($_POST[POST_GLOBAL_SHOUT])) { buildResources(); demandFeedback(); demandFilters(); demandTickets(); demandEmails(); if (!Server::$Operators[CALLER_SYSTEM_ID]->ClientWeb) { //buildTickets(); buildArchive(); buildChatVouchers(); } else { //demandTickets(); //demandEmails(); demandChats(); demandReports(); } } } } }