summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php36
-rw-r--r--referer_stats.php26
-rw-r--r--templates/user_stats.tpl76
-rw-r--r--users.php8
4 files changed, 73 insertions, 73 deletions
diff --git a/index.php b/index.php
index 5056f37..be72db8 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_stats/index.php,v 1.2 2005/06/28 07:45:58 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_stats/index.php,v 1.3 2005/08/01 18:41:26 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.2 2005/06/28 07:45:58 spiderr Exp $
+ * $Id: index.php,v 1.3 2005/08/01 18:41:26 squareing Exp $
* @package stats
* @subpackage functions
*/
@@ -29,18 +29,18 @@ if (!isset($_REQUEST["days"])) {
$_REQUEST["days"] = 7;
}
-$smarty->assign('pv_chart', 'n');
+$gBitSmarty->assign('pv_chart', 'n');
if (isset($_REQUEST["pv_chart"])) {
- $smarty->assign('pv_chart', 'y');
+ $gBitSmarty->assign('pv_chart', 'y');
}
-$smarty->assign('days', $_REQUEST["days"]);
+$gBitSmarty->assign('days', $_REQUEST["days"]);
-$smarty->assign('usage_chart', 'n');
+$gBitSmarty->assign('usage_chart', 'n');
if (isset($_REQUEST["chart"])) {
- $smarty->assign($_REQUEST["chart"] . "_chart", 'y');
+ $gBitSmarty->assign($_REQUEST["chart"] . "_chart", 'y');
}
if ($gBitSystem->isPackageActive( 'wiki' ) ) {
@@ -48,70 +48,70 @@ if ($gBitSystem->isPackageActive( 'wiki' ) ) {
} else {
$wiki_stats = false;
}
-$smarty->assign_by_ref('wiki_stats', $wiki_stats);
+$gBitSmarty->assign_by_ref('wiki_stats', $wiki_stats);
if ($gBitSystem->isPackageActive( 'imagegals' ) ) {
$igal_stats = $statslib->image_gal_stats();
} else {
$igal_stats = false;
}
-$smarty->assign_by_ref('igal_stats', $igal_stats);
+$gBitSmarty->assign_by_ref('igal_stats', $igal_stats);
if ($gBitSystem->isPackageActive( 'filegals' ) ) {
$fgal_stats = $statslib->file_gal_stats();
} else {
$fgal_stats = false;
}
-$smarty->assign_by_ref('fgal_stats', $fgal_stats);
+$gBitSmarty->assign_by_ref('fgal_stats', $fgal_stats);
if ($gBitSystem->isPackageActive( 'articles' ) ) {
$cms_stats = $statslib->cms_stats();
} else {
$cms_stats = false;
}
-$smarty->assign_by_ref('cms_stats', $cms_stats);
+$gBitSmarty->assign_by_ref('cms_stats', $cms_stats);
if ($gBitSystem->isPackageActive( 'forums' ) ) {
$forum_stats = $statslib->forum_stats();
} else {
$forum_stats = false;
}
-$smarty->assign_by_ref('forum_stats', $forum_stats);
+$gBitSmarty->assign_by_ref('forum_stats', $forum_stats);
if ($gBitSystem->isPackageActive( 'blogs' ) ) {
$blog_stats = $statslib->blog_stats();
} else {
$blog_stats = false;
}
-$smarty->assign_by_ref('blog_stats', $blog_stats);
+$gBitSmarty->assign_by_ref('blog_stats', $blog_stats);
if ($gBitSystem->isPackageActive( 'polls' ) ) {
$poll_stats = $statslib->poll_stats();
} else {
$poll_stats = false;
}
-$smarty->assign_by_ref('poll_stats', $poll_stats);
+$gBitSmarty->assign_by_ref('poll_stats', $poll_stats);
if ($gBitSystem->isPackageActive( 'faqs' ) ) {
$faq_stats = $statslib->faq_stats();
} else {
$faq_stats = false;
}
-$smarty->assign_by_ref('faq_stats', $faq_stats);
+$gBitSmarty->assign_by_ref('faq_stats', $faq_stats);
if ($gBitSystem->isPackageActive( 'quizzes' ) ) {
$quiz_stats = $statslib->quiz_stats();
} else {
$quiz_stats = false;
}
-$smarty->assign_by_ref('quiz_stats', $quiz_stats);
+$gBitSmarty->assign_by_ref('quiz_stats', $quiz_stats);
$user_stats = $statslib->user_stats();
-$smarty->assign_by_ref('user_stats', $user_stats);
+$gBitSmarty->assign_by_ref('user_stats', $user_stats);
$site_stats = $statslib->site_stats();
-$smarty->assign_by_ref('site_stats', $site_stats);
+$gBitSmarty->assign_by_ref('site_stats', $site_stats);
diff --git a/referer_stats.php b/referer_stats.php
index 7512b34..b649b67 100644
--- a/referer_stats.php
+++ b/referer_stats.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_stats/referer_stats.php,v 1.2 2005/06/28 07:45:58 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_stats/referer_stats.php,v 1.3 2005/08/01 18:41:26 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.2 2005/06/28 07:45:58 spiderr Exp $
+ * $Id: referer_stats.php,v 1.3 2005/08/01 18:41:26 squareing Exp $
* @package stats
* @subpackage functions
*/
@@ -32,7 +32,7 @@ if (isset($_REQUEST["clear"])) {
/*
if($bit_p_take_quiz != 'y') {
- $smarty->assign('msg',tra("You dont have permission to use this feature"));
+ $gBitSmarty->assign('msg',tra("You dont have permission to use this feature"));
$gBitSystem->display( 'error.tpl' );
die;
}
@@ -49,7 +49,7 @@ if (!isset($_REQUEST["offset"])) {
$offset = $_REQUEST["offset"];
}
-$smarty->assign_by_ref('offset', $offset);
+$gBitSmarty->assign_by_ref('offset', $offset);
if (isset($_REQUEST["find"])) {
$find = $_REQUEST["find"];
@@ -57,29 +57,29 @@ if (isset($_REQUEST["find"])) {
$find = '';
}
-$smarty->assign('find', $find);
+$gBitSmarty->assign('find', $find);
-$smarty->assign_by_ref('sort_mode', $sort_mode);
+$gBitSmarty->assign_by_ref('sort_mode', $sort_mode);
$channels = $statslib->list_referer_stats($offset, $maxRecords, $sort_mode, $find);
$cant_pages = ceil($channels["cant"] / $maxRecords);
-$smarty->assign_by_ref('cant_pages', $cant_pages);
-$smarty->assign('actual_page', 1 + ($offset / $maxRecords));
+$gBitSmarty->assign_by_ref('cant_pages', $cant_pages);
+$gBitSmarty->assign('actual_page', 1 + ($offset / $maxRecords));
if ($channels["cant"] > ($offset + $maxRecords)) {
- $smarty->assign('next_offset', $offset + $maxRecords);
+ $gBitSmarty->assign('next_offset', $offset + $maxRecords);
} else {
- $smarty->assign('next_offset', -1);
+ $gBitSmarty->assign('next_offset', -1);
}
// If offset is > 0 then prev_offset
if ($offset > 0) {
- $smarty->assign('prev_offset', $offset - $maxRecords);
+ $gBitSmarty->assign('prev_offset', $offset - $maxRecords);
} else {
- $smarty->assign('prev_offset', -1);
+ $gBitSmarty->assign('prev_offset', -1);
}
-$smarty->assign_by_ref('channels', $channels["data"]);
+$gBitSmarty->assign_by_ref('channels', $channels["data"]);
diff --git a/templates/user_stats.tpl b/templates/user_stats.tpl
index da9b0e3..70a0249 100644
--- a/templates/user_stats.tpl
+++ b/templates/user_stats.tpl
@@ -1,38 +1,38 @@
-{* $Header: /cvsroot/bitweaver/_bit_stats/templates/user_stats.tpl,v 1.3 2005/07/25 20:02:45 squareing Exp $ *}
-<div class="display statistics">
- <div class="header">
- <h1>{tr}Site Registrations{/tr}</h1>
- </div>
-
- <div class="navbar">
- <ul>
- <li><a href="{$gTikiLoc.STATS_PKG_URL}users.php?period=86400">{tr}Daily{/tr}</a></li>
- <li><a href="{$gTikiLoc.STATS_PKG_URL}users.php?period=604800">{tr}Weekly{/tr}</a></li>
- <li><a href="{$gTikiLoc.STATS_PKG_URL}users.php?period=2592000">{tr}30 Days{/tr}</a></li>
- </ul>
- </div>
-
- <div class="clear"></div>
-
- <div class="body">
- <table class="data">
- <caption>{tr}User Registrations at {$siteTitle}{/tr}</caption>
- <tr>
- <th style="width:20%;">{tr}Period{/tr}</td>
- <th style="width:80%;">{tr}Number of Registrations{/tr}</td>
- </tr>
- {foreach item=reg key=period from=$userStats.per_period}
- <tr class="{cycle values="even,odd"}">
- <td>{$period|bit_short_date}</td>
- <td><div style="width:{math equation="round( ( r / m ) * 100 )" r=$reg m=$userStats.max}%; background:#f80;padding:0 0 0 5px;">{$reg}</div></td>
- </tr>
- {foreachelse}
- <tr class="norecords">
- <td colspan="2">
- {tr}No results for {$periodName}{/tr}
- </td>
- </tr>
- {/foreach}
- </table>
- </div> <!-- end .body -->
-</div> <!-- end .statistics -->
+{* $Header: /cvsroot/bitweaver/_bit_stats/templates/user_stats.tpl,v 1.4 2005/08/01 18:41:26 squareing Exp $ *}
+<div class="display statistics">
+ <div class="header">
+ <h1>{tr}Site Registrations{/tr}</h1>
+ </div>
+
+ <div class="navbar">
+ <ul>
+ <li><a href="{$gTikiLoc.STATS_PKG_URL}users.php?period=86400">{tr}Daily{/tr}</a></li>
+ <li><a href="{$gTikiLoc.STATS_PKG_URL}users.php?period=604800">{tr}Weekly{/tr}</a></li>
+ <li><a href="{$gTikiLoc.STATS_PKG_URL}users.php?period=2592000">{tr}30 Days{/tr}</a></li>
+ </ul>
+ </div>
+
+ <div class="clear"></div>
+
+ <div class="body">
+ <table class="data">
+ <caption>{tr}User Registrations at {$siteTitle}{/tr}</caption>
+ <tr>
+ <th style="width:20%;">{tr}Period{/tr}</td>
+ <th style="width:80%;">{tr}Number of Registrations{/tr}</td>
+ </tr>
+ {foreach item=reg key=period from=$userStats.per_period}
+ <tr class="{cycle values="even,odd"}">
+ <td>{$period|bit_short_date}</td>
+ <td><div style="width:{math equation="round( ( r / m ) * 100 )" r=$reg m=$userStats.max}%; background:#f80;padding:0 0 0 5px;">{$reg}</div></td>
+ </tr>
+ {foreachelse}
+ <tr class="norecords">
+ <td colspan="2">
+ {tr}No results for {$periodName}{/tr}
+ </td>
+ </tr>
+ {/foreach}
+ </table>
+ </div> <!-- end .body -->
+</div> <!-- end .statistics -->
diff --git a/users.php b/users.php
index 7c9c587..aafbde9 100644
--- a/users.php
+++ b/users.php
@@ -1,12 +1,12 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_stats/users.php,v 1.2 2005/07/17 17:36:17 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_stats/users.php,v 1.3 2005/08/01 18:41:26 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.2 2005/07/17 17:36:17 squareing Exp $
+ * $Id: users.php,v 1.3 2005/08/01 18:41:26 squareing Exp $
* @package stats
* @subpackage functions
*/
@@ -35,11 +35,11 @@ switch( $_REQUEST["period"] ) {
$periodName = 'Daily';
break;
}
-$smarty->assign( 'periodName', $periodName );
+$gBitSmarty->assign( 'periodName', $periodName );
$stats = $statslib->registrationStats( $_REQUEST["period"] );
-$smarty->assign_by_ref( 'userStats', $stats );
+$gBitSmarty->assign_by_ref( 'userStats', $stats );
// Display the template
$gBitSystem->display( 'bitpackage:stats/user_stats.tpl');