phpmp-commits Mailing List for phpMyPublications (Page 12)
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: Anthony W. <ant...@us...> - 2003-02-09 21:59:00
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv25391/docs Modified Files: Changelog Log Message: Updated Changelog (fixed conflict) Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -r1.21 -r1.22 *** Changelog 9 Feb 2003 21:28:23 -0000 1.21 --- Changelog 9 Feb 2003 21:58:57 -0000 1.22 *************** *** 1,2 **** --- 1,11 ---- + 2003-02-09 [AnthonyWhite] + * includes/admin.php + Added timezone dropdown + Doesnt select timezone, it is displayed beside box + + 2003-02-09 [AnthonyWhite] + * includes/admin.php + Minor changes with site config form + 2003-02-09 [Heimidal] * includes/constants.php |
From: Anthony W. <ant...@us...> - 2003-02-09 21:53:54
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv23619/includes Modified Files: admin.php Log Message: Added timezone dropdown (instead of a textbox) Index: admin.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/admin.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** admin.php 9 Feb 2003 20:48:57 -0000 1.3 --- admin.php 9 Feb 2003 21:53:51 -0000 1.4 *************** *** 46,50 **** print "<option value=\"2\" " . $sel2 . ">Admin Activation"; print "</select><br>"; ! print "System Timezone: <input type=\"text\" name=\"systime\" value=\"" . C_SYSTEM_TIMEZONE . "\"><br>"; if (C_USE_PORTAL_PERMS == 1) { $checked = "CHECKED"; } else { $checked = ""; } print "<input type=\"checkbox\" name=\"portperms\" value=\"1\" " . $checked . "> Use Portal Permissions?<br>"; --- 46,84 ---- print "<option value=\"2\" " . $sel2 . ">Admin Activation"; print "</select><br>"; ! print "System Timezone: "; ! print "<select name=\"systime\">"; ! print "<option value=\"" . GMT_MINUS_12 . "\">GMT -12 (International Dateline West)"; ! print "<option value=\"" . GMT_MINUS_11 . "\">GMT -11 (Midway Island, Simoa)"; ! print "<option value=\"" . GMT_MINUS_10 . "\">GMT -10 (Hawaii)"; ! print "<option value=\"" . GMT_MINUS_9 . "\">GMT -9 (Alaska)"; ! print "<option value=\"" . GMT_MINUS_8 . "\">GMT -8 (Pacific Time)"; ! print "<option value=\"" . GMT_MINUS_7 . "\">GMT -7 (Arizona, Mountain Time)"; ! print "<option value=\"" . GMT_MINUS_6 . "\">GMT -6 (Central Time)"; ! print "<option value=\"" . GMT_MINUS_5 . "\">GMT -5 (Eastern Time)"; ! print "<option value=\"" . GMT_MINUS_4 . "\">GMT -4 (Atlantic Time)"; ! print "<option value=\"" . GMT_MINUS_3_30 . "\">GMT -3.5 (Newfoundland)"; ! print "<option value=\"" . GMT_MINUS_3 . "\">GMT -3 (Greenland)"; ! print "<option value=\"" . GMT_MINUS_2 . "\">GMT -2 (Mid-Atlantic)"; ! print "<option value=\"" . GMT_MINUS_1 . "\">GMT -1 (Cape Verda Islands)"; ! print "<option value=\"" . GMT . "\">GMT (Greenwich Mean Time)"; ! print "<option value=\"" . GMT_PLUS_1 . "\">GMT +1 (Paris)"; ! print "<option value=\"" . GMT_PLUS_2 . "\">GMT +2 (Jerusalem)"; ! print "<option value=\"" . GMT_PLUS_3 . "\">GMT +3 (Moscow)"; ! print "<option value=\"" . GMT_PLUS_4 . "\">GMT +4 (Abu Dhabi)"; ! print "<option value=\"" . GMT_PLUS_4_30 . "\">GMT +4.5 (Kabul)"; ! print "<option value=\"" . GMT_PLUS_5 . "\">GMT +5 (Karachi)"; ! print "<option value=\"" . GMT_PLUS_5_30 . "\">GMT +5.5 (New Delhi)"; ! print "<option value=\"" . GMT_PLUS_5_45 . "\">GMT +5.75 (Kathmandu)"; ! print "<option value=\"" . GMT_PLUS_6 . "\">GMT +6 (Almaty)"; ! print "<option value=\"" . GMT_PLUS_6_30 . "\">GMT +6.5 (Rangoon)"; ! print "<option value=\"" . GMT_PLUS_7 . "\">GMT +7 (Bangkok)"; ! print "<option value=\"" . GMT_PLUS_8 . "\">GMT +8 (Beijing)"; ! print "<option value=\"" . GMT_PLUS_9 . "\">GMT +9 (Tokyo)"; ! print "<option value=\"" . GMT_PLUS_9_30 . "\">GMT +9.5 (Adelaide)"; ! print "<option value=\"" . GMT_PLUS_10 . "\">GMT +10 (Brisbane)"; ! print "<option value=\"" . GMT_PLUS_11 . "\">GMT +11 (Solomon Islands)"; ! print "<option value=\"" . GMT_PLUS_12 . "\">GMT +12 (Auckland)"; ! print "<option value=\"" . GMT_PLUS_13 . "\">GMT +13 (Nuku'alofa)"; ! print "</select> (Current: " . C_SYSTEM_TIMEZONE . ")<br>"; if (C_USE_PORTAL_PERMS == 1) { $checked = "CHECKED"; } else { $checked = ""; } print "<input type=\"checkbox\" name=\"portperms\" value=\"1\" " . $checked . "> Use Portal Permissions?<br>"; *************** *** 54,58 **** // Parses the general management form // Author: Anthony White ! // Accepts: Form values from the general form // Returns: none. function parse_site($sname, $ovrtpl, $deftpl, $deflang, $defdate, $accact, $systime, $portperms) --- 88,92 ---- // Parses the general management form // Author: Anthony White ! // Accepts: Form values from the site config form // Returns: none. function parse_site($sname, $ovrtpl, $deftpl, $deflang, $defdate, $accact, $systime, $portperms) |
From: Brian R. <hei...@us...> - 2003-02-09 21:28:29
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv14009/docs Modified Files: Changelog Log Message: Updated Changelog. Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -r1.20 -r1.21 *** Changelog 9 Feb 2003 20:57:40 -0000 1.20 --- Changelog 9 Feb 2003 21:28:23 -0000 1.21 *************** *** 1,23 **** ! 2003-02-09 [AnthonyWhite] ! * includes/admin.php ! Minor changes with site config form ! 2003-02-09 [AnthonyWhite] ! * admin/main.php ! Changed the panel handling once again ! Not a big change - just got rid of if statement ! * admin/nav.php ! Nothing special, just changed a link's text ! * includes/admin.php ! Handles site configuration fully now ! outputs a form and handles it (for site config) ! Site config functions are basis for others now ! 2003-02-09 [AnthonyWhite] ! * admin/main.php ! Changed the way the panel is handled. ! May not be the best, but it works ! * includes/admin.php **NEW** ! Class file - Backend for the admin panel 2003-02-08 [AnthonyWhite] --- 1,23 ---- ! 2003-02-09 [Heimidal] ! * includes/constants.php ! Added timezones. ! 2003-02-09 [AnthonyWhite] ! * admin/main.php ! Changed the panel handling once again ! Not a big change - just got rid of if statement ! * admin/nav.php ! Nothing special, just changed a link's text ! * includes/admin.php ! Handles site configuration fully now ! outputs a form and handles it (for site config) ! Site config functions are basis for others now ! 2003-02-09 [AnthonyWhite] ! * admin/main.php ! Changed the way the panel is handled. ! May not be the best, but it works ! * includes/admin.php **NEW** ! Class file - Backend for the admin panel 2003-02-08 [AnthonyWhite] *************** *** 42,46 **** 2003-02-08 [Heimidal] ! * A LOT of files. Dreamweaver changed \r\n to \r. That's fixed. Started moving includes around in core.php. --- 42,46 ---- 2003-02-08 [Heimidal] ! * A LOT of files. Dreamweaver changed \r\n to \r. That's fixed. Started moving includes around in core.php. |
From: Brian R. <hei...@us...> - 2003-02-09 21:19:09
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv8579/includes Modified Files: constants.php Log Message: Added timezones. Index: constants.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/constants.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** constants.php 8 Feb 2003 10:48:22 -0000 1.17 --- constants.php 9 Feb 2003 21:19:06 -0000 1.18 *************** *** 14,16 **** --- 14,50 ---- 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_5_45", 5.75); // Kathmandu. + 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. + ?> |
From: Brian R. <hei...@us...> - 2003-02-09 21:19:09
|
Update of /cvsroot/phpmp/phpMP In directory sc8-pr-cvs1:/tmp/cvs-serv8579 Modified Files: index.php Log Message: Added timezones. Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -r1.34 -r1.35 *** index.php 9 Feb 2003 01:03:45 -0000 1.34 --- index.php 9 Feb 2003 21:19:05 -0000 1.35 *************** *** 4,8 **** <?php ! define( "C_PHPMP_ROOT", "./" ); include_once( C_PHPMP_ROOT . 'includes/core.php' ); $Core = new Core(); --- 4,8 ---- <?php ! define("C_PHPMP_ROOT", "./"); include_once( C_PHPMP_ROOT . 'includes/core.php' ); $Core = new Core(); |
From: Anthony W. <ant...@us...> - 2003-02-09 20:57:46
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv31115/docs Modified Files: Changelog Log Message: Updated Changelog Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** Changelog 9 Feb 2003 19:22:52 -0000 1.19 --- Changelog 9 Feb 2003 20:57:40 -0000 1.20 *************** *** 1,3 **** --- 1,7 ---- 2003-02-09 [AnthonyWhite] + * includes/admin.php + Minor changes with site config form + + 2003-02-09 [AnthonyWhite] * admin/main.php Changed the panel handling once again |
From: Anthony W. <ant...@us...> - 2003-02-09 20:49:00
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv27992/includes Modified Files: admin.php Log Message: Made a few changes to the site config form Index: admin.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/admin.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** admin.php 9 Feb 2003 19:20:51 -0000 1.2 --- admin.php 9 Feb 2003 20:48:57 -0000 1.3 *************** *** 4,8 **** { ! var $p_action; // Executes the given admin action --- 4,8 ---- { ! var $p_action; // Action desired by the user // Executes the given admin action *************** *** 32,45 **** print "<form method=\"post\" action=\"main.php?parse=" . $this->p_action . "\">"; print "Site Name: <input type=\"text\" name=\"sname\" value=\"" . C_SITE_NAME . "\"><br>"; ! if (C_OVERRIDE_USR_TPL == 0) { $checked = "CHECKED"; } else { $checked = ""; } print "Default Template: <input type=\"text\" name=\"deftpl\" value=\"" . C_DEFAULT_TPL . "\">"; print " <input type=\"checkbox\" name=\"ovrtpl\" value=\"0\" " . $checked . "> Override User Template?<br>"; print "Default Language: <input type=\"text\" name=\"deflang\" value=\"" . C_DEFAULT_LANG . "\"> (french, english)<br>"; // Should / Will be a dropdown list print "Default Date Format: <input type=\"text\" name=\"defdate\" value=\"" . C_DEFAULT_DATE_FORMAT . "\"> (Example: " . date(C_DEFAULT_DATE_FORMAT) . ") [Same syntax as the PHP date function]<br>"; ! if (C_ENABLE_ACCOUNT_ACTIVATION == 0) { $checked = "CHECKED"; } else { $checked = ""; } ! print "<input type=\"checkbox\" name=\"accact\" value=\"0\" " . $checked . "> Enable Account Activation?<br>"; print "System Timezone: <input type=\"text\" name=\"systime\" value=\"" . C_SYSTEM_TIMEZONE . "\"><br>"; ! if (C_USE_PORTAL_PERMS == 0) { $checked = "CHECKED"; } else { $checked = ""; } ! print "<input type=\"checkbox\" name=\"portperms\" value=\"0\" " . $checked . "> Use Portal Permissions?<br>"; print "<input type=\"submit\" name=\"submit_general\" value=\"Submit Configuration\">"; } --- 32,52 ---- print "<form method=\"post\" action=\"main.php?parse=" . $this->p_action . "\">"; print "Site Name: <input type=\"text\" name=\"sname\" value=\"" . C_SITE_NAME . "\"><br>"; ! if (C_OVERRIDE_USR_TPL == 1) { $checked = "CHECKED"; } else { $checked = ""; } print "Default Template: <input type=\"text\" name=\"deftpl\" value=\"" . C_DEFAULT_TPL . "\">"; print " <input type=\"checkbox\" name=\"ovrtpl\" value=\"0\" " . $checked . "> Override User Template?<br>"; print "Default Language: <input type=\"text\" name=\"deflang\" value=\"" . C_DEFAULT_LANG . "\"> (french, english)<br>"; // Should / Will be a dropdown list print "Default Date Format: <input type=\"text\" name=\"defdate\" value=\"" . C_DEFAULT_DATE_FORMAT . "\"> (Example: " . date(C_DEFAULT_DATE_FORMAT) . ") [Same syntax as the PHP date function]<br>"; ! print "Account Activation Level: "; ! print "<select name=\"accact\">"; ! if (C_ENABLE_ACCOUNT_ACTIVATION == 0) { $sel0 = "SELECTED"; } ! if (C_ENABLE_ACCOUNT_ACTIVATION == 1) { $sel1 = "SELECTED"; } ! if (C_ENABLE_ACCOUNT_ACTIVATION == 2) { $sel2 = "SELECTED"; } ! print "<option value=\"0\" " . $sel0 . ">No Activation"; ! print "<option value=\"1\" " . $sel1 . ">User Activation"; ! print "<option value=\"2\" " . $sel2 . ">Admin Activation"; ! print "</select><br>"; print "System Timezone: <input type=\"text\" name=\"systime\" value=\"" . C_SYSTEM_TIMEZONE . "\"><br>"; ! if (C_USE_PORTAL_PERMS == 1) { $checked = "CHECKED"; } else { $checked = ""; } ! print "<input type=\"checkbox\" name=\"portperms\" value=\"1\" " . $checked . "> Use Portal Permissions?<br>"; print "<input type=\"submit\" name=\"submit_general\" value=\"Submit Configuration\">"; } *************** *** 54,60 **** $DB = new DB; ! if ($ovrtpl != 0) { $ovrtpl = 1; } ! if ($accact != 0) { $accact = 1; } ! if ($portperms != 0) { $portperms = 1; } // We now go through each config_value and update it accordingly --- 61,66 ---- $DB = new DB; ! if ($ovrtpl != 1) { $ovrtpl = 0; } ! if ($portperms != 1) { $portperms = 0; } // We now go through each config_value and update it accordingly |
From: Anthony W. <ant...@us...> - 2003-02-09 19:22:55
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv16213/docs Modified Files: Changelog Log Message: Updated Changelog Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -r1.18 -r1.19 *** Changelog 9 Feb 2003 16:01:56 -0000 1.18 --- Changelog 9 Feb 2003 19:22:52 -0000 1.19 *************** *** 1,4 **** --- 1,15 ---- 2003-02-09 [AnthonyWhite] * admin/main.php + Changed the panel handling once again + Not a big change - just got rid of if statement + * admin/nav.php + Nothing special, just changed a link's text + * includes/admin.php + Handles site configuration fully now + outputs a form and handles it (for site config) + Site config functions are basis for others now + + 2003-02-09 [AnthonyWhite] + * admin/main.php Changed the way the panel is handled. May not be the best, but it works |
From: Anthony W. <ant...@us...> - 2003-02-09 19:22:20
|
Update of /cvsroot/phpmp/phpMP/admin In directory sc8-pr-cvs1:/tmp/cvs-serv15927/admin Modified Files: main.php nav.php Log Message: Minor changes - got rid of an if statement in main.php and change a link's text in nav.php Index: main.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/main.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** main.php 9 Feb 2003 16:00:29 -0000 1.2 --- main.php 9 Feb 2003 19:22:17 -0000 1.3 *************** *** 1,5 **** <?php // Action definitions ! define( C_ACTION_GENERAL, 1 ); define( C_PHPMP_ROOT, '../' ); --- 1,6 ---- <?php // Action definitions ! define( C_ACTION_NONE, 0 ); ! define( C_ACTION_SITE, 1 ); define( C_PHPMP_ROOT, '../' ); *************** *** 16,32 **** $admin = new Admin(); ! if (!$parse) { ! $admin->execute($action); ! } ! else ! { ! switch ($parse) ! { ! case C_ACTION_GENERAL: ! $admin->parse_general($sname); ! break; ! default: break; ! } } --- 17,28 ---- $admin = new Admin(); ! switch ($parse) { ! case C_ACTION_SITE: ! $admin->parse_site($sname, $ovrtpl, $deftpl, $deflang, $defdate, $accact, $systime, $portperms); ! break; ! default: // $parse is not supplied, so execute $action instead ! if ($action != C_ACTION_NONE) { $admin->execute($action); } ! break; } Index: nav.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/nav.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** nav.php 8 Feb 2003 18:05:23 -0000 1.2 --- nav.php 9 Feb 2003 19:22:17 -0000 1.3 *************** *** 20,24 **** print "<base target=\"cont\">\n"; ! print "<a href=\"main.php?action=1\">General Management</a>"; ! ?> \ No newline at end of file --- 20,24 ---- print "<base target=\"cont\">\n"; ! print "<a href=\"main.php?action=1\">Site Configuration</a>"; ! ?> |
From: Anthony W. <ant...@us...> - 2003-02-09 19:20:54
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv15380/includes Modified Files: admin.php Log Message: Finished site config - not pretty, but it works for a pre-alpha. I expect to tune it up a few times anyways (when the templates are implemented) Index: admin.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/admin.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** admin.php 9 Feb 2003 16:01:22 -0000 1.1 --- admin.php 9 Feb 2003 19:20:51 -0000 1.2 *************** *** 12,20 **** function execute($action) { switch ($action) { ! case C_ACTION_GENERAL: ! $this->p_action = $action; ! $this->_show_general(); break; default: break; --- 12,21 ---- function execute($action) { + $this->p_action = $action; + switch ($action) { ! case C_ACTION_SITE: ! $this->_show_site(); break; default: break; *************** *** 26,35 **** // Accepts: none. // Returns: none. ! function _show_general() { // Print out a form for the user print "<form method=\"post\" action=\"main.php?parse=" . $this->p_action . "\">"; ! print "Site Name: <input type=\"text\" name=\"sname\"><br>"; ! print "<input type=\"submit\" name=\"submit_general\">"; } --- 27,46 ---- // Accepts: none. // Returns: none. ! function _show_site() { // Print out a form for the user print "<form method=\"post\" action=\"main.php?parse=" . $this->p_action . "\">"; ! print "Site Name: <input type=\"text\" name=\"sname\" value=\"" . C_SITE_NAME . "\"><br>"; ! if (C_OVERRIDE_USR_TPL == 0) { $checked = "CHECKED"; } else { $checked = ""; } ! print "Default Template: <input type=\"text\" name=\"deftpl\" value=\"" . C_DEFAULT_TPL . "\">"; ! print " <input type=\"checkbox\" name=\"ovrtpl\" value=\"0\" " . $checked . "> Override User Template?<br>"; ! print "Default Language: <input type=\"text\" name=\"deflang\" value=\"" . C_DEFAULT_LANG . "\"> (french, english)<br>"; // Should / Will be a dropdown list ! print "Default Date Format: <input type=\"text\" name=\"defdate\" value=\"" . C_DEFAULT_DATE_FORMAT . "\"> (Example: " . date(C_DEFAULT_DATE_FORMAT) . ") [Same syntax as the PHP date function]<br>"; ! if (C_ENABLE_ACCOUNT_ACTIVATION == 0) { $checked = "CHECKED"; } else { $checked = ""; } ! print "<input type=\"checkbox\" name=\"accact\" value=\"0\" " . $checked . "> Enable Account Activation?<br>"; ! print "System Timezone: <input type=\"text\" name=\"systime\" value=\"" . C_SYSTEM_TIMEZONE . "\"><br>"; ! if (C_USE_PORTAL_PERMS == 0) { $checked = "CHECKED"; } else { $checked = ""; } ! print "<input type=\"checkbox\" name=\"portperms\" value=\"0\" " . $checked . "> Use Portal Permissions?<br>"; ! print "<input type=\"submit\" name=\"submit_general\" value=\"Submit Configuration\">"; } *************** *** 38,54 **** // Accepts: Form values from the general form // Returns: none. ! function parse_general($sname) { include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); $DB = new DB; // We now go through each config_value and update it accordingly // I dont know if this is the only way, but it works fine for me ! $query = $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $sname . "' WHERE config_key='site_name'"); ! ! if (!$query) ! { ! die ("Error executing query"); ! } } --- 49,71 ---- // Accepts: Form values from the general form // Returns: none. ! function parse_site($sname, $ovrtpl, $deftpl, $deflang, $defdate, $accact, $systime, $portperms) { include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); $DB = new DB; + if ($ovrtpl != 0) { $ovrtpl = 1; } + if ($accact != 0) { $accact = 1; } + if ($portperms != 0) { $portperms = 1; } + // We now go through each config_value and update it accordingly // I dont know if this is the only way, but it works fine for me ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $sname . "' WHERE config_key='site_name'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $ovrtpl . "' WHERE config_key='override_usr_tpl'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $deftpl . "' WHERE config_key='default_tpl'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $deflang . "' WHERE config_key='default_lang'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $defdate . "' WHERE config_key='default_date_format'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $accact . "' WHERE config_key='enable_account_activation'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $systime . "' WHERE config_key='system_timezone'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $portperms . "' WHERE config_key='use_portal_perms'"); } |
From: Anthony W. <ant...@us...> - 2003-02-09 16:01:59
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv29681/docs Modified Files: Changelog Log Message: Updated Changelog Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** Changelog 8 Feb 2003 18:05:54 -0000 1.17 --- Changelog 9 Feb 2003 16:01:56 -0000 1.18 *************** *** 1,2 **** --- 1,9 ---- + 2003-02-09 [AnthonyWhite] + * admin/main.php + Changed the way the panel is handled. + May not be the best, but it works + * includes/admin.php **NEW** + Class file - Backend for the admin panel + 2003-02-08 [AnthonyWhite] * admin/main.php **NEW** |
From: Anthony W. <ant...@us...> - 2003-02-09 16:01:27
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv29415/includes Added Files: admin.php Log Message: Powers the admin/main.php file - will handle all admin actions --- NEW FILE: admin.php --- <?php class Admin { var $p_action; // Executes the given admin action // Author: Anthony White // Accepts: $action - actions as defined above, used in switch / case // Returns: none. function execute($action) { switch ($action) { case C_ACTION_GENERAL: $this->p_action = $action; $this->_show_general(); break; default: break; } } // Shows the general management form // Author: Anthony White // Accepts: none. // Returns: none. function _show_general() { // Print out a form for the user print "<form method=\"post\" action=\"main.php?parse=" . $this->p_action . "\">"; print "Site Name: <input type=\"text\" name=\"sname\"><br>"; print "<input type=\"submit\" name=\"submit_general\">"; } // Parses the general management form // Author: Anthony White // Accepts: Form values from the general form // Returns: none. function parse_general($sname) { include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); $DB = new DB; // We now go through each config_value and update it accordingly // I dont know if this is the only way, but it works fine for me $query = $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $sname . "' WHERE config_key='site_name'"); if (!$query) { die ("Error executing query"); } } } ?> |
From: Anthony W. <ant...@us...> - 2003-02-09 16:00:33
|
Update of /cvsroot/phpmp/phpMP/admin In directory sc8-pr-cvs1:/tmp/cvs-serv28973/admin Modified Files: main.php Log Message: Made changes to the way the panel is handled - now uses a class file to power itself (includes/admin.php) Index: main.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/main.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** main.php 8 Feb 2003 18:05:23 -0000 1.1 --- main.php 9 Feb 2003 16:00:29 -0000 1.2 *************** *** 1,9 **** <?php define( C_PHPMP_ROOT, '../' ); - // Define action variables - define( P_ACTION_GENERAL, 1 ); - include_once( C_PHPMP_ROOT . 'includes/core.php' ); --- 1,8 ---- <?php + // Action definitions + define( C_ACTION_GENERAL, 1 ); define( C_PHPMP_ROOT, '../' ); include_once( C_PHPMP_ROOT . 'includes/core.php' ); *************** *** 13,33 **** // Main administration file - just shows site stats, etc... ! switch ($action) { ! case P_ACTION_GENERAL: ! // Print out configuration variables ! // Should really be showing a form, but for now this is good enough ! // Just here to build the default format for the panel itself ! print "Site Address: " . C_SITE_ADDR . "<br>"; ! print "Relative Path: " . C_REL_PATH . "<br>"; ! print "Default Template: " . C_DEFAULT_TPL . "<br>"; ! print "Site Name: " . C_SITE_NAME . "<br>"; ! print "Default Language: " . C_DEFAULT_LANG . "<br>"; ! print "Default Date Format: " . C_DEFAULT_DATE_FORMAT . "<br>"; ! print "System Timezone: " . C_SYSTEM_TIMEZONE . "<br>"; ! print "Current Version: " . C_VERSION . "<br>"; ! break; ! default: break; } ! ?> \ No newline at end of file --- 12,33 ---- // Main administration file - just shows site stats, etc... ! ! include_once( C_PHPMP_ROOT . 'includes/admin.php' ); ! $admin = new Admin(); ! ! if (!$parse) ! { ! $admin->execute($action); ! } ! else { ! switch ($parse) ! { ! case C_ACTION_GENERAL: ! $admin->parse_general($sname); ! break; ! default: break; ! } } ! ?> |
From: Brian R. <hei...@us...> - 2003-02-09 01:03:49
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv5303/includes Modified Files: core.php Log Message: More Line break fixage. Index: core.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/core.php,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -r1.43 -r1.44 *** core.php 8 Feb 2003 10:48:22 -0000 1.43 --- core.php 9 Feb 2003 01:03:45 -0000 1.44 *************** *** 39,43 **** if( !defined("P_PHPMP_ROOT") ) { ! define('P_PHPMP_ROOT', './'); } --- 39,43 ---- if( !defined("P_PHPMP_ROOT") ) { ! define( 'P_PHPMP_ROOT', './' ); } |
From: Brian R. <hei...@us...> - 2003-02-09 01:03:49
|
Update of /cvsroot/phpmp/phpMP In directory sc8-pr-cvs1:/tmp/cvs-serv5303 Modified Files: index.php Log Message: More Line break fixage. Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -r1.33 -r1.34 *** index.php 9 Feb 2003 01:00:29 -0000 1.33 --- index.php 9 Feb 2003 01:03:45 -0000 1.34 *************** *** 4,8 **** <?php ! define("C_PHPMP_ROOT", "./"); include_once( C_PHPMP_ROOT . 'includes/core.php' ); $Core = new Core(); --- 4,8 ---- <?php ! define( "C_PHPMP_ROOT", "./" ); include_once( C_PHPMP_ROOT . 'includes/core.php' ); $Core = new Core(); |
From: Brian R. <hei...@us...> - 2003-02-09 01:00:36
|
Update of /cvsroot/phpmp/phpMP In directory sc8-pr-cvs1:/tmp/cvs-serv3607 Modified Files: index.php Log Message: More Line break fixage. Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -r1.32 -r1.33 *** index.php 8 Feb 2003 22:09:29 -0000 1.32 --- index.php 9 Feb 2003 01:00:29 -0000 1.33 *************** *** 1,45 **** ! <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: " . DB_CONFIG_TABLE . '<br>'; ! print "Users Table: " . DB_USERS_TABLE . '<br>'; ! print "Block Table: " . DB_BLOCK_TABLE . '<br>'; ! print "Modules Table: " . DB_MODULES_TABLE . '<br>'; ! print "Sessions Table: " . DB_SESSIONS_TABLE . '<br>'; ! ! ?> ! ! </body> </html> --- 1,45 ---- ! <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: " . DB_CONFIG_TABLE . '<br>'; ! print "Users Table: " . DB_USERS_TABLE . '<br>'; ! print "Block Table: " . DB_BLOCK_TABLE . '<br>'; ! print "Modules Table: " . DB_MODULES_TABLE . '<br>'; ! print "Sessions Table: " . DB_SESSIONS_TABLE . '<br>'; ! ! ?> ! ! </body> </html> |
From: Brian R. <hei...@us...> - 2003-02-08 22:09:34
|
Update of /cvsroot/phpmp/phpMP In directory sc8-pr-cvs1:/tmp/cvs-serv1278 Modified Files: index.php Log Message: bla hCVS: ---------------------------------------------------------------------- Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -r1.31 -r1.32 *** index.php 8 Feb 2003 09:43:28 -0000 1.31 --- index.php 8 Feb 2003 22:09:29 -0000 1.32 *************** *** 1,45 **** ! <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: " . DB_CONFIG_TABLE . '<br>'; ! print "Users Table: " . DB_USERS_TABLE . '<br>'; ! print "Block Table: " . DB_BLOCK_TABLE . '<br>'; ! print "Modules Table: " . DB_MODULES_TABLE . '<br>'; ! print "Sessions Table: " . DB_SESSIONS_TABLE . '<br>'; ! ! ?> ! ! </body> </html> --- 1,45 ---- ! <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: " . DB_CONFIG_TABLE . '<br>'; ! print "Users Table: " . DB_USERS_TABLE . '<br>'; ! print "Block Table: " . DB_BLOCK_TABLE . '<br>'; ! print "Modules Table: " . DB_MODULES_TABLE . '<br>'; ! print "Sessions Table: " . DB_SESSIONS_TABLE . '<br>'; ! ! ?> ! ! </body> </html> |
From: Anthony W. <ant...@us...> - 2003-02-08 18:05:57
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv6467/docs Modified Files: Changelog Log Message: Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** Changelog 8 Feb 2003 17:21:34 -0000 1.16 --- Changelog 8 Feb 2003 18:05:54 -0000 1.17 *************** *** 1,4 **** 2003-02-08 [AnthonyWhite] ! * admin/admin.php My first commit :) I am basically just starting on the admin panel here. --- 1,14 ---- + 2003-02-08 [AnthonyWhite] + * admin/main.php **NEW** + The main page for the admin panel, will show site stats + Controlled by a switch / case statement (not best way) + I will probably change the way this is eventually + * admin/nav.php + Just added a link for testing + * admin/index.php + Changed the frameset a bit + 2003-02-08 [AnthonyWhite] ! * admin/index.php My first commit :) I am basically just starting on the admin panel here. |
From: Anthony W. <ant...@us...> - 2003-02-08 18:05:26
|
Update of /cvsroot/phpmp/phpMP/admin In directory sc8-pr-cvs1:/tmp/cvs-serv6306/admin Modified Files: index.php nav.php Added Files: main.php Log Message: Basic admin panel (doesnt really do anything yet, just a shell for now) --- NEW FILE: main.php --- <?php define( C_PHPMP_ROOT, '../' ); // Define action variables define( P_ACTION_GENERAL, 1 ); include_once( C_PHPMP_ROOT . 'includes/core.php' ); $Core = new Core(); $Core->init(); // Main administration file - just shows site stats, etc... switch ($action) { case P_ACTION_GENERAL: // Print out configuration variables // Should really be showing a form, but for now this is good enough // Just here to build the default format for the panel itself print "Site Address: " . C_SITE_ADDR . "<br>"; print "Relative Path: " . C_REL_PATH . "<br>"; print "Default Template: " . C_DEFAULT_TPL . "<br>"; print "Site Name: " . C_SITE_NAME . "<br>"; print "Default Language: " . C_DEFAULT_LANG . "<br>"; print "Default Date Format: " . C_DEFAULT_DATE_FORMAT . "<br>"; print "System Timezone: " . C_SYSTEM_TIMEZONE . "<br>"; print "Current Version: " . C_VERSION . "<br>"; break; default: break; } ?> Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** index.php 8 Feb 2003 17:20:39 -0000 1.4 --- index.php 8 Feb 2003 18:05:22 -0000 1.5 *************** *** 18,24 **** // Create the frameset navigation ! print "<frameset cols=\"150, *\">"; ! print "<frame name=\"nav\" src=\"" . C_PHPMP_ROOT . "admin/nav.php\">"; ! print "<frame name=\"cont\" src=\"\">"; print "</frameset>"; --- 18,24 ---- // Create the frameset navigation ! print "<frameset cols=\"150,*\">"; ! print "<frame name=\"nav\" src=\"nav.php\">"; ! print "<frame name=\"cont\" src=\"main.php\">"; print "</frameset>"; Index: nav.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/nav.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** nav.php 8 Feb 2003 17:20:39 -0000 1.1 --- nav.php 8 Feb 2003 18:05:23 -0000 1.2 *************** *** 20,24 **** print "<base target=\"cont\">\n"; ! print "Navigation File"; ?> --- 20,24 ---- print "<base target=\"cont\">\n"; ! print "<a href=\"main.php?action=1\">General Management</a>"; ?> |
From: Anthony W. <ant...@us...> - 2003-02-08 17:21:40
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv22831/docs Modified Files: Changelog Log Message: Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** Changelog 8 Feb 2003 10:58:16 -0000 1.15 --- Changelog 8 Feb 2003 17:21:34 -0000 1.16 *************** *** 1,2 **** --- 1,12 ---- + 2003-02-08 [AnthonyWhite] + * admin/admin.php + My first commit :) + I am basically just starting on the admin panel here. + So far, I have a basic layout with frames and so on. + * admin/nav.php **NEW** + Just a basic navigation file for the admin panel. + If you dont like what I did just let me know, + otherwise I will just continue on. + 2003-02-08 [Heimidal] * A LOT of files. |
From: Anthony W. <ant...@us...> - 2003-02-08 17:20:44
|
Update of /cvsroot/phpmp/phpMP/admin In directory sc8-pr-cvs1:/tmp/cvs-serv22529a/admin Modified Files: index.php Added Files: nav.php Log Message: Started work on the admin panel. Not much yet, but I am getting to something. (Non-Graphical - it actually looks horrible, but that will change when I get an idea for the main template) --- NEW FILE: nav.php --- <?php // Basic Navigation (not very pretty, just a throw-together for testing define( C_PHPMP_ROOT, '../' ); include_once( C_PHPMP_ROOT . 'includes/core.php' ); $Core = new Core(); $Core->init(); /******* Comented for Testing ******* if (U_AUTH_LEVEL != AUTH_LVL_ADMIN) { exit; end; } *************************************/ print "<base target=\"cont\">\n"; print "Navigation File"; ?> Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** index.php 8 Feb 2003 09:44:17 -0000 1.3 --- index.php 8 Feb 2003 17:20:39 -0000 1.4 *************** *** 1,5 **** <?php ! //This file will house the frameset for the phpMP admin interface. ?> --- 1,25 ---- <?php ! define( C_PHPMP_ROOT, '../' ); ! ! include_once( C_PHPMP_ROOT . 'includes/core.php' ); ! ! $Core = new Core(); ! ! $Core->init(); ! ! /******* Commented for Testing ******* ! if (U_AUTH_LEVEL != AUTH_LVL_ADMIN) ! { ! exit; ! end; ! } ! **************************************/ ! ! // Create the frameset navigation ! print "<frameset cols=\"150, *\">"; ! print "<frame name=\"nav\" src=\"" . C_PHPMP_ROOT . "admin/nav.php\">"; ! print "<frame name=\"cont\" src=\"\">"; ! print "</frameset>"; ?> |
From: Brian R. <hei...@us...> - 2003-02-08 11:07:31
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv31151/includes Modified Files: functions.php Log Message: Grrrr... Index: functions.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/functions.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -r1.25 -r1.26 *** functions.php 8 Feb 2003 10:54:22 -0000 1.25 --- functions.php 8 Feb 2003 11:07:28 -0000 1.26 *************** *** 8,13 **** { ( U_DATE_FORMAT != '' ) ? define( "C_DATE_FORMAT", U_DATE_FORMAT ) : define( "C_DATE_FORMAT", C_DEFAULT_DATE_FORMAT ); ! define("C_DATE_NOW", date(C_DATE_FORMAT); // This is here...for now. } ! ?> \ No newline at end of file --- 8,13 ---- { ( U_DATE_FORMAT != '' ) ? define( "C_DATE_FORMAT", U_DATE_FORMAT ) : define( "C_DATE_FORMAT", C_DEFAULT_DATE_FORMAT ); ! define("C_DATE_NOW", date(C_DATE_FORMAT)); // This is here...for now. } ! ?> |
From: Brian R. <hei...@us...> - 2003-02-08 10:58:20
|
Update of /cvsroot/phpmp/phpMP/docs In directory sc8-pr-cvs1:/tmp/cvs-serv28728 Modified Files: Changelog Log Message: Updated the Changelog. Index: Changelog =================================================================== RCS file: /cvsroot/phpmp/phpMP/docs/Changelog,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** Changelog 6 Feb 2003 01:46:49 -0000 1.14 --- Changelog 8 Feb 2003 10:58:16 -0000 1.15 *************** *** 1,9 **** ! 2002-02-05 [Heimidal] * Most included files. Changed DB table to carry a DB_ prefix. Fixed a mistake I made in constants.php. ! 2002-02-03 [Heimidal] * Every file I can think of. --- 1,17 ---- ! 2003-02-08 [Heimidal] ! * A LOT of files. ! Dreamweaver changed \r\n to \r. That's fixed. ! Started moving includes around in core.php. ! Making the loading structure of files logical. ! constant.php actually contains 'constants' now. ! Began serious work on sessions.php. ! Auth will be called by sessions.php henceforth. + 2003-02-05 [Heimidal] * Most included files. Changed DB table to carry a DB_ prefix. Fixed a mistake I made in constants.php. ! 2003-02-03 [Heimidal] * Every file I can think of. |
From: Brian R. <hei...@us...> - 2003-02-08 10:54:26
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv27781 Modified Files: functions.php Log Message: Small mistake. No biggie. Index: functions.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/functions.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -r1.24 -r1.25 *** functions.php 8 Feb 2003 10:48:22 -0000 1.24 --- functions.php 8 Feb 2003 10:54:22 -0000 1.25 *************** *** 8,11 **** --- 8,12 ---- { ( U_DATE_FORMAT != '' ) ? define( "C_DATE_FORMAT", U_DATE_FORMAT ) : define( "C_DATE_FORMAT", C_DEFAULT_DATE_FORMAT ); + define("C_DATE_NOW", date(C_DATE_FORMAT); // This is here...for now. } |
From: Brian R. <hei...@us...> - 2003-02-08 10:48:25
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv26287/includes Modified Files: auth.php constants.php core.php functions.php sessions.php user.php Log Message: Started work on the sessions and auth management scheme. Don't try to use it yet..it's no where close to done. Index: auth.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/auth.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -r1.31 -r1.32 *** auth.php 8 Feb 2003 09:39:52 -0000 1.31 --- auth.php 8 Feb 2003 10:48:22 -0000 1.32 *************** *** 4,71 **** { - var $curr_user; - var $session_id; - function Auth() { - - global $DB; - - // Session ID is contained in the URL. - if( isset( $_GET['s'] ) ) - { - define("C_SESSID_LOC", 1); - - $this->session_id = $_GET['s']; - - } - // We're using the cookie set by the previous session. - elseif( isset( $_COOKIE[C_COOKIE_NAME] ) ) - { - - define("C_SESSID_LOC", 2); - - $this->session_id = $_COOKIE[C_COOKIE_NAME]; - - } - // There is no Session ID. We'll have to make one. - else - { - - // Create a Session ID for our use. - $this->session_id = makeSessionID(); - - // We must now determine where the session id should be placed. - if( U_SESSION_URL == 1 ) - { - } - - } - - $sql = "SELECT * FROM " . DB_SESSIONS_TABLE . " WHERE sessid=" . $this->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. - - } } --- 4,9 ---- Index: constants.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/constants.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** constants.php 6 Feb 2003 01:52:48 -0000 1.16 --- constants.php 8 Feb 2003 10:48:22 -0000 1.17 *************** *** 1,6 **** <?php - define("C_DATE_NOW", date( C_DATE_FORMAT ) ); - define("ACTIVATE_DISABLED", 0); define("ACTIVATE_USER", 1); --- 1,4 ---- *************** *** 12,15 **** --- 10,16 ---- 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. ?> Index: core.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/core.php,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -r1.42 -r1.43 *** core.php 6 Feb 2003 01:46:50 -0000 1.42 --- core.php 8 Feb 2003 10:48:22 -0000 1.43 *************** *** 36,50 **** 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(); $this->_initConfig(); // Grab DB-stored config values. --- 36,59 ---- function init ( $optional_files = array() ) { + + if( !defined("P_PHPMP_ROOT") ) + { + define('P_PHPMP_ROOT', './'); + } + include_once( C_PHPMP_ROOT . 'config.php' ); + // Globalize all major class-containing variables. + global $Debug, $DB, $User, $MPCode, $Template; + include_once( C_PHPMP_ROOT . 'includes/debug.php' ); $Debug = new Debug(); include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); $DB = new DB(); $DB->connect(); + include_once(C_PHPMP_ROOT . 'includes/constants.php'); + $this->_initConfig(); // Grab DB-stored config values. *************** *** 57,62 **** $Language = new Language(); ! createConstants(); ! include_once(C_PHPMP_ROOT . 'includes/constants.php'); include_once(C_PHPMP_ROOT . 'includes/mpcode.php'); --- 66,70 ---- $Language = new Language(); ! createVars(); include_once(C_PHPMP_ROOT . 'includes/mpcode.php'); *************** *** 67,74 **** while( $my_file = $optional_files[$i] ) { - include_once(C_PHPMP_ROOT . 'includes/' . $my_file . '.php'); $i++; - } --- 75,80 ---- *************** *** 76,82 **** include_once(C_PHPMP_ROOT . 'includes/template.php'); $Template = new Template(); // Create an instance of Template. - - // Globalize all major class-containing variables. - global $Debug, $User, $MPCode, $Template; } --- 82,85 ---- Index: functions.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/functions.php,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -r1.23 -r1.24 *** functions.php 8 Feb 2003 09:38:40 -0000 1.23 --- functions.php 8 Feb 2003 10:48:22 -0000 1.24 *************** *** 5,17 **** // Accepts: none. // Returns: none. ! function createConstants() { ( U_DATE_FORMAT != '' ) ? define( "C_DATE_FORMAT", U_DATE_FORMAT ) : define( "C_DATE_FORMAT", C_DEFAULT_DATE_FORMAT ); - } - - - function makeSessionID() - { - } --- 5,11 ---- // Accepts: none. // Returns: none. ! function createVars() { ( U_DATE_FORMAT != '' ) ? define( "C_DATE_FORMAT", U_DATE_FORMAT ) : define( "C_DATE_FORMAT", C_DEFAULT_DATE_FORMAT ); } Index: sessions.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/sessions.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** sessions.php 8 Feb 2003 09:43:29 -0000 1.8 --- sessions.php 8 Feb 2003 10:48:22 -0000 1.9 *************** *** 1,6 **** <?php ! // Session Management. ! // To be developed by Eric. ?> --- 1,65 ---- <?php ! class Session // Creates and maintains sessions for all users. ! { ! ! var $session_id; ! ! function Session() ! { ! } ! ! function startSession( $user ) ! { ! ! global $DB, $sid; ! ! // The Session ID is currently in the URL. We'll keep it that way for now. ! if( isset( $_GET['s'] ) ) ! { ! ! define('C_SESS_LOC', SESS_LOC_URL); ! ! $this->session_id = $_GET['s']; ! ! } ! // Not in the URL. Could be in a cookie. ! // NOTE: No support yet for auto-login cookies. ! elseif( isset( $_COOKIE[C_COOKIE_NAME . 'data'] ) || isset( $_COOKIE[C_COOKIE_NAME . 'sid']) ) ! ( ! ! define('C_SESS_LOC', SESS_LOC_COOKIE); ! ! $cookie_data = unserialize(C_COOKIE_NAME . 'data'); ! $this->session_id = $cookie_data['session_id']; ! ! } ! else ! { ! ! // We currently have no session_id set. ! ! } ! ! // Pull session data from the database. ! if( !empty( $this->session_id ) } ! { ! ! $sql = "SELECT u.*, s.* FROM " . DB_USERS_TABLE . " u, " . DB_SESSIONS_TABLE . " s WHERE s.sess_id = " . %this->session_id . " AND u.user_id = s.user_id"; ! ! $result = $DB->query($sql); ! $session_data = $DB->fetchRow($result); ! ! // We will now check for authenticity of the IP. ! if( isset( $session_data['user_id'] ) ) ! { ! // Will write this later. ! } ! ! } ! ! } ! ! } ?> Index: user.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/user.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** user.php 8 Feb 2003 09:43:29 -0000 1.14 --- user.php 8 Feb 2003 10:48:22 -0000 1.15 *************** *** 71,80 **** // 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. } --- 71,80 ---- // We want to use authentication. ! global $Sessions; ! include_once( C_PHPMP_ROOT . 'includes/sessions.php' ); ! $Sessions = new Sessions(); // Initializes Auth, which also authenticates the user. ! $this->_snapshot( $Sessions->curr_user ); // Gets snapshot of user info/vars. } |