openfirst-cvscommit Mailing List for openFIRST (Page 68)
Brought to you by:
xtimg
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(41) |
Jun
(210) |
Jul
(39) |
Aug
(153) |
Sep
(147) |
Oct
(173) |
Nov
(81) |
Dec
(163) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(33) |
Feb
(18) |
Mar
|
Apr
(62) |
May
|
Jun
(100) |
Jul
(38) |
Aug
(58) |
Sep
(1) |
Oct
|
Nov
(25) |
Dec
(172) |
2005 |
Jan
(31) |
Feb
(12) |
Mar
(67) |
Apr
(92) |
May
(247) |
Jun
(34) |
Jul
(36) |
Aug
(192) |
Sep
(15) |
Oct
(42) |
Nov
(92) |
Dec
(4) |
2006 |
Jan
|
Feb
(21) |
Mar
|
Apr
|
May
|
Jun
(53) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(4) |
Apr
(4) |
May
|
Jun
(15) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <xt...@us...> - 2003-11-23 15:01:03
|
Update of /cvsroot/openfirst/projects/setup In directory sc8-pr-cvs1:/tmp/cvs-serv18778 Modified Files: setup.mssql setup.mysql Log Message: Have setup scripts update the links of previously installed projects modules not to have meetings. Index: setup.mssql =================================================================== RCS file: /cvsroot/openfirst/projects/setup/setup.mssql,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** setup.mssql 23 Nov 2003 14:56:28 -0000 1.10 --- setup.mssql 23 Nov 2003 15:00:58 -0000 1.11 *************** *** 5,8 **** --- 5,9 ---- CREATE TABLE `ofirst_projects_tasks` ( `ID` int(3) unsigned NOT NULL auto_increment, `TaskName` text, `ProjectID` tinytext, `GroupID` tinytext, `DateAssigned` text, `TarDate` text, `Description` text, `Assigned` text, `Dates` text, `Completion` tinytext, `Pend` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET modulename='projects',showonmenu='0',active='0',adminnavigation='<a href="$basepath/projects/admin/updatesetup.php">Update Service Setup</a>',modulenavigation='<a href="$basepath/projects/groups.php">Action Register</a> | <a href="$basepath/projects/mytask.php">My Tasks</a> | <a href="$basepath/projects/preferences.php">Preferences</a> | <a href="$basepath/projects/today.php">Todays Changes</a>',includes='projectsmodule.php'; + UPDATE ofirst_config SET modulenavigation='<a href="$basepath/projects/groups.php">Action Register</a> | <a href="$basepath/projects/mytask.php">My Tasks</a> | <a href="$basepath/projects/preferences.php">Preferences</a> | <a href="$basepath/projects/today.php">Todays Changes</a>' WHERE modulename='projects'; ALTER TABLE ofirst_members ADD COLUMN ProjectsUpdates tinytext; ALTER TABLE ofirst_members ADD COLUMN ProjectsCommitSelect tinytext; Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/projects/setup/setup.mysql,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** setup.mysql 23 Nov 2003 14:56:28 -0000 1.9 --- setup.mysql 23 Nov 2003 15:00:58 -0000 1.10 *************** *** 5,8 **** --- 5,9 ---- CREATE TABLE `ofirst_projects_tasks` ( `ID` int(3) unsigned NOT NULL auto_increment, `TaskName` text, `ProjectID` tinytext, `GroupID` tinytext, `DateAssigned` text, `TarDate` text, `Description` text, `Assigned` text, `Dates` text, `Completion` tinytext, `Pend` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET modulename='projects',showonmenu='0',active='0',adminnavigation='<a href="$basepath/projects/admin/updatesetup.php">Update Service Setup</a>',modulenavigation='<a href="$basepath/projects/groups.php">Action Register</a> | <a href="$basepath/projects/mytask.php">My Tasks</a> | <a href="$basepath/projects/preferences.php">Preferences</a> | <a href="$basepath/projects/today.php">Todays Changes</a>',includes='projectsmodule.php'; + UPDATE ofirst_config SET modulenavigation='<a href="$basepath/projects/groups.php">Action Register</a> | <a href="$basepath/projects/mytask.php">My Tasks</a> | <a href="$basepath/projects/preferences.php">Preferences</a> | <a href="$basepath/projects/today.php">Todays Changes</a>' WHERE modulename='projects'; ALTER TABLE ofirst_members ADD COLUMN ProjectsUpdates tinytext; ALTER TABLE ofirst_members ADD COLUMN ProjectsCommitSelect tinytext; |
From: <xt...@us...> - 2003-11-23 14:56:32
|
Update of /cvsroot/openfirst/projects/setup In directory sc8-pr-cvs1:/tmp/cvs-serv18232 Modified Files: setup.mssql setup.mysql Log Message: Bring mssql scripts back into sync. Fix broken links to meetings, as functionality has since been moved to a separate module. Index: setup.mssql =================================================================== RCS file: /cvsroot/openfirst/projects/setup/setup.mssql,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** setup.mssql 1 Nov 2003 17:16:01 -0000 1.9 --- setup.mssql 23 Nov 2003 14:56:28 -0000 1.10 *************** *** 1,6 **** CREATE TABLE `ofirst_projects_groups` ( `ID` int(3) unsigned NOT NULL auto_increment, `GroupName` tinytext, `Description` text, `Moderators` tinytext, `Members` tinytext, `Dates` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; ! CREATE TABLE `ofirst_projects_notes` ( `ID` int(3) unsigned NOT NULL auto_increment, `ProjectID` tinyint(8) default NULL, `AttachedFile` blob, `mime` text, `GroupID` tinyint(8) default NULL, `TaskID` tinyint(8) default NULL, `Description` text, `Commiter` tinytext, `Dates` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; CREATE TABLE `ofirst_projects_projects` ( `ID` int(3) unsigned NOT NULL auto_increment, `ProjectName` tinytext, `GroupID` tinyint(3) default '0', `Completion` tinytext, `Description` text, `Assigned` text, `TarDate` text, `Dates` text, `Pend` tinytext, PRIMARY KEY (`ID`)) TYPE=MyISAM; CREATE TABLE `ofirst_projects_tasks` ( `ID` int(3) unsigned NOT NULL auto_increment, `TaskName` text, `ProjectID` tinytext, `GroupID` tinytext, `DateAssigned` text, `TarDate` text, `Description` text, `Assigned` text, `Dates` text, `Completion` tinytext, `Pend` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET modulename='projects',showonmenu='0',active='0',adminnavigation='<a href="$basepath/projects/admin/updatesetup.php">Update Service Setup</a>',modulenavigation='<a href="$basepath/projects/groups.php">Action Register</a> | <a href="$basepath/projects/mytask.php">My Tasks</a> | <a href="$basepath/projects/preferences.php">Preferences</a> | <a href="$basepath/projects/today.php">Todays Changes</a>',includes='projectsmodule.php'; ! ALTER TABLE ofirst_members ADD COLUMN ProjectsUpdates tinytext \ No newline at end of file --- 1,9 ---- CREATE TABLE `ofirst_projects_groups` ( `ID` int(3) unsigned NOT NULL auto_increment, `GroupName` tinytext, `Description` text, `Moderators` tinytext, `Members` tinytext, `Dates` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; ! CREATE TABLE `ofirst_projects_meetings` ( `ID` int(3) unsigned NOT NULL auto_increment, `Dates` text, `ForDate` text, `Description` text, `ArrangedFor` text, `AbsentList` text, `Notes` text, `Status` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; ! CREATE TABLE `ofirst_projects_notes` ( `ID` int(3) unsigned NOT NULL auto_increment, `ProjectID` tinyint(8) default NULL, `AttachedFile` blob, `mime` text, `GroupID` tinyint(8) default NULL, `TaskID` tinyint(8) default NULL, `Description` tinytext, `Commiter` tinytext, `Dates` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; CREATE TABLE `ofirst_projects_projects` ( `ID` int(3) unsigned NOT NULL auto_increment, `ProjectName` tinytext, `GroupID` tinyint(3) default '0', `Completion` tinytext, `Description` text, `Assigned` text, `TarDate` text, `Dates` text, `Pend` tinytext, PRIMARY KEY (`ID`)) TYPE=MyISAM; CREATE TABLE `ofirst_projects_tasks` ( `ID` int(3) unsigned NOT NULL auto_increment, `TaskName` text, `ProjectID` tinytext, `GroupID` tinytext, `DateAssigned` text, `TarDate` text, `Description` text, `Assigned` text, `Dates` text, `Completion` tinytext, `Pend` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET modulename='projects',showonmenu='0',active='0',adminnavigation='<a href="$basepath/projects/admin/updatesetup.php">Update Service Setup</a>',modulenavigation='<a href="$basepath/projects/groups.php">Action Register</a> | <a href="$basepath/projects/mytask.php">My Tasks</a> | <a href="$basepath/projects/preferences.php">Preferences</a> | <a href="$basepath/projects/today.php">Todays Changes</a>',includes='projectsmodule.php'; ! ALTER TABLE ofirst_members ADD COLUMN ProjectsUpdates tinytext; ! ALTER TABLE ofirst_members ADD COLUMN ProjectsCommitSelect tinytext; ! ALTER TABLE ofirst_members ADD COLUMN ProjectsSendTemplate tinytext; Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/projects/setup/setup.mysql,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** setup.mysql 13 Oct 2003 23:16:04 -0000 1.8 --- setup.mysql 23 Nov 2003 14:56:28 -0000 1.9 *************** *** 4,9 **** CREATE TABLE `ofirst_projects_projects` ( `ID` int(3) unsigned NOT NULL auto_increment, `ProjectName` tinytext, `GroupID` tinyint(3) default '0', `Completion` tinytext, `Description` text, `Assigned` text, `TarDate` text, `Dates` text, `Pend` tinytext, PRIMARY KEY (`ID`)) TYPE=MyISAM; CREATE TABLE `ofirst_projects_tasks` ( `ID` int(3) unsigned NOT NULL auto_increment, `TaskName` text, `ProjectID` tinytext, `GroupID` tinytext, `DateAssigned` text, `TarDate` text, `Description` text, `Assigned` text, `Dates` text, `Completion` tinytext, `Pend` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='projects',showonmenu='0',active='0',adminnavigation='<a href="$basepath/projects/admin/updatesetup.php">Update Service Setup</a>',modulenavigation='<a href="$basepath/projects/groups.php">Action Register</a> | <a href="$basepath/projects/mytask.php">My Tasks</a> | <a href="$basepath/projects/preferences.php">Preferences</a> | <a href="$basepath/projects/meetings.php">Meetings</a> | <a href="$basepath/projects/today.php">Todays Changes</a>',includes='projectsmodule.php'; ALTER TABLE ofirst_members ADD COLUMN ProjectsUpdates tinytext; ALTER TABLE ofirst_members ADD COLUMN ProjectsCommitSelect tinytext; ! ALTER TABLE ofirst_members ADD COLUMN ProjectsSendTemplate tinytext; \ No newline at end of file --- 4,9 ---- CREATE TABLE `ofirst_projects_projects` ( `ID` int(3) unsigned NOT NULL auto_increment, `ProjectName` tinytext, `GroupID` tinyint(3) default '0', `Completion` tinytext, `Description` text, `Assigned` text, `TarDate` text, `Dates` text, `Pend` tinytext, PRIMARY KEY (`ID`)) TYPE=MyISAM; CREATE TABLE `ofirst_projects_tasks` ( `ID` int(3) unsigned NOT NULL auto_increment, `TaskName` text, `ProjectID` tinytext, `GroupID` tinytext, `DateAssigned` text, `TarDate` text, `Description` text, `Assigned` text, `Dates` text, `Completion` tinytext, `Pend` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='projects',showonmenu='0',active='0',adminnavigation='<a href="$basepath/projects/admin/updatesetup.php">Update Service Setup</a>',modulenavigation='<a href="$basepath/projects/groups.php">Action Register</a> | <a href="$basepath/projects/mytask.php">My Tasks</a> | <a href="$basepath/projects/preferences.php">Preferences</a> | <a href="$basepath/projects/today.php">Todays Changes</a>',includes='projectsmodule.php'; ALTER TABLE ofirst_members ADD COLUMN ProjectsUpdates tinytext; ALTER TABLE ofirst_members ADD COLUMN ProjectsCommitSelect tinytext; ! ALTER TABLE ofirst_members ADD COLUMN ProjectsSendTemplate tinytext; |
From: <xt...@us...> - 2003-11-23 14:49:38
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv17212 Modified Files: index.php updates.php Log Message: Fix database functions so that multiple database types are usable. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/projects/index.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** index.php 1 Nov 2003 18:05:27 -0000 1.16 --- index.php 23 Nov 2003 14:49:34 -0000 1.17 *************** *** 56,60 **** <?php $groupquery = ofirst_dbquery("SELECT ID FROM ofirst_projects_groups;"); ! echo mysql_num_rows($groupquery); ?> </td> --- 56,60 ---- <?php $groupquery = ofirst_dbquery("SELECT ID FROM ofirst_projects_groups;"); ! echo ofirst_dbnum_rows($groupquery); ?> </td> *************** *** 65,69 **** <?php $projectquery = ofirst_dbquery("SELECT ID FROM ofirst_projects_projects;"); ! echo mysql_num_rows($projectquery); ?> </td> --- 65,69 ---- <?php $projectquery = ofirst_dbquery("SELECT ID FROM ofirst_projects_projects;"); ! echo ofirst_dbnum_rows($projectquery); ?> </td> *************** *** 74,78 **** <?php $taskquery = ofirst_dbquery("SELECT ID FROM ofirst_projects_tasks;"); ! echo mysql_num_rows($taskquery); ?> </td> --- 74,78 ---- <?php $taskquery = ofirst_dbquery("SELECT ID FROM ofirst_projects_tasks;"); ! echo ofirst_dbnum_rows($taskquery); ?> </td> *************** *** 83,87 **** <?php $notesquery = ofirst_dbquery("SELECT ID FROM ofirst_projects_notes;"); ! echo mysql_num_rows($notesquery); ?> </td> --- 83,87 ---- <?php $notesquery = ofirst_dbquery("SELECT ID FROM ofirst_projects_notes;"); ! echo ofirst_dbnum_rows($notesquery); ?> </td> Index: updates.php =================================================================== RCS file: /cvsroot/openfirst/projects/updates.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** updates.php 1 Nov 2003 18:26:38 -0000 1.11 --- updates.php 23 Nov 2003 14:49:34 -0000 1.12 *************** *** 30,34 **** include_once("../config/globals.php"); ! $mailgroupquery = ofirst_dbquery("SELECT * FROM ofirst_members WHERE ProjectsUpdates = 'On'") or die(mysql_error()); while($mailgroup = ofirst_dbfetch_object($mailgroupquery)){ --- 30,34 ---- include_once("../config/globals.php"); ! $mailgroupquery = ofirst_dbquery("SELECT * FROM ofirst_members WHERE ProjectsUpdates = 'On'") or die(ofirst_dberror()); while($mailgroup = ofirst_dbfetch_object($mailgroupquery)){ |
From: <xt...@us...> - 2003-11-23 14:49:38
|
Update of /cvsroot/openfirst/projects/admin In directory sc8-pr-cvs1:/tmp/cvs-serv17212/admin Modified Files: editgroups.php Log Message: Fix database functions so that multiple database types are usable. Index: editgroups.php =================================================================== RCS file: /cvsroot/openfirst/projects/admin/editgroups.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** editgroups.php 23 Oct 2003 13:24:28 -0000 1.7 --- editgroups.php 23 Nov 2003 14:49:34 -0000 1.8 *************** *** 64,68 **** if(isset($_POST['editmods'])){ ! ofirst_dbquery("UPDATE ofirst_projects_groups SET Moderators = '".$_POST['moderators']."' WHERE ID = '".$_GET['GroupID']."';") or die(mysql_error()); $group_query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups WHERE ID = '".$_GET['GroupID']."'"); --- 64,68 ---- if(isset($_POST['editmods'])){ ! ofirst_dbquery("UPDATE ofirst_projects_groups SET Moderators = '".$_POST['moderators']."' WHERE ID = '".$_GET['GroupID']."';") or die(ofirst_dberror()); $group_query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups WHERE ID = '".$_GET['GroupID']."'"); |
From: <xt...@us...> - 2003-11-23 14:49:01
|
Update of /cvsroot/openfirst/meetings In directory sc8-pr-cvs1:/tmp/cvs-serv17127 Modified Files: updates.php Log Message: Fix database functions so that multiple database types are usable. Index: updates.php =================================================================== RCS file: /cvsroot/openfirst/meetings/updates.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** updates.php 9 Nov 2003 20:31:41 -0000 1.1 --- updates.php 23 Nov 2003 14:48:56 -0000 1.2 *************** *** 43,47 **** for($groups as $group){ ! $mailgroupquery = ofirst_dbquery("SELECT * FROM ofirst_members WHERE cellphonesms = '1' AND division = '$group'") or die(mysql_error()); while($mailgroup = ofirst_dbfetch_object($mailgroupquery)){ --- 43,47 ---- for($groups as $group){ ! $mailgroupquery = ofirst_dbquery("SELECT * FROM ofirst_members WHERE cellphonesms = '1' AND division = '$group'") or die(ofirst_dberror()); while($mailgroup = ofirst_dbfetch_object($mailgroupquery)){ |
From: <xt...@us...> - 2003-11-23 14:42:20
|
Update of /cvsroot/openfirst/meetings/setup In directory sc8-pr-cvs1:/tmp/cvs-serv13124 Added Files: setup.mysql Removed Files: setup.mysql.txt Log Message: Fix error in naming of setup scripts preventing module installer from functioning as expected. --- NEW FILE: setup.mysql --- CREATE TABLE `ofirst_meetings` ( `ID` int(3) unsigned NOT NULL auto_increment, `NoteTaker` tinytext,`EndMinute` tinytext, `EndHour` tinytext, `CalledBy` tinytext, `SendReminder` tinytext, `Dates` text, `ForDate` text, `Description` text, `ArrangedFor` text, `AbsentList` text, `Notes` text, `Status` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET modulename='meetings',showonmenu='0',active='0',modulenavigation='<a href="$basepath/meetings/">Meeting Viewer</a>'; --- setup.mysql.txt DELETED --- |
From: <xt...@us...> - 2003-11-22 11:25:57
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv2442 Modified Files: updateprofile.php Log Message: Enhance profiles with the HTML editor (where available) and fix bug discovered by Stephanie Closs Index: updateprofile.php =================================================================== RCS file: /cvsroot/openfirst/members/updateprofile.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** updateprofile.php 9 Nov 2003 02:51:32 -0000 1.8 --- updateprofile.php 22 Nov 2003 11:25:13 -0000 1.9 *************** *** 83,87 **** } } ! echo("<br><font color='green'>Profile updated.</font>"); } --- 83,87 ---- } } ! $user = ofirst_dbfetch_object(ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='$user->user';")); echo("<br><font color='green'>Profile updated.</font>"); } *************** *** 91,95 **** <p>You may use this page to update your members profile. You should also: <a href="skills.php">update your skills list</a>.</p> ! <form action='updateprofile.php' method='post'> <table> <tr> --- 91,95 ---- <p>You may use this page to update your members profile. You should also: <a href="skills.php">update your skills list</a>.</p> ! <form action='updateprofile.php' onsubmit="return dhtmlEditorPrepareSubmit();" method='post'> <table> <tr> *************** *** 166,170 **** <td><input type='text' name='yim' value='<?php echo $user->yim; ?>'></td></tr> <tr> ! <th>Freeform Description</th><td><textarea name='description' cols="40" rows="10"><?php echo $user->description; ?></textarea></td> </tr> <tr> --- 166,176 ---- <td><input type='text' name='yim' value='<?php echo $user->yim; ?>'></td></tr> <tr> ! <th>Freeform Description</th><td> ! <?php if (function_exists("make_wysiwyg")) { ! make_wysiwyg("description",500,300,$user->description); ! } else { ! ?><textarea name="description" cols="40" rows="20">$user->description</textarea> ! <?php } ?> ! </td> </tr> <tr> |
From: <i-...@us...> - 2003-11-16 23:10:22
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv28059/config Modified Files: first.php Log Message: New option to disable cookie-based authentication as a system policy. Required for new version of auth.php. Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** first.php 1 Oct 2003 00:03:14 -0000 1.24 --- first.php 16 Nov 2003 23:09:39 -0000 1.25 *************** *** 42,45 **** --- 42,50 ---- if(is_writable("./globals.php")) { $of = fopen("./globals.php", "w"); + if(isset($_POST["cookielogins"])&&$_POST["cookielogins"]="yes"){ + $cookielogins=""; + }else{ + $cookielogins='$pass_save_disabled=true;'; + } fputs($of, "<?php /* *************** *** 72,75 **** --- 77,81 ---- ofirst_select_db(\$sqldatabase); + $cookielogins \$home = '" . $_POST["home"] . "'; \$header = '" . $_POST["header"] . "'; *************** *** 236,239 **** --- 242,248 ---- this should not have a trailing slash.</td> <td><input type="text" name="fbasepath" value="<?php chdir(".."); echo getcwd(); ?>"></td></tr> + <tr> + <td>Allow openFIRST users to save their passwords?</td> + <td><input type="checkbox" name="cookielogins" id="cookielogins" value="yes" checked><label for="cookielogins">Allowed</label></td></tr> <tr><td></td><td><input type="submit" value="Set up OpenFIRST"></td></tr> </table> |
From: <i-...@us...> - 2003-11-16 23:09:17
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv27891/config Modified Files: auth.php Log Message: Added "save password" functionality. Authenticates using cookies. This new option can be disabled during installation of openFIRST. Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/base/config/auth.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** auth.php 4 Nov 2003 22:52:50 -0000 1.9 --- auth.php 16 Nov 2003 23:08:34 -0000 1.10 *************** *** 77,82 **** <tr> <td> </td> ! <td><input type='submit' value='Login'></td> ! </tr> </table> </form><br><br>"); --- 77,85 ---- <tr> <td> </td> ! <td><input type='submit' value='Login'>"); ! if(!isset($GLOBALS["pass_save_disabled"])){ ! echo(" <input type=checkbox name=savepass id=savepass value=1 checked><label for=savepass>Save Password</label>"); ! } ! echo("</td></tr> </table> </form><br><br>"); *************** *** 87,110 **** // they have, set variables indicating this. If they have not, make a // note of this so that components requiring them to log in are disabled. ! ! if(isset($_SESSION['authcode'])) { ! $authcode = $_SESSION['authcode']; $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE authcode='$authcode';"); ! if(ofirst_dberrno() == 0 && ofirst_dbnum_rows($query) == 1) { $user = ofirst_dbfetch_object($query); } else { unset($_SESSION['authcode']); ! ! $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';"); ! if(ofirst_dberrno() == 0) { ! $user = ofirst_dbfetch_object($query); ! if(ofirst_dbnum_rows($query) == 1) { ! if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { ! session_register("authcode"); ! mt_srand(microtime() * 1000000); ! $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr($_SERVER["REMOTE_HOST"],0,40); ! $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); ! } else { ! unset($user); } } --- 90,126 ---- // they have, set variables indicating this. If they have not, make a // note of this so that components requiring them to log in are disabled. ! if((isset($_SESSION['authcode']))||(isset($_COOKIE["openFIRSTlogin"])&&!isset($pass_save_disabled))) { ! if(isset($_SESSION['authcode'])){ ! $authcode = $_SESSION['authcode']; ! }elseif(isset($_COOKIE["openFIRSTlogin"])&&$_COOKIE["openFIRSTlogin"]!=0){ ! $authcode = $_COOKIE["openFIRSTlogin"]; ! //renew cookie ! setcookie("openFIRSTlogin",$authcode,time()+2592000,"/"); ! } ! else{ ! $authcode=0; ! } $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE authcode='$authcode';"); ! if(ofirst_dberrno() == 0 && ofirst_dbnum_rows($query) == 1 && $authcode!=0 ) { $user = ofirst_dbfetch_object($query); } else { unset($_SESSION['authcode']); ! if(!isset($pass_save_disabled)){ ! //delete cookie ! setcookie("openFIRSTlogin"," ",time()-3600,"/"); ! } ! if(isset($_POST["login"])){ ! $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';"); ! if(ofirst_dberrno() == 0) { ! $user = ofirst_dbfetch_object($query); ! if(ofirst_dbnum_rows($query) == 1) { ! if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { ! session_register("authcode"); ! mt_srand(microtime() * 1000000); ! $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr($_SERVER["REMOTE_HOST"],0,40); ! $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); ! } else { ! unset($user); ! } } } *************** *** 122,125 **** --- 138,152 ---- $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr($_SERVER["REMOTE_HOST"],0,40); $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); + if(!isset($pass_save_disabled)){ + if(isset($_POST["savepass"])&&$_POST["savepass"]="1"){ + //save authcode in a cookie + setcookie("openFIRSTlogin",$_SESSION["authcode"],time()+2592000,"/"); + } + else{ + //delete cookie + setcookie("openFIRSTlogin"," ",time()-3600,"/"); + unset($_COOKIE["openFIRSTlogin"]); + } + } } else { unset($user); *************** *** 174,178 **** } } ! if(isset($user->user)) { $query = "UPDATE ofirst_members SET lastseen='" . date("h:i:s M d, Y") . "' WHERE user='$user->user';"; $q = ofirst_dbquery($query); --- 201,205 ---- } } ! if(isset($user->user)){ $query = "UPDATE ofirst_members SET lastseen='" . date("h:i:s M d, Y") . "' WHERE user='$user->user';"; $q = ofirst_dbquery($query); |
From: <dav...@us...> - 2003-11-12 01:41:13
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv24999 Modified Files: newgallery.php Log Message: Noticed it displays a timestamp at the top of the creation msg of the gallery. Index: newgallery.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/newgallery.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** newgallery.php 13 Oct 2003 18:00:27 -0000 1.8 --- newgallery.php 12 Nov 2003 01:41:09 -0000 1.9 *************** *** 43,47 **** mkdir("../".$gallerydir.$_POST['galleryname']."/thumbs",0777) or die("<br><br><center>Can't create folder! [ <a href='index.php'>Manage</a> ]"); - echo time(); ofirst_dbquery("INSERT INTO ofirst_photogallery_galleries (GalleryName, Author, Dates, Description) values( '".$_POST['galleryname']."', '".$user->user."', '".time()."', --- 43,46 ---- |
From: <dav...@us...> - 2003-11-12 00:23:45
|
Update of /cvsroot/openfirst/news/rss In directory sc8-pr-cvs1:/tmp/cvs-serv10368 Modified Files: rss.php Log Message: Fixed error with using mysql rather than ofirst functions. Index: rss.php =================================================================== RCS file: /cvsroot/openfirst/news/rss/rss.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** rss.php 11 Nov 2003 02:31:04 -0000 1.5 --- rss.php 12 Nov 2003 00:23:42 -0000 1.6 *************** *** 80,84 **** // Data for a single RSS item ! $query = ofirst_dbquery("SELECT * FROM ofirst_news LIMIT ".$limit) or die(mysql_error()); while($news = ofirst_dbfetch_object($query)){ --- 80,84 ---- // Data for a single RSS item ! $query = ofirst_dbquery("SELECT * FROM ofirst_news LIMIT ".$limit); while($news = ofirst_dbfetch_object($query)){ |
From: <dav...@us...> - 2003-11-11 02:31:07
|
Update of /cvsroot/openfirst/news/rss In directory sc8-pr-cvs1:/tmp/cvs-serv13546 Modified Files: rss.php Log Message: Fixed error with viewing all headlines related to the stream. Bug credit: myself :-p Index: rss.php =================================================================== RCS file: /cvsroot/openfirst/news/rss/rss.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** rss.php 22 Oct 2003 01:00:36 -0000 1.4 --- rss.php 11 Nov 2003 02:31:04 -0000 1.5 *************** *** 28,32 **** if(isset($_GET['headlines'])){ ! $limit = $_GET['headlines']; } else { $limit = 5; --- 28,36 ---- if(isset($_GET['headlines'])){ ! if($_GET['headlines'] == "all"){ ! $limit = 9999999; ! }else{ ! $limit = $_GET['headlines']; ! } } else { $limit = 5; *************** *** 76,80 **** // Data for a single RSS item ! $query = ofirst_dbquery("SELECT * FROM ofirst_news LIMIT ".$limit); while($news = ofirst_dbfetch_object($query)){ --- 80,84 ---- // Data for a single RSS item ! $query = ofirst_dbquery("SELECT * FROM ofirst_news LIMIT ".$limit) or die(mysql_error()); while($news = ofirst_dbfetch_object($query)){ |
From: <xt...@us...> - 2003-11-09 20:33:11
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv21812 Modified Files: index.php Log Message: Fix problems with news showing only 'Insert news here' despite other news being entered (bug credit: Stephanie Closs) Index: index.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/index.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** index.php 13 Oct 2003 17:59:50 -0000 1.13 --- index.php 9 Nov 2003 20:33:07 -0000 1.14 *************** *** 74,81 **** <?php if($dhtml){ ! echo('<input name="news2" type="button" id="news" value="Add News Item" onclick="dhtmlEditorPrepareSubmit(); document.NewsForm.submit();" />'); } else { ! echo('<input name="news2" type="submit" id="news" value="Add News Item" />'); } ?> --- 74,81 ---- <?php if($dhtml){ ! echo('<input name="news2" type="button" value="Add News Item" onclick="dhtmlEditorPrepareSubmit(); document.NewsForm.submit();" />'); } else { ! echo('<input name="news2" type="submit" value="Add News Item" />'); } ?> |
From: <dav...@us...> - 2003-11-09 20:31:45
|
Update of /cvsroot/openfirst/meetings In directory sc8-pr-cvs1:/tmp/cvs-serv21433 Modified Files: viewmeeting.php Added Files: updatelog.txt updates.php updatesetup.php Log Message: Added mail reminder system script and setup script. and log info file. --- NEW FILE: updatelog.txt --- ------------------------------------------------------------------------ Daily Project Updates Log ------------------------------------------------------------------------ --- NEW FILE: updates.php --- <?php /* * openFIRST.projects - updates.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * 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. * 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 * */ // Include globals and set header condense (not coded yet) include_once("../config/globals.php"); $meetquery = ofirst_dbquery("SELECT * FROM ofirst_meetings WHERE Status='wait'"); while($meeting = ofirst_dbfetch_object($meetquery)){ // Check if this meeting relates to the current date if(date("F j, Y",time()) == date("F j, Y",$meeting->ForDate)){ continue; } $message = "$title Meeting Reminder: You have a meeting today at <time>. Don't forget!"; $groups = explode(",",$meeting->ArrangedFor); for($groups as $group){ $mailgroupquery = ofirst_dbquery("SELECT * FROM ofirst_members WHERE cellphonesms = '1' AND division = '$group'") or die(mysql_error()); while($mailgroup = ofirst_dbfetch_object($mailgroupquery)){ if(! isset($mailgroup->email)){ continue; } mail($mailgroup->cellphonenumber."@".$mailgroup->cellphonecarrier,"Meeting Reminder",$message); echo "<br> Sent to: $mailgroup->cellphonenumber@$mailgroup->cellphonecarrier"; } } } ?> --- NEW FILE: updatesetup.php --- <?php /* * openFIRST.meetings - updatesetup.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * 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. * 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 * */ // Include globals and set header condense (not coded yet) include_once("../config/globals.php"); $header_condense = true; include_once($header); // Check if user is a member if(! isset($user->user)){ showlogin(); } else { if(isset($_POST['addtask'])){ $time = $_POST['when']; $when = $_POST['perform']; $script = $_POST['scriptlocation']; $engine = $_POST['engine']; if(isset($_POST['useoutput'])){ $output = "^>".getcwd()."\updatelog.txt"; } else { $output = ""; } $command = "at $time /every:$when $engine -f $script $output"; system($command,$message); echo "<br><br><b>Command returned:</b> "; echo $message; } ?> <h2>Meeting Reminder</h2> <table width="494" align="center"> <?php if($ostype == "windows"){ ?> <tr> <th><div align="center"><font color="#000000">Windows Update Setup</font></div></th> </tr> <tr> <td><p align="center"> <form method="POST" action="updatesetup.php"> <div align="center"> <p>Confirm Update Script Location:<br> <input name="scriptlocation" type="text" id="scriptlocation" value="<?php echo getcwd()."\updates.php"; ?>" size="70"> <br> <font size="1">(This value is automatically set, although please check to see if this<br> file location is correct.)</font></p> <p>Please note the location of your PHP engine:<br> <input name="engine" type="text" id="engine" value="c:\PHP\php.exe" size="50"> <br> <font size="1">(Some users may have to specify the loaction of their<br> PHP engine, if they have installed it in a different location) </font> </p> </div> <p align="center"> <input name="useoutput" type="checkbox" id="useoutput" value="checkbox"> Record update schedule task for review.</p> <p align="center">Perform Task: <select name="perform" id="perform"> <option value="M,T,W,Th,F,S,Su" selected>Daily</option> <option value="M,W,F,Su">Every 2 Days</option> <option value="Th,S">Every 3 Days</option> <option value="Th">Every 4 Days</option> <option value="F">Every 5 Days</option> <option value="S">Every 6 Days</option> <option value="Su">Weekly</option> </select> </p> <p align="center">Send Update At: <input name="when" type="text" id="when" value="24:00" size="10" maxlength="5"> <font size="2"><br> (Enter time using 24 hour clock time)</font></p> <p align="center"> <input name="addtask" type="submit" id="addtask" value="Add Update"> <input type="reset" name="Submit2" value="Reset"> </p> </form> <p align="left"><font size="2"><strong>Note:</strong> This update installer works by using the Microsoft Task Schedule Service. It automatically creates and performs the (at) command in cmd.exe .To view, edit, or remove this task you can use the schtasks command in cmd. To make sure this task will work, you<br> must make ensure that the schedule service is on. <strong>You must also ensure that the updatesetup.php script is set set as a user who has complete access to cmd</strong>, if this does not work then trying setting php.exe with a user. Read more about this in the Microsoft Help and Support option on your operating system or on the Windows website.</font><br> </p></td> </tr> <?php } else { ?> <tr> <th>Unix Crontab Setup</th> </tr> <tr> <td>Not implemented yet! </td> </tr> </table> <?php } } include_once($footer); ?> Index: viewmeeting.php =================================================================== RCS file: /cvsroot/openfirst/meetings/viewmeeting.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** viewmeeting.php 2 Nov 2003 21:06:13 -0000 1.2 --- viewmeeting.php 9 Nov 2003 20:31:41 -0000 1.3 *************** *** 1,5 **** <?php /* ! * openFIRST.projects - viewmeeting.php * * Copyright (C) 2003, --- 1,5 ---- <?php /* ! * openFIRST.meetings - viewmeeting.php * * Copyright (C) 2003, |
From: <dav...@us...> - 2003-11-09 02:51:35
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv958 Modified Files: adduser.php divisions.php profile.php updateprofile.php Log Message: Minor design changes that I felt need to be made. Index: adduser.php =================================================================== RCS file: /cvsroot/openfirst/members/adduser.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** adduser.php 23 Aug 2003 20:31:16 -0000 1.5 --- adduser.php 9 Nov 2003 02:51:32 -0000 1.6 *************** *** 26,103 **** * */ include("../config/globals.php"); include($header); if($user->membertype == "administrator") { if(isset($_POST["team"]) == true) { $user = $_POST["user"]; $firstname=$_POST["firstname"]; $lastname = $_POST["lastname"]; if($_POST["password"] == $_POST["password2"]) { if(isset($_POST["ndivision"]) == true && $_POST["ndivision"] != "") { $_POST["division"] = $_POST["ndivision"]; $q = ofirst_dbquery("INSERT INTO ofirst_divisions (division, description) VALUES ( ! '" . $_POST["division"] . "', '" . $_POST["divisiondescription"] . "');"); ! } ! $q = ofirst_dbquery("INSERT INTO ofirst_members (user, firstname, ! lastname, password, membertype, division, year, email, icq, aim, msn, ! yim, description, signature, picturelocation, team, dateregistered) ! VALUES ('". $_POST["user"] ."', '" . $_POST["firstname"] . "', ! '" . $_POST["lastname"] . "', '" . cryptpassword($_POST["password"], ! $encryption) . "', '" . $_POST["membertype"] ."', '" . ! $_POST["division"] . "', '" . $_POST["year"] . "', '" . ! $_POST["email"] . "', '" . $_POST["icq"] . "', '" . $_POST["aim"] . ! "', '" . $_POST["msn"] . "', '". $_POST["yim"] ."', '" . ! $_POST["description"] . "', '" . $_POST["signature"] . "', '" . ! $_POST["picturelocation"] . "', '" . $_POST["team"] . "', '" . ! date("Y-m-d") . "');"); ! echo("Added user: " . $_POST["user"]); ! } else { ! echo("Password does not match confirm password."); ! } ! } ?> <h1>Add Users</h1> <p>This utility will add users to the members area.</p> ! <table> ! <form method="post" action="adduser.php"> ! <tr> ! <th>Team Number</th> ! <td><input type="text" name="team" /></td> ! </tr> ! <tr> ! <th>User Name</th> ! <td><input type="text" name="user" /></td> ! </tr> ! <tr> ! <th>First Name</th> ! <td><input type="text" name="firstname" /></td> ! </tr> ! <tr> ! <th>Last Name</th> ! <td><input type="text" name="lastname" /></td> ! </tr> ! <tr> ! <th>Password</th> ! <td><input type="password" name="password" /></td> ! </tr> ! <tr> ! <th>Confirm Password</th> ! <td><input type="password" name="password2" /></td> ! </tr> ! <tr> ! <th>Member Type</th> ! <td> ! <select name="membertype"> ! <option value="administrator">Administrator</option> ! <option value="user" selected="selected">User</option> ! </select> ! </td> ! </tr> ! <tr> ! <th>Division</th> ! <td>Existing: ! <br><select name="division"> ! <?php $div = ofirst_dbquery("SELECT division FROM ofirst_divisions;"); while($d = ofirst_dbfetch_object($div)) { --- 26,127 ---- * */ + // Include system globals and headers include("../config/globals.php"); include($header); + // Check if member registering is an administrator if($user->membertype == "administrator") { + + // Make sure the team value is filled if(isset($_POST["team"]) == true) { + $user = $_POST["user"]; $firstname=$_POST["firstname"]; $lastname = $_POST["lastname"]; + + // Make sure password is the same as confirm password if($_POST["password"] == $_POST["password2"]) { + + // If new division is set then create it if(isset($_POST["ndivision"]) == true && $_POST["ndivision"] != "") { $_POST["division"] = $_POST["ndivision"]; $q = ofirst_dbquery("INSERT INTO ofirst_divisions (division, description) VALUES ( ! '" . $_POST["division"] . "', ! '" . $_POST["divisiondescription"] . "');"); ! } ! ! // Insert user data into the database ! ofirst_dbquery("INSERT INTO ofirst_members (user, firstname, ! lastname, password, membertype, division, year, email, icq, aim, msn, ! yim, description, signature, picturelocation, team, dateregistered) ! VALUES ( ! '". $_POST["user"] ."', ! '" . $_POST["firstname"] . "', ! '" . $_POST["lastname"] . "', ! '" . cryptpassword($_POST["password"],$encryption) . "', ! '" . $_POST["membertype"] ."', ! '" . $_POST["division"] . "', ! '" . $_POST["year"] . "', ! '" . $_POST["email"] . "', ! '" . $_POST["icq"] . "', ! '" . $_POST["aim"] . "', ! '" . $_POST["msn"] . "', ! '" . $_POST["yim"] ."', ! '" . $_POST["description"] . "', ! '" . $_POST["signature"] . "', ! '" . $_POST["picturelocation"] . "', ! '" . $_POST["team"] . "', ! '" . date("Y-m-d") . "');"); ! ! echo("<br><br>Added user: " . $_POST["user"] . "<br><br>"); ! } else { ! echo("<br><br>Password does not match confirm password.<br><br>"); ! } ! } ?> <h1>Add Users</h1> <p>This utility will add users to the members area.</p> ! <table width="484"> ! <form method="post" action="adduser.php"> ! <tr> ! <th> </th> ! <th>User Information</th> ! </tr> ! <tr> ! <th width="177">Team Number</th> ! <td width="295"><input type="text" name="team" /></td> ! </tr> ! <tr> ! <th>User Name</th> ! <td><input type="text" name="user" /></td> ! </tr> ! <tr> ! <th>First Name</th> ! <td><input type="text" name="firstname" /></td> ! </tr> ! <tr> ! <th>Last Name</th> ! <td><input type="text" name="lastname" /></td> ! </tr> ! <tr> ! <th>Password</th> ! <td><input type="password" name="password" /></td> ! </tr> ! <tr> ! <th>Confirm Password</th> ! <td><input type="password" name="password2" /></td> ! </tr> ! <tr> ! <th>Member Type</th> ! <td> <select name="membertype"> ! <option value="administrator">Administrator</option> ! <option value="user" selected="selected">User</option> ! </select> </td> ! </tr> ! <tr> ! <th>Division</th> ! <td>Existing: <br> <select name="division"> ! <?php ! // Check divisions in database $div = ofirst_dbquery("SELECT division FROM ofirst_divisions;"); while($d = ofirst_dbfetch_object($div)) { *************** *** 105,157 **** } ?> ! </select> ! <br>New ! <br><input type="text" name="ndivision" /> ! <br>Description of New Division ! <br><input type="text" name="divisiondescription" /> ! </td> ! </tr> ! <tr> ! <th>Year</th> ! <td><input type="text" name="year" value="<?php echo(date("Y")); ?>" /></td> ! </tr> ! <tr> ! <th>E-mail</th> ! <td><input type="text" name="email" /></td> ! </tr> ! <tr> ! <th>ICQ</th> ! <td><input type="text" name="icq" /></td> ! </tr> ! <tr> ! <th>AIM</th> ! <td><input type="text" name="aim" /></td> ! </tr> ! <tr> ! <th>MSN</th> ! <td><input type="text" name="msn" /></td> ! </tr> ! <tr> ! <th>YIM</th> ! <td><input type="text" name="yim" /></td> ! </tr> ! <tr> ! <th>Description</th> ! <td><textarea name="description">I have not yet updated my profile.</textarea></td> ! </tr> ! <tr> ! <th>Signature</th> ! <td><textarea name="signature">-- ! Team Member</textarea></td> ! </tr> ! <tr> ! <th>Picture Location</th> ! <td><input type="text" name="picture" value="nophoto.png" /></td> ! </tr> ! <tr> ! <th>Take Action</th> ! <td><input type="submit" value="Add User" /> <input type="reset" value="Clear Details" /></td> ! </tr> ! </form> </table> --- 129,180 ---- } ?> ! </select> <br> ! New <br> <input type="text" name="ndivision" /> <br> ! Description of New Division <br> <input type="text" name="divisiondescription" /> ! </td> ! </tr> ! <tr> ! <th>Year</th> ! <td><input type="text" name="year" value="<?php echo(date("Y")); ?>" /></td> ! </tr> ! <tr> ! <th>E-mail</th> ! <td><input type="text" name="email" /></td> ! </tr> ! <tr> ! <th>ICQ</th> ! <td><input type="text" name="icq" /></td> ! </tr> ! <tr> ! <th>AIM</th> ! <td><input type="text" name="aim" /></td> ! </tr> ! <tr> ! <th>MSN</th> ! <td><input type="text" name="msn" /></td> ! </tr> ! <tr> ! <th>YIM</th> ! <td><input type="text" name="yim" /></td> ! </tr> ! <tr> ! <th>Description</th> ! <td><textarea name="description" cols="40" rows="10">I have not yet updated my profile.</textarea> ! <br> <font size="1">(Emoticons and HTML compatible)</font></td> ! </tr> ! <tr> ! <th>Signature</th> ! <td><textarea name="signature" cols="40" rows="5">--Team Member</textarea></td> ! </tr> ! <tr> ! <th>Picture Location</th> ! <td><input type="text" name="picture" /> <font size="1">(Leave blank for ! no photo)</font></td> ! </tr> ! <tr> ! <th>Take Action</th> ! <td><input type="submit" value="Add User" /> <input type="reset" value="Clear Details" /></td> ! </tr> ! </form> </table> Index: divisions.php =================================================================== RCS file: /cvsroot/openfirst/members/divisions.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** divisions.php 28 Sep 2003 14:05:42 -0000 1.4 --- divisions.php 9 Nov 2003 02:51:32 -0000 1.5 *************** *** 26,60 **** * */ include("../config/globals.php"); include($header); - ?> ! ! <h1>Divisions</h1> ! <?php if(isset($user->division) == true) { $division = $user->division; } ! if(isset($_GET["division"]) == true) { $division = $_GET["division"]; } ! if(isset($division) == true && $division != "") { ! $div = ofirst_dbfetch_object(ofirst_dbquery("SELECT * FROM ofirst_divisions WHERE division='$division';")); ! echo("<h2>$div->division</h2> ! <p>$div->description</p> ! <h2>$div->division Division Members</h2>"); ! $members = ofirst_dbquery("SELECT user, firstname, lastname, year, dateregistered, lastseen FROM ofirst_members WHERE division='$div->division';"); ! echo("<table> ! <tr><th>Full Name</th><th>Year</th><th>Date Registered</th><th>Last Seen</th></tr>"); ! while ($m = ofirst_dbfetch_object($members)) { ! echo("<tr><td><a ! href='profile.php?id=$m->user'>$m->firstname $m->lastname</a></td><td>$m->year</td><td>$m->dateregistered</td><td>$m->lastseen</td></tr>"); ! } ! } else { ! $d = ofirst_dbquery("SELECT * FROM ofirst_divisions;"); ! echo("<table>"); ! while ($div = ofirst_dbfetch_object($d)) { ! echo("<tr><th><a href='divisions.php?division=$div->division'>$div->division</a></th><td>$div->description</td></tr>"); ! } ! echo("</table>"); } ?> ! ! <?php ! include($footer); ?> --- 26,77 ---- * */ + // Include system globals and headers include("../config/globals.php"); include($header); ?> ! <h1>Team Divisions/Groups</h1> ! <?php ! // Display information regarding division if(isset($user->division) == true) { $division = $user->division; } ! if(isset($_GET["division"]) == true) { $division = $_GET["division"]; } ! if(isset($division) == true && $division != "") { ! $div = ofirst_dbfetch_object(ofirst_dbquery("SELECT * FROM ofirst_divisions WHERE division='$division';")); ! ?> ! ! <table width="313"> ! <tr> ! <th><?php echo $div->division; ?></th> ! </tr> ! <tr> ! <td><?php echo $div->description; ?></td> ! </tr> ! </table> ! ! <h2><?php echo $div->division; ?> Members</h2> ! <table> ! <tr> ! <th>Full Name</th> ! <th>Year</th> ! <th>Date Registered</th> ! <th>Last Seen</th> ! </tr> ! <?php ! // Loop through and display all members ! $members = ofirst_dbquery("SELECT user, firstname, lastname, year, dateregistered, lastseen FROM ofirst_members WHERE division='$div->division';"); ! while ($m = ofirst_dbfetch_object($members)) { ! echo("<tr><td><a href='profile.php?id=$m->user'>$m->firstname $m->lastname</a></td><td>$m->year</td><td>$m->dateregistered</td><td>$m->lastseen</td></tr>"); ! } ! ?> ! </table> ! <?php } else { ?> ! <table> ! <?php ! // List divisions ! $d = ofirst_dbquery("SELECT * FROM ofirst_divisions;"); ! while ($div = ofirst_dbfetch_object($d)) { ! echo("<tr><th><a href='divisions.php?division=$div->division'>$div->division</a></th><td>$div->description</td></tr>"); ! } } ?> ! </table><br> ! <?php include($footer); ?> Index: profile.php =================================================================== RCS file: /cvsroot/openfirst/members/profile.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** profile.php 16 Oct 2003 22:49:04 -0000 1.17 --- profile.php 9 Nov 2003 02:51:32 -0000 1.18 *************** *** 26,91 **** * */ ! include("../config/globals.php"); include($header); ?> ! <h1>Members Profiles</h1> ! <?php ! function status($n) { ! if($n == "1") { ! return("Minimal Skill"); ! } elseif($n == "2") { ! return("Not quite mediocre"); ! } elseif($n == "3") { ! return("Mediocre"); ! } elseif($n == "4") { ! return("Competent"); ! } elseif($n == "5") { ! return("Above Average"); ! } elseif($n == "6") { ! return("Professional"); ! } ! } ! if(isset($_GET["action"]) == true && $_GET["action"] == "skillsearch") { ! $extra = " AND skills IS NOT NULL AND skills like '%" . $_GET["skill"] . "|" . $_GET["level"] . "%'"; ! } ! ! if(isset($_GET["id"]) == false) { ! ! ! ?> ! <table> ! <tr><th>Search by Skills</th><td><form action="profile.php" method="get"> ! <input type="hidden" value="skillsearch" name="action"> ! Find someone with ! <select name='level'> ! <option value='0' selected='selected'>No skill</option> ! <option value='1'>Minimal</option> ! <option value='2'>Not quite mediocre</option> ! <option value='3'>Mediocre</option> ! <option value='4'>Competent</option> ! <option value='5'>Above Average</option> ! <option value='6'>Professional</option> ! </select> ! at ! ! <select name='skill'> ! <?php ! $skills = array('Languages', 'Computer-Programming', 'Hands-on-Skills', 'Fundraising', ! 'Creativity', 'Organization', 'Time-Management', 'Research', 'Computer-Aided-Design', 'Teaching', ! 'Mentorship'); ! for($y = 0; $y < count($skills); $y++) { echo("<option value='" . $skills[$y] . "'>" . $skills[$y] . "</option>"); } ! ?> ! </select> ! ! <input type="submit" value="Search"></form></td></tr> ! </table> ! ! <br> ! <table> ! <tr> <th><a href="profile.php?orderby=user">Nick Name</a></th> <th><a href="profile.php?orderby=email">E-mail</a></th> --- 26,68 ---- * */ ! // Include system globals and headers include("../config/globals.php"); include($header); ?> ! <h1>Members Profiles</h1> ! <?php if(isset($_GET["id"]) == false) { ?> ! <table> ! <tr> ! <th>Search by Skills</th> ! <td><form action="profile.php" method="get"> ! <input type="hidden" value="skillsearch" name="action"> ! Find someone with ! <select name='level'> ! <option value='0' selected='selected'>No skill</option> ! <option value='1'>Minimal</option> ! <option value='2'>Not quite mediocre</option> ! <option value='3'>Mediocre</option> ! <option value='4'>Competent</option> ! <option value='5'>Above Average</option> ! <option value='6'>Professional</option> ! </select> at ! ! <select name='skill'> ! <?php ! // Declare types of different skills avaiable ! $skills = array('Languages', 'Computer-Programming', 'Hands-on-Skills', 'Fundraising', ! 'Creativity', 'Organization', 'Time-Management', 'Research', 'Computer-Aided-Design', 'Teaching', ! 'Mentorship'); ! // Loop through and view these skills for($y = 0; $y < count($skills); $y++) { echo("<option value='" . $skills[$y] . "'>" . $skills[$y] . "</option>"); } ! ?> ! </select> ! <input type="submit" value="Search"></form></td></tr> ! </table> ! <br> ! <table> ! <tr> <th><a href="profile.php?orderby=user">Nick Name</a></th> <th><a href="profile.php?orderby=email">E-mail</a></th> *************** *** 95,106 **** <th><a href="profile.php?orderby=picturelocation">Photo</a></th> </tr> ! <?php if(! isset($_GET["orderby"])) { $_GET["orderby"] = "user"; } ! if(isset($extra) == true && $extra != "") { $query = ofirst_dbquery("SELECT * FROM ofirst_members where " . $_GET["orderby"] . " is NOT NULL $extra ORDER BY " . $_GET["orderby"] . ";"); ! } else { ! $query = ofirst_dbquery("SELECT * FROM ofirst_members where " . $_GET["orderby"] . " is NOT NULL ORDER BY " . $_GET["orderby"] . ";"); ! } ! while($q = ofirst_dbfetch_object($query)) { echo "<td><a href='profile.php?id=$q->user'>$q->user</a></td>"; if($q->email != "") { echo("<td><img src='email.png' alt='email available' /></td>"); } else { echo("<td><img src='email-none.png' alt='email available' /></td>"); } --- 72,89 ---- <th><a href="profile.php?orderby=picturelocation">Photo</a></th> </tr> ! <?php ! // Check if skills have been selected to search for ! if(isset($_GET["action"]) == true && $_GET["action"] == "skillsearch") { ! $extra = " AND skills IS NOT NULL AND skills like '%" . $_GET["skill"] . "|" . $_GET["level"] . "%'"; ! } ! //Check if skills have been selected to order by if(! isset($_GET["orderby"])) { $_GET["orderby"] = "user"; } ! if(isset($extra) == true && $extra != "") { $query = ofirst_dbquery("SELECT * FROM ofirst_members where " . $_GET["orderby"] . " is NOT NULL $extra ORDER BY " . $_GET["orderby"] . ";"); ! } else { ! $query = ofirst_dbquery("SELECT * FROM ofirst_members where " . $_GET["orderby"] . " is NOT NULL ORDER BY " . $_GET["orderby"] . ";"); ! } ! ! while($q = ofirst_dbfetch_object($query)) { echo "<td><a href='profile.php?id=$q->user'>$q->user</a></td>"; if($q->email != "") { echo("<td><img src='email.png' alt='email available' /></td>"); } else { echo("<td><img src='email-none.png' alt='email available' /></td>"); } *************** *** 110,133 **** if($q->picturelocation != "") { echo("<td><img src='photo.png' alt='photo available' /></td>"); }else{ echo("<td><img src='photo-none.png' alt='email available' /></td>"); } echo("</tr>"); } ! ?> ! </table> ! <br> ! <?php } else { $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='" . $_GET["id"] . "';"); while($q = ofirst_dbfetch_object($query)) { if (function_exists('emoticon_translate')) { $q->description = emoticon_translate($q->description); } ! ! echo("<table width='600'><tr><th></th><th width='70%'>Member Information</th></tr><tr><td style='vertical-align: top;'>"); ! if($q->picturelocation == "") { ! echo("<img src='nophoto.png' alt='No photograph provided'>"); ! } else { ! echo("<img src='$q->picturelocation' alt='$q->firstname $q->lastname' />"); ! } ! if ($q->skills == "") { $q->skills = "No skills entered."; } if ($q->description == "") { $q->description = "No description entered."; } if ($q->division == "") { $q->division = "No division given."; } --- 93,138 ---- if($q->picturelocation != "") { echo("<td><img src='photo.png' alt='photo available' /></td>"); }else{ echo("<td><img src='photo-none.png' alt='email available' /></td>"); } echo("</tr>"); + } ! ?> ! </table><br> ! <?php } else { + + // Function to return status of a skill + function status($n) { + switch($n){ + case "1": + return("Minimal Skill"); + break; + case "2": + return("Not quite mediocre"); + break; + case "3": + return("Mediocre"); + break; + case "4": + return("Competent"); + break; + case "5": + return("Above Average"); + break; + case "6": + return("Professional"); + break; + } + } + + // Collect information to display in persons profile $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='" . $_GET["id"] . "';"); while($q = ofirst_dbfetch_object($query)) { + // Replace values for members profile description if (function_exists('emoticon_translate')) { $q->description = emoticon_translate($q->description); } ! ! // Replace values for display if information is not present ! if ($q->skills == "") { $q->skills = "No skills entered."; } if ($q->description == "") { $q->description = "No description entered."; } if ($q->division == "") { $q->division = "No division given."; } *************** *** 138,200 **** if ($q->lastseen == "") { $q->lastseen = "$q->firstname has never logged in."; } ! echo("</td><td><h2>$q->user</h2> ! <sub>Real Name: $q->firstname $q->lastname ! <br />Member since: $q->dateregistered ! <br />Last seen logged in: $q->lastseen</sub> ! <p> ! Division: <a href='divisions.php?division=$q->division'>$q->division</a> ! <br /> ! </p> ! ! <h3>Contact Information</h3> ! <p> ! <img src='email.png' alt='E-mail address' />: <a href='mailto: $q->email'>$q->email</a> ! <br /><img src='icq.png' alt='I Seek You (ICQ) Number' />: $q->icq ! "); ! if ($q->icq != "" && $q->icq != "0") { ! echo("<img src=\"http://wwp.icq.com/scripts/online.dll?icq=$q->icq&img=5\" alt=\"User status\" />"); } else { ! echo("none"); ! } ! echo("<br /><img src='msmsgs.png' alt='Microsoft Network: Messenger address' />: $q->msn"); ! if($q->msn == "") { ! echo("none"); ! } ! echo("<br /><img src='aim.png' alt='AOL Instant Messenger address' />: "); ! if ($q->aim != "") { ! echo("<a href='aim:goim?screenname=$q->aim&message=Hello+$q->firstname+$q->lastname,+I+was+just+browsing+your+profile+when+I+noticed+you+had+AIM.'>$q->aim</a>"); } else { ! echo("none"); ! } ! echo("<br /><img src='yahoo.png' alt='Yahoo! Messenger address' />: <a href='http://edit.yahoo.com/config/send_webmesg?.target=$q->yim&.src=pg'>$q->yim</a> "); ! if ($q->yim != "") { ! echo("<img src=\"http://opi.yahoo.com/online?u=$q->yim&m=g&t=1\" alt=\"User status\" />"); } else { ! echo("none"); ! } ! echo("</p> ! ! <h3>Description</h3> ! <p> ! $q->description ! </p> ! <h3>Skills</h3> ! <p>"); ! if(isset($q->skills)){ ! $skill = explode(",", $q->skills); ! echo "<table width='300'>"; ! for($y = 0; $y < count($skill); $y++) { $det = explode("|",$skill[$y]); ! echo("<tr><td>$det[0] - " . status($det[1]) . "</td></tr>"); ! } ! echo "</table>"; ! }else{ ! echo "No skills entered."; ! } ! echo("</p></td></tr></table>"); ! } } ! include($footer); ?> --- 143,266 ---- if ($q->lastseen == "") { $q->lastseen = "$q->firstname has never logged in."; } ! ?> ! <table width='600'> ! <tr> ! <th> </th> ! <th width='70%'>Member Information</th> ! </tr> ! <tr> ! <td style='vertical-align: top;'><br> ! <?php ! // Do not display an image if not available ! if($q->picturelocation == "") { ! echo("<center>No photograph provided!</center>"); ! } else { ! echo("<center><img src='$q->picturelocation' alt='$q->firstname $q->lastname' /></center>"); ! } ! ?> ! </td> ! <td> ! <font size='6'><b><?php echo $q->user; ?></b></font><br> ! <sub> ! Real Name: <?php echo $q->firstname." ".$q->lastname; ?><br /> ! Member since: <?php echo $q->dateregistered; ?> <br /> ! Last seen logged in: <?php echo $q->lastseen?><br> ! Division: <a href='divisions.php?division=<?php echo $q->division; ?>'><?php echo $q->division; ?></a><br /> ! </sub> <br> ! <table width='325'> ! <tr> ! <th width="32"> </th> ! <th width="256">Contact Information</th> ! </tr> ! <tr> ! <td><div align="center"><img src='email.png' alt='E-mail address' /></div></td> ! <td><a href='mailto: <?php echo $q->email; ?>'><?php echo $q->email; ?></a></td> ! </tr> ! <td><div align="center"><img src='icq.png' alt='I Seek You (ICQ) Number' /></div></td> ! <td> ! <?php ! // Check if ICQ information is available ! if ($q->icq != "" && $q->icq != "0") { ! echo("echo $q->icq; (<img src=\"http://wwp.icq.com/scripts/online.dll?icq=$q->icq&img=5\" alt=\"User status\" />)"); } else { ! echo("No ICQ contact!"); ! } ! ?> ! </td> ! </tr> ! <tr> ! <td><div align="center"><img src='msmsgs.png' alt='Microsoft Network: Messenger address' /></div></td> ! <td> ! <?php ! // Check if MSN information is available ! if($q->msn == "") { ! echo("No MSN contact!"); } else { ! echo $q->msn; ! } ! ?> ! </td> ! </tr> ! <tr> ! <td><div align="center"><img src='aim.png' alt='AOL Instant Messenger address' /></div></td> ! <td> ! <?php ! // Check if AIM information is available ! if ($q->aim != "") { ! echo("<a href='aim:goim?screenname=$q->aim&message=Hello+$q->firstname+$q->lastname,+I+was+just+browsing+your+profile+when+I+noticed+you+had+AIM.'>$q->aim</a>"); } else { ! echo("No AIM contact!"); ! } ! ?> ! </td> ! </tr> ! <tr> ! <td><div align="center"><img src='yahoo.png' alt='Yahoo! Messenger address' /></div></td> ! <td> ! <?php ! // Check if YIM information is available ! echo("<a href='http://edit.yahoo.com/config/send_webmesg?.target=$q->yim&.src=pg'>$q->yim</a>"); ! if ($q->yim != "") { ! echo("<img src=\"http://opi.yahoo.com/online?u=$q->yim&m=g&t=1\" alt=\"User status\" />"); ! } else { ! echo("No YIM contact!"); ! } ! ?> ! </td> ! </tr> ! </table> ! <table width="325"> ! <tr> ! <th>Description</th> ! </tr> ! <tr> ! <td><?php echo $q->description; ?></td> ! </tr> ! </table> ! <table width="325"> ! <tr> ! <th width="292">Skills</th> ! </tr> ! <?php ! // List skills neatly into a table ! if(isset($q->skills)){ ! $skill = explode(",", $q->skills); ! ! for($y = 0; $y < count($skill); $y++) { $det = explode("|",$skill[$y]); ! echo("<tr><td><b>$det[0]</b> - ".status($det[1])."</td></tr>\n"); ! } ! ! }else{ ! echo "<tr><td>No skills entered.</td></tr>\n"; ! } ! ?> ! </table> ! </td></tr></table> ! <?php } } ! include($footer); ! ?> \ No newline at end of file Index: updateprofile.php =================================================================== RCS file: /cvsroot/openfirst/members/updateprofile.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** updateprofile.php 2 Nov 2003 16:28:09 -0000 1.7 --- updateprofile.php 9 Nov 2003 02:51:32 -0000 1.8 *************** *** 26,33 **** * */ include("../config/globals.php"); include($header); ! if(isset($user->user)) { if (isset($_POST["firstname"]) == true) { --- 26,38 ---- * */ + // Include system globals and headers include("../config/globals.php"); include($header); ! // Check if user is a member ! if(! isset($user->user)) { ! showlogin(); ! } ! if (isset($_POST["firstname"]) == true) { *************** *** 38,55 **** } ! if($_POST["cellphonesms"] == "0") { ! $_POST["cellphonesms"] = true; ! $user->cellphonesms = "1"; ! } else { ! $_POST["cellphonesms"] = false; ! $user->cellphonesms = "0"; ! } ! if(isset($_POST["sendsmstestmessage"]) && $user->cellphonesms == true) { ! mail($_POST["cellphonenumber"] . "@" . $_POST["cellphonecarrier"], "SMS Test", "This is the test message you requested from $title."); ! echo("A test SMS Message has been sent, it should arrive soon, depending on the speed of your carrier's system."); ! } ! $query = "UPDATE ofirst_members SET firstname='" . $_POST["firstname"] . "', lastname='" . $_POST["lastname"] . "', --- 43,60 ---- } ! if($_POST["cellphonesms"] == "0") { ! $_POST["cellphonesms"] = true; ! $user->cellphonesms = "1"; ! } else { ! $_POST["cellphonesms"] = false; ! $user->cellphonesms = "0"; ! } ! if(isset($_POST["sendsmstestmessage"]) && $user->cellphonesms == true) { ! mail($_POST["cellphonenumber"] . "@" . $_POST["cellphonecarrier"], "SMS Test", "This is the test message you requested from $title."); ! echo("<br><br> A test SMS Message has been sent, it should arrive soon, depending on the speed of your carrier's system."); ! } ! $query = "UPDATE ofirst_members SET firstname='" . $_POST["firstname"] . "', lastname='" . $_POST["lastname"] . "', *************** *** 75,79 **** echo("<br><br>Password Changed. "); } elseif ($_POST["password"] != $_POST["cpassword"]) { ! echo("<br><br>The password and confirm password fields do not match."); } } --- 80,84 ---- echo("<br><br>Password Changed. "); } elseif ($_POST["password"] != $_POST["cpassword"]) { ! echo("<br><br>The password and confirm password fields do not match."); } } *************** *** 83,148 **** ?> ! <h1>Update Profile</h1> ! <p>You may use this page to update your members profile. You should also: <a href="skills.php">update your skills list</a>.</p> ! <form action='updateprofile.php' method='post'> ! <table> ! <tr> <th> </th> <th>Content</th></tr> ! <?php ! echo("<tr><th>Username</th><td>$user->user</td></tr> ! <tr><th>First Name</th><td><input type='text' name='firstname' value='$user->firstname' /></td></tr> ! <tr><th>Last Name</th><td><input type='text' name='lastname' value='$user->lastname' /></td></tr> ! <tr><th>Password</th><td><input type='password' name='password' value='' /></td></tr> ! <tr><th>Confirm Password</th><td><input type='password' name='cpassword' value='' /></td></tr> ! <tr><th>Division</th><td> ! Existing: ! <br><select name='division'>"); ! $div = ofirst_dbquery("SELECT division FROM ofirst_divisions;"); ! while($d = ofirst_dbfetch_object($div)) { ! echo("<option value='$d->division'"); ! if($d->division == $user->division) { echo(" selected='selected'"); } echo(">$d->division</option>"); } ! echo("</select> ! <br>New ! <br><input type='text' name='ndivision' /> ! <br>Description of New Division ! <br><input type='text' name='divisiondescription' /></td></tr> ! <tr><th>Year</th><td><input type='text' name='year' value='$user->year'></td></tr> ! <tr><th>E-mail Address</th><td><input type='text' name='email' value='$user->email'></td></tr> ! <tr><th>Cell Phone/Pager Information</th><td> ! Number (10 digit)<input type='text' value='$user->cellphonenumber' name='cellphonenumber' maxlength='10'> ! <br>Carrier <select name='cellphonecarrier'>"); ! $query = ofirst_dbquery("SELECT * FROM ofirst_cellphonecarriers ORDER BY fullname;"); ! while($sms = ofirst_dbfetch_object($query)) { ! if(($user->smsaddress == "" && $sms->smsaddress == "txt.bellmobility.ca") || ($user->cellphonecarrier == $sms->smsaddress)) { ! echo("<option value='$sms->smsaddress' selected='selected'>$sms->fullname</option>\n"); ! } else { ! echo("<option value='$sms->smsaddress'>$sms->fullname</option>\n"); ! } ! } ! if($user->cellphonesms == "1") { ! echo("</select><br><input type='checkbox' checked='checked' value='0' name='cellphonesms'>Device is SMS Enabled"); ! } else { ! echo("</select><br><input type='checkbox' value='0' name='cellphonesms'>Device is SMS Enabled"); ! } ! echo("<br><input type='checkbox' value='on' name='sendsmstestmessage'>Send a test SMS message to my device</td></tr> ! <tr><th>ICQ Number</th><td><input type='text' name='icq' value='$user->icq'></td></tr> ! <tr><th>AIM Screenname</th><td><input type='text' name='aim' value='$user->aim'></td></tr> ! <tr><th>MSN Messenger Address</th><td><input type='text' name='msn' value='$user->msn'></td></tr> ! <tr><th>Yahoo! Instant Messenger Address</th><td><input type='text' name='yim' value='$user->yim'></td></tr> ! <tr><th>Freeform Description</th><td><textarea name='description'>$user->description</textarea></td></tr> ! <tr><th>Signature</th><td><textarea name='signature'>$user->signature</textarea></td></tr> ! <tr><th>Picture Location</th><td><input type='text' name='picturelocation' value='$user->picturelocation'></td></tr> ! "); ! ?> ! <tr><td></td><td><input type="submit" value="Update Profile"> <input type="reset" value="Reset Profile"> ! </table> ! </form> <?php ! } else { ! showlogin(); ! } ! include($footer); ?> --- 88,186 ---- ?> ! <h1>Update Profile</h1> ! <p>You may use this page to update your members profile. You should also: <a href="skills.php">update your skills list</a>.</p> ! <form action='updateprofile.php' method='post'> ! <table> ! <tr> <th> </th> <th>Content</th></tr> ! <tr><th>Username</th><td><?php echo $user->user; ?></td></tr> ! <tr><th>First Name</th><td><input type='text' name='firstname' value='<?php echo $user->firstname; ?>' /></td></tr> ! <tr><th>Last Name</th><td><input type='text' name='lastname' value='<?php echo$user->lastname; ?>' /></td></tr> ! <tr><th>Password</th><td><input type='password' name='password' value='' /></td></tr> ! <tr><th>Confirm Password</th><td><input type='password' name='cpassword' value='' /></td></tr> ! <tr><th>Division</th> ! <td> ! Existing: ! <br><select name='division'> ! <?php ! $div = ofirst_dbquery("SELECT division FROM ofirst_divisions;"); ! while($d = ofirst_dbfetch_object($div)) { ! echo("<option value='$d->division'"); ! if($d->division == $user->division) { echo(" selected='selected'"); } echo(">$d->division</option>"); } ! ?> ! </select> ! <br> ! <br> ! <table width="75%"> ! <tr> ! <th>New Division</th> ! </tr> ! <tr> ! <td>Division Name<br> ! <input type='text' name='ndivision' /> <br> ! Description of New Division <br> <input type='text' name='divisiondescription' /></td> ! </tr> ! </table> </td> ! </tr> ! <tr><th>Year</th><td><input type='text' name='year' value='<?php echo $user->year; ?>'></td></tr> ! <tr><th>E-mail Address</th><td><input type='text' name='email' value='<?php echo $user->email; ?>'></td></tr> ! <tr><th>Cell Phone/Pager Information</th><td> ! Number (10 digit)<input type='text' value='<?php echo $user->cellphonenumber; ?>' name='cellphonenumber' maxlength='10'> ! <br>Carrier ! <select name='cellphonecarrier'> ! <?php ! // Populate cell phone carrier space ! $query = ofirst_dbquery("SELECT * FROM ofirst_cellphonecarriers ORDER BY fullname;"); ! while($sms = ofirst_dbfetch_object($query)) { ! if(($user->smsaddress == "" && $sms->smsaddress == "txt.bellmobility.ca") || ($user->cellphonecarrier == $sms->smsaddress)) { ! echo("<option value='$sms->smsaddress' selected='selected'>$sms->fullname</option>\n"); ! } else { ! echo("<option value='$sms->smsaddress'>$sms->fullname</option>\n"); ! } ! } ! ?> ! </select> ! <?php ! // Check user specified cell info ! if($user->cellphonesms == "1") { ! echo("</select><br><input type='checkbox' checked='checked' value='0' name='cellphonesms'>Device is SMS Enabled"); ! } else { ! echo("</select><br><input type='checkbox' value='0' name='cellphonesms'>Device is SMS Enabled"); ! } ! ?> ! <br><input type='checkbox' value='on' name='sendsmstestmessage'>Send a test SMS message to my device</td></tr> ! <tr> ! <th>ICQ Number</th><td><input type='text' name='icq' value='<?php echo $user->icq; ?>'></td> ! </tr> ! <tr> ! <th>AIM Screenname</th><td><input type='text' name='aim' value='<?php echo $user->aim; ?>'></td></tr> ! <tr> ! <th>MSN Messenger</th> ! <td><input type='text' name='msn' value='<?php echo $user->msn; ?>'></td></tr> ! <tr> ! <th>Yahoo! Instant Messenger</th> ! <td><input type='text' name='yim' value='<?php echo $user->yim; ?>'></td></tr> ! <tr> ! <th>Freeform Description</th><td><textarea name='description' cols="40" rows="10"><?php echo $user->description; ?></textarea></td> ! </tr> ! <tr> ! <th>Signature</th> ! <td><textarea name='signature' cols="40" rows="5"><?php echo $user->signature; ?></textarea></td> ! </tr> ! <tr> ! <th>Picture Location</th> ! <td><input type='text' name='picturelocation' value='<?php echo $user->picturelocation; ?>'></td> ! </tr> ! <tr> ! <td> </td> ! <td><input type="submit" value="Update Profile"> <input type="reset" value="Reset Profile"> ! </tr> ! </table> ! </form> <?php ! include($footer); ! ?> |
From: <i-...@us...> - 2003-11-04 22:52:56
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv9923/config Modified Files: auth.php Log Message: Fixed serious authentication bug. On systems where RAND_MAX is less than 500000 (used in the original script), for example, Windows, the generated Authcode was always the same for every user. The code has been fixed to generate more unique IDs. The remote host name is added to the end to ensure a unique ID. Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/base/config/auth.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** auth.php 15 Oct 2003 00:52:52 -0000 1.8 --- auth.php 4 Nov 2003 22:52:50 -0000 1.9 *************** *** 102,106 **** if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); ! $_SESSION["authcode"] = rand(1,50000000); $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); } else { --- 102,107 ---- if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); ! mt_srand(microtime() * 1000000); ! $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr($_SERVER["REMOTE_HOST"],0,40); $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); } else { *************** *** 118,122 **** if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); ! $_SESSION["authcode"] = rand(1,50000000); $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); } else { --- 119,124 ---- if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); ! mt_srand(microtime() * 1000000); ! $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr($_SERVER["REMOTE_HOST"],0,40); $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); } else { |
From: <i-...@us...> - 2003-11-02 21:33:01
|
Update of /cvsroot/openfirst/logger In directory sc8-pr-cvs1:/tmp/cvs-serv31440/logger Modified Files: track.php Log Message: Very minor HTML output syntax fix in form code Index: track.php =================================================================== RCS file: /cvsroot/openfirst/logger/track.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** track.php 23 Oct 2003 22:10:55 -0000 1.14 --- track.php 2 Nov 2003 21:32:58 -0000 1.15 *************** *** 57,61 **** if(function_exists("identify_browser")){ ?> <div><form action="<?php echo($_SERVER['PHP_SELF']); ?>"> ! <input id="useragent" name="useragent" type="checkbox" value="1" <?php if($browserid){ echo("checked"); } ?></input> <label for="useragent">Identify browser</label> <input name="ID" type="hidden" value="<?php echo($_GET['ID']); ?>"></input> --- 57,61 ---- if(function_exists("identify_browser")){ ?> <div><form action="<?php echo($_SERVER['PHP_SELF']); ?>"> ! <input id="useragent" name="useragent" type="checkbox" value="1" <?php if($browserid){ echo("checked"); } ?>></input> <label for="useragent">Identify browser</label> <input name="ID" type="hidden" value="<?php echo($_GET['ID']); ?>"></input> |
From: <i-...@us...> - 2003-11-02 21:15:26
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv28246/config Modified Files: footers.php Log Message: Minor bug fixes Index: footers.php =================================================================== RCS file: /cvsroot/openfirst/base/config/footers.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** footers.php 1 Nov 2003 18:23:33 -0000 1.9 --- footers.php 2 Nov 2003 21:15:23 -0000 1.10 *************** *** 10,14 **** <div> <div align="center">© Copyright 2002-2003 by <?php echo $title; ?>. ! All rights reserved.<?php if($user->membertype == "administrator"){ echo "<br><br>[ <a href='$home$basepath/config/index.php'>Administrator Options/ Configuration Area</a> ]"; } ?></div> </div> </td> --- 10,14 ---- <div> <div align="center">© Copyright 2002-2003 by <?php echo $title; ?>. ! All rights reserved.<?php if(isset($user->membertype)){if($user->membertype == "administrator"){ echo "<br><br>[ <a href='$basepath/config/index.php'>Administrator Options / Configuration Area</a> ]"; }} ?></div> </div> </td> |
From: <dav...@us...> - 2003-11-02 21:06:39
|
Update of /cvsroot/openfirst/meetings/setup In directory sc8-pr-cvs1:/tmp/cvs-serv26530 Modified Files: setup.mssql setup.mysql.txt Log Message: Setup options fixed. Index: setup.mssql =================================================================== RCS file: /cvsroot/openfirst/meetings/setup/setup.mssql,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** setup.mssql 1 Nov 2003 18:33:31 -0000 1.1.1.1 --- setup.mssql 2 Nov 2003 21:06:36 -0000 1.2 *************** *** 1,2 **** ! CREATE TABLE `ofirst_meetings` ( `ID` int(3) unsigned NOT NULL auto_increment, `Dates` text, `ForDate` text, `Description` text, `ArrangedFor` text, `AbsentList` text, `Notes` text, `Status` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET modulename='meetings',showonmenu='0',active='0',modulenavigation='<a href="$basepath/meetings/">Meeting Viewer</a>'; --- 1,2 ---- ! CREATE TABLE `ofirst_meetings` ( `ID` int(3) unsigned NOT NULL auto_increment, `NoteTaker` tinytext,`EndMinute` tinytext, `EndHour` tinytext, `CalledBy` tinytext, `SendReminder` tinytext, `Dates` text, `ForDate` text, `Description` text, `ArrangedFor` text, `AbsentList` text, `Notes` text, `Status` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET modulename='meetings',showonmenu='0',active='0',modulenavigation='<a href="$basepath/meetings/">Meeting Viewer</a>'; Index: setup.mysql.txt =================================================================== RCS file: /cvsroot/openfirst/meetings/setup/setup.mysql.txt,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** setup.mysql.txt 1 Nov 2003 18:33:31 -0000 1.1.1.1 --- setup.mysql.txt 2 Nov 2003 21:06:36 -0000 1.2 *************** *** 1,2 **** ! CREATE TABLE `ofirst_meetings` ( `ID` int(3) unsigned NOT NULL auto_increment, `Dates` text, `ForDate` text, `Description` text, `ArrangedFor` text, `AbsentList` text, `Notes` text, `Status` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET modulename='meetings',showonmenu='0',active='0',modulenavigation='<a href="$basepath/meetings/">Meeting Viewer</a>'; --- 1,2 ---- ! CREATE TABLE `ofirst_meetings` ( `ID` int(3) unsigned NOT NULL auto_increment, `NoteTaker` tinytext,`EndMinute` tinytext, `EndHour` tinytext, `CalledBy` tinytext, `SendReminder` tinytext, `Dates` text, `ForDate` text, `Description` text, `ArrangedFor` text, `AbsentList` text, `Notes` text, `Status` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET modulename='meetings',showonmenu='0',active='0',modulenavigation='<a href="$basepath/meetings/">Meeting Viewer</a>'; |
From: <dav...@us...> - 2003-11-02 21:06:17
|
Update of /cvsroot/openfirst/meetings In directory sc8-pr-cvs1:/tmp/cvs-serv26444 Modified Files: index.php viewmeeting.php Log Message: Minor updates to features. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/meetings/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.php 1 Nov 2003 18:33:28 -0000 1.1.1.1 --- index.php 2 Nov 2003 21:06:13 -0000 1.2 *************** *** 56,60 **** $fordate = strtotime($_POST['month']." ".$_POST['day'].",".$_POST['year']." ".$_POST['hour'].":".$_POST['minute']." ".$_POST['ampm']); ! // Put value into database ofirst_dbquery("INSERT INTO ofirst_meetings SET ForDate = '".$fordate."', --- 56,62 ---- $fordate = strtotime($_POST['month']." ".$_POST['day'].",".$_POST['year']." ".$_POST['hour'].":".$_POST['minute']." ".$_POST['ampm']); ! if(isset($_POST['sendreminder'])){ $sendreminder = "1"; }else{ $sendreminder = "0"; } ! ! // Put value into database ofirst_dbquery("INSERT INTO ofirst_meetings SET ForDate = '".$fordate."', *************** *** 63,68 **** AbsentList = 'none', Status = 'wait', Dates = '".time()."'") or die(ofirst_dberror()); ! echo "<br><br>Meeting created! [ <a href='meetings.php'>Meetings</a> ]<br><br>"; die(include_once($footer)); } --- 65,74 ---- AbsentList = 'none', Status = 'wait', + SendReminder = '$sendreminder', + CalledBy = '".$user->user."', + EndHour = '".$_POST['endhour']."', + EndMinute = '".$_POST['endminute']."', Dates = '".time()."'") or die(ofirst_dberror()); ! echo "<br><br>Meeting created! [ <a href='index.php'>Meetings</a> ]<br><br>"; die(include_once($footer)); } *************** *** 79,144 **** // Remove meeting information ofirst_dbquery("DELETE FROM ofirst_meetings WHERE ID = '".$_POST['project']."'") or die(ofirst_dberror()); ! echo "<br><br>Meetings removed! [ <a href='meetings.php'>Meetings</a> ]<br><br>"; die(include_once($footer)); } ! ?> ! <h2><font face="Verdana, Arial, Helvetica, sans-serif"> Meeting Organizer</font></h2> ! <p><font face="Verdana, Arial, Helvetica, sans-serif">Click on the image to view ! more infomation about the meeting.</font></p> <table width="57%"> ! <tr> <th>Upcoming Meetings</th> </tr> </table> <table width="57%"> ! <tr> <td class="sub" width="7%"> </td> <td class="sub" width="28%"><div align="left">Date</div></td> ! <td class="sub" width="65%"><div align="left">Arranged For</div></td> </tr> <?php - - // Check for meetings that have not passed yet $meetquery = ofirst_dbquery("SELECT * FROM ofirst_meetings WHERE Status='wait'"); while($meeting = ofirst_dbfetch_object($meetquery)){ - ?> ! <tr> <td><div align="center"><a href="viewmeeting.php?ID=<?php echo $meeting->ID; ?>"><img src="../members/icons/apps/date.png" width="32" height="32" border="0"></a></div></td> <td><?php echo date("F j, Y",$meeting->ForDate); ?></td> ! <td> ! <?php ! echo $meeting->ArrangedFor; ! ?> ! </td> </tr> <?php } - - // If there are no values then output a no value message if(ofirst_dbnum_rows($meetquery) == 0){ echo "<tr><td> </td><td> </td><td>There are no planned meetings!</td></tr>"; } - ?> </table> <br> <table width="57%"> ! <tr> <th>Past Meetings</th> </tr> </table> <table width="57%"> ! <tr> <td class="sub" width="7%"> </td> ! <td class="sub" width="28%"><div align="left">Date ! </th> ! </div> ! <td class="sub" width="65%"><div align="left">Arranged For ! </th> ! </div> ! </tr> <?php // Check for passed meetings and preview them --- 85,134 ---- // Remove meeting information ofirst_dbquery("DELETE FROM ofirst_meetings WHERE ID = '".$_POST['project']."'") or die(ofirst_dberror()); ! echo "<br><br>Meetings removed! [ <a href='index.php'>Meetings</a> ]<br><br>"; die(include_once($footer)); } ! ?> ! <h2> Meeting Organizer</h2> ! <p>Click on the image to view more infomation about the meeting.</p> <table width="57%"> ! <tr> <th>Upcoming Meetings</th> </tr> </table> <table width="57%"> ! <tr> <td class="sub" width="7%"> </td> <td class="sub" width="28%"><div align="left">Date</div></td> ! <td class="sub" width="65%"><div align="left">Arranged For Divisions</div></td> </tr> <?php $meetquery = ofirst_dbquery("SELECT * FROM ofirst_meetings WHERE Status='wait'"); while($meeting = ofirst_dbfetch_object($meetquery)){ ?> ! <tr> <td><div align="center"><a href="viewmeeting.php?ID=<?php echo $meeting->ID; ?>"><img src="../members/icons/apps/date.png" width="32" height="32" border="0"></a></div></td> <td><?php echo date("F j, Y",$meeting->ForDate); ?></td> ! <td><?php echo str_replace(",",", ",$meeting->ArrangedFor); ?></td> </tr> <?php } if(ofirst_dbnum_rows($meetquery) == 0){ echo "<tr><td> </td><td> </td><td>There are no planned meetings!</td></tr>"; } ?> </table> <br> <table width="57%"> ! <tr> <th>Past Meetings</th> </tr> </table> <table width="57%"> ! <tr> <td class="sub" width="7%"> </td> ! <td class="sub" width="28%"><div align="left">Date </th> </div> ! <td class="sub" width="65%"><div align="left">Arranged For Divisions</div></tr> <?php // Check for passed meetings and preview them *************** *** 146,183 **** while($meeting = ofirst_dbfetch_object($query)){ ?> ! <tr> ! <td><div align="center"><a href="viewmeeting.php?ID=<?php echo $meeting->ID; ?>"> ! <img src="../members/icons/apps/date.png" width="32" height="32" border="0"></a></div></td> <td><?php echo date("F j, Y",$meeting->ForDate); ?></td> ! <td> ! <?php ! echo $meeting->ArrangedFor; ! ?> ! </td> </tr> <?php } - - // If there are no values then output a message if(ofirst_dbnum_rows($query) == 0){ echo "<tr><td> </td><td> </td><td>There are no past meetings!</td></tr>"; } - ?> </table> <br> ! <?php if($user->membertype == "administrator"){ ?> ! <form onsubmit="return dhtmlEditorPrepareSubmit();" action='meetings.php' method='POST'> <table width="64%"> ! <tr> <th width="19%"> </th> <th width="31%">Plan New Meeting</th> </tr> ! <tr> ! <td valign="top"> ! <div align="right">Description:</div></td> ! <td> ! <?php ! // If the WYSIWYG function is set then use the WYSIWYG module if (function_exists("make_wysiwyg")) { --- 136,163 ---- while($meeting = ofirst_dbfetch_object($query)){ ?> ! <tr> ! <td><div align="center"><a href="viewmeeting.php?ID=<?php echo $meeting->ID; ?>"> ! <img src="../members/icons/apps/date.png" width="32" height="32" border="0"></a></div></td> <td><?php echo date("F j, Y",$meeting->ForDate); ?></td> ! <td><?php echo str_replace(",",", ",$meeting->ArrangedFor); ?></td> </tr> <?php } if(ofirst_dbnum_rows($query) == 0){ echo "<tr><td> </td><td> </td><td>There are no past meetings!</td></tr>"; } ?> </table> <br> ! <?php if($user->membertype == "administrator"){ ?><form onsubmit="return dhtmlEditorPrepareSubmit();" action='index.php' method='POST'> <table width="64%"> ! <tr> <th width="19%"> </th> <th width="31%">Plan New Meeting</th> </tr> ! <tr> ! <td valign="top"> <div align="right">Description:</div></td> ! <td> ! <?php // If the WYSIWYG function is set then use the WYSIWYG module if (function_exists("make_wysiwyg")) { *************** *** 190,194 **** </td> </tr> ! <tr> <td><div align="right">Meeting Date:</div></td> <td><select name="month" id="month"> --- 170,174 ---- </td> </tr> ! <tr> <td><div align="right">Meeting Date:</div></td> <td><select name="month" id="month"> *************** *** 207,212 **** <option>November</option> <option>December</option> ! </select> ! <select name="day" id="day"> <option selected><?php echo date("j",time()); ?></option> <option>----</option> --- 187,191 ---- <option>November</option> <option>December</option> ! </select> <select name="day" id="day"> <option selected><?php echo date("j",time()); ?></option> <option>----</option> *************** *** 243,247 **** <option>31</option> </select> ! , <select name="year" id="year"> <option selected><?php echo date("Y",time()); ?></option> --- 222,226 ---- <option>31</option> </select> ! , <select name="year" id="year"> <option selected><?php echo date("Y",time()); ?></option> *************** *** 255,272 **** <option>2009</option> <option>2010</option> </select> ! <input name="hour" type="text" id="hour" size="2"> ! : <input name="minute" type="text" id="minute" size="2"> ! <select name="ampm" id="ampm"> ! <option selected>AM</option> ! <option>PM</option> ! </select> </td> </tr> ! <tr> <td><div align="right">Arranged For:</div></td> ! <td><p> <select name="assign[]" size="6" multiple="multiple" style="width: 250px;" id="assign"> ! <?php ! // Output a list of current groups $divisionquery = ofirst_dbquery("SELECT * FROM ofirst_divisions;"); --- 234,258 ---- <option>2009</option> <option>2010</option> + </select> <input name="hour" type="text" id="hour" value="3" size="2"> + : + <input name="minute" type="text" id="minute" value="00" size="2"> <select name="ampm" id="ampm"> + <option>AM</option> + <option selected>PM</option> </select> ! to ! <input name="endhour" type="text" id="hour22" value="4" size="2"> ! : ! <input name="endminute" type="text" id="minute22" value="00" size="2"> ! </td> </tr> ! <tr> ! <td><div align="right">Meeting Called By:</div></td> ! <td><?php echo $user->user." (".$user->firstname." ".$user->lastname.")"; ?></td> ! </tr> ! <tr> <td><div align="right">Arranged For:</div></td> ! <td><p> <select name="assign[]" size="6" multiple="multiple" style="width: 250px;" id="assign"> ! <?php // Output a list of current groups $divisionquery = ofirst_dbquery("SELECT * FROM ofirst_divisions;"); *************** *** 277,296 **** ?> </select> ! <font size="2"></font></p></td> </tr> ! <tr> <td> </td> ! <td><input name="create" type="submit" id="create2" value="Create Meeting"> <input type="reset" name="Reset" value="Reset"> </td> </tr> ! <tr> <th> </th> <th>Remove Meeting</th> </tr> ! <tr> <td><div align="right">Meeting Date:</div></td> <td><select name="project" id="project"> ! <?php ! // Output a list of meetings by date $query = ofirst_dbquery("SELECT * FROM ofirst_meetings ORDER BY ForDate"); --- 263,287 ---- ?> </select> ! <br> ! </p></td> </tr> ! <tr> ! <td><div align="right">Send reminder messages to users by cell phone:</div></td> ! <td><input name="sendreminder" type="checkbox" id="sendreminder" value="checkbox"> ! <font size="1">(Featue must be enabled by administrator)</font></td> ! </tr> ! <tr> <td> </td> ! <td><input name="create" type="submit" id="create2" value="Create Meeting"> <input type="reset" name="Reset" value="Reset"> </td> </tr> ! <tr> <th> </th> <th>Remove Meeting</th> </tr> ! <tr> <td><div align="right">Meeting Date:</div></td> <td><select name="project" id="project"> ! <?php // Output a list of meetings by date $query = ofirst_dbquery("SELECT * FROM ofirst_meetings ORDER BY ForDate"); *************** *** 302,313 **** </select></td> </tr> ! <tr> ! <td><div align="right"> <input name="confirm" type="checkbox" id="confirm" value="checkbox"> </div></td> ! <td>Click here to confirm the removal of this meeting. Without checking the meeting will not be removed.</td> </tr> ! <tr> <td> </td> <td><input name="remove" type="submit" id="remove" value="Remove"></td> --- 293,304 ---- </select></td> </tr> ! <tr> ! <td><div align="right"> <input name="confirm" type="checkbox" id="confirm" value="checkbox"> </div></td> ! <td>Click here to confirm the removal of this meeting. Without checking the meeting will not be removed.</td> </tr> ! <tr> <td> </td> <td><input name="remove" type="submit" id="remove" value="Remove"></td> Index: viewmeeting.php =================================================================== RCS file: /cvsroot/openfirst/meetings/viewmeeting.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** viewmeeting.php 1 Nov 2003 18:33:31 -0000 1.1.1.1 --- viewmeeting.php 2 Nov 2003 21:06:13 -0000 1.2 *************** *** 57,62 **** Notes = '".$_POST['notes']."', AbsentList = '$absentlist', Status = 'done' WHERE ID = '".$_GET['ID']."'") or die(ofirst_dberror()); ! echo "<br><br>Meeting updated! [ <a href='meetings.php'>Meetings</a> ]<br><br>"; die(include_once($footer)); } --- 57,63 ---- Notes = '".$_POST['notes']."', AbsentList = '$absentlist', + NoteTaker = '".$user->user."', Status = 'done' WHERE ID = '".$_GET['ID']."'") or die(ofirst_dberror()); ! echo "<br><br>Meeting updated! [ <a href='index.php'>Meetings</a> ]<br><br>"; die(include_once($footer)); } *************** *** 69,90 **** <h2>Meeting Viewer</h2> <table width="64%"> ! <tr> <th width="24%"> </th> <th width="76%">Meeting for <?php echo date("F j, Y",$meeting->ForDate); ?></th> </tr> ! <tr> <td valign="top"> <div align="right"><strong>Description:</strong></div></td> <td><?php echo $meeting->Description; ?></td> </tr> ! <tr> <td><div align="right"><strong>Arranged For:</strong></div></td> ! <td><p> ! <?php ! ! // List people who meeting was arranged for ! echo $meeting->ArrangedFor; ! ! ?> ! </p></td> </tr> <?php --- 70,96 ---- <h2>Meeting Viewer</h2> <table width="64%"> ! <tr> <th width="24%"> </th> <th width="76%">Meeting for <?php echo date("F j, Y",$meeting->ForDate); ?></th> </tr> ! <tr> ! <td valign="top"><div align="right"><strong>Called By:</strong></div></td> ! <td>David Di Biase</td> ! </tr> ! <tr> <td valign="top"> <div align="right"><strong>Description:</strong></div></td> <td><?php echo $meeting->Description; ?></td> </tr> ! <tr> ! <td><div align="right"><strong>Called By:</strong></div></td> ! <td><?php echo $meeting->CalledBy; ?></td> ! </tr> ! <tr> ! <td><div align="right"><strong>Finishes at:</strong></div></td> ! <td><?php echo $meeting->EndHour.":".$meeting->EndMinute; ?></td> ! </tr> ! <tr> <td><div align="right"><strong>Arranged For:</strong></div></td> ! <td><?php echo str_replace(",",", ",$meeting->ArrangedFor); ?></td> </tr> <?php *************** *** 92,102 **** if($meeting->Status == "done"){ ?> ! <tr> <td><div align="right"><strong>Notes:</strong></div></td> <td><?php echo $meeting->Notes; ?></td> </tr> ! <tr> <td><div align="right"><strong>Absent List:</strong></div></td> ! <td><?php echo $meeting->AbsentList; ?></td> </tr> <?php } ?> --- 98,116 ---- if($meeting->Status == "done"){ ?> ! <tr> ! <th> </th> ! <th>Meeting Notes</th> ! </tr> ! <tr> <td><div align="right"><strong>Notes:</strong></div></td> <td><?php echo $meeting->Notes; ?></td> </tr> ! <tr> ! <td><div align="right"><strong>Note Taker:</strong></div></td> ! <td><?php echo $meeting->NoteTaker; ?></td> ! </tr> ! <tr> <td><div align="right"><strong>Absent List:</strong></div></td> ! <td><?php echo str_replace(",",", ",$meeting->AbsentList); ?></td> </tr> <?php } ?> *************** *** 107,120 **** ?> <form onsubmit="return dhtmlEditorPrepareSubmit();" action='viewmeeting.php?ID=<?php echo $_GET['ID']; ?>' method='POST'> ! <table width="48%"> ! <tr> ! <th width="19%"> </th> ! <th width="31%">Plan New Meeting</th> ! </tr> ! <tr> ! <td valign="top"> ! <div align="right">Notes:</div></td> ! <td> ! <?php // If WYSIWYG function is set then view the WYSIWYG function module --- 121,133 ---- ?> <form onsubmit="return dhtmlEditorPrepareSubmit();" action='viewmeeting.php?ID=<?php echo $_GET['ID']; ?>' method='POST'> ! <table width="48%"> ! <tr> ! <th width="19%"> </th> ! <th width="31%">Meeting Completed Notes</th> ! </tr> ! <tr> ! <td valign="top"> <div align="right">Notes:</div></td> ! <td> ! <?php // If WYSIWYG function is set then view the WYSIWYG function module *************** *** 126,168 **** ?> ! </td> ! </tr> ! <tr> ! <td><div align="right">Please list the people who were <strong>NOT</strong> ! present:</div></td> ! <td><p> ! <select name="absent[]" size="6" multiple width='60'> ! <option>none</option> ! <?php ! // Make a list of people who were present at the meeting ! $assign = explode(",",$meeting->ArrangedFor); ! foreach($assign as $assign){ ! ! // Run through the groups and find values ! $query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups WHERE ID = '".$assign."'"); ! $group = ofirst_dbfetch_object($query); ! ! $people = explode(",",$group->Members); ! ! // Remove any duplicated names in the array ! $people = array_unique($people); ! ! } ! // List the people currently in the array ! foreach($people as $people){ ! echo "\n <option>$people</option>"; } - ?> </select> ! <font size="2"></font></p></td> ! </tr> ! <tr> ! <td> </td> ! <td><input name="update" type="submit" id="update" value="Update Meeting"> ! <input type="reset" name="Reset" value="Reset"> </td> ! </tr> ! </table></form> <br> <?php --- 139,176 ---- ?> ! </td> ! </tr> ! <tr> ! <td><div align="right">Note Taker:</div></td> ! <td> <?php echo $user->user." (".$user->firstname." ".$user->lastname.")"; ?> ! </td> ! </tr> ! <tr> ! <td><div align="right">Please list the people who were <strong>NOT</strong> ! present:</div></td> ! <td><p> ! <select name="absent[]" size="6" style="width: 250px;" multiple width='60'> ! <option value="none">No one absent!</option> ! <?php // Make a list of people who were present at the meeting ! $listdivisions = explode(",",$meeting->ArrangedFor); ! foreach($listdivisions as $division){ ! // Loop through selected divisions and display the proper persons ! $memberquery = ofirst_dbquery("SELECT * FROM ofirst_members WHERE Division = '".$division."';"); ! while($members = ofirst_dbfetch_object($memberquery)){ ! echo "<option>".$members->user."</option>\n"; ! } } ?> </select> ! <font size="2"></font></p></td> ! </tr> ! <tr> ! <td> </td> ! <td><input name="update" type="submit" id="update" value="Update Meeting"> ! <input type="reset" name="Reset" value="Reset"> </td> ! </tr> ! </table> ! </form> <br> <?php |
From: <dav...@us...> - 2003-11-02 16:28:12
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv1014 Modified Files: updateprofile.php Log Message: Fixed error that checks for sms send checkbox. Instead of using on, it should use isset. Index: updateprofile.php =================================================================== RCS file: /cvsroot/openfirst/members/updateprofile.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** updateprofile.php 5 Oct 2003 13:23:07 -0000 1.6 --- updateprofile.php 2 Nov 2003 16:28:09 -0000 1.7 *************** *** 31,38 **** if(isset($user->user)) { if (isset($_POST["firstname"]) == true) { if(isset($_POST["ndivision"]) == true && $_POST["ndivision"] != "") { $_POST["division"] = $_POST["ndivision"]; ! $q = ofirst_dbquery("INSERT INTO ofirst_divisions (division) VALUES ( ! '" . $_POST["division"] . "');"); $q = ofirst_dbquery("UPDATE ofirst_divisions SET description='" . $_POST["divisiondescription"] . "' WHERE division='" . $_POST["division"] . "';"); } --- 31,38 ---- if(isset($user->user)) { if (isset($_POST["firstname"]) == true) { + if(isset($_POST["ndivision"]) == true && $_POST["ndivision"] != "") { $_POST["division"] = $_POST["ndivision"]; ! $q = ofirst_dbquery("INSERT INTO ofirst_divisions (division) VALUES ('" . $_POST["division"] . "');"); $q = ofirst_dbquery("UPDATE ofirst_divisions SET description='" . $_POST["divisiondescription"] . "' WHERE division='" . $_POST["division"] . "';"); } *************** *** 45,68 **** $user->cellphonesms = "0"; } ! if($_POST["sendsmstestmessage"] == "on" && $user->cellphonesms == true) { mail($_POST["cellphonenumber"] . "@" . $_POST["cellphonecarrier"], "SMS Test", "This is the test message you requested from $title."); echo("A test SMS Message has been sent, it should arrive soon, depending on the speed of your carrier's system."); } ! $query = "UPDATE ofirst_members SET firstname='" . $_POST["firstname"] . "', lastname='" . $_POST["lastname"] . "' ! , division='" . $_POST["division"] . "', year='" . $_POST["year"] . "', email='" . $_POST["email"] . ! "', icq='" . $_POST["icq"] . "', aim='" . $_POST["aim"] . "', msn='" . $_POST["msn"] . "', yim='" . ! $_POST["yim"] . "', signature='" . $_POST["signature"] . "', description='" . $_POST["description"] . ! "', picturelocation='" . $_POST["picturelocation"] . "', cellphonenumber='" . $_POST["cellphonenumber"] . "', cellphonecarrier='" . $_POST["cellphonecarrier"] . "', ! cellphonesms='" . $_POST["cellphonesms"] . "' WHERE user='$user->user';"; ! $q = ofirst_dbquery($query); if(isset($_POST["password"]) == true && isset($_POST["cpassword"]) == true) { if($_POST["password"] == $_POST["cpassword"] && $_POST["password"] != "") { $query = ofirst_dbquery("UPDATE ofirst_members SET password='" . cryptpassword($_POST["password"], $encryption) ."' WHERE user='$user->user';"); ! echo("Password Changed."); } elseif ($_POST["password"] != $_POST["cpassword"]) { ! echo("The password and confirm password fields do not match."); } } ! echo("Profile updated."); } ?> --- 45,83 ---- $user->cellphonesms = "0"; } ! ! if(isset($_POST["sendsmstestmessage"]) && $user->cellphonesms == true) { mail($_POST["cellphonenumber"] . "@" . $_POST["cellphonecarrier"], "SMS Test", "This is the test message you requested from $title."); echo("A test SMS Message has been sent, it should arrive soon, depending on the speed of your carrier's system."); } ! ! $query = "UPDATE ofirst_members SET ! firstname='" . $_POST["firstname"] . "', ! lastname='" . $_POST["lastname"] . "', ! division='" . $_POST["division"] . "', ! year='" . $_POST["year"] . "', ! email='" . $_POST["email"] ."', ! icq='" . $_POST["icq"] . "', ! aim='" . $_POST["aim"] . "', ! msn='" . $_POST["msn"] . "', ! yim='" . $_POST["yim"] . "', ! signature='" . $_POST["signature"] . "', ! description='" . $_POST["description"] . "', ! picturelocation='" . $_POST["picturelocation"] . "', ! cellphonenumber='" . $_POST["cellphonenumber"] . "', ! cellphonecarrier='" . $_POST["cellphonecarrier"] . "', ! cellphonesms='" . $_POST["cellphonesms"] . "' WHERE user='$user->user';"; ! ! $q = ofirst_dbquery($query); if(isset($_POST["password"]) == true && isset($_POST["cpassword"]) == true) { + if($_POST["password"] == $_POST["cpassword"] && $_POST["password"] != "") { $query = ofirst_dbquery("UPDATE ofirst_members SET password='" . cryptpassword($_POST["password"], $encryption) ."' WHERE user='$user->user';"); ! echo("<br><br>Password Changed. "); } elseif ($_POST["password"] != $_POST["cpassword"]) { ! echo("<br><br>The password and confirm password fields do not match."); } } ! ! echo("<br><font color='green'>Profile updated.</font>"); } ?> *************** *** 73,77 **** <form action='updateprofile.php' method='post'> <table> ! <tr><th>Heading</th><th>Content</th></tr> <?php echo("<tr><th>Username</th><td>$user->user</td></tr> --- 88,94 ---- <form action='updateprofile.php' method='post'> <table> ! <tr> ! <th> </th> ! <th>Content</th></tr> <?php echo("<tr><th>Username</th><td>$user->user</td></tr> |
From: <dav...@us...> - 2003-11-02 16:27:37
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv947 Modified Files: nophoto.png Log Message: Added no photo image. Index: nophoto.png =================================================================== RCS file: /cvsroot/openfirst/members/nophoto.png,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvszNIwux and /tmp/cvssydtFU differ |
From: <dav...@us...> - 2003-11-02 15:46:13
|
Update of /cvsroot/openfirst/messenger In directory sc8-pr-cvs1:/tmp/cvs-serv24653 Modified Files: inbox.php index.php viewmsg.php Log Message: Fixed a viewmsg problem where it checks for a visitor msg. Also edited some other minor design flaws. Index: inbox.php =================================================================== RCS file: /cvsroot/openfirst/messenger/inbox.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** inbox.php 16 Oct 2003 23:52:59 -0000 1.8 --- inbox.php 2 Nov 2003 15:46:10 -0000 1.9 *************** *** 85,89 **** } if(ofirst_dbnum_rows($query) == 0){ ! echo "<tr><td>--</td><td>--</td><td>No new messages!</td><td>--</td><td>--</td></tr>"; } ?> --- 85,89 ---- } if(ofirst_dbnum_rows($query) == 0){ ! echo "<tr><td> </td><td> </td><td>No new messages in inbox!</td><td> </td><td> </td></tr>"; } ?> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/messenger/index.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** index.php 13 Oct 2003 17:58:27 -0000 1.8 --- index.php 2 Nov 2003 15:46:10 -0000 1.9 *************** *** 30,40 **** ?> <h1>Current Online Users</h1> ! <table width="648"> <tr> ! <th width="25"></th> ! <th width="203">User Level</th> ! <th width="110">Name</th> ! <th width="290">Currently Previewing</th> ! <th width="144">Options</th> </tr> <?php --- 30,40 ---- ?> <h1>Current Online Users</h1> ! <table width="737"> <tr> ! <th width="29"></th> ! <th width="126">User Level</th> ! <th width="148">Name</th> ! <th width="312">Currently Previewing</th> ! <th width="98">Options</th> </tr> <?php Index: viewmsg.php =================================================================== RCS file: /cvsroot/openfirst/messenger/viewmsg.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** viewmsg.php 18 Oct 2003 23:31:37 -0000 1.9 --- viewmsg.php 2 Nov 2003 15:46:10 -0000 1.10 *************** *** 48,78 **** the webmaster!</p> <table width="597"> ! <tr> <th width="127"> </th> <th width="458">Current Message</th> </tr> ! <tr> <th>Sender</th> <td><a href='../members/profile.php?ID=<?php echo $msg->Sender ?>'><?php echo("$msg->Sender"); $querymember = ofirst_dbquery("SELECT firstname, lastname FROM ofirst_members WHERE user = '$msg->Sender';"); $member = ofirst_dbfetch_object($querymember); ! echo(" ($member->firstname $member->lastname)"); ?> ! </td> ! </tr> ! <tr> ! <td><img src="visitors.png" alt="Visitor"></td> ! <td><?php ! if ($userinf->Member == "none") { ! echo "Visiting Guest</td><td>N/A"; ! } else { ! echo "Member</td><td>$members->firstname $members->lastname"; ! } ! ?></a></td> </tr> ! <tr> <th>Subject</th> <td><?php echo slur_block(emoticon_translate($msg->Subject)); ?></td> </tr> ! <tr> <th>Body</th> <td><?php echo slur_block(emoticon_translate($msg->Body)); ?></td> --- 48,67 ---- the webmaster!</p> <table width="597"> ! <tr> <th width="127"> </th> <th width="458">Current Message</th> </tr> ! <tr> <th>Sender</th> <td><a href='../members/profile.php?ID=<?php echo $msg->Sender ?>'><?php echo("$msg->Sender"); $querymember = ofirst_dbquery("SELECT firstname, lastname FROM ofirst_members WHERE user = '$msg->Sender';"); $member = ofirst_dbfetch_object($querymember); ! echo(" ($member->firstname $member->lastname)"); ?> </td> </tr> ! <tr> <th>Subject</th> <td><?php echo slur_block(emoticon_translate($msg->Subject)); ?></td> </tr> ! <tr> <th>Body</th> <td><?php echo slur_block(emoticon_translate($msg->Body)); ?></td> |
From: <dav...@us...> - 2003-11-02 15:37:10
|
Update of /cvsroot/openfirst/logger In directory sc8-pr-cvs1:/tmp/cvs-serv22968 Modified Files: index.php Log Message: Edited the way the log values are displayed. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/logger/index.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** index.php 23 Oct 2003 22:09:10 -0000 1.7 --- index.php 2 Nov 2003 15:37:07 -0000 1.8 *************** *** 51,55 **** ! $query = ofirst_dbquery("SELECT * FROM ofirst_logger GROUP BY IPAddress LIMIT $min,$max"); $amount = ofirst_dbnum_rows($query); --- 51,55 ---- ! $query = ofirst_dbquery("SELECT * FROM ofirst_logger GROUP BY `IPAddress` ORDER BY `ID` DESC LIMIT $min,$max"); $amount = ofirst_dbnum_rows($query); *************** *** 66,72 **** </form></p> ! <div align="center">This page previews grouped unique visitors. If you wish to view the exact location that the user has visited click<br> ! the track button below: </div> --- 66,73 ---- </form></p> ! <div align="center">This page displays grouped unique visitors. If you wish to view the exact location that the user has visited click<br> ! the track button below. Note that the below logs are listed in descending order ! with the most recent at the top. </div> |
From: <dav...@us...> - 2003-11-01 21:42:44
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv334 Modified Files: notes.php Log Message: Add max execution for note upload. Index: notes.php =================================================================== RCS file: /cvsroot/openfirst/projects/notes.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** notes.php 23 Oct 2003 13:47:27 -0000 1.14 --- notes.php 1 Nov 2003 21:42:41 -0000 1.15 *************** *** 27,33 **** */ ! // include_once("../config/globals.php"); - $header_condense = true; include_once($header); --- 27,32 ---- */ ! ini_set("max_execution_time","9999999999999"); include_once("../config/globals.php"); include_once($header); |