/** * http://btdev.net:1337/svn/test/Installer09_Beta * Licence Info: GPL * Copyright (C) 2010 BTDev Installer v.1 * A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon. * Project Leaders: Mindless,putyn. **/ function stdhead($title = "", $msgalert = true, $stdhead = false) { global $CURUSER, $TBDEV, $lang, $free, $_NO_COMPRESS, $mc; if (!$TBDEV['site_online']) { die("Site is down for maintenance, please check back again later... thanks<br />"); } header('Content-Type: text/html; charset=utf-8'); header('Content-Language content="en-us"'); if ($title == "") { $title = $TBDEV['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : ''); } else { $title = $TBDEV['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : '') . " :: " . htmlspecialchars($title); } if ($CURUSER) { $TBDEV['stylesheet'] = isset($CURUSER['stylesheet']) ? "{$CURUSER['stylesheet']}.css" : $TBDEV['stylesheet']; } if ($TBDEV['msg_alert'] && $msgalert && $CURUSER) { $res = sql_query("SELECT count(id) FROM messages WHERE receiver=" . $CURUSER["id"] . " && unread='yes'") or sqlerr(__FILE__, __LINE__); $arr = mysql_fetch_row($res); $unread = $arr[0]; } /** ZZZZZZZZZZZZZZZZZZZZZZZZZZip it! **/ if (!isset($_NO_COMPRESS)) { if (!ob_start('ob_gzhandler')) { ob_start(); } } /** include js files needed only for the page being used by pdq **/ $js_incl = '<!-- javascript goes here or in footer -->'; if ($stdhead['js'] != false) { foreach ($stdhead['js'] as $JS) { $js_incl .= "<script type='text/javascript' src='" . $TBDEV['baseurl'] . "/scripts/" . $JS . ".js'></script>"; } } $htmlout = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \t \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n \t <html xmlns='http://www.w3.org/1999/xhtml'>\n \t <head>\n \t\t<meta name='generator' content='TBDev.net' />\n \t\t<meta http-equiv='Content-Language' content='en-us' />\n \t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n \t\t<meta name='MSSmartTagsPreventParsing' content='TRUE' />\n <title>{$title}</title>\n\t <link rel='stylesheet' href='templates/1/itunes.css' type='text/css' />\n \t<script type='text/javascript' src='./scripts/jquery.js'></script>\n\t\t<script type='text/javascript' src='image-resize/core-resize.js'></script>\n <link type='text/css' rel='stylesheet' href='image-resize/resize.css' />\n\t\t<link rel='alternate' type='application/rss+xml' title='Latest Torrents' href='./rss.php?passkey={$CURUSER['passkey']}' />\n\t\t" . $js_incl . "\n\t\t</head> \n <body>\n <div class='itunes'>\n\t <table class='maincont'>\n\t <tr><td class='haus' colspan='2'>\n\t <div class='play'>\n\t <div class='play1'></div>\n\t <div class='play3'></div>\n\t <div class='play2'>{$TBDEV['site_name']}</div>\n\t </div>\n\t </td></tr>"; $htmlout .= StatusBar(); $htmlout .= "\n\t <tr valign='top'><td class='hlid'>"; if ($CURUSER) { $htmlout .= "<ul class='nav'>\n\t <li><a href='index.php'>{$lang['gl_home']}</a></li>\n\t <li><a href='browse.php'>{$lang['gl_browse']}</a></li>\n\t <li><a href='upload.php'>{$lang['gl_upload']}</a></li>\n\t <li><a href='getrss.php'>{$lang['gl_getrss']}</a></li>\n\t " . (isset($CURUSER) ? "<li><a href='usercp.php'>{$lang['gl_profile']}</a></li>" : "<li><a href='login.php'>{$lang['gl_login']}</a></li><li><a href='signup.php'>{$lang['gl_signup']}</a></li>") . "\n\t <li><a href='forums.php'>{$lang['gl_forums']}</a></li>\n\t <li><a href='staff.php'>{$lang['gl_staff']}</a></li>\n\t <li><a href='contactstaff.php'>{$lang['gl_help']}</a></li>\n\t <li><a href='donate.php'>{$lang['gl_donate']}</a></li>\n\t <li><a href='topten.php'>{$lang['gl_top_10']}</a></li>\n\t <li><a href='catalogue.php'>{$lang['gl_catalogue']}</a></li>\n\t <li><a href='viewrequests.php'>{$lang['gl_request']}</a></li>\n\t " . (isset($CURUSER) && $CURUSER['class'] >= UC_MODERATOR ? "<li><a href='staffpanel.php'>{$lang['gl_admin']}</a></li>" : "") . "\n\t </ul>"; } $htmlout .= "</td><td class='sida' align='center'>"; //=== free addon start if ($CURUSER) { if (isset($free)) { foreach ($free as $fl) { switch ($fl['modifier']) { case 1: $mode = 'All Torrents Free'; break; case 2: $mode = 'All Double Upload'; break; case 3: $mode = 'All Torrents Free and Double Upload'; break; default: $mode = 0; } $htmlout .= $fl['modifier'] != 0 && $fl['expires'] > TIME_NOW ? '<table width="50%"><tr> <td class="colhead" colspan="3" align="center">' . $fl['title'] . '<br />' . $mode . '</td> </tr> <tr> <td width="42" align="center"> <img src="' . $TBDEV['baseurl'] . '/pic/cat_free.gif" alt="FREE!" /></td> <td align="center">' . $fl['message'] . ' set by ' . $fl['setby'] . '<br />' . ($fl['expires'] != 1 ? 'Until ' . get_date($fl['expires'], 'DATE') . ' (' . mkprettytime($fl['expires'] - time()) . ' to go)' : '') . '</td> <td width="42" align="center"> <img src="' . $TBDEV['baseurl'] . '/pic/cat_free.gif" alt="FREE!" /></td> </tr></table> <br />' : ''; } } } //=== free addon end //==Temp demotion if ($CURUSER['override_class'] != 255 && $CURUSER) { $htmlout .= "<table border='0' cellspacing='0' cellpadding='10' bgcolor='green'>\n <tr><td style='padding: 10px; background: green'><b><a href='./restoreclass.php'>\n <font color='white'>{$lang['gl_tempdemotion']}</font></a></b></td></tr></table><br />\n"; } //==End if ($TBDEV['msg_alert'] && isset($unread) && !empty($unread)) { $htmlout .= "<table border='0' cellspacing='0' cellpadding='10' bgcolor='red'>\n <tr><td style='padding: 10px; background: red'>\n\n <b><a href='./messages.php'><font color='white'>" . sprintf($lang['gl_msg_alert'], $unread) . ($unread > 1 ? "s" : "") . "!</font></a></b>\n </td></tr></table><br />\n"; } //==Big red staffmess thingy box: if ($TBDEV['staffmsg_alert'] && $CURUSER['class'] >= UC_MODERATOR) { $num = mysql_result(sql_query('SELECT count(id) FROM staffmessages WHERE answeredby = 0'), 0); if ($num > 0) { $htmlout .= "<table border='0' cellspacing='0' cellpadding='10'>\n <tr><td style='padding: 10px; background: #ccc'>\n\n <b><a href='staffbox.php'>" . sprintf($lang['gl_staffmsg_alert'], $num) . "!</a></b>\n </td></tr></table><br />"; } } //==End //==Big red report thingy box: if ($TBDEV['report_alert'] && $CURUSER['class'] >= UC_MODERATOR) { $num = mysql_result(sql_query('SELECT COUNT(id) FROM reports WHERE delt_with = 0'), 0); if ($num > 0) { $htmlout .= "<table border='0' cellspacing='0' cellpadding='10'>\n <tr><td style='padding: 10px; background: #ccc'>\n\n <b><a href='admin.php?action=reports'>" . sprintf($lang['gl_reportmsg_alert'], $num) . "!</a></b>\n </td></tr></table><br />"; } } //==End //Big red uploadapp thingy box: if ($TBDEV['uploadapp_alert'] && $CURUSER['class'] >= UC_MODERATOR) { $num = mysql_result(sql_query('SELECT count(id) FROM uploadapp WHERE status = "pending"'), 0); if ($num > 0) { $htmlout .= "<table border='0' cellspacing='0' cellpadding='10'>\n <tr><td style='padding: 10px; background: #ccc'>\n\n <b><a href='uploadapps.php'>" . sprintf($lang['gl_uploadapp_alert'], $num) . "!</a></b>\n </td></tr></table><br />"; } } //==End // happy hour if ($CURUSER) { if (happyHour("check")) { $htmlout .= "<table border='0' cellspacing='0' cellpadding='10' ><tr><td align='center' style=\"background:#CCCCCC;color:#222222; padding:10px\">\n\n <b>Hey its now happy hour ! " . (happyCheck("check") == 255 ? "Every torrent downloaded in the happy hour is free" : "Only <a href=\"browse.php?cat=" . happyCheck("check") . "\">this category</a> is free this happy hour") . "<br /><font color='red'>" . happyHour("time") . " </font> remaining from this happy hour!</b>"; $htmlout .= "</td></tr></table><br />\n"; } } //==pdq crazyhour if (isset($CURUSER)) { $transfer_filename = $TBDEV['cache'] . '/transfer_crazyhour.txt'; $crazyhour_filename = $TBDEV['cache'] . '/crazy_hour.txt'; $crazyhour_cache = fopen($crazyhour_filename, 'r+'); $crazyhour_var = fread($crazyhour_cache, filesize($TBDEV['cache'] . '/crazy_hour.txt')); fclose($crazyhour_cache); $cimg = '<img src=\'' . $TBDEV["pic_base_url"] . 'cat_free.gif\' alt=\'FREE!\' />'; if ($crazyhour_var >= TIME_NOW && $crazyhour_var < TIME_NOW + 3600) { // is crazyhour $htmlout .= "<table width='50%'><tr><td class='colhead' colspan='3' align='center'>\n " . $TBDEV['crazy_title'] . " Ends in " . mkprettytime($crazyhour_var - TIME_NOW) . "</td></tr>\n <tr><td width='42px' align='center' valign='middle'>" . $cimg . "</td>\n <td><div align='center'>" . $TBDEV['crazy_message'] . "</div></td>\n <td width='42px' align='center' valign='middle'>" . $cimg . "</td></tr></table><br />"; if (is_file($transfer_filename)) { unlink($transfer_filename); } } elseif ($crazyhour_var < TIME_NOW + 3600 && !is_file($transfer_filename)) { //== crazyhour over $transfer_file_created = fopen($transfer_filename, 'w') or die('no perms?'); fclose($transfer_file_created); $crazyhour['crazyhour_new'] = mktime(23, 59, 59, date('m'), date('d'), date('y')); $crazyhour['crazyhour']['var'] = mt_rand($crazyhour['crazyhour_new'], $crazyhour['crazyhour_new'] + 86400); $fp = fopen($crazyhour_filename, 'w'); fwrite($fp, $crazyhour['crazyhour']['var']); fclose($fp); write_log('Next Crazyhour is at ' . date('F j, g:i a T', $crazyhour['crazyhour']['var'])); $htmlout .= "<table cellpadding='3'><tr><td class='colhead' colspan='3' align='center'>" . " Crazyhour will be " . get_date($crazyhour['crazyhour']['var'], '') . " " . mkprettytime($crazyhour['crazyhour']['var'] - TIME_NOW) . " remaining till Crazyhour</td></tr></table><br />"; } else { // make date look prettier with countdown etc even :] $htmlout .= "<table cellpadding='3'><tr><td class='colhead' colspan='3' align='center'>" . " Crazyhour will be " . get_date($crazyhour_var, '') . " " . mkprettytime($crazyhour_var - TIME_NOW) . " remaining till Crazyhour</td></tr></table><br />"; } } // crazyhour end return $htmlout; }
function stdhead($title = "", $msgalert = true, $stdhead = false) { global $CURUSER, $INSTALLER09, $lang, $free, $_NO_COMPRESS, $query_stat, $querytime, $mc1, $BLOCKS, $CURBLOCK, $mood, $blocks; if (!$INSTALLER09['site_online']) { die("Site is down for maintenance, please check back again later... thanks<br />"); } if ($title == "") { $title = $INSTALLER09['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : ''); } else { $title = $INSTALLER09['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : '') . " :: " . htmlsafechars($title); } if ($CURUSER) { $INSTALLER09['stylesheet'] = isset($CURUSER['stylesheet']) ? "{$CURUSER['stylesheet']}.css" : $INSTALLER09['stylesheet']; $INSTALLER09['categorie_icon'] = isset($CURUSER['categorie_icon']) ? "{$CURUSER['categorie_icon']}" : $INSTALLER09['categorie_icon']; $INSTALLER09['language'] = isset($CURUSER['language']) ? "{$CURUSER['language']}" : $INSTALLER09['language']; } $salty = md5("Th15T3xtis5add3dto66uddy6he@water..." . $CURUSER['username'] . ""); /** ZZZZZZZZZZZZZZZZZZZZZZZZZZip it! */ if (!isset($_NO_COMPRESS)) { if (!ob_start('ob_gzhandler')) { ob_start(); } } $htmlout = ''; //== Include js files needed only for the page being used by pdq $js_incl = ''; $js_incl .= '<!-- javascript goes here or in footer -->'; if (!empty($stdhead['js'])) { foreach ($stdhead['js'] as $JS) { $js_incl .= "<script type='text/javascript' src='{$INSTALLER09['baseurl']}/scripts/" . $JS . ".js'></script>"; } } //== Include css files needed only for the page being used by pdq $stylez = $CURUSER ? "{$CURUSER['stylesheet']}" : "{$INSTALLER09['stylesheet']}"; $css_incl = ''; $css_incl .= '<!-- css goes in header -->'; if (!empty($stdhead['css'])) { foreach ($stdhead['css'] as $CSS) { $css_incl .= "<link type='text/css' rel='stylesheet' href='{$INSTALLER09['baseurl']}/templates/{$stylez}/css/" . $CSS . ".css' />"; } } $body_class = isset($_COOKIE['theme']) ? htmlsafechars($_COOKIE['theme']) : 'background-1 skin-1 nb-1 panelhead-1 bootpanel-1 btable-1 btr-1 listgrp-1 buttonS-1 text-1'; $htmlout .= ' <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <!-- ####################################################### --> <!-- # This website is powered by U-232 V5 # --> <!-- # Download and support at: # --> <!-- # https://forum-u-232.servebeer.com # --> <!-- # Template Modded by U-232 Dev Team # --> <!-- ####################################################### --> <head> <!--<meta charset="' . charset() . '" />--> <meta charset="utf-8" /> <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]--> <meta name="viewport" content="width=device-width, initial-scale=0.35, maximum-scale=1" /> <title>' . $title . '</title> <!-- favicon --> <link rel="shortcut icon" href="/favicon.ico" /> <link rel="stylesheet" href="css/bootstrap.css" type="text/css"> <!-- Template CSS--> <link rel="stylesheet" href="templates/1/1.css" /> <link rel="stylesheet" href="css/font-awesome.min.css" /> <script src="scripts/jquery-1.11.1.js"></script> <script src="scripts/bootstrap.js"></script> <!--THemechanger--> <script type="text/javascript" src="scripts/jquery.cookie.js"></script> <script type="text/javascript" src="scripts/help.js"></script> <link rel="stylesheet" href="templates/1/themeChanger/css/colorpicker.css" type="text/css"> <link rel="stylesheet" href="templates/1/themeChanger/css/themeChanger.css" type="text/css"> <script type="text/javascript" src="templates/1/themeChanger/js/colorpicker.js"></script> <script type="text/javascript" src="templates/1/themeChanger/js/themeChanger.js"></script> <!-- Forum CSS--> <link rel="stylesheet" href="templates/1/css/forum.css" /> <!-- global javascript--> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]> <![endif]--> <!--[if lt IE 9]><meta http-equiv="X-UA-Compatible" content="IE=9"><![endif]--> <!-- <script src="scripts/html5shiv.js" async></script> --> <script src="scripts/respond.min.js" async></script> <!-- used for IE8 and below--> <!-- <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script> --> <script type="application/rss+xml" title="Latest Torrents" src="/rss.php?torrent_pass='******'"></script>'; $htmlout .= "\n <style type='text/css'>#mlike{cursor:pointer;}</style>\n <script type='text/javascript'>\n /*<![CDATA[*/\n\t\t// Like Dislike function\n\t\t//================================================== -->\n\t\t\$(function() {\t\t\t\t\t\t\t// the like js\n\t\t\$('span[id*=mlike]').like232({\n\t\ttimes : 5, \t// times checked \n\t\tdisabled : 5, \t// disabled from liking for how many seconds\n\t\ttime : 5, \t// period within check is performed\n\t\turl : '/ajax.like.php'\n\t\t});\n\t\t});\n\t// template changer function\n\t//================================================== -->\n function themes() {\n window.open('take_theme.php','My themes','height=150,width=200,resizable=no,scrollbars=no,toolbar=no,menubar=no');\n }\n\t// language changer function\n\t//================================================== -->\n function language_select() {\n window.open('take_lang.php','My language','height=150,width=200,resizable=no,scrollbars=no,toolbar=no,menubar=no');\n }\n\t// radio function\n\t//================================================== -->\n function radio() {\n window.open('radio_popup.php','My Radio','height=700,width=800,resizable=no,scrollbars=no,toolbar=no,menubar=no');\n }\n /*]]>*/\n </script>\n <script type='text/javascript' src='./scripts/jaxo.suggest.js'></script>\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t/*<![CDATA[*/\n\t\t\t\t\$(document).ready(function(){\n\t\t\t\t\$(\"input[name='search']\").search(options);\n\t\t\t\t});\n\t\t\t\t/*]]>*/\n\t\t\t\t</script>\n {$js_incl}{$css_incl}\n </head>\n <body class='{$body_class}'>"; if ($CURUSER) { $htmlout .= "\n <nav class='cb navbar-default navbar-fixed-top' role='navigation'>\n <div class='container'>\n <!-- Brand and toggle get grouped for better mobile display -->\n <div class='navbar-header'>\n <button type='button' class='navbar-toggle' data-toggle='collapse' data-target='.navbar-exl-collapse'>\n <span class='sr-only'>Toggle navigation</span>\n <span class='icon-bar'></span>\n <span class='icon-bar'></span>\n <span class='icon-bar'></span>\n </button>\n <a class='navbar-brand' href='" . $INSTALLER09['baseurl'] . "/index.php'>{$INSTALLER09['site_name']}</a>\n </div>\n <!-- Collect the nav links, forms, and other content for toggling -->\n <div class='collapse navbar-collapse navbar-exl-collapse'>\n <ul class='nav navbar-nav navbar-right'>\n <a class='btn btn-success btn-sm' href='" . $INSTALLER09['baseurl'] . "/donate.php'>{$lang['gl_donate']}</a>\n <a class='btn btn-primary btn-sm' href='" . $INSTALLER09['baseurl'] . "/forums.php'>{$lang['gl_forums']}</a>\n\t<div class='btn-group'>\n\t\t\t\t\t <button class='btn btn-primary navbar-btn btn-sm'>{$lang['gl_general']}</button>\n\t\t\t\t\t <button class='btn dropdown-toggle navbar-btn btn-primary btn-sm' data-toggle='dropdown'>\n\t\t\t\t\t\t<span class='caret'></span>\n\t\t\t\t\t </button>\n\t\t\t\t\t <ul class='dropdown-menu pull-right'>\n\t\t\t\t\t\t<!-- dropdown menu links -->\n\t\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/topten.php'>{$lang['gl_stats']}</a></li>\n\t\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/faq.php'>{$lang['gl_faq']}</a></li>\n\t\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/rules.php'>{$lang['gl_rules']}</a></li>\n\t\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/chat.php'>{$lang['gl_irc']}</a></li>\n\t\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/staff.php'>{$lang['gl_staff']}</a></li>\n\t\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/wiki.php'>{$lang['gl_wiki']}</a></li>\n\t\t\t<li><a href='#' onclick='radio();'>{$lang['gl_radio']}</a></li>\n\t\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/rsstfreak.php'>{$lang['gl_tfreak']}</a></li>\n <li><a href='" . $INSTALLER09['baseurl'] . "/casino.php'>{$lang['gl_casino']}</a></li>\n <li><a href='" . $INSTALLER09['baseurl'] . "/blackjack.php'>{$lang['gl_bjack']}</a></li>\n <li><a href='" . $INSTALLER09['baseurl'] . "/sitepot.php'>{$lang['gl_sitepot']}</a></li>\n \t\t\t\t\t </ul>\n\t\t\t\t\t</div>\n\t\t\t\t<div class='btn-group'>\n\t\t\t\t\t <button class='btn btn-primary navbar-btn btn-sm'>{$lang['gl_torrent']}</button>\n\t\t\t\t\t <button class='btn dropdown-toggle navbar-btn btn-primary btn-sm' data-toggle='dropdown'>\n\t\t\t\t\t\t<span class='caret'></span>\n\t\t\t\t\t </button>\n\t\t\t\t\t <ul class='dropdown-menu pull-right'>\n\t\t\t\t\t\t<!-- dropdown menu links -->\n \t <li><a href='" . $INSTALLER09['baseurl'] . "/browse.php'>{$lang['gl_torrents']}</a></li>\n\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/requests.php'>{$lang['gl_requests']}</a></li>\n\t <li><a href='" . $INSTALLER09['baseurl'] . "/offers.php'>{$lang['gl_offers']}</a></li>\n\t <li><a href='" . $INSTALLER09['baseurl'] . "/needseed.php?needed=seeders'>{$lang['gl_nseeds']}</a></li>\n\t\t" . (isset($CURUSER) && $CURUSER['class'] <= UC_VIP ? "<li><a href='" . $INSTALLER09['baseurl'] . "/uploadapp.php'>{$lang['gl_uapp']}</a> </li>" : "<li><a href='" . $INSTALLER09['baseurl'] . "/upload.php'>{$lang['gl_upload']}</a></li>") . "\n " . (isset($CURUSER) && $CURUSER['class'] <= UC_VIP ? "" : "<li><a href='" . $INSTALLER09['baseurl'] . "/multiupload.php'>{$lang['gl_mupload']}</a></li>") . "\n <li><a href='" . $INSTALLER09['baseurl'] . "/bookmarks.php'>{$lang['gl_bookmarks']}</a></li>\n\t\t\t\t\t </ul>\n\t\t\t\t\t</div>\n\t\t\t\t<!-- <div class='btn-group'>\n\t\t\t\t\t <button class='btn btn-primary navbar-btn btn-sm'>{$lang['gl_games']}</button>\n\t\t\t\t\t <button class='btn dropdown-toggle navbar-btn btn-primary btn-sm' data-toggle='dropdown'>\n\t\t\t\t\t\t<span class='caret'></span>\n\t\t\t\t\t </button>\n\t\t\t\t\t <ul class='dropdown-menu pull-right'>\n\t\t\t\t\t\t<!-- dropdown menu links -->\n\t\t<!-- " . (isset($CURUSER) && $CURUSER['class'] >= UC_POWER_USER ? "<li><a href='" . $INSTALLER09['baseurl'] . "/casino.php'>{$lang['gl_casino']}</a></li>" : "") . "\n\t\t" . (isset($CURUSER) && $CURUSER['class'] >= UC_POWER_USER ? "<li><a href='" . $INSTALLER09['baseurl'] . "/blackjack.php'>{$lang['gl_bjack']}</a></li>" : "") . "\n\t\t\t\t\t </ul>\n\t\t\t\t\t</div> -->\n\t\t\t\t<div class='btn-group'>\n\t\t\t\t\t <button class='btn btn-primary navbar-btn btn-sm'>Staff Tools</button>\n\t\t\t\t\t <button class='btn dropdown-toggle navbar-btn btn-primary btn-sm' data-toggle='dropdown'>\n\t\t\t\t\t\t<span class='caret'></span>\n\t\t\t\t\t </button>\n\t\t\t\t\t <ul class='dropdown-menu pull-right'>\n\t\t\t\t\t\t<!-- dropdown menu links -->\n\t\t\t\t\t\t <li> " . (isset($CURUSER) && $CURUSER['class'] < UC_STAFF ? "<a class='brand' href='" . $INSTALLER09['baseurl'] . "/bugs.php?action=add'>{$lang['gl_breport']}</a>" : "<a class='brand' href='" . $INSTALLER09['baseurl'] . "/bugs.php?action=bugs'>{$lang['gl_brespond']}</a>") . "</li>\n\t\t\t\t\t\t\t<li>" . (isset($CURUSER) && $CURUSER['class'] < UC_STAFF ? "<a class='brand' href='" . $INSTALLER09['baseurl'] . "/contactstaff.php'>{$lang['gl_cstaff']}</a>" : "<a class='brand' href='" . $INSTALLER09['baseurl'] . "/staffbox.php'>{$lang['gl_smessages']}</a>") . "</li>\n\t\t\t\t\t\t\t" . (isset($CURUSER) && $CURUSER['class'] >= UC_STAFF ? "<li><a href='" . $INSTALLER09['baseurl'] . "/staffpanel.php'>{$lang['gl_admin']}</a></li>" : "") . "\n\t\t\t\t\t </ul>\n\t\t\t\t\t</div>\n\t\t\t\t<div class='btn-group'>\n\t\t\t\t\t <button class='btn btn-primary navbar-btn btn-sm'>Pers Tools</button>\n\t\t\t\t\t <button class='btn dropdown-toggle navbar-btn btn-primary btn-sm' data-toggle='dropdown'>\n\t\t\t\t\t\t<span class='caret'></span>\n\t\t\t\t\t </button>\n\t\t\t\t\t <ul class='dropdown-menu pull-right'>\n\t\t\t\t\t\t<!-- dropdown menu links -->\n \t\t<li><a href='#' onclick='themes();'>{$lang['gl_theme']}</a></li>\n\t\t<li><a href='#' onclick='language_select();'>{$lang['gl_language_select']}</a></li>\n\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/pm_system.php'>{$lang['gl_pms']}</a></li>\n\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/usercp.php?action=default'>{$lang['gl_usercp']}</a></li>\n \t <!-- <li><a href='" . $INSTALLER09['baseurl'] . "/friends.php'>{$lang['gl_friends']}</a></li> -->\n\t\t<li class='divider'></li>\n\t\t<li>" . (isset($CURUSER) && $CURUSER['got_blocks'] == 'yes' ? "{$lang['gl_userblocks']}<a href='./user_blocks.php'>My Blocks</a>" : "") . "</li>\n\t\t<li>" . (isset($CURUSER) && $CURUSER['got_moods'] == 'yes' ? "<a href='./user_unlocks.php'>My Unlocks</a>" : "") . "</li>\n\t\t\t\t\t </ul>\n\t\t\t\t\t</div>\n\t\t<a class='btn btn-warning btn-sm' href='" . $INSTALLER09['baseurl'] . "/logout.php?hash_please={$salty}'>{$lang['gl_logout']}</a>\n\n </ul>\n </div><!-- /.navbar-collapse -->\n</div></nav><div class='banners'></div>"; $htmlout .= '<div class="alert" style="background:rgba(0, 0, 0, 0.1);">' . StatusBar() . '</div>'; $htmlout .= "\n <!-- U-232 Source - Print Global Messages Start -->\n <div class='container'>\n <div class='sa-gm_taps_left'>"; $htmlout .= "<ul class='sa-gm_taps'><li><b>{$lang['gl_alerts']}</b></li>"; if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_REPORTS && $BLOCKS['global_staff_report_on']) { require_once BLOCK_DIR . 'global/report.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_UPLOADAPP && $BLOCKS['global_staff_uploadapp_on']) { require_once BLOCK_DIR . 'global/uploadapp.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_HAPPYHOUR && $BLOCKS['global_happyhour_on']) { require_once BLOCK_DIR . 'global/happyhour.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_STAFF_MESSAGE && $BLOCKS['global_staff_warn_on']) { require_once BLOCK_DIR . 'global/staffmessages.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_NEWPM && $BLOCKS['global_message_on']) { require_once BLOCK_DIR . 'global/message.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_DEMOTION && $BLOCKS['global_demotion_on']) { require_once BLOCK_DIR . 'global/demotion.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_FREELEECH && $BLOCKS['global_freeleech_on']) { require_once BLOCK_DIR . 'global/freeleech.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_CRAZYHOUR && $BLOCKS['global_crazyhour_on']) { require_once BLOCK_DIR . 'global/crazyhour.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_BUG_MESSAGE && $BLOCKS['global_bug_message_on']) { require_once BLOCK_DIR . 'global/bugmessages.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_FREELEECH_CONTRIBUTION && $BLOCKS['global_freeleech_contribution_on']) { require_once BLOCK_DIR . 'global/freeleech_contribution.php'; } $htmlout .= "</ul></div></div><br />"; if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_STAFFTOOLS && $BLOCKS['global_staff_tools_on'] && $CURUSER['class'] >= UC_STAFF) { require_once BLOCK_DIR . 'global/staff_tools.php'; } } if ($CURUSER) { $htmlout .= '<div class="container"> <div id="control_panel"><a href="#" id="control_label"></a></div>'; } return $htmlout; }
function stdhead($title = "", $msgalert = true) { global $CURUSER, $TBDEV, $lang; if (!$TBDEV['site_online']) { die("Site is down for maintenance, please check back again later... thanks<br />"); } //header("Content-Type: text/html; charset=iso-8859-1"); //header("Pragma: No-cache"); if ($title == "") { $title = $TBDEV['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : ''); } else { $title = $TBDEV['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : '') . " :: " . htmlspecialchars($title); } if ($CURUSER) { /* $ss_a = @mysql_fetch_array(@sql_query("select uri from stylesheets where id=" . $CURUSER["stylesheet"])); if ($ss_a) $ss_uri = $ss_a["uri"]; */ $TBDEV['stylesheet'] = isset($CURUSER['stylesheet']) ? "{$CURUSER['stylesheet']}.css" : $TBDEV['stylesheet']; } if ($TBDEV['msg_alert'] && $msgalert && $CURUSER) { $res = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " && unread='yes'") or sqlerr(__FILE__, __LINE__); $arr = mysql_fetch_row($res); $unread = $arr[0]; } $htmlout = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\r\n\t\t\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n\t\t\r\n\t\t<html xmlns='http://www.w3.org/1999/xhtml'>\r\n\t\t<head>\r\n\r\n\t\t\t<meta name='generator' content='TBDev.net' />\r\n\t\t\t<meta http-equiv='Content-Language' content='en-us' />\r\n\t\t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\r\n\t\t\t<meta name='MSSmartTagsPreventParsing' content='TRUE' />\r\n\t\t\t\r\n\t\t\t<title>{$title}</title>\r\n\t\t\t<link rel='stylesheet' href='{$TBDEV['stylesheet']}' type='text/css' />\r\n\t\t</head>\r\n \r\n <body>\r\n\r\n <table width='100%' cellspacing='0' cellpadding='0' style='background: transparent'>\r\n <tr>\r\n\r\n <td class='clear'>\r\n <div id='logostrip'>\r\n <img src='{$TBDEV['pic_base_url']}logo.jpg' alt='' />\r\n\r\n <a href='donate.php'><img src='{$TBDEV['pic_base_url']}x-click-but04.gif' border='0' alt='{$lang['gl_donate']}' title='{$lang['gl_donate']}' style='margin-top: 5px' /></a>\r\n </div>\r\n </td>\r\n\r\n </tr></table>\r\n\r\n <table class='mainouter' width='100%' border='1' cellspacing='0' cellpadding='10'>\r\n<!-- STATUSBAR -->"; $htmlout .= StatusBar(); $htmlout .= "<!-- MENU -->\r\n <tr><td class='outer'>\r\n <div id='submenu'>"; if ($CURUSER) { $htmlout .= "<div class='tb-top-left-link'>\r\n <a href='index.php'>{$lang['gl_home']}</a>\r\n <a href='browse.php'>{$lang['gl_browse']}</a>\r\n <a href='search.php'>{$lang['gl_search']}</a>\r\n <a href='upload.php'>{$lang['gl_upload']}</a>\r\n <a href='chat.php'>{$lang['gl_chat']}</a>\r\n <a href='forums.php'>{$lang['gl_forums']}</a>\r\n <!--<a href='misc/dox.php'>DOX</a>-->\r\n <a href='topten.php'>{$lang['gl_top_10']}</a>\r\n <a href='rules.php'>{$lang['gl_rules']}</a>\r\n <a href='faq.php'>{$lang['gl_faq']}</a>\r\n <a href='links.php'>{$lang['gl_links']}</a>\r\n <a href='staff.php'>{$lang['gl_staff']}</a>\r\n </div>\r\n <div class='tb-top-right-link'>"; if ($CURUSER['class'] >= UC_MODERATOR) { $htmlout .= "<a href='admin.php'>{$lang['gl_admin']}</a>"; } $htmlout .= "<a href='my.php'>{$lang['gl_profile']}</a>\r\n <a href='logout.php'>{$lang['gl_logout']}</a>\r\n </div>"; } else { $htmlout .= "<div class='tb-top-left-link'>\r\n <a href='login.php'>{$lang['gl_login']}</a>\r\n <a href='signup.php'>{$lang['gl_signup']}</a>\r\n <a href='recover.php'>{$lang['gl_recover']}</a>\r\n </div>"; } $htmlout .= "</div>\r\n </td>\r\n </tr>\r\n <tr><td align='center' class='outer' style='padding-top: 20px; padding-bottom: 20px'>"; if ($TBDEV['msg_alert'] && isset($unread) && !empty($unread)) { $htmlout .= "<p><table border='0' cellspacing='0' cellpadding='10' bgcolor='red'>\r\n <tr><td style='padding: 10px; background: red'>\n\r\n <b><a href='messages.php'><font color='white'>" . sprintf($lang['gl_msg_alert'], $unread) . ($unread > 1 ? "s" : "") . "!</font></a></b>\r\n </td></tr></table></p>\n"; } return $htmlout; }
function stdhead($title = "", $msgalert = true, $stdhead = false) { global $CURUSER, $INSTALLER09, $lang, $free, $_NO_COMPRESS, $query_stat, $querytime, $mc1, $BLOCKS, $CURBLOCK, $mood; if (!$INSTALLER09['site_online']) { die("Site is down for maintenance, please check back again later... thanks<br />"); } if ($title == "") { $title = $INSTALLER09['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : ''); } else { $title = $INSTALLER09['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : '') . " :: " . htmlsafechars($title); } if ($CURUSER) { $INSTALLER09['stylesheet'] = isset($CURUSER['stylesheet']) ? "{$CURUSER['stylesheet']}.css" : $INSTALLER09['stylesheet']; $INSTALLER09['categorie_icon'] = isset($CURUSER['categorie_icon']) ? "{$CURUSER['categorie_icon']}" : $INSTALLER09['categorie_icon']; $INSTALLER09['language'] = isset($CURUSER['language']) ? "{$CURUSER['language']}" : $INSTALLER09['language']; } /** ZZZZZZZZZZZZZZZZZZZZZZZZZZip it! */ if (!isset($_NO_COMPRESS)) { if (!ob_start('ob_gzhandler')) { ob_start(); } } //== Include js files needed only for the page being used by pdq $js_incl = ''; $js_incl .= '<!-- javascript goes here or in footer -->'; if (!empty($stdhead['js'])) { foreach ($stdhead['js'] as $JS) { $js_incl .= "<script type='text/javascript' src='{$INSTALLER09['baseurl']}/scripts/" . $JS . ".js'></script>"; } } //== Include css files needed only for the page being used by pdq $css_incl = ''; $css_incl .= '<!-- css goes here -->'; if (!empty($stdhead['css'])) { foreach ($stdhead['css'] as $CSS) { $css_incl .= "<link type='text/css' rel='stylesheet' href='{$INSTALLER09['baseurl']}/templates/{$CURUSER['stylesheet']}/css/" . $CSS . ".css' />"; } } if (isset($INSTALLER09['xhtml_strict'])) { //== Use strict mime type/doctype //== Only if browser/user agent supports xhtml strict mode if (isset($_SERVER['HTTP_ACCEPT']) && stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') && ($INSTALLER09['xhtml_strict'] === 1 || $INSTALLER09['xhtml_strict'] == $CURUSER['username'] && $CURUSER['username'] != '')) { header('Content-type:application/xhtml+xml; charset=' . charset()); $doctype = '<?xml version="1.0" encoding="' . charset() . '"?>' . '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'; } } if (!isset($doctype)) { header('Content-type:text/html; charset=' . charset()); //$doctype = '<!DOCTYPE html>' . '<html xmlns="http://www.w3.org/1999/xhtml">'; $doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ' . '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . '<html xmlns="http://www.w3.org/1999/xhtml">'; } $body_class = isset($_COOKIE['theme']) ? htmlsafechars($_COOKIE['theme']) : 'background-15 h-style-1 text-1 skin-1'; $htmlout = $doctype . "<head>\n <meta http-equiv='Content-Language' content='en-us' />\n <!-- ####################################################### -->\n <!-- # This website is powered by U-232 V4\t # -->\n <!-- # Download and support at: https://u-232.com # -->\n <!-- # Template Modded by U-232 Dev Team # -->\n <!-- ####################################################### -->\n <title>{$title}</title>\n <link rel='alternate' type='application/rss+xml' title='Latest Torrents' href='./rss.php?torrent_pass={$CURUSER['torrent_pass']}' />\n \t<!-- favicon \n \t=================================================== -->\n <link rel='shortcut icon' href='favicon.ico' />\n \t<!-- css \n \t=================================================== -->\n <link rel='stylesheet' href='./templates/1/1.css' type='text/css' />\n\t<link rel='stylesheet' href='./templates/1/bootstrap.css' type='text/css' />\n\t<link rel='stylesheet' href='./templates/1/bootstrap-responsive.css' type='text/css' />\n <link rel='stylesheet' href='./templates/1/themeChanger/css/colorpicker.css' type='text/css' />\n <link rel='stylesheet' href='./templates/1/themeChanger/css/themeChanger.css' type='text/css' />\n <style type='text/css'>#mlike{cursor:pointer;}</style>\n \t<!-- global javascript\n \t================================================== -->\n <script type='text/javascript' src='./scripts/jquery-1.5.js'></script>\n <script type='text/javascript' src='./scripts/jquery.status.js'></script>\n <script type='text/javascript' src='./scripts/jquery.cookie.js'></script>\n\t<script type='text/javascript' src='./scripts/help.js'></script>\n\t<!-- template javascript\n\t================================================== -->\n <script type='text/javascript' src='./templates/1/themeChanger/js/colorpicker.js'></script>\n <script type='text/javascript' src='./templates/1/themeChanger/js/themeChanger.js'></script>\n <script type='text/javascript' src='./templates/1/js/jquery.smoothmenu.js'></script>\n <script type='text/javascript' src='./templates/1/js/core.js'></script>\n <script type='text/javascript'>\n /*<![CDATA[*/\n\t\t// Like Dislike function\n\t\t//================================================== -->\n\t\t\$(function() {\t\t\t\t\t\t\t// the like js\n\t\t\$('span[id*=mlike]').like232({\n\t\ttimes : 5, \t// times checked \n\t\tdisabled : 5, \t// disabled from liking for how many seconds\n\t\ttime : 5, \t// period within check is performed\n\t\turl : '/ajax.like.php'\n\t\t});\n\t\t});\n\t// template changer function\n\t//================================================== -->\n function themes() {\n window.open('take_theme.php','My themes','height=150,width=200,resizable=no,scrollbars=no,toolbar=no,menubar=no');\n }\n\t// language changer function\n\t//================================================== -->\n function language_select() {\n window.open('take_lang.php','My language','height=150,width=200,resizable=no,scrollbars=no,toolbar=no,menubar=no');\n }\n\t// radio function\n\t//================================================== -->\n function radio() {\n window.open('radio_popup.php','My Radio','height=700,width=800,resizable=no,scrollbars=no,toolbar=no,menubar=no');\n }\n /*]]>*/\n </script>\n <script type='text/javascript' src='./ajax/helpers.js'></script>\n {$js_incl}{$css_incl}\n <!--[if lt IE 9]>\n <script type='text/javascript' src='./templates/1/js/modernizr.custom.js'></script>\n\t<script type='text/javascript' src='http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js'></script>\n\t<script type='text/javascript' src='./templates/1/js/ie.js'></script>\n <![endif]-->\n </head>\n <body class='{$body_class}'>\n <!-- Main Outer Container\n =================================================== -->\n\t<div class='container'>\n <!--<header class='clearfix'>-->"; if ($CURUSER) { $active_users_cache = $last24_cache = 0; $keys['last24'] = 'last24'; $last24_cache = $mc1->get_value($keys['last24']); $keys['activeusers'] = 'activeusers'; $active_users_cache = $mc1->get_value($keys['activeusers']); $htmlout .= "\n\t\t<!-- Main Navigation\n\t\t=================================================== -->\n\t\t<div id='navigation' class='navigation'>\n \t\t<ul>\n\t\t<li><a href='#'>{$lang['gl_torrent']}</a>\n\t\t<ul class='sub-menu'>\n\t <li><a href='" . $INSTALLER09['baseurl'] . "/browse.php'>{$lang['gl_torrents']}</a></li>\n\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/requests.php'>{$lang['gl_requests']}</a></li>\n\t <li><a href='" . $INSTALLER09['baseurl'] . "/offers.php'>{$lang['gl_offers']}</a></li>\n\t <li><a href='" . $INSTALLER09['baseurl'] . "/needseed.php?needed=seeders'>{$lang['gl_nseeds']}</a></li>\n\t\t" . (isset($CURUSER) && $CURUSER['class'] <= UC_VIP ? "<li><a href='" . $INSTALLER09['baseurl'] . "/uploadapp.php'>{$lang['gl_uapp']}</a> </li>" : "<li><a href='" . $INSTALLER09['baseurl'] . "/upload.php'>{$lang['gl_upload']}</a></li>") . "\n <li><a href='" . $INSTALLER09['baseurl'] . "/bookmarks.php'>{$lang['gl_bookmarks']}</a></li>\n\t\t</ul><!--/ .sub-menu-->\n\t\t</li>\n\t\t<li><a href='#'>{$lang['gl_general']}</a>\n\t\t<ul class='sub-menu'>\n <li><a href='" . $INSTALLER09['baseurl'] . "/announcement.php'>{$lang['gl_announcements']}</a></li>\n <li><a href='" . $INSTALLER09['baseurl'] . "/topten.php'>{$lang['gl_stats']}</a></li>\n <li><a href='" . $INSTALLER09['baseurl'] . "/faq.php'>{$lang['gl_faq']}</a></li>\n \t\t<li><a href='" . $INSTALLER09['baseurl'] . "/chat.php'>{$lang['gl_irc']}</a></li>\n <li><a href='" . $INSTALLER09['baseurl'] . "/staff.php'>{$lang['gl_staff']}</a></li>\n <li><a href='" . $INSTALLER09['baseurl'] . "/wiki.php'>{$lang['gl_wiki']}</a></li>\n\t\t\t<li><a href='#' onclick='radio();'>{$lang['gl_radio']}</a></li>\n\t\t\t<li><a href='./rsstfreak.php'>{$lang['gl_tfreak']}</a></li>\n\t\t\t</ul><!--/ .sub-menu-->\n\t\t</li>\n\t\t<li><a href='#'>{$lang['gl_games']}</a>\n\t\t<ul class='sub-menu'>\n " . (isset($CURUSER) && $CURUSER['class'] >= UC_POWER_USER ? "<li><a href='" . $INSTALLER09['baseurl'] . "/casino.php'>{$lang['gl_casino']}</a></li>" : "") . "\n " . (isset($CURUSER) && $CURUSER['class'] >= UC_POWER_USER ? "<li><a href='" . $INSTALLER09['baseurl'] . "/blackjack.php'>{$lang['gl_bjack']}</a></li>" : "") . "\n </ul><!--/ .sub-menu-->\n\t\t</li>\n\t\t <li><a href='" . $INSTALLER09['baseurl'] . "/donate.php'>{$lang['gl_donate']}</a></li>\n\t\t <li><a href='#'>{$lang['gl_forums']}</a>\n\t\t<ul class='sub-menu'>\n <li><a href='" . $INSTALLER09['baseurl'] . "/forums.php'>{$lang['gl_tforums']}</a></li>\n <li><a href='http://forum.u-232.com/index.php'>SMF Support</a></li>\n\t\t</ul>\n\t\t</li>\n <li> " . (isset($CURUSER) && $CURUSER['class'] < UC_STAFF ? "<a class='brand' href='" . $INSTALLER09['baseurl'] . "/bugs.php?action=add'>{$lang['gl_breport']}</a>" : "<a class='brand' href='" . $INSTALLER09['baseurl'] . "/bugs.php?action=bugs'>{$lang['gl_brespond']}</a>") . "</li>\n <li>" . (isset($CURUSER) && $CURUSER['class'] < UC_STAFF ? "<a class='brand' href='" . $INSTALLER09['baseurl'] . "/contactstaff.php'>{$lang['gl_cstaff']}</a>" : "<a class='brand' href='" . $INSTALLER09['baseurl'] . "/staffbox.php'>{$lang['gl_smessages']}</a>") . "</li>\n\t\t</ul>\n\t\t<small>\n\t\t<strong>"; if (!empty($last24_cache)) { if ($last24_cache['totalonline24'] != 1) { $last24_cache['ss24'] = $lang['gl_members']; } else { $last24_cache['ss24'] = $lang['gl_member']; } } $htmlout .= "\n " . $last24_cache['totalonline24'] . $last24_cache['ss24'] . " {$lang['gl_last24']}<br />"; if (!empty($active_users_cache)) { $htmlout .= " {$lang['gl_ausers']} [" . $active_users_cache['au'] . "]"; } $htmlout .= "</strong></small></div><div class='clear'></div>"; } $htmlout .= "\n\t\t<!-- END Main Navigation\n\t\t=================================================== -->\n\t\t<!-- Logo\n\t\t=================================================== -->\n\t\t<!-- U-232 Source - Print Logo (CSS Controled) -->\n\t\t\t<div class='cl'> </div>\n\t\t\t<!-- Logo -->\n\t\t\t<div id='logo'>\n\t\t\t<h1>" . TBVERSION . "<span> Code</span></h1>\n\t\t\t<p class='description'> <i>FTW</i></p>\n\t\t\t</div>\n\t\t<!-- End Logo\n\t\t=================================================== -->"; if ($CURUSER) { $salty = md5("Th15T3xtis5add3dto66uddy6he@water..." . $CURUSER['username'] . ""); $htmlout .= "\n\t\t<!-- Platform Navigation\n\t\t=================================================== -->\n\t\t<div id='platform-menu' class='platform-menu'>\n\t\t\t<a href='" . $INSTALLER09['baseurl'] . "/index.php' class='home'>{$lang['gl_home']}</a>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/pm_system.php'>{$lang['gl_pms']}</a></li>\n\t\t\t\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/usercp.php?action=default'>{$lang['gl_usercp']}</a></li>\n\t\t\t\t\t" . (isset($CURUSER) && $CURUSER['class'] >= UC_STAFF ? "<li><a href='" . $INSTALLER09['baseurl'] . "/staffpanel.php'>{$lang['gl_admin']}</a></li>" : "") . "\n\t\t\t\t\t<li><a href='#' onclick='themes();'>{$lang['gl_theme']}</a></li>\n\t\t\t\t\t<li><a href='#' onclick='language_select();'>{$lang['gl_language_select']}</a></li>\n\t\t\t\t\t<!--<li><a href='javascript:void(0)' onclick='status_showbox()'>{$lang['gl_status']}</a></li>-->\n\t\t\t\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/friends.php'>{$lang['gl_friends']}</a></li>\n\t\t\t\t\t<li><a href='" . $INSTALLER09['baseurl'] . "/logout.php?hash_please={$salty}'>{$lang['gl_logout']}</a></li>\n\t\t\t\t</ul>\n\t\t\t<div class='container-fluid'>\n\t\t\t<!--/ statusbar start-->\n\t\t\t<div class='statusbar-container'>"; if ($CURUSER) { $htmlout .= StatusBar() . "\n\t\t\t</div>\n\t\t\t<!--/ statusbar end-->\n\t\t\t<!-- U-232 Source - Print Global Messages Start -->\n\t\t\t</div>\n\t\t\t<div id='base_globelmessage'>\n\t\t\t<div id='gm_taps'>\n\t\t\t<ul class='gm_taps'>\n\t\t <li><b>{$lang['gl_alerts']}</b></li>"; if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_REPORTS && $BLOCKS['global_staff_report_on']) { require_once BLOCK_DIR . 'global/report.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_UPLOADAPP && $BLOCKS['global_staff_uploadapp_on']) { require_once BLOCK_DIR . 'global/uploadapp.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_HAPPYHOUR && $BLOCKS['global_happyhour_on'] && XBT_TRACKER == false) { require_once BLOCK_DIR . 'global/happyhour.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_STAFF_MESSAGE && $BLOCKS['global_staff_warn_on']) { require_once BLOCK_DIR . 'global/staffmessages.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_NEWPM && $BLOCKS['global_message_on']) { require_once BLOCK_DIR . 'global/message.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_DEMOTION && $BLOCKS['global_demotion_on']) { require_once BLOCK_DIR . 'global/demotion.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_FREELEECH && $BLOCKS['global_freeleech_on'] && XBT_TRACKER == false) { require_once BLOCK_DIR . 'global/freeleech.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_CRAZYHOUR && $BLOCKS['global_crazyhour_on'] && XBT_TRACKER == false) { require_once BLOCK_DIR . 'global/crazyhour.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_BUG_MESSAGE && $BLOCKS['global_bug_message_on']) { require_once BLOCK_DIR . 'global/bugmessages.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_FREELEECH_CONTRIBUTION && $BLOCKS['global_freeleech_contribution_on']) { require_once BLOCK_DIR . 'global/freeleech_contribution.php'; } $htmlout .= "</ul></div></div><!-- U-232 Source - Print Global Messages End -->"; } /* $INSTALLER09['expires']['staff_check'] = 3600; //== test value if ($CURUSER['class'] >= UC_STAFF) { if (($mysql_data = $mc1->get_value('is_staff_' . $CURUSER['class'])) === false) { $res = sql_query('SELECT * FROM staffpanel WHERE av_class <= ' . sqlesc($CURUSER['class']) . ' ORDER BY page_name ASC') or sqlerr(__FILE__, __LINE__); while ($arr = mysqli_fetch_assoc($res)) $mysql_data[] = $arr; $mc1->cache_value('is_staff_' . $CURUSER['class'], $mysql_data, $INSTALLER09['expires']['staff_check']); } if ($mysql_data) { $htmlout .= '<div class="Staff_tools">Staff Tools: <div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> User <span class="caret"></span> </a> <ul class="dropdown-menu">'; foreach ($mysql_data as $key => $value){ if ($value['av_class'] <= $CURUSER['class'] && $value['type'] == 'user') { $htmlout .= '<li><a href="'.htmlsafechars($value["file_name"]).'">'.htmlsafechars($value["page_name"]).'</a></li>'; } } $htmlout .= '</ul></div>'; $htmlout .= ' <div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> Settings <span class="caret"></span> </a> <ul class="dropdown-menu">'; foreach ($mysql_data as $key => $value){ if ($value['av_class'] <= $CURUSER['class'] && $value['type'] == 'settings') { $htmlout .= '<li><a href="'.htmlsafechars($value["file_name"]).'">'.htmlsafechars($value["page_name"]).'</a></li>'; } } $htmlout .= ' </ul></div>'; $htmlout .= ' <div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> Stats <span class="caret"></span> </a> <ul class="dropdown-menu">'; foreach ($mysql_data as $key => $value){ if ((int)$value['av_class'] <= $CURUSER['class'] && htmlsafechars($value['type']) == 'stats') { $htmlout .= '<li><a href="'.htmlsafechars($value["file_name"]).'">'.htmlsafechars($value["page_name"]).'</a></li>'; } } $htmlout .= '</ul></div>'; $htmlout .= ' <div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> Other <span class="caret"></span> </a> <ul class="dropdown-menu">'; foreach ($mysql_data as $key => $value){ if ((int)$value['av_class'] <= $CURUSER['class'] && htmlsafechars($value['type']) == 'other') { $htmlout .= '<li><a href="'.htmlsafechars($value["file_name"]).'">'.htmlsafechars($value["page_name"]).'</a></li>'; } } $htmlout .= ' </ul></div></div>'; } } */ $htmlout .= "\n </div>\n <div class='clearfix'></div>\n <!-- End Platform Navigation and Global Messages \n ======================================================= -->"; } $htmlout .= "<br />\n <div id='base_content'>\n <!--<table class='mainouter' cellspacing='0' cellpadding='10'>\n <tr>\n <td align='center' class='outer' style='padding-bottom: 10px'>-->"; return $htmlout; }
/** * https://09source.kicks-ass.net:8443/svn/installer09/ * Licence Info: GPL * Copyright (C) 2010 Installer09 v.2 * A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon. * Project Leaders: Mindless,putyn,kidvision. **/ function stdhead($title = "", $msgalert = true, $stdhead = false) { global $CURUSER, $INSTALLER09, $lang, $free, $_NO_COMPRESS, $querytime, $query_stat, $q, $mc1, $BLOCKS, $CURBLOCK; if (!$INSTALLER09['site_online']) { die("Site is down for maintenance, please check back again later... thanks<br />"); } require CACHE_DIR . 'block_settings_cache.php'; if ($title == "") { $title = $INSTALLER09['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : ''); } else { $title = $INSTALLER09['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : '') . " :: " . htmlspecialchars($title); } if ($CURUSER) { $INSTALLER09['stylesheet'] = isset($CURUSER['stylesheet']) ? "{$CURUSER['stylesheet']}.css" : $INSTALLER09['stylesheet']; } /** ZZZZZZZZZZZZZZZZZZZZZZZZZZip it! **/ if (!isset($_NO_COMPRESS)) { if (!ob_start('ob_gzhandler')) { ob_start(); } } //== Include js files needed only for the page being used by pdq $js_incl = ''; if ($stdhead['js'] != false) { foreach ($stdhead['js'] as $JS) { $js_incl .= "<script type='text/javascript' src='{$INSTALLER09['baseurl']}/scripts/" . $JS . ".js'></script>"; } } if (isset($INSTALLER09['xhtml_strict'])) { //== Use strict mime type/doctype //== Only if browser/user agent supports xhtml if (stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') && ($INSTALLER09['xhtml_strict'] === 1 || $INSTALLER09['xhtml_strict'] == $CURUSER['username'])) { header('Content-type:application/xhtml+xml; charset=' . $INSTALLER09['char_set']); $doctype = '<?xml version="1.0" encoding="' . $INSTALLER09['char_set'] . '"?>' . '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ' . '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . $INSTALLER09['language'] . '">'; } } if (!isset($doctype)) { header('Content-type:text/html; charset=' . $INSTALLER09['char_set']); $doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"' . '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . '<html xmlns="http://www.w3.org/1999/xhtml">'; } $htmlout = $doctype . "<head>\r\n <meta http-equiv='Content-Language' content='en-us' />\r\n <!-- ####################################################### -->\r\n <!-- # This website is powered by installer09 source # -->\r\n <!-- # Download and support at: https://09source.kicks-ass.net # -->\r\n <!-- # http://installer.me # -->\r\n <!-- ####################################################### -->\r\n <title>{$title}</title>\r\n <link rel='alternate' type='application/rss+xml' title='Latest Torrents' href='./rss.php?passkey={$CURUSER['passkey']}' />\r\n <link rel='stylesheet' href='templates/1/1.css' type='text/css' />\r\n <link rel='shortcut icon' href='favicon.ico' />\r\n <link rel='stylesheet' type='text/css' href='bbcode/markitup/skins/markitup/style.css' />\r\n <link rel='stylesheet' type='text/css' href='bbcode/markitup/sets/bbcode/style.css' />\r\n <script type='text/javascript' src='./scripts/jquery.js'></script>\r\n <script type='text/javascript' src='./scripts/jquery.lightbox-0.5.min.js'></script>\r\n <link rel='stylesheet' type='text/css' href='css/jquery.lightbox-0.5.css' media='screen' />\r\n <script type='text/javascript' src='./scripts/jquery.status.js'></script>\r\n <script type='text/javascript'>\r\n /*<![CDATA[*/\r\n function themes() {\r\n window.open('take_theme.php','My themes','height=150,width=200,resizable=no,scrollbars=no,toolbar=no,menubar=no');\r\n }\r\n /*]]>*/\r\n </script>\r\n <script type='text/javascript'>\r\n /*<![CDATA[*/\r\n function radio() {\r\n window.open('radio_popup.php','My Radio','height=700,width=800,resizable=no,scrollbars=no,toolbar=no,menubar=no');\r\n }\r\n /*]]>*/\r\n </script>\r\n <script type='text/javascript'>\r\n /*<![CDATA[*/\r\n \$('document').ready(function () { \r\n \$(\"a[rel='lightbox']\").lightBox(); // Select all links that contains lightbox in the attribute rel \r\n });\r\n /*]]>*/\r\n </script>\r\n {$js_incl}</head>\r\n <body>\r\n <!-- Installer09 Source - Print Content Holder (Margin site) -->\r\n <div id='base_around'>\r\n <!-- Installer09 Source - Print Global Content -->\r\n <div id='base_content'>\r\n <!-- Installer09 Source - Print Header -->\r\n <div id='base_header_line'></div>\r\n <div id='base_header'>"; if ($CURUSER) { $htmlout .= StatusBar(); } if ($CURUSER) { $htmlout .= "\r\n <!-- Installer09 Source - Print Logo (CSS Controled) -->\r\n <div id='base_logo'>\r\n <img src='templates/1/images/logo.png' alt='' />\r\n </div>"; } if ($CURUSER) { $htmlout .= " </div>\r\n <!-- Installer09 Source - Print Navigation -->\r\n <div id='base_menu'><div id='mover'>\r\n <ul class='navigation'>\r\n <li><a href='index.php'><span class='nav'>HOME</span></a></li>\r\n <li><a href='browse.php'><span class='nav'>TORRENTS</span></a></li>\r\n <li><a href='viewrequests.php'><span class='nav'>REQUEST</span></a></li>\r\n <li><a href='upload.php'><span class='nav'>UPLOAD</span></a></li>\r\n <li><a href='search.php'><span class='nav'>SEARCH</span></a></li>\r\n <li><a href='forums.php'><span class='nav'>FORUMS</span></a></li>\r\n <li><a href='chat.php'><span class='nav'>IRC</span></a></li>\r\n <li><a href='topten.php'><span class='nav'>STATISTIC</span></a></li>\r\n <li><a href='rules.php'><span class='nav'>RULES</span></a></li>\r\n <li><a href='faq.php'><span class='nav'>FAQ</span></a></li>\r\n <li><a href='staff.php'><span class='nav'>STAFF</span></a></li>\r\n </ul>\r\n </div></div>\r\n <!-- Installer09 Source - Print Global Messages -->\r\n <div id='base_globelmessage'>\r\n <div id='gm_taps'>\r\n <ul class='gm_taps'>\r\n <li><b>Current Site Alerts:</b></li>"; if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_REPORTS && $BLOCKS['global_staff_report_on']) { require BLOCK_DIR . 'global/report.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_UPLOADAPP && $BLOCKS['global_staff_uploadapp_on']) { require BLOCK_DIR . 'global/uploadapp.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_HAPPYHOUR && $BLOCKS['global_happyhour_on']) { require BLOCK_DIR . 'global/happyhour.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_STAFF_MESSAGE && $BLOCKS['global_staff_warn_on']) { require BLOCK_DIR . 'global/staffmessages.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_NEWPM && $BLOCKS['global_message_on']) { require BLOCK_DIR . 'global/message.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_DEMOTION && $BLOCKS['global_demotion_on']) { require BLOCK_DIR . 'global/demotion.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_FREELEECH && $BLOCKS['global_freeleech_on']) { require BLOCK_DIR . 'global/freeleech.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_CRAZYHOUR && $BLOCKS['global_crazyhour_on']) { require BLOCK_DIR . 'global/crazyhour.php'; } $htmlout .= "</ul></div>"; } $htmlout .= "</div> \r\n <!-- OLD DESING BELOW --> \r\n <table class='mainouter' width='100%' border='0' cellspacing='0' cellpadding='10'>\r\n <tr><td align='center' class='outer' style='padding-bottom: 20px'>"; return $htmlout; }
function stdhead($title = "", $msgalert = true, $stdhead = false) { global $CURUSER, $TBDEV, $lang, $free, $_NO_COMPRESS, $querytime, $query_stat, $q, $mc; if (!$TBDEV['site_online']) { die("We are making updates, please check back again later... thanks<br />"); } header('Content-Type: text/html; charset=utf-8'); header('Content-Language content="en-us"'); if ($title == "") { $title = $TBDEV['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : ''); } else { $title = $TBDEV['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : '') . " :: " . htmlspecialchars($title); } if ($CURUSER) { $TBDEV['stylesheet'] = isset($CURUSER['stylesheet']) ? "{$CURUSER['stylesheet']}.css" : $TBDEV['stylesheet']; } if ($TBDEV['msg_alert'] && $msgalert && $CURUSER) { $res = sql_query("SELECT count(id) FROM messages WHERE receiver=" . $CURUSER["id"] . " && unread='yes'") or sqlerr(__FILE__, __LINE__); $arr = mysql_fetch_row($res); $unread = $arr[0]; } /** ZZZZZZZZZZZZZZZZZZZZZZZZZZip it! **/ if (!isset($_NO_COMPRESS)) { if (!ob_start('ob_gzhandler')) { ob_start(); } } /** include js files needed only for the page being used by pdq **/ $js_incl = '<!-- javascript goes here or in footer -->'; if ($stdhead['js'] != false) { foreach ($stdhead['js'] as $JS) { $js_incl .= "<script type='text/javascript' src='" . $TBDEV['baseurl'] . "/scripts/" . $JS . ".js'></script>"; } } $htmlout = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\r\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n <html xmlns='http://www.w3.org/1999/xhtml'>\r\n <!-- ************************************************************************** -->\r\n <!-- THIS WEBSITE IS POWERED BY TBDEV.NET 2009 (FINAL) SOURCECODE -->\r\n <!-- DESIGN IS MADE UNIQUE FOR THIS TRACKER, BY KIDVISION FROM TBDEV.NET TEAM -->\r\n <!-- HTTP://WWW.KIDVISION.ME | HTTP://WWW.TBDEV.NET -->\r\n <!-- ************************************************************************** -->\r\n <head>\r\n <meta name='generator' content='TBDev.net' />\r\n <meta http-equiv='Content-Language' content='en-us' />\r\n <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\r\n <meta name='MSSmartTagsPreventParsing' content='TRUE' />\r\n <title>{$title}</title>\r\n <link rel='alternate' type='application/rss+xml' title='Latest Torrents' href='./rss.php?passkey={$CURUSER['passkey']}' />\r\n <link rel='stylesheet' href='templates/6/6.css' type='text/css' />\r\n <link rel='stylesheet' href='templates/6/bbcode.css' type='text/css' />\r\n <script type='text/javascript' src='scripts/jquery.js'></script>\r\n <script type='text/javascript' src='image-resize/core-resize.js'></script>\r\n <link type='text/css' rel='stylesheet' href='image-resize/resize.css' />\r\n " . $js_incl . "\r\n </head>\r\n <body>"; if ($CURUSER) { $htmlout .= "\r\n <div id='container'>\r\n <!-- Header settings -->\r\n <div id='logo'><!-- Css - Change logo @ css --></div>\r\n <div id='userstats'>\r\n <!-- Status bar -->"; $htmlout .= StatusBar(); $htmlout .= "\r\n </div>\r\n \r\n <!-- Main menu --> \r\n \r\n <div id='globalmenu'>\r\n <ul id='menu2'>\r\n <li class='home'><a href='./index.php'><b>home</b></a></li>\r\n <li class='browse'><a href='./browse.php'><b>browse</b></a></li>\r\n <li class='forums'><a href='./forums.php'><b>forums</b></a></li>\r\n <li class='faq'><a href='./faq.php'><b>faq</b></a></li>\r\n <li class='rules'><a href='./rules.php'><b>rules</b></a></li>\r\n <li class='staff'><a href='./staff.php'><b>support</b></a></li>\r\n <li class='logout'><a href='./logout.php'><b>logout</b></a></li>\r\n </ul>\r\n </div>\r\n <div id='infomenu'>"; $htmlout .= "\r\n <form method='post' action='browse.php'>\r\n <input type='text' name='search' size='30' value='' />\r\n <input type='submit' value='GO' class='btn1' />\r\n </form>\r\n </div>\r\n <div class='clear'></div>\r\n <!-- menu --> \r\n <div id='globalundermenu'>\r\n <img src='templates/6/gfx/small-ar.png' alt=''/><a href='./topten.php'>top10</a> \r\n <img src='templates/6/gfx/small-ar.png' alt=''/><a href='./chat.php'>chat</a> \r\n <img src='templates/6/gfx/small-ar.png' alt=''/><a href='./bitbucket.php'>bitbucket</a> \r\n <img src='templates/6/gfx/small-ar.png' alt=''/><a href='./getrss.php'>get rss</a> \r\n <img src='templates/6/gfx/small-ar.png' alt=''/><a href='./donate.php'>donate</a> "; if ($CURUSER['class'] >= UC_UPLOADER) { $htmlout .= "<img src='templates/6/gfx/small-ar.png' alt=''/><a href='./upload.php'>upload</a> "; } else { $htmlout .= "<img src='templates/6/gfx/small-ar.png' alt=''/><a href='./uploadapp.php'>uploader-application</a> "; } $htmlout .= "<img src='templates/6/gfx/small-ar.png' alt=''/><a href='./usercp.php'>profile</a> "; if ($CURUSER['class'] >= UC_MODERATOR) { $htmlout .= "<img src='templates/6/gfx/small-ar.png' alt=''/><a href='./staffpanel.php'>staffpanel</a> "; } $htmlout .= "</div>"; } $htmlout .= "\r\n <!-- Main content -->\r\n <table class='mainouter' width='900px' align='center' border='0' cellspacing='0' cellpadding='0'>\r\n <tr><td align='center' class='outer' style='padding-top: 20px; padding-bottom: 5px'>"; //=== free addon start if ($CURUSER && isset($free)) { foreach ($free as $fl) { switch ($fl['modifier']) { case 1: $mode = 'All Torrents Free'; break; case 2: $mode = 'All Double Upload'; break; case 3: $mode = 'All Torrents Free and Double Upload'; break; default: $mode = 0; } $htmlout .= $fl['modifier'] != 0 && $fl['expires'] > TIME_NOW ? '<img src="' . $TBDEV['baseurl'] . '/pic/cat_free.gif" alt="FREE!" title="' . $fl['title'] . ' | ' . $mode . ' ' . $fl['message'] . ' | set by ' . $fl['setby'] . ' | ' . ($fl['expires'] != 1 ? 'Until ' . get_date($fl['expires'], 'DATE') . ' (' . mkprettytime($fl['expires'] - time()) . ' to go)' : '') . ' <br />' : ''; } } // happy hour if ($CURUSER) { if (happyHour("check")) { $htmlout .= "<table border='0' cellspacing='0' cellpadding='10' ><tr><td align='center' style=\"background:#CCCCCC;color:#222222; padding:10px\">\n\r\n <b>Hey its now happy hour ! " . (happyCheck("check") == 255 ? "Every torrent downloaded in the happy hour is free" : "Only <a href=\"browse.php?cat=" . happyCheck("check") . "\">this category</a> is free this happy hour") . "<br /><font color='red'>" . happyHour("time") . " </font> remaining from this happy hour!</b>"; $htmlout .= "</td></tr></table><br />\n"; } } //==Big red staffmess thingy box: if ($TBDEV['staffmsg_alert'] && $CURUSER['class'] >= UC_MODERATOR) { $num = mysql_result(sql_query('SELECT count(id) FROM staffmessages WHERE answeredby = 0'), 0); if ($num > 0) { $htmlout .= "<table border='0' cellspacing='0' cellpadding='10'>\r\n <tr><td style='padding: 10px; background: #ccc'>\n\r\n <b><a href='staffbox.php'>" . sprintf($lang['gl_staffmsg_alert'], $num) . "!</a></b>\r\n </td></tr></table><br />"; } } //==End //==Big red report thingy box: if ($TBDEV['report_alert'] && $CURUSER['class'] >= UC_MODERATOR) { $num = mysql_result(sql_query('SELECT COUNT(id) FROM reports WHERE delt_with = 0'), 0); if ($num > 0) { $htmlout .= "<table border='0' cellspacing='0' cellpadding='10'>\r\n <tr><td style='padding: 10px; background: #ccc'>\n\r\n <b><a href='admin.php?action=reports'>" . sprintf($lang['gl_reportmsg_alert'], $num) . "!</a></b>\r\n </td></tr></table><br />"; } } //==End //Big red uploadapp thingy box: if ($TBDEV['uploadapp_alert'] && $CURUSER['class'] >= UC_MODERATOR) { $num = mysql_result(sql_query('SELECT count(id) FROM uploadapp WHERE status = "pending"'), 0); if ($num > 0) { $htmlout .= "<table border='0' cellspacing='0' cellpadding='10'>\r\n <tr><td style='padding: 10px; background: #ccc'>\n\r\n <b><a href='uploadapps.php'>" . sprintf($lang['gl_uploadapp_alert'], $num) . "!</a></b>\r\n </td></tr></table><br />"; } } //==End //==Temp demotion if ($CURUSER['override_class'] != 255 && $CURUSER) { $htmlout .= "<b><a href='./restoreclass.php'>\r\n <img src='templates/6/gfx/tool.png' alt='Your running under lower class, restore here' title='Your running under lower class, restore here' /><font color='white'></font></a></b> "; } //==End if ($TBDEV['msg_alert'] && isset($unread) && !empty($unread)) { $htmlout .= "<b><a href='./messages.php'><img src='templates/6/gfx/new-mail.png' alt='You got mail' title='You got mail' /></a></b>"; } //==pdq crazyhour if (isset($CURUSER)) { $transfer_filename = $TBDEV['cache'] . '/transfer_crazyhour.txt'; $crazyhour_filename = $TBDEV['cache'] . '/crazy_hour.txt'; $crazyhour_cache = fopen($crazyhour_filename, 'r+'); $crazyhour_var = fread($crazyhour_cache, filesize($TBDEV['cache'] . '/crazy_hour.txt')); fclose($crazyhour_cache); $cimg = '<img src=\'' . $TBDEV["pic_base_url"] . 'cat_free.gif\' alt=\'FREE!\' />'; if ($crazyhour_var >= TIME_NOW && $crazyhour_var < TIME_NOW + 3600) { // is crazyhour $htmlout .= "<table width='50%'><tr><td class='colhead' colspan='3' align='center'>\r\n " . $TBDEV['crazy_title'] . " Ends in " . mkprettytime($crazyhour_var - TIME_NOW) . "</td></tr>\r\n <tr><td width='42px' align='center' valign='middle'>" . $cimg . "</td>\r\n <td><div align='center'>" . $TBDEV['crazy_message'] . "</div></td>\r\n <td width='42px' align='center' valign='middle'>" . $cimg . "</td></tr></table><br />"; if (is_file($transfer_filename)) { unlink($transfer_filename); } } elseif ($crazyhour_var < TIME_NOW + 3600 && !is_file($transfer_filename)) { //== crazyhour over $transfer_file_created = fopen($transfer_filename, 'w') or die('no perms?'); fclose($transfer_file_created); $crazyhour['crazyhour_new'] = mktime(23, 59, 59, date('m'), date('d'), date('y')); $crazyhour['crazyhour']['var'] = mt_rand($crazyhour['crazyhour_new'], $crazyhour['crazyhour_new'] + 86400); $fp = fopen($crazyhour_filename, 'w'); fwrite($fp, $crazyhour['crazyhour']['var']); fclose($fp); write_log('Next Crazyhour is at ' . date('F j, g:i a T', $crazyhour['crazyhour']['var'])); $htmlout .= "<table cellpadding='3'><tr><td class='colhead' colspan='3' align='center'>" . " Crazyhour will be " . get_date($crazyhour['crazyhour']['var'], '') . " " . mkprettytime($crazyhour['crazyhour']['var'] - TIME_NOW) . " remaining till Crazyhour</td></tr></table><br />"; } else { // make date look prettier with countdown etc even :] $htmlout .= "<table cellpadding='3'><tr><td class='colhead' colspan='3' align='center'>" . " Crazyhour will be " . get_date($crazyhour_var, '') . " " . mkprettytime($crazyhour_var - TIME_NOW) . " remaining till Crazyhour</td></tr></table><br />"; } } // crazyhour end return $htmlout; }
function stdhead($title = "", $msgalert = true) { global $CURUSER, $SITE_ONLINE, $SITENAME, $pic_base_url, $stylesheet, $BASEURL; if (!$SITE_ONLINE) { die("Site is down for maintenance, please check back again later... thanks<br>"); } //header("Content-Type: text/html; charset=iso-8859-1"); //header("Pragma: No-cache"); if ($title == "") { $title = $SITENAME . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : ''); } else { $title = $SITENAME . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : '') . " :: " . htmlspecialchars($title); } if ($CURUSER) { /* $ss_a = @mysql_fetch_array(@sql_query("select uri from stylesheets where id=" . $CURUSER["stylesheet"])); if ($ss_a) $ss_uri = $ss_a["uri"]; */ $stylesheet = "{$CURUSER['stylesheet']}.css"; } if ($msgalert && $CURUSER) { $res = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " && unread='yes'") or sqlerr(__FILE__, __LINE__); $arr = mysql_fetch_row($res); $unread = $arr[0]; } $rss_query = ""; if ($_SERVER['QUERY_STRING']) { $rss_query = "?" . $_SERVER['QUERY_STRING']; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="generator" content="BioTorrents.net" /> <meta http-equiv="Content-Language" content="en-us" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="MSSmartTagsPreventParsing" content="TRUE" /> <link rel="alternate" type="application/rss+xml" title="RSS" href="http://biotorrents.net/rss.php<?php echo $rss_query; ?> " <title><?php echo $title; ?> </title> <link rel="stylesheet" href="<?php echo $stylesheet; ?> " type="text/css" /> </head> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-12733868-2"); pageTracker._trackPageview(); } catch(err) {}</script> <body> <table width='100%' cellspacing='0' cellpadding='0' style='background: transparent'> <tr> <td class='clear'> <div id="logostrip"> <a href="<?php echo $BASEURL; ?> "> <img src="<?php echo $pic_base_url; ?> logo3.gif" alt='' style="float:left;"/> <div style="display:table-cell; vertical-align:middle;text-align:left;height:120px;padding-left:3%"> <h1 style="font-weight: bolder;"><big><big><big><big>BioTorrents</big></big></big></big></h1> </div> </a> <!--<a href='donate.php'><img src="./pic/x-click-but04.gif" border="0" alt="Make a donation" style='margin-top: 5px' /></a>--> </div> </td> </tr> </table> <table class='mainouter' width="100%" border="1" cellspacing="0" cellpadding="10"> <!-- STATUSBAR --> <?php print StatusBar(); ?> <!-- MENU --> <tr><td class='outer'> <div id="submenu"> <?php if ($CURUSER && $CURUSER['id'] != 4) { ?> <div class="tb-top-left-link"> <a href='about.php'>About</a> <a href='browse.php'>Browse</a> <a href='upload.php'>Upload</a> <a href='forums.php'>Forums</a> <a href='topten.php'>Top 10</a> <a href='log.php'>Log</a> <a href='faq.php'>FAQ</a> <a href='links.php'>Links</a> <a href='staff.php'>Contact Us</a> </div> <div class="tb-top-right-link"> <a href='my.php'>Profile</a> <a href='logout.php'>Logout</a> </div> <?php } else { ?> <div class="tb-top-left-link"> <a href='about.php'>About</a> <a href='browse.php'>Browse</a> <a href='upload.php'>Upload</a> <a href='forums.php'>Forums</a> <a href='topten.php'>Top 10</a> <a href='log.php'>Log</a> <a href='faq.php'>FAQ</a> <a href='links.php'>Links</a> <a href='staff.php'>Contact Us</a> </div> <div class="tb-top-right-link"> <a href='login.php'>Login</a> <a href='signup.php'>Signup</a> <a href='recover.php'>Recover Account</a> </div> <?php } ?> </div> </td> </tr> <tr><td align='center' class='outer' style="padding-top: 20px; padding-bottom: 20px"> <?php if (isset($unread) && !empty($unread)) { print "<p><table border='0' cellspacing='0' cellpadding='10' bgcolor='red'><tr><td style='padding: 10px; background: red'>\n"; print "<b><a href='messages.php'><font color='white'>You have {$unread} new message" . ($unread > 1 ? "s" : "") . "!</font></a></b>"; print "</td></tr></table></p>\n"; } }
function stdhead($title = "", $msgalert = true, $stdhead = false) { global $CURUSER, $INSTALLER09, $lang, $free, $_NO_COMPRESS, $query_stat, $querytime, $mc1, $BLOCKS, $CURBLOCK, $mood; if (!$INSTALLER09['site_online']) { die("Site is down for maintenance, please check back again later... thanks<br />"); } if ($title == "") { $title = $INSTALLER09['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : ''); } else { $title = $INSTALLER09['site_name'] . (isset($_GET['tbv']) ? " (" . TBVERSION . ")" : '') . " :: " . htmlsafechars($title); } if ($CURUSER) { $INSTALLER09['stylesheet'] = isset($CURUSER['stylesheet']) ? "{$CURUSER['stylesheet']}.css" : $INSTALLER09['stylesheet']; $INSTALLER09['categorie_icon'] = isset($CURUSER['categorie_icon']) ? "{$CURUSER['categorie_icon']}" : $INSTALLER09['categorie_icon']; $INSTALLER09['language'] = isset($CURUSER['language']) ? "{$CURUSER['language']}" : $INSTALLER09['language']; } /** ZZZZZZZZZZZZZZZZZZZZZZZZZZip it! */ if (!isset($_NO_COMPRESS)) { if (!ob_start('ob_gzhandler')) { ob_start(); } } //== Include js files needed only for the page being used by pdq $js_incl = ''; $js_incl .= '<!-- javascript goes here or in footer -->'; if (!empty($stdhead['js'])) { foreach ($stdhead['js'] as $JS) { $js_incl .= "<script type='text/javascript' src='{$INSTALLER09['baseurl']}/scripts/" . $JS . ".js'></script>"; } } //== Include css files needed only for the page being used by pdq $css_incl = ''; $css_incl .= '<!-- css goes here -->'; $salty = md5("Th15T3xtis5add3dto66uddy6he@water..." . $CURUSER['username'] . ""); if (!empty($stdhead['css'])) { foreach ($stdhead['css'] as $CSS) { $css_incl .= "<link type='text/css' rel='stylesheet' href='{$INSTALLER09['baseurl']}/templates/{$CURUSER['stylesheet']}/css/" . $CSS . ".css' />"; } } if (isset($INSTALLER09['xhtml_strict'])) { //== Use strict mime type/doctype //== Only if browser/user agent supports xhtml if (isset($_SERVER['HTTP_ACCEPT']) && stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') && ($INSTALLER09['xhtml_strict'] === 1 || $INSTALLER09['xhtml_strict'] == $CURUSER['username'])) { header('Content-type:application/xhtml+xml; charset=' . charset()); $doctype = '<?xml version="1.0" encoding="' . charset() . '"?>' . '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">' . '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'; } } if (!isset($doctype)) { header('Content-type:text/html; charset=' . charset()); $doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"' . '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . '<html xmlns="http://www.w3.org/1999/xhtml">'; } $body_class = isset($_COOKIE['theme']) ? htmlsafechars($_COOKIE['theme']) : 'background-15 h-style-1 text-1 skin-1'; $htmlout = $doctype . "<head>\n <meta http-equiv='Content-Language' content='en-us' />\n <!-- ####################################################### -->\n <!-- # This website is powered by U-232 V3 # -->\n <!-- # Download and support at: https://u-232.com # -->\n <!-- # This Template was Modded by RogueSurfer\t # -->\n <!-- ####################################################### -->\n <title>{$title}</title>\n <link rel='alternate' type='application/rss+xml' title='Latest Torrents' href='./rss.php?passkey={$CURUSER['passkey']}' />\n <link rel='stylesheet' href='./templates/1/1.css' type='text/css' />\n <link rel='stylesheet' href='./templates/1/themeChanger/css/colorpicker.css' type='text/css' />\n <link rel='stylesheet' href='./templates/1/themeChanger/css/themeChanger.css' type='text/css' />\n <link rel='shortcut icon' href='favicon.ico' />\n <script type='text/javascript' src='./scripts/jquery.js'></script>\n <script type='text/javascript' src='./scripts/jquery.status.js'></script>\n <script type='text/javascript' src='./scripts/jquery.cookie.js'></script>\n <script type='text/javascript' src='./templates/1/themeChanger/js/colorpicker.js'></script>\n <script type='text/javascript' src='./templates/1/themeChanger/js/themeChanger.js'></script>\n <script type='text/javascript' src='./templates/1/js/jquery.smoothmenu.js'></script>\n <script type='text/javascript' src='./templates/1/js/core.js'></script>\n <script type='text/javascript'>\n /*<![CDATA[*/\n function themes() {\n window.open('take_theme.php','My themes','height=150,width=200,resizable=no,scrollbars=no,toolbar=no,menubar=no');\n }\n function radio() {\n window.open('radio_popup.php','My Radio','height=700,width=800,resizable=no,scrollbars=no,toolbar=no,menubar=no');\n }\n /*]]>*/\n </script>\n {$js_incl}{$css_incl}\n <!--[if lt IE 9]>\n <script type='text/javascript' src='./templates/1/js/modernizr.custom.js'></script>\n\t <script type='text/javascript' src='http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js'></script>\n\t <script type='text/javascript' src='./templates/1/js/ie.js'></script>\n <![endif]-->\n </head>\n <body class='{$body_class}'>\n <!-- ***************** - Wrapper - ******************* -->\n <div id='wrapper'>\n\t <div class='clearfix'>\n <!--<header class='clearfix'>-->\n\t\t <!-- ***************** - Main Navigation - ***************** -->"; if ($CURUSER) { $active_users_cache = $last24_cache = 0; $keys['last24'] = 'last24'; $last24_cache = $mc1->get_value($keys['last24']); $keys['activeusers'] = 'activeusers'; $active_users_cache = $mc1->get_value($keys['activeusers']); $htmlout .= "<div id='navigation' class='navigation'>\n \t\t\t<ul>\n\t\t\t\t<li><a href='#'>Torrent</a>\n\t\t\t\t\t<ul class='sub-menu'>\n\t\t\t\t\t\t<li><a href='browse.php'>Torrents</a></li>\n\t\t\t\t\t\t<li><a href='requests.php'>Requests</a></li>\n\t\t\t\t\t\t<li><a href='offers.php'>Offers</a></li>\n\t\t\t\t\t\t<li><a href='./needseed.php?needed=seeders'>Need Seeds</a></li>\n\t\t\t\t\t\t" . (isset($CURUSER) && $CURUSER['class'] <= UC_VIP ? "<li><a href='./uploadapp.php'>Upload Appt</a> </li>" : "<li><a href='upload.php'>Upload</a></li>") . "\n <li><a href='bookmarks.php'>Bookmarks</a></li>\n\t\t\t\t\t</ul><!--/ .sub-menu-->\n\t\t\t\t</li>\n\t\t\t\t<li><a href='#'>General</a>\n\t\t\t\t\t<ul class='sub-menu'>\n <li><a href='announcement.php'>Site Announcements</a></li>\n <li><a href='topten.php'>Statistics</a></li>\n <li><a href='faq.php'>FAQ</a></li>\n \t\t\t\t<li><a href='chat.php'>IRC</a></li>\n <li><a href='staff.php'>Staff</a></li>\n <li><a href='./wiki.php'>Wiki</a></li>\n\t\t\t\t\t\t<li><a href='#' onclick='radio();'>Radio</a></li>\n\t\t\t\t\t\t<li><a href='./rsstfreak.php'>Torrent Freak</a></li>\n\t\t\t\t\t</ul><!--/ .sub-menu-->\n\t\t\t\t</li>\n\t\t\t\t<li><a href='#'>Games</a>\n\t\t\t\t\t<ul class='sub-menu'>\n " . (isset($CURUSER) && $CURUSER['class'] >= UC_POWER_USER ? "\n <li><a href='casino.php'>Casino</a></li>" : "") . "\n " . (isset($CURUSER) && $CURUSER['class'] >= UC_POWER_USER ? "\n <li><a href='blackjack.php'>Blackjack</a></li>" : "") . "\n <li><a href='arcade.php'>Arcade</a></li>\n </ul><!--/ .sub-menu-->\n\t\t\t\t</li>\n\t\t\t\t<li><a href='./donate.php'>Donate</a></li>\n\t\t\t\t<li><a href='#'>Forums</a>\n\t\t\t\t\t<ul class='sub-menu'>\n <li><a href='forums.php'>Tracker Forums</a></li>\n <li><a href='http://forum.u-232.com/index.php'>SMF Support</a></li>\n\t\t\t\t\t</ul>\n\t\t\t\t</li>\n <li> " . (isset($CURUSER) && $CURUSER['class'] < UC_STAFF ? "<a class='brand' href='./bugs.php?action=add'> Bug Report</a>" : "<a class='brand' href='./bugs.php?action=bugs'> Bug Respond</a>") . "</li>\n <li>" . (isset($CURUSER) && $CURUSER['class'] < UC_STAFF ? "<a class='brand' href='./contactstaff.php'> Contact Staff</a>" : "<a class='brand' href='./staffbox.php'>Staff Messages</a>") . "</li>\n\t\t\t</ul>\n <small>\n <strong>\n " . $last24_cache['totalonline24'] . " Member" . $last24_cache['ss24'] . " in last 24 hours<br />"; if (!empty($active_users_cache)) { $htmlout .= " Active User's [" . $active_users_cache['actcount'] . "]"; } $htmlout .= "</strong>\n </small>\n </div>"; } $htmlout .= "<!--/ #navigation-->\n\t\t <!-- ***************** - END Main Navigation - ******************* -->\n\t\t <!-- ***************** - Logo - ******************* -->\n\t\t <!-- U-232 Source - Print Logo (CSS Controled) -->\n\t\t <div class='cl'> </div>\n\t\t <!-- Logo -->\n <div id='logo'>\n\t\t <h1>U-232<span> Code</span></h1>\n\t\t <p class='description'> your source</p>\n\t\t </div>\n\t\t <!-- / Logo -->\n <!-- ***************** - END Logo - ******************* -->\n </div>\n <!--</header>-->\n\t <!-- ***************** - END Header - ***************** -->\n\t <!-- *************** - Container - *************** -->\n\t <div class='container'>\n <!-- ************** - Search - ************** -->\n\t\t <!-- *************** - END Search - *************** -->\n\t\t <!-- ************** - Platform Navigation - ************** -->"; if ($CURUSER) { $htmlout .= "<div id='platform-menu' class='platform-menu'>\n\t\t \t <a href='index.php' class='home'>Home</a>\n <ul>\n <li><a href='pm_system.php'>Messages</a></li>\n <li><a href='usercp.php?action=default'>Usercp</a></li>\n " . (isset($CURUSER) && $CURUSER['class'] >= UC_STAFF ? "\n <li><a href='staffpanel.php'>Admincp</a>\n </li>" : "") . "\n <li><a href='#' onclick='themes();'>Theme</a></li>\n <li><a href='friends.php'>Friends</a></li>\n <li><a href='logout.php?hash_please={$salty}'>Logout</a></li>\n </ul>\n\t\t <!--/ .platform-menu-->\n\t\t <div class='statusbar-container'>\n <!--/ statusbar start-->"; if ($CURUSER) { $htmlout .= StatusBar() . "<!--/ statusbar end-->\n <!--/ #searchForm-->\n\t<!-- U-232 Source - Print Global Messages Start -->\n </div><div id='base_globelmessage'>\n <div id='gm_taps'>\n <ul class='gm_taps'>\n <li><b>Current Site Alerts:</b></li>"; if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_REPORTS && $BLOCKS['global_staff_report_on']) { require_once BLOCK_DIR . 'global/report.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_UPLOADAPP && $BLOCKS['global_staff_uploadapp_on']) { require_once BLOCK_DIR . 'global/uploadapp.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_HAPPYHOUR && $BLOCKS['global_happyhour_on']) { require_once BLOCK_DIR . 'global/happyhour.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_STAFF_MESSAGE && $BLOCKS['global_staff_warn_on']) { require_once BLOCK_DIR . 'global/staffmessages.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_NEWPM && $BLOCKS['global_message_on']) { require_once BLOCK_DIR . 'global/message.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_DEMOTION && $BLOCKS['global_demotion_on']) { require_once BLOCK_DIR . 'global/demotion.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_FREELEECH && $BLOCKS['global_freeleech_on']) { require_once BLOCK_DIR . 'global/freeleech.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_CRAZYHOUR && $BLOCKS['global_crazyhour_on']) { require_once BLOCK_DIR . 'global/crazyhour.php'; } if (curuser::$blocks['global_stdhead'] & block_stdhead::STDHEAD_BUG_MESSAGE && $BLOCKS['global_bug_message_on']) { require_once BLOCK_DIR . 'global/bugmessages.php'; } $htmlout .= "</ul></div></div><!-- U-232 Source - Print Global Messages End -->"; } $htmlout .= "\t<!--/ statusbarsbar-container--></div><div class='clearfix'><br /></div>"; } $htmlout .= "\n <table class='mainouter' cellspacing='0' cellpadding='10'>\n <tr><td align='center' class='outer' style='padding-bottom: 10px'>\n\t\t<div class='entry clearfix'>\n <!--roguesample end-->"; return $htmlout; }