login.php oder loginbs.php? Letztere verwende ich ja.
Hier der Inhalt der loginbs.php (mit dem eingefügten aus Deinem letzten Post, wobei ich nicht sicher bin, ob die Stelle richtig ist, funktioniert aber nicht):
<?php
# Copyright by Manuel Staechele
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$tpl = new tpl ( 'user/boxen_loginbs.htm' );
if ( loggedin() ) {
if ( user_has_admin_right($menu,false) ) {
$tpl->set ( 'ADMIN', '<div class="boxes_admin" align="center"><table width="200" border="0" cellspacing="0" cellpadding="0"><tr><a href="admin.php?admin"><span style="color:#ffffff; font-weight:normal">Administration</span></td></tr></table></div>' );
} 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 = '';
}
$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?user-regist">Regist</a>';
}
$tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 );
}
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 href="index.php?forum-privmsg">'.$lang['messages'].'</a> (<span style="color:#ffffff;">'.$check_pm.'</span>)<br>';
} else {
$nachrichten_link = '';
}
$tpl->set ( 'NACHRICHTEN' , $nachrichten_link );
$tpl->set ( 'POPUP', check_for_pm_popup() );
unset($tpl);
?>
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">'.$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 = '';
}
$payok=@db_count_query('SELECT COUNT(uid) FROM prefix_kasse_beitraege WHERE uid='.$_SESSION['authid']);
$date=@db_result(db_query('SELECT date FROM prefix_kasse_beitraege WHERE uid='.$_SESSION['authid']),0);
if(time()>$date AND $payok==1){
$erg=db_query('SELECT * FROM prefix_kasse_beitraege WHERE uid='.$_SESSION['authid']);
$row=db_fetch_assoc($erg);
$payedto= mktime(0, 0, 0, date ("m",$row['date'])+$row['zyklus'] , date ("d",$row['date']), date("Y",$row['date']));
$prewarn= mktime(0, 0, 0, date ("m") , date ("d")+20, date("Y"));
$warn= mktime(0, 0, 0, date ("m") , date ("d")+7, date("Y"));
$alert= mktime(0, 0, 0, date ("m") , date ("d")+2, date("Y"));
$payedto2=date("d.m.Y",$payedto);
if($payedto<time()){
$beitrag='<div style="color:#ffffff;" align="center"><h2>Outstanding payment since '.$payedto2.'</h2></div>';
} elseif($payedto>time() AND $payedto<=$alert){
$beitrag='<div style="color:#ffffff;" align="center">Next payment will be on '.$payedto2.'</div>';
} elseif($payedto>time() AND $payedto<=$warn){
$beitrag='<div style="color:#ffffff;" align="center">Next payment will be on '.$payedto2.'</div>';
} elseif($payedto>time() AND $payedto<=$prewarn){
$beitrag='<div style="color:#99FF00;" align="center">You¥ve paid<br>til '.$payedto2.'</div>';
} elseif($payedto>time()){
$beitrag='<div style="color:#99FF00;" align="center">You¥ve paid<br>til '.$payedto2.'</div>';
}
} else{
$beitrag='';
}
$tpl->set ( 'SID' , session_id() );
$tpl->set ( 'NACHRICHTEN' , $nachrichten_link );
$tpl->set ( 'BEITRAG' , $beitrag );
$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?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);
?>
Zuletzt modifiziert von ---Doc--- am 19.10.2011 - 16:50:26