Hi Lord Schirmer.
Leider bin ich absoluter Anfänger. Bin aber sehr Lernfähig. Im Moment weiss ich nicht genau was du meinst, aber so ähnlich hab ich das mit den Farben schon stehen. Hier mal meine online.php vielleicht könntest du mal dein Fachmännisches Auge drüber schweifen lassen.
<font color="#00ff00"><u><strong>------Neuste Mitglieder------</strong></u></font><p>
<?php
//Copyright by Stefan Jungbauer
//www.zocker-eppingen.de
//V 1.1
defined ('main') or die ( 'no direct access' );
$erg = db_query("SELECT id, name, regist, geschlecht, gebdatum FROM prefix_user ORDER BY regist DESC LIMIT 3");
echo '<table>';
$content = '';
while ($row = db_fetch_object($erg) ) {
$geb = $row->gebdatum;
$a = explode('-', $geb);
$endung = $a[count($a) - 1];
$tag = $a[2];
$mon = $a[1];
$jah = $a[0];
$jetzt = mktime(0,0,0,date("m"),date("d"),date("Y"));
$gebur = mktime(0,0,0,$mon,$tag,$jah);
$age = intval(($jetzt - $gebur) / (3600 * 24 * 365));
$datum = date('d.m.y',$row->regist);
if ($row->geschlecht == 0){
if ($row->gebdatum != 0000-00-00 ){
$content.='<tr><td><a href="?user-details-'.$row->id.'">'.$datum.' ('.$age.') '.$row->name.'</a></td></tr>';
}else{
$content.='<tr><td><a href="?user-details-'.$row->id.'">'.$datum.' '.$row->name.'</a></td></tr>'."\n";
}
}
elseif ($row->geschlecht == 1){
if ($row->gebdatum != 0000-00-00 ){
$content.='<tr><td><a href="?user-details-'.$row->id.'">'.$datum.' (<img src="http://lef-clan.com/images/male.png" title="Männlich">'.$age.') '.$row->name.'</a></td></tr>';
}else{
$content.='<tr><td><a href="?user-details-'.$row->id.'">'.$datum.' (M) '.$row->name.'</a></td></tr>';
}
}
elseif ($row->geschlecht == 2){
if ($row->gebdatum != 0000-00-00 ){
$content.='<tr><td><a href="?user-details-'.$row->id.'">'.$datum.' (<img src="http://lef-clan.com/images/female.png" title="Weiblich">'.$age.') '.$row->name.'</a></td></tr>';
}else{
$content.='<tr><td><a href="?user-details-'.$row->id.'">'.$datum.' (W) '.$row->name.'</a></td></tr>';
}
}
}
echo $content;
echo '</table>';
?><br>
<font color="#00ff00"><u><strong>-----Wer war/ist Online?-----</strong></u></font><p>
<?php
if (!defined('main')) {die("no direct access");}
// Farben
$farbeAdmin = '#ff0000';
$farbeCoAdmin = '#ff8000';
$farbeSiteAdmin = '#ff00ff';
$farbeLeader = '#cccccc';
$farbeCoLeader = '#cccccc';
$farbeMember = '#00ff00';
$farbeTrialmember = '#ffff00';
$farbeSuperuser = '#cccccc';
$farbeUser = '#00bfff';
$farbeGast = '#ffffff';
$dif = date('Y-m-d H:i:s', time() - 60);
$abf = "SELECT uid FROM `prefix_online` WHERE uptime > '". $dif."'";
$resultID = db_query($abf);
$brk='';
$uid = array();
$guests = 0;
$guestn = $lang['guests'];
$content='';
while ($row = db_fetch_object($resultID)) {
if ($row->uid != 0 AND $brk!=$row->uid) {
$name=@db_result(db_query('SELECT name FROM prefix_user WHERE id='.$row->uid),0);
$recht=@db_result(db_query('SELECT recht FROM prefix_user WHERE id='.$row->uid),0);
if ($recht == -9) {$farbe = $farbeAdmin;}
elseif ($recht == -8) {$farbe = $farbeCoAdmin;}
elseif ($recht == -7) {$farbe = $farbeSiteAdmin;}
elseif ($recht == -6) {$farbe = $farbeLeader;}
elseif ($recht == -5) {$farbe = $farbeCoLeader;}
elseif ($recht == -4) {$farbe = $farbeMember;}
elseif ($recht == -3) {$farbe = $farbeTrialmember;}
elseif ($recht == -2) {$farbe = $farbeSuperuser;}
elseif ($recht == -1) {$farbe = $farbeUser;}
else {$farbe = $farbeGast;}
$chat = (loggedin() && $_SESSION['authid'] != $row->id) ? '<td><a href="javascript:void(0)" onclick="javascript:chatWith(\''.$row->uid.'\',\''.$name.'\')"><img src="include/images/icons/pm.png" width="30" height="17" border="0" alt="Chat" /></a>' : '';
$content.= '<tr><td><img src="include/images/icons/online.gif" align="absmiddle" border="0" alt="online"></td>';
$content.='<td> <b><a href="index.php?user-details-'.$row->uid.'"><font style="color:'.$farbe.'">'.$name.'</font></a></td><td width="16">'.$chat.'</td></tr>'." ";
$uid[] = $row->uid;
}
if ($row->uid == 0) { $guests++; }
$brk=$row->uid;
}
if ($guests == 1) { $guestn = $lang['guest']; }
if (empty($content)) { $content.='<tr><td><img src="include/images/icons/offline.gif" align="absmiddle" border="0" alt="offline"></td><td> <font style="color:'.$farbe.'">0 User </font></td></tr>'." "; }
$content.='<tr><td colspan="2"><hr style="height: 0px; border: dashed #9AB1C8 0px; border-top-width: 1px;"><br></td></tr>'." ";
$where = (count($uid)>0) ? 'WHERE id NOT IN ('.implode(', ', $uid).')' : '';
$abf2 = 'SELECT * FROM prefix_user '.$where.' ORDER BY llogin DESC LIMIT 0,6';
$erg2 = db_query($abf2);
while ($row2 = db_fetch_object($erg2)) {
if ($row2->recht == -9) {$farbe = $farbeAdmin;}
elseif ($row2->recht == -8) {$farbe = $farbeCoAdmin;}
elseif ($row2->recht == -7) {$farbe = $farbeSiteAdmin;}
elseif ($row2->recht == -6) {$farbe = $farbeLeader;}
elseif ($row2->recht == -5) {$farbe = $farbeCoLeader;}
elseif ($row2->recht == -4) {$farbe = $farbeMember;}
elseif ($row2->recht == -3) {$farbe = $farbeTrialmember;}
elseif ($row2->recht == -2) {$farbe = $farbeSuperuser;}
elseif ($row2->recht == -1) {$farbe = $farbeUser;}
else {$farbe = $farbeGast;}
$datum = date('H:i d.m.y',$row2->llogin);
$user = '<font style="color:'.$farbe.'">'.$row2->name.'</font>';
$content.='<tr><td><img src="include/images/icons/offline.gif" align="absmiddle" border="0" alt="offline"></td><td> <b><a href="index.php?user-details-'.$row2->id.'" title="'.$lang['lasttimeonline'].$datum.'">'.$user.'</a></td></tr>'." ";
}
if ($guests == 0) {
$content.= '<tr><td colspan="2"><hr style="height: 0px; border: dashed #9AB1C8 0px; border-top-width: 1px";><br></td></tr>'." ".'
<tr><td><img src="include/images/icons/offline.gif" align="absmiddle" border="0" alt="offline"></td><td> <font size="-1" color="'.$farbeGast.'">0 '.$lang['guests'].'</td></tr>'." ";
} else {
$content.= '<tr><td colspan="2"><hr style="height: 0px; border: dashed #9AB1C8 0px; border-top-width: 1px;"><br></td></tr>'." ".'
<tr><td><img src="include/images/icons/online.gif" align="absmiddle" border="0" alt="online"></td><td> <font size="-1" color="'.$farbeGast.'">'.$guests.' '.$guestn.'</font></td></tr>'." ";
}
?>
<table align="middle" border="0" cellpadding="0" cellspacing="0" >
<?php echo $content; ?>
</table>
<br><font color="#00ff00"><u><strong>------Online Legende------</strong></u></font>
<div class="toggle_ce">
<div class="visiblebox">
<div align="left"><blockquote><br><b><img src="include/images/onlineboxicons/admin.png" width="16" height="16" align="top"/> <font color="#FF0000"> Admin </font><br>
<img src="include/images/onlineboxicons/coadmin.png" width="16" height="16" align="top"/> <font color="#FF8000"> Co-Admin </font><br>
<img src="include/images/onlineboxicons/fullmember.png" width="16" height="16" align="top"/> <font color="#00ff00"> Fullmember </font><br>
<img src="include/images/onlineboxicons/trialmember.png" width="16" height="16" align="top"/> <font color="#ffff00"> Trialmember </font><br>
<img src="include/images/onlineboxicons/moderator.png" width="16" height="16" align="top"/> <font color="#ff00ff"> Moderator </font><br>
<img src="include/images/onlineboxicons/user.png" width="16" height="16" align="top"/> <font color="#00bfff"> User </font></b></div></blockquote>
</div>
<div class="togglebox">
</div>
<div class="toggler"><br>
</div>
</div>
<font color="#00ff00"><u><strong>------Seiten Statistik------</strong></u></font><br><br>
<?php
# Copyright by Manuel Staechele
# Support www.ilch.de
#
# Umgeschrieben von Ilch 1.0.5 auf 1.1
# Dazu gekommen sind Usercheck abfrage und User Map
# Mod Copyright by DaGiZm0 - www.teod-clan.de
#
# Danke an jihi für seine geniale Usermap !
defined ('main') or die ( 'no direct access' );
if (empty($_GET['sum'])) {
$heute = date ('Y-m-d');
$ges_visits = db_result(db_query("SELECT SUM(count) FROM prefix_counter"),0);
$ges_heute = @db_result(db_query("SELECT count FROM prefix_counter WHERE date = '".$heute."'"),0);
$ges_gestern = @db_result(db_query('SELECT count FROM prefix_counter WHERE date < "'.$heute.'" ORDER BY date DESC LIMIT 1'),0);
$gbook = @db_result(db_query("SELECT count(ID) FROM prefix_gbook"),0);
$posts = @db_result(db_query("SELECT count(ID) FROM prefix_posts"),0);
$topic = @db_result(db_query("SELECT count(ID) FROM prefix_topics"),0);
$gesuser = @db_result(db_query("SELECT count(ID) FROM prefix_user"),0);
$usrchk = @db_result(db_query("SELECT count(name) FROM prefix_usercheck"),0);
echo '<b><font color="#FF8000"> Besucher gesamt: </font> '.$ges_visits.'<br />';
echo '<font color="#FF8000"> Besucher heute: </font> '.$ges_heute.'<br />';
echo '<font color="#FF8000"> Besucher gestern: </font> '.$ges_gestern.'<br />';
echo '<font color="#FF8000"> Gästebucheinträge: </font> '.$gbook.'<br />';
echo '<font color="#FF8000"> Forum Posts: </font> '.$posts.'<br />';
echo '<font color="#FF8000"> Forum Threads: </font> '.$topic.'<br />';
echo '<font color="#FF8000"> Angemeldete User: </font> '.$gesuser.'<br /></b>';
} else {
$title = $allgAr['title'].' :: Statistik';
$hmenu = 'Statistik';
$design = new design ( $title , $hmenu , 0 );
$design->header();
$anzahlShownTage = 7;
echo '<br /><table width=90%" align="center" class="border" cellpadding="0" cellspacing="1" border="0"><tr><td>';
echo '<table width="100%" border="0" cellpadding="5" cellspacing="0">';
echo '<tr class="Chead"><td colspan="3" align="center"><b>Site Statistik</b></td></tr>';
$max_in = 0;
$ges = 0;
$dat = array();
$max_width = 200;
$maxErg = db_query('SELECT MAX(count) FROM `prefix_counter`');
$max_in = db_result($maxErg,0);
$erg = db_query ("SELECT count, DATE_FORMAT(date,'%a der %d. %b') as datum FROM `prefix_counter` ORDER BY date DESC LIMIT ".$anzahlShownTage);
while ($row = db_fetch_row($erg) ) {
$value = $row[0];
if ( empty($value) ) {
$bwidth = 0;
} else {
$bwidth = $value/$max_in * $max_width;
$bwidth = round($bwidth,0);
}
echo '<tr class="Cnorm">';
echo '<td>'.$row[1].'</td>';
echo '<td><table width="'.$bwidth.'" border="0" cellpadding="0" cellspacing="0">';
echo '<tr><td height="2" class="border"></td></tr></table>';
echo '</td><td align="right">'.$value.'</td></tr>';
$ges += $value;
}
$gesBesucher = db_query('SELECT SUM(count) FROM prefix_counter');
$gesBesucher = @db_result($gesBesucher,0);
echo '<tr class="Cmite"><td colspan="3"><div align="right">';
echo 'Wochen Summe: '.$ges.'</div>';
echo 'Besucher Gesamt '.$gesBesucher.' Maximal '.$max_in.'<br /><br />';
echo '</td></tr><tr class="Cdark">';
echo '<td colspan="3" align="center">[ <a href="javascript:window.close()">Fenster Schliesen</a> ]</td>';
echo '</tr></table></td></tr></table><br />';
$design->footer();
}
?><br>
<?php
# Copyright by Manuel
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$suchtpl = <<<HTML
<form action="index.php?search" method="GET">
<input type="text" value="{search}" name="search" size="{size}" /><br />
<input type="hidden" name="in" value="2" />
<input type="submit" value="{_lang_search}" /><br />
</form>
<a href="index.php?search">{_lang_exsearch}</a>
HTML;
$tpl = new tpl ($suchtpl,3);
$tpl->set ('size', 16);
if(isset($_GET['search']))
$tpl->set ('search', escape($_GET['search'],'string'));
else $tpl->set ('search', '');
$tpl->out(0);
?>