| Zobraziť predchádzajúcu tému :: Zobraziť nasledujúcu tému |
| Autor |
Správa |
beks Hosting member


Zaregistrovaný od: 15. 02. 2006 Príspevky: 569 Bydlisko: Smizany(Spisska Nova Ves)
|
Zaslal: pia apríl 20, 2007 10:59 pm Predmet: Login v headri |
|
|
nepoznáte nejaký vzhlad do nuka v ktorom je prihlasovanie v headri? chcel by som si to skopcit do mojho vzhladu napr. jak na blassenweb.net  _________________ www.pathox.sk |
|
| Návrat hore |
|
Sponzor
 |
|
 |
Conky Professional


Zaregistrovaný od: 13. 06. 2005 Príspevky: 405
|
|
| Návrat hore |
|
beks Hosting member


Zaregistrovaný od: 15. 02. 2006 Príspevky: 569 Bydlisko: Smizany(Spisska Nova Ves)
|
Zaslal: so apríl 21, 2007 8:09 am Predmet: |
|
|
rozmyslal som nadtym ze to zoberem z bloku, len dufam ze to nebude problematicke to tam hodit.dnes naisto vyskusam
EDIT: Narazil som na problem moj header sa nachadza v HTML subore  _________________ www.pathox.sk |
|
| Návrat hore |
|
Conky Professional


Zaregistrovaný od: 13. 06. 2005 Príspevky: 405
|
Zaslal: so apríl 21, 2007 10:26 am Predmet: |
|
|
tak si to daj do themes.php pod $xxx a do headeru si daj tu premenu $xxx _________________
 |
|
| Návrat hore |
|
beks Hosting member


Zaregistrovaný od: 15. 02. 2006 Príspevky: 569 Bydlisko: Smizany(Spisska Nova Ves)
|
Zaslal: so apríl 21, 2007 12:12 pm Predmet: |
|
|
PHPecko mi moc nehovori co presne mam napisat do theme.php a do header.html  _________________ www.pathox.sk |
|
| Návrat hore |
|
Conky Professional


Zaregistrovaný od: 13. 06. 2005 Príspevky: 405
|
Zaslal: so apríl 21, 2007 2:04 pm Predmet: |
|
|
no to neviem to by som musel vidiet co mas za vzhlad a co v nom mas konkretne funkcia themeheader() v theme.php
a tak tiez co maz za modul uzivatelov _________________
 |
|
| Návrat hore |
|
Blassen Moderator


Zaregistrovaný od: 30. 05. 2005 Príspevky: 758
|
|
| Návrat hore |
|
Conky Professional


Zaregistrovaný od: 13. 06. 2005 Príspevky: 405
|
Zaslal: so apríl 21, 2007 2:28 pm Predmet: |
|
|
no asi
no nebol som si isty ci ma kazdy modul rovnake linky napriklad na odhlasenie ...
ale len tipujem tak pre istotu som to sem napisal  _________________
 |
|
| Návrat hore |
|
Sponzor
 |
|
 |
beks Hosting member


Zaregistrovaný od: 15. 02. 2006 Príspevky: 569 Bydlisko: Smizany(Spisska Nova Ves)
|
|
| Návrat hore |
|
Conky Professional


Zaregistrovaný od: 13. 06. 2005 Príspevky: 405
|
Zaslal: so apríl 21, 2007 3:53 pm Predmet: |
|
|
tak sprav si zalohu jak theme.php tak aj header.html
otvor si theme.php a prepis celu funkciu themeheader()
timto
| Kód: | /************************************************************/
/* 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, $name, $index, $blockside, $sitekey;
/* Check of right block on/off */
if ($index == 1) {
$topblock = "<td width=\"194\" height=\"12\"><img src=\"themes/PH2/images/right_block_top.jpg\"></td>";
} else {
$topblock = "<td width=\"194\" height=\"12\" background=\"themes/PH2/images/middle_block_top.jpg\"></td>";
}
if ($banners == 1) {
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
/* Get a random banner if exist any. */
/* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */
if ($numrows>1) {
$numrows = $numrows-1;
mt_srand((double)microtime()*1000000);
$bannum = mt_rand(0, $numrows);
} else {
$bannum = 0;
}
$sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$bid = $row[bid];
$imageurl = $row[imageurl];
$clickurl = $row[clickurl];
$alttext = $row[alttext];
if (!is_admin($admin)) {
$db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'");
}
if($numrows>0) {
$sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'";
$result2 = $db->sql_query($sql2);
$row2 = $db->sql_fetchrow($result2);
$cid = $row2[cid];
$imptotal = $row2[imptotal];
$impmade = $row2[impmade];
$clicks = $row2[clicks];
$date = $row2[date];
/* Check if this impression is the last one and print the banner */
if (($imptotal <= $impmade) AND ($imptotal != 0)) {
$db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'");
$sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'";
$result3 = $db->sql_query($sql3);
$row3 = $db->sql_fetchrow($result3);
$c_name = $row3[name];
$c_contact = $row3[contact];
$c_email = $row3[email];
if ($c_email != "") {
$from = "$sitename <$adminmail>";
$to = "$c_contact <$c_email>";
$message = ""._HELLO." $c_contact:\n\n";
$message .= ""._THISISAUTOMATED."\n\n";
$message .= ""._THERESULTS."\n\n";
$message .= ""._TOTALIMPRESSIONS." $imptotal\n";
$message .= ""._CLICKSRECEIVED." $clicks\n";
$message .= ""._IMAGEURL." $imageurl\n";
$message .= ""._CLICKURL." $clickurl\n";
$message .= ""._ALTERNATETEXT." $alttext\n\n";
$message .= ""._HOPEYOULIKED."\n\n";
$message .= ""._THANKSUPPORT."\n\n";
$message .= "- $sitename "._TEAM."\n";
$message .= "$nukeurl";
$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>";
}
}
$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);
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";
//NavTap();
if ($username == "Anonymous") {
$theuser = "<form action=\"modules.php?name=Your_Account\" method=\"post\">
<input type=\"text\" name=\"username\" value=\"Meno\" onFocus=\"if(this.value=='Meno')this.value='';\" style=\"width:90;height:18;\">
<input type=\"password\" name=\"user_password\" value=\"Heslo\" onFocus=\"if(this.value=='Heslo')this.value='';\" style=\"width:90;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=\"button\" value=\"prihlásiť\">
<a href=\"modules.php?name=Your_Account&op=new_user\"Registrovať</a></td>
</form>
<p>\n";
} else {
$theuser = "vitaj $username <a href=\"modules.php?name=Your_Account&op=logout\">odhlasiť</a></TD>\n";
}
$public_msg = public_message();
$tmpl_file = "themes/PH2/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
$blockside="l";
blocks(left);
$tmpl_file = "themes/PH2/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
} |
potom si otvor header.html a vloz na miesto kde ten login xces
snad to bude fungovat  _________________
 |
|
| Návrat hore |
|
beks Hosting member


Zaregistrovaný od: 15. 02. 2006 Príspevky: 569 Bydlisko: Smizany(Spisska Nova Ves)
|
|
| Návrat hore |
|
Conky Professional


Zaregistrovaný od: 13. 06. 2005 Príspevky: 405
|
Zaslal: so apríl 21, 2007 4:14 pm Predmet: |
|
|
aha sry
skus prepisat
| Kód: | | global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous, $name, $index, $blockside, $sitekey; |
na
| Kód: | | global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $user_prefix, $db, $dbi, $userinfo, $nukeurl, $anonymous, $name, $index, $blockside, $sitekey; |
_________________
 |
|
| Návrat hore |
|
beks Hosting member


Zaregistrovaný od: 15. 02. 2006 Príspevky: 569 Bydlisko: Smizany(Spisska Nova Ves)
|
Zaslal: so apríl 21, 2007 4:18 pm Predmet: |
|
|
nefakci  _________________ www.pathox.sk |
|
| Návrat hore |
|
Conky Professional


Zaregistrovaný od: 13. 06. 2005 Príspevky: 405
|
Zaslal: so apríl 21, 2007 4:35 pm Predmet: |
|
|
hehe chybicka se vloudila
miesto
| Kód: | | <input type=\"button\" value=\"prihlásiť\"> |
daj
| Kód: | | <input type=\"submit\" value=\"prihlásiť\"> |
 _________________
 |
|
| Návrat hore |
|
beks Hosting member


Zaregistrovaný od: 15. 02. 2006 Príspevky: 569 Bydlisko: Smizany(Spisska Nova Ves)
|
Zaslal: so apríl 21, 2007 9:11 pm Predmet: |
|
|
no uz to vyzera lepsie ale aj tak ma nechce prihlasit cez to...ked sa prihlasim cez blok tak ide _________________ www.pathox.sk |
|
| Návrat hore |
|
|