From: <fr...@us...> - 2005-08-11 23:22:57
|
Update of /cvsroot/tikiwiki/tiki/lib/wiki-plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6259/lib/wiki-plugins Added Files: Tag: BRANCH-1-9 wikiplugin_objecthits.php Log Message: stats: adding a wiki plugin for objecthits --- NEW FILE: wikiplugin_objecthits.php --- <?php // $Header: /cvsroot/tikiwiki/tiki/lib/wiki-plugins/Attic/wikiplugin_objecthits.php,v 1.1.2.1 2005/08/11 23:22:46 franck Exp $ // Wiki plugin to display a browser client information // damian aka damosoft May 2004 function wikiplugin_objecthits_help() { return tra("Displays object hit info by object and days").":<br :>~np~{OBJECTHITS(object=>,type=>,days=>)/}~/np~"; } function wikiplugin_objecthits($data, $params) { global $tikilib; global $statslib; extract ($params,EXTR_SKIP); $asetup = ''; if (!isset($object)) { global $page; $object = $page; $type= "wiki"; } if (!isset($days)) { $days=0; } if (!isset($type)) { $type="wiki"; } return $statslib->object_hits($object,$type,$days); } ?> |