Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: gal kas moka padaryt toki prisijungima
Parašė EHF· 2008 Bal. 26 23:04:05
#1
gal ka smoka prisijungima padryt kaip
http://psworld.xz.lt/news.php ne po headeriu bet ant headerio.pliz jei ka sizno parasykit
php koda
Parašė bad_user· 2008 Bal. 27 00:04:56
#2
Turiu. Bet kadangi tu toks nepatenkintas manimi tai ką padarysi. Negausi :)
Parašė MAnjack· 2008 Bal. 27 08:04:54
#3
Yra straipsniuose.
Parašė EHF· 2008 Bal. 27 10:04:52
#4
straipsniuose nera nerandu? kaip vadinasi?
Parašė MAnjack· 2008 Bal. 27 10:04:32
#5
Prisijungimas headeryje ar kažkas tokio.
Parašė EHF· 2008 Bal. 27 10:04:44
#6
nu ten buna ne toks visai. Man reikia tokio:
vardas: [---------- ] slaptazodis: [--------- ] [prisijungti]
o ne tokio:
Registracija / Slapta?odis
Vardas: [ -------- ]
Slaptažodis: [ ------- ]
[prisijungti]
Redagavo EHF· 2008 Bal. 27 10:04:00
Parašė Žmogus· 2008 Bal. 27 11:04:56
#7
Aš galiu duoti tik kodą, kuris būtu po headeriu :)
Parašė Samp_Tevas· 2008 Bal. 27 11:04:10
#8
wonger, gal tu graziai SoNG atsiprasyk, jis vistik gana daznai padeda kai gali ir manau duos. :p
Parašė MAnjack· 2008 Bal. 27 11:04:49
#9
wonger, tokį aš buvau prisegęs forume neseniai. Pasiieškok.
Parašė EHF· 2008 Bal. 27 11:04:08
#10
ShadoVw parašė:
Aš galiu duoti tik kodą, kuris būtu po headeriu :)
Jei gali duok:)
Parašė Žmogus· 2008 Bal. 27 11:04:57
#11
Va visas subheader
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| <a href="http://www.php-fusion.co.uk/" target="_blank" title="autolink">http://www.php-fusion.co.uk/</a> +----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit <a href="http://gnu.org" target="_blank" title="autolink">http://gnu.org</a> +----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }
require_once THEME."theme.php";
if ($settings['maintenance'] == "1" && !iADMIN) fallback(BASEDIR."maintenance.php");
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'");
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
$cnt_inbox_qry = dbquery("SELECT COUNT(message_id) cnt_inbox FROM ".$db_prefix."messages WHERE message_to='".$userdata['user_id']."' AND message_folder='0' GROUP BY message_to");
if (dbrows($cnt_inbox_qry) != 0) { $cnt_inbox = dbresult($cnt_inbox_qry,0); }
$limit_inbox=dbresult(dbquery("SELECT pm_inbox FROM ".$db_prefix."messages_options WHERE user_id='0'"),0);
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<title>".$settings['sitename']."</title>
<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>
<meta name='description' content='".$settings['description']."'>
<meta name='keywords' content='".$settings['keywords']."'>
<link rel='stylesheet' href='".THEME."styles.css' type='text/css'>
<link rel='shortcut icon' href='".BASEDIR."favicon.ico'>
<script type='text/javascript' src='".INCLUDES."jscript.js'></script>";
echo "</head><body bgcolor='$body_bg' text='$body_text'><script defer='defer' id='snap_preview_anywhere' type='text/javascript' src='http://spa.snap.com/snap_preview_anywhere.js?ap=0&key=cbde409959d92cab61a4ae4901dce63a&sb=0&th=asphalt&cl=1&si=0&oi=0?=en-us&domain=kietekas.com'></script>\n";
if (iMEMBER) {render_header("<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");}
if (!iMEMBER) {render_header("<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");
echo "<div align='center'>
<form name='loginform' method='post' action='".FUSION_SELF."'><center>
".$locale['061']."
<input type='text' name='user_name' class='textbox' style='width:100px'>
".$locale['062']."
<input type='password' name='user_pass' class='textbox' style='width:100px'>
<input type='checkbox' name='remember_me' value='y'>
<input type='submit' name='login' value='Prisijungti' class='button'> <a href='".BASEDIR."register.php'><b>Registruotis </b></a> | <a href='".BASEDIR."lostpassword.php'><b> Pamiršai slaptažodį?<b></a></center>
</form>
</div>\n";}
?>
Parašė EHF· 2008 Bal. 27 11:04:55
#12
viskas zjbs tik prisijungus nera redaguoti profili ir tt..
Redagavo EHF· 2008 Bal. 27 11:04:53
Parašė bad_user· 2008 Bal. 27 11:04:18
#13
Imk jau imk :D
Tiesiog reikėjo if'ą naudoti :)
echo"<table cellpadding='0' cellspacing='0' rules='none'>
<td background='".THEME."images/kazkoks_bg.jpg' width='100%' height='45'>";
if (iMEMBER) {
echo"
<center><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'><font color='ffffff'><b>Redaguoti profilį</font></b></a>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'><font color='ffffff'><b>Asmeninės žinutės</a></font></b>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'><font color='ffffff'><b>Narių sąrašas</a></font></b>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'><font color='ffffff'><b>Atsijungti</a></font></b></center>";
} else {
echo"
<center>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<font color='ffffff'><b>Prisijungimo vardas:</font></b>
<input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
<font color='ffffff'><b>Slaptažodis:</font></b>
<input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
<input type='checkbox' name='remember_me' value='y'>
<input type='submit' name='login' value='Prisijungti' class='button'>
</form>
</center>
";
}
echo"</td></table>";
Parašė EHF· 2008 Bal. 27 12:04:53
#14
SoNG parašė:
Imk jau imk :D
Tiesiog reikėjo if'ą naudoti :)
echo"<table cellpadding='0' cellspacing='0' rules='none'>
<td background='".THEME."images/kazkoks_bg.jpg' width='100%' height='45'>";
if (iMEMBER) {
echo"
<center><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'><font color='ffffff'><b>Redaguoti profilį</font></b></a>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'><font color='ffffff'><b>Asmeninės žinutės</a></font></b>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'><font color='ffffff'><b>Narių sąrašas</a></font></b>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'><font color='ffffff'><b>Atsijungti</a></font></b></center>";
} else {
echo"
<center>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<font color='ffffff'><b>Prisijungimo vardas:</font></b>
<input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
<font color='ffffff'><b>Slaptažodis:</font></b>
<input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
<input type='checkbox' name='remember_me' value='y'>
<input type='submit' name='login' value='Prisijungti' class='button'>
</form>
</center>
";
}
echo"</td></table>";
aciu