Posted on: 01/08/05 02:38pm
By: machinari
//displays your page hits in a block. //code is from the gl stats page. //also uses the same access rights as stats page. function phpblock_pagehits(){ global $_CONF, $_USER, $_TABLES, $LANG10; //get perms if (empty ($_USER['username']) && (($_CONF['loginrequired'] == 1) || ($_CONF['statsloginrequired'] == 1))) { $display = ''; } else { //get data $totalhits = DB_getItem($_TABLES['vars'],'value',"name = 'totalhits'"); //display data $display = '<p align="center">'; //$display .= '<span style="font-weight: bold;">' . $LANG10[2] . '</span>'; $display .= '<span style="color: red; font-weight: bold;">' . $totalhits . '</span>'; $display .= '</p>'; } //return display return $display; }
Posted on: 01/09/05 08:26am
By: Anonymous (sammykrupa)
Posted on: 01/12/05 12:25pm
By: Anonymous (Kiwi)
Posted on: 01/12/05 12:53pm
By: machinari