HI @ all php Kenner ! Wie passe ich einen Login an ?
Dass er z.B: so aussieht ???
Name: [ ] Passwort: [ ] (LOGIN)
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<table width="100%" border="0" cellspacing="0" cellpadding="10"> <tr> <td> Hallo <b>{NAME}</b> <br /> <br /> {NACHRICHTEN} <a class="box" href="?m=user&um=3">logout</a> | <a class="box" href="?m=user&um=8">Profil</a> <br> {ADMIN} </td> </tr> </table> {EXPLODE} <table width="100%" border="0" cellspacing="0" cellpadding="10"> <tr> <td> <form action="?m=user&um=2&do_not_inc=yes" method="POST"> <table> <tr> <td> <input type="text" name="login_name" size="13" value="{NAME}" onFocus="if (value == '{NAME}') {value = ''}" onBlur="if (value == '') {value = '{NAME}'}" maxlength="50"> <input type="password" size="13" value="{PASS}" onFocus="if (value == '{PASS}') {value = ''}" onBlur="if (value == '') {value = '{PASS}'}" maxlength="20" name="login_pw"> <input type="hidden" name="wdlink" value="{wdlink}"><input type="submit" value="Login">{regist}</td> </tr> </table></form> </td> </tr> </table>
<?php # Copyright by Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $tpl = new tpl ( 'forum/user/boxen_logi.htm' ); if ( $_SESSION['authright'] <= -1 ) { $tpl->set ( 'ADMIN', '<a class="box2" href="admin.php?sid='.session_id().'">Administration</a>' ); if ( $allgAr['Fpmf'] == 1 ) { $erg = db_query("SELECT COUNT(id) FROM `xic_pm` WHERE gelesen = 0 AND eid = ".$_SESSION['authid']); $check_pm = db_result($erg,0); // geandert von ilch $text = ''; if ( $check_pm == 0 ) { $pm_text = ''; } elseif ( $check_pm == 1 ) { $pm_text = '<td height="12" bgcolor="#CC0000"><div align="center" class="message">» » Du hast eine neue Nachricht « «</div></td>'; } elseif ( $check_pm > 1 ) { $pm_text = '<td height="12" class="message" bgcolor="#CC0000"><div align="center" class="message">» » Du hast '.$check_pm.' neue Nachrichten « «</div></td>'; } $nachrichten_link = $pm_text; } else { $nachrichten_link = ''; } $tpl->set ( 'SID' , session_id() ); $tpl->set ( 'NACHRICHTEN' , $nachrichten_link ); $tpl->set ( 'NAME', $_SESSION['authname'] ); $tpl->out (0); } else { if (empty($_POST['login_name'])) { $_POST['login_name'] = 'Nickname'; } if (empty($_POST['login_pw'])) { $_POST['login_pw'] = 'ääääääää'; } $regist = ''; if ( $allgAr['forum_regist'] == 1 ) { $regist = ' <a href="index.php?m=user&um=regist">Regist</a>'; } $tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?m='.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 ); } unset($tpl); ?>
<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0" bordercolor="337799"> <tr> <td width="420" height="15" bordercolor="337799" class="LOG"><font class="LOG"> <div align="left"> <b>Hallo <font class="Chead">{NAME}</font></b></div> </font></td> </tr> <tr> <td height="15" bordercolor="337799" class="LOG"><font class="LOG"><strong>||</strong> <a class="box2" href="index.php?m=user&um=8"> Profil</a> <strong>||</strong> <a class="box2" href="index.php?m=forum&um=privmsg">Nachrichten</a> <strong>||</strong> <a class="box2" href="index.php?m=user&um=3">logout</a> <strong>||</strong> {ADMIN} <strong>||</strong></font></td> </tr> <tr>{NACHRICHTEN}</tr> </table> {EXPLODE} <table width="400" height="16" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <form action="index.php?m=user&um=2&do_not_inc=yes" method="POST"> <table width="400"> <tr> <td class="td"><b>Name: </b> <input type="text" name="login_name" size="13" value="{NAME}" onFocus="if (value == '{NAME}') {value = ''}" onBlur="if (value == '') {value = '{NAME}'}" maxlength="50"> </td> <td class="td"><b>Password:</b> <input type="password" size="13" value="{PASS}" onFocus="if (value == '{PASS}') {value = ''}" onBlur="if (value == '') {value = '{PASS}'}" maxlength="20" name="login_pw"></td> <td> <input type="hidden" name="wdlink" value="{wdlink}"> <input name="submit" type="submit" value="Login"> </td> </tr> </table> </form> </td> </tr> </table>
Geschlossen | ||
Zurück zu Allgemein |