Guten Morgen Lord
boxen_login.htm
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td width="374">
Hallo <b>{NAME}</b>
<br />{NACHRICHTEN} {BILD}
<a class="box" href="index.php?user-details-{ID}">Mein Profil</a><br>
<a class="box" href="index.php?user-8">{_lang_profil}</a><br>
<a class="box" href="index.php?user-3">{_lang_logout}</a> <br>
{ADMIN}
{BEITRAG}
</td>
<td valign="top">
{AVATAR}</td>
</tr>
</table>
{EXPLODE}
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td>
<form method="POST">
<input class="nick" type="text" name="name" value="{NAME}" onFocus="if (value == '{NAME}') {value = ''}" onBlur="if (value == '') {value = '{NAME}'}" maxlength="50" style="margin-top:5px; " /><br />
<input class="pw" type="password" value="{PASS}" onFocus="if (value == '{PASS}') {value = ''}" onBlur="if (value == '') {value = '{PASS}'}" maxlength="20" name="pass" style="margin-top:5px; " /><br />
<input type="hidden" name="wdlink" value="{wdlink}" />
<input class="log" size="20" type="submit" value="Login" name="user_login_sub" style="margin-top:5px; " size="1"/> {regist}
</form>
</td>
</tr>
</table>
login.htm
<?php
# Copyright by Manuel Staechele
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$tpl = new tpl ( 'user/boxen_login.htm' );
if ( loggedin() ) {
if ( user_has_admin_right($menu,false) ) {
$tpl->set ( 'ADMIN', '<a class="box" href="admin.php?admin" target="ali">'.$lang['adminarea'].'</a>' );
} else {
$tpl->set ( 'ADMIN', '' );
}
if ( $allgAr['Fpmf'] == 1 ) {
$erg = db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid']);
$check_pm = db_result($erg,0);
$nachrichten_link = '<a class="box" href="index.php?forum-privmsg">'.$lang['messages'].'</a> ('.$check_pm.')<br>';
} else {
$nachrichten_link = '';
}
$abf = 'SELECT id, geschlecht, name, avatar FROM prefix_user WHERE name = "'.$_SESSION['authname'].'"';
$erg = db_query($abf);
$row = db_fetch_object($erg);
$ges_ar = array ('wurstegal', 'maennlich', 'weiblich');
if ( file_exists($row->avatar)) {
$avatar = '<br><img src="'.$row->avatar.' " class="gradualfader" " border="0"><br>';
}else{
$avatar = '<img src="include/images/avatars/'.$ges_ar[$row->geschlecht].'.jpg" " class="gradualfader" border="0">';
}
if ( file_exists('include/images/icons/post1.gif')) {
if(empty($check_pm))
{
$bild = '';
}
else
{
if($check_pm == 1)
{
$bild = ' <a font href="?m=forum&um=5">Pm</a> <img src="include/images/icons/post1.gif" border="0"><br>';
}
else
{
if($check_pm == 2)
{
$bild = ' <br><img src="include/images/icons/post2.gif" border="0"><br>';
}
else
{
if($check_pm == 3)
{
$bild = ' <img src="include/images/icons/post3.gif" border="0"><br>';
}
else
{
if($check_pm == 4)
{
$bild= ' <img src="include/images/icons/post4.gif" border="0"><br>';
}
else
{
if($check_pm == 5)
{
$bild = ' <img src="include/images/icons/post5.gif" border="0"><br>';
}
else
{
if($check_pm >= 6)
{
$bild = ' <img src="include/images/icons/post6.gif" border="0"><br>';
}
$bild = ' <img src="include/images/icons/post6.gif" border="0"><br>';
}
}
}
}
}
}
}else{
$bild = '';
}
/*
$tag = date(d);
if ($tag >=25){
if ($_SESSION['authright'] <= -3 and 1 == 2){
$beitrag = 'Clanbeitrag muss bezahlt werden';
}
}else{
$beitrag = '';
$tpl->set ( 'BEITRAG' , $beitrag );
}
*/
$tpl->set ( 'BEITRAG' , '' );
$tpl->set ( 'BILD' , $bild );
$tpl->set ( 'ID' , $row->id );
$tpl->set ( 'AVATAR' , $avatar );
$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'] = ''; }
if (empty($_POST['login_pw'])) { $_POST['login_pw'] = ''; }
$regist = '';
if ( $allgAr['forum_regist'] == 1 ) {
$regist = ' <a href="index.php?user-regist">Regist</a>';
}
$tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 );
}
unset($tpl);
?>
contents/boxes/login.php
<?php
# Copyright by Manuel Staechele
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$tpl = new tpl ( 'user/boxen_login.htm' );
if ( loggedin() ) {
if ( user_has_admin_right($menu,false) ) {
$tpl->set ( 'ADMIN', '<a class="box" href="admin.php?admin" target="ali">'.$lang['adminarea'].'</a>' );
} else {
$tpl->set ( 'ADMIN', '' );
}
if ( $allgAr['Fpmf'] == 1 ) {
$erg = db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid']);
$check_pm = db_result($erg,0);
$nachrichten_link = '<a class="box" href="index.php?forum-privmsg">'.$lang['messages'].'</a> ('.$check_pm.')<br>';
} else {
$nachrichten_link = '';
}
$abf = 'SELECT id, geschlecht, name, avatar FROM prefix_user WHERE name = "'.$_SESSION['authname'].'"';
$erg = db_query($abf);
$row = db_fetch_object($erg);
$ges_ar = array ('wurstegal', 'maennlich', 'weiblich');
if ( file_exists($row->avatar)) {
$avatar = '<br><img src="'.$row->avatar.' " class="gradualfader" " border="0"><br>';
}else{
$avatar = '<img src="include/images/avatars/'.$ges_ar[$row->geschlecht].'.jpg" " class="gradualfader" border="0">';
}
if ( file_exists('include/images/icons/post1.gif')) {
if(empty($check_pm))
{
$bild = '';
}
else
{
if($check_pm == 1)
{
$bild = ' <a font href="?m=forum&um=5">Pm</a> <img src="include/images/icons/post1.gif" border="0"><br>';
}
else
{
if($check_pm == 2)
{
$bild = ' <br><img src="include/images/icons/post2.gif" border="0"><br>';
}
else
{
if($check_pm == 3)
{
$bild = ' <img src="include/images/icons/post3.gif" border="0"><br>';
}
else
{
if($check_pm == 4)
{
$bild= ' <img src="include/images/icons/post4.gif" border="0"><br>';
}
else
{
if($check_pm == 5)
{
$bild = ' <img src="include/images/icons/post5.gif" border="0"><br>';
}
else
{
if($check_pm >= 6)
{
$bild = ' <img src="include/images/icons/post6.gif" border="0"><br>';
}
$bild = ' <img src="include/images/icons/post6.gif" border="0"><br>';
}
}
}
}
}
}
}else{
$bild = '';
}
/*
$tag = date(d);
if ($tag >=25){
if ($_SESSION['authright'] <= -3 and 1 == 2){
$beitrag = 'Clanbeitrag muss bezahlt werden';
}
}else{
$beitrag = '';
$tpl->set ( 'BEITRAG' , $beitrag );
}
*/
$tpl->set ( 'BEITRAG' , '' );
$tpl->set ( 'BILD' , $bild );
$tpl->set ( 'ID' , $row->id );
$tpl->set ( 'AVATAR' , $avatar );
$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'] = ''; }
if (empty($_POST['login_pw'])) { $_POST['login_pw'] = ''; }
$regist = '';
if ( $allgAr['forum_regist'] == 1 ) {
$regist = ' <a href="index.php?user-regist">Regist</a>';
}
$tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 );
}
unset($tpl);
?>
Aber ich glaube jetzt beim durchstöbern aufgrund deiner anweisung
kann es sein, das die login.htm irgendwie fail ist? xD da hat doch der php code nix drin zu suchen bei ner template datei ... hmmm ^^
Ich vergleichs gleich mal mit der original ...