/************************************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************************/
/************************************************************/
/* 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, $c o o k i e, $prefix, $dbi, $name, $servertime;
c o o k i edecode($user);
$username = $c o o k i e[1];
if ($username == "") {
$username = "Anonymous";
}
////////////////
// Header Info
get_lang(Your_Account);
global $user, $c o o k i e, $prefix, $user_prefix, $db, $anonymous, $mode, $t, $f, $redirect, $random_num;
c o o k i edecode($user);
$uname = $c o o k i e[1];
$sql = "SELECT username, user_avatar FROM $user_prefix"._users." ORDER BY user_id DESC LIMIT 0,1";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$lastuser = $row[username];
$user_avatar = $row[user_avatar];
$numrows = $db->sql_numrows($db->sql_query("SELECT user_id FROM $user_prefix"._users.""));
$sql = "SELECT uname, guest FROM $prefix"._session." WHERE guest=0";
$result = $db->sql_query($sql);
$member_online_num = $db->sql_numrows($result);
$guest_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=1"));
$member_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=0"));
$who_online_num = $guest_online_num + $member_online_num;
If ($row[user_avatar] == "blank.gif") {
$row[user_avatar] = "gallery/001.gif";
}
$sql = "SELECT count FROM ".$prefix."_counter WHERE type='total' AND var='hits'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$DataTotalHits = "<center>"._WERECEIVED."<strong> <a href=\"modules.php?name=Statistics\">$row[0]</a></strong> hits</center>";
/////////////
global $bgcolor1, $bgcolor2;
echo "<body>";
if(!is_user($user)) { // Nothing extra
} else { // Extra stuff for members
// you can add extra top panel for members
// echo "<script language=JavaScript src=\"themes/eye/menu_array.js\" type=text/j a v a s c r i p t></script>
// <script language=JavaScript src=\"themes/eye/mmenu.js\" type=text/j a v a s c r i p t></script>";
}
$tmpl_file = "themes/eye/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
if ($name=='Man') {
/* Don't display left blocks. */ }
elseif ($name=='Forums'){
/* Don't display left blocks. */}
elseif ($name=='Private_Messages'){
/* Don't display left blocks. */}
elseif ($name=='Amazon'){
/* Don't display left blocks. */}
elseif ($name=='eWeather'){
/* Don't display left blocks. */}
elseif ($name=='Index'){
/* Don't display left blocks. */ }
elseif ($name=='Members_List'){
/* Don't display left blocks. */ }
elseif ($name=='Index Layout'){
/* Don't display left blocks. */}
else {
blocks(left);
}
$tmpl_file = "themes/eye/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
/************************************************************/
/* 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 themeindex() */
/* */
/* This function format the stories on the Homepage */
/************************************************************/
/************************************************************/
/* Function themearticle() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
function themesidebox($title, $content) {
switch ($title) {
case "Survey":
$tmpl_file = "themes/eye/survey.html";
break;
case "Administration":
$tmpl_file = "themes/eye/admin.html";
break;
case "User Info":
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız