NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms_replacer_rts:frontend_render:count_users_online [2010/03/08 14:23] Claus created |
english:phpwcms_replacer_rts:frontend_render:count_users_online [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 45: | Line 45: | ||
| function online() { | function online() { | ||
| - | $daten = $_SERVER['DOCUMENT_ROOT']."/count.txt"; | + | //$daten = $_SERVER['DOCUMENT_ROOT']."/count.txt"; |
| + | $daten = PHPWCMS_ROOT."/count.txt"; | ||
| $time = time(); | $time = time(); | ||
| $ip = getenv("REMOTE_ADDR"); | $ip = getenv("REMOTE_ADDR"); | ||
| Line 91: | Line 92: | ||
| $anzahldaten = file($daten); | $anzahldaten = file($daten); | ||
| $anzahl = count($anzahldaten); | $anzahl = count($anzahldaten); | ||
| - | $online="<div style='color:#fff;text-align:center'><p><b>$anzahl</b> User(s) online</p></div>"; | + | $online="<div style='color:RED;text-align:center'><p><b>$anzahl</b> User online</p></div>"; |
| return $online; | return $online; | ||
| } | } | ||