[Openfirst-cvscommit] SF.net SVN: openfirst: [168] tags
Brought to you by:
xtimg
From: <ast...@us...> - 2006-06-21 15:42:52
|
Revision: 168 Author: astronouth7303 Date: 2006-06-21 08:39:54 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=168&view=rev Log Message: ----------- "Tagging" 2.0a2 Added Paths: ----------- tags/openfirst.awards-2.0a2/ tags/openfirst.awards-2.0a2/awards/ tags/openfirst.awards-2.0a2/awards/NOTES tags/openfirst.awards-2.0a2/awards/admin/ tags/openfirst.awards-2.0a2/awards/admin/index.php tags/openfirst.awards-2.0a2/awards/awards.php tags/openfirst.awards-2.0a2/awards/awardsbronze.png tags/openfirst.awards-2.0a2/awards/awardsfirst.gif tags/openfirst.awards-2.0a2/awards/awardsgold.png tags/openfirst.awards-2.0a2/awards/awardssilver.png tags/openfirst.awards-2.0a2/awards/index.php tags/openfirst.awards-2.0a2/awards/openfirst.info.xml tags/openfirst.base-2.0a2/ tags/openfirst.base-2.0a2/COPYING tags/openfirst.base-2.0a2/README tags/openfirst.base-2.0a2/config/ tags/openfirst.base-2.0a2/config/NOTES tags/openfirst.base-2.0a2/config/first.php tags/openfirst.base-2.0a2/config/index.php tags/openfirst.base-2.0a2/config/install.php tags/openfirst.base-2.0a2/config/modules.php tags/openfirst.base-2.0a2/config/openfirst.info.xml tags/openfirst.base-2.0a2/config/version.php tags/openfirst.base-2.0a2/includes/ tags/openfirst.base-2.0a2/includes/BaseModule.php tags/openfirst.base-2.0a2/includes/MSSQLDataBase.php tags/openfirst.base-2.0a2/includes/Module.php tags/openfirst.base-2.0a2/includes/MySQLDataBase.php tags/openfirst.base-2.0a2/includes/ODBCDataBase.php tags/openfirst.base-2.0a2/includes/Skin.php tags/openfirst.base-2.0a2/includes/User.php tags/openfirst.base-2.0a2/includes/auth.php tags/openfirst.base-2.0a2/includes/compatibility.php tags/openfirst.base-2.0a2/includes/dbase.php tags/openfirst.base-2.0a2/includes/edit.php tags/openfirst.base-2.0a2/includes/functions/ tags/openfirst.base-2.0a2/includes/functions/browserid.php tags/openfirst.base-2.0a2/includes/functions/debug.php tags/openfirst.base-2.0a2/includes/functions/forms.php tags/openfirst.base-2.0a2/includes/functions/mail.php tags/openfirst.base-2.0a2/includes/functions/wysiwyg/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/DHTMLEditor Info.txt tags/openfirst.base-2.0a2/includes/functions/wysiwyg/css/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/css/toolbars.css tags/openfirst.base-2.0a2/includes/functions/wysiwyg/dialog/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/dialog/instable.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/dialog/selcolor.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/dialog/setlink.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien/persistent-style.css tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/backcolor.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/bold.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/colors.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/copy.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/cut.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/forecolor.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/indent.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/italic.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifycenter.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifyleft.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifyright.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/link.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/orderedlist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/outdent.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/paste.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/redo.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/table.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/underline.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/undo.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/unorderedlist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Specification.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Text Color.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/backcolor.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/bold.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/colors.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/copy.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/cut.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/forecolor.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/indent.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/italic.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/justifycenter.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/justifyleft.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/justifyright.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/link.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/orderedlist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/outdent.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/paste.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/redo.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/source.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/table.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/underline.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/undo.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/unorderedlist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/js/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/js/lib.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/uti/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/uti/colors.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/absmode.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/abspos.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/additem.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/bgcolor.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/bold.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/borders.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/break.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/bullist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/center.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/copy.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/cut.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/deindent.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/delcell.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/delcol.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/delete.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/delrow.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/details.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/dms.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/email.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/end.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/fgcolor.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/find.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/fullscrn.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/help.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/image.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/immap.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/inindent.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/inscell.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/inscol.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/insrow.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/instable.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/italic.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/left.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/link.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/linkadv.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/lock.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/mrgcell.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/newdoc.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/newproj.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/numlist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/open.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/paste.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/print.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/project.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/props.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/reddot.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/redo.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/right.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/save.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/saveall.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/saveas.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/snapgrid.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/source.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/spltcell.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/start.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/target.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/tasklist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/tblprop.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/under.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/undo.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/zb_b.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/zb_o.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/zb_y.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/zf_b.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/zf_o.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/zf_y.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/js/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/js/dhtmled.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/js/lib.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/js/lib2.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/js/lib_ms.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/behavior_css.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/behavior_menu_invisible.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/behavior_remove_phptags.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/behavior_remove_xmltags.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_about.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_hr.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_hr.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_html.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_html.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_image.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_imagemap.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_log.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_table_properties.html tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_table_properties.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_table_properties_gecko.html tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/grid_small.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/arr.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/genMove.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/index.php tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/msmove.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/trans.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/listbox_paragraph.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/listbox_styleclass.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/listbox_template.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/listbox_template_example.html tags/openfirst.base-2.0a2/includes/functions/wysiwyg.php tags/openfirst.base-2.0a2/includes/functions.php tags/openfirst.base-2.0a2/includes/globals.php tags/openfirst.base-2.0a2/includes/settings.php tags/openfirst.base-2.0a2/includes/sitesettings.tpl tags/openfirst.base-2.0a2/includes/slug.php tags/openfirst.base-2.0a2/includes/xmlModule.php tags/openfirst.base-2.0a2/index.php tags/openfirst.base-2.0a2/style/ tags/openfirst.base-2.0a2/style/Default.php tags/openfirst.base-2.0a2/style/footers.php tags/openfirst.base-2.0a2/style/headers.php tags/openfirst.base-2.0a2/style/images/ tags/openfirst.base-2.0a2/style/images/back-admin.png tags/openfirst.base-2.0a2/style/images/back-light.gif tags/openfirst.base-2.0a2/style/images/back-lighter.gif tags/openfirst.base-2.0a2/style/images/back.gif tags/openfirst.base-2.0a2/style/images/developers-small.gif tags/openfirst.base-2.0a2/style/images/help.gif tags/openfirst.base-2.0a2/style/images/large.gif tags/openfirst.base-2.0a2/style/images/mmc.gif tags/openfirst.base-2.0a2/style/images/oflogo.gif tags/openfirst.base-2.0a2/style/images/openfirst-small.png tags/openfirst.base-2.0a2/style/images/openfirst.png tags/openfirst.base-2.0a2/style/images/poweredby-small.png tags/openfirst.base-2.0a2/style/images/poweredby.png tags/openfirst.base-2.0a2/style/images/small-warning-green.gif tags/openfirst.base-2.0a2/style/images/small-warning.gif tags/openfirst.base-2.0a2/style/images/verytinyfirst.gif tags/openfirst.base-2.0a2/style/images/w3c401.png tags/openfirst.base-2.0a2/style/images/warning.gif tags/openfirst.base-2.0a2/style/images/web.gif tags/openfirst.base-2.0a2/style/style.css tags/openfirst.modules-2.0a2/ tags/openfirst.modules-2.0a2/modules/ tags/openfirst.modules-2.0a2/modules/export.php tags/openfirst.modules-2.0a2/modules/extended.php tags/openfirst.modules-2.0a2/modules/index.php tags/openfirst.modules-2.0a2/modules/info.php tags/openfirst.modules-2.0a2/modules/openfirst.info.xml Property changes on: tags/openfirst.awards-2.0a2/awards ___________________________________________________________________ Name: of:module + openfirst.awards Added: tags/openfirst.awards-2.0a2/awards/NOTES =================================================================== --- tags/openfirst.awards-2.0a2/awards/NOTES (rev 0) +++ tags/openfirst.awards-2.0a2/awards/NOTES 2006-06-21 15:39:54 UTC (rev 168) @@ -0,0 +1,11 @@ +openFIRST.awards + +--- + +** December 25, 2003 Release ** + +David Di Biase - Module approved. + +Tim Ginn - Module approved. + +Greg Inozemtsev - Module approved. Property changes on: tags/openfirst.awards-2.0a2/awards/NOTES ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/plain Name: svn:eol-style + native Property changes on: tags/openfirst.awards-2.0a2/awards/admin ___________________________________________________________________ Name: of:module + openfirst.awards Added: tags/openfirst.awards-2.0a2/awards/admin/index.php =================================================================== --- tags/openfirst.awards-2.0a2/awards/admin/index.php (rev 0) +++ tags/openfirst.awards-2.0a2/awards/admin/index.php 2006-06-21 15:39:54 UTC (rev 168) @@ -0,0 +1,293 @@ +<?php +/* + * openFIRST.awards - admin/index.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. + * + * 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_once("../../includes/globals.php"); + $ogUser->mustBeAdmin(); + include_once($Header); + + // Check if user is an admin then allow processes + // If user has posted delete then delete specified record in querystring DELETE + if (isset($_GET['DELETE'])){ + $ogDB->delete('awards', array('ID' => $_GET['DELETE'])) or die("DELETE: ". $ogDB->errorString()); + + + echo("<p>Award information has been deleted.</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); + die(include_once($footer)); + } + $DisplayForm = true; + $CreateNew = true; + if (array_key_exists('AwardID', $_POST)) { + $CreateNew = false; + $DisplayForm = false; + } + if (array_key_exists('create', $_POST)) { + $CreateNew = true; + $DisplayForm = false; + } + if (array_key_exists('modify', $_POST)) { + $CreateNew = false; + $DisplayForm = false; + } + + $firstaward = false; + if (isset($_POST['firstaward'])) $firstaward = $_POST['firstaward'] == '1' ? true : false; + $firstawardname = ''; + if (isset($_POST['firstawardname'])) $firstawardname = $_POST['firstawardname']; + $award = ''; + if (isset($_POST['award'])) $award = $_POST['award']; + $event = ''; + if (isset($_POST['event'])) $event = $_POST['event']; + $date = date('Y-n-j'); + if (isset($_POST['date'])) $date = $_POST['date']; + $recipient = ''; + if (isset($_POST['recipient'])) $recipient = $_POST['recipient']; + $description = ''; + if (isset($_POST['description'])) $description = $_POST['description']; + $type = 'gold'; + if (isset($_POST['type'])) $type = $_POST['type']; + + + // If user has posted create then insert new award record + if ($CreateNew && !$DisplayForm){ + if ($award != '' || $firstaward){ + if($firstaward) { + $faq = $ogDB->select( 'firstawards', '*', array('AwardName' => $firstawardname), array('LIMIT' => '0,1') ); + $fa = $ogDB->fetchObject($faq); + $award = $fa->AwardName; + $description = $fa->Description; + } + $ogDB->insert( 'awards', + array( 'AwardName' => $award, + 'FIRSTAward' => $firstaward, + 'Event' => $event, + 'Date' => $date, + 'Image' => $type, + 'Description' => $description, + 'Recipient' => $recipient + ) + ) or trigger_error('an openFIRST DB error'); + + echo("<p>Congratulations on your new award. Award submitted!</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); + } else { + echo("<p>Please enter a name for the award.</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); + } + include_once($Footer); + die(); + } + + // If the user has submitted modifications to an award, then make them. + + if (!$CreateNew && !$DisplayForm){ + if ($award != "" || $firstaward){ + if ($firstaward) { + $faq = $ogDB->select('awards', '*', array('AwardName' => $firstawardname)); + $fa = $ogDB->fetchObject($faq); + $award = $fa->AwardName; + $description = $fa->Description; + } + + $ogDB->update( 'awards', + array( 'AwardName' => $award, + 'FIRSTAward' => $firstaward, + 'Event' => $event, + 'Date' => $date, + 'Image' => $type, + 'Description' => $description, + 'Recipient' => $recipient + ), + array('ID' => AwardID) + ) or die("UPDATE: ".$ogDB->errorString()); + + echo("<p>Award modifications submitted!</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); + } else { + echo("<p>Please enter a name for the award.</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); + } + include_once($Footer); + die(); + } + + + // If the user has elected to modify an award, fill the form with those details. + if(!$CreateNew) { + $award = $ogDB->fetchObject($ogDB->select('awards', array('ID' => $AwardID))); + $award->template = false; + + } else { + $award = (object)''; + $award->template = true; + $award->AwardName = 'Autodesk Visualization Award'; + $award->Description = ''; + $award->Event = ''; + $award->Date = date('Y-n-j'); + $award->Recipient = 'Team Award'; + $award->Image = 'gold'; + $award->FIRSTAward = '1'; + } +?> + +<h1>Manage Award Information</h1> +<form method="post" action="index.php"> + <table> + <colgroup> + <col /> + </colgroup> + <colgroup> + <col /> + </colgroup> + <tr> + <th colspan="2"><?php + if (!$award->template) { + echo("Modify an Existing Award + <input type='hidden' id='AwardID' name='AwardID' value='".htmlentities($award->ID)."'>"); + } else { + echo("Add A New Award"); + } + ?></th> + </tr> + <tr> + <th>Award Name</th> + <td class="left"> + <table class="no-space left"> + <tr> + <td> + <input type='radio' name='firstaward' value='1' <?php if ($award->FIRSTAward) echo 'checked="checked"'; ?>> + </td> + <td> FIRST Award</td> + </td> + <td> + <select name='firstawardname'> + <?php + $faq = $ogDB->select('firstawards', 'AwardName', array(), array('order' => 'AwardName')); + while($fa = $ogDB->fetchObject($faq)) { + echo "<option value='$fa->AwardName'"; + if ($award->AwardName == $fa->AwardName) echo 'selected'; + echo ">$fa->AwardName</option>"; + } + ?> + </select> + </td> + </tr> + <tr> + <td> + <input type='radio' name='firstaward' value='0' <?php if (!$award->FIRSTAward) echo 'checked="checked"'; ?>> + </td> + <td> Custom Award</td> + </td> + <td> + <input name="award" type="text" id="award" value="<?php if (!$award->FIRSTAward) echo $award->AwardName; ?>"> + </td> + </tr> + </table> + </td> + </tr> + <tr> + <th>Regional/Event</th> + <td class="left"><input name="event" type="text" id="event" value="<?php echo $award->Event; ?>"></td> + </tr> + <tr> + <th>Date</th> + <td class="left"><input name="date" type="text" id="date" value="<?php + echo $award->Date; + ?>" size="10"> + <sub>(Use this syntax: Year-Month-Day)</sub></td> + </tr> + <tr> + <th>Recipient</th> + <td class="left"><input name="recipient" type="text" id="recipient" value="<?php + echo $award->Recipient; + ?>"></td> + </tr> + <tr> + <th>Description<br />(leave blank for FIRST Awards)</th> + <td><textarea name="description" cols="30" rows="5"><?php echo $award->Description; ?></textarea></td> + </tr> + <tr> + <th>Award Type</th> + <td class="left"><table> + <tr> + <td><img src="<?php echo($BasePath); ?>/awards/awardsgold.png" alt="Gold"></td> + <td><img src="<?php echo($BasePath); ?>/awards/awardssilver.png" alt="Silver"></td> + <td><img src="<?php echo($BasePath); ?>/awards/awardsbronze.png" alt="Bronze"></td> + </tr> + <tr> + <td><div align="center"> + <input name="type" type="radio" value="gold" <?php + if (strcasecmp($award->Image, 'gold') == 0) echo 'checked="checked"'; + ?>> + </div></td> + <td><div align="center"> + <input type="radio" name="type" value="silver" <?php + if (strcasecmp($award->Image, 'silver') == 0) echo 'checked="checked"'; + ?>> + </div></td> + <td><div align="center"> + <input type="radio" name="type" value="bronze" <?php + if (strcasecmp($award->Image, 'bronze') == 0) echo 'checked="checked"'; + ?>> + </div></td> + </tr> + </table></td> + </tr> + <tr> + <td colspan="2" class="center"> +<?php if($award->template) { ?> + <input name="create" type="submit" id="create" value="Create Award"> +<?php } else { ?> + <input name="modify" type="submit" id="modify" value="Modify Award"></td> +<?php } ?> + </td> + </tr> + </table> +</form> +<table> + <tr> + <th colspan="2">Award Name</th> + <th>Event</th> + <th>Date</th> + <th>Recipient</th> + <th>Option</th> + </tr> +<?php + // Loop through awards ordered by date + $query = $ogDB->select('awards', '*', array(), array('order' => 'Date')); + while($awards = $ogDB->fetchObject($query)){ +?> + <tr> + <td><img src="<?php echo($BasePath); ?>/awards/awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>"></td> + <td><?php echo $awards->AwardName; ?></td> + <td><?php echo $awards->Event; ?></td> + <td><?php echo $awards->Date; ?></td> + <td><?php echo $awards->Recipient; ?></td> + <td><div align="center">[ <a href='./?DELETE=<?php echo $awards->ID; ?>'>Delete</a> | <a href='./?MODIFY=<?php echo $awards->ID; ?>'>Modify</a> ]</div></td> + </tr> +<?php + } + if($ogDB->numberOfRows($query) == 0){ + echo '<tr><td colspan="6">No awards entered!</td></tr>'; + } +?> +</table> +<br /> +<?php + include_once($Footer); +?> Property changes on: tags/openfirst.awards-2.0a2/awards/admin/index.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.awards-2.0a2/awards/awards.php =================================================================== --- tags/openfirst.awards-2.0a2/awards/awards.php (rev 0) +++ tags/openfirst.awards-2.0a2/awards/awards.php 2006-06-21 15:39:54 UTC (rev 168) @@ -0,0 +1,39 @@ +<?php +/* + * openFIRST.awards - awards.php + * + * Copyright (C) 2005, + * openFIRST Project + * Original Author: Jamie Bliss <ja...@op...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + // Purpose: Defines the AwardModule class, a child of the Module class. + +class AwardModule extends Module { + function getSlugURI($slug) { + /* + supported forms: + %Date% (some parsable date) + %Title% (The title exists) + %ID% (just an integer) + */ + } +} + +$awardmod =& new AwardModule(basename(dirname(__FILE__))); +$ogModuleManager->addModuleFromObject($awardmod); +?> \ No newline at end of file Property changes on: tags/openfirst.awards-2.0a2/awards/awards.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.awards-2.0a2/awards/awardsbronze.png =================================================================== (Binary files differ) Property changes on: tags/openfirst.awards-2.0a2/awards/awardsbronze.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: tags/openfirst.awards-2.0a2/awards/awardsfirst.gif =================================================================== (Binary files differ) Property changes on: tags/openfirst.awards-2.0a2/awards/awardsfirst.gif ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/gif Added: tags/openfirst.awards-2.0a2/awards/awardsgold.png =================================================================== (Binary files differ) Property changes on: tags/openfirst.awards-2.0a2/awards/awardsgold.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: tags/openfirst.awards-2.0a2/awards/awardssilver.png =================================================================== (Binary files differ) Property changes on: tags/openfirst.awards-2.0a2/awards/awardssilver.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: tags/openfirst.awards-2.0a2/awards/index.php =================================================================== --- tags/openfirst.awards-2.0a2/awards/index.php (rev 0) +++ tags/openfirst.awards-2.0a2/awards/index.php 2006-06-21 15:39:54 UTC (rev 168) @@ -0,0 +1,103 @@ +<?php +/* + * openFIRST.awards - index.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. + * + * 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_once("../includes/globals.php"); + include_once($Header); + + $where = array(); + if (isset($_REQUEST['id'])) { + $where[] = $ogDB->quoteField('ID').'='.$ogDB->quoteData($_REQUEST['id']); + } + if (isset($_REQUEST['name'])) { + $where[] = $ogDB->quoteField('AwardName').'='.$ogDB->quoteData($_REQUEST['name']); + } + if (isset($_REQUEST['event'])) { + $where[] = $ogDB->quoteField('Event').'='.$ogDB->quoteData($_REQUEST['event']); + } + if (isset($_REQUEST['date'])) { + $where[] = $ogDB->quoteField('Date').'='.$ogDB->quoteData($_REQUEST['date']); + } + if (isset($_REQUEST['recipient'])) { + $where[] = $ogDB->quoteField('Recipient').'='.$ogDB->quoteData($_REQUEST['recipient']); + } + if (isset($_REQUEST['image'])) { + $where[] = $ogDB->quoteField('Image').'='.$ogDB->quoteData($_REQUEST['image']); + } + if (isset($_REQUEST['first'])) { + $firstarg = trim($_REQUEST['first']); + if (strcasecmp($firstarg, 'yes') == 0 || strcasecmp($firstarg, 'y') == 0 || strcasecmp($firstarg, 1) == 0 || strcasecmp($firstarg, 'true' ) == 0) $first = true; + if (strcasecmp($firstarg, 'no' ) == 0 || strcasecmp($firstarg, 'n') == 0 || strcasecmp($firstarg, 0) == 0 || strcasecmp($firstarg, 'false') == 0) $first = false; + $where[] = $ogDB->quoteField('FIRSTAward').'='.$ogDB->quoteData($first); + } + + + // Query database for award information + $sql = 'SELECT * FROM '.$ogDB->quoteTable('awards'). + ((count($where) > 0) ? ' WHERE '.implode(' OR ', $where) : ''). + ' ORDER BY '.$ogDB->quoteField('Date').' DESC'; + $query = $ogDB->query($sql); + if ($query === false) { + echo $ogDB->errorNumber().': '.$ogDB->errorString().'<br />'; + var_dump($sql); + } + $amount = $ogDB->numberOfRows($query); +?> +<h1>Team Awards</h1> +<p>This team has won <b><?php echo $amount; ?></b> award(s)<?php if (count($where) > 0) echo ' that fit the criteria'; ?>.</p> +<?php + // If more then one award is present then show the values + if($amount > 0) { +?> +<table> + <tr> + <th colspan="2">Award Name</th> + <th>Event</th> + <th>Date</th> + <th>Recipient</th> + </tr> +<?php + // Loop through awards ordered by date + while($awards = $ogDB->fetchObject($query)){ +?> + <tr valign="top"> + <td> + <img src="awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>" /> + <?php if ($awards->FIRSTAward) { ?><img src="awardsfirst.gif" /><?php } ?> + </td> + <td> + <h3><?php echo $awards->AwardName; ?></h3> + <p><?php echo $awards->Description; ?></p> + </td> + <td><?php echo $awards->Event; ?></td> + <td><?php echo $awards->Date; ?></td> + <td><?php echo $awards->Recipient; ?></td> + </tr> +<?php } ?> +</table> + +<?php + } + $ogDB->freeResult($query); + + include_once($Footer); +?> Property changes on: tags/openfirst.awards-2.0a2/awards/index.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.awards-2.0a2/awards/openfirst.info.xml =================================================================== --- tags/openfirst.awards-2.0a2/awards/openfirst.info.xml (rev 0) +++ tags/openfirst.awards-2.0a2/awards/openfirst.info.xml 2006-06-21 15:39:54 UTC (rev 168) @@ -0,0 +1,173 @@ +<?xml version="1.0"?> +<module xmlns="http://openfirst.org/xml/module/1.0" id="openfirst.awards"> + <!-- Info --> + <!-- This is not used, except as meta data --> + <name>Awards</name> + <version>2.0a2</version> + <author>David Di Biase</author> + <maintainer>Jamie Bliss</maintainer> + + <includes> + <include>$fModPath/awards.php</include> + </includes> + + <!-- Configuration --> + <!-- Either entities or CDATA can be used. Just make sure it's parsed into the literal XHTML. --> + <!-- Note the two ways of including BasePath. --> + <navbar><![CDATA[ + <a href="$ModPath/">View Awards</a> + ]]></navbar> + <adminbar><![CDATA[ + <a href="$ModPath/admin/">Manage Awards</a> + ]]></adminbar> + + <!-- Database setup --> + <db> + <table name="awards"> + <fields> + <!-- Should be self explainatory --> + <field name="ID" null="no" autoincrement="yes"><type length="6" unsigned="yes">int</type></field> + <field name="AwardName"><type>tinytext</type></field> + <field name="Description"><type>text</type></field> + <field name="Event"><type>tinytext</type></field> + <field name="Date"><type>date</type><default>null</default></field> + <field name="Recipient"><type>tinytext</type></field> + <field name="Image"><type>tinytext</type></field> + <field name="Description"><type>TEXT</type></field> + <field name="FIRSTAward"><type>BOOL</type></field> + </fields> + <keys> + <key type="PRIMARY"> + <col>ID</col> + </key> + </keys> + </table> + <!-- Need to change this to an ID-based system. --> + <table name="firstawards"> + <fields><!--The longest is currently 42 chars--> + <field name="fa_id" null="no" autoincrement="yes"><type>int</type></field> + <field name="AwardName" null="no"><type>tinytext</type></field> + <field name="Description"><type>text</type></field> + </fields> + <keys> + <key type="primary"> + <col>fa_id</col> + </key> + </keys> + <rows> + <row> + <col name="AwardName">Chairman's Award</col> + <col name="Description">The FIRST Robotics Competition is about much more than the mechanics of building a robot or winning a competitive event. It is about the impact FIRST has on those who participate in the program and the impact of FIRST on the community at large. The FIRST mission is to change the way America's young people regard science and technology and to inspire an appreciation for the real-life rewards and career opportunities in these fields.</col> + </row> + <row> + <col name="AwardName">Regional Finalists</col> + <col name="Description">This award celebrates the team or alliance that makes it to the final match of the competition.</col> + </row> + <row> + <col name="AwardName">Leadership in Control</col> + <col name="Description">This award celebrates an innovative control system or application of control components to provide unique machine functions.</col> + </row> + <row> + <col name="AwardName">Regional Finalist</col> + <col name="Description">This award celebrates the team or alliance that makes it to the final match of the competition.</col> + </row> + <row> + <col name="AwardName">Rookie All-Star</col> + <col name="Description">This award celebrates the rookie team exemplifying a young but strong partnership effort, as well as implementing the mission of FIRST to inspire students to learn more about science and technology.</col> + </row> + <row> + <col name="AwardName">Website Award</col> + <col name="Description">This award recognizes excellence in student-designed, build, and managed FIRST team websites.</col> + </row> + <row> + <col name="AwardName">Xerox - Creativity</col> + <col name="Description">The award celebrates creative design, use of a component, or a creative or unique strategy of play.</col> + </row> + <row> + <col name="AwardName">The Allaire Medal - Leadership Exemplified</col> + <col name="Description">The Allaire Medal recognizes leadership exemplified, and is awarded to an individual student on the winning Chairman's Award team. Named in honor of Paul A. Allaire, a long-serving FIRST Chairman of the Board, the Allaire Medal is given to the student who has demonstrated outstanding leadership on his/her FIRST team, within his/her school and community, and whose personal character best embodies the spirit of FIRST.</col> + </row> + <row> + <col name="AwardName">Woodie Flowers Awards</col> + <col name="Description">The Woodie Flwers Award celebrates effective communication in the art and science of engineering and design. Dr. William Murphy and Small Parts, Inc. began this prestigious award in 1996. For the 2004 season, this award is being enhanced to honor more exemplary communicators in the FIRST community. Following Dr. Murphy's lead, FIRST Whishes to bring more attention to these FIRST heroes.</col> + </row> + <row> + <col name="AwardName">The Autodesk Inventor ® Award</col> + <col name="Description">Presented by Autodesk, Inc., this award recognizes the team that best understands, communicates, and documents the distinct phases of the design process from concept to completion.</col> + </row> + <row> + <col name="AwardName">The Autodesk Visualization Award</col> + <col name="Description">Presented by Autodesk, Inc. this award recognizes excellence in student animation that clearly and creatively illustrates the spirit of the FIRST Robtoics Compettion.</col> + </row> + <row> + <col name="AwardName">Champion</col> + <col name="Description">This award celebrates the team or alliance that wins the Championship.</col> + </row> + <row> + <col name="AwardName">Championship Finalist</col> + <col name="Description">This award celebrates the team or alliance that makes it to the final match of the Championship.</col> + </row> + <row> + <col name="AwardName">Division Finalist</col> + <col name="Description">This award celebrates the team or alliance that wins the final match in their division at the Championship.</col> + </row> + <row> + <col name="AwardName">Rookie Inspiration</col> + <col name="Description">Award celebrates a rookie team for outstanding effort as a FIRST team in a community outreach & recruiting students to engineering. This team models gracious professionalism on and off the field and is a true inspiration to others</col> + </row> + <row> + <col name="AwardName">Woodie Flowers Finalist Award</col> + <col name="Description">Awarded to an outstanding engineer or teacher participating in each of the robotics Regional Competions. Students choose and write about a person on their team who best demonstrates excellence in teaching science, math, and creative design. These Regional winners will receive consideration for the Championship Woodie Flowers Award.</col> + </row> + <row> + <col name="AwardName">Judges' Award</col> + <col name="Description">During the couse of the competition, the judging panel may encounter a team whose unique efforts, performance, or dyanmics merit recognition.</col> + </row> + <row> + <col name="AwardName">Kleiner Perkins Caufield & Byers-Entrepreneurship</col> + <col name="Description">Celebrates the Entrepreneurial Spirit. This award reconizes a team, which since its inception has developed the framework fer a comprehensive business plan in order to scope, manage, and obtain team objectives. This team displays entrepreneurial enthusiam and the vital business skills for a self-sustaining program.</col> + </row> + <row> + <col name="AwardName">Motorola-Quality</col> + <col name="Description">This award celebrates machine robustness in concept and fabrication</col> + </row> + <row> + <col name="AwardName">Regional Champion</col> + <col name="Description">This award celebrates the team or alliance that makes it to the final match of the competition.</col> + </row> + <row> + <col name="AwardName">General Motors-Industrial Design</col> + <col name="Description">the award celebrates form and function in an efficiently designed machine that effectively achieves the game challenge.</col> + </row> + <row> + <col name="AwardName">Highest Rookie Seed</col> + <col name="Description">this award celebrates the highest-seeded rookie team at the conclusion of the qualifying rounds</col> + </row> + <row> + <col name="AwardName">Imagery</col> + <col name="Description">This award celebrates attractiveness in engineering and outstanding visual aesthetic integration from the machine to team appearance</col> + </row> + <row> + <col name="AwardName">Johnson & Johnson-Sportsman</col> + <col name="Description">This award celebrates outstanding sportsmanship and continues gracious professionalism in the heat of competition, both on and off the playing field</col> + </row> + <row> + <col name="AwardName">Delphi-'driving Tomorrow's Techology'</col> + <col name="Description">Celebrates an elegant and advantageous machine featue. Reconizes any aspect of engeering elegance including , but not limited to: design,wiring methods, material seection, programming techniques, and unique machine attributes. The criteria for this award are based on the teams ability to concisely verbally describe , as well as demonstrate, this chosen machine feature</col> + </row> + <row> + <col name="AwardName">Engeering Inspiration</col> + <col name="Description">Award celebrates a team's outstanding success in advancing respect and appreciation for engeering and engineers, both within their school, as well as their community . Criteria include: the extent and effectiveness of the team's efforts to recruit students to engineering , the extent and effectiveof the team's community outreach efforts, and the measurable success of those efforts. this is the second highest team award FIRST bestows</col> + </row> + <row> + <col name="AwardName">Autodesk Visualization Award</col> + <col name="Description">Reconizes student animation that 'clearly and creatively' shows the spirt of FIRST Robotics Competition.Autodesk will award excellence in content,creativity,and mastery af multimedia</col> + </row> + <row> + <col name="AwardName">Daimler Chrysler-Team Spirit</col> + <col name="Description">This award celebrates extraordinary enthusiasm and spirit through an exceptional partnership and teamwork.</col> + </row> + </rows> + </table> + </db> +</module> Property changes on: tags/openfirst.awards-2.0a2/awards/openfirst.info.xml ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/xml Name: svn:eol-style + LF Added: tags/openfirst.base-2.0a2/COPYING =================================================================== --- tags/openfirst.base-2.0a2/COPYING (rev 0) +++ tags/openfirst.base-2.0a2/COPYING 2006-06-21 15:39:54 UTC (rev 168) @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in... [truncated message content] |