Code:<?php
$bgcolor1 = "#1A0001";
$bgcolor2 = "#2C2E2B";
$bgcolor3 = "#2C2E2B";
$bgcolor4 = "#2C2E2B";
$textcolor1 = "#ffffff";
$textcolor2 = "#ffffff";
function OpenTable() {
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img name="tlc" src="themes/WOWTech/images/tlc.jpg" width="42" height="37" border="0" alt=""></td>
<td width="100%" background="themes/WOWTech/images/tm.jpg"><img name="tm" src="themes/WOWTech/images/spacer.gif" width="0" height="0" border="0" alt=""></td>
<td><img name="trc" src="themes/WOWTech/images/trc.jpg" width="42" height="37" border="0" alt=""></td>
</tr>
<tr>
<td background="themes/WOWTech/images/leftside.jpg"><img name="left" src="themes/WOWTech/images/spacer.gif" width="0" height="0" border="0" alt=""></td>
<td valign="top" bgcolor="#000000" background="themes/WOWTech/images/News.jpg">
<?
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" ><tr><td class=row1>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" ><tr><td>\n";
}
function CloseTable() {
?>
</td>
<td background="themes/WOWTech/images/rightside.jpg"><img name="right" src="themes/WOWTech/images/spacer.gif" width="0" height="0" border="0" alt=""></td>
</tr>
<tr>
<td><img name="blc" src="themes/WOWTech/images/blc.jpg" width="42" height="36" border="0" alt=""></td>
<td background="themes/WOWTech/images/btm.jpg"><img name="btm" src="themes/WOWTech/images/spacer.gif" width="0" height="0" border="0" alt=""></td>
<td><img name="brc" src="themes/WOWTech/images/brc.jpg" width="42" height="36" border="0" alt=""></td>
</tr></table>
<?
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
/************************************************************/
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $user, $cookie, $prefix, $name, $dbi, $db;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
$public_msg = public_message();
echo "$public_msg";
echo "<body background=\"themes/WOWTech/images/bg.gif\" topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";
include("themes/WOWTech/header.php");
echo "<table width=\"100%\" align=center cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<TD WIDTH=\"0\" HEIGHT=\"100%\" valign=top background=\"themes/WOWTech/images/spacer.gif\"><IMG SRC=\"themes/WOWTech/images/spacer.gif\" WIDTH=\"0\" HEIGHT=\"1\"></TD>\n"
."<TD WIDTH=\"160\" HEIGHT=\"100%\" valign=top bgcolor=#1A0001>\n";
if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='Members_List')) {
} else {
blocks(left);
}
echo "</td>\n"
."<TD WIDTH=\"100%\" valign=top bgcolor=#1A0001>\n";
}
/************************************************************/
/* Function themefooter() */
/************************************************************/
function themefooter() {
global $index, $banners;
if ($index == 1) {
echo "</td>\n"
."<td width=\"160\" valign=\"top\" bgcolor=#1A0001>\n";
blocks(right);
}
echo "</td>\n"
."<TD WIDTH=\"0\" HEIGHT=\"100%\" valign=top background=\"themes/WOWTech/images/spacer.gif\"><IMG SRC=\"themes/WOWTech/images/spacer.gif\" WIDTH=\"0\" HEIGHT=\"1\"></TD>\n"
."</tr>\n"
."</table>\n";
include("themes/WOWTech/footer.php");
echo "<table width=\"100%\" align=center cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<TD WIDTH=\"0\" HEIGHT=\"100%\" valign=top background=\"themes/WOWTech/images/spacer.gif\"><IMG SRC=\"themes/WOWTech/images/spacer.gif\" WIDTH=\"0\" HEIGHT=\"1\"></TD>\n"
."<TD WIDTH=\"100%\" valign=top align=center bgcolor=#1A0001>\n";
echo "</td>\n"
."<TD WIDTH=\"0\" HEIGHT=\"100%\" valign=top background=\"themes/WOWTech/images/spacer.gif\"><IMG SRC=\"themes/WOWTech/images/spacer.gif\" WIDTH=\"0\" HEIGHT=\"1\"></TD>\n"
."</tr>\n"
."</table>\n";
}
/************************************************************/
/* Function themeindex() */
/* This function format the stories on the Homepage */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> $notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
//Code Changed - just show posted by
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time ";
//End Code Change
$datetime = substr($morelink, 0, strpos($morelink, "|") - strlen($morelink));
$morelink = substr($morelink, strlen($datetime) + 2);
$tmpl_file = "themes/WOWTech/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themeindex() */
/************************************************************/
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$tmpl_file = "themes/WOWTech/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
function themesidebox($title, $content) {
$tmpl_file = "themes/WOWTech/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
?>
|