diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-01-27 21:56:30 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-01-27 21:56:30 +0000 |
| commit | 986cd6667d1bba9a2ecf9699a045d71571b4648e (patch) | |
| tree | b89108c693408c2b754faf2ced1fbbb6eead3bd7 /stats.php | |
| parent | ff1bb983cde67c2ffa15bad013969659cb0308a7 (diff) | |
| download | search-986cd6667d1bba9a2ecf9699a045d71571b4648e.tar.gz search-986cd6667d1bba9a2ecf9699a045d71571b4648e.tar.bz2 search-986cd6667d1bba9a2ecf9699a045d71571b4648e.zip | |
replace old code with new versions - we need to stop babysitting outdated codepre_table_detikification
Diffstat (limited to 'stats.php')
| -rw-r--r-- | stats.php | 20 |
1 files changed, 4 insertions, 16 deletions
@@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_search/stats.php,v 1.3 2005/08/01 18:41:20 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_search/stats.php,v 1.4 2006/01/27 21:56:30 squareing Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: stats.php,v 1.3 2005/08/01 18:41:20 squareing Exp $ + * $Id: stats.php,v 1.4 2006/01/27 21:56:30 squareing Exp $ * @author Luis Argerich (lrargerich@yahoo.com) * @package search * @subpackage functions @@ -21,22 +21,10 @@ require_once( '../bit_setup_inc.php' ); include_once( SEARCH_PKG_PATH.'searchstats_lib.php'); -if ($feature_search_stats != 'y') { - $gBitSmarty->assign('msg', tra("This feature is disabled").": feature_search_stats"); - - $gBitSystem->display( 'error.tpl' ); - die; -} - -if (!$gBitUser->isAdmin()) { - $gBitSmarty->assign('msg', tra("You dont have permission to use this feature")); - - $gBitSystem->display( 'error.tpl' ); - die; -} +$gBitSystem->verifyFeature( 'feature_search_stats' ); +$gBitSystem->verifyPermission( 'bit_p_admin' ); if (isset($_REQUEST["clear"])) { - $searchstatslib->clear_search_stats(); } |
