diff options
| -rw-r--r-- | admin/schema_inc.php | 4 | ||||
| -rw-r--r-- | index.php | 6 | ||||
| -rw-r--r-- | item_chart.php | 6 | ||||
| -rw-r--r-- | pv_chart.php | 6 | ||||
| -rw-r--r-- | referer_stats.php | 6 | ||||
| -rw-r--r-- | templates/menu_stats.tpl | 4 | ||||
| -rw-r--r-- | usage_chart.php | 6 | ||||
| -rw-r--r-- | users.php | 6 |
8 files changed, 22 insertions, 22 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php index ad5f300..1922e53 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -36,8 +36,8 @@ $gBitInstaller->registerPreferences( STATS_PKG_NAME, array( // ### Default UserPermissions $gBitInstaller->registerUserPermissions( STATS_PKG_NAME, array( - array('bit_p_view_referer_stats', 'Can view referer stats', 'editors', STATS_PKG_NAME), - array('bit_p_view_stats', 'Can view site stats', 'basic', STATS_PKG_NAME), + array('p_stats_view_referer', 'Can view referer stats', 'editors', STATS_PKG_NAME), + array('p_stats_view', 'Can view site stats', 'basic', STATS_PKG_NAME), ) ); @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_stats/index.php,v 1.5 2006/02/02 09:14:14 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_stats/index.php,v 1.6 2006/04/11 13:09:28 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: index.php,v 1.5 2006/02/02 09:14:14 squareing Exp $ + * $Id: index.php,v 1.6 2006/04/11 13:09:28 squareing Exp $ * @package stats * @subpackage functions */ @@ -23,7 +23,7 @@ global $statslib, $gBitSystem; $gBitSystem->verifyPackage( 'stats' ); -$gBitSystem->verifyPermission( 'bit_p_view_stats' ); +$gBitSystem->verifyPermission( 'p_stats_view' ); if (!isset($_REQUEST["days"])) { $_REQUEST["days"] = 7; diff --git a/item_chart.php b/item_chart.php index d1950fa..bd6b1ba 100644 --- a/item_chart.php +++ b/item_chart.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_stats/item_chart.php,v 1.2 2005/12/26 12:26:04 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_stats/item_chart.php,v 1.3 2006/04/11 13:09:28 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: item_chart.php,v 1.2 2005/12/26 12:26:04 squareing Exp $ + * $Id: item_chart.php,v 1.3 2006/04/11 13:09:28 squareing Exp $ * @package stats * @subpackage functions */ @@ -22,7 +22,7 @@ include_once( UTIL_PKG_PATH . "phplot.php" ); global $gBitSystem; $gBitSystem->isPackageActive( 'stats' ); -$gBitSystem->verifyPermission( 'bit_p_view_stats' ); +$gBitSystem->verifyPermission( 'p_stats_view' ); // data to be displayed $data = $statslib->get_item_chart_data( !empty( $_REQUEST['content_type_guid'] ) ? $_REQUEST['content_type_guid'] : NULL ); diff --git a/pv_chart.php b/pv_chart.php index ba4a995..89e288f 100644 --- a/pv_chart.php +++ b/pv_chart.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_stats/pv_chart.php,v 1.5 2005/12/29 18:27:48 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_stats/pv_chart.php,v 1.6 2006/04/11 13:09:28 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: pv_chart.php,v 1.5 2005/12/29 18:27:48 squareing Exp $ + * $Id: pv_chart.php,v 1.6 2006/04/11 13:09:28 squareing Exp $ * @package stats * @subpackage functions */ @@ -23,7 +23,7 @@ include_once( UTIL_PKG_PATH . "phplot.php" ); global $gBitSystem; $gBitSystem->isPackageActive( 'stats' ); -$gBitSystem->verifyPermission( 'bit_p_view_stats' ); +$gBitSystem->verifyPermission( 'p_stats_view' ); $days = isset( $_REQUEST["days"] ) ? $_REQUEST['days'] : 7; $data = $statslib->get_pv_chart_data( $days ); diff --git a/referer_stats.php b/referer_stats.php index 5e50d7e..3be5129 100644 --- a/referer_stats.php +++ b/referer_stats.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_stats/referer_stats.php,v 1.7 2006/02/06 22:56:48 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_stats/referer_stats.php,v 1.8 2006/04/11 13:09:28 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.7 2006/02/06 22:56:48 squareing Exp $ + * $Id: referer_stats.php,v 1.8 2006/04/11 13:09:28 squareing Exp $ * @package stats * @subpackage functions */ @@ -22,7 +22,7 @@ include_once ( STATS_PKG_PATH.'stats_lib.php'); $gBitSystem->verifyPackage( 'stats' ); $gBitSystem->verifyFeature( 'referer_stats' ); -$gBitSystem->verifyPermission( 'bit_p_view_referer_stats' ); +$gBitSystem->verifyPermission( 'p_stats_view_referer' ); if (isset($_REQUEST["clear"])) { diff --git a/templates/menu_stats.tpl b/templates/menu_stats.tpl index ba266b0..4be2be2 100644 --- a/templates/menu_stats.tpl +++ b/templates/menu_stats.tpl @@ -3,10 +3,10 @@ {if $gBitUser->hasPermission( 'bit_p_view_site_stats' )} <li><a class="item" href="{$smarty.const.STATS_PKG_URL}index.php">{tr}Site Stats{/tr}</a></li> {/if} - {if $gBitUser->hasPermission( 'bit_p_view_stats' ) and $gBitSystem->mDb->mType eq 'postgres'} + {if $gBitUser->hasPermission( 'p_stats_view' ) 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( 'referer_stats' ) and $gBitUser->hasPermission( 'bit_p_view_referer_stats' )} + {if $gBitSystem->isFeatureActive( 'referer_stats' ) and $gBitUser->hasPermission( 'p_stats_view_referer' )} <li><a class="item" href="{$smarty.const.STATS_PKG_URL}referer_stats.php">{tr}Referrer Stats{/tr}</a></li> {/if} </ul> diff --git a/usage_chart.php b/usage_chart.php index a4c8949..ff2f955 100644 --- a/usage_chart.php +++ b/usage_chart.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_stats/usage_chart.php,v 1.3 2005/12/26 12:26:04 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_stats/usage_chart.php,v 1.4 2006/04/11 13:09:28 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: usage_chart.php,v 1.3 2005/12/26 12:26:04 squareing Exp $ + * $Id: usage_chart.php,v 1.4 2006/04/11 13:09:28 squareing Exp $ * @package stats * @subpackage functions */ @@ -22,7 +22,7 @@ include_once( UTIL_PKG_PATH . "phplot.php" ); global $gBitSystem; $gBitSystem->isPackageActive( 'stats' ); -$gBitSystem->verifyPermission( 'bit_p_view_stats' ); +$gBitSystem->verifyPermission( 'p_stats_view' ); // data to be displayed $data = $statslib->get_usage_chart_data(); @@ -1,12 +1,12 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_stats/users.php,v 1.5 2005/10/23 14:42:17 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_stats/users.php,v 1.6 2006/04/11 13:09:28 squareing Exp $ * * Copyright (c) 2005 bitweaver.org * 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: users.php,v 1.5 2005/10/23 14:42:17 squareing Exp $ + * $Id: users.php,v 1.6 2006/04/11 13:09:28 squareing Exp $ * @package stats * @subpackage functions */ @@ -20,7 +20,7 @@ global $statslib, $gBitSystem; $gBitSystem->verifyPackage( 'stats' ); -$gBitSystem->verifyPermission( 'bit_p_view_stats' ); +$gBitSystem->verifyPermission( 'p_stats_view' ); if (!isset($_REQUEST["period"])) { $_REQUEST["period"] = 'month'; |
