Code:<?php
/*************************************************************************************************/
/* */
/* Theme Name: Lineage 1.0 */
/* Created by Mistique */
/* Copyright (c) 2006 Kalgash Themes ( http://www.kalgash.com ) */
/* Last Updated: 18/12/2006 */
/* */
/************************************************************************************************/
$bgcolor1 = "#011F39";
$bgcolor2 = "#011F39";
$bgcolor3 = "#011F39";
$bgcolor4 = "#011F39";
$textcolor1 = "#B0AB92";
$textcolor2 = "#B0AB92";
include("themes/Lineage/tables.php");
if($_REQUEST["name"] == "Your_Account"){
}else{
echo "<script language=\"JavaScript\">";
echo "startColor=\"#9B8F86\";";
echo "endColor=\"#C5B178\"; ";
echo "</script> ";
echo "<script language=\"JavaScript\" src=\"themes/Lineage/fade.js\">";
echo "</script>";
}
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $name, $nukeurl, $anonymous, $name, $admin_file;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
/***********************************************************************/
/* Flash Sitename Settings */
/* */
/* Define the Sitename and Slogan text */
/* Modify $yoursitename and $yourslogan variables with your own data. */
/***********************************************************************/
$yoursitename = "Your Site Name";
$yourslogan = "--- Add Your Slogan Here ---";
/********************* End of Sitename Settings ***********************/
/******************************************************************************/
/* Flash Menu Settings */
/* */
/* Define the buttons text and link urls */
/* Modify $btxt1, $btxt2, etc. variables to select the text for each button. */
/* Modify $url1, $url2, etc. variables to select the url for each button. */
/******************************************************************************/
$btxt1 = "Home";
$btxt2 = "Forums";
$btxt3 = "Downloads";
$btxt4 = "Your Account";
$url1 = "index.php";
$url2 = "forums.html";
$url3 = "modules.php?name=Downloads";
$url4 = "modules.php?name=Your_Account";
/************************ End of Flash Menu Settings **************************/
$flashmenu = "themes/Lineage/flash/inf2.swf?btxt1=$btxt1&url1=$url1&btxt2=$btxt2&url2=$url2&btxt3=$btxt3&url3=$url3&btxt4=$btxt4&url4=$url4";
echo "<body leftmargin=\"1\" rightmargin=\"1\" topmargin=\"0\" bgcolor=\"#1B1B1B\" text=\"#858C82\" link=\"#6A7067\">";
if ($banners == 1) {
$showbanners = ads(0);
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" align=\"center\"><tr><td class=\"lat1\"></td><td rowspan=\"3\">\n";
$topics_list = "<select name=\"new_topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Topics</option>\n";
$toplist = $db->sql_query("select topicid, topictext from ".$prefix."_topics order by topictext", $db);
while(list($topicid, $topics) = $db->sql_fetchrow($toplist, $db)) {
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
if ($username == "Anonymous") {
$theuser = " <a href=\"account-new_user.html\">Create an account";
} else {
$theuser = " Welcome $username!";
}
$tmpl_file = "themes/Lineage/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/Lineage/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
$public_msg = public_message();
echo "$public_msg ";
}
/************************************************************/
/* Function themefooter() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks(right); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/************************************************************/
function themefooter() {
global $index, $foot1, $foot2, $foot3, $copyright, $totaltime;
if (defined('INDEX_FILE')) {
$tmpl_file = "themes/Lineage/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(right);
}
$footer_message = "$foot1<br>$foot2<br>$foot3<br>$copyright<br>$totaltime<br><a href=\"http://www.kalgash.com\">Lineage PHP-Nuke Theme By Kalgash Themes</a>";
$tmpl_file = "themes/Lineage/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
echo"</td><td class=\"lat2\"></td></tr></table>";
}
/************************************************************/
/* 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> <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";
}
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ($counter "._READS.")<br>";
$tmpl_file = "themes/Lineage/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themearticle() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/
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/Lineage/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
function themesidebox($title, $content) {
$content=str_replace("<strong><big>·</big></strong>"," ",$content);
$content=str_replace("<strong>·</strong>"," ",$content);
$content=str_replace("<strong><big>ยท</big></strong>"," ",$content);
$tmpl_file = "themes/Lineage/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
?>
|