jul/lib/colors.php
2011-11-09 23:22:07 -08:00

126 lines
5.3 KiB
PHP

<?php
if (!$x_hacks['host']) {
// if ($loguserid == 1) $boardtitle = "";
/* $autobancount = mysql_fetch_array(mysql_query("SELECT COUNT(*) AS cnt, MAX(`date`) as time FROM `ipbans` WHERE `reason` LIKE 'Autoban'"), MYSQL_ASSOC);
$totalbancount = mysql_fetch_array(mysql_query("SELECT COUNT(*) AS cnt, MAX(`date`) as time FROM `ipbans`"), MYSQL_ASSOC);
$boardtitle .= "<br><font class=font color=#ff0000><b>If you got banned, PM an admin for a password change</b></font><br><font class=fonts>". $autobancount['cnt'] ." automatic IP bans have been issued, last ". timeunits2(ctime() - $autobancount['time']) ." ago"
."<br>". $totalbancount['cnt'] ." IP bans have been issued in total, last ". timeunits2(ctime() - $totalbancount['time']) ." ago";
*/
// $boardtitle= "<span style='font-size: 40pt; font-variant: small-caps; color: #f33;'>The Hivemind Collective</span><br><span style='font-size: 6pt; font-variant: small-caps; color: #c00'>(because a group of friends sharing a similar opinion is totally hivemind, dood!)</span>";
}
$nmcol[0]=array('-1'=>'888888','97ACEF','D8E8FE','AFFABE','FFEA95');
$nmcol[1]=array('-1'=>'888888','F185C9','FFB3F3','C762F2','C53A9E');
$nmcol[2]=array('-1'=>'888888','7C60B0','EEB9BA','47B53C','F0C413');
$linkcolor='FFD040';
$linkcolor2='F0A020';
$linkcolor3='FFEA00';
$linkcolor4='FFFFFF';
$textcolor='E0E0E0';
$font ='verdana';
$font2 ='verdana';
$font3 ='tahoma';
$newpollpic = '<img src="images/newpoll.png" alt="New poll" align="absmiddle">';
$newreplypic = '<img src="images/newreply.png" alt="New reply" align="absmiddle">';
$newthreadpic = '<img src="images/newthread.png" alt="New thread" align="absmiddle">';
$closedpic = '<img src="images/threadclosed.png" alt="Thread closed" align="absmiddle">';
$numdir ='jul/';
$statusicons['new'] = '<img src=images/new.gif>';
$statusicons['newhot'] = '<img src=images/hotnew.gif>';
$statusicons['newoff'] = '<img src=images/off.gif>';
$statusicons['newhotoff'] = '<img src=images/hotoff.gif>';
$statusicons['hot'] = '<img src=images/hot.gif>';
$statusicons['hotoff'] = '<img src=images/hotoff.gif>';
$statusicons['off'] = '<img src=images/off.gif>';
$statusicons['getnew'] = '<img src=images/getnew.png title="Go to new posts" align="absmiddle">';
$statusicons['sticky'] = 'Sticky:';
$statusicons['poll'] = 'Poll:';
$statusicons['stickypoll'] = 'Sticky poll:';
$schemetime = -1; // mktime(9, 0, 0) - time();
// $numfil='numnes';
$schemepre = false;
if (isset($_GET['scheme']) && is_numeric($_GET['scheme'])) {
$scheme = intval($_GET['scheme']);
$schemepre = true;
} elseif (isset($_GET['scheme'])) {
$scheme = 0;
}
# if (!$x_hacks['host']) $scheme = 3; // cue whining (again)
$schemerow = $sql -> fetchq("SELECT `name`, `file` FROM schemes WHERE id='$scheme'");
$filename = "";
if ($schemerow) {
$filename = $schemerow['file'];
} else {
$filename = "night.php";
$schemepre = false;
}
# if (!$x_hacks['host'] && true) {
# $filename = "ymar.php";
# }
require "schemes/$filename";
if ($schemepre) {
$boardtitle .= "</a><br><span class='font'>Previewing scheme \"<b>". $schemerow['name'] ."</b>\"</span>";
}
# if (!$x_hacks['host'] && true) {
# $boardtitle .= "</a><br><a href='/thread.php?id=10372'><span style='font-size: 14px;'>Now with more celebrations!</span></a>";
# }
# hack for compat
if (!$inputborder) $inputborder = $tableborder;
$newpic = $statusicons['new']; # hack for compat
if (!$x_hacks['host'] && $_GET['test'] && $x_hacks['mmdeath'] > 0) {
$boardtitle = "</a><center><table align=\"center\" cellspacing=1 style=\"border: 3px double #000; background: url('numgfx/red.gif');\"><td style=\"background: #000; padding: 8px;\" align='center'><span class='font' style='font-size: 20px;'><b>Say goodbye to Mega Mario and Rom Manic!</b></span>
<br><br><center class='stupiddoomtimerhack'><img src='numgfx.php?n=". $x_hacks['mmdeath'] ."&f=numdeath' height=32></center></td></table></center>";
}
if ($loguser['powerlevel'] <3) {
$nmcol[0][1] = $nmcol[0][0];
$nmcol[1][1] = $nmcol[1][0];
$nmcol[2][1] = $nmcol[2][0];
}
$nmcol[0][4] = "#ffffff";
if (!$x_hacks['host']) {
# $boardtitle .= "</a><br><a href='/thread.php?id=9218'><span style='color: #f00; font-weight: bold;'>Security notice for certain users, please read and see if you are affected</span></a>";
}
if ($loguser['id'] >= 1 && false) {
$numdir2 = $numdir;
$numdir = "num3/";
$votetu = max(0, 1000000 - floor((mktime(15, 0, 0, 7, 22, 2009) - microtime(true)) * (1000000 / 86400)));
$votetally = max(0, $votetu / (1000000));
$votepct2 = floor($votetu * 1); // no decimal point, so x100 for added precision
$votepctm = 5; // width of the bar
$votepct = floor($votetally * 100 * $votepctm);
// $boardtitle .= "</a><br><a href='/thread.php?id=5710'><span style='color: #f22; font-size: 14px;'>". generatenumbergfx($votetu ."/1000000", 2) ." <img src='numgfx/num3/barleft.png'><img src='numgfx/num3/bar-on.png' height='8' width='". ($votepct) ."'><img src='numgfx/num3/bar-off.png' height='8' width='". (100 * $votepctm - $votepct) ."'><img src='numgfx/num3/barright.png'></span></a>";
$numdir = $numdir2;
$cycler = str_replace("color=", "#", getnamecolor(0, 0));
$boardtitle .= "</a><br><a href='/thread.php?id=5866'><span style='color: $cycler; font-size: 14px;'>Mosts Results posted. Go view.</span></a>";
}