phpmp-commits Mailing List for phpMyPublications (Page 6)
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-09-14 06:37:58
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv9778/includes Removed Files: admin.php config.init.php constants.php core.php debug.php functions.php index.html language.php mpcode.php mpcode_arrays.php session.php template.php user.php Log Message: This should be fun. --- admin.php DELETED --- --- config.init.php DELETED --- --- constants.php DELETED --- --- core.php DELETED --- --- debug.php DELETED --- --- functions.php DELETED --- --- index.html DELETED --- --- language.php DELETED --- --- mpcode.php DELETED --- --- mpcode_arrays.php DELETED --- --- session.php DELETED --- --- template.php DELETED --- --- user.php DELETED --- |
From: Brian R. <hei...@us...> - 2003-09-14 06:37:58
|
Update of /cvsroot/phpmp/phpMP/modules In directory sc8-pr-cvs1:/tmp/cvs-serv9778/modules Added Files: index.html Log Message: This should be fun. --- NEW FILE: index.html --- |
From: Brian R. <hei...@us...> - 2003-09-14 06:37:58
|
Update of /cvsroot/phpmp/phpMP/includes/dba In directory sc8-pr-cvs1:/tmp/cvs-serv9778/includes/dba Removed Files: index.html mssql.dba mysql.dba Log Message: This should be fun. --- index.html DELETED --- --- mssql.dba DELETED --- --- mysql.dba DELETED --- |
From: Brian R. <hei...@us...> - 2003-09-14 06:37:58
|
Update of /cvsroot/phpmp/phpMP/includes/dba/sql In directory sc8-pr-cvs1:/tmp/cvs-serv9778/includes/dba/sql Removed Files: mysql_default_vals.sql mysql_structure.sql Log Message: This should be fun. --- mysql_default_vals.sql DELETED --- --- mysql_structure.sql DELETED --- |
From: Brian R. <hei...@us...> - 2003-09-14 06:37:58
|
Update of /cvsroot/phpmp/phpMP/templates_cache In directory sc8-pr-cvs1:/tmp/cvs-serv9778/templates_cache Added Files: index.html Log Message: This should be fun. --- NEW FILE: index.html --- |
From: Brian R. <hei...@us...> - 2003-09-14 06:37:56
|
Update of /cvsroot/phpmp/phpMP/core/dba In directory sc8-pr-cvs1:/tmp/cvs-serv9778/core/dba Added Files: index.html mssql.dba mysql.dba Log Message: This should be fun. --- NEW FILE: index.html --- <html> <head> <title>Sorry...</title> </head> <body> This directory is not directly accessible. </body> </html> --- NEW FILE: mssql.dba --- <?php /* * phpMP - The PHP Modular Portal System * Copyright (C) 2002-2003 Brian Rose and the phpMP group * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id: mssql.dba,v 1.1 2003/09/14 06:37:53 heimidal Exp $ * */ class DB { var $ident_link; var $connected; function connect() { if (empty($this->ident_link)) { $connection = @mssql_connect(DB_HOST, DB_USER, DB_PASSWD); if (!$connection) { $this->connected = 0; return 0; } else { $this->ident_link = $connection; return $this->ident_link; } } } function close() { if ($this->ident_link != 0) { @mssql_close($this->ident_link); $this->ident_link = 0; return 1; } else { return 1; } } function query($qry) { if ($this->ident_link == 0) { $db = $this->connect(); } else { $db = $this->ident_link; } if (!$db) { return 0; } else { $result = @mssql_query($qry, $db); return $result; } } function num_rows($qry) { if ($this->ident_link == 0) { $db = $this->connect(); } else { $db = $this->ident_link; } if (!$db) { return 0; } else { $num = @mssql_num_rows($qry); return $num; } } function result($result, $row=0, $field='') { if ($this->ident_link == 0) { $db = $this->connect(); } else { $db = $this->ident_link; } if (!$db) { return 0; } else { $return = @mssql_result($result, $row, $field); return $return; } } function fetch_array($qry) { if ($this->ident_link == 0) { $db = $this->connect(); } else { $db = $this->ident_link; } if (!$db) { return 0; } else { $result = @mssql_fetch_array($qry); return $result; } } function fetch_row($qry) { if ($this->ident_link == 0) { $db = $this->connect(); } else { $db = $this->ident_link; } if (!$db) { return 0; } else { $result = @mssql_fetch_row($qry) return $result; } } function escape_string($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; } } } ?> --- NEW FILE: mysql.dba --- <?php /* * phpMP - The PHP Modular Portal System * Copyright (C) 2002-2003 Brian Rose and the phpMP group * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id: mysql.dba,v 1.1 2003/09/14 06:37:53 heimidal Exp $ * */ class DB { var $ident_link; var $connected; var $query_count; /** * @return int * @desc Connects to a MySQL server. */ function connect() { if ( empty ($this->ident_link) ) { $connection = @mysql_connect(DB_HOST, DB_USER, DB_PASSWD); if ( !$connection ) { $this->connected = 0; return 0; } else { $this->ident_link = $connection; return $this->ident_link; } } else { return $this->ident_link; } } /** * @return int * @desc Closes the connection to a MySQL server. */ function close() { if ( $this->ident_link != 0 ) { @mysql_close($this->ident_link); $this->ident_link = 0; return 1; } else { return 1; } } /** * @return int * @param qry string * @desc Performs a query on the MySQL server. */ function query($qry) { if ( $this->ident_link == 0 ) { $db = $this->connect(); } else { $db = $this->ident_link; } if ( !$db ) { return 0; } else { $result = @mysql_query( $qry, $db ); $this->query_count++; return $result; } } /** * @return int * @param query string * @desc Container for mysql_num_rows(). */ function num_rows($query) { if ( $this->ident_link == 0 ) { $db = $this->connect(); } else { $db = $this->ident_link; } $num = @mysql_num_rows($query); return $num; } /** * @return int * @desc Container for mysql_insert_id(). */ function insert_id() { if($this->ident_link == 0) { $db = $this->connect(); } else { $db = $this->ident_link; } $num = @mysql_insert_id($this->ident_link); return $num; } /** * @return mixed * @param result int * @param row int * @param field string * @desc Container for mysql_result(). */ function result( $result, $row=0, $field='' ) { if($this->ident_link == 0) { $db = $this->connect(); } else { $db = $this->ident_link; } $result = @mysql_result($result, $row, $field); return $result; } /** * @return array * @param query int * @desc Container for mysql_fetch_array(). */ function fetch_array($query) { if($this->ident_link == 0) { $db = $this->connect(); } else { $db = $this->ident_link; } return @mysql_fetch_array($query); } /** * @return array * @param query int * @desc Container for mysql_fetch_assoc(). */ function fetch_assoc($query) { if($this->ident_link == 0) { $db = $this->connect(); } else { $db = $this->ident_link; } return @mysql_fetch_assoc($query); } /** * @return array * @param query int * @desc Container for mysql_fetch_row(). */ function fetch_row($query) { if ( $this->ident_link == 0 ) { $db = $this->connect(); } else { $db = $this->ident_link; } $result = @mysql_fetch_row($query); return $result; } /** * @return int * @desc Container for mysql_affected_rows(). */ function affected_rows() { if($this->ident_link == 0) { $db = $this->connect(); } else { $db = $this->ident_link; } return @mysql_affected_rows($db); } } ?> |
From: Brian R. <hei...@us...> - 2003-09-14 06:37:56
|
Update of /cvsroot/phpmp/phpMP In directory sc8-pr-cvs1:/tmp/cvs-serv9778 Removed Files: modules.php Log Message: This should be fun. --- modules.php DELETED --- |
From: Brian R. <hei...@us...> - 2003-09-14 06:35:13
|
Update of /cvsroot/phpmp/phpMP/templates_cache In directory sc8-pr-cvs1:/tmp/cvs-serv9258/templates_cache Log Message: Directory /cvsroot/phpmp/phpMP/templates_cache added to the repository |
From: Brian R. <hei...@us...> - 2003-09-14 06:29:13
|
Update of /cvsroot/phpmp/phpMP/core/dba/sql In directory sc8-pr-cvs1:/tmp/cvs-serv7996/dba/sql Log Message: Directory /cvsroot/phpmp/phpMP/core/dba/sql added to the repository |
From: Brian R. <hei...@us...> - 2003-09-14 06:28:54
|
Update of /cvsroot/phpmp/phpMP/core/dba In directory sc8-pr-cvs1:/tmp/cvs-serv7878/dba Log Message: Directory /cvsroot/phpmp/phpMP/core/dba added to the repository |
From: Brian R. <hei...@us...> - 2003-09-14 06:28:26
|
Update of /cvsroot/phpmp/phpMP/core In directory sc8-pr-cvs1:/tmp/cvs-serv7771/core Log Message: Directory /cvsroot/phpmp/phpMP/core added to the repository |
From: Brian R. <hei...@us...> - 2003-08-22 15:57:48
|
Update of /cvsroot/phpmp/phpMP/languages/english In directory sc8-pr-cvs1:/tmp/cvs-serv7161/languages/english Modified Files: lang_main.php Log Message: Removed the Localization class as it seemed rather redundant. Index: lang_main.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/languages/english/lang_main.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -r1.24 -r1.25 *** lang_main.php 29 Jun 2003 19:04:19 -0000 1.24 --- lang_main.php 22 Aug 2003 15:57:45 -0000 1.25 *************** *** 2,90 **** /* ! * phpMP - The PHP Modular Portal System ! * Copyright (C) 2002-2003 Brian Rose and the phpMP group ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! * ! * $Id$ ! * ! */ ! ! class Localization ! { ! ! var $lang; ! ! function Localization() ! { ! global $Config; ! ! $this->lang = array( ! ! // ! // General language used throughout site. ! // ! // Note: Always escape single quote characters (') with a backslash (\). ! // ! 'WELCOME_TO' => 'Welcome to ', ! 'HOME' => 'Home', ! 'PROFILE' => 'Profile', ! 'MODULES' => 'Modules', ! 'DOWNLOADS' => 'Downloads', ! 'USERNAME' => 'Username', ! 'USER_CP' => 'User CP', ! 'USER_CONTROL_PANEL' => 'User Control Panel', ! 'E_MAIL' => 'E-mail', ! 'PASSWORD' => 'Password', ! 'CONFIRM' => 'Confirm', ! 'REAL_NAME' => 'Real Name', ! 'LOCATION' => 'Location', ! 'REGISTER' => 'Register', ! 'MAIN_MENU' => 'Main Menu', ! 'USER_SETTINGS' => 'User Settings', ! ! 'ADMINISTRATION AREA' => 'Administration Area', ! 'REGISTER_A_USERNAME' => 'Register a Username', ! ! ! // ! // Below is language used almost specifically for auth. ! // ! 'LOGIN' => 'Login', ! 'LOGOUT' => 'Logout', ! ! 'ACCOUNT_ACTIVATED' => 'Your account has been activated. You may now log in.', ! 'REQUIRED_FIELD' => 'Denotes a Required Field', ! 'REGISTER_FINISHED' => 'Your registration has been processed. Please check your e-mail for a message explaining how to activate your new account.', ! 'FORGOT_PASSWORD' => 'Forgot Your Password?', ! 'NOT_LOGGED_IN' => 'You are not logged in.', ! ! ! // ! // Other various parts of the templates. ! // ! 'POWERED_BY' => 'Powered by phpMP ' . $Config->get('version') . ' © 2003 <a href="http://phpmp.sourceforge.net/">phpMP Dev. Group</a>.', ! 'COPYRIGHT' => 'All content is property of its respective owner. All rights reserved.' ! ! // It is IMPERATIVE that the last array value entered (usually the copyright) ! // does not end in a comma. ! ! ); ! ! } ! ! } ?> --- 2,79 ---- /* ! * phpMP - The PHP Modular Portal System ! * Copyright (C) 2002-2003 Brian Rose and the phpMP group ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! * ! * $Id$ ! * ! */ ! ! global $Config; ! ! $Language->lang = array( ! ! // ! // General language used throughout site. ! // ! // Note: Always escape single quote characters (') with a backslash (\). ! // ! 'WELCOME_TO' => 'Welcome to ', ! 'HOME' => 'Home', ! 'PROFILE' => 'Profile', ! 'MODULES' => 'Modules', ! 'DOWNLOADS' => 'Downloads', ! 'USERNAME' => 'Username', ! 'USER_CP' => 'User CP', ! 'USER_CONTROL_PANEL' => 'User Control Panel', ! 'E_MAIL' => 'E-mail', ! 'PASSWORD' => 'Password', ! 'CONFIRM' => 'Confirm', ! 'REAL_NAME' => 'Real Name', ! 'LOCATION' => 'Location', ! 'REGISTER' => 'Register', ! 'MAIN_MENU' => 'Main Menu', ! 'USER_SETTINGS' => 'User Settings', ! ! 'ADMINISTRATION AREA' => 'Administration Area', ! 'REGISTER_A_USERNAME' => 'Register a Username', ! ! ! // ! // Below is language used almost specifically for auth. ! // ! 'LOGIN' => 'Login', ! 'LOGOUT' => 'Logout', ! ! 'ACCOUNT_ACTIVATED' => 'Your account has been activated. You may now log in.', ! 'REQUIRED_FIELD' => 'Denotes a Required Field', ! 'REGISTER_FINISHED' => 'Your registration has been processed. Please check your e-mail for a message explaining how to activate your new account.', ! 'FORGOT_PASSWORD' => 'Forgot Your Password?', ! 'NOT_LOGGED_IN' => 'You are not logged in.', ! ! ! // ! // Other various parts of the templates. ! // ! 'POWERED_BY' => 'Powered by phpMP ' . $Config->get('version') . ' © 2003 <a href="http://phpmp.sourceforge.net/">phpMP Dev. Group</a>.', ! 'COPYRIGHT' => 'All content is property of its respective owner. All rights reserved.' ! ! // It is IMPERATIVE that the last array value entered (usually the copyright) ! // does not end in a comma. ! ! ); ?> |
From: Brian R. <hei...@us...> - 2003-08-22 15:57:48
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv7161/includes Modified Files: language.php Log Message: Removed the Localization class as it seemed rather redundant. Index: language.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/language.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** language.php 30 Jun 2003 03:43:42 -0000 1.17 --- language.php 22 Aug 2003 15:57:45 -0000 1.18 *************** *** 50,56 **** include_once( $lang_file ); - - $Local = new Localization(); - } --- 50,53 ---- |
From: Brian R. <hei...@us...> - 2003-06-30 23:13:50
|
Update of /cvsroot/phpmp/phpMP/templates/BlueMP In directory sc8-pr-cvs1:/tmp/cvs-serv31961/templates/BlueMP Modified Files: left_column.html Log Message: A few small updates. Index: left_column.html =================================================================== RCS file: /cvsroot/phpmp/phpMP/templates/BlueMP/left_column.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** left_column.html 29 Jun 2003 08:29:24 -0000 1.3 --- left_column.html 30 Jun 2003 23:13:47 -0000 1.4 *************** *** 24,27 **** --- 24,29 ---- <div>{L_USERNAME}: <input type="text" name="login_username" value="" style="width: 100px;" /></div> <div>{L_PASSWORD}: <input type="password" name="login_passwd" value="" style="width: 100px;" /></div> + <div><input type="checkbox" name="autologin" /> Autologin</div> + <div><input type="checkbox" name="invisible_mode" /> Invisible</div> <div><input type="submit" name="login" value="{L_LOGIN}" /></div> <input name="do_login" type="hidden" id="do_login" value="1" /> |
From: Brian R. <hei...@us...> - 2003-06-30 23:13:50
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv31961/includes Modified Files: core.php session.php Log Message: A few small updates. Index: core.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/core.php,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -r1.64 -r1.65 *** core.php 30 Jun 2003 04:04:02 -0000 1.64 --- core.php 30 Jun 2003 23:13:47 -0000 1.65 *************** *** 66,81 **** if (!empty($_POST)) { $_POST = $this->strip_magic_quotes($_POST); } if (!empty($_COOKIE)) { $_COOKIE = $this->strip_magic_quotes($_COOKIE); } - } - - // This code *should* be changed later. - if( !defined("C_PHPMP_ROOT") ) - { - define( 'C_PHPMP_ROOT', './' ); } ! //error_reporting(E_ALL); ! error_reporting(E_ERROR | E_WARNING | E_PARSE); ! include_once( C_PHPMP_ROOT . 'config.php' ); // Globalize all major class-containing variables. --- 66,75 ---- if (!empty($_POST)) { $_POST = $this->strip_magic_quotes($_POST); } if (!empty($_COOKIE)) { $_COOKIE = $this->strip_magic_quotes($_COOKIE); } } ! error_reporting(E_ALL); ! //error_reporting(E_ERROR | E_WARNING | E_PARSE); ! $blah = include_once( C_PHPMP_ROOT . 'config.php' ); // Globalize all major class-containing variables. Index: session.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/session.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** session.php 30 Jun 2003 03:43:42 -0000 1.16 --- session.php 30 Jun 2003 23:13:47 -0000 1.17 *************** *** 91,95 **** // We are logging in. Set up variables. ! $username = $_POST['login_username']; $passwd_enc = md5($_POST['login_passwd']); $auto_login_set = $_POST['autologin']; --- 91,95 ---- // We are logging in. Set up variables. ! $username = addslashes($_POST['login_username']); $passwd_enc = md5($_POST['login_passwd']); $auto_login_set = $_POST['autologin']; *************** *** 97,102 **** $sql = "SELECT * FROM " . DB_USERS_TABLE . " ! WHERE user_name='" . addslashes($username) . "' ! AND user_passwd='" . $passwd_enc . "'"; $result = $DB->query($sql); --- 97,102 ---- $sql = "SELECT * FROM " . DB_USERS_TABLE . " ! WHERE user_name='" . $username . "' ! AND user_passwd='" . $passwd_enc . "'"; $result = $DB->query($sql); *************** *** 133,137 **** global $User, $DB, $Config, $SID; ! if( (isset($_POST['do_login'])) && ($_POST['do_login'] == true) ) { $this->login(); --- 133,137 ---- global $User, $DB, $Config, $SID; ! if( isset($_POST['do_login']) && ($_POST['do_login'] == true) ) { $this->login(); |
From: Brian R. <hei...@us...> - 2003-06-30 23:13:50
|
Update of /cvsroot/phpmp/phpMP In directory sc8-pr-cvs1:/tmp/cvs-serv31961 Modified Files: index.php Log Message: A few small updates. Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -r1.47 -r1.48 *** index.php 29 Jun 2003 19:38:20 -0000 1.47 --- index.php 30 Jun 2003 23:13:47 -0000 1.48 *************** *** 23,27 **** */ ! define("C_PHPMP_ROOT", "./"); include_once( C_PHPMP_ROOT . 'includes/core.php' ); $Core = new Core(); --- 23,27 ---- */ ! define('C_PHPMP_ROOT', './'); include_once( C_PHPMP_ROOT . 'includes/core.php' ); $Core = new Core(); |
From: Gordon P. H. <gph...@us...> - 2003-06-30 07:26:34
|
Update of /cvsroot/phpmp/phpMP/admin In directory sc8-pr-cvs1:/tmp/cvs-serv8370/admin Modified Files: main.php Log Message: Best way to restore a backup... AFAIK. - GPHemsley Index: main.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/main.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 |
From: Brian R. <hei...@us...> - 2003-06-30 04:05:40
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv18022/includes Modified Files: constants.php Log Message: Double quotes magically become... uh, single quotes. Index: constants.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/constants.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -r1.22 -r1.23 *** constants.php 29 Jun 2003 08:19:55 -0000 1.22 --- constants.php 30 Jun 2003 04:05:37 -0000 1.23 *************** *** 23,76 **** */ ! define("ACTIVATE_DISABLED", 0); ! define("ACTIVATE_USER", 1); ! define("ACTIVATE_ADMIN", 2); ! define("ANONYMOUS", 1); ! define("AUTH_LVL_GUEST", 0); // Guest. ! define("AUTH_LVL_MEM", 1); // Standard Member ! define("AUTH_LVL_CONTRIB", 2); // Contributor ! define("AUTH_LVL_MOD", 3); // Moderator ! define("AUTH_LVL_ADMIN", 4); // Administrator ! define("SESS_LOC_COOKIE", 1); //Sessions stored in cookie. ! define("SESS_LOC_URL", 2); //Sessions stored in URL. // Timezones according to Windows. Probably wrong, but hey.. ! define("GMT_MINUS_12", -12); // International Date Line West. ! define("GMT_MINUS_11", -11); // Midway Island, Simoa. ! define("GMT_MINUS_10", -10); // Hawaii. ! define("GMT_MINUS_9", -9); // Alaska. ! define("GMT_MINUS_8", -8); // Pacific Time. ! define("GMT_MINUS_7", -7); // Arizona, Mountain Time. ! define("GMT_MINUS_6", -6); // Central Time. ! define("GMT_MINUS_5", -5); // Eastern Time. ! define("GMT_MINUS_4", -4); // Atlantic Time. ! define("GMT_MINUS_3_30", -3.5); // Newfoundland. ! define("GMT_MINUS_3", -3); // Greenland. ! define("GMT_MINUS_2", -2); // Mid-Atlantic. ! define("GMT_MINUS_1", -1); // Cape Verda Is. ! define("GMT", 0); // Greenwich Mean Time. ! define("GMT_PLUS_1", 1); // Paris. ! define("GMT_PLUS_2", 2); // Jerusalem. ! define("GMT_PLUS_3", 3); // Moscow. ! define("GMT_PLUS_4", 4); // Abu Dhabi. ! define("GMT_PLUS_4_30", 4.5); // Kabul. ! define("GMT_PLUS_5", 5); // Karachi. ! define("GMT_PLUS_5_30", 5.5); // New Delhi. ! define("GMT_PLUS_6", 6); // Almaty. ! define("GMT_PLUS_6_30", 6.5); // Rangoon. ! define("GMT_PLUS_7", 7); // Bangkok. ! define("GMT_PLUS_8", 8); // Beijing. ! define("GMT_PLUS_9", 9); // Tokyo. ! define("GMT_PLUS_19_30", 9.5); // Adelaide. ! define("GMT_PLUS_10", 10); // Brisbane. ! define("GMT_PLUS_11", 11); // Solomon Is. ! define("GMT_PLUS_12", 12); // Auckland. ! define("GMT_PLUS_13", 13); // Nuku'alofa. ! define("DEBUG_ON", 1); ! //define("DEBUG_ON", 0); ?> --- 23,76 ---- */ ! define('ACTIVATE_DISABLED', 0); ! define('ACTIVATE_USER', 1); ! define('ACTIVATE_ADMIN', 2); ! define('ANONYMOUS', 1); ! define('AUTH_LVL_GUEST', 0); // Guest. ! define('AUTH_LVL_MEM', 1); // Standard Member ! define('AUTH_LVL_CONTRIB', 2); // Contributor ! define('AUTH_LVL_MOD', 3); // Moderator ! define('AUTH_LVL_ADMIN', 4); // Administrator ! define('SESS_LOC_COOKIE', 1); //Sessions stored in cookie. ! define('SESS_LOC_URL', 2); //Sessions stored in URL. // Timezones according to Windows. Probably wrong, but hey.. ! define('GMT_MINUS_12', -12); // International Date Line West. ! define('GMT_MINUS_11', -11); // Midway Island, Simoa. ! define('GMT_MINUS_10', -10); // Hawaii. ! define('GMT_MINUS_9', -9); // Alaska. ! define('GMT_MINUS_8', -8); // Pacific Time. ! define('GMT_MINUS_7', -7); // Arizona, Mountain Time. ! define('GMT_MINUS_6', -6); // Central Time. ! define('GMT_MINUS_5', -5); // Eastern Time. ! define('GMT_MINUS_4', -4); // Atlantic Time. ! define('GMT_MINUS_3_30', -3.5); // Newfoundland. ! define('GMT_MINUS_3', -3); // Greenland. ! define('GMT_MINUS_2', -2); // Mid-Atlantic. ! define('GMT_MINUS_1', -1); // Cape Verda Is. ! define('GMT', 0); // Greenwich Mean Time. ! define('GMT_PLUS_1', 1); // Paris. ! define('GMT_PLUS_2', 2); // Jerusalem. ! define('GMT_PLUS_3', 3); // Moscow. ! define('GMT_PLUS_4', 4); // Abu Dhabi. ! define('GMT_PLUS_4_30', 4.5); // Kabul. ! define('GMT_PLUS_5', 5); // Karachi. ! define('GMT_PLUS_5_30', 5.5); // New Delhi. ! define('GMT_PLUS_6', 6); // Almaty. ! define('GMT_PLUS_6_30', 6.5); // Rangoon. ! define('GMT_PLUS_7', 7); // Bangkok. ! define('GMT_PLUS_8', 8); // Beijing. ! define('GMT_PLUS_9', 9); // Tokyo. ! define('GMT_PLUS_19_30', 9.5); // Adelaide. ! define('GMT_PLUS_10', 10); // Brisbane. ! define('GMT_PLUS_11', 11); // Solomon Is. ! define('GMT_PLUS_12', 12); // Auckland. ! define('GMT_PLUS_13', 13); // Nuku'alofa. ! define('DEBUG_ON', 1); ! //define('DEBUG_ON', 0); ?> |
From: Brian R. <hei...@us...> - 2003-06-30 04:04:05
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv17876/includes Modified Files: core.php Log Message: Double quotes magically become... uh, single quotes. Index: core.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/core.php,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -r1.63 -r1.64 *** core.php 30 Jun 2003 03:43:42 -0000 1.63 --- core.php 30 Jun 2003 04:04:02 -0000 1.64 *************** *** 89,98 **** $DB->connect(); ! define("DB_CONFIG_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'config'); ! define("DB_USERS_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'users'); ! define("DB_SESSIONS_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'sessions'); ! define("DB_MODULES_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'modules'); ! define("DB_BLOCK_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'blocks'); ! define("DB_TEMPLATE_VARS_TABLE", DB_NAME . '.' . DB_TABLE_PREFIX . 'template_vars'); include_once(C_PHPMP_ROOT . 'includes/config.init.php'); --- 89,98 ---- $DB->connect(); ! define('DB_CONFIG_TABLE', DB_NAME . '.' . DB_TABLE_PREFIX . 'config'); ! define('DB_USERS_TABLE', DB_NAME . '.' . DB_TABLE_PREFIX . 'users'); ! define('DB_SESSIONS_TABLE', DB_NAME . '.' . DB_TABLE_PREFIX . 'sessions'); ! define('DB_MODULES_TABLE', DB_NAME . '.' . DB_TABLE_PREFIX . 'modules'); ! define('DB_BLOCK_TABLE', DB_NAME . '.' . DB_TABLE_PREFIX . 'blocks'); ! define('DB_TEMPLATE_VARS_TABLE', DB_NAME . '.' . DB_TABLE_PREFIX . 'template_vars'); include_once(C_PHPMP_ROOT . 'includes/config.init.php'); |
From: Gordon P. H. <gph...@us...> - 2003-06-30 03:56:28
|
Update of /cvsroot/phpmp/phpMP/cache/templates/BlueMP In directory sc8-pr-cvs1:/tmp/cvs-serv16742/BlueMP Log Message: Directory /cvsroot/phpmp/phpMP/cache/templates/BlueMP added to the repository |
From: Brian R. <hei...@us...> - 2003-06-30 03:43:45
|
Update of /cvsroot/phpmp/phpMP/includes/dba In directory sc8-pr-cvs1:/tmp/cvs-serv15256/includes/dba Modified Files: mysql.dba Log Message: All code recommented to specification. Index: mysql.dba =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/dba/mysql.dba,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** mysql.dba 30 Jun 2003 01:44:07 -0000 1.1 --- mysql.dba 30 Jun 2003 03:43:42 -0000 1.2 *************** *** 30,34 **** var $query_count; ! function connect () { if ( empty ($this->ident_link) ) --- 30,38 ---- var $query_count; ! /** ! * @return int ! * @desc Connects to a MySQL server. ! */ ! function connect() { if ( empty ($this->ident_link) ) *************** *** 55,59 **** } ! function close () { if ( $this->ident_link != 0 ) --- 59,67 ---- } ! /** ! * @return int ! * @desc Closes the connection to a MySQL server. ! */ ! function close() { if ( $this->ident_link != 0 ) *************** *** 70,74 **** } ! function query ( $qry ) { if ( $this->ident_link == 0 ) --- 78,87 ---- } ! /** ! * @return int ! * @param qry string ! * @desc Performs a query on the MySQL server. ! */ ! function query($qry) { if ( $this->ident_link == 0 ) *************** *** 93,97 **** } ! function num_rows ($query) { if ( $this->ident_link == 0 ) --- 106,115 ---- } ! /** ! * @return int ! * @param query string ! * @desc Container for mysql_num_rows(). ! */ ! function num_rows($query) { if ( $this->ident_link == 0 ) *************** *** 109,112 **** --- 127,134 ---- } + /** + * @return int + * @desc Container for mysql_insert_id(). + */ function insert_id() { *************** *** 124,128 **** } ! function result( $result, $row=0, $field='' ) { --- 146,157 ---- } ! ! /** ! * @return mixed ! * @param result int ! * @param row int ! * @param field string ! * @desc Container for mysql_result(). ! */ function result( $result, $row=0, $field='' ) { *************** *** 139,143 **** return $result; } ! function fetch_array($query) { --- 168,177 ---- return $result; } ! ! /** ! * @return array ! * @param query int ! * @desc Container for mysql_fetch_array(). ! */ function fetch_array($query) { *************** *** 154,157 **** --- 188,196 ---- } + /** + * @return array + * @param query int + * @desc Container for mysql_fetch_assoc(). + */ function fetch_assoc($query) { *************** *** 168,171 **** --- 207,215 ---- } + /** + * @return array + * @param query int + * @desc Container for mysql_fetch_row(). + */ function fetch_row($query) { *************** *** 183,186 **** --- 227,234 ---- } + /** + * @return int + * @desc Container for mysql_affected_rows(). + */ function affected_rows() { if($this->ident_link == 0) |
From: Brian R. <hei...@us...> - 2003-06-30 03:43:45
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv15256/includes Modified Files: config.init.php core.php debug.php functions.php language.php mpcode.php mpcode_arrays.php session.php template.php user.php Log Message: All code recommented to specification. Index: config.init.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/config.init.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** config.init.php 29 Jun 2003 18:33:21 -0000 1.8 --- config.init.php 30 Jun 2003 03:43:42 -0000 1.9 *************** *** 27,30 **** --- 27,34 ---- var $_cfgvars; + /** + * @return void + * @desc Fetches Config vars. + */ function Config() { Index: core.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/core.php,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -r1.62 -r1.63 *** core.php 30 Jun 2003 01:44:07 -0000 1.62 --- core.php 30 Jun 2003 03:43:42 -0000 1.63 *************** *** 26,29 **** --- 26,35 ---- { + /** + * @return arr array + * @param arr array + * @desc Strips magic quotes from the + * superglobal arrays. + */ function strip_magic_quotes($arr) { *************** *** 43,50 **** } ! // Initiates all core components. ! // Author: Brian 'Heimidal' Rose ! // Accepts: $optional_files (string of needed files separated by commas). ! // Returns: none. function Core( $optional_files = array() ) { --- 49,57 ---- } ! /** ! * @return void ! * @param optional_files array ! * @desc Initiates all core components. ! */ function Core( $optional_files = array() ) { Index: debug.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/debug.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** debug.php 29 Jun 2003 18:33:21 -0000 1.9 --- debug.php 30 Jun 2003 03:43:42 -0000 1.10 *************** *** 26,36 **** { function Debug() { @set_error_handler( array(&$this, 'msg_display') ); } ! ! // Very similar to that of phpBB2, considering this is my first forray into error management. ! // Hopefully, once I figure all of these different error codes and such out, I'll make it fit in more with the project. function msg_display($errno, $msg_text, $errfile, $errline) { --- 26,47 ---- { + /** + * @return void + * @desc Sets the error handler. + */ function Debug() { @set_error_handler( array(&$this, 'msg_display') ); } ! ! /** ! * @return void ! * @param errno int ! * @param msg_text string ! * @param errfile string ! * @param errline int ! * @desc Error/message handler. Taken from phpBB2. ! I still don't quite understand it. :P ! */ function msg_display($errno, $msg_text, $errfile, $errline) { Index: functions.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/functions.php,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -r1.32 -r1.33 *** functions.php 29 Jun 2003 18:33:21 -0000 1.32 --- functions.php 30 Jun 2003 03:43:42 -0000 1.33 *************** *** 23,30 **** */ ! // Defines constants whose contents may be questionable. ! // Author: Brian 'Heimidal' Rose ! // Accepts: none. ! // Returns: none. function create_vars() { --- 23,30 ---- */ ! /** ! * @return void ! * @desc Creates vars with no other place. Temporary. ! */ function create_vars() { Index: language.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/language.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** language.php 29 Jun 2003 19:38:20 -0000 1.16 --- language.php 30 Jun 2003 03:43:42 -0000 1.17 *************** *** 26,29 **** --- 26,34 ---- { + /** + * @return void + * @desc Discovers the user's language and + creates the corresponding Local object. + */ function Language() { Index: mpcode.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/mpcode.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** mpcode.php 29 Jun 2003 21:32:25 -0000 1.10 --- mpcode.php 30 Jun 2003 03:43:42 -0000 1.11 *************** *** 27,30 **** --- 27,32 ---- // Work here done by anthony. If you dont like it feel free to change it. + // Deprecated. + class mpcode { Index: mpcode_arrays.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/mpcode_arrays.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** mpcode_arrays.php 29 Jun 2003 08:19:55 -0000 1.4 --- mpcode_arrays.php 30 Jun 2003 03:43:42 -0000 1.5 *************** *** 24,27 **** --- 24,28 ---- // Contains the mpcode and corresponding html arrays + // Deprecated. $mpcode = array( Index: session.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/session.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** session.php 29 Jun 2003 18:33:22 -0000 1.15 --- session.php 30 Jun 2003 03:43:42 -0000 1.16 *************** *** 22,26 **** * */ ! class Session // Creates and maintains sessions for all users. { --- 22,26 ---- * */ ! class Session // Creates and maintains sessions for all users. { *************** *** 36,40 **** var $page; ! // Starts the session. Must be called. function start() { --- 36,43 ---- var $page; ! /** ! * @return void ! * @desc Starts a session. Must be called implicitly. ! */ function start() { *************** *** 48,52 **** } ! // Destroys sessions. Used for logging out and such. function destroy() { --- 51,58 ---- } ! /** ! * @return void ! * @desc Destroys sessions. Used for logging out. ! */ function destroy() { *************** *** 74,77 **** --- 80,87 ---- } + /** + * @return void + * @desc Logs a user in. + */ function login() { *************** *** 115,119 **** } ! // Saves the session data to the database. function run() { --- 125,132 ---- } ! /** ! * @return void ! * @desc Saves the session data to the database. ! */ function run() { *************** *** 210,213 **** --- 223,231 ---- } + /** + * @return void + * @param clean_all boolean + * @desc Cleans out old session data. + */ function clean($clean_all = false) { *************** *** 230,233 **** --- 248,255 ---- } + /** + * @return void + * @desc Grabs session data for the user. + */ function get_session_data() { Index: template.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/template.php,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -r1.44 -r1.45 *** template.php 29 Jun 2003 19:38:20 -0000 1.44 --- template.php 30 Jun 2003 03:43:42 -0000 1.45 *************** *** 29,32 **** --- 29,33 ---- under the GPL, you must abide by said license. */ + // Deprecated in favor of the (soon-to-be-started) Fission Template System. class Template Index: user.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/user.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** user.php 29 Jun 2003 18:33:22 -0000 1.26 --- user.php 30 Jun 2003 03:43:42 -0000 1.27 *************** *** 28,31 **** --- 28,37 ---- var $_data; + /** + * @return boolean + * @param userkey mixed(string,array) + * @param userval string optional + * @desc Set a variable in userdata. + */ function set($userkey, $userval = false) { *************** *** 52,57 **** /** ! * @return unknown ! * @param userkey unknown * @desc Fetches user variables from the defined array. */ --- 58,63 ---- /** ! * @return string ! * @param userkey string * @desc Fetches user variables from the defined array. */ *************** *** 68,72 **** } ! // Taken from phpBB2. Fetches the IP in a hex form. function get_ip_encoded() { --- 74,82 ---- } ! /** ! * @return void ! * @desc Fetches the user's IP in hex-encoded form. ! * Taken from phpBB2. ! */ function get_ip_encoded() { *************** *** 83,87 **** } ! // Taken from phpBB2. Decodes a hexed IP. function decode_ip($encoded_ip) { --- 93,102 ---- } ! /** ! * @return string ! * @param encoded_ip string ! * @desc Decodes a hexed IP. ! * Taken from phpBB2. ! */ function decode_ip($encoded_ip) { |
From: Gordon P. H. <gph...@us...> - 2003-06-30 02:48:36
|
Update of /cvsroot/phpmp/phpMP/admin In directory sc8-pr-cvs1:/tmp/cvs-serv8797/admin Modified Files: main.php Log Message: Another file that stays M'd... - GPHemsley Index: main.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/main.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 |
From: Gordon P. H. <gph...@us...> - 2003-06-30 02:48:02
|
Update of /cvsroot/phpmp/phpMP/languages/french In directory sc8-pr-cvs1:/tmp/cvs-serv8659/languages/french Modified Files: lang_main.php Log Message: Trying to get this stupid file to not be M'd.... - GPHemsley Index: lang_main.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/languages/french/lang_main.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** lang_main.php 30 Jun 2003 00:46:12 -0000 1.10 --- lang_main.php 30 Jun 2003 02:47:51 -0000 1.11 *************** *** 39,43 **** // Note: Always escape single quote characters (') with a backslash (\). // ! 'WELCOME_TO' => 'Bienvenue chez', 'HOME' => 'Accueil', 'PROFILE' => 'Profil', --- 39,43 ---- // Note: Always escape single quote characters (') with a backslash (\). // ! 'WELCOME_TO' => 'Bienvenue chez ', 'HOME' => 'Accueil', 'PROFILE' => 'Profil', |
From: Brian R. <hei...@us...> - 2003-06-30 02:44:00
|
Update of /cvsroot/phpmp/phpMP/admin In directory sc8-pr-cvs1:/tmp/cvs-serv8207 Removed Files: index.html Log Message: Stupid me put that there. --- index.html DELETED --- |