[Shuttlebb-svn] SF.net SVN: shuttlebb: [81] branch
Brought to you by:
afterlife69,
danb00
|
From: <aft...@us...> - 2006-12-05 16:05:10
|
Revision: 81
http://svn.sourceforge.net/shuttlebb/?rev=81&view=rev
Author: afterlife69
Date: 2006-12-05 08:05:08 -0800 (Tue, 05 Dec 2006)
Log Message:
-----------
moved a constant, used a constant
Modified Paths:
--------------
branch/index.php
branch/require/constants.php
branch/sources/class_session.php
branch/sources/class_user.php
branch/template/Default/cache/%%E2^E2A^E2AEC254%%module_index.html
Modified: branch/index.php
===================================================================
--- branch/index.php 2006-12-05 12:18:29 UTC (rev 80)
+++ branch/index.php 2006-12-05 16:05:08 UTC (rev 81)
@@ -7,6 +7,8 @@
* $Rev$
*/
+$sbb_start_var = microtime(true);
+
/**
* Define self
*/
@@ -137,10 +139,7 @@
ob_end_clean();
echo $output;
-/**
- * Source code highlighting
- */
-highlight_file(__FILE__);
+echo 'Generation time: ' . ($sbb_start_var - time());
/**
* Bye!
Modified: branch/require/constants.php
===================================================================
--- branch/require/constants.php 2006-12-05 12:18:29 UTC (rev 80)
+++ branch/require/constants.php 2006-12-05 16:05:08 UTC (rev 81)
@@ -24,4 +24,9 @@
define('BBCODE_TABLE', DB_PREFIX . 'bbcode');
define('ACL_TABLE', DB_PREFIX . 'acl');
+/**
+ * This constant is used to identify "Guest" users.
+ */
+define('UNREGISTERED', '-1');
+
?>
\ No newline at end of file
Modified: branch/sources/class_session.php
===================================================================
--- branch/sources/class_session.php 2006-12-05 12:18:29 UTC (rev 80)
+++ branch/sources/class_session.php 2006-12-05 16:05:08 UTC (rev 81)
@@ -136,7 +136,7 @@
'session_agent' => (string) $db->sql_escape($this->agent),
'session_time' => (int) time(),
'session_page' => (int) $this->page,
- 'user_id' => 0,
+ 'user_id' => UNREGISTERED,
));
// set session data
Modified: branch/sources/class_user.php
===================================================================
--- branch/sources/class_user.php 2006-12-05 12:18:29 UTC (rev 80)
+++ branch/sources/class_user.php 2006-12-05 16:05:08 UTC (rev 81)
@@ -8,11 +8,6 @@
*/
/**
- * This constant is used to identify "Guest" users.
- */
-define('UNREGISTERED', -1);
-
-/**
* This class manages all aspects of the user including templates, language and sessions
*/
class user
Modified: branch/template/Default/cache/%%E2^E2A^E2AEC254%%module_index.html
===================================================================
--- branch/template/Default/cache/%%E2^E2A^E2AEC254%%module_index.html 2006-12-05 12:18:29 UTC (rev 80)
+++ branch/template/Default/cache/%%E2^E2A^E2AEC254%%module_index.html 2006-12-05 16:05:08 UTC (rev 81)
@@ -1,5 +1,5 @@
139
-a:4:{s:8:"template";a:1:{s:17:"module_index.html";b:1;}s:9:"timestamp";i:1165321058;s:7:"expires";i:1165324658;s:13:"cache_serials";a:0:{}}<!--
+a:4:{s:8:"template";a:1:{s:17:"module_index.html";b:1;}s:9:"timestamp";i:1165333881;s:7:"expires";i:1165337481;s:13:"cache_serials";a:0:{}}<!--
/*
* $Id$
* $Date$
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|