تغييراتي رو كه گفتي انجام دادم
ولي مثل اينكه نمي خواد ياري كنه
[code:1]************************************************************/
/* 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, $dbi;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor="#000000" text="#FFFFCC" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">";
if ($banners == 1) {
include("banners.php");}
$topics_list = "<select name="new_topic" onChange='submit()'>n";
$topics_list .= "<option value="">All Topics</option>n";
$toplist = sql_query("select topicid, topictext from ".$prefix."_topics order by topictext", $dbi);
while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value="$topicid">$topics</option>n";
$sel = "";
}
if ($username == "Anonymous") {
$theuser = " <a href="modules.php?name=Your_Account&op=new_user">Create an account";
} else {
$theuser = " Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/fisubsilver/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "$r_file="".$thefile."";";
eval($thefile);
print $r_file;
if ($name=='Forums') {
/* Don't display it. */
}
else {
blocks(left);
}
$tmpl_file = "themes/fisubsilver/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "$r_file="".$thefile."";";
eval($thefile);
print $r_file;
}
[/code:1][/quote]