ten kod som dal do theme.php a potom do header.html som dal $bwlogin a nezobrazuje sa mi nic






include("themes/iCGstation/tables.php");


/************************************************************/
/* Function bw_login() */
/* */
/************************************************************/
function bw_login() {
global $admin, $user, $sitekey, $gfx_chk, $cookie;


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);


$bwlogin_text = "<form action=\"modules.php?name=Your_Account\" method=\"post\">";
$bwlogin_text .= _NICKNAME.": ";
$bwlogin_text .= "<input type=\"text\" name=\"username\" size=\"10\" maxlength=\"25\" /> ";
$bwlogin_text .= _PASSWORD.": ";
$bwlogin_text .= "<input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"20\" /> ";
if (extension_loaded("gd") AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) {
$bwlogin_text .= _SECURITYCODE.": <img src=\"?gfx=gfx&random_num=".$random_num."\" border=\"1\" style=\"width: 77px; height: 20px\" alt=\""._SECURITYCODE."\" title=\""._SECURITYCODE."\" /> \n";
$bwlogin_text .= "Opsat: <input type=\"text\" name=\"gfx_check\" size=\"7\" maxlength=\"6\" />\n";
$bwlogin_text .= "<input type=\"hidden\" name=\"random_num\" value=\"".$random_num."\" />\n";
} else {
$bwlogin_text .= "<input type=\"hidden\" name=\"random_num\" value=\"".$random_num."\" />";
$bwlogin_text .= "<input type=\"hidden\" name=\"gfx_check\" value=\"".$code."\" />";
}
$bwlogin_text .= "<input type=\"hidden\" name=\"op\" value=\"login\" />";
$bwlogin_text .= " <input type=\"submit\" value=\""._LOGIN."\" /></form>";


if (is_user($user)) {
cookiedecode($user);
$username = $cookie[1];
$bwlogin_text = _WELCOMEBACKU." : <strong>$username</strong> ! [ <a href=\"modules.php?name=Your_Account\"><strong>"._ACCOUNT."</strong></a> | <a href=\"modules.php?name=Your_Account&op=logout\"><strong>"._ODHLASIT."</strong></a> ]";
}
return $bwlogin_text;
}
// 1/ pouziti:
// $bwlogin = bw_login();
// echo $bwlogin;


// 2/ pouziti:
// bw_login();




/************************************************************/
/* 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 $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous, $showbanners;


cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}


$showbanners = ads(0);
$bwlogin = bw_login();
echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\">";

if ($username == "Anonymous") {
$theuser = " <a href=\"modules.php?name=Your_Account\">"._LOGIN."</a> or <a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
} else {
$theuser = " "._BWEL." $username!";
}

$datetime = "<script type=\"text/javascript\">\n\n"
."<!-- // Array ofmonth Names\n"
."var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n"
."var now = new Date();\n"
."thisYear = now.getYear();\n"
."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"
."// -->\n\n"
."</script>";

$public_msg = public_message();
$tmpl_file = "themes/iCGstation/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/iCGstation/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}


<table width="95%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr> 
<td width="10" nowrap="nowrap" class="lefttd"></td>
<td width="100%">
<table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline">
<tr> 
<td class="row2" width="20%" align="center"><img src="themes/iCGstation/forums/images/icon/icon_faq.gif" border="0" alt="Home" align="absmiddle" /><br /><a href="index.php" class="mainmenu">Home</a></td>
<td class="row2" width="20%" align="center"><img src="themes/iCGstation/forums/images/icon/icon_search.gif" border="0" alt="Downloads" align="absmiddle" /><br /><a href="modules.php?name=Downloads" class="mainmenu">Downloads</a></td>
<td class="row2" width="20%" align="center"><img src="themes/iCGstation/forums/images/icon/icon_memberlist.gif" border="0" alt="Forums" align="absmiddle" /><br /><a href="modules.php?name=Forums" class="mainmenu">Forums</a></td>
<td class="row2" width="20%" align="center"><img src="themes/iCGstation/forums/images/icon/icon_profile.gif" border="0" alt="Your Account" align="absmiddle" /><br /><a href="modules.php?name=Your_Account" class="mainmenu">Your Account</a></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr> 
<td background="themes/iCGstation/forums/images/bg.jpg" width="60%" valign="middle"><a href="index.php"><img src="themes/iCGstation/forums/images/banner.jpg" border="0"></a></td>
<td background="themes/iCGstation/forums/images/bg.jpg" width="40%" valign="middle">$showbanners<br>$bwlogin</td> 
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">


<tr> 
<td class="navpic" width="170" nowrap><div align="left"><font class="content">$theuser</font></div></td>
<td width="100%" align="center" class="navpic" nowrap></td>
<td class="navpic" width="170" nowrap><div align="right"><font class="content">$datetime </font></div></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr valign="top">
<td>$public_msg<img src="themes/iCGstation/images/7px.gif" width="1" height="1" border="0" alt=""></td>
</tr></table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr valign="top">
<td valign="top" width="1" background="themes/iCGstation/images/7px.gif">



$bwlogin = bw_login();

echo "<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";


$subject = "$sitename: "._BANNERSFINNISHED."";
mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
}
}
$showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>";
$bwlogin = bw_login();
}
}
cookiedecode($user);




a to primo v iCGstation .. nekde jsem udelal chybu .. nic se mi nezobrazi
mozna ze ten navod neplati pro novy iCGstation nebo ja nvm ...


$bwlogin = bw_login();

function themeheader() {
global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous, $showbanners;
$bwlogin = bw_login();


Obsah fóra BLASSENweb » Vzhledy - Themes
|
|