<?php
/*********************************************************************/
/* F-Liquid v.1.0 theme designed by effectica README */
/* http://effectica.com/ */
/* */
/* F-Liquid v.1.0 is a public theme package designed for PHP-Nuke */
/* Platinum 7.6.x. */
/********************************************************************/
/*********************************************************************/
/* All content and includes from this package is intellectual */
/* property of TechGFX.com unless stated otherwise. Replication of */
/* and copyrighted material is a civil and criminal act and */
/* voilations may result in legal action. */
/*********************************************************************/
/* Copyright (c) 2004 - 2006 by http://www.techgfx.com */
/* Techgfx - Graeme Allan ([email protected]) */
/* Sigil ([email protected]) */
/* Copyright (c) 2004 by http://www.portedmods.com */
/* Mighty_Y ([email protected]) */
/* ================== */
/* Copyright (c) 2003 by Francisco Burzi http://phpnuke.org */
/************************************************************************/
/* PHP-Nuke Platinum: Expect to be impressed COPYRIGHT */
/* */
/* Copyright (c) 2004 - 2006 by http://www.techgfx.com */
/* Techgfx - Graeme Allan ([email protected]) */
/* */
/* Copyright (c) 2004 - 2006 by http://www.conrads-berlin.de */
/* MrFluffy - Axel Conrads ([email protected]) */
/* */
/* Refer to TechGFX.com for detailed information on PHP-Nuke Platinum */
/* */
/* TechGFX: Your dreams, our imagination */
/************************************************************************/
if (stristr($_SERVER['SCRIPT_NAME'], "theme.php")) {
die ("Access Denied");
}
/************************************************************/
/* Theme Colors Definition */
/************************************************************/
$bgcolor1 = "#AAAFB2";
$bgcolor2 = "#878C92";
$bgcolor3 = "#535A62";
$bgcolor4 = "#F3F4FF";
$textcolor1 = "#FFFFFF";
$textcolor2 = "#FFFFFF";
/************************************************************/
/* OpenTable Functions */
/************************************************************/
function OpenTable() {
global $bgcolor1, $bgcolor2;
?>
<table dir="ltr" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#878C92">
<tr>
<td width="106" height="35" align="left"><img src="themes/F-Liquid/images/mb_tl.jpg" width="106" height="35"></td>
<td background="themes/F-Liquid/images/mb_t_tile.jpg"><img src="themes/F-Liquid/images/spacer.gif" width="1" height="1"></td>
<td width="126" align="right"><img src="themes/F-Liquid/images/F-Liquid_54.jpg" width="126" height="35"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#878C92">
<tr>
<td width="19" height="26" align="left"><img src="themes/F-Liquid/images/mb_m_tl.jpg" width="19" height="26"></td>
<td background="themes/F-Liquid/images/mb_m_t.jpg"></td>
<td width="19" align="right"><img src="themes/F-Liquid/images/mb_m_r.jpg" width="19" height="26"></td>
</tr>
<tr>
<td background="themes/F-Liquid/images/mb_m_l.jpg"></td>
<td dir="rtl">
<?php
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" ><tr><td class=extra>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" ><tr><td>\n";
}
function CloseTable() {
?>
</td>
<td background="themes/F-Liquid/images/mb_m_tr.jpg"></td>
</tr>
<tr>
<td height="15" align="left"><img src="themes/F-Liquid/images/mb_m_l-09.jpg" width="19" height="15"></td>
<td background="themes/F-Liquid/images/mb_m_b.jpg"></td>
<td align="right"><img src="themes/F-Liquid/images/mb_m_br.jpg" width="19" height="15"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="19" height="32" align="left"><img src="themes/F-Liquid/images/mb_f_l.jpg" width="19" height="32"></td>
<td background="themes/F-Liquid/images/mb_f_tile.jpg"><img src="themes/F-Liquid/images/spacer.gif" width="1" height="1"></td>
<td width="19" height="32" align="right"><img src="themes/F-Liquid/images/mb_f_r.jpg" width="19" height="32"></td>
</tr>
</table>
</tr>
</table>
<?php
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
/************************************************************/
/* FormatStory */
/************************************************************/
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font class=\"content\" color=\"#505050\">$thetext$notes</font>\n";
} else {
if($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 "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
}
}
/************************************************************/
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $user, $cookie, $prefix, $sitekey, $flash, $searchbox, $db, $dbi;
cookiedecode($user);
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 6);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
$public_msg = public_message();
echo "$public_msg";
if ($username == "Anonymous") {
$theuser = "<form action=\"modules.php?name=Your_Account\" method=\"post\"><input class=noborder type=\"text\" name=\"username\" value=\"username\" onFocus=\"if(this.value=='username')this.value='';\" value style=\"width:100;height:14;\"> <input type=\"password\" class=noborder name=\"user_password\" value=\"password\" onFocus=\"if(this.value=='password')this.value='';\" value style=\"width:100;height:18;\"> <input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><input type=\"hidden\" name=\"gfx_check\" value=\"$code\"><input type=\"hidden\" name=\"op\" value=\"login\"><input type=\"image\" value=\"login\" class=noborder src=\"themes/F-Liquid/images/login.gif\" border=\"0\"></TD></form>\n";
} else {
$theuser = " </TD>\n";
}
$result = $db->sql_query("SELECT * FROM ".$prefix."_themeconsole WHERE themename='F-Liquid'");
$themeconsole = $db->sql_fetchrow($result);
if (($themeconsole['disrightclick'] AND !is_admin($admin)) || ($themeconsole['disrightclick'] AND is_admin($admin) AND $themeconsole['adminright']) ) {
echo " <SCRIPT LANGUAGE=\"javascript\" SRC=\"themes/F-Liquid/scripts/norightclick.js\">\n";
echo " </SCRIPT> \n";
}
$flash = "<img src=\"themes/F-Liquid/images/F-Liquid_15.jpg\" width=399 height=132>";
if ($themeconsole['searchbox'] == 1) {
$searchbox = "<form action=\"modules.php?op=modload&name=Search&file=index\" method=\"post\"><input type=\"text\" name=\"query\" value=\"type search here\" onFocus=\"if(this.value=='type search here')this.value='';\" value style=\"width:150;height:19;\"></TD><TD align=center WIDTH=49 HEIGHT=21><input type=\"image\" value=\"search\" src=\"themes/F-Liquid/images/search.gif\" class=noborder border=\"0\" alt=\"submit search\"></TD></form>\n";
} else {
$searchbox = " </TD><TD></TD>\n";
}
echo "<body dir=\"rtl\" topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
include("themes/F-Liquid/header.php");
echo "<table width=\"100%\" bgcolor=\"#535A62\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n";
echo " <tr valign=\"top\">\n";
echo " <td width=\"30\" valign=\"top\" background=\"themes/F-Liquid/images/rb.jpg\"><img src=\"themes/F-Liquid/images/spacer.gif\" width=\"30\" height=\"1\" border=\"0\" alt=\"\"></td>\n";
echo " <td width=\"165\" valign=\"top\">\n";
blocks(left);
echo " </td>\n";
echo " <td width=\"10\" valign=\"top\" background=\"themes/F-Liquid/images/spacer.gif\"><img src=\"themes/F-Liquid/images/spacer.gif\" width=\"10\" height=\"1\" border=\"0\"></td>\n";
echo " <td width=\"100%\">\n";
}
/************************************************************/
/* Function themefooter() */
/************************************************************/
function themefooter() {
global $index, $user, $banners, $cookie, $prefix, $dbi, $db, $admin, $adminmail, $nukeurl;
if ($index == 0) {
echo "</td>\n";
echo " <td width=\"10\" valign=\"top\" background=\"themes/F-Liquid/images/spacer.gif\"><img src=\"themes/F-Liquid/images/spacer.gif\" width=\"10\" height=\"1\" border=\"0\"></td>\n";
echo " <td width=\"165\" valign=\"top\">\n";
}
if (defined('INDEX_FILE')) {
blocks(right);
}
echo " </td>\n";
echo " <td width=\"30\" valign=\"top\" background=\"themes/F-Liquid/images/lb.jpg\"><img src=\"themes/F-Liquid/images/spacer.gif\" width=\"30\" height=\"1\" border=\"0\"></td>\n";
echo " </tr>\n";
echo "</table>\n\n\n";
include("themes/F-Liquid/footer.php");
}
/************************************************************/
/* 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";
}
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time ";
$datetime = substr($morelink, 0, strpos($morelink, "|") - strlen($morelink));
$morelink = substr($morelink, strlen($datetime) + 2);
$tmpl_file = "themes/F-Liquid/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/F-Liquid/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themesidebox() */
/************************************************************/
function themesidebox($title, $content) {
$tmpl_file = "themes/F-Liquid/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/*********************************************************************/
/* - Redistributing ThemeConsole in any form is NOT permitted. */
/* - Renaming files is NOT permitted. */
/* - This package cannot be ported without expressed permission from */
/* either Techgfx, Anor or Mighty_Y on behalf of TechGFX.com. */
/* - This package cannot be mirrored without expressed permission */
/* from either Techgfx, Anor or Mighty_Y on behalf of TechGFX.com. */
/* - Use of this package requires all credits to all authors to */
/* remain in all locations that are set as default. */
/* - The following are the only sites permitted to mirror any release*/
/* from TechGFX public theme package releases: */
/* 1. http://www.TechGFX.com */
/* 2. http://www.PortedMods.com */
/* 3. http://www.PHPNukeFiles.com */
/* 4. http://www.NukePlatinum.net */
/* 5. http://Protector.Warcenter.se */
/* 6. http://GT.AudioSlaved.com.com */
/*********************************************************************/
/* TechGFX: Corporate Alliance */
/* - PortedMods.com */
/* - Protector.Warcenter.se */
/* - GT.AudioSlaved.com */
/*********************************************************************/
?>