Code:<?php
###########################
###
### PHPNuke Themes Template
### Developed by Dave Mednick
### Copyright Mednick Online Network 2002
### Email: dave.mednick@msec-inc.com
###
### http://www.ageofmythologyplanet.com
### http://www.dungeonsiegeplanet.com
### http://www.ecade.biz
### http://www.msec-inc.com
###
### Please view the README.DOC file for more information
### on how to use this template.
###
############################
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $textcolor1, $textcolor2, $textcolor3, $textcolor4, $textcolor5, $textcolor6;
global $welcomeMessage, $theme_image_path, $pixel, $divider;
global $ul_corner_big, $ur_corner_big, $ll_corner_big, $lr_corner_big, $lframe_big, $rframe_big, $uframe_big, $dframe_big, $midframe_big, $hframe_big, $wframe_big, $lmframe_big, $rmframe_big;
global $ul_corner_sm, $ur_corner_sm, $ll_corner_sm, $lr_corner_sm, $lframe_sm, $rframe_sm, $uframe_sm, $dframe_sm, $midframe_sm, $hframe_sm, $wframe_sm, $lmframe_sm, $rmframe_sm;
global $bg_overall, $bg_sideblocks, $bg_center;
$thename = "AOM"; # The name of your theme
$bg_overall ="main_bg.gif"; # The overall background
$bg_sideblocks = "main_bg.gif"; # The left and right block background
$bg_center = "main_bg.gif"; # The center block background
$bgcolor1 = "#000000"; # primary background color
$bgcolor2 = "#000000"; # header and footer background color
$bgcolor3 = "#000000"; # block area background color
$bgcolor4 = "#000000"; # center block background color
$bgcolor5 = "#000000"; # left and right block background color
$textcolor1 = "#C27B48"; # center block default title text color
$textcolor2 = "#C27B48"; # left and right block default title text color
$textcolor3 = "#A2834C"; # upper center block default text color
$textcolor4 = "#FFFFFF"; # lower center block default text color
$textcolor5 = "#A2834C"; # right and left block default text color
$textcolor6 = "#A2834C"; # header and footer default text color
$welcomeMessage = "Welcome to Age of Mythology Planet!"; # Your welcome message (optional to display)
$ul_corner_big = "tl.gif"; # Upper left corner of your large frame
$ur_corner_big = "tr.gif"; # Upper right corner of your large frame
$ll_corner_big = "bl.gif"; # Lower left corner of your large frame
$lr_corner_big = "br.gif"; # Lower right corner of your large frame
$lframe_big = "l.gif"; # Left vertical element of your large frame
$rframe_big = "r.gif"; # Right vertical element of your large frame
$lmframe_big = "ml.gif"; # Left middle vertical element of your large frame
$rmframe_big = "mr.gif"; # Right middle vertical element of your large frame
$uframe_big = "t.gif"; # Upper horizontal element of your large frame
$dframe_big = "b.gif"; # Lower horizontal element of your large frame
$midframe_big = "m.gif"; # Middle horizontal element of your large frame
$hframe_big = 17; # Height of each vertical element of your large frame
$wframe_big = 17; # Width of each vertical element of your large frame
$ul_corner_sm = "tl.gif"; # Upper left corner of your small frame
$ur_corner_sm = "tr.gif"; # Upper right corner of your small frame
$ll_corner_sm = "bl.gif"; # Lower left corner of your small frame
$lr_corner_sm = "br.gif"; # Lower right corner of your small frame
$lframe_sm = "l.gif"; # Left vertical element of your small frame
$rframe_sm = "r.gif"; # Right vertical element of your small frame
$lmframe_sm = "ml.gif"; # Left middle vertical element of your small frame
$rmframe_sm = "mr.gif"; # Right middle vertical element of your small frame
$uframe_sm = "t.gif"; # Upper horizontal element of your small frame
$dframe_sm = "b.gif"; # Lower horizontal element of your small frame
$midframe_sm = "m.gif"; # Middle horizontal element of your small frame
$hframe_sm = 17; # Height of each vertical element of your small frame
$wframe_sm = 17; # Width of each vertical element of your small frame
$theme_image_path="themes/AOM/images/"; # Path to your theme graphics (USE TRAILING FORESLASH!!)
$pixel = "pixel.gif"; # Single pixel graphic used as vertical seperator
$divider = "divider.gif"; # Horizontal "bar" seperator
#######
###
### YOU SHOULD NEVER HAVE TO CHANGE ANYTHING BELOW
### THIS POINT!!
###
#######
/************************************************************/
/* Function OpenTable() */
/*************************************************************/
function OpenTable() {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $textcolor1, $textcolor2, $textcolor3, $textcolor4, $textcolor5, $textcolor6;
global $welcomeMessage, $theme_image_path;
global $ul_corner_big, $ur_corner_big, $ll_corner_big, $lr_corner_big, $lframe_big, $rframe_big, $uframe_big, $dframe_big, $midframe_big, $hframe_big, $wframe_big;
global $ul_corner_sm, $ur_corner_sm, $ll_corner_sm, $lr_corner_sm, $lframe_sm, $rframe_sm, $uframe_sm, $dframe_sm, $midframe_sm, $hframe_sm, $wframe_sm;
global $bg_overall, $bg_sideblocks, $bg_center;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
echo " <tr>";
echo " <td>";
echo " <img border=\"0\" src=\"$theme_image_path$ul_corner_big\" width=\"$wframe_big\" height=\"$hframe_big\"></td>";
echo " <td background=\"$theme_image_path$uframe_big\" height=\"$hframe_big\" align=\"center\" width=\"100%\"> </td></font>";
echo " </td>";
echo " <td>";
echo " <img border=\"0\" src=\"$theme_image_path$ur_corner_big\" width=\"$wframe_big\" height=\"$hframe_big\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td background=\"$theme_image_path$lframe_big\" width=\"$wframe_big\"> </td></font>";
echo " </td>";
echo " <td background=\"$theme_image_path$bg_center\" bgcolor=\"$bgcolor2\" width=\"100%\">";
}
/************************************************************/
/* Function OpenTable2() */
/************************************************************/
function OpenTable2() {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $textcolor1, $textcolor2, $textcolor3, $textcolor4, $textcolor5, $textcolor6;
global $welcomeMessage, $theme_image_path;
global $ul_corner_big, $ur_corner_big, $ll_corner_big, $lr_corner_big, $lframe_big, $rframe_big, $uframe_big, $dframe_big, $midframe_big, $hframe_big, $wframe_big;
global $ul_corner_sm, $ur_corner_sm, $ll_corner_sm, $lr_corner_sm, $lframe_sm, $rframe_sm, $uframe_sm, $dframe_sm, $midframe_sm, $hframe_sm, $wframe_sm;
global $bg_overall, $bg_sideblocks, $bg_center;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
echo " <tr>";
echo " <td>";
echo " <img border=\"0\" src=\"$theme_image_path$ul_corner_sm\" width=\"$wframe_sm\" height=\"$hframe_sm\"></td>";
echo " <td background=\"$theme_image_path$uframe_sm\" height=\"$hframe_sm\" align=\"center\" width=\"100%\"> </td></font>";
echo " </td>";
echo " <td>";
echo " <img border=\"0\" src=\"$theme_image_path$ur_corner_sm\" width=\"$wframe_sm\" height=\"$hframe_sm\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td background=\"$theme_image_path$lframe_sm\" width=\"$wframe_sm\"> </td></font>";
echo " </td>";
echo " <td background=\"$theme_image_path$bg_sideblocks\" bgcolor=\"$bgcolor3\" width=\"100%\">";
}
/************************************************************/
/* Function CloseTable() */
/************************************************************/
function CloseTable() {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $textcolor1, $textcolor2, $textcolor3, $textcolor4, $textcolor5, $textcolor6;
global $welcomeMessage, $theme_image_path;
global $ul_corner_big, $ur_corner_big, $ll_corner_big, $lr_corner_big, $lframe_big, $rframe_big, $uframe_big, $dframe_big, $midframe_big, $hframe_big, $wframe_big;
global $ul_corner_sm, $ur_corner_sm, $ll_corner_sm, $lr_corner_sm, $lframe_sm, $rframe_sm, $uframe_sm, $dframe_sm, $midframe_sm, $hframe_sm, $wframe_sm;
echo "</td>";
echo " <td background=\"$theme_image_path$rframe_big\" width=\"$wframe_big\"> </td></font>";
echo " <tr>";
echo " <td width=\"$wframe_big\" height=\"$hframe_big\"><img src=\"$theme_image_path$ll_corner_big\" alt=\"\" border=\"0\"></td>";
echo " <td background=\"$theme_image_path$dframe_big\" height=\"$hframe_big\" align=\"center\"> </font></td>";
echo " <td><img src=\"$theme_image_path$lr_corner_big\" width=\"$wframe_big\" alt=\"\" border=\"0\"></td>";
echo " </tr>";
echo " </td></tr></table>";
echo " <br>";
}
/************************************************************/
/* Function CloseTable2() */
/************************************************************/
function CloseTable2() {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $textcolor1, $textcolor2, $textcolor3, $textcolor4, $textcolor5, $textcolor6;
global $welcomeMessage, $theme_image_path;
global $ul_corner_big, $ur_corner_big, $ll_corner_big, $lr_corner_big, $lframe_big, $rframe_big, $uframe_big, $dframe_big, $midframe_big, $hframe_big, $wframe_big;
global $ul_corner_sm, $ur_corner_sm, $ll_corner_sm, $lr_corner_sm, $lframe_sm, $rframe_sm, $uframe_sm, $dframe_sm, $midframe_sm, $hframe_sm, $wframe_sm;
echo "</td>";
echo " <td background=\"$theme_image_path$rframe_sm\" width=\"$wframe_sm\"> </td></font>";
echo " <tr>";
echo " <td width=\"$wframe_sm\" height=\"$hframe_sm\"><img src=\"$theme_image_path$ll_corner_sm\" alt=\"\" border=\"0\"></td>";
echo " <td background=\"$theme_image_path$dframe_sm\" height=\"$hframe_sm\" align=\"center\"> </font></td>";
echo " <td><img src=\"$theme_image_path$lr_corner_sm\" width=\"$wframe_sm\" alt=\"\" border=\"0\"></td>";
echo " </tr>";
echo " </td></tr></table>";
echo " <br>";
}
/************************************************************/
/* Function FormatStory() */
/************************************************************/
function FormatStory($thetext, $notes, $aid, $informant) {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $textcolor1, $textcolor2, $textcolor3, $textcolor4, $textcolor5, $textcolor6;
global $welcomeMessage, $theme_image_path;
global $ul_corner_big, $ur_corner_big, $ll_corner_big, $lr_corner_big, $lframe_big, $rframe_big, $uframe_big, $dframe_big, $midframe_big, $hframe_big, $wframe_big;
global $ul_corner_sm, $ur_corner_sm, $ll_corner_sm, $lr_corner_sm, $lframe_sm, $rframe_sm, $uframe_sm, $dframe_sm, $midframe_sm, $hframe_sm, $wframe_sm;
global $anonymous;
global $bg_overall, $bg_sideblocks, $bg_center;
if ($notes != "") {
$notes = "<b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font color=\"$textcolor3\">$thetext<br>$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes\n";
echo "<font color=\"$textcolor3\">$boxstuff</font>\n";
}
}
/************************************************************/
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $textcolor1, $textcolor2, $textcolor3, $textcolor4, $textcolor5, $textcolor6;
global $welcomeMessage, $theme_image_path;
global $ul_corner_big, $ur_corner_big, $ll_corner_big, $lr_corner_big, $lframe_big, $rframe_big, $uframe_big, $dframe_big, $midframe_big, $hframe_big, $wframe_big;
global $ul_corner_sm, $ur_corner_sm, $ll_corner_sm, $lr_corner_sm, $lframe_sm, $rframe_sm, $uframe_sm, $dframe_sm, $midframe_sm, $hframe_sm, $wframe_sm;
global $user, $sitename;
global $bg_overall, $bg_sideblocks, $bg_center;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"$bgcolor1\" text=\"#FFFFFF\" link=\"#A2834C\" vlink=\"#A2834C\" alink=\"#A2834C\">\n"
."<br>\n";
if ($banners) {
include("banners.php");
}
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"99%\" border=\"0\" align=\"center\" bgcolor=\"$bgcolor3\">\n";
echo "<tr><td valign=\"top\">\n";
blocks(left);
echo "</td><td><img src=\"$theme_image_path$pixel\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\"";
echo "valign=top>\n";
}
/************************************************************/
/* Function themefooter() */
/************************************************************/
function themefooter() {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $textcolor1, $textcolor2, $textcolor3, $textcolor4, $textcolor5, $textcolor6;
global $welcomeMessage, $theme_image_path;
global $ul_corner_big, $ur_corner_big, $ll_corner_big, $lr_corner_big, $lframe_big, $rframe_big, $uframe_big, $dframe_big, $midframe_big, $hframe_big, $wframe_big;
global $ul_corner_sm, $ur_corner_sm, $ll_corner_sm, $lr_corner_sm, $lframe_sm, $rframe_sm, $uframe_sm, $dframe_sm, $midframe_sm, $hframe_sm, $wframe_sm;
global $index, $foot1, $foot2, $foot3, $foot4, $pixel, $divider;
if ($index == 1) {
echo "</td><td><img src=\"$theme_image_path$pixel\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"150\">\n";
blocks(right);
}
$footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4";
echo "</td><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr align=\"center\">";
echo "</td><td width=\"100%\"><p><img src=\"$theme_image_path$divider\" align=\"center\" alt=\"\"></p>";
echo $footer_message;
echo "</td></tr></table>\n";
}
/************************************************************/
/* Function themeindex() */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $textcolor1, $textcolor2, $textcolor3, $textcolor4, $textcolor5, $textcolor6;
global $welcomeMessage, $theme_image_path;
global $ul_corner_big, $ur_corner_big, $ll_corner_big, $lr_corner_big, $lframe_big, $rframe_big, $uframe_big, $dframe_big, $midframe_big, $hframe_big, $wframe_big, $lmframe_big, $rmframe_big;
global $ul_corner_sm, $ur_corner_sm, $ll_corner_sm, $lr_corner_sm, $lframe_sm, $rframe_sm, $uframe_sm, $dframe_sm, $midframe_sm, $hframe_sm, $wframe_sm;
global $bg_overall, $bg_sideblocks, $bg_center;
global $anonymous, $tipath;
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
echo " <tr>";
echo " <td width=\"$wframe_big\" height=\"$hframe_big\">";
echo " <img border=\"0\" src=\"$theme_image_path$ul_corner_big\" width=\"$wframe_big\" height=\"$hframe_big\"></td>";
echo " <td background=\"$theme_image_path$uframe_big\" width=\"100%\" align=\"center\"> </td></font>";
echo " </td>";
echo " <td width=\"$wframe_big\" ><img border=\"0\" src=\"$theme_image_path$ur_corner_big\" width=\"$wframe_big\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td background=\"$theme_image_path$lframe_big\" width=\"$wframe_big\"> </td></font>";
echo " <td background=\"$theme_image_path$bg_center\" bgcolor=\"$bgcolor4\" width=\"100%\">";
echo " <font color=\"$textcolor4\"><b><a href=\"modules.php?name=Search&query=&topic=$topic\">";
echo " <img src=\"images/topics/$topicimage\" border=\"0\" ";
echo "Alt=\"$topictext\" align=\"right\" hspace=\"5\" vspace=\"5\"></a></B></font>";
echo " <font color=\"$textcolor1\"><b>$title</b></font><br><br>";
echo " <font color=\"$textcolor3\">";
FormatStory($thetext, $notes, $aid, $informant);
echo " </font>";
echo " </td>";
echo "<td background=\"$theme_image_path$rframe_big\"> </font></td>";
echo " </tr>";
echo " <tr>";
echo " <td width=\"$wframe_big\" height=\"$hframe_big\"><img src=\"$theme_image_path$lmframe_big\" width=\"$wframe_big\" height=\"$hframe_big\" border=\"0\"></td>\n";
echo " <td align=center bgcolor=\"$bgcolor4\" background=\"$theme_image_path$midframe_big\" height =\"$hframe_big\" width=100%> </font></td>";
echo " <td width=\"$wframe_big\" height=\"$hframe_big\"><img src=\"$theme_image_path$rmframe_big\" width=\"$wframe_big\" height=\"$hframe_big\" border=\"0\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td background=\"$theme_image_path$lframe_big\" width=\"$wframe_big\"> </font></td>";
echo " <td background=\"$theme_image_path$bg_center\" align=center bgcolor=\"$bgcolor4\">\n";
echo " <font color=\"$textcolor4\">"._POSTEDBY." ";
echo " <a href=\"user.php?op=userinfo&uname=$informant\"> $informant</a> "._ON." $time $timezone ($counter"._READS.")<br></font>";
echo " <font>$morelink</font>";
echo " </td>";
echo " <td background=\"$theme_image_path$rframe_big\" width=\"$wframe_big\"> </font></td>";
echo " </tr>";
echo " <tr>";
echo " <td width=\"$wframe_big\" valign=top><img src=\"$theme_image_path$ll_corner_big\" alt=\"\" border=\"0\"></td>";
echo " <td background=\"$theme_image_path$dframe_big\" align=\"center\" width=100%> </font></td>";
echo " <td width=\"50\" valign=top><img src=\"$theme_image_path$lr_corner_big\" alt=\"\" border=\"0\"></td>";
echo " </tr>";
echo "</table>";
echo " <br>";
}
/************************************************************/
/* Function themearticle() */
/************************************************************/
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $textcolor1, $textcolor2, $textcolor3, $textcolor4, $textcolor5, $textcolor6;
global $welcomeMessage, $theme_image_path;
global $ul_corner_big, $ur_corner_big, $ll_corner_big, $lr_corner_big, $lframe_big, $rframe_big, $uframe_big, $dframe_big, $midframe_big, $hframe_big, $wframe_big;
global $ul_corner_sm, $ur_corner_sm, $ll_corner_sm, $lr_corner_sm, $lframe_sm, $rframe_sm, $uframe_sm, $dframe_sm, $midframe_sm, $hframe_sm, $wframe_sm;
global $bg_overall, $bg_sideblocks, $bg_center;
global $admin, $sid, $tipath;
Opentable();
echo "<font color=\"#363636\"><b>$title</b></font><br>\n"
."<font>"._POSTEDON." $datetime by ";
formatAidHeader($aid);
if (is_admin($admin)) {
echo "<br>[ <a href=\"admin.php?op=EditStory&sid=$sid\">"._EDIT."</a> | <a href=\"admin.php?op=RemoveStory&sid=$sid\">"._DELETE."</a> ]\n";
}
echo "<br><br>";
echo "<a href=\"modules.php?name=Search&query=&topic=$topic\"><img src=\"$tipath$topicimage\" border=\"0\" Alt=\"$topictext\" align=\"right\" hspace=\"10\" vspace=\"10\"></a>\n";
FormatStory($thetext, $notes="", $aid, $informant);
echo "<br>\n\n\n";
CloseTable();
}
/************************************************************/
/* Function themeidebox() */
/************************************************************/
function themesidebox($title, $content) {
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $textcolor1, $textcolor2, $textcolor3, $textcolor4, $textcolor5, $textcolor6;
global $welcomeMessage, $theme_image_path;
global $ul_corner_big, $ur_corner_big, $ll_corner_big, $lr_corner_big, $lframe_big, $rframe_big, $uframe_big, $dframe_big, $midframe_big, $hframe_big, $wframe_big;
global $ul_corner_sm, $ur_corner_sm, $ll_corner_sm, $lr_corner_sm, $lframe_sm, $rframe_sm, $uframe_sm, $dframe_sm, $midframe_sm, $hframe_sm, $wframe_sm;
global $bg_overall, $bg_sideblocks, $bg_center;
echo "<table border=0 cellspacing=0 cellpadding=0 width=180>";
echo "<tr>";
echo "<td width=$wframe_sm height=$hframe_sm><img src=\"$theme_image_path$ul_corner_sm\" alt=\"\" border=0></td>";
echo "<td background=\"$theme_image_path$uframe_sm\" align=center width=100% height=$hframe_sm> </font></td>";
echo "<td width=$wframe_sm height=$hframe_sm><img src=\"$theme_image_path$ur_corner_sm\" alt=\"\" border=0></td>";
echo "</tr>";
echo "<tr>";
echo "<td background=\"$theme_image_path$lframe_sm\" width=$hframe_sm> </font></td>";
echo "<td background=\"$theme_image_path$bg_sideblocks\" bgcolor=\"$bgcolor5\" width=10%><center><img src=\"$theme_image_path$title.gif\" alt=\"$title\" border=0></center><br>";
##
## See above where it says **<img src=\"$theme_image_path$title.gif\" alt=\"$title\" border=0>** ?? You must have gif files with the various
## headings for your side blocks. Check out the images included with the archive, ie. "Web Hits.gif"
##
echo "<font color=\"$textcolor5\">$content</font></td>";
echo "<td background=\"$theme_image_path$rframe_sm\"> </font></td>";
echo "</tr>";
echo "<tr>";
echo "<td width=$wframe_sm height=$hframe_sm><img src=\"$theme_image_path$ll_corner_sm\" alt=\"\" border=0></td>";
echo "<td background=\"$theme_image_path$dframe_sm\" align=center width=100% height=$hframe_sm> </font></td>";
echo "<td width=$wframe_sm height=$hframe_sm><img src=\"$theme_image_path$lr_corner_sm\" alt=\"\" border=0></td>";
echo "</tr>";
echo "</table>";
echo "<br>";
}
?>
|