Funktioniert gut, zu gut....
Er zählt mir alle bisherigen Punket auf, ist es Mittag listet er mir Mitternacht, Früher Morgen, Dämmerung, Morgen und Mittag.
Ich hab das ganze versucht einzuschränken, doch scheiterts wieder an meinen php Kenntnissen.
if(date("Gi")>="0000" and if(date("Gi")<"0100") output("`c<font size='+1'>`b`#Mitternacht`0`b</font>`c",true);
if(date("Gi")>="0100" and if(date("Gi")<"0600") output("`c<font size='+1'>`b`#Früher Morgen`0`b</font>`c",true);
if(date("Gi")>="0600" and if(date("Gi")<"0700") output("`c<font size='+1'>`b`#Dämmerung`0`b</font>`c",true);
if(date("Gi")>="0700" and if(date("Gi")<"1200") output("`c<font size='+1'>`b`#Morgen`0`b</font>`c",true);
if(date("Gi")>="1200" and if(date("Gi")<"1300") output("`c<font size='+1'>`b`#Mittag`0`b</font>`c",true);
if(date("Gi")>="1300" and if(date("Gi")<"1800") output("`c<font size='+1'>`b`#Nachmittag`0`b</font>`c",true);
if(date("Gi")>="1800" and if(date("Gi")<"2000") output("`c<font size='+1'>`b`#Abend`0`b</font>`c",true);
if(date("Gi")>="2000" and if(date("Gi")<"2100") output("`c<font size='+1'>`b`#Dämmerung`0`b</font>`c",true);
if(date("Gi")>="2100") output("`c<font size='+1'>`b`#Nacht`0`b</font>`c",true);
Da spukt er dann nur noch
Parse error: parse error, unexpected T_IF in /usr/export/www/vhosts/funnetwork/hosting/elementarmagier/logd/newday.php on line 146
aus.... ?!
Hab jetzt wieder
if(date("Gi")>="0000") output("`c<font size='+1'>`b`#Mitternacht`0`b</font>`c",true);
if(date("Gi")>="0100") output("`c<font size='+1'>`b`#Früher Morgen`0`b</font>`c",true);
if(date("Gi")>="0600") output("`c<font size='+1'>`b`#Dämmerung`0`b</font>`c",true);
if(date("Gi")>="0700") output("`c<font size='+1'>`b`#Morgen`0`b</font>`c",true);
if(date("Gi")>="1200") output("`c<font size='+1'>`b`#Mittag`0`b</font>`c",true);
if(date("Gi")>="1300") output("`c<font size='+1'>`b`#Nachmittag`0`b</font>`c",true);
if(date("Gi")>="1800") output("`c<font size='+1'>`b`#Abend`0`b</font>`c",true);
if(date("Gi")>="2000") output("`c<font size='+1'>`b`#Dämmerung`0`b</font>`c",true);
if(date("Gi")>="2100") output("`c<font size='+1'>`b`#Nacht`0`b</font>`c",true);