Differences

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;
} }
english/phpwcms_replacer_rts/frontend_render/count_users_online.1268054615.txt.gz · Last modified: 2018/06/03 18:08 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0