phpmp-commits Mailing List for phpMyPublications (Page 14)
Status: Pre-Alpha
Brought to you by:
heimidal
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(69) |
May
(1) |
Jun
|
Jul
(53) |
Aug
(27) |
Sep
|
Oct
|
Nov
(35) |
Dec
(71) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(5) |
Feb
(65) |
Mar
|
Apr
(15) |
May
(40) |
Jun
(72) |
Jul
|
Aug
(2) |
Sep
(95) |
Oct
(37) |
Nov
|
Dec
|
2005 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Brian R. <hei...@us...> - 2003-02-04 21:43:48
|
Update of /cvsroot/phpmp/phpMP In directory sc8-pr-cvs1:/tmp/cvs-serv30097 Modified Files: index.php modules.php profile.php Log Message: Most all files updated. Forgot a small compatibility issue regarding <? and <?php. Also, deleted some lines at the end of files and changed a few config names. Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -r1.28 -r1.29 *** index.php 7 Dec 2002 11:39:47 -0000 1.28 --- index.php 4 Feb 2003 21:43:03 -0000 1.29 *************** *** 1,44 **** ! <html> ! <body> ! ! <? ! ! define("C_PHPMP_ROOT", "./"); ! include_once( C_PHPMP_ROOT . 'includes/core.php' ); ! $Core = new Core(); ! ! $Core->init(); ! ! // For testing purposes, we will now print all of the constants we have declared. ! ! print "phpMP Version: " . C_VERSION . '<br>'; ! ! print "<br>"; ! ! print "Site Name: " . C_SITE_NAME . '<br>'; ! print "Site Address: " . C_SITE_ADDR . '<br>'; ! print "Relative Path: " . C_REL_PATH . '<br>'; ! print "Default Template: " . C_DEFAULT_TPL . '<br>'; ! print "Default Language: " . C_DEFAULT_LANG . '<br>'; ! print "The Current Date and Time: " . C_TIME_NOW . '<br>'; ! ! print "<br>"; ! ! print "DB Type: " . DB_TYPE . '<br>'; ! print "DB Host: " . DB_HOST . '<br>'; ! print "DB Name: " . DB_NAME . '<br>'; ! print "DB User: " . DB_USER . '<br>'; ! print "DB Host: " . DB_TABLE_PREFIX . '<br>'; ! ! print "<br>"; ! ! print "Config Table: " . C_CONFIG_TABLE . '<br>'; ! print "Users Table: " . C_USERS_TABLE . '<br>'; ! print "Block Table: " . C_BLOCK_TABLE . '<br>'; ! print "Modules Table: " . C_MODULES_TABLE . '<br>'; ! print "Session Table: " . C_SESSIONS_TABLE . '<br>'; ! ! ?> ! ! </body> ! </html> --- 1 ---- ! <html> <body> <?php define("C_PHPMP_ROOT", "./"); include_once( C_PHPMP_ROOT . 'includes/core.php' ); $Core = new Core(); $Core->init(); // For testing purposes, we will now print all of the constants we have declared. print "phpMP Version: " . C_VERSION . '<br>'; print "<br>"; print "Site Name: " . C_SITE_NAME . '<br>'; print "Site Address: " . C_SITE_ADDR . '<br>'; print "Relative Path: " . C_REL_PATH . '<br>'; print "Default Template: " . C_DEFAULT_TPL . '<br>'; print "Default Language: " . C_DEFAULT_LANG . '<br>'; print "The Current Date and Time: " . C_DATE_NOW . '<br>'; print "Current Logged User: " . U_USERNAME . '<br>'; print "<br>"; print "DB Type: " . DB_TYPE . '<br>'; print "DB Host: " . DB_HOST . '<br>'; print "DB Name: " . DB_NAME . '<br>'; print "DB User: " . DB_USER . '<br>'; print "DB Host: " . DB_TABLE_PREFIX . '<br>'; print "<br>"; print "Config Table: " . C_CONFIG_TABLE . '<br>'; print "Users Table: " . C_USERS_TABLE . '<br>'; print "Block Table: " . C_BLOCK_TABLE . '<br>'; print "Modules Table: " . C_MODULES_TABLE . '<br>'; print "Session Table: " . C_SESSIONS_TABLE . '<br>'; ?> </body> </html> \ No newline at end of file Index: modules.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/modules.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** modules.php 5 Nov 2002 22:11:05 -0000 1.13 --- modules.php 4 Feb 2003 21:43:07 -0000 1.14 *************** *** 1,5 **** ! <? ! ! // Module handler. ! ! ?> \ No newline at end of file --- 1 ---- ! <?php // Module handler. ?> \ No newline at end of file Index: profile.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/profile.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** profile.php 5 Nov 2002 22:11:05 -0000 1.6 --- profile.php 4 Feb 2003 21:43:08 -0000 1.7 *************** *** 1,6 **** ! <? ! ! // Profile handlers. ! // May be combined with other files, like auth.php or something. ! ! ?> \ No newline at end of file --- 1 ---- ! <?php // Profile handlers. // May be combined with other files, like auth.php or something. ?> \ No newline at end of file |
From: Brian R. <hei...@us...> - 2003-02-04 21:43:48
|
Update of /cvsroot/phpmp/phpMP/dba/sql In directory sc8-pr-cvs1:/tmp/cvs-serv30097/dba/sql Modified Files: mysql_default_vals.sql Log Message: Most all files updated. Forgot a small compatibility issue regarding <? and <?php. Also, deleted some lines at the end of files and changed a few config names. Index: mysql_default_vals.sql =================================================================== RCS file: /cvsroot/phpmp/phpMP/dba/sql/mysql_default_vals.sql,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** mysql_default_vals.sql 7 Dec 2002 11:50:40 -0000 1.5 --- mysql_default_vals.sql 4 Feb 2003 21:43:14 -0000 1.6 *************** *** 23,27 **** INSERT INTO phpmp_config VALUES ('system_timezone', '-7'); INSERT INTO phpmp_config VALUES ('version', '0.1a'); ! INSERT INTO phpmp_config VALUES ('use_perms', '0'); # --- 23,27 ---- INSERT INTO phpmp_config VALUES ('system_timezone', '-7'); INSERT INTO phpmp_config VALUES ('version', '0.1a'); ! INSERT INTO phpmp_config VALUES ('use_portal_perms', '0'); # |
From: Brian R. <hei...@us...> - 2003-02-04 21:43:48
|
Update of /cvsroot/phpmp/phpMP/admin In directory sc8-pr-cvs1:/tmp/cvs-serv30097/admin Modified Files: index.php Log Message: Most all files updated. Forgot a small compatibility issue regarding <? and <?php. Also, deleted some lines at the end of files and changed a few config names. Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** index.php 7 Dec 2002 12:01:24 -0000 1.1 --- index.php 4 Feb 2003 21:43:14 -0000 1.2 *************** *** 1,5 **** ! <? ! ! //This file will house the frameset for the phpMP admin interface. ! ! ?> --- 1 ---- ! <?php //This file will house the frameset for the phpMP admin interface. ?> \ No newline at end of file |
From: Brian R. <hei...@us...> - 2003-02-04 02:36:17
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv17926/docs Modified Files: Changelog Log Message: Updated Changelog. Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** Changelog 31 Jan 2003 07:11:57 -0000 1.11 --- Changelog 4 Feb 2003 02:36:14 -0000 1.12 *************** *** 1,5 **** 2003-01-31 [Heimidal] ! * dba/mysql.dba Added escapeString() function. * includes/user.php --- 1,11 ---- + 2003-02-03 [Heimidal] + + * includes/user.php + * includes/auth.php + Fixed a few small problems. + 2003-01-31 [Heimidal] ! * dba/mysql.dba Added escapeString() function. * includes/user.php |
From: Brian R. <hei...@us...> - 2003-02-04 02:34:39
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv17250/includes Modified Files: auth.php user.php Log Message: Fixed a few small bugs. Index: auth.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/auth.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** auth.php 5 Dec 2002 00:33:42 -0000 1.26 --- auth.php 4 Feb 2003 02:34:35 -0000 1.27 *************** *** 1,62 **** ! <? ! ! class Auth // Authenticates user. Only included if user auth is set to be used. ! { ! ! var $curr_user; ! var $SESSID; ! ! function Auth() ! { ! ! global $DB; ! ! // Session ID is contained in the URL. ! if( isset( $_GET['SESSID'] ) ! { ! define("C_SESSID_LOC", 1); ! ! $session_id = $_GET['SESSID']; ! ! } ! // We're using the cookie set by the previous session. ! elseif( isset( $_COOKIE[C_COOKIE_NAME] ) ! { ! ! define("C_SESSID_LOC", 2); ! ! $session_id = $_COOKIE[C_COOKIE_NAME]; ! ! } ! ! $sql = "SELECT * FROM " . C_SESSIONS_TABLE . " WHERE sessid=" . $session_id . " AND expiry<" . time(); ! $result = $DB->query($sql); ! ! $numrows = $DB->numRows($result); ! ! if($numrows >= 1) ! { ! ! $sess_data = $DB->fetchArray($result); ! ! } ! else // The session doesn't exist or has expired. ! { ! ! die("Your session has expired."); ! ! } ! ! if( C_SESSID_LOC == 2 ) // We need to set up the cookie. ! { ! ! ! // Set up cookie/url procedures and such. ! ! } ! ! } ! ! } ! ! ?> \ No newline at end of file --- 1 ---- ! <? class Auth // Authenticates user. Only included if user auth is set to be used. { var $curr_user; var $SESSID; function Auth() { global $DB; // Session ID is contained in the URL. if( isset( $_GET['SESSID'] ) ) { define("C_SESSID_LOC", 1); $session_id = $_GET['SESSID']; } // We're using the cookie set by the previous session. elseif( isset( $_COOKIE[C_COOKIE_NAME] ) ) { define("C_SESSID_LOC", 2); $session_id = $_COOKIE[C_COOKIE_NAME]; } $sql = "SELECT * FROM " . C_SESSIONS_TABLE . " WHERE sessid=" . $session_id . " AND expiry<" . time(); $result = $DB->query($sql); $numrows = $DB->numRows($result); if($numrows >= 1) { $sess_data = $DB->fetchArray($result); } else // The session doesn't exist or has expired. { die("Your session has expired."); } if( C_SESSID_LOC == 2 ) // We need to set up the cookie. { // Set up cookie/url procedures and such. } } } ?> \ No newline at end of file Index: user.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/user.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** user.php 31 Jan 2003 07:01:05 -0000 1.9 --- user.php 4 Feb 2003 02:34:35 -0000 1.10 *************** *** 1,95 **** ! <? ! ! class User // Creates a barrier between the Auth class and the outside world. ! // If user doesn't need to be auth'ed, he isn't. ! { ! ! // Fetches user information/variables from the database. ! // Author: Brian 'Heimidal' Rose ! // Accepts: $user (integer). ! // Returns: boolean. ! function _snapshot( $user ) ! { ! ! global $DB; ! ! $sql = "SELECT * FROM " . C_USERS_TABLE . " WHERE userid=" . $DB->escapeString($user) . "; ! ! $qry = $DB->query($sql); ! ! if( $DB->numRows( $qry ) < 1 ) { ! ! return false; ! ! } ! else { ! $user_array = $DB->fetchArray($qry); ! ! while( list ($key, $val) = each ($user_array) ) ! { ! if( $val != '' ) ! { ! define( "U_" . strtoupper($key), $val ); ! } ! } ! ! return true; ! } ! } ! ! // Session cleanup routine. ! // Author: Brian 'Heimidal' Rose ! // Accepts: none. ! // Returns: none. ! function sessionClean() ! { ! ! global $DB; ! ! $rand = rand(0,10); ! if($rand >= 1) // 1:10 chance of session cleanup. This may later become a setting. ! { ! ! $sql = "DELETE FROM " . C_SESSIONS_TABLE . " WHERE expiry<" . time(); ! $DB->query($sql); ! ! } ! ! } ! ! // User initialization function. Does -EVERYTHING- except explicit session cleanup. ! // Author: Brian 'Heimidal' Rose ! // Accepts: none. ! // Returns: none. ! function User() ! { ! ! $this->sessionClean(); ! ! // Must decide is this is an anonymous user or a registered user. ! ! if( ( C_USE_PERMS == 1 ) || ( P_ADMIN_REQ ) ) // Checks for use_perms setting and makes sure we're not entering the admin area. ! { ! ! // We want to use authentication. ! ! global $Auth; ! ! include_once( C_PHPMP_ROOT . 'includes/auth.php' ); ! $Auth = new Auth(); // Initializes Auth, which also authenticates the user. ! ! $this->_snapshot( $Auth->curr_user ); // Gets snapshot of user info/vars. ! ! } ! else // We're not going to bother auth'ing the user. ! { ! ! $this->_snapshot('1'); // Gets snapshot of anon user info/vars. ! ! } ! ! } ! ! } ! ! ?> --- 1 ---- ! <?php class User // Creates a barrier between the Auth class and the outside world. // If user doesn't need to be auth'ed, he isn't. { // Fetches user information/variables from the database. // Author: Brian 'Heimidal' Rose // Accepts: $user (integer). // Returns: boolean. function _snapshot( $user ) { global $DB; $sql = "SELECT * FROM " . C_USERS_TABLE . " WHERE userid=" . $DB->escapeString($user); $qry = $DB->query($sql); if( $DB->numRows( $qry ) < 1 ) { return false; } else { $user_array = $DB->fetchArray($qry); while( list ($key, $val) = each ($user_array) ) { define( "U_" . strtoupper($key), "$val" ); } return true; } } // Session cleanup routine. // Author: Brian 'Heimidal' Rose // Accepts: none. // Returns: none. function sessionClean() { global $DB; $rand = rand(0,10); if($rand >= 1) // 1:10 chance of session cleanup. This may later become a setting. { $sql = "DELETE FROM " . C_SESSIONS_TABLE . " WHERE expiry<" . time(); $DB->query($sql); } } // User initialization function. Does -EVERYTHING- except explicit session cleanup. // Author: Brian 'Heimidal' Rose // Accepts: none. // Returns: none. function User() { $this->sessionClean(); // Must decide is this is an anonymous user or a registered user. if( ( C_USE_PERMS == 1 ) || ( defined( P_ADMIN_REQ ) ) ) // Checks for use_perms setting and makes sure we're not entering the admin area. { // We want to use authentication. global $Auth; include_once( C_PHPMP_ROOT . 'includes/auth.php' ); $Auth = new Auth(); // Initializes Auth, which also authenticates the user. $this->_snapshot( $Auth->curr_user ); // Gets snapshot of user info/vars. } else // We're not going to bother auth'ing the user. { $this->_snapshot('1'); // Gets snapshot of anon user info/vars. } } } ?> \ No newline at end of file |
From: Brian R. <hei...@us...> - 2003-01-31 07:12:00
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv23196 Modified Files: Changelog Log Message: Update of Changelog. Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** Changelog 14 Jan 2003 22:42:31 -0000 1.10 --- Changelog 31 Jan 2003 07:11:57 -0000 1.11 *************** *** 1,2 **** --- 1,9 ---- + 2003-01-31 [Heimidal] + + * dba/mysql.dba + Added escapeString() function. + * includes/user.php + Added the escapeString() call to usernames. + 2003-01-14 [Heimidal] |
From: Brian R. <hei...@us...> - 2003-01-31 07:07:57
|
Update of /cvsroot/phpmp/phpMP/dba In directory sc8-pr-cvs1:/tmp/cvs-serv21745 Modified Files: mysql.dba Log Message: Added escapeString() function to add slashes if they haven't already been added. Index: mysql.dba =================================================================== RCS file: /cvsroot/phpmp/phpMP/dba/mysql.dba,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -r1.20 -r1.21 *** mysql.dba 1 Dec 2002 03:47:21 -0000 1.20 --- mysql.dba 31 Jan 2003 07:07:54 -0000 1.21 *************** *** 157,160 **** --- 157,172 ---- return @mysql_affected_rows($db); } + + function escapeString($string) { + if( stripslashes($string) == $string ) // Will be true if no slashes were removed. + { + addslashes($string); // We'll add the slashes because they haven't already been added. + return true; + } + else // Slashes have already been added (hopefully only once). + { + return true; + } + } } |
From: Brian R. <hei...@us...> - 2003-01-31 07:01:08
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv19960 Modified Files: user.php Log Message: Updated with new escapeString() function. Index: user.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/user.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** user.php 14 Jan 2003 22:42:31 -0000 1.8 --- user.php 31 Jan 2003 07:01:05 -0000 1.9 *************** *** 14,18 **** global $DB; ! $sql = "SELECT * FROM " . C_USERS_TABLE . " WHERE userid=$user"; $qry = $DB->query($sql); --- 14,18 ---- global $DB; ! $sql = "SELECT * FROM " . C_USERS_TABLE . " WHERE userid=" . $DB->escapeString($user) . "; $qry = $DB->query($sql); |
From: Brian R. <hei...@us...> - 2003-01-14 22:42:34
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv24935/includes Modified Files: user.php Log Message: Check out the Changelog. Index: user.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/user.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** user.php 5 Dec 2002 22:27:47 -0000 1.7 --- user.php 14 Jan 2003 22:42:31 -0000 1.8 *************** *** 5,9 **** { ! function snapshot( $user ) { --- 5,13 ---- { ! // Fetches user information/variables from the database. ! // Author: Brian 'Heimidal' Rose ! // Accepts: $user (integer). ! // Returns: boolean. ! function _snapshot( $user ) { *************** *** 14,29 **** $qry = $DB->query($sql); ! $user_array = $DB->fetchArray($qry); ! while( list ($key, $val) = each ($user_array) ) ! { ! if( $val != '' ) { ! define( "U_" . strtoupper($key), $val ); } ! } ! } ! function sessionClean() { --- 18,45 ---- $qry = $DB->query($sql); ! if( $DB->numRows( $qry ) < 1 ) { ! return false; ! ! } ! else { ! $user_array = $DB->fetchArray($qry); ! ! while( list ($key, $val) = each ($user_array) ) { ! if( $val != '' ) ! { ! define( "U_" . strtoupper($key), $val ); ! } } ! ! return true; ! } } ! ! // Session cleanup routine. ! // Author: Brian 'Heimidal' Rose ! // Accepts: none. ! // Returns: none. function sessionClean() { *************** *** 32,36 **** $rand = rand(0,10); ! if($rand >= 1) { --- 48,52 ---- $rand = rand(0,10); ! if($rand >= 1) // 1:10 chance of session cleanup. This may later become a setting. { *************** *** 42,45 **** --- 58,65 ---- } + // User initialization function. Does -EVERYTHING- except explicit session cleanup. + // Author: Brian 'Heimidal' Rose + // Accepts: none. + // Returns: none. function User() { *************** *** 49,53 **** // Must decide is this is an anonymous user or a registered user. ! if( C_USE_PERMS == 1 ) { --- 69,73 ---- // Must decide is this is an anonymous user or a registered user. ! if( ( C_USE_PERMS == 1 ) || ( P_ADMIN_REQ ) ) // Checks for use_perms setting and makes sure we're not entering the admin area. { *************** *** 57,63 **** include_once( C_PHPMP_ROOT . 'includes/auth.php' ); ! $Auth = new Auth(); ! $this->snapshot( $Auth->curr_user ); } --- 77,83 ---- include_once( C_PHPMP_ROOT . 'includes/auth.php' ); ! $Auth = new Auth(); // Initializes Auth, which also authenticates the user. ! $this->_snapshot( $Auth->curr_user ); // Gets snapshot of user info/vars. } *************** *** 65,69 **** { ! $this->snapshot('1'); } --- 85,89 ---- { ! $this->_snapshot('1'); // Gets snapshot of anon user info/vars. } |
From: Brian R. <hei...@us...> - 2003-01-14 22:42:34
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv24935/docs Modified Files: Changelog Log Message: Check out the Changelog. Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** Changelog 7 Dec 2002 11:51:00 -0000 1.9 --- Changelog 14 Jan 2003 22:42:31 -0000 1.10 *************** *** 1,2 **** --- 1,7 ---- + 2003-01-14 [Heimidal] + + * includes/user.php + Continuing my update to the Authentication system. + 2002-12-07 [Heimidal] |
From: Brian R. <hei...@us...> - 2002-12-07 12:01:28
|
Update of /cvsroot/phpmp/phpMP/admin In directory sc8-pr-cvs1:/tmp/cvs-serv13205/admin Added Files: index.php Log Message: Added the index.php file in admin. I suggest everyone run a 'cvs update -P' just to bring us onto the same page. --- NEW FILE: index.php --- <? //This file will house the frameset for the phpMP admin interface. ?> |
From: Brian R. <hei...@us...> - 2002-12-07 11:51:03
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv11179/docs Modified Files: Changelog Log Message: Updated Changelog. Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** Changelog 7 Dec 2002 11:41:16 -0000 1.8 --- Changelog 7 Dec 2002 11:51:00 -0000 1.9 *************** *** 1,4 **** --- 1,10 ---- 2002-12-07 [Heimidal] + * dba/sql/mysql_default_vals.sql + Removed the date format for the Anon user. + Added a 'T' to the default date format (timezone). + + 2002-12-07 [Heimidal] + * index.php Missed the addition of 'C_' on a config variable. |
From: Brian R. <hei...@us...> - 2002-12-07 11:50:43
|
Update of /cvsroot/phpmp/phpMP/dba/sql In directory sc8-pr-cvs1:/tmp/cvs-serv11068/sql Modified Files: mysql_default_vals.sql Log Message: Read the Changelog. Index: mysql_default_vals.sql =================================================================== RCS file: /cvsroot/phpmp/phpMP/dba/sql/mysql_default_vals.sql,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** mysql_default_vals.sql 5 Dec 2002 22:27:46 -0000 1.4 --- mysql_default_vals.sql 7 Dec 2002 11:50:40 -0000 1.5 *************** *** 19,23 **** INSERT INTO phpmp_config VALUES ('site_name', 'phpMP'); INSERT INTO phpmp_config VALUES ('default_lang', 'english'); ! INSERT INTO phpmp_config VALUES ('default_date_format', 'M j, Y h:ia'); INSERT INTO phpmp_config VALUES ('enable_account_activation', '0'); INSERT INTO phpmp_config VALUES ('system_timezone', '-7'); --- 19,23 ---- INSERT INTO phpmp_config VALUES ('site_name', 'phpMP'); INSERT INTO phpmp_config VALUES ('default_lang', 'english'); ! INSERT INTO phpmp_config VALUES ('default_date_format', 'M j, Y h:ia T'); INSERT INTO phpmp_config VALUES ('enable_account_activation', '0'); INSERT INTO phpmp_config VALUES ('system_timezone', '-7'); *************** *** 29,31 **** # ! INSERT INTO phpmp_users VALUES (1, 'Anonymous', '', 1, '', '', 0, 'M j, Y h:ia', '', ''); --- 29,31 ---- # ! INSERT INTO phpmp_users VALUES (1, 'Anonymous', '', 1, '', '', 0, '', '', ''); |
From: Brian R. <hei...@us...> - 2002-12-07 11:41:18
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv9214/docs Modified Files: Changelog Log Message: Updated Changelog. Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** Changelog 5 Dec 2002 22:27:47 -0000 1.7 --- Changelog 7 Dec 2002 11:41:16 -0000 1.8 *************** *** 1,2 **** --- 1,7 ---- + 2002-12-07 [Heimidal] + + * index.php + Missed the addition of 'C_' on a config variable. + 2002-12-05 [Heimidal] |
From: Brian R. <hei...@us...> - 2002-12-07 11:39:50
|
Update of /cvsroot/phpmp/phpMP In directory sc8-pr-cvs1:/tmp/cvs-serv8790 Modified Files: index.php Log Message: Missed the addition of C_ on a config variable (version in index.php).CVS: ---------------------------------------------------------------------- Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -r1.27 -r1.28 *** index.php 5 Dec 2002 00:33:42 -0000 1.27 --- index.php 7 Dec 2002 11:39:47 -0000 1.28 *************** *** 12,16 **** // For testing purposes, we will now print all of the constants we have declared. ! print "phpMP Version: " . VERSION . '<br>'; print "<br>"; --- 12,16 ---- // For testing purposes, we will now print all of the constants we have declared. ! print "phpMP Version: " . C_VERSION . '<br>'; print "<br>"; |
From: Brian R. <hei...@us...> - 2002-12-05 22:27:50
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv4424/docs Modified Files: Changelog Log Message: Made anonymous user have an id of 1 again. Updated Changelog to reflect this. Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** Changelog 5 Dec 2002 00:32:57 -0000 1.6 --- Changelog 5 Dec 2002 22:27:47 -0000 1.7 *************** *** 1,2 **** --- 1,8 ---- + 2002-12-05 [Heimidal] + + * dba/sql/mysql_default_vals.sql + * includes/user.php + Changed the Anonymous user back to userid=1. + 2002-12-04 [Heimidal] |
From: Brian R. <hei...@us...> - 2002-12-05 22:27:50
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv4424/includes Modified Files: user.php Log Message: Made anonymous user have an id of 1 again. Updated Changelog to reflect this. Index: user.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/user.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** user.php 5 Dec 2002 00:33:42 -0000 1.6 --- user.php 5 Dec 2002 22:27:47 -0000 1.7 *************** *** 65,69 **** { ! $this->snapshot('-1'); } --- 65,69 ---- { ! $this->snapshot('1'); } |
From: Brian R. <hei...@us...> - 2002-12-05 22:27:50
|
Update of /cvsroot/phpmp/phpMP/dba/sql In directory sc8-pr-cvs1:/tmp/cvs-serv4424/dba/sql Modified Files: mysql_default_vals.sql Log Message: Made anonymous user have an id of 1 again. Updated Changelog to reflect this. Index: mysql_default_vals.sql =================================================================== RCS file: /cvsroot/phpmp/phpMP/dba/sql/mysql_default_vals.sql,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** mysql_default_vals.sql 3 Dec 2002 12:35:56 -0000 1.3 --- mysql_default_vals.sql 5 Dec 2002 22:27:46 -0000 1.4 *************** *** 29,31 **** # ! INSERT INTO phpmp_users VALUES (-1, 'Anonymous', '', 1, '', '', 0, 'M j, Y h:ia', '', ''); \ No newline at end of file --- 29,31 ---- # ! INSERT INTO phpmp_users VALUES (1, 'Anonymous', '', 1, '', '', 0, 'M j, Y h:ia', '', ''); |
From: Brian R. <hei...@us...> - 2002-12-05 00:37:28
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv16877/includes Modified Files: constants.php Log Message: Last one. I swear. Still not in the Changelog, either. Index: constants.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/constants.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** constants.php 5 Dec 2002 00:33:42 -0000 1.12 --- constants.php 5 Dec 2002 00:37:25 -0000 1.13 *************** *** 1,5 **** <? ! define("TIME_NOW", date( C_DATE_FORMAT ) ); define("ACTIVATE_DISABLED", 0); --- 1,5 ---- <? ! define("C_TIME_NOW", date( C_DATE_FORMAT ) ); define("ACTIVATE_DISABLED", 0); *************** *** 13,15 **** define("AUTH_LVL_ADMIN", 4); // Administrator ! ?> \ No newline at end of file --- 13,15 ---- define("AUTH_LVL_ADMIN", 4); // Administrator ! ?> |
From: Brian R. <hei...@us...> - 2002-12-05 00:36:44
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv16611/includes Modified Files: language.php Log Message: Grr. Another one. These last two commits don't go in the Changelog. Index: language.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/language.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** language.php 5 Dec 2002 00:33:42 -0000 1.5 --- language.php 5 Dec 2002 00:36:41 -0000 1.6 *************** *** 12,16 **** } else { ! define( "C_LANGUAGE", DEFAULT_LANG ); } --- 12,16 ---- } else { ! define( "C_LANGUAGE", C_DEFAULT_LANG ); } *************** *** 24,26 **** } ! ?> \ No newline at end of file --- 24,26 ---- } ! ?> |
From: Brian R. <hei...@us...> - 2002-12-05 00:35:00
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv16180/includes Modified Files: core.php Log Message: Forgot one small thing about that whole config value thing. Index: core.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/core.php,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -r1.39 -r1.40 *** core.php 5 Dec 2002 00:33:42 -0000 1.39 --- core.php 5 Dec 2002 00:34:56 -0000 1.40 *************** *** 25,29 **** while( $row = $DB->fetchArray( $result ) ) { ! define( strtoupper( $row['config_key'] ), $row['config_value'] ); } --- 25,29 ---- while( $row = $DB->fetchArray( $result ) ) { ! define( strtoupper( 'C_' . $row['config_key'] ), $row['config_value'] ); } |
From: Brian R. <hei...@us...> - 2002-12-05 00:33:45
|
Update of /cvsroot/phpmp/phpMP/languages/french In directory sc8-pr-cvs1:/tmp/cvs-serv15643/languages/french Modified Files: lang_main.php Log Message: Added 'C_' to config constants not pertaining to the DB connection. Call me anal retentive if you want. I don't care. Index: lang_main.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/languages/french/lang_main.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** lang_main.php 5 Dec 2002 00:17:03 -0000 1.4 --- lang_main.php 5 Dec 2002 00:33:42 -0000 1.5 *************** *** 16,20 **** // Note: Always escape single quote characters (') with a backslash (\). // ! 'L_Welcome_to_Site' => 'Bienvenue chez ' . SITE_NAME . '!', 'L_Home' => 'Accueil', 'L_Profile' => 'Profil', --- 16,20 ---- // Note: Always escape single quote characters (') with a backslash (\). // ! 'L_Welcome_to_Site' => 'Bienvenue chez ' . C_SITE_NAME . '!', 'L_Home' => 'Accueil', 'L_Profile' => 'Profil', *************** *** 52,56 **** // Other various parts of the templates. // ! 'L_Powered_by_phpMP' => 'Actionné par phpMP ' . VERSION . ' © 2002 <a href="http://phpmp.sourceforge.net/">phpMP Dev. Group</a>.', 'L_Copyright' => 'Tout le contenu de se site est la propriété du propriétaire respectif. Tous droits réservés.' --- 52,56 ---- // Other various parts of the templates. // ! 'L_Powered_by_phpMP' => 'Actionné par phpMP ' . C_VERSION . ' © 2002 <a href="http://phpmp.sourceforge.net/">phpMP Dev. Group</a>.', 'L_Copyright' => 'Tout le contenu de se site est la propriété du propriétaire respectif. Tous droits réservés.' |
From: Brian R. <hei...@us...> - 2002-12-05 00:33:45
|
Update of /cvsroot/phpmp/phpMP/languages/english In directory sc8-pr-cvs1:/tmp/cvs-serv15643/languages/english Modified Files: lang_main.php Log Message: Added 'C_' to config constants not pertaining to the DB connection. Call me anal retentive if you want. I don't care. Index: lang_main.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/languages/english/lang_main.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** lang_main.php 5 Dec 2002 00:17:01 -0000 1.13 --- lang_main.php 5 Dec 2002 00:33:42 -0000 1.14 *************** *** 16,20 **** // Note: Always escaple singe quote characters (') with a backslash (\). // ! 'L_Welcome_to_Site' => 'Welcome to ' . SITE_NAME . '!', 'L_Home' => 'Home', 'L_Profile' => 'Profile', --- 16,20 ---- // Note: Always escaple singe quote characters (') with a backslash (\). // ! 'L_Welcome_to_Site' => 'Welcome to ' . C_SITE_NAME . '!', 'L_Home' => 'Home', 'L_Profile' => 'Profile', *************** *** 52,56 **** // Other various parts of the templates. // ! 'L_Powered_by_phpMP' => 'powered by phpMP ' . VERSION . ' © 2002 <a href="http://phpmp.sourceforge.net/">phpMP Dev. Group</a>.', 'L_Copyright' => 'All content is property of its respective owner. All rights reserved.' --- 52,56 ---- // Other various parts of the templates. // ! 'L_Powered_by_phpMP' => 'powered by phpMP ' . C_VERSION . ' © 2002 <a href="http://phpmp.sourceforge.net/">phpMP Dev. Group</a>.', 'L_Copyright' => 'All content is property of its respective owner. All rights reserved.' |
From: Brian R. <hei...@us...> - 2002-12-05 00:33:45
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv15643/includes Modified Files: auth.php constants.php core.php functions.php language.php template.php user.php Log Message: Added 'C_' to config constants not pertaining to the DB connection. Call me anal retentive if you want. I don't care. Index: auth.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/auth.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -r1.25 -r1.26 *** auth.php 4 Dec 2002 00:18:52 -0000 1.25 --- auth.php 5 Dec 2002 00:33:42 -0000 1.26 *************** *** 15,19 **** if( isset( $_GET['SESSID'] ) { ! define("SESSID_LOC", 1); $session_id = $_GET['SESSID']; --- 15,19 ---- if( isset( $_GET['SESSID'] ) { ! define("C_SESSID_LOC", 1); $session_id = $_GET['SESSID']; *************** *** 21,34 **** } // We're using the cookie set by the previous session. ! elseif( isset( $_COOKIE[COOKIE_NAME] ) { ! define("SESSID_LOC", 2); ! $session_id = $_COOKIE[COOKIE_NAME]; } ! $sql = "SELECT * FROM " . SESSIONS_TABLE . " WHERE sessid=" . $session_id . " AND expiry<" . time(); $result = $DB->query($sql); --- 21,34 ---- } // We're using the cookie set by the previous session. ! elseif( isset( $_COOKIE[C_COOKIE_NAME] ) { ! define("C_SESSID_LOC", 2); ! $session_id = $_COOKIE[C_COOKIE_NAME]; } ! $sql = "SELECT * FROM " . C_SESSIONS_TABLE . " WHERE sessid=" . $session_id . " AND expiry<" . time(); $result = $DB->query($sql); *************** *** 48,52 **** } ! if( SESSID_LOC == 2 ) // We need to set up the cookie. { --- 48,52 ---- } ! if( C_SESSID_LOC == 2 ) // We need to set up the cookie. { Index: constants.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/constants.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** constants.php 3 Dec 2002 11:17:42 -0000 1.11 --- constants.php 5 Dec 2002 00:33:42 -0000 1.12 *************** *** 1,5 **** <? ! define("TIME_NOW", date( DATE_FORMAT ) ); define("ACTIVATE_DISABLED", 0); --- 1,5 ---- <? ! define("TIME_NOW", date( C_DATE_FORMAT ) ); define("ACTIVATE_DISABLED", 0); Index: core.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/core.php,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 *** core.php 3 Dec 2002 11:17:42 -0000 1.38 --- core.php 5 Dec 2002 00:33:42 -0000 1.39 *************** *** 11,23 **** { ! define("CONFIG_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'config'); ! define("USERS_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'users'); ! define("SESSIONS_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'sessions'); ! define("MODULES_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'modules'); ! define("BLOCK_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'blocks'); global $DB; ! $result = $DB->query( "SELECT * FROM " . CONFIG_TABLE ); // Loop through all config values from DB. --- 11,23 ---- { ! define("C_CONFIG_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'config'); ! define("C_USERS_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'users'); ! define("C_SESSIONS_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'sessions'); ! define("C_MODULES_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'modules'); ! define("C_BLOCK_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'blocks'); global $DB; ! $result = $DB->query( "SELECT * FROM " . C_CONFIG_TABLE ); // Loop through all config values from DB. *************** *** 36,47 **** function init ( $optional_files = array() ) { ! include_once( PHPMP_ROOT . 'config.php' ); ! include_once( PHPMP_ROOT . 'includes/debug.php' ); $Debug = new Debug(); global $DB; ! include_once( PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); $DB = new DB(); $DB->connect(); --- 36,47 ---- function init ( $optional_files = array() ) { ! include_once( C_PHPMP_ROOT . 'config.php' ); ! include_once( C_PHPMP_ROOT . 'includes/debug.php' ); $Debug = new Debug(); global $DB; ! include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); $DB = new DB(); $DB->connect(); *************** *** 49,64 **** $this->_initConfig(); // Grab DB-stored config values. ! include_once(PHPMP_ROOT . 'includes/functions.php'); ! include_once(PHPMP_ROOT . 'includes/user.php'); $User = new User(); // Create an instance of User. ! include_once(PHPMP_ROOT . 'includes/language.php'); $Language = new Language(); createConstants(); ! include_once(PHPMP_ROOT . 'includes/constants.php'); ! include_once(PHPMP_ROOT . 'includes/mpcode.php'); // This while() statement will loop through the --- 49,64 ---- $this->_initConfig(); // Grab DB-stored config values. ! include_once(C_PHPMP_ROOT . 'includes/functions.php'); ! include_once(C_PHPMP_ROOT . 'includes/user.php'); $User = new User(); // Create an instance of User. ! include_once(C_PHPMP_ROOT . 'includes/language.php'); $Language = new Language(); createConstants(); ! include_once(C_PHPMP_ROOT . 'includes/constants.php'); ! include_once(C_PHPMP_ROOT . 'includes/mpcode.php'); // This while() statement will loop through the *************** *** 68,78 **** { ! include_once(PHPMP_ROOT . 'includes/' . $my_file . '.php'); $i++; } ! include_once(PHPMP_ROOT . 'includes/Smarty.class.php'); ! include_once(PHPMP_ROOT . 'includes/template.php'); $Template = new Template(); // Create an instance of Template. --- 68,78 ---- { ! include_once(C_PHPMP_ROOT . 'includes/' . $my_file . '.php'); $i++; } ! include_once(C_PHPMP_ROOT . 'includes/Smarty.class.php'); ! include_once(C_PHPMP_ROOT . 'includes/template.php'); $Template = new Template(); // Create an instance of Template. Index: functions.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/functions.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** functions.php 3 Dec 2002 11:43:47 -0000 1.15 --- functions.php 5 Dec 2002 00:33:42 -0000 1.16 *************** *** 10,18 **** if( defined( "U_DATE_FORMAT" ) ) { ! define( "DATE_FORMAT", U_DATE_FORMAT ); } else { ! define( "DATE_FORMAT", DEFAULT_DATE_FORMAT ); } --- 10,18 ---- if( defined( "U_DATE_FORMAT" ) ) { ! define( "C_DATE_FORMAT", U_DATE_FORMAT ); } else { ! define( "C_DATE_FORMAT", C_DEFAULT_DATE_FORMAT ); } Index: language.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/language.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** language.php 3 Dec 2002 11:17:42 -0000 1.4 --- language.php 5 Dec 2002 00:33:42 -0000 1.5 *************** *** 9,21 **** if( defined("U_LANGUAGE") ) { ! define( "LANGUAGE", U_LANGUAGE ); } else { ! define( "LANGUAGE", DEFAULT_LANG ); } global $Local; ! include_once( PHPMP_ROOT . 'languages/' . LANGUAGE . '/lang_main.php' ); $Local = new Localization(); --- 9,21 ---- if( defined("U_LANGUAGE") ) { ! define( "C_LANGUAGE", U_LANGUAGE ); } else { ! define( "C_LANGUAGE", DEFAULT_LANG ); } global $Local; ! include_once( C_PHPMP_ROOT . 'languages/' . C_LANGUAGE . '/lang_main.php' ); $Local = new Localization(); Index: template.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/template.php,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -r1.23 -r1.24 *** template.php 3 Dec 2002 11:17:42 -0000 1.23 --- template.php 5 Dec 2002 00:33:42 -0000 1.24 *************** *** 17,25 **** $this->assign( array( ! "SITE_ADDR" => SITE_ADDR, ! "SITE_NAME" => SITE_NAME, ! "REL_PATH" => REL_PATH, ! "TIME_NOW" => TIME_NOW, ! "TEMPLATE" => TEMPLATE ) ); --- 17,25 ---- $this->assign( array( ! "C_SITE_ADDR" => SITE_ADDR, ! "C_SITE_NAME" => SITE_NAME, ! "C_REL_PATH" => REL_PATH, ! "C_TIME_NOW" => TIME_NOW, ! "C_TEMPLATE" => TEMPLATE ) ); *************** *** 47,62 **** { ! if( defined( "USR_TPL" ) && ( OVERRIDE_USR_TPL == 0 ) ) { ! define( "TEMPLATE", U_TEMPLATE ); } else { ! define( "TEMPLATE", DEFAULT_TPL ); } // Set up the directories for Smarty. ! $this->template_dir = './templates/' . TEMPLATE; ! $this->compile_dir = './templates/' . TEMPLATE . '/compile'; ! $this->config_dir = './templates/' . TEMPLATE . '/configs'; $this->cache_dir = ''; --- 47,62 ---- { ! if( defined( "U_USR_TPL" ) && ( C_OVERRIDE_USR_TPL == 0 ) ) { ! define( "C_TEMPLATE", U_TEMPLATE ); } else { ! define( "C_TEMPLATE", C_DEFAULT_TPL ); } // Set up the directories for Smarty. ! $this->template_dir = './templates/' . C_TEMPLATE; ! $this->compile_dir = './templates/' . C_TEMPLATE . '/compile'; ! $this->config_dir = './templates/' . C_TEMPLATE . '/configs'; $this->cache_dir = ''; Index: user.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/user.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** user.php 4 Dec 2002 00:18:52 -0000 1.5 --- user.php 5 Dec 2002 00:33:42 -0000 1.6 *************** *** 10,14 **** global $DB; ! $sql = "SELECT * FROM " . USERS_TABLE . " WHERE userid=$user"; $qry = $DB->query($sql); --- 10,14 ---- global $DB; ! $sql = "SELECT * FROM " . C_USERS_TABLE . " WHERE userid=$user"; $qry = $DB->query($sql); *************** *** 35,39 **** { ! $sql = "DELETE FROM " . SESSIONS_TABLE . " WHERE expiry<" . time(); $DB->query($sql); --- 35,39 ---- { ! $sql = "DELETE FROM " . C_SESSIONS_TABLE . " WHERE expiry<" . time(); $DB->query($sql); *************** *** 49,53 **** // Must decide is this is an anonymous user or a registered user. ! if( USE_PERMS == 1 ) { --- 49,53 ---- // Must decide is this is an anonymous user or a registered user. ! if( C_USE_PERMS == 1 ) { *************** *** 56,60 **** global $Auth; ! include_once( PHPMP_ROOT . 'includes/auth.php' ); $Auth = new Auth(); --- 56,60 ---- global $Auth; ! include_once( C_PHPMP_ROOT . 'includes/auth.php' ); $Auth = new Auth(); |
From: Brian R. <hei...@us...> - 2002-12-05 00:33:44
|
Update of /cvsroot/phpmp/phpMP In directory sc8-pr-cvs1:/tmp/cvs-serv15643 Modified Files: index.php Log Message: Added 'C_' to config constants not pertaining to the DB connection. Call me anal retentive if you want. I don't care. Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** index.php 3 Dec 2002 11:51:40 -0000 1.26 --- index.php 5 Dec 2002 00:33:42 -0000 1.27 *************** *** 4,9 **** <? ! define("PHPMP_ROOT", "./"); ! include_once( PHPMP_ROOT . 'includes/core.php' ); $Core = new Core(); --- 4,9 ---- <? ! define("C_PHPMP_ROOT", "./"); ! include_once( C_PHPMP_ROOT . 'includes/core.php' ); $Core = new Core(); *************** *** 16,25 **** print "<br>"; ! print "Site Name: " . SITE_NAME . '<br>'; ! print "Site Address: " . SITE_ADDR . '<br>'; ! print "Relative Path: " . REL_PATH . '<br>'; ! print "Default Template: " . DEFAULT_TPL . '<br>'; ! print "Default Language: " . DEFAULT_LANG . '<br>'; ! print "The Current Date and Time: " . TIME_NOW . '<br>'; print "<br>"; --- 16,25 ---- print "<br>"; ! print "Site Name: " . C_SITE_NAME . '<br>'; ! print "Site Address: " . C_SITE_ADDR . '<br>'; ! print "Relative Path: " . C_REL_PATH . '<br>'; ! print "Default Template: " . C_DEFAULT_TPL . '<br>'; ! print "Default Language: " . C_DEFAULT_LANG . '<br>'; ! print "The Current Date and Time: " . C_TIME_NOW . '<br>'; print "<br>"; *************** *** 33,41 **** print "<br>"; ! print "Config Table: " . CONFIG_TABLE . '<br>'; ! print "Users Table: " . USERS_TABLE . '<br>'; ! print "Block Table: " . BLOCK_TABLE . '<br>'; ! print "Modules Table: " . MODULES_TABLE . '<br>'; ! print "Session Table: " . SESSIONS_TABLE . '<br>'; ?> --- 33,41 ---- print "<br>"; ! print "Config Table: " . C_CONFIG_TABLE . '<br>'; ! print "Users Table: " . C_USERS_TABLE . '<br>'; ! print "Block Table: " . C_BLOCK_TABLE . '<br>'; ! print "Modules Table: " . C_MODULES_TABLE . '<br>'; ! print "Session Table: " . C_SESSIONS_TABLE . '<br>'; ?> |