include/templates/user/boxen_login.htm
{POPUP} <div align="center"> <table width="170" border="0" cellspacing="0" > <tr> <td background="include/designs/eoe/images/logg.png" width="110" height="17">Hallo <b>{NAME}</b></td> </tr> <tr> <td background="include/designs/eoe/images/logg.png"width="110" height="17"><a class="box" href="index.php?user-3">{_lang_logout}</a></td> </tr> <tr> <td background="include/designs/eoe/images/logg.png"width="110" height="17">{NACHRICHTEN}</td> </tr> {_if_{SESSION_AUTHRIGHT}<='-3'}<tr> <td background="include/designs/eoe/images/logg.png"width="110" height="17"><a class="box" href="https://webmail.one.com/mail/bmail.html" onclick="window.open(\'https://webmail.one.com/mail/bmail.html\',\'width='.$width.',height='.$height.',left=70,top=70,toolbar=no,status=yes,scrollbars=no,resizeable=no,location=no,dependent=no\'); return false;" target="_blank" Style="border:0px ">Email-Konto</a></td> </tr>{/_endif} <tr> <td background="include/designs/eoe/images/logg.png"width="110" height="17"><a class="box" href="index.php?benutzercenter">Benutzercenter</a></td> </tr> <tr> <td background="include/designs/eoe/images/logg.png"width="110" height="17">{ADMIN}</td> </tr> </table> </div> {EXPLODE} <div align="center"> <table valign="top" cellpadding="0" cellspacing="0" width="170"> <tr> <td width="170" valign="top" height="17" style="border-style: none; border-width: medium"> <table valign="top" cellpadding="0" cellspacing="0" width="170"> <tr> <form method="POST"> <td width="170" valign="middle"><input type="text" name="name" size="12" value="" onFocus="if (value == '{NAME}') {value = ''}" onBlur="if (value == '') {value = '{NAME}'}" maxlength="20" style="padding-left:50px; background-image:url('include/designs/eoe/images/logname.png');background-repeat: repeat-x; width:120px; height:23px; border-color:#E3E3E3;" /></td> </tr> <tr> <td width="170" valign="middle"><input type="password" size="12" value="" onFocus="if (value == '{PASS}') {value = ''}" onBlur="if (value == '') {value = '{PASS}'}" maxlength="50" name="pass" style="padding-left:50px; background-image:url('include/designs/eoe/images/logpw.png');background-repeat: repeat-x; width:120px; height:23px; border-color:#E3E3E3;" /></td> </tr> <tr> <td width="15" valign="middle"><input type="hidden" name="wdlink" value="{wdlink}" /></td> </tr> <tr> <td width="170" valign="middle"><input type="submit" name="user_login_sub" value="" style="border:0; width:170px; height:25px; background:url(include/designs/eoe/images/loginbutton.jpg); border-color:#E3E3E3;" /></td> </tr> <tr> <td width="170" valign="middle"><a class="box" href="index.php?user-regist"><img src="include/designs/eoe/images/logreg.jpg" width="170" height="25" border="1" style="border-color:#E3E3E3;"></a></td> </form> </tr> </table> </td> </tr> </table> </div>
include/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">'.$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 ( 'POPUP', check_for_pm_popup() ); $tpl->set ( 'NACHRICHTEN' , $nachrichten_link ); $tpl->set ( 'BEITRAG' , $beitrag ); $tpl->set ( 'NAME', $_SESSION['authname'] ); $tpl->set ( 'POPUP', check_for_pm_popup() ); $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); ?>
include/designs/ddv5_red/index.htm (Code-Schnipsel)
<tr> <td height="179" colspan="3" align="center" valign="middle" background="include/designs/DDv5red/Bilder/DDv5_11.png"><table width="1100" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="254" height="140" align="center" valign="top"><table width="254" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="25" height="130"></td> <td align="left" valign="top">{_boxes_lastnews}</td> <td width="15"></td> </tr> </table></td> <td width="240" height="140" align="center" valign="top"><table width="240" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20" height="130"></td> <td align="left" valign="top">{_boxes_lastforum}</td> <td width="15"></td> </tr> </table></td> <td width="240" height="140" align="center" valign="top"><table width="240" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20" height="130"></td> <td align="left" valign="top">{_boxes_lastwars}</td> <td width="15"></td> </tr> </table></td><td width="120" height="140" align="center" valign="top"><table width="120" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="10" height="130"></td> <td width="100" align="left" valign="top">{_boxes_login}</td> <td width="10"></td> </tr> </table></td><td width="246" height="140" align="center" valign="top"><table width="246" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="0" height="130"></td> <td width="231" align="left" valign="top">{_boxes_topmatch}</td> <td width="15"></td> </tr> </table></td> </tr> </table></td> </tr>
include/boxes/topmatch.php
<?php # Copyright by: Tobias Schwarz # Support www.ilch.de defined ('main') or die ( 'no direct access' ); echo '<table width="100%" border="0" cellpadding="2" cellspacing="0">'; $akttime = date('Y-m-d'); $erg = @db_query("SELECT DATE_FORMAT(datime,' %d.%m.%y - %H:%i Uhr') as time,oid, id, game, status, tid, owp, opp, wlp FROM prefix_wars WHERE topmatch = 1 ORDER BY datime LIMIT 5"); if ( @db_num_rows($erg) == 0 ) { echo '<tr><td>kein Topmatch gesetzt</td></tr>'; } else { while ($row = @db_fetch_object($erg) ) { if($row->status == 2) { $war = "next"; } else { $war = "last"; } if($row->wlp == 1) { $color = "green"; }elseif ($row->wlp == 2) { $color = "red"; } else { $color = "black"; } $row->gegner = '<img width="50" height="50" src="'.get_opponent_details('logo', $row->oid).'" alt="'.get_opponent_details('name', $row->oid).'" />'; $row->team = '<img width="50" height="50" src="'.get_team_details('logo', $row->tid).'" alt="'.get_team_details('name', $row->tid).'" />'; echo '<tr> <td>'.$row->team.'</td> <td style="vertical-align:middle;font-size:14px;"><b>VS</b></td> <td>'.$row->gegner.'</td> </tr>'; if($war == "last") { echo '<tr> <td colspan="3" align="center" style="color: '.$color.'">'.$row->owp.':'.$row->opp.'</td> </tr>'; } echo '<tr> <td colspan="3" style="font-size:10px;"><b>'.$row->time.'</b></td> </tr> <tr> <td align="center" colspan="3"><a href="index.php?wars-'.$war.'-'.$row->id.'" style="font-size: 10px;">MATCHANSICHT</a></td> </tr>'; } } echo '</table>'; ?>
Ich hoffe jemand kann mir helfen, ich blicke echt nicht mehr durch
betroffene Homepage: our-freaky-weekend.org
Zuletzt modifiziert von Edeka-Ecky am 15.11.2010 - 22:36:17