<?php // $Id: theme.php,v 1.43 2001/11/23 17:17:02 mouzaia Exp $
global $sepcolor;
/************************************************************************/
/* Post-Nuke: Content Management System */
/* ==================================== */
/* */
/* Copyright (c) 2001 by the Post Nuke development team */
/* http://www.postnuke.com */
/************************************************************************/
/************************/
/* Modified version of: */
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2001 by Francisco Burzi (hide@address.com) */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/************************************************************************/
/* Filename: */
/* Original Author: Francisco Burzi */
/* Purpose: */
/************************************************************************/
$thename = "PostNuke";
$bgcolor1 = "#F6F7EB";
$bgcolor2 = "#B1B78B";
$bgcolor3 = "#D9DCC2";
$bgcolor4 = "#E1E4CE";
$sepcolor = "#000000"; // Color for the seperator used in the theme. Theme only.
$textcolor1 = "#000000";
$textcolor2 = "#000000";
$postnuke_theme = true;
themes_get_language();
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable() {
echo "</td></tr></table></td></tr></table>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
function themeheader() {
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $sepcolor, $sitename, $slogan, $banners, $index;
echo "</HEAD>\n"
."<BODY>\n"
."<TABLE WIDTH=\"780\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" ALIGN=\"center\">\n"
."<TR>\n"
."<TD VALIGN=\"top\">\n"
."<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" BGCOLOR=\"$bgcolor1\" WIDTH=\"100%\">\n"
."<TR>\n"
."<TD ALIGN=\"left\" VALIGN=\"middle\">\n"
."<TABLE WIDTH=\"100%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"4\">\n"
."<TR>\n"
."<TD CLASS=\"pn-title\" VALIGN=\"top\" ALIGN=\"left\">\n"
."<a class=\"pn-logo\" href=\"index.php\">$sitename</a><br>\n"
."<font class=\"pn-logo-small\">".stripslashes($slogan)."</font></TD>\n"
."<TD WIDTH=\"50%\" VALIGN=\"top\" ALIGN=\"right\">\n";
if ($banners) {
include("banners.php");
}
echo "<font class=\"pn-logo-small\">";
echo ml_ftime(_DATETIMEBRIEF, (GetUserTime(time())));
echo "</font></TD>\n"
."</TR>\n"
."</TABLE>\n"
."</TD>\n"
."</TR>\n"
."<TR>\n"
."<TD WIDTH=\"100%\" BGCOLOR=\"$sepcolor\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."<TR>\n"
."<TD BGCOLOR=\"$bgcolor4\" ALIGN=\"center\" VALIGN=\"middle\">\n"
."<TABLE WIDTH=\"100%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"2\">\n"
."<TR>\n"
."<TD ALIGN=\"right\" VALIGN=\"middle\" CLASS=\"pn-normal\">\n";
include("themes/PostNuke/top_links.php");
echo "</TD>\n"
."</TR>\n"
."</TABLE>\n"
."</TD>\n"
."</TR>\n"
."<TR>\n"
."<TD WIDTH=\"100%\" BGCOLOR=\"$sepcolor\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."<TR>\n"
."<TD>\n"
."<TABLE WIDTH=\"100%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"2\" bgcolor=\"$bgcolor2\">\n"
."<tr>\n"
."<TD WIDTH=\"100%\" ALIGN=\"right\" VALIGN=\"middle\">\n"
."<form action=\"modules.php\" method=\"post\">\n"
."<input type=\"hidden\" name=\"name\" value=\"Search\">\n"
."<input type=\"hidden\" name=\"file\" value=\"index\">\n"
."<input type=\"hidden\" name=\"op\" value=\"modload\">\n"
."<input type=\"hidden\" name=\"action\" value=\"search\">\n"
."<input type=\"hidden\" name=\"overview\" value=\"1\">\n"
."<input type=\"hidden\" name=\"active_stories\" value=\"1\">\n"
."<input type=\"hidden\" name=\"bool\" value=\"AND\">\n"
."<input type=\"hidden\" name=\"stories_cat\" value=\"\">\n"
."<input type=\"hidden\" name=\"stories_topics\" value=\"\">\n"
."<font class=\"pn-normal\">"._SEARCH." \n"
."<input class=\"pn-text\" NAME=\"q\" TYPE=\"text\" VALUE=\"\"> \n"
."</font>"
."</form>\n"
."</TD>\n"
."</TR>\n"
."</TABLE>\n"
."</TD>\n"
."</TR>\n"
."<TR>\n"
."<TD WIDTH=\"100%\" BGCOLOR=\"$sepcolor\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."</TABLE>\n"
."<TABLE WIDTH=\"100%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n"
."<TR>\n"
."<TD WIDTH=\"150\" BGCOLOR=\"$bgcolor3\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"150\" HEIGHT=\"5\" ALT=\"\" BORDER=\"0\"></TD>\n"
."<TD WIDTH=\"5\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"5\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."<TD WIDTH=\"100%\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n";
if ($index == 1) {
echo "<TD WIDTH=\"5\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"5\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."<TD WIDTH=\"150\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"150\" HEIGHT=\"5\" ALT=\"\" BORDER=\"0\"></TD>\n";
}
echo "</TR>\n"
."<TR>\n"
."<TD WIDTH=\"150\" BGCOLOR=\"$bgcolor3\" ALIGN=\"center\" VALIGN=\"top\">\n";
blocks('left');
echo "</TD>\n"
."<TD WIDTH=\"5\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"5\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."<TD ALIGN=\"center\" VALIGN=\"top\">\n";
}
function themefooter() {
global $index, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $sepcolor;
echo "</TD>\n";
if ($index == 1) {
echo "<TD WIDTH=\"5\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"5\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."<TD ALIGN=\"center\" VALIGN=\"top\">\n";
blocks('right');
echo "</TD>\n";
}
echo "</TR>\n"
."</TABLE>\n"
."<TABLE WIDTH=\"100%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n"
."<TR>\n"
."<TD WIDTH=\"100%\" BGCOLOR=\"$sepcolor\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."<TR>\n"
."<TD BGCOLOR=\"$bgcolor2\" ALIGN=\"center\" VALIGN=\"middle\">\n"
."<TABLE WIDTH=\"100%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"2\">\n"
."<TR>\n"
."<TD VALIGN=\"middle\" ALIGN=\"right\">\n";
include("themes/PostNuke/bottom_links.php");
echo "</TD>\n"
."</TR>\n"
."</TABLE>\n"
."</TD>\n"
."</TR>\n"
."<TR>\n"
."<TD WIDTH=\"100%\" BGCOLOR=\"$sepcolor\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."<TR>\n"
."<TD BGCOLOR=\"$bgcolor3\" ALIGN=\"center\" VALIGN=\"middle\">\n";
footmsg();
echo "</TD>\n"
."</TR>\n"
."<TR>\n"
."<TD BGCOLOR=\"$sepcolor\"><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."</TABLE>\n"
."</TD>\n"
."</TR>\n"
."</TABLE>\n";
}
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
global $tipath, $anonymous, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $sepcolor, $timezone;
echo "<TABLE WIDTH=\"100%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n"
."<TR BGCOLOR=\"$sepcolor\">\n"
."<TD><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."<TR>\n"
."<TD>\n"
."<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"3\" WIDTH=\"100%\" BGCOLOR=\"$bgcolor4\">\n"
."<TR>\n"
."<TD WIDTH=\"100%\"><font CLASS=\"pn-title\">$preformat[catandtitle]</font><br>\n"
."<font CLASS=\"pn-sub\">"._POSTEDBY.": $info[informant] "._ON." $info[longdatetime] $timezone</font></TD>\n"
."</TR>\n"
."</TABLE>\n"
."</TD>\n"
."</TR>\n"
."<TR BGCOLOR=\"$sepcolor\">\n"
."<TD><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."<TR>\n"
."<TD ALIGN=\"left\" VALIGN=\"top\" CLASS=\"pn-normal\">\n"
."$preformat[searchtopic]\n"
."$info[hometext]\n"
."<BR><BR>$preformat[notes]\n"
."</TD>\n"
."</TR>\n"
."<TR BGCOLOR=\"$sepcolor\">\n"
."<TD><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."<TR>\n"
."<TD VALIGN=\"middle\" ALIGN=\"right\" WIDTH=\"100%\">\n"
."<TABLE WIDTH=\"100%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"3\" BGCOLOR=\"$bgcolor4\">\n"
."<TR>\n"
."<TD WIDTH=\"20%\" VALIGN=\"middle\" CLASS=\"pn-sub\">($info[counter] "._READS.")</TD>\n"
."<TD ALIGN=\"right\" VALIGN=\"middle\" WIDTH=\"80%\" CLASS=\"pn-sub\">$preformat[more]</TD>\n"
."</TR>\n"
."</TABLE>\n"
."</TD>\n"
."</TR>\n"
."<TR BGCOLOR=\"$sepcolor\">\n"
."<TD><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."</TABLE>\n"
."<BR>\n";
}
function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $sepcolor;
echo "<TABLE WIDTH=\"100%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n"
."<TR BGCOLOR=\"$sepcolor\">\n"
."<TD><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."<TR>\n"
."<TD>\n"
."<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"3\" WIDTH=\"100%\" BGCOLOR=\"$bgcolor4\">\n"
."<TR>\n"
."<TD WIDTH=\"100%\">$preformat[catandtitle]<br>\n"
."<font CLASS=\"pn-sub\">"._POSTEDBY.": $info[informant]</font></TD>\n"
."</TR>\n"
."</TABLE>\n"
."</TD>\n"
."</TR>\n"
."<TR BGCOLOR=\"$sepcolor\">\n"
."<TD><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."<TR>\n"
."<TD ALIGN=\"left\" VALIGN=\"top\" CLASS=\"pn-normal\">\n";
if (authorised(0, $storyComponent, '::', ACCESS_ADMIN)) {
echo "<font class=\"pn-sub\"> [ <a href=\"admin.php?op=EditStory&sid=$info[sid]\">"._EDIT."</a> | <a href=\"admin.php?op=RemoveStory&sid=$info[sid]\">"._DELETE."</a> ]</font><br><br>\n";
}
echo "$preformat[searchtopic]\n"
."$preformat[fulltext]\n"
."</TD>\n"
."</TR>\n"
."<TR BGCOLOR=\"$sepcolor\">\n"
."<TD><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."<TR BGCOLOR=\"$sepcolor\">\n"
."<TD><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."</TABLE>\n";
}
function themesidebox($block) {
global $sepcolor;
echo "<TABLE WIDTH=\"140\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n"
."<TR BGCOLOR=\"$sepcolor\">\n"
."<TD><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."<TR>\n"
."<TD ALIGN=\"left\" VALIGN=\"top\">\n"
."<TABLE WIDTH=\"140\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"4\">\n"
."<TR>\n"
."<td CLASS=\"pn-title\">$block[title]</TD>\n"
."</TR>\n"
."</TABLE>\n"
."</TD>\n"
."</TR>\n"
."<TR BGCOLOR=\"$sepcolor\">\n"
."<TD><IMG SRC=\"themes/PostNuke/images/pix-t.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
."</TR>\n"
."<TR>\n"
."<TD ALIGN=\"left\" VALIGN=\"top\" CLASS=\"pn-normal\">$block[content]</TD>\n"
."</TR>\n"
."</TABLE><br>\n";
}
?>