Code:<?php
if (stristr($_SERVER['SCRIPT_NAME'], "theme.php")) {
die ("Access Denied");
}
/*******************************************************************/
/* The theme and its contents were made by www.clanthemes.com */
/*******************************************************************/
$bgcolor1 = "";
$bgcolor2 = "";
$bgcolor3 = "";
$bgcolor4 = "";
$textcolor1 = "";
$textcolor2 = "";
/*******************************************************************/
/* Theme Center Blocks (For Ravens Nuke only) */
/*******************************************************************/
function themecenterbox($title, $content) {
echo'<table align="center" width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="53"><img src="themes/cspromod/images/h1_01.jpg" width="53" height="42" alt="" /></td>
<td style="background:url(themes/cspromod/images/h1_02.jpg); height:42px; width:100%; "><div class="themecenterbox"><h2>'.$title.'</h2></div></td>
<td width="67"><img src="themes/cspromod/images/h1_03.jpg" width="67" height="42" alt="" /></td>
</tr>
</table>
<table align="center" width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="background:url(themes/cspromod/images/lgra.jpg) 50%; padding:5px;">'.$content.'
</td>
</tr>
</table>';
}
/*******************************************************************/
/* The theme and its contents were made by www.clanthemes.com */
/*******************************************************************/
function OpenTable() {
global $name, $admin;
if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='Members_List') OR ($name=='vwar') OR ($name=='Your_Account') OR ($name=='Journal')) {
echo'<table width="920px" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="53"><img src="themes/cspromod/images/h1_01.jpg" width="53" height="42" alt="" /></td>
<td style="background:url(themes/cspromod/images/h1_02.jpg); height:42px; width:100%; "></td>
<td width="67"><img src="themes/cspromod/images/h1_03.jpg" width="67" height="42" alt="" /></td>
</tr>';
echo "</table>\n";
echo'<table width="920px" border="0" cellpadding="0" cellspacing="0">';
echo " <tr>\n";
echo " <td style=\"background-image:url(themes/cspromod/images/lgra.jpg); width:920px; padding:5px;\">";
} else {
echo'<table align="center" width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="53"><img src="themes/cspromod/images/h1_01.jpg" width="53" height="42" alt="" /></td>
<td style="background:url(themes/cspromod/images/h1_02.jpg); height:42px; width:100%; "></td>
<td width="67"><img src="themes/cspromod/images/h1_03.jpg" width="67" height="42" alt="" /></td>
</tr>';
echo "</table>\n";
echo'<table align="center" width="98%" border="0" cellpadding="0" cellspacing="0">';
echo " <tr>\n";
echo " <td style=\"background:url(themes/cspromod/images/lgra.jpg) 50%; padding:5px;\">";
}
}
function CloseTable() {
echo" </td>\n";
echo " </tr>\n";
echo "</table>\n";
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"4\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
/*******************************************************************/
/* The theme and its contents were made by www.clanthemes.com */
/*******************************************************************/
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if (!empty($notes)) {
$notes = "<br /><br /><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<div class=\"content\">$thetext$notes</div>\n";
} else {
if(!empty($informant)) {
$boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<div class=\"content\">$boxstuff</div>\n";
}
}
/*******************************************************************/
/* The theme and its contents were made by www.clanthemes.com */
/*******************************************************************/
function themeheader() {
global $name, $sid, $title, $informant, $admin, $user, $banners, $name, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous, $time, $dbi, $user_prefix, $start_time;
$username = $cookie[1];
if (count($cookie)>1) $username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
//add visitor numbers to theme
if (isset($_SERVER['REMOTE_ADDR'])) { $ip = $_SERVER['REMOTE_ADDR']; }
if (is_user($user))
{
$uname = $cookie[1];
$guest = 0;
}
else
{
if (!empty($ip)) {
$uname = $ip;
} else {
$uname = "";
}
$guest = 1;
}
$guest_online_sql = "SELECT * FROM ".$prefix."_session WHERE guest='1'";
$guest_online_query = $db->sql_query($guest_online_sql);
$guest_online_num = $db->sql_numrows($guest_online_query);
$member_online_sql = "SELECT * FROM ".$prefix."_session WHERE guest='0'";
$member_online_query = $db->sql_query($member_online_sql);
$member_online_num = $db->sql_numrows($member_online_query);
$who_online_num = $guest_online_num + $member_online_num;
$who_online = "<span class='bold'>Members online: $member_online_num Guest online: $guest_online_num</span>";
//end visitor numbers
//user details
$result = $db->sql_query ( "select user_id from $prefix"._users." where username='$username'");
list( $user_id ) = $db->sql_fetchrow ( $result);
$result2 = $db->sql_query ( "select privmsgs_type from $prefix"._bbprivmsgs." where privmsgs_to_userid='$user_id' AND (privmsgs_type='1' or privmsgs_type='5')");
$MesUnread = $db->sql_numrows ( $result2);
$result3 = $db->sql_query ( "select privmsgs_type from $prefix"._bbprivmsgs." where privmsgs_to_userid='$user_id' AND (privmsgs_type='0')");
$MesRead = $db->sql_numrows ( $result3);
$logpm = "You Have <a href=\"messages.html\">$MesUnread</a> Messages";
//end user details
$public_msg = public_message();
echo "$public_msg";
echo'<body>';
echo'<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>';
echo'<script type="text/javascript" src="themes/cspromod/style/slider.js"></script>';
echo '<div id="wrap">
<div class="header">
<div class="top-bar">
<div class="welcome">
<span class="bold">Welcome to <a href="#">www.cspromodboards.com</a></span>
</div>
<div class="right">';
if ($username == "Anonymous") {
echo"<form action=\"account.html\" method=\"post\">
<input class=\"name\" type=\"text\" name=\"username\" value=\"Username\" onFocus=\"if(this.value=='Username')this.value='';\" />
<input class=\"pass\" type=\"password\" name=\"user_password\" value=\"Password\" onFocus=\"if(this.value=='Password')this.value='';\" />
<a href=\"account.html\">
<input class=\"login\" type=\"button\" value=\"\" src=\"#\" />
</a>
</form>";
echo'<a href="modules.php?name=Your_Account&op=new_user">
<img class="reg" src="themes/cspromod/images/register.jpg" alt="Register" />
</a>';
} else {
echo"<span class=\"bold\">Welcome $username $logpm</span> ";
}
echo'<form action="modules.php?name=Search" method="post">';
echo"<input class=\"search\" type=\"text\" name=\"query\" value=\"Search The Site...\" onFocus=\"if(this.value=='Search The Site...')this.value='';\" >";
echo"<input class=\"sbutton\" type=\"submit\" value=\"\" src=\"#\" />";
echo'</form>
</div>
</div>';
echo"<div class=\"banner\"><div class=\"ad\">";
echo ads(0);
echo"</div></div>";
echo'<div id="nav">
<ul>
<li class="link"><a href="index.php">HOME<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<!--[if IE]><div class="iebug"><![endif]-->
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li><a href="#">Three</a></li>
<li><a href="#">Four</a></li>
<li><a href="#">Five</a></li>
<!--[if IE]></div><![endif]-->
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<img style="margin-top:5px;" class="left" src="themes/cspromod/images/div.jpg" alt="|" />
<li class="link"><a href="forums.html">FORUMS<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<!--[if IE]><div class="iebug"><![endif]-->
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li><a href="#">Three</a></li>
<li><a href="#">Four</a></li>
<li><a href="#">Five</a></li>
<!--[if IE]></div><![endif]-->
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<img style="margin-top:5px;" class="left" src="themes/cspromod/images/div.jpg" alt="|" />
<li class="link"><a href="modules.php?name=Downloads">DOWNLOADS<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<!--[if IE]><div class="iebug"><![endif]-->
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li><a href="#">Three</a></li>
<li><a href="#">Four</a></li>
<li><a href="#">Five</a></li>
<!--[if IE]></div><![endif]-->
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<img style="margin-top:5px;" class="left" src="themes/cspromod/images/div.jpg" alt="|" />
<li class="link"><a href="modules.php?name=GCalendar">CALENDAR<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<!--[if IE]><div class="iebug"><![endif]-->
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li><a href="#">Three</a></li>
<li><a href="#">Four</a></li>
<li><a href="#">Five</a></li>
<!--[if IE]></div><![endif]-->
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<img style="margin-top:5px;" class="left" src="themes/cspromod/images/div.jpg" alt="|" />
<li class="link"><a href="modules.php?name=LGSL">SERVERS<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<!--[if IE]><div class="iebug"><![endif]-->
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li><a href="#">Three</a></li>
<li><a href="#">Four</a></li>
<li><a href="#">Five</a></li>
<!--[if IE]></div><![endif]-->
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<img style="margin-top:5px;" class="left" src="themes/cspromod/images/div.jpg" alt="|" />
<li class="link"><a href="index.php">VIDEOS<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<!--[if IE]><div class="iebug"><![endif]-->
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li><a href="#">Three</a></li>
<li><a href="#">Four</a></li>
<li><a href="#">Five</a></li>
<!--[if IE]></div><![endif]-->
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<img style="margin-top:5px;" class="left" src="themes/cspromod/images/div.jpg" alt="|" />
<li class="link"><a href="contact.html">CONTACT<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<!--[if IE]><div class="iebug"><![endif]-->
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li><a href="#">Three</a></li>
<li><a href="#">Four</a></li>
<li><a href="#">Five</a></li>
<!--[if IE]></div><![endif]-->
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
<div class="right">
'.$who_online.'
</div>
</div>
</div>';
//Left Side
echo "<table style=\"height:100%;width:930px;border:none;margin-top:5px;\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n";
echo "<tr valign=\"top\">\n";
echo "<td width=\"5px\" valign=\"top\" height=\"100%\" style=\"background:url(themes/cspromod/images/spacer.gif) repeat-y;\"><img src=\"themes/cspromod/images/spacer.gif\" width=\"5px\" height=\"100%\" border=\"0\" alt=\"\" /></td>\n";
echo "<td width=\"175px\" height=\"100%\" valign=\"top\">\n";
if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='Members_List') OR ($name=='vwar') OR ($name=='Your_Account') OR ($name=='Journal') ) {
} else {
global $swapleftright; $swapleftright = "1"; if (!defined('ADMIN_FILE')){ blocks(left); } $swapleftright = "0";
}
echo "</td>\n"
."<td width=\"0px\" valign=\"top\" style=\"background:url(themes/cspromod/images/spacer.gif) repeat-y;\"><img src=\"themes/cspromod/images/spacer.gif\" width=\"0px\" height=\"0\" border=\"0\" alt=\"\" /></td>\n"
."<td width=\"100%\" height=\"100%\">\n";
}
/*******************************************************************/
/* The theme and its contents were made by www.clanthemes.com */
/*******************************************************************/
function themefooter() {
if (defined('INDEX_FILE') || ($index == 1)) {
echo " </td>\n";
echo " <td width=\"0\" valign =\"top\"><img src=\"themes/cspromod/images/spacer.gif\" alt=\"\" width=\"0\" height=\"0\" border=\"0\" /></td>\n";
echo " <td width=\"100%\" height=\"100%\" >\n";
blocks(right);
}
echo " </td>\n";
echo " <td width=\"5px\" valign=\"top\" height=\"100%\" style=\"background:url(themes/cspromod/images/spacer.gif) repeat-y;\"><img src=\"themes/cspromod/images/spacer.gif\" width=\"5px\" height=\"100%\" alt=\"\" /></td>\n";
echo " </tr>\n";
echo "</table>\n";
echo'<div class="footer">
<span class="bold">copyright 2010 www.cspromodboards.com. all rights reserved.</span>
</div>
</div><!-- end wrap -->';
//echo'</body>';
}
/*******************************************************************/
/* The theme and its contents were made by www.clanthemes.com */
/*******************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $prefix, $anonymous, $tipath, $admin_file, $sid, $db, $admin;
$ThemeSel = get_theme();
$newtime=explode('@',$time);
$newtitle=addslashes($title);
$result = $db->sql_query("SELECT * FROM ".$prefix."_stories WHERE title='$newtitle'");
$row = $db->sql_fetchrow($result);
$score=$row['score'];
$sid=$row['sid'];
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
$read='<a href="modules.php?name=News&file=article&sid='.$sid.'"><b>Read More...</b></a>';
$comm= '<a href="modules.php?name=News&file=article&sid='.$sid.'">Comments...</a>';
echo "<table align=\"center\" style=\"width:482px; border:none;\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo " <tr>\n";
echo " <td style=\"background-image:url(themes/cspromod/images/h1.jpg); background-repeat:no-repeat; border:hidden; width:482px; height:42px; text-align:center;\"></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"background-image:url(themes/cspromod/images/lgra.jpg); background-repeat:repeat-y; border:hidden; width:482px; padding:5px;\">
<div style='float:left; padding:10px;'><a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$t_image\" alt=\"$topictext News\" /></a></div><div class=\"title\" style='float:left; padding:20px;'>$title<br />Posted on: $newtime[0]<br />Subject: $topictext</div><br style='clear:left;' />";
FormatStory($thetext, $notes, $aid, $informant);
echo "$read ($counter "._READS.")<br /><br />";
echo" </td>\n";
echo " </tr>\n";
echo "</table>\n";
}
/*******************************************************************/
/* The theme and its contents were made by www.clanthemes.com */
/*******************************************************************/
function themearticle ($aid, $informant, $time, $title, $thetext, $topic, $topicname, $topicimage, $topictext, $posted) {
global $prefix, $anonymous, $tipath, $admin_file, $sid, $db, $admin;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
$newtime=explode('@',$time);
$newtitle=addslashes($title);
$result = $db->sql_query("SELECT * FROM ".$prefix."_stories WHERE title='$newtitle'");
$row = $db->sql_fetchrow($result);
$posted = "<p style='text-transform:capitalize; text-align:right; font-size:x-small;'>Posted by ".get_author($aid)."</p>";
echo "<table align=\"center\" style=\"width:482px; border:none;\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo " <tr>\n";
echo " <td style=\"background-image:url(themes/cspromod/images/h1.jpg); background-repeat:no-repeat; border:hidden; width:482px; height:42px; text-align:center;\"></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"background-image:url(themes/cspromod/images/lgra.jpg); background-repeat:repeat-y; border:hidden; width:482px; padding:5px;\">
<div style='float:left; padding:10px;'><a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$t_image\" alt=\"$topictext News\" /></a></div><div class=\"title\" style='float:left; padding:20px;'>$title<br />Posted on: $newtime[0]<br />Subject: $topictext</div><br style='clear:left;' />";
FormatStory($thetext, $notes, $aid, $informant);
echo"$posted\n";
echo" </td>\n";
echo " </tr>\n";
echo "</table>\n";
}
/*******************************************************************/
/* The theme and its contents were made by www.clanthemes.com */
/*******************************************************************/
function themesidebox($title, $content) {
global $swapleftright; if ($swapleftright=="0") {
//right blocks
echo "<table style=\"width:225px; border:none;\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo " <tr>\n";
echo " <td style=\"background-image:url(themes/cspromod/images/h2.jpg); background-repeat:no-repeat; border:none; width:225px; height:42px; \"><div class=\"blocktitle\"><h2>$title</h2></div></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"background-image:url(themes/cspromod/images/rlgra.jpg); background-repeat:repeat-y; border:hidden; width:225px; padding:5px;\">$content</td>\n";
echo " </tr>\n";
echo "</table>\n";
} else {
//left blocks
echo "<table style=\"width:175px; border:none;\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo " <tr>\n";
echo " <td style=\"background-image:url(themes/cspromod/images/h2.jpg); background-repeat:no-repeat; border:hidden; width:175px; height:42px;\"><div class=\"blocktitle\"><h2>$title</h2></div></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"background-image:url(themes/cspromod/images/sgra.jpg); background-repeat:repeat-y; border:hidden; width:175px; padding:5px;\">$content</td>\n";
echo " </tr>\n";
echo "</table>\n";
}
}
?>
|