openfirst-cvscommit Mailing List for openFIRST (Page 67)
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 23:39:10
|
Update of /cvsroot/openfirst/base/config/functions In directory sc8-pr-cvs1:/tmp/cvs-serv22139/functions Modified Files: browserid.php forms.php wysiwyg.php Log Message: Fix style issues and improper commenting where applicable. Some files were misidentified in their heading information, which may have lead to unnecessary confusion. Index: browserid.php =================================================================== RCS file: /cvsroot/openfirst/base/config/functions/browserid.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** browserid.php 3 Oct 2003 23:40:49 -0000 1.2 --- browserid.php 23 Nov 2003 23:39:07 -0000 1.3 *************** *** 1,4 **** --- 1,6 ---- <?php /* + * openFIRST.base - config/functions/browserid.php + * * Copyright (C) 2003, * openFIRST Project Index: forms.php =================================================================== RCS file: /cvsroot/openfirst/base/config/functions/forms.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** forms.php 7 Jun 2003 16:11:32 -0000 1.1.1.1 --- forms.php 23 Nov 2003 23:39:07 -0000 1.2 *************** *** 1,7 **** <?php /* ! * openFIRST globals.php ! * Last Modified: ! * David Di Biase, April 13, 2003 * * Copyright (C) 2003, --- 1,5 ---- <?php /* ! * openFIRST.base - config/functions/forms.php * * Copyright (C) 2003, *************** *** 32,75 **** function checkform($field){ ! $error = array(); ! // Loop through every single array in the function ! foreach($field as $fields=>$checkwith){ ! // While looping use one of these cases to perform the proper checking ! switch($checkwith){ ! // If field is a password then check as password and respond ! case "password": ! if(strlen($_POST[$fields]) < 5){ ! $error[] = "Password is too short, must be 5-6 characters in length. You entered: ".$_POST[$fields]; ! } break; ! // If field is an email address then check as email and respond ! case "email": ! if( ! eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*"."@([a-z0-9]+([\.-][a-z0-9]+))*$",$_POST[$fields])){ ! $error[] = "E-mail field contains illegal characters. You entered: ".$_POST[$fields]; ! } else { ! $item = explode("@", $_POST[$fields]); ! if( gethostbyname($item["1"]) == $item["1"]) { ! $error[] = "Domain in e-mail address is illegal. You entered: ".$_POST[$fields]; ! } ! } ! break; ! // If field is set as ifempty then check if its empty and respond ! case "ifempty": ! if(empty($_POST[$fields])){ ! $error[] = "Empty field on form. You entered: ".$_POST[$fields]; ! } } } ! return $error; } --- 30,73 ---- function checkform($field){ ! $error = array(); ! // Loop through every single array in the function ! foreach($field as $fields=>$checkwith){ ! // While looping use one of these cases to perform the proper checking ! switch($checkwith){ ! // If field is a password then check as password and respond ! case "password": ! if(strlen($_POST[$fields]) < 5){ ! $error[] = "Password is too short, must be 5-6 characters in length. You entered: ".$_POST[$fields]; ! } break; ! // If field is an email address then check as email and respond ! case "email": ! if( ! eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*"."@([a-z0-9]+([\.-][a-z0-9]+))*$",$_POST[$fields])) { ! $error[] = "E-mail field contains illegal characters. You entered: ".$_POST[$fields]; ! } else { ! $item = explode("@", $_POST[$fields]); ! if( gethostbyname($item["1"]) == $item["1"]) { ! $error[] = "Domain in e-mail address is illegal. You entered: ".$_POST[$fields]; ! } ! } ! break; ! // If field is set as ifempty then check if its empty and respond ! case "ifempty": ! if(empty($_POST[$fields])){ ! $error[] = "Empty field on form. You entered: ".$_POST[$fields]; ! } } } ! return $error; } *************** *** 78,90 **** // Check if requires error response if (! empty($error)){ ! // Create errors table ! echo "<table width=400 border=1 align=center cellpadding=1 cellspacing=0 bordercolor=#333333 bgcolor=#CCCCCC><tr><td><b>You have errors within your form:</b><br>"; // Display errors in form foreach($error as $value){ echo "- ".$value."<br>"; } ! // Close errors table ! echo "</td></tr></table>"; } } ! ?> \ No newline at end of file --- 76,88 ---- // Check if requires error response if (! empty($error)){ ! // Create errors table ! echo "<table width=400 border=1 align=center cellpadding=1 cellspacing=0 bordercolor=#333333 bgcolor=#CCCCCC><tr><td><b>You have errors within your form:</b><br>"; // Display errors in form foreach($error as $value){ echo "- ".$value."<br>"; } ! // Close errors table ! echo "</td></tr></table>"; } } ! ?> Index: wysiwyg.php =================================================================== RCS file: /cvsroot/openfirst/base/config/functions/wysiwyg.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wysiwyg.php 23 Oct 2003 14:14:39 -0000 1.2 --- wysiwyg.php 23 Nov 2003 23:39:07 -0000 1.3 *************** *** 29,39 **** // A complete function to create the Javascript command for loading of the WYSIWYG function make_wysiwyg($fieldname,$height,$width,$init){ ! global $basepath; ?> <SCRIPT TYPE="text/javascript" language="JavaScript1.3"> <!-- !!!! important comment this !!!! ! document.dhtmlEditors_home='<?php echo $basepath; ?>/config/functions/wysiwyg/'; ! document.writeln('<'+'SCRIPT LANGUAGE="JavaScript" src="'+document.dhtmlEditors_home+'js/lib.js">'+'<'+'/SCRIPT'+'>'); ! document.writeln('<SCRIPT LANGUAGE="JavaScript" src="'+document.dhtmlEditors_home+'modules/button_html.js"></SCRIPT>'); // --> --- 29,39 ---- // A complete function to create the Javascript command for loading of the WYSIWYG function make_wysiwyg($fieldname,$height,$width,$init){ ! global $basepath; ?> <SCRIPT TYPE="text/javascript" language="JavaScript1.3"> <!-- !!!! important comment this !!!! ! document.dhtmlEditors_home='<?php echo $basepath; ?>/config/functions/wysiwyg/'; ! document.writeln('<'+'SCRIPT LANGUAGE="JavaScript" src="'+document.dhtmlEditors_home+'js/lib.js">'+'<'+'/SCRIPT'+'>'); ! document.writeln('<SCRIPT LANGUAGE="JavaScript" src="'+document.dhtmlEditors_home+'modules/button_html.js"></SCRIPT>'); // --> *************** *** 42,48 **** <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- ! var myEditor = new dhtmlEditor; ! myEditor.registerApiModul(MODUL__toggleEditModeGetApiInfoArray('<?php echo $basepath; ?>/config/functions/wysiwyg/images/newdoc.gif')); ! myEditor.make_andReplaceTextarea('<?php echo $fieldname; ?>'); //--> </SCRIPT> --- 42,48 ---- <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- ! var myEditor = new dhtmlEditor; ! myEditor.registerApiModul(MODUL__toggleEditModeGetApiInfoArray('<?php echo $basepath; ?>/config/functions/wysiwyg/images/newdoc.gif')); ! myEditor.make_andReplaceTextarea('<?php echo $fieldname; ?>'); //--> </SCRIPT> |
From: <dav...@us...> - 2003-11-23 23:26:52
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv19697 Modified Files: profile.php Log Message: Fixed offset error. Index: profile.php =================================================================== RCS file: /cvsroot/openfirst/members/profile.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** profile.php 23 Nov 2003 19:10:58 -0000 1.21 --- profile.php 23 Nov 2003 23:26:49 -0000 1.22 *************** *** 249,258 **** <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"); --- 249,258 ---- <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) - 1); $y++) { $det = explode("|",$skill[$y]); echo("<tr><td><b>$det[0]</b> - ".status($det[1])."</td></tr>\n"); |
From: <xt...@us...> - 2003-11-23 23:19:57
|
Update of /cvsroot/openfirst/emoticon/setup In directory sc8-pr-cvs1:/tmp/cvs-serv18661 Modified Files: setup.mssql setup.mysql Log Message: Fix problem which was allowing emoticons to build up in a constant loop if the emoticon module had been installed multiple times Index: setup.mssql =================================================================== RCS file: /cvsroot/openfirst/emoticon/setup/setup.mssql,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** setup.mssql 1 Sep 2003 18:50:52 -0000 1.3 --- setup.mssql 23 Nov 2003 23:19:54 -0000 1.4 *************** *** 1,2 **** --- 1,3 ---- + DROP TABLE ofirst_emoticon; CREATE TABLE ofirst_emoticon (ID tinyint(3) unsigned NOT NULL auto_increment, emoticon text, substitution text, PRIMARY KEY (ID)) TYPE=MyISAM; ALTER TABLE ofirst_emoticon MODIFY ID int(5) unsigned NOT NULL auto_increment; *************** *** 442,446 **** INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(torch)','<img src=\"http://openfirst.sourceforge.net/image/minimascot.png\" alt=\"(torch)\" title=\"(torch)\" />'); INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(first)','<img src=\"http://openfirst.sourceforge.net/image/icon/flag/first.png\" alt=\"(first)\" title=\"(first)\" />'); ! INSERT INTO ofirst_config SET modulename='emoticon',showonmenu='0',active='0',adminnavigation='<a href="$basepath/emoticon/">Main</a>',includes='emoticonf.php',modulenavigation='<a href="$basepath/emoticon/">View Emoticons</a>'; INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('motherfucker','************'); INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('fuck','****'); --- 443,447 ---- INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(torch)','<img src=\"http://openfirst.sourceforge.net/image/minimascot.png\" alt=\"(torch)\" title=\"(torch)\" />'); INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(first)','<img src=\"http://openfirst.sourceforge.net/image/icon/flag/first.png\" alt=\"(first)\" title=\"(first)\" />'); ! INSERT INTO ofirst_config SET modulename='emoticon',showonmenu='0',active='0',includes='emoticonf.php',modulenavigation='<a href="$basepath/emoticon/">View Emoticons</a>'; INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('motherfucker','************'); INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('fuck','****'); *************** *** 448,449 **** --- 449,453 ---- INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('pussy','*****'); INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('ass','***'); + INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('cunt','****'); + INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('dick','****'); + INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('bitch,'*****'); Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/emoticon/setup/setup.mysql,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** setup.mysql 13 Sep 2003 15:36:53 -0000 1.11 --- setup.mysql 23 Nov 2003 23:19:54 -0000 1.12 *************** *** 1,2 **** --- 1,3 ---- + DROP TABLE ofirst_emoticon; CREATE TABLE ofirst_emoticon (ID tinyint(3) unsigned NOT NULL auto_increment, emoticon text, substitution text, PRIMARY KEY (ID)) TYPE=MyISAM; ALTER TABLE ofirst_emoticon MODIFY ID int(5) unsigned NOT NULL auto_increment; *************** *** 450,452 **** INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('cunt','****'); INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('dick','****'); ! INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('bitch,'*****'); \ No newline at end of file --- 451,453 ---- INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('cunt','****'); INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('dick','****'); ! INSERT INTO ofirst_slurblock (slur, substitution) VALUES ('bitch,'*****'); |
From: <xt...@us...> - 2003-11-23 23:15:12
|
Update of /cvsroot/openfirst/base In directory sc8-pr-cvs1:/tmp/cvs-serv17835 Modified Files: index.php Log Message: Ensure that modules have their mysql tables, etc. properly set up before attempting to use data from these tables. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/base/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.php 23 Oct 2003 22:37:36 -0000 1.4 --- index.php 23 Nov 2003 23:15:09 -0000 1.5 *************** *** 56,60 **** } ! if (is_readable("guestbook/")) { $qu = ofirst_dbquery("SELECT guest, date FROM ofirst_guestbook ORDER BY guest LIMIT 5;"); if(ofirst_dbnum_rows($qu)!=0){ --- 56,60 ---- } ! if (is_readable("guestbook/") && ofirst_dbnum_rows(ofirst_dbquery("SELECT * FROM ofirst_config WHERE modulename='guestbook' AND active='1';")) > 0) { $qu = ofirst_dbquery("SELECT guest, date FROM ofirst_guestbook ORDER BY guest LIMIT 5;"); if(ofirst_dbnum_rows($qu)!=0){ *************** *** 66,70 **** } } ! if (is_readable("awards/")) { $qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;"); if(ofirst_dbnum_rows($qu)!=0){ --- 66,70 ---- } } ! if (is_readable("awards/") && ofirst_dbnum_rows(ofirst_dbquery("SELECT * FROM ofirst_config WHERE modulename='awards' AND active='1';")) > 0) { $qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;"); if(ofirst_dbnum_rows($qu)!=0){ |
From: <xt...@us...> - 2003-11-23 22:47:38
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv12279 Modified Files: auth.php Log Message: Add dummy function to ensure that older versions of modules function properly with newer versions of the base module. Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/base/config/auth.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** auth.php 23 Nov 2003 15:24:39 -0000 1.11 --- auth.php 23 Nov 2003 22:47:34 -0000 1.12 *************** *** 204,206 **** --- 204,211 ---- unset($q); } + + /* This is here for legacy reasons, so as to make previous versions + * of certain modules function with the newer base modules. + */ + function membersmenu() { return(0); } ?> |
From: <dav...@us...> - 2003-11-23 22:17:30
|
Update of /cvsroot/openfirst/projects/setup In directory sc8-pr-cvs1:/tmp/cvs-serv1133 Modified Files: setup.mssql setup.mysql Log Message: Changed the description box to be text to store more data rather than limiting it. Index: setup.mssql =================================================================== RCS file: /cvsroot/openfirst/projects/setup/setup.mssql,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** setup.mssql 23 Nov 2003 15:00:58 -0000 1.11 --- setup.mssql 23 Nov 2003 22:17:27 -0000 1.12 *************** *** 1,5 **** 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; --- 1,5 ---- 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` 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; Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/projects/setup/setup.mysql,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** setup.mysql 23 Nov 2003 15:00:58 -0000 1.10 --- setup.mysql 23 Nov 2003 22:17:27 -0000 1.11 *************** *** 1,5 **** 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; --- 1,5 ---- 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` 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; |
From: <dav...@us...> - 2003-11-23 22:01:41
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv29861 Modified Files: groups.php notes.php projects.php tasks.php Log Message: Added commit e-mail notification to each script. Index: groups.php =================================================================== RCS file: /cvsroot/openfirst/projects/groups.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** groups.php 1 Nov 2003 16:23:29 -0000 1.15 --- groups.php 23 Nov 2003 22:01:37 -0000 1.16 *************** *** 75,78 **** --- 75,102 ---- Dates = '".time()."'") or die(ofirst_dberror()); echo "<br><br>Group created! [ <a href='groups.php'>Groups</a> ]<br><br>"; + + // ---------------- SEND E-MAIL NOTICE OUT ---------------- + // Prepare e-mail headers without using the multipartmail function + $headers = "MIME-Version: 1.0\r\n"; + $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; + $headers .= "X-Priority: 1\r\n"; + $headers .= "X-MSMail-Priority: High\r\n"; + + // Prepare message for email + $message = "<b>$title</b> Action Register System<br>----------------------------------------------------<br> + <i>".$user->user."</i> has assigned you to a new group on the $title action system called <b>".$_POST['groupname']."</b>. + Here is the group description: <br><blockquote>".$_POST['description']."</blockquote><br><br> + <a href='$home/projects/groups.php'>Click here for more info</a>"; + + // Query members who have been added to this group + $assigned = explode(",",$mem); + foreach($assigned as $assign){ + $member_query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user = '$assign'"); + $member = ofirst_dbfetch_object($member_query); + mail($member->email,"$title Action Register: New Group",$message,$headers); + } + + // -------------------------------------------------------- + die(include_once($footer)); } Index: notes.php =================================================================== RCS file: /cvsroot/openfirst/projects/notes.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** notes.php 1 Nov 2003 21:42:41 -0000 1.15 --- notes.php 23 Nov 2003 22:01:38 -0000 1.16 *************** *** 62,65 **** --- 62,97 ---- echo "<br><br>Note created! [ <a href='notes.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."&TaskID=".$_GET['TaskID']."'>Notes</a> ]<br><br>"; + + // ---------------- SEND E-MAIL NOTICE OUT ---------------- + $query = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE GroupID = '".$_GET['GroupID']."' AND ID = '".$_GET['ProjectID']."'"); + $project = ofirst_dbfetch_object($query); + + $query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE GroupID = '".$_GET['GroupID']."' AND ProjectID = '".$_GET['ProjectID']."' AND ID = '".$_GET['TaskID']."'"); + $task = ofirst_dbfetch_object($query); + + // Prepare e-mail headers without using the multipartmail function + $headers = "MIME-Version: 1.0\r\n"; + $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; + $headers .= "X-Priority: 1\r\n"; + $headers .= "X-MSMail-Priority: High\r\n"; + + // Prepare message for email + $message = "<b>$title</b> Action Register System<br>----------------------------------------------------<br> + <i>".$user->user."</i> has created a new note on the $title action system + under the <b>".$task->TaskName."</b> task. The following is the information + commited:<br><blockquote>".$_POST['description']."</blackquote><br><br> + <a href='$home/projects/groups.php'>Click here for more info!</a>"; + + // Since these are projects relating to this group then only send to the required persons + $assigned = explode(",",$task->Assigned); + foreach($assigned as $assign){ + $member_query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user = '$assign'"); + $member = ofirst_dbfetch_object($member_query); + + mail($member->email,"$title Action Register: New Note",$message,$headers); + + } + // ------------------------------------------------------ + die(include_once($footer)); } *************** *** 77,81 **** ofirst_dbquery("UPDATE ofirst_projects_tasks SET Completion = '".$_POST['completion']."' WHERE ID = '".$_GET['TaskID']."'") or die(ofirst_dberror()); - echo "<br><br>Task completion changed to: ".$_POST['completion']."% [ <a href='notes.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."&TaskID=".$_GET['TaskID']."'>Current Notes</a> ]<br><br>"; die(include_once($footer)); --- 109,112 ---- Index: projects.php =================================================================== RCS file: /cvsroot/openfirst/projects/projects.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** projects.php 1 Nov 2003 16:23:29 -0000 1.14 --- projects.php 23 Nov 2003 22:01:38 -0000 1.15 *************** *** 63,67 **** TarDate = 'date', Dates = '".time()."'") or die(ofirst_dberror()); ! echo "<br><br>Project created! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; die(include_once($footer)); } --- 63,98 ---- TarDate = 'date', Dates = '".time()."'") or die(ofirst_dberror()); ! ! echo "<br><br>Project created! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! ! // ---------------- SEND E-MAIL NOTICE OUT ---------------- ! $query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups WHERE ID = '".$_GET['GroupID']."' ORDER BY GroupName;"); ! $group = ofirst_dbfetch_object($query); ! ! // Prepare e-mail headers without using the multipartmail function ! $headers = "MIME-Version: 1.0\r\n"; ! $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; ! $headers .= "X-Priority: 1\r\n"; ! $headers .= "X-MSMail-Priority: High\r\n"; ! ! // Prepare message for email ! $message = "<b>$title</b> Action Register system<br>----------------------------------------------------<br> ! <i>".$user->user."</i> has assigned you to a new project on the $title action system called ! <b>".$_POST['projectname']."</b> within the <b>".$group->GroupName."</b> group. Here is the project ! description:<br><blockquote>".$_POST['description']."</blockquote><br><br> ! <a href='$home/projects/groups.php'>Click here for more info</a>"; ! ! // Since these are projects relating to this group then only send to the required persons ! $assigned = explode(",",$group->Members); ! foreach($assigned as $assign){ ! ! $member_query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user = '$assign'"); ! $member = ofirst_dbfetch_object($member_query); ! ! mail($member->email,"$title Action Register: New Project",$message,$headers); ! ! } ! // -------------------------------------------------------- ! die(include_once($footer)); } Index: tasks.php =================================================================== RCS file: /cvsroot/openfirst/projects/tasks.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** tasks.php 1 Nov 2003 16:23:29 -0000 1.15 --- tasks.php 23 Nov 2003 22:01:38 -0000 1.16 *************** *** 66,70 **** --- 66,103 ---- TarDate = '".$strdate."', Dates = '".time()."'") or die(ofirst_dberror()); + + // ---------------- SEND E-MAIL NOTICE OUT ---------------- + // Gather information to show the following tasks + $query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups WHERE ID = '".$_GET['GroupID']."'"); + $group = ofirst_dbfetch_object($query); + + $query = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE GroupID = '".$_GET['GroupID']."' AND ID = '".$_GET['ProjectID']."' ORDER BY ProjectName;"); + $project = ofirst_dbfetch_object($query); + + // Prepare e-mail headers without using the multipartmail function + $headers = "MIME-Version: 1.0\r\n"; + $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; + $headers .= "X-Priority: 1\r\n"; + $headers .= "X-MSMail-Priority: High\r\n"; + // Prepare message for email + $message = "<b>$title</b> Action Register system<br>----------------------------------------------------<br> + <i>".$user->user."</i> has assigned you to a new task on the $title action system called + <b>".$_POST['taskname']."</b> under the <b>".$project->ProjectName."</b> project. Here is a + description:<br><blockquote>".$_POST['description']."</blockquote><br><br> + <a href='$home/projects/groups.php'>Click here for more info!</a>"; + + // Since these are projects relating to this group then only send to the required persons + $assigned = explode(",",$assign); + foreach($assigned as $assis){ + + $member_query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user = '$assis'"); + $member = ofirst_dbfetch_object($member_query); + + mail($member->email,"$title Action Register: New Task",$message,$headers); + + } + // ------------------------------------------------------- + echo "<br><br>Task created! [ <a href='tasks.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."'>Tasks</a> ]<br><br>"; die(include_once($footer)); *************** *** 78,82 **** echo "<br><br>Project completion changed to: ".$_POST['completion']."% [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include_once($footer)); } --- 111,115 ---- echo "<br><br>Project completion changed to: ".$_POST['completion']."% [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include_once($footer)); } |
From: <i-...@us...> - 2003-11-23 20:48:17
|
Update of /cvsroot/openfirst/search/setup In directory sc8-pr-cvs1:/tmp/cvs-serv16628/search/setup Added Files: setup.mssql setup.mysql Log Message: Setup for Search module --- NEW FILE: setup.mssql --- INSERT INTO ofirst_config SET modulename='search',showonmenu='0',active='0',modulenavigation='<a href="$basepath/search/">Search</a>'; --- NEW FILE: setup.mysql --- INSERT INTO ofirst_config SET modulename='search',showonmenu='0',active='0',modulenavigation='<a href="$basepath/search/">Search</a>'; |
From: <i-...@us...> - 2003-11-23 20:47:56
|
Update of /cvsroot/openfirst/search/setup In directory sc8-pr-cvs1:/tmp/cvs-serv16546/setup Log Message: Directory /cvsroot/openfirst/search/setup added to the repository |
From: <i-...@us...> - 2003-11-23 20:04:28
|
Update of /cvsroot/openfirst/forum/setup In directory sc8-pr-cvs1:/tmp/cvs-serv9118/forum/setup Modified Files: setup.mssql setup.mysql Log Message: Modified setup scripts for compatibility with the previous format of the members table Index: setup.mssql =================================================================== RCS file: /cvsroot/openfirst/forum/setup/setup.mssql,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** setup.mssql 13 Oct 2003 22:19:03 -0000 1.2 --- setup.mssql 23 Nov 2003 20:04:24 -0000 1.3 *************** *** 2,3 **** --- 2,4 ---- CREATE TABLE IF NOT EXISTS `ofirst_forumposts` (`ID` bigint(8) unsigned NOT NULL auto_increment, `forum` varchar(45) NOT NULL default '', `ReplyTo` bigint(45) unsigned NOT NULL default '0', `Title` tinytext NOT NULL, `Author` tinytext NOT NULL, `Message` text, `DatePosted` datetime NOT NULL default '0000-00-00 00:00:00', UNIQUE KEY `ID` (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET modulename='forum',showonmenu='0',active='0',adminnavigation='<a href="$basepath/forum/admin/">Forum Admin</a>',modulenavigation='<a href="$basepath/forum/">Forum Home</a>',includes='forumvisit.php'; + ALTER TABLE `ofirst_members` ADD `forumvisit` DATETIME; \ No newline at end of file Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/forum/setup/setup.mysql,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** setup.mysql 13 Oct 2003 22:19:03 -0000 1.2 --- setup.mysql 23 Nov 2003 20:04:25 -0000 1.3 *************** *** 2,3 **** --- 2,4 ---- CREATE TABLE IF NOT EXISTS `ofirst_forumposts` (`ID` bigint(8) unsigned NOT NULL auto_increment, `forum` varchar(45) NOT NULL default '', `ReplyTo` bigint(45) unsigned NOT NULL default '0', `Title` tinytext NOT NULL, `Author` tinytext NOT NULL, `Message` text, `DatePosted` datetime NOT NULL default '0000-00-00 00:00:00', UNIQUE KEY `ID` (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET modulename='forum',showonmenu='0',active='0',adminnavigation='<a href="$basepath/forum/admin/">Forum Admin</a>',modulenavigation='<a href="$basepath/forum/">Forum Home</a>',includes='forumvisit.php'; + ALTER TABLE `ofirst_members` ADD `forumvisit` DATETIME; \ No newline at end of file |
From: <i-...@us...> - 2003-11-23 19:58:52
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv7775/news Modified Files: comments.php Log Message: Minor bug fix Index: comments.php =================================================================== RCS file: /cvsroot/openfirst/news/comments.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** comments.php 23 Nov 2003 15:39:20 -0000 1.2 --- comments.php 23 Nov 2003 19:58:49 -0000 1.3 *************** *** 51,56 **** $q=ofirst_dbquery("SELECT * FROM ofirst_news WHERE ID='$id'"); $newspost=ofirst_dbfetch_object($q); ! ofirst_dbquery("INSERT INTO ofirst_forumposts (forum,ReplyTo,Title,Author,Message,DatePosted) values ('".newsforum."','0','".$newspost->title."','".$newspost->poster."','".$newspost->news."','".date("Y-m-d H:i:s")."');"); ! $query=ofirst_dbquery("SELECT ID FROM ofirst_forumposts WHERE forum='".newsforum."' AND ReplyTo=0 AND Title='".$newspost->title."' AND Author='".$newspost->poster."' AND Message='".$newspost->news."'"); $news=ofirst_dbfetch_object($query); ofirst_dbquery("INSERT INTO ofirst_news_comments (StoryID,Author,Website,Comment,Date) values ('$id','".$newspost->poster."','".$basepath."/forum/thread.php?id=".$news->ID."','Discussion moved to forum','".date("Y-m-d H:i:s")."');"); --- 51,56 ---- $q=ofirst_dbquery("SELECT * FROM ofirst_news WHERE ID='$id'"); $newspost=ofirst_dbfetch_object($q); ! ofirst_dbquery("INSERT INTO ofirst_forumposts (forum,ReplyTo,Title,Author,Message,DatePosted) values ('".newsforum."','0','".$newspost->title."','".$newspost->poster."','".addslashes($newspost->news)."','".date("Y-m-d H:i:s")."');"); ! $query=ofirst_dbquery("SELECT ID FROM ofirst_forumposts WHERE forum='".newsforum."' AND ReplyTo=0 AND Title='".$newspost->title."' AND Author='".$newspost->poster."' AND Message='".addslashes($newspost->news)."'"); $news=ofirst_dbfetch_object($query); ofirst_dbquery("INSERT INTO ofirst_news_comments (StoryID,Author,Website,Comment,Date) values ('$id','".$newspost->poster."','".$basepath."/forum/thread.php?id=".$news->ID."','Discussion moved to forum','".date("Y-m-d H:i:s")."');"); |
From: <xt...@us...> - 2003-11-23 19:11:02
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv31406 Modified Files: profile.php Log Message: Fix bug with ICQ status reporting Index: profile.php =================================================================== RCS file: /cvsroot/openfirst/members/profile.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** profile.php 23 Nov 2003 19:07:28 -0000 1.20 --- profile.php 23 Nov 2003 19:10:58 -0000 1.21 *************** *** 187,191 **** // 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 information provided"); --- 187,191 ---- // Check if ICQ information is available if ($q->icq != "" && $q->icq != "0") { ! 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 information provided"); |
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv30919 Modified Files: adduser.php divisions.php index.php links.php logout.php profile.php skills.php updateprofile.php web.php workspace.php Log Message: Replace include() with include_once() where appropriate Index: adduser.php =================================================================== RCS file: /cvsroot/openfirst/members/adduser.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** adduser.php 9 Nov 2003 02:51:32 -0000 1.6 --- adduser.php 23 Nov 2003 19:07:28 -0000 1.7 *************** *** 27,32 **** */ // Include system globals and headers ! include("../config/globals.php"); ! include($header); // Check if member registering is an administrator --- 27,32 ---- */ // Include system globals and headers ! include_once("../config/globals.php"); ! include_once($header); // Check if member registering is an administrator *************** *** 183,185 **** showlogin(); } ! include($footer); ?> --- 183,185 ---- showlogin(); } ! include_once($footer); ?> Index: divisions.php =================================================================== RCS file: /cvsroot/openfirst/members/divisions.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** divisions.php 9 Nov 2003 02:51:32 -0000 1.5 --- divisions.php 23 Nov 2003 19:07:28 -0000 1.6 *************** *** 27,32 **** */ // Include system globals and headers ! include("../config/globals.php"); ! include($header); ?> <h1>Team Divisions/Groups</h1> --- 27,32 ---- */ // Include system globals and headers ! include_once("../config/globals.php"); ! include_once($header); ?> <h1>Team Divisions/Groups</h1> *************** *** 75,77 **** ?> </table><br> ! <?php include($footer); ?> --- 75,77 ---- ?> </table><br> ! <?php include_once($footer); ?> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/members/index.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** index.php 23 Nov 2003 15:45:30 -0000 1.10 --- index.php 23 Nov 2003 19:07:28 -0000 1.11 *************** *** 26,31 **** * */ ! include("../config/globals.php"); ! include($header); if(isset($user->user)) { --- 26,31 ---- * */ ! include_once("../config/globals.php"); ! include_once($header); if(isset($user->user)) { *************** *** 53,55 **** showlogin(); } ! include($footer); ?> --- 53,55 ---- showlogin(); } ! include_once($footer); ?> Index: links.php =================================================================== RCS file: /cvsroot/openfirst/members/links.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** links.php 23 Aug 2003 20:31:16 -0000 1.2 --- links.php 23 Nov 2003 19:07:28 -0000 1.3 *************** *** 26,31 **** * */ ! include("../config/globals.php"); ! include($header); if (isset($_POST["ncategory"]) == true && isset($user->user) == true && $_POST["ncategory"] != "") { --- 26,31 ---- * */ ! include_once("../config/globals.php"); ! include_once($header); if (isset($_POST["ncategory"]) == true && isset($user->user) == true && $_POST["ncategory"] != "") { *************** *** 88,90 **** showlogin(); } ! include($footer); ?> --- 88,90 ---- showlogin(); } ! include_once($footer); ?> Index: logout.php =================================================================== RCS file: /cvsroot/openfirst/members/logout.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** logout.php 15 Oct 2003 00:16:02 -0000 1.6 --- logout.php 23 Nov 2003 19:07:28 -0000 1.7 *************** *** 26,31 **** * */ ! include("../config/globals.php"); ! include($header); if(isset($user->user)) { --- 26,31 ---- * */ ! include_once("../config/globals.php"); ! include_once($header); if(isset($user->user)) { *************** *** 37,39 **** showlogin(); } ! include($footer); ?> --- 37,39 ---- showlogin(); } ! include_once($footer); ?> Index: profile.php =================================================================== RCS file: /cvsroot/openfirst/members/profile.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** profile.php 23 Nov 2003 19:04:04 -0000 1.19 --- profile.php 23 Nov 2003 19:07:28 -0000 1.20 *************** *** 27,32 **** */ // Include system globals and headers ! include("../config/globals.php"); ! include($header); ?> <h1>Members Profiles</h1> --- 27,32 ---- */ // Include system globals and headers ! include_once("../config/globals.php"); ! include_once($header); ?> <h1>Members Profiles</h1> *************** *** 267,270 **** } } ! include($footer); ?> --- 267,270 ---- } } ! include_once($footer); ?> Index: skills.php =================================================================== RCS file: /cvsroot/openfirst/members/skills.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** skills.php 23 Aug 2003 20:31:16 -0000 1.3 --- skills.php 23 Nov 2003 19:07:28 -0000 1.4 *************** *** 26,31 **** * */ ! include("../config/globals.php"); ! include($header); if(isset($user->user)) { --- 26,31 ---- * */ ! include_once("../config/globals.php"); ! include_once($header); if(isset($user->user)) { *************** *** 149,151 **** showlogin(); } ! include($footer); ?> --- 149,151 ---- showlogin(); } ! include_once($footer); ?> Index: updateprofile.php =================================================================== RCS file: /cvsroot/openfirst/members/updateprofile.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** updateprofile.php 22 Nov 2003 11:25:13 -0000 1.9 --- updateprofile.php 23 Nov 2003 19:07:28 -0000 1.10 *************** *** 27,32 **** */ // Include system globals and headers ! include("../config/globals.php"); ! include($header); // Check if user is a member --- 27,32 ---- */ // Include system globals and headers ! include_once("../config/globals.php"); ! include_once($header); // Check if user is a member *************** *** 189,192 **** </form> <?php ! include($footer); ?> --- 189,192 ---- </form> <?php ! include_once($footer); ?> Index: web.php =================================================================== RCS file: /cvsroot/openfirst/members/web.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** web.php 23 Aug 2003 20:31:16 -0000 1.2 --- web.php 23 Nov 2003 19:07:28 -0000 1.3 *************** *** 26,30 **** * */ ! include("../config/globals.php"); echo("<p><strong>Disclaimer:</strong> This page is not maintained by the administration of the rest of the site. The opinions and views expressed here are those of the author and are not necessarily the views and opinions of the administration.</p>"); --- 26,30 ---- * */ ! include_once("../config/globals.php"); echo("<p><strong>Disclaimer:</strong> This page is not maintained by the administration of the rest of the site. The opinions and views expressed here are those of the author and are not necessarily the views and opinions of the administration.</p>"); Index: workspace.php =================================================================== RCS file: /cvsroot/openfirst/members/workspace.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** workspace.php 26 Oct 2003 04:20:01 -0000 1.12 --- workspace.php 23 Nov 2003 19:07:28 -0000 1.13 *************** *** 26,30 **** * */ ! include("../config/globals.php"); --- 26,30 ---- * */ ! include_once("../config/globals.php"); *************** *** 54,58 **** } } else { ! include($header); } --- 54,58 ---- } } else { ! include_once($header); } *************** *** 77,85 **** fputs($fi, $_POST["newdata"]); fclose($fi); ! die(include($footer)); } elseif (isset($_POST["action"]) == true && $_POST["action"] == "setperm") { ofirst_dbquery("UPDATE ofirst_workspace_files SET permissions='" . $_POST["userperm"] . $_POST["groupperm"] . $_POST["otherperm"] . "' WHERE name='" . $_POST["file"] . "' AND owner='" . $_POST["owner"] . "' AND location='" . $_POST["filepath"] . "';"); echo("Permissions on file "" . $_POST["file"] . "" have been modified. [ <a href='workspace.php'>Return to workspace</a> ]"); ! die(include($footer)); } if(isset($_POST["action"]) == true && $_POST["action"] == "makedirectory") { --- 77,85 ---- fputs($fi, $_POST["newdata"]); fclose($fi); ! die(include_once($footer)); } elseif (isset($_POST["action"]) == true && $_POST["action"] == "setperm") { ofirst_dbquery("UPDATE ofirst_workspace_files SET permissions='" . $_POST["userperm"] . $_POST["groupperm"] . $_POST["otherperm"] . "' WHERE name='" . $_POST["file"] . "' AND owner='" . $_POST["owner"] . "' AND location='" . $_POST["filepath"] . "';"); echo("Permissions on file "" . $_POST["file"] . "" have been modified. [ <a href='workspace.php'>Return to workspace</a> ]"); ! die(include_once($footer)); } if(isset($_POST["action"]) == true && $_POST["action"] == "makedirectory") { *************** *** 88,92 **** echo("Sub directory Created [<a href='workspace.php?filepath=$filepath'>Return to Workspace</a> ]"); ! die(include($footer)); } --- 88,92 ---- echo("Sub directory Created [<a href='workspace.php?filepath=$filepath'>Return to Workspace</a> ]"); ! die(include_once($footer)); } *************** *** 95,107 **** if($_GET["action"] == "delete" && isset($_GET["confirmed"]) == false && $_GET["owner"] == $user->user) { echo("Are you sure you want to delete "" . $_GET["file"] . "" in the " . $_GET["filepath"] . " directory?<br><a href='workspace.php?confirmed=true&file=" . $_GET["file"] . "&action=delete&filepath=" . $_GET["filepath"] . "'>Yes, I'm sure</a> <a href='workspace.php'>No, I've changed my mind</a>"); ! die(include($footer)); } elseif($_GET["action"] == "delete" && isset($_GET["confirmed"]) == true) { $del = ofirst_dbquery("DELETE FROM ofirst_workspace_files WHERE name='" . $_GET["file"] . "' AND owner='$user->user' AND location='" . $_GET["filepath"] . "';"); unlink($ws->virtfspath . "/" . $_GET["file"]); echo("The file <strong>"" . $_GET["file"] . ""</strong> has been deleted. [ <a href='workspace.php'>Workspace</a> ]"); ! die(include($footer)); } elseif($_GET["action"] == "delete" && $_GET["owner"] != $user->user && isset($_GET["owner"]) == true) { echo("You cannot delete files which you do not own. [ <a href='workspace.php'>Return to workspace</a> ]"); ! die(include($footer)); } // Handle directory deletion --- 95,107 ---- if($_GET["action"] == "delete" && isset($_GET["confirmed"]) == false && $_GET["owner"] == $user->user) { echo("Are you sure you want to delete "" . $_GET["file"] . "" in the " . $_GET["filepath"] . " directory?<br><a href='workspace.php?confirmed=true&file=" . $_GET["file"] . "&action=delete&filepath=" . $_GET["filepath"] . "'>Yes, I'm sure</a> <a href='workspace.php'>No, I've changed my mind</a>"); ! die(include_once($footer)); } elseif($_GET["action"] == "delete" && isset($_GET["confirmed"]) == true) { $del = ofirst_dbquery("DELETE FROM ofirst_workspace_files WHERE name='" . $_GET["file"] . "' AND owner='$user->user' AND location='" . $_GET["filepath"] . "';"); unlink($ws->virtfspath . "/" . $_GET["file"]); echo("The file <strong>"" . $_GET["file"] . ""</strong> has been deleted. [ <a href='workspace.php'>Workspace</a> ]"); ! die(include_once($footer)); } elseif($_GET["action"] == "delete" && $_GET["owner"] != $user->user && isset($_GET["owner"]) == true) { echo("You cannot delete files which you do not own. [ <a href='workspace.php'>Return to workspace</a> ]"); ! die(include_once($footer)); } // Handle directory deletion *************** *** 130,134 **** } echo("The sub directory <strong>"" . $_GET["directory"] . ""</strong> has been deleted. [ <a href='workspace.php'>Workspace</a> ]"); ! die(include($footer)); } elseif($_GET["action"] == "removedirectory" && isset($_GET["confirmed"]) == false) { echo("Are you sure you want to delete "" . $_GET["directory"] . "" in the " . $_GET["filepath"] . " directory? This <strong>will also remove all --- 130,134 ---- } echo("The sub directory <strong>"" . $_GET["directory"] . ""</strong> has been deleted. [ <a href='workspace.php'>Workspace</a> ]"); ! die(include_once($footer)); } elseif($_GET["action"] == "removedirectory" && isset($_GET["confirmed"]) == false) { echo("Are you sure you want to delete "" . $_GET["directory"] . "" in the " . $_GET["filepath"] . " directory? This <strong>will also remove all *************** *** 136,140 **** <br><a href='workspace.php?confirmed=true&directory=" . $_GET["directory"] . "&action=removedirectory&filepath=" . $_GET["filepath"] . "'>Yes, I'm sure</a> <a href='workspace.php'>No, I've changed my mind</a>"); ! die(include($footer)); } --- 136,140 ---- <br><a href='workspace.php?confirmed=true&directory=" . $_GET["directory"] . "&action=removedirectory&filepath=" . $_GET["filepath"] . "'>Yes, I'm sure</a> <a href='workspace.php'>No, I've changed my mind</a>"); ! die(include_once($footer)); } *************** *** 225,229 **** </table>"); echo("<p>[ <a href='workspace.php'>Return to workspace</a> ]</p>"); ! die(include($footer)); } --- 225,229 ---- </table>"); echo("<p>[ <a href='workspace.php'>Return to workspace</a> ]</p>"); ! die(include_once($footer)); } *************** *** 253,257 **** <tr><th>Description</th><td>$fi->description</td></tr> </table><p><a href='workspace.php?view=true&" . $_SERVER["QUERY_STRING"] . "'>Proceed to view this file</a> | <a href='workspace.php'>Return to workspace</a></p>"); ! die(include($footer)); } } --- 253,257 ---- <tr><th>Description</th><td>$fi->description</td></tr> </table><p><a href='workspace.php?view=true&" . $_SERVER["QUERY_STRING"] . "'>Proceed to view this file</a> | <a href='workspace.php'>Return to workspace</a></p>"); ! die(include_once($footer)); } } *************** *** 268,272 **** $uf = ofirst_dbquery("INSERT INTO ofirst_workspace_files (size, location, owner, division, permissions, date, description, filetype, name) VALUES('" .( filesize("$ws->virtfspath/" . $_POST["filepath"] . "/$name") / 1024). "', '" . $_POST["filepath"] . "', '$user->user', '" . $_POST["division"] . "', '" . $_POST["userperm"] . $_POST["groupperm"] . $_POST["otherperm"] . "', '" . date('D M d Y h:m:s') . "', '" . $_POST["description"] . "', '" . strtolower(substr($name, strrpos($name, ".") +1)) . "', '$name');"); echo("File "$name" has been uploaded successfully. [ <a href='workspace.php'>Workspace</a> | <a href='workspace.php?file=$name&action=view&filepath=" . $_POST["filepath"] ."'>View</a> ]"); ! die(include($footer)); } ?> --- 268,272 ---- $uf = ofirst_dbquery("INSERT INTO ofirst_workspace_files (size, location, owner, division, permissions, date, description, filetype, name) VALUES('" .( filesize("$ws->virtfspath/" . $_POST["filepath"] . "/$name") / 1024). "', '" . $_POST["filepath"] . "', '$user->user', '" . $_POST["division"] . "', '" . $_POST["userperm"] . $_POST["groupperm"] . $_POST["otherperm"] . "', '" . date('D M d Y h:m:s') . "', '" . $_POST["description"] . "', '" . strtolower(substr($name, strrpos($name, ".") +1)) . "', '$name');"); echo("File "$name" has been uploaded successfully. [ <a href='workspace.php'>Workspace</a> | <a href='workspace.php?file=$name&action=view&filepath=" . $_POST["filepath"] ."'>View</a> ]"); ! die(include_once($footer)); } ?> *************** *** 485,487 **** showlogin(); } ! include($footer); ?> --- 485,487 ---- showlogin(); } ! include_once($footer); ?> |
From: <xt...@us...> - 2003-11-23 19:04:08
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv30375 Modified Files: profile.php Log Message: Fix formatting bugs and make output of a consistant format. Also clean up coding style somewhat. Index: profile.php =================================================================== RCS file: /cvsroot/openfirst/members/profile.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** profile.php 9 Nov 2003 02:51:32 -0000 1.18 --- profile.php 23 Nov 2003 19:04:04 -0000 1.19 *************** *** 133,138 **** } ! // 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."; } --- 133,137 ---- } ! // Replace values for display if information is not present if ($q->description == "") { $q->description = "No description entered."; } if ($q->division == "") { $q->division = "No division given."; } *************** *** 154,158 **** // 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>"); --- 153,157 ---- // Do not display an image if not available if($q->picturelocation == "") { ! echo("<center><img src='nophoto.png' alt='$q->firstname $q->lastname has not provided a picture' /></center>"); } else { echo("<center><img src='$q->picturelocation' alt='$q->firstname $q->lastname' /></center>"); *************** *** 165,169 **** 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> --- 164,168 ---- 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> *************** *** 175,179 **** <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> --- 174,184 ---- <tr> <td><div align="center"><img src='email.png' alt='E-mail address' /></div></td> ! <td><?php if(isset($q->email) && $q->email != "") { ! ?> ! <a href='mailto: <?php echo $q->email; ?>'><?php echo $q->email; ?></a> ! <?php } else { ! echo("No e-mail contact information provided"); ! } ?> ! </td> </tr> <td><div align="center"><img src='icq.png' alt='I Seek You (ICQ) Number' /></div></td> *************** *** 184,188 **** 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!"); } ?> --- 189,193 ---- 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 information provided"); } ?> *************** *** 195,199 **** // Check if MSN information is available if($q->msn == "") { ! echo("No MSN contact!"); } else { echo $q->msn; --- 200,204 ---- // Check if MSN information is available if($q->msn == "") { ! echo("No MSN contact information provided"); } else { echo $q->msn; *************** *** 210,214 **** 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!"); } ?> --- 215,219 ---- 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 information provided"); } ?> *************** *** 224,228 **** echo("<img src=\"http://opi.yahoo.com/online?u=$q->yim&m=g&t=1\" alt=\"User status\" />"); } else { ! echo("No YIM contact!"); } ?> --- 229,233 ---- echo("<img src=\"http://opi.yahoo.com/online?u=$q->yim&m=g&t=1\" alt=\"User status\" />"); } else { ! echo("No YIM contact information provided"); } ?> *************** *** 247,260 **** // 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> --- 252,264 ---- // 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> *************** *** 264,266 **** } include($footer); ! ?> \ No newline at end of file --- 268,270 ---- } include($footer); ! ?> |
From: <dav...@us...> - 2003-11-23 18:23:18
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv21874 Modified Files: index.php Log Message: Removed link to manual. If the person needs help on how to use it then webmasters can make reference to it. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/projects/index.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** index.php 23 Nov 2003 14:49:34 -0000 1.17 --- index.php 23 Nov 2003 18:23:15 -0000 1.18 *************** *** 153,158 **** </tr> </table> ! <p>[ <a href="<?php echo $home.$basepath; ?>/manual/openfirst.projects/projects.php#howto">Project ! Help Manual</a> ] [ <a href="today.php">View Today's Commits</a> ]<br> <?php --- 153,158 ---- </tr> </table> ! <p>[ <a href="today.php">View Today's Commits</a> ] [ <a href="preferences.php">My ! Preferences</a> ]<br> <?php |
From: <xt...@us...> - 2003-11-23 17:28:23
|
Update of /cvsroot/openfirst/downloads/admin In directory sc8-pr-cvs1:/tmp/cvs-serv10361/admin Modified Files: editinfo.php index.php killfile.php upload.php Log Message: Change all occurances of include() to include_once(), correct some style issues, add mssql setup script Index: editinfo.php =================================================================== RCS file: /cvsroot/openfirst/downloads/admin/editinfo.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** editinfo.php 7 Oct 2003 01:33:23 -0000 1.1 --- editinfo.php 23 Nov 2003 17:28:19 -0000 1.2 *************** *** 26,31 **** * */ ! include("../../config/globals.php"); ! include($header); echo("<h1>Edit File Information</h1>"); --- 26,31 ---- * */ ! include_once("../../config/globals.php"); ! include_once($header); echo("<h1>Edit File Information</h1>"); *************** *** 103,112 **** <?php ! } ! else { echo('<div>This file does not exist.</div>'); } ! } ! else { $query=ofirst_dbquery("UPDATE ofirst_downloads SET Title='".$_POST["title"]."', Description='".$_POST["desc"]."', Category='".$_POST["category"]."' WHERE ID='".$_POST["ID"]."';"); --- 103,110 ---- <?php ! } else { echo('<div>This file does not exist.</div>'); } ! } else { $query=ofirst_dbquery("UPDATE ofirst_downloads SET Title='".$_POST["title"]."', Description='".$_POST["desc"]."', Category='".$_POST["category"]."' WHERE ID='".$_POST["ID"]."';"); *************** *** 117,120 **** echo("You must be logged on as an administrative user to edit file details."); } ! include($footer); ?> --- 115,118 ---- echo("You must be logged on as an administrative user to edit file details."); } ! include_once($footer); ?> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/downloads/admin/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 7 Oct 2003 01:33:23 -0000 1.1 --- index.php 23 Nov 2003 17:28:19 -0000 1.2 *************** *** 26,31 **** * */ ! include("../../config/globals.php"); ! include($header); echo("<h1>Category Editor</h1>"); --- 26,31 ---- * */ ! include_once("../../config/globals.php"); ! include_once($header); echo("<h1>Category Editor</h1>"); *************** *** 80,85 **** </td></tr></table></form> <?php ! } ! else { // Action $nodelete=false; --- 80,84 ---- </td></tr></table></form> <?php ! } else { // Action $nodelete=false; *************** *** 112,117 **** <?php } ! } ! else { switch($_POST["conflictaction"]){ case "delete": { --- 111,115 ---- <?php } ! } else { switch($_POST["conflictaction"]){ case "delete": { *************** *** 132,142 **** echo("Category " . $_POST["cat"] . " has been deleted. [ <a href='../index.php'>Main</a> ]"); } ! } ! else { if(isset($_POST["newcat"])){ if($_POST["customicon"]!=""){ $icon=$_POST["customicon"]; ! } ! else { $icon=$_POST["newicon"]; } --- 130,138 ---- echo("Category " . $_POST["cat"] . " has been deleted. [ <a href='../index.php'>Main</a> ]"); } ! } else { if(isset($_POST["newcat"])){ if($_POST["customicon"]!=""){ $icon=$_POST["customicon"]; ! } else { $icon=$_POST["newicon"]; } *************** *** 147,154 **** } } ! } ! else { echo("You must be logged on as an administrative user to edit categories."); } ! include($footer); ?> --- 143,149 ---- } } ! } else { echo("You must be logged on as an administrative user to edit categories."); } ! include_once($footer); ?> Index: killfile.php =================================================================== RCS file: /cvsroot/openfirst/downloads/admin/killfile.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** killfile.php 7 Oct 2003 01:33:23 -0000 1.1 --- killfile.php 23 Nov 2003 17:28:19 -0000 1.2 *************** *** 26,31 **** * */ ! include("../../config/globals.php"); ! include($header); ?> --- 26,31 ---- * */ ! include_once("../../config/globals.php"); ! include_once($header); ?> *************** *** 64,69 **** echo('<div>Delete '.$filename.'?</div><br>'); echo('<input type="submit" value="Confirm"></form>'); ! } ! else { echo('<div>This file does not exist.</div>'); } --- 64,68 ---- echo('<div>Delete '.$filename.'?</div><br>'); echo('<input type="submit" value="Confirm"></form>'); ! } else { echo('<div>This file does not exist.</div>'); } *************** *** 82,90 **** echo("<div>The file has been deleted.</div><div>[<a href='../index.php'>Return to File Manager</a>]</div>"); } ! } ! else { echo("You must be logged on as an administrative user to delete files."); } echo("</td></tr></table>"); ! include($footer); ?> --- 81,88 ---- echo("<div>The file has been deleted.</div><div>[<a href='../index.php'>Return to File Manager</a>]</div>"); } ! } else { echo("You must be logged on as an administrative user to delete files."); } echo("</td></tr></table>"); ! include_once($footer); ?> Index: upload.php =================================================================== RCS file: /cvsroot/openfirst/downloads/admin/upload.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** upload.php 7 Oct 2003 01:33:23 -0000 1.1 --- upload.php 23 Nov 2003 17:28:19 -0000 1.2 *************** *** 28,33 **** // Import globals and estbalish database connection ! include("../../config/globals.php"); ! include($header); //directory to upload to --- 28,33 ---- // Import globals and estbalish database connection ! include_once("../../config/globals.php"); ! include_once($header); //directory to upload to *************** *** 38,42 **** if(! isset($user->user) || $user->membertype != "administrator"){ showlogin(); ! die(include($footer)); } --- 38,42 ---- if(! isset($user->user) || $user->membertype != "administrator"){ showlogin(); ! die(include_once($footer)); } *************** *** 53,68 **** echo('<div style="color:green">'.$_FILES['newfile']['name'].' was successfully uploaded to filesystem</div>'); ofirst_dbquery("INSERT INTO ofirst_downloads (Category, Title, Description, mime, ext, DateAdded, FileData) VALUES ('".$_POST["Category"]."', '".$_POST["Title"]."', '".$_POST["Description"]."', '".$_FILES['newfile']['type']."', '".$extension."', '$now', 'location:".$serverdir.$_FILES['newfile']['name']."');"); ! } ! else { echo('<div style="color:red">Could not upload '.$_FILES['newfile']['name'].'</div>'); } ! } ! else { if($bindata=file_get_contents($_FILES['newfile']['tmp_name'])){ $bindata=base64_encode($bindata); echo('<div style="color:green">'.$_FILES['newfile']['name'].' was successfully uploaded to database</div>'); ofirst_dbquery("INSERT INTO ofirst_downloads (Category, Title, Description, mime, ext, DateAdded, FileData) VALUES ('".$_POST["Category"]."', '".$_POST["Title"]."', '".$_POST["Description"]."', '".$_FILES['newfile']['type']."', '".$extension."', '$now', '".$bindata."');"); ! } ! else { echo('<div style="color:red">Could not upload '.$_FILES['newfile']['name'].'</div>'); } --- 53,65 ---- echo('<div style="color:green">'.$_FILES['newfile']['name'].' was successfully uploaded to filesystem</div>'); ofirst_dbquery("INSERT INTO ofirst_downloads (Category, Title, Description, mime, ext, DateAdded, FileData) VALUES ('".$_POST["Category"]."', '".$_POST["Title"]."', '".$_POST["Description"]."', '".$_FILES['newfile']['type']."', '".$extension."', '$now', 'location:".$serverdir.$_FILES['newfile']['name']."');"); ! } else { echo('<div style="color:red">Could not upload '.$_FILES['newfile']['name'].'</div>'); } ! } else { if($bindata=file_get_contents($_FILES['newfile']['tmp_name'])){ $bindata=base64_encode($bindata); echo('<div style="color:green">'.$_FILES['newfile']['name'].' was successfully uploaded to database</div>'); ofirst_dbquery("INSERT INTO ofirst_downloads (Category, Title, Description, mime, ext, DateAdded, FileData) VALUES ('".$_POST["Category"]."', '".$_POST["Title"]."', '".$_POST["Description"]."', '".$_FILES['newfile']['type']."', '".$extension."', '$now', '".$bindata."');"); ! } else { echo('<div style="color:red">Could not upload '.$_FILES['newfile']['name'].'</div>'); } *************** *** 72,76 **** echo('<br><br><div><a href="../index.php">[Return to File Manager]</a></div>'); ! include($footer); ?> --- 69,73 ---- echo('<br><br><div><a href="../index.php">[Return to File Manager]</a></div>'); ! include_once($footer); ?> |
From: <xt...@us...> - 2003-11-23 17:28:22
|
Update of /cvsroot/openfirst/downloads/setup In directory sc8-pr-cvs1:/tmp/cvs-serv10361/setup Modified Files: setup.mysql Added Files: setup.mssql Log Message: Change all occurances of include() to include_once(), correct some style issues, add mssql setup script --- NEW FILE: setup.mssql --- CREATE TABLE `ofirst_downloads` (`ID` bigint(12) unsigned NOT NULL auto_increment, `Category` varchar(35) NOT NULL default '', `Title` tinytext NOT NULL, `Description` mediumtext, `mime` tinytext, `ext` tinytext, `DateAdded` date NOT NULL default '0000-00-00', `FileData` longblob NOT NULL, `hits` int(12) default '0', PRIMARY KEY (`ID`), UNIQUE KEY `ID` (`ID`), KEY `ID_2` (`ID`)) TYPE=MyISAM CREATE TABLE `ofirst_downloadcat` (`ID` int(12) NOT NULL auto_increment, `Category` varchar(35) NOT NULL default '', `Description` tinytext, `Icon` tinytext, PRIMARY KEY (`ID`), UNIQUE KEY `ID` (`ID`,`Category`(12)), KEY `ID_2` (`ID`)) TYPE=MyISAM INSERT INTO ofirst_config SET modulename='downloads',showonmenu='0',active='0',adminnavigation='<a href="$basepath/downloads/admin">Category Editor</a>',modulenavigation='<a href="$basepath/downloads/">Downloads Home</a>',includes=''; Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/downloads/setup/setup.mysql,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** setup.mysql 7 Oct 2003 01:33:23 -0000 1.1 --- setup.mysql 23 Nov 2003 17:28:19 -0000 1.2 *************** *** 1,3 **** CREATE TABLE `ofirst_downloads` (`ID` bigint(12) unsigned NOT NULL auto_increment, `Category` varchar(35) NOT NULL default '', `Title` tinytext NOT NULL, `Description` mediumtext, `mime` tinytext, `ext` tinytext, `DateAdded` date NOT NULL default '0000-00-00', `FileData` longblob NOT NULL, `hits` int(12) default '0', PRIMARY KEY (`ID`), UNIQUE KEY `ID` (`ID`), KEY `ID_2` (`ID`)) TYPE=MyISAM CREATE TABLE `ofirst_downloadcat` (`ID` int(12) NOT NULL auto_increment, `Category` varchar(35) NOT NULL default '', `Description` tinytext, `Icon` tinytext, PRIMARY KEY (`ID`), UNIQUE KEY `ID` (`ID`,`Category`(12)), KEY `ID_2` (`ID`)) TYPE=MyISAM ! INSERT INTO ofirst_config SET modulename='downloads',showonmenu='0',active='0',adminnavigation='<a href="$basepath/downloads/admin">Category Editor</a>',modulenavigation='<a href="$basepath/downloads/">Downloads Home</a>',includes=''; \ No newline at end of file --- 1,3 ---- CREATE TABLE `ofirst_downloads` (`ID` bigint(12) unsigned NOT NULL auto_increment, `Category` varchar(35) NOT NULL default '', `Title` tinytext NOT NULL, `Description` mediumtext, `mime` tinytext, `ext` tinytext, `DateAdded` date NOT NULL default '0000-00-00', `FileData` longblob NOT NULL, `hits` int(12) default '0', PRIMARY KEY (`ID`), UNIQUE KEY `ID` (`ID`), KEY `ID_2` (`ID`)) TYPE=MyISAM CREATE TABLE `ofirst_downloadcat` (`ID` int(12) NOT NULL auto_increment, `Category` varchar(35) NOT NULL default '', `Description` tinytext, `Icon` tinytext, PRIMARY KEY (`ID`), UNIQUE KEY `ID` (`ID`,`Category`(12)), KEY `ID_2` (`ID`)) TYPE=MyISAM ! INSERT INTO ofirst_config SET modulename='downloads',showonmenu='0',active='0',adminnavigation='<a href="$basepath/downloads/admin">Category Editor</a>',modulenavigation='<a href="$basepath/downloads/">Downloads Home</a>',includes=''; |
From: <xt...@us...> - 2003-11-23 17:28:22
|
Update of /cvsroot/openfirst/downloads In directory sc8-pr-cvs1:/tmp/cvs-serv10361 Modified Files: getfile.php index.php notfound.php Log Message: Change all occurances of include() to include_once(), correct some style issues, add mssql setup script Index: getfile.php =================================================================== RCS file: /cvsroot/openfirst/downloads/getfile.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** getfile.php 7 Oct 2003 01:33:23 -0000 1.1 --- getfile.php 23 Nov 2003 17:28:19 -0000 1.2 *************** *** 26,35 **** * */ ! include("../config/globals.php"); if(isset($_GET["id"])){ $id=$_GET["id"]; ! } ! else{ header("Location: notfound.php"); } --- 26,34 ---- * */ ! include_once("../config/globals.php"); if(isset($_GET["id"])){ $id=$_GET["id"]; ! } else{ header("Location: notfound.php"); } *************** *** 38,43 **** if (ofirst_dbnum_rows($query)==0){ header("Location: notfound.php"); ! } ! else { $file = ofirst_dbfetch_object($query); --- 37,41 ---- if (ofirst_dbnum_rows($query)==0){ header("Location: notfound.php"); ! } else { $file = ofirst_dbfetch_object($query); *************** *** 46,51 **** if(ereg("location:*",$file->FileData)){ header("Location: ".substr($file->FileData,9)); ! } ! else{ header("Content-type: ".$file->mime); echo(base64_decode($file->FileData)); --- 44,48 ---- if(ereg("location:*",$file->FileData)){ header("Location: ".substr($file->FileData,9)); ! } else{ header("Content-type: ".$file->mime); echo(base64_decode($file->FileData)); Index: index.php =================================================================== RCS file: /cvsroot/openfirst/downloads/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 7 Oct 2003 01:33:23 -0000 1.1 --- index.php 23 Nov 2003 17:28:19 -0000 1.2 *************** *** 27,32 **** */ ! include("../config/globals.php"); ! include($header); //whether to show images --- 27,32 ---- */ ! include_once("../config/globals.php"); ! include_once($header); //whether to show images *************** *** 74,79 **** if(($images)&&($cat->Icon!="")){ echo('<img border=0 align=absmiddle src="'.$basepath."/".$cat->Icon.'"> '); ! } ! else { echo("> "); } --- 74,78 ---- if(($images)&&($cat->Icon!="")){ echo('<img border=0 align=absmiddle src="'.$basepath."/".$cat->Icon.'"> '); ! } else { echo("> "); } *************** *** 82,92 **** echo("</table>"); } ! } ! else { $query = ofirst_dbquery("SELECT * FROM ofirst_downloadcat WHERE ID='".$category."'"); if(ofirst_dbnum_rows($query)==0){ echo("<div>The specified category does not exist</div>"); ! } ! else{ $cat = ofirst_dbfetch_object($query); echo("<h1>$cat->Category</h1>"); --- 81,89 ---- echo("</table>"); } ! } else { $query = ofirst_dbquery("SELECT * FROM ofirst_downloadcat WHERE ID='".$category."'"); if(ofirst_dbnum_rows($query)==0){ echo("<div>The specified category does not exist</div>"); ! } else { $cat = ofirst_dbfetch_object($query); echo("<h1>$cat->Category</h1>"); *************** *** 148,153 **** } echo("</tr>"); ! } ! else { break; } --- 145,149 ---- } echo("</tr>"); ! } else { break; } *************** *** 188,191 **** } ! include($footer); ?> --- 184,187 ---- } ! include_once($footer); ?> Index: notfound.php =================================================================== RCS file: /cvsroot/openfirst/downloads/notfound.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** notfound.php 7 Oct 2003 01:33:23 -0000 1.1 --- notfound.php 23 Nov 2003 17:28:19 -0000 1.2 *************** *** 27,36 **** */ ! include("../config/globals.php"); ! include($header); echo("<h1>File Not Found</h1>"); echo("<p>The file you were downloading cannot be found in the system.</p><p>If you followed a link on one of the pages, please report the broken link to the webmaster.</p>"); ! include($footer); ?> --- 27,36 ---- */ ! include_once("../config/globals.php"); ! include_once($header); echo("<h1>File Not Found</h1>"); echo("<p>The file you were downloading cannot be found in the system.</p><p>If you followed a link on one of the pages, please report the broken link to the webmaster.</p>"); ! include_once($footer); ?> |
From: <dav...@us...> - 2003-11-23 17:20:07
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv9161 Removed Files: updatesetup.php Log Message: File should be in /admin --- updatesetup.php DELETED --- |
From: <xt...@us...> - 2003-11-23 15:45:33
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv26095 Modified Files: index.php Log Message: Make phrasing less awkward. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/members/index.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** index.php 1 Nov 2003 18:05:49 -0000 1.9 --- index.php 23 Nov 2003 15:45:30 -0000 1.10 *************** *** 46,50 **** <tr> <td><p> Welcome <b><?php echo("$user->firstname"); ?></b> to the <b><?php echo $title; ?></b> members area.<br> ! You now have access to all the member related back-end and information system.</td> </tr> </table> --- 46,50 ---- <tr> <td><p> Welcome <b><?php echo("$user->firstname"); ?></b> to the <b><?php echo $title; ?></b> members area.<br> ! You now have access to the member related back-end and information system.</td> </tr> </table> |
From: <xt...@us...> - 2003-11-23 15:43:02
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv25706/admin Modified Files: delcomment.php Log Message: Style changes for the sake of uniformity. Index: delcomment.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/delcomment.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** delcomment.php 23 Oct 2003 22:31:13 -0000 1.1 --- delcomment.php 23 Nov 2003 15:42:59 -0000 1.2 *************** *** 38,46 **** <td align="center"> <?php ! $admin=false; ! if (isset($user->membertype)){ ! $admin=($user->membertype == "administrator"); ! } ! if($admin) { if(!isset($_POST["CommentID"])) { $query = ofirst_dbquery("SELECT * FROM ofirst_news_comments WHERE ID='".$_GET["id"]."'"); --- 38,47 ---- <td align="center"> <?php ! $admin=false; ! if (isset($user->membertype)){ ! $admin=($user->membertype == "administrator"); ! } ! ! if($admin) { if(!isset($_POST["CommentID"])) { $query = ofirst_dbquery("SELECT * FROM ofirst_news_comments WHERE ID='".$_GET["id"]."'"); *************** *** 50,65 **** echo('<div>Delete comment?</div><br>'); echo('<input type="submit" value="Confirm"></form>'); ! } ! else { echo('<div>This comment does not exist.</div>'); } ! } else { // Delete the news by ID. ofirst_dbquery("DELETE FROM ofirst_news_comments WHERE ID=".$_POST["CommentID"].";"); echo("The comment has been deleted. [ <a href='../index.php'>Main</a> ]"); } ! } ! else { echo("You must be logged on as an administrative user to delete comments."); } --- 51,64 ---- echo('<div>Delete comment?</div><br>'); echo('<input type="submit" value="Confirm"></form>'); ! } else { echo('<div>This comment does not exist.</div>'); } ! } else { // Delete the news by ID. ofirst_dbquery("DELETE FROM ofirst_news_comments WHERE ID=".$_POST["CommentID"].";"); echo("The comment has been deleted. [ <a href='../index.php'>Main</a> ]"); } ! } else { echo("You must be logged on as an administrative user to delete comments."); } |
From: <xt...@us...> - 2003-11-23 15:43:02
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv25706 Modified Files: newcomment.php Log Message: Style changes for the sake of uniformity. Index: newcomment.php =================================================================== RCS file: /cvsroot/openfirst/news/newcomment.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** newcomment.php 23 Oct 2003 22:31:12 -0000 1.1 --- newcomment.php 23 Nov 2003 15:42:59 -0000 1.2 *************** *** 44,49 **** ofirst_dbquery("INSERT INTO ofirst_news_comments (StoryID,Author,EMail,Website,Comment,Date) values ('".$_POST["id"]."','".$_POST["uname"]."','".$mail."','".$web."','".strip_tags($_POST["comment"],"<b><i><em><strong>")."','".date("Y-m-d H:i:s")."');"); echo("<h4>Comment Added</h4>"); ! } ! else{ echo("<h4>Could not add comment</h4>"); } --- 44,48 ---- ofirst_dbquery("INSERT INTO ofirst_news_comments (StoryID,Author,EMail,Website,Comment,Date) values ('".$_POST["id"]."','".$_POST["uname"]."','".$mail."','".$web."','".strip_tags($_POST["comment"],"<b><i><em><strong>")."','".date("Y-m-d H:i:s")."');"); echo("<h4>Comment Added</h4>"); ! } else{ echo("<h4>Could not add comment</h4>"); } |
From: <xt...@us...> - 2003-11-23 15:39:25
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv25146 Modified Files: comments.php Log Message: Style changes for the sake of uniformity, quoting of attributes within HTML. Index: comments.php =================================================================== RCS file: /cvsroot/openfirst/news/comments.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** comments.php 23 Oct 2003 22:31:12 -0000 1.1 --- comments.php 23 Nov 2003 15:39:20 -0000 1.2 *************** *** 48,53 **** $redirect=ofirst_dbfetch_object($q); header("Location: ".$redirect->Website); ! } ! else{ $q=ofirst_dbquery("SELECT * FROM ofirst_news WHERE ID='$id'"); $newspost=ofirst_dbfetch_object($q); --- 48,52 ---- $redirect=ofirst_dbfetch_object($q); header("Location: ".$redirect->Website); ! } else { $q=ofirst_dbquery("SELECT * FROM ofirst_news WHERE ID='$id'"); $newspost=ofirst_dbfetch_object($q); *************** *** 58,69 **** header("Location: ".$basepath."/forum/thread.php?id=".$news->ID); } ! } ! else{ include_once($header); ?> <h2>Comments</h2> ! <table width=500> ! <tr><th colspan=2> <?php $q=ofirst_dbquery("SELECT title FROM ofirst_news WHERE ID='$id'"); --- 57,67 ---- header("Location: ".$basepath."/forum/thread.php?id=".$news->ID); } ! } else { include_once($header); ?> <h2>Comments</h2> ! <table width='500'> ! <tr><th colspan='2'> <?php $q=ofirst_dbquery("SELECT title FROM ofirst_news WHERE ID='$id'"); *************** *** 75,119 **** if(ofirst_dbnum_rows($q)!=0){ while($post=ofirst_dbfetch_object($q)){ ! echo("<tr valign=top><td class=sub width=200>"); if($post->EMail!=""){ echo("<a href=\"=$post->EMail\">$post->Author</a>"); ! } ! else{ echo("<b>$post->Author</b>"); } if($post->Website!=""){ echo("<br />Website: <a href=\"$post->Website\">$post->Website</a>"); ! } echo("<div><i>".$post->Date."</i></div>"); ! echo("</td><td width=300>".$post->Comment); if($admin){ ! echo("<br /><div align=right><a href=\"admin/delcomment.php?id=$post->ID\">Delete</a></div></td>"); } echo("</td></tr>"); } ! } ! else{ ! echo("<tr><td colspan=2 align=center>No comments have been posted</td></tr>"); } ?> </table><br /> <form action="newcomment.php" method=POST> ! <input type="hidden" name=id value="<?php echo($id); ?>" /> <table> ! <tr><th colspan=2>Post Comment</th></tr> ! <tr><td class=sub><label for=uname><b>Name</b></label></td> ! <td><input name=uname id=uname /></td></tr> ! <tr><td class=sub><label for=email><b>E-Mail</b><br />(optional)</label></td> ! <td><input name=email id=email /></td></tr> ! <tr><td class=sub><label for=web><b>Web site</b><br />(optional)</label></td> ! <td><input name=web id=web /></td></tr> ! <tr><td class=sub><label for=comment><b>Comment</b></label></td> ! <td><textarea name=comment id=comment rows=5 cols=25></textarea></td></tr> ! <tr><td colspan=2 align=center><input type=submit value="Post" /></td></tr> </table> </form><br /> <?php ! } ! else{ echo("This news item does not exist</th></tr></table><br />"); } --- 73,114 ---- if(ofirst_dbnum_rows($q)!=0){ while($post=ofirst_dbfetch_object($q)){ ! echo("<tr valign='top'><td class='sub' width='200'>"); if($post->EMail!=""){ echo("<a href=\"=$post->EMail\">$post->Author</a>"); ! } else { echo("<b>$post->Author</b>"); } if($post->Website!=""){ echo("<br />Website: <a href=\"$post->Website\">$post->Website</a>"); ! } echo("<div><i>".$post->Date."</i></div>"); ! echo("</td><td width='300'>".$post->Comment); if($admin){ ! echo("<br /><div align='right'><a href=\"admin/delcomment.php?id=$post->ID\">Delete</a></div></td>"); } echo("</td></tr>"); } ! } else { ! echo("<tr><td colspan='2' align='center'>No comments have been posted</td></tr>"); } ?> </table><br /> <form action="newcomment.php" method=POST> ! <input type="hidden" name="id" value="<?php echo($id); ?>" /> <table> ! <tr><th colspan="2">Post Comment</th></tr> ! <tr><td class="sub"><label for="uname"><b>Name</b></label></td> ! <td><input name="uname" id="uname" /></td></tr> ! <tr><td class="sub"><label for="email"><b>E-Mail</b><br />(optional)</label></td> ! <td><input name="email" id="email" /></td></tr> ! <tr><td class="sub"><label for="web"><b>Web site</b><br />(optional)</label></td> ! <td><input name="web" id="web" /></td></tr> ! <tr><td class="sub"><label for="comment"><b>Comment</b></label></td> ! <td><textarea name="comment" id="comment" rows="5" cols="25"></textarea></td></tr> ! <tr><td colspan="2" align="center"><input type="submit" value="Post" /></td></tr> </table> </form><br /> <?php ! } else { echo("This news item does not exist</th></tr></table><br />"); } |
From: <xt...@us...> - 2003-11-23 15:24:42
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv22049 Modified Files: auth.php Log Message: Style changes for the sake of uniformity. Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/base/config/auth.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** auth.php 16 Nov 2003 23:08:34 -0000 1.10 --- auth.php 23 Nov 2003 15:24:39 -0000 1.11 *************** *** 97,102 **** //renew cookie setcookie("openFIRSTlogin",$authcode,time()+2592000,"/"); ! } ! else{ $authcode=0; } --- 97,101 ---- //renew cookie setcookie("openFIRSTlogin",$authcode,time()+2592000,"/"); ! } else { $authcode=0; } *************** *** 142,147 **** //save authcode in a cookie setcookie("openFIRSTlogin",$_SESSION["authcode"],time()+2592000,"/"); ! } ! else{ //delete cookie setcookie("openFIRSTlogin"," ",time()-3600,"/"); --- 141,145 ---- //save authcode in a cookie setcookie("openFIRSTlogin",$_SESSION["authcode"],time()+2592000,"/"); ! } else { //delete cookie setcookie("openFIRSTlogin"," ",time()-3600,"/"); |
From: <xt...@us...> - 2003-11-23 15:12:52
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv20519 Modified Files: first.php Log Message: Make single equal sign double equal sign (as it should be). Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** first.php 16 Nov 2003 23:09:39 -0000 1.25 --- first.php 23 Nov 2003 15:12:49 -0000 1.26 *************** *** 42,46 **** if(is_writable("./globals.php")) { $of = fopen("./globals.php", "w"); ! if(isset($_POST["cookielogins"])&&$_POST["cookielogins"]="yes"){ $cookielogins=""; }else{ --- 42,46 ---- if(is_writable("./globals.php")) { $of = fopen("./globals.php", "w"); ! if(isset($_POST["cookielogins"])&&$_POST["cookielogins"]=="yes"){ $cookielogins=""; }else{ |