Zitat geschrieben von Rockwulf
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Login'; $hmenu = $extented_forum_menu.'Login'.$extented_forum_menu_sufix; $tpl = new tpl ( 'user/login.htm' ); if ( loggedin() ) { $design = new design ( $title , $hmenu, 0); $design->header(); if (isset($_POST['wdlink'])) { $wd = $_POST['wdlink']; } else { $wd = 'index.php?'.$allgAr['smodul']; } wd ($wd, $lang['yourareloged']); $design->footer(); } else { $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl ( 'user/login.htm' ); $tpl->set_out('WDLINK','index.php?'.$allgAr['smodul'],0); $design->footer(); } ?>
<?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:#9F0000;"><h3>Beitrag war zu zahlen am '.$payedto2.'</h3></div>'; } elseif($payedto>time() AND $payedto<=$alert){ $beitrag='<div style="color:#FF0033;">Beitrag ist zu zahlen am '.$payedto2.'</div>'; } elseif($payedto>time() AND $payedto<=$warn){ $beitrag='<div style="color:#FF7F00;">Beitrag ist zu zahlen am '.$payedto2.'</div>'; } elseif($payedto>time() AND $payedto<=$prewarn){ $beitrag='<div style="color:#5CE72E;">Beitrag ist bezahlt<br>bis '.$payedto2.'</div>'; } elseif($payedto>time()){ $beitrag='<div style="color:#ffffff;">Beitrag ist bezahlt<br>bis '.$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); ?>
<?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:#9F0000;"><h3>Beitrag war zu zahlen am '.$payedto2.'</h3></div>'; } elseif($payedto>time() AND $payedto<=$alert){ $beitrag='<div style="color:#FF0033;">Beitrag ist zu zahlen am '.$payedto2.'</div>'; } elseif($payedto>time() AND $payedto<=$warn){ $beitrag='<div style="color:#FF7F00;">Beitrag ist zu zahlen am '.$payedto2.'</div>'; } elseif($payedto>time() AND $payedto<=$prewarn){ $beitrag='<div style="color:#5CE72E;">Beitrag ist bezahlt<br>bis '.$payedto2.'</div>'; } elseif($payedto>time()){ $beitrag='<div style="color:#ffffff;">Beitrag ist bezahlt<br>bis '.$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); ?>
Geschlossen | ||
Zurück zu Module und Modifikationen |