ich möchte gerne beide Addons laufen haben aber leiderdist bei beiden die login.php (include/boxes) und leider kann ich nicht beide somit laufen haben!
Gibt es eine Möglichkeit das beide Funktionieren?
Hier sind mal die Codes von beiden Boxen:
IP Sperre Login Addon:
<?php # Copyright by Manuel Staechele # Support www.ilch.de # Mod by: BöhserDavid # Support: www.baduncles.de defined ('main') or die ( 'no direct access' ); ## IP Mod $delt = time()-86400; db_query('DELETE FROM `prefix_ipsperre` WHERE date < "'.$delt.'"'); ## IP Mod $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 = ''; } $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>'; } ## IP Mod $ip = db_fetch_assoc(db_query("SELECT * FROM `prefix_ipsperre` WHERE ip = '".getip()."'")); if($ip['try'] >= 5){ $loginbutton = 'Login Closed'; }else{ $loginbutton = '<input type="submit" name="user_login_sub" value="Login" style="margin-top:5px; " />'; } ## IP Mod $tpl->set_ar_out ( array ( 'LOGINBUTTON' => $loginbutton, 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 ); } unset($tpl); ?>
Clan Kasse Erweiterung:
<?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); ?>
verwendete ilchClan Version: 1.1
betroffene Homepage: externer Link