So sollte das mit der Farbe gehen.
<?php
# Copyright by Manuel Staechele
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$tpl = new tpl ( 'user/vtec-boxen_loginh.htm' );
$today = getdate();
$monate = array(1=>"Januar",2=>"Februar",3=>"März",4=>"April",5=>"Mai",6=>"Juni",7=>"Juli",8=>"August",
9=>"September",10=>"Oktober",11=>"November",12=>"Dezember");
$monat = date("n");
$mday = $today['mday'];
$year = $today['year'];
$hours = $today['hours'];
$minutes = $today['minutes'];
$now = sprintf ("$mday $monate[$monat] $year %02d:%02d", $hours, $minutes);
if(date("G") < 12) {$tagzeit="Guten Morgen";}
if(date("G") <= 18 && date("G") >= 12) {$tagzeit='Guten Tag';}
if(date("G") >= 19) {$tagzeit='Guten Abend';}
if ( loggedin() ) {
if ( user_has_admin_right($menu,false) ) {
$tpl->set ( 'ADMIN', '<a class="hlogin-link" 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="hlogin-link" href="index.php?forum-privmsg"><font color="FF0000">('.$check_pm.')</font>';
} else {
$nachrichten_link = '';
}
$tpl->set ( 'SID' , session_id() );
$tpl->set ( 'NACHRICHTEN' , $nachrichten_link );
$tpl->set ( 'NAME', $_SESSION['authname'] );
$tpl->set ( 'SCREENTIME', $now );
$tpl->set ( 'TAGZEIT', $tagzeit );
$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 class="hlogin-link" href="index.php?user-regist">Regist</a>';
}
$tpl->set_ar_out ( array ( 'regist' => $regist,'SCREENTIME' => $now, 'TAGZEIT' => $tagzeit, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 );
}
unset($tpl);
?>