summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-06 22:56:48 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-06 22:56:48 +0000
commit10b818551516af487c5f4d9794124045070af1a2 (patch)
tree757456f1506d78e67ecec5e1d1e8b205602067e9
parent500f20c87dac0dbed2e9ae62b831ed752fd2a49c (diff)
downloadstats-10b818551516af487c5f4d9794124045070af1a2.tar.gz
stats-10b818551516af487c5f4d9794124045070af1a2.tar.bz2
stats-10b818551516af487c5f4d9794124045070af1a2.zip
further paermission renaming and cleanup
-rw-r--r--admin/schema_inc.php2
-rw-r--r--bit_setup_inc.php2
-rw-r--r--referer_stats.php6
-rw-r--r--templates/menu_stats.tpl2
4 files changed, 6 insertions, 6 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index bc98c4d..57c25fe 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -31,7 +31,7 @@ $gBitInstaller->registerPackageInfo( STATS_PKG_NAME, array(
// ### Default Preferences
$gBitInstaller->registerPreferences( STATS_PKG_NAME, array(
- array('', 'feature_referer_stats','y')
+ array('', 'referer_stats','y')
) );
// ### Default UserPermissions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php
index 0ae4457..9464244 100644
--- a/bit_setup_inc.php
+++ b/bit_setup_inc.php
@@ -10,7 +10,7 @@ if( $gBitSystem->isPackageActive( STATS_PKG_NAME ) ) {
global $statslib;
require_once( STATS_PKG_PATH.'stats_lib.php' );
// ********** STATS ************
- if ($gBitSystem->isFeatureActive( 'feature_referer_stats' ) ) {
+ if ($gBitSystem->isFeatureActive( 'referer_stats' ) ) {
// Referer tracking
if (isset($_SERVER['HTTP_REFERER'])) {
$pref = parse_url($_SERVER['HTTP_REFERER']);
diff --git a/referer_stats.php b/referer_stats.php
index 318a341..5e50d7e 100644
--- a/referer_stats.php
+++ b/referer_stats.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_stats/referer_stats.php,v 1.6 2006/02/06 00:11:13 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_stats/referer_stats.php,v 1.7 2006/02/06 22:56:48 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: referer_stats.php,v 1.6 2006/02/06 00:11:13 squareing Exp $
+ * $Id: referer_stats.php,v 1.7 2006/02/06 22:56:48 squareing Exp $
* @package stats
* @subpackage functions
*/
@@ -21,7 +21,7 @@ require_once( '../bit_setup_inc.php' );
include_once ( STATS_PKG_PATH.'stats_lib.php');
$gBitSystem->verifyPackage( 'stats' );
-$gBitSystem->verifyFeature( 'feature_referer_stats' );
+$gBitSystem->verifyFeature( 'referer_stats' );
$gBitSystem->verifyPermission( 'bit_p_view_referer_stats' );
diff --git a/templates/menu_stats.tpl b/templates/menu_stats.tpl
index b9af8a4..ba266b0 100644
--- a/templates/menu_stats.tpl
+++ b/templates/menu_stats.tpl
@@ -6,7 +6,7 @@
{if $gBitUser->hasPermission( 'bit_p_view_stats' ) and $gBitSystem->mDb->mType eq 'postgres'}
<li><a class="item" href="{$smarty.const.STATS_PKG_URL}users.php">{tr}User Stats{/tr}</a></li>
{/if}
- {if $gBitSystem->isFeatureActive( 'feature_referer_stats' ) and $gBitUser->hasPermission( 'bit_p_view_referer_stats' )}
+ {if $gBitSystem->isFeatureActive( 'referer_stats' ) and $gBitUser->hasPermission( 'bit_p_view_referer_stats' )}
<li><a class="item" href="{$smarty.const.STATS_PKG_URL}referer_stats.php">{tr}Referrer Stats{/tr}</a></li>
{/if}
</ul>