[Openfirst-cvscommit] SF.net SVN: openfirst: [166] tags
Brought to you by:
xtimg
From: <ast...@us...> - 2006-06-21 15:36:33
|
Revision: 166 Author: astronouth7303 Date: 2006-06-21 08:33:45 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=166&view=rev Log Message: ----------- Adding a tag for the (faulty) openfirst.base 2.0a1 release Added Paths: ----------- tags/openfirst.base-2.0a1/ tags/openfirst.base-2.0a1/COPYING tags/openfirst.base-2.0a1/README tags/openfirst.base-2.0a1/config/ tags/openfirst.base-2.0a1/config/NOTES tags/openfirst.base-2.0a1/config/first.php tags/openfirst.base-2.0a1/config/index.php tags/openfirst.base-2.0a1/config/install.php tags/openfirst.base-2.0a1/config/modules.php tags/openfirst.base-2.0a1/config/openfirst.info.xml tags/openfirst.base-2.0a1/config/version.php tags/openfirst.base-2.0a1/includes/ tags/openfirst.base-2.0a1/includes/BaseModule.php tags/openfirst.base-2.0a1/includes/MSSQLDataBase.php tags/openfirst.base-2.0a1/includes/Module.php tags/openfirst.base-2.0a1/includes/MySQLDataBase.php tags/openfirst.base-2.0a1/includes/ODBCDataBase.php tags/openfirst.base-2.0a1/includes/Skin.php tags/openfirst.base-2.0a1/includes/User.php tags/openfirst.base-2.0a1/includes/auth.php tags/openfirst.base-2.0a1/includes/compatibility.php tags/openfirst.base-2.0a1/includes/dbase.php tags/openfirst.base-2.0a1/includes/edit.php tags/openfirst.base-2.0a1/includes/functions/ tags/openfirst.base-2.0a1/includes/functions/browserid.php tags/openfirst.base-2.0a1/includes/functions/debug.php tags/openfirst.base-2.0a1/includes/functions/forms.php tags/openfirst.base-2.0a1/includes/functions/mail.php tags/openfirst.base-2.0a1/includes/functions/wysiwyg/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/DHTMLEditor Info.txt tags/openfirst.base-2.0a1/includes/functions/wysiwyg/css/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/css/toolbars.css tags/openfirst.base-2.0a1/includes/functions/wysiwyg/dialog/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/dialog/instable.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/dialog/selcolor.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/dialog/setlink.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien/persistent-style.css tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/backcolor.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/bold.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/colors.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/copy.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/cut.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/forecolor.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/indent.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/italic.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifycenter.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifyleft.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifyright.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/link.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/orderedlist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/outdent.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/paste.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/redo.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/table.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/underline.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/undo.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/unorderedlist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Specification.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Text Color.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/backcolor.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/bold.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/colors.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/copy.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/cut.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/forecolor.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/indent.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/italic.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/justifycenter.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/justifyleft.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/justifyright.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/link.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/orderedlist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/outdent.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/paste.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/redo.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/source.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/table.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/underline.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/undo.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/unorderedlist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/js/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/js/lib.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/uti/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/uti/colors.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/absmode.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/abspos.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/additem.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/bgcolor.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/bold.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/borders.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/break.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/bullist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/center.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/copy.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/cut.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/deindent.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/delcell.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/delcol.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/delete.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/delrow.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/details.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/dms.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/email.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/end.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/fgcolor.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/find.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/fullscrn.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/help.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/image.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/immap.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/inindent.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/inscell.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/inscol.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/insrow.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/instable.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/italic.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/left.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/link.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/linkadv.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/lock.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/mrgcell.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/newdoc.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/newproj.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/numlist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/open.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/paste.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/print.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/project.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/props.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/reddot.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/redo.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/right.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/save.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/saveall.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/saveas.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/snapgrid.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/source.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/spltcell.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/start.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/target.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/tasklist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/tblprop.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/under.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/undo.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/zb_b.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/zb_o.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/zb_y.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/zf_b.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/zf_o.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/zf_y.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/js/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/js/dhtmled.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/js/lib.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/js/lib2.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/js/lib_ms.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/behavior_css.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/behavior_menu_invisible.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/behavior_remove_phptags.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/behavior_remove_xmltags.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_about.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_hr.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_hr.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_html.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_html.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_image.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_imagemap.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_log.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_table_properties.html tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_table_properties.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_table_properties_gecko.html tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/grid_small.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/arr.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/genMove.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/index.php tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/msmove.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/trans.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/listbox_paragraph.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/listbox_styleclass.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/listbox_template.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/listbox_template_example.html tags/openfirst.base-2.0a1/includes/functions/wysiwyg.php tags/openfirst.base-2.0a1/includes/functions.php tags/openfirst.base-2.0a1/includes/globals.php tags/openfirst.base-2.0a1/includes/settings.php tags/openfirst.base-2.0a1/includes/sitesettings.tpl tags/openfirst.base-2.0a1/includes/slug.php tags/openfirst.base-2.0a1/includes/xmlModule.php tags/openfirst.base-2.0a1/index.php tags/openfirst.base-2.0a1/style/ tags/openfirst.base-2.0a1/style/Default.php tags/openfirst.base-2.0a1/style/footers.php tags/openfirst.base-2.0a1/style/headers.php tags/openfirst.base-2.0a1/style/images/ tags/openfirst.base-2.0a1/style/images/back-admin.png tags/openfirst.base-2.0a1/style/images/back-light.gif tags/openfirst.base-2.0a1/style/images/back-lighter.gif tags/openfirst.base-2.0a1/style/images/back.gif tags/openfirst.base-2.0a1/style/images/developers-small.gif tags/openfirst.base-2.0a1/style/images/help.gif tags/openfirst.base-2.0a1/style/images/large.gif tags/openfirst.base-2.0a1/style/images/mmc.gif tags/openfirst.base-2.0a1/style/images/oflogo.gif tags/openfirst.base-2.0a1/style/images/openfirst-small.png tags/openfirst.base-2.0a1/style/images/openfirst.png tags/openfirst.base-2.0a1/style/images/poweredby-small.png tags/openfirst.base-2.0a1/style/images/poweredby.png tags/openfirst.base-2.0a1/style/images/small-warning-green.gif tags/openfirst.base-2.0a1/style/images/small-warning.gif tags/openfirst.base-2.0a1/style/images/verytinyfirst.gif tags/openfirst.base-2.0a1/style/images/w3c401.png tags/openfirst.base-2.0a1/style/images/warning.gif tags/openfirst.base-2.0a1/style/images/web.gif tags/openfirst.base-2.0a1/style/style.css Added: tags/openfirst.base-2.0a1/COPYING =================================================================== --- tags/openfirst.base-2.0a1/COPYING (rev 0) +++ tags/openfirst.base-2.0a1/COPYING 2006-06-21 15:33:45 UTC (rev 166) @@ -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 reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) 19yy <name of author> + + 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 + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. Property changes on: tags/openfirst.base-2.0a1/COPYING ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: tags/openfirst.base-2.0a1/README =================================================================== --- tags/openfirst.base-2.0a1/README (rev 0) +++ tags/openfirst.base-2.0a1/README 2006-06-21 15:33:45 UTC (rev 166) @@ -0,0 +1,22 @@ +openFIRST.base +============== + +This module is the basic container for all of the OpenFIRST software. + +It includes the configuration information required by other modules, +and provides an integrated view of the software. + +Configuration +============= +Access an OpenFIRST page without having created sitesettings.php and a configuration +wizard will pop up. + + +Tables Used +=========== +config +members + + openFIRST.base is distributed +under the GNU GPL. For more information, see +http://OpenFIRST.sourceforge.net and COPYING Property changes on: tags/openfirst.base-2.0a1/README ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/plain Name: svn:eol-style + native Property changes on: tags/openfirst.base-2.0a1/config ___________________________________________________________________ Name: of:module + openfirst.base Added: tags/openfirst.base-2.0a1/config/NOTES =================================================================== --- tags/openfirst.base-2.0a1/config/NOTES (rev 0) +++ tags/openfirst.base-2.0a1/config/NOTES 2006-06-21 15:33:45 UTC (rev 166) @@ -0,0 +1,11 @@ +openFIRST.news + +--- + +** December 25, 2003 Release ** + +David Di Biase - not yet audited + +Tim Ginn - not yet audited + +Greg Inozemtsev - Module approved. Fixed minor issues in authentication code and a typo in debug.php. \ No newline at end of file Property changes on: tags/openfirst.base-2.0a1/config/NOTES ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: tags/openfirst.base-2.0a1/config/first.php =================================================================== --- tags/openfirst.base-2.0a1/config/first.php (rev 0) +++ tags/openfirst.base-2.0a1/config/first.php 2006-06-21 15:33:45 UTC (rev 166) @@ -0,0 +1,336 @@ +<?php +/* + * openFIRST.base - config/first.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: Tim Ginn <tim...@po...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +// Purpose: Deal with the initial set up that must occur once the openFIRST +// base system has been extracted. This file should be removed once +// this task is complete, or the permissions on globals.php should be +// changed to prevent unwanted modification of configuration options. + + // Initialize header/footer vars + $Title = 'openFIRST Installation'; + $StylePath = 'http://openfirst.sourceforge.net'; + + define('OPENFIRST_INSTALLATION_SCRIPT', true); // Only define if it's the installation script + + if(isset($_POST["sqlserver"])) { + $sqlserver = $_POST["sqlserver"]; + $sqluser = $_POST["sqluser"]; + $sqlpassword = $_POST["sqlpassword"]; + $sqldatabase = $_POST["sqldatabase"]; + $fbasepath = realpath($_POST['fbasepath']); + + function GetVarValue($var) { + ob_Start(); + var_export($var); + $Value = ob_Get_Contents(); + ob_End_Clean(); + return $Value; + } + + // They have submitted the form, write a new globals.php file and test + // options. + $ConfigFile = "$fbasepath/includes/sitesettings.php"; + if ( (file_exists($ConfigFile) && is_writable($ConfigFile)) || is_writable(dirname($ConfigFile)) ) { + $file = file_get_contents('../includes/sitesettings.tpl'); + $cookielogins = ((isset($_POST["cookielogins"]) && $_POST["cookielogins"]=="yes") ? true : false); + $allowreg = ((isset($_POST["allowreg"]) && $_POST["allowreg"]=="yes") ? true : false); + + $find = array('%DBTYPE%', + '%ENCRYPT%', + '%TITLE%', + '%VER%', + '%DBSERVER%', + '%DBUSER%', + '%DBPASS%', + '%DBNAME%', + '%COOKIE%', + '%REG%', + '%HOME%', + '%HEADER%', + '%FOOTER%', + '%MASTERMAIL%', + '%BOTMAIL%', + '%SERVER%', + '%BASEPATH%', + '%FBASEPATH%'); + + $replace = array(GetVarValue($_POST['dbasetype']), + GetVarValue($_POST['encryption']), + GetVarValue($_POST['title']), + GetVarValue($_POST['version']), + GetVarValue($_POST['sqlserver']), + GetVarValue($_POST['sqluser']), + GetVarValue($_POST['sqlpassword']), + GetVarValue($_POST['sqldatabase']), + GetVarValue($cookielogins), + GetVarValue($allowreg), + GetVarValue($_POST['home']), + GetVarValue($_POST['header']), + GetVarValue($_POST['footer']), + GetVarValue($_POST['mailnotify']), + GetVarValue($_POST['mailfrom']), + GetVarValue($_POST['server']), + GetVarValue($_POST['basepath']), + GetVarValue($fbasepath)); + + $file = str_replace($find, $replace, $file); + $hfile = fopen("$ConfigFile",'w'); fwrite($hfile, $file); fclose($hfile); + + // We write the settings file before including globals.php + + include_once("$fbasepath/includes/globals.php"); + require_once("$fbasepath/includes/xmlModule.php"); + $base = xmlModule::createFromFile(dirname(__FILE__).'/openfirst.info.xml'); + + include_once($Header); + // This a series of statements, each of which are executed. If an error condition occurs, that + // branch is ran. + if (!$ogDB->createDB($ogSQLDatabase, $ogSQLTablePrefix)) { + // Do this as an optional root user? + echo '<p class="error">DB creation error: '.htmlentities($ogDB->errorString()).'</p>'; + } else if (($err = $base->install()) !== true) { + echo '<p class="error">Tables creation error: '.htmlentities($err).'</p>'; + echo '<pre>'.htmlentities($ogLastQuery).'</pre>'; + } else if (($ogUser = User::createNewUser('admin', 'openfirst')) == null) { + echo '<p class="error">Error creating user: '.htmlentities($ogDB->errorString()).'</p>'; + } else { + $ogUser->addGroup(ugADMIN); + $ogUser->saveData(); + echo("<div class=\"success\"><h1>openFIRST Software Configured</h1> + <p>If this page does not display errors elsewhere, then your openFIRST has now been successfully +configured. If there are errors, check your configuration options and try again. You may now +wish to change the permissions on <span class=\"file\">".htmlentities(basename($ConfigFile))."</span> to prevent unwanted changes +to the configuration options. You should be able to login using the username +<b class=\"user\">admin</b> and the password <b class=\"password\">openfirst</b>, if not, then either +the password for that account has been changed, or the MySQL settings are incorrect.</p>"); + echo '<p class="big">Continue to the <a href="'.htmlentities($BasePath).'/config/">administration page</a>.</p>'; + } + include_once($Footer); + die; + } else { +/* echo '<p class="error"><span class="file">'.htmlentities($ConfigFile).'</span> is not writable</p> +';*/ + include_once($header); + echo("<h1 class=\"error\">System Configuration Error</h1> +<p>Cannot write to configuration file. Please check permissions on <b>".htmlentities(basename($ConfigFile))."</b> and +ensure that the web user has the ability to write to this file.</p> + +<p>For unix, this would typically require the command: +<pre class=\"shell\">cd includes<br /> +chmod 666 \"".htmlentities(addslashes(basename($ConfigFile)))."\"</pre></p>"); + } + } else { + define('OPENFIRST_NO_INSTALLATION', true); +// Do form + include("../includes/globals.php"); + include($Header); + + // Detect default options + $basepath = substr($_SERVER["SCRIPT_NAME"], 0, -17); + $server = $_SERVER["SERVER_NAME"]; + $fbasepath = realpath(dirname(__FILE__).'/..'); + $ConfigFile = "$fbasepath/includes/sitesettings.php"; + + $sqlhost = 'localhost'; + if(ini_get('mysql.default_host') != '') { + $sqlhost = ini_get('mysql.default_host'); + } + + $sqluser = 'sqluser'; + if(ini_get('mysql.default_user') != '') { + $sqluser = ini_get('mysql.default_user'); + } + + $sqlpass = ''; + if(ini_get('mysql.default_password') != '') { + $sqlpass = ini_get('mysql.default_password'); + } + + $mailto = $_SERVER['SERVER_ADMIN']; + $mailfrom = "openfirst@$server"; + + // User is visiting the configuration page, present them with a form + // of options to fill out. +?> +<div class="center"> + <h1>Base Configuration</h1> + <p class="center" style="max-width: 50em;">Congratulations for choosing openFIRST! Please proceed through + this setup wizard to get your new openFIRST portal software set up and working + quickly and painlessly. Also please make sure that before installing this script + that you have the appropriate permissions set on <span class="file"><?php echo htmlentities($ConfigFile) ?></span> (if not + then you may receive a collection of errors after submitting this form).</p> +</div> + <form action="<?php echo htmlentities("http://$server$basepath/config/first.php"); ?>" method="post"> + <fieldset> + <legend>Database Setup</legend> + <dl class="setup"> + <dd> + <label for="dbasetype">Database Type</label> + <input type='hidden' name='peardb' value='false'> + <select name="dbasetype"> + <option value="mysql" selected="selected">MySQL</option> + <option value="mssql">Microsoft SQL</option> + <option value="odbc">ODBC</option> + </select> + </dd> + <dt></dt> + <dd> + <label for="title">Title of Website</label> + <input type="text" name="title" value="openFIRST" /> + </dd> + <dt></dt> + <dd> + <label for="version">Version of Website</label> + <input type="text" name="version" value="1.0" /> + </dd> + <dt></dt> + <dd> + <label for="sqlserver">Database Server Address</label> + <input type="text" name="sqlserver" value="<?php echo htmlentities($sqlhost); ?>" /> + </dd> + <dt></dt> + <dd> + <label for="sqluser">Database User Name</label> + <input type="text" name="sqluser" value="<?php echo htmlentities($sqluser); ?>" /> + </dd> + <dt></dt> + <dd> + <label for="sqlpassword">Database User Password</label> + <input type="password" name="sqlpassword" value="<?php echo htmlentities($sqlpass); ?>" /> + </dd> + <dt></dt> + <dd> + <label for="sqldatabase">Database Name</label> + <input type="text" name="sqldatabase" value="openfirst" /> + </dd> + <dt>(I this database does not already exist, the user entered above must have access to create it.</dt> + </dl> + </fieldset> + + <fieldset> + <legend>Linking Options</legend> + <dl class="setup"> + <dd> + <label for="home">Home Site</label> + <input type="text" name="home" value="http://<?php echo htmlentities("$server$basepath"); ?>" /> + </dd> + <dt>This address will used for linking to your main page.</dt> + <dd> + <label for="header">Header file</label> + <input type="text" name="header" value="<?php echo htmlentities(realpath("$fbasepath/style/headers.php")); ?>" /> + </dd> + <dt>This should be a full system path, eg, + <code class="file">c:\inetpub\wwwroot\openfirst\style\header.php</code> or + <code class="file">/home/site/public_html/openfirst/style/headers.php</code> + </dt> + <dd> + <label for="footer">Footer file</label> + <input type="text" name="footer" value="<?php echo htmlentities(realpath("$fbasepath/style/footers.php")); ?>" /> + </dd> + <dt>This should be a full system path, eg, + <code class="file">c:\inetpub\wwwroot\openfirst\style\footers.php</code> or + <code class="file">/home/site/public_html/openfirst/style/footers.php</code> + </dt> + <dd> + <label for="">The server name</label> + <input type="text" name="server" value="http://<?php echo htmlentities($server); ?>" /> + <span class="warning">Must not have a trailing slash and must include a protocol.</span> + </dd> + <dt>eg, <code class="url"><b>http://openfirst.sourceforge.net</b>/openfirst</code></dt> + <dd> + <label for="basepath">URL base path</label> + <input type="text" name="basepath" value="<?php echo htmlentities($basepath); ?>" /> + <span class="warning">Must not have a trailing slash.</span> + </dd> + <dt>ie. example: <code class="url">http://openfirst.sourceforge.net<b>/openfirst</b></code>) this should + always have a beginning slash but no ending slash. (If openFIRST is in the root directory, then leave blank.) + </dt> + <dd> + <label for="fbasepath">File system path</label> + <input type="text" name="fbasepath" value="<?php echo htmlentities($fbasepath); ?>" /> + <span class="warning">Must not have a trailing slash.</span> + </dd> + <dt>eg, <code class="file">/home/openfirst/htdocs/openfirst</code> + or <code class="file">c:\inetpub\wwwroot\openfirst</code>) this should not have a ending slash.</dt> + </dl> + </fieldset> + + <fieldset> + <legend>Security Options</legend> + <dl class="setup"> + <dd> + <label for="">Hashing method</label> + <select name="encryption"> + <option value='md5' selected='selected'>MD5 Message-Digest Algorithm</option> + <option value='crypt'>Standard Unix DES-based encryption algorthm</option> + <option value='crc32'>crc32 Polynomial</option> + <option value='sha1'>US Secure Hash Algorithm 1 (sha1)</option> + </select> + </dd> + <dt>If you are migrating from an existing system, this should be the same encryption + style that system uses, otherwise all users will have to reset their password; otherwise, in + most cases the default option is fine.</dt> + <dd> + <label for="cookielogins">Allow users to save their passwords?</label> + <input type="checkbox" name="cookielogins" id="cookielogins" value="yes" checked />Allowed + </dd> + <dt>This feature uses cookies to automatically log in users into the openFIRST portal.</dt> + <dd> + <label for="allowreg">Allow users to register on the portal?</label> + <input type="checkbox" name="allowreg" id="allowreg" value="yes" />Allowed + </dd> + <dt>Enabling this option will allow users to register on the website and log in to access the + members area. Be careful when using this option.</dt> + </dl> + </fieldset> + + <fieldset> + <legend>Mailing Options</legend> + <dl class="setup"> + <dd> + <label for="mailnotify">Mail Notification</label> + <input type="text" name="mailnotify" value="<?php echo htmlentities($mailto); ?>" /> + </dd> + <dt>The e-mail address used to notify you when significant events occur.</dt> + <dd> + <label for="mailfrom">Mail From</label> + <input type="text" name="mailfrom" value="<?php echo htmlentities($mailfrom); ?>" /> + </dd> + <dt>The e-mail address that mail from the openFIRST site should appear to be from.</dt> + </dl> + </fieldset> + <div class="center big"><button class="center big" type="submit">Set up openFIRST!</button></div> +</form> +<?php + } + if(is_readable("style/footers.php")) { + include_once("style/footers.php"); + } else { + include_once("../style/footers.php"); + } +?> Property changes on: tags/openfirst.base-2.0a1/config/first.php ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.base-2.0a1/config/index.php =================================================================== --- tags/openfirst.base-2.0a1/config/index.php (rev 0) +++ tags/openfirst.base-2.0a1/config/index.php 2006-06-21 15:33:45 UTC (rev 166) @@ -0,0 +1,104 @@ +<?php +/* + * openFIRST.base - config/index.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: Tim Ginn <tim...@po...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + // Purpose: Provide a control center for configuration activities. + + include("../includes/globals.php"); + $ogUser->mustBeAdmin(); + include_once($Header); + +?> +<h1>openFIRST Configuration Area</h1> + +<table width="50%"> + <tr> + <th>Administrative Options</th> + </tr> +</table> + +<?php + if(is_writable("$fBasePath/includes/sitesettings.php") && file_exists("$fBasePath/includes/first.php")) { + echo "<p class='warning'><strong>Warning</strong>: Your + <span class='file'>sitesettings.php</span> file is writable by the web user. + Also, <span class='file'>first.php</span> is still in existance. After you + have setup the openFIRST web portal system, it is safe to remove + <span class='file'>first.php</span>. Removing + <span class='file'>first.php</span> prevents the accidental reset of + configuration information and prevents external users from altering your + configuration. For maximal security, you should also change the filesystem + permissions so that <span class='file'>sitesettings.php</span> is not + writable by the web user."; + } elseif(is_writable("$fBasePath/includes/sitesettings.php")) { + echo "<p class='warning'><strong>Warning</strong>: Your + <span class='file'>sitesettings.php</span> file is writable by the web user. + For maximal security, you should change the filesystem permissions to correct + this.</p>"; + } +?> + +<table> + <tr> + <th colspan="2">Statistics</th> + </tr> + <tr> + <th>Database Version</th><td> +<?php + // The statistics feature is loosely inspired by that of phpBB. + echo $ogDB->getVersion(); +?></td> + </tr> + <tr> + <th>Database Size</th><td> +<?php + echo $ogDB->getSize(); +?> + </td> + </tr> + <tr><th>openFIRST Project Statistics</th><td> + <script type='application/x-javascript' src='http://bugzilla.openfirst.org/openfirst/bugcrushers.php?style=js'></script> +</td></tr> +</table> + +<br/> +<table width="50%"> + <tr> + <td valign="top"><a href="install.php">Install Modules</a></td> + <td valign="top">Required to install several new openFIRST modules.</td> + </tr> + <tr> + <td valign="top"><a href="modules.php">Module Administrator</a></td> + <td valign="top">Required to manage openFIRST modules.</td> + </tr> + <tr> + <td width="30%" valign="top"><a href="version.php">Version Check</a></td> + <td width="70%" valign="top">Ensure that your version of the openFIRST and + modules are up to date</td> + </tr> +</table> +<?php + include($Footer); +?> \ No newline at end of file Property changes on: tags/openfirst.base-2.0a1/config/index.php ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.base-2.0a1/config/install.php =================================================================== --- tags/openfirst.base-2.0a1/config/install.php (rev 0) +++ tags/openfirst.base-2.0a1/config/install.php 2006-06-21 15:33:45 UTC (rev 166) @@ -0,0 +1,127 @@ +<?php +/* + * openFIRST.base - config/install.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: Tim Ginn <tim...@po...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ +// Purpose: set up OpenFIRST modules + + include_once("../includes/globals.php"); + $ogUser->mustBeAdmin(); + include_once('xmlModule.php'); + include_once($Header); + + ini_set("max_execution_time", 600); // Bypass problem of timeouts when many modules are installed + // 10 minutes should be sufficient, even for remote database servers + + ?> + +<h1>Module Installer</h1> +<p>This utility will create the tables required for certain openFIRST components + to run.<br /> + Select the modules you would like to install.<br /> + <br /> + <span style="color:red;">Once installed, modules must be enabled from the <a href="modules.php"><strong>Module + Administrator</strong></a>.</span></p> + +<?php + +$InstalledModules = $ogModuleManager->getDirs(); + +$Modules = array(); + +$files = glob("$fBasePath/*/openfirst.info.xml"); +if (count($files) < 1) { + ?> +<p class="error">You have no modules to install or are misconfigured. You can go to <a href="http://www.openfirst.org/">openFIRST.org</a> + to download them.</p> + <?php + include($Footer); + die(); +} + +foreach($files as $file) { + $mod = xmlModule::createFromFile($file); + $Modules[$mod->getDir()] = $mod; +} + +?> +<form method="post" action="install.php"> +<table id="moduleInstall"> +<colgroup> + <col /> + <col /> + <col class="file" /> +</colgroup> +<colgroup> + <col /> +</colgroup> +<thead> +<tr><th colspan="3">Module</th><th>Status</th></tr> +</thead> +<tbody> +<?php + +# Get the meta data +foreach($Modules as $mod) { + if ($mod->isBase()) { + // Hide openfirst.base + continue; + } + + $dir = $mod->getDir(); + + $WasInstalled = $IsInstalled = in_array($dir, $InstalledModules); + $InstallFailed = $UpgradeFailed = false; + if(isset($_POST[$dir]) && $_POST[$dir] == "on" && !$IsInstalled) { + if (($err = $mod->install()) === true) { + $IsInstalled = true; + } else { + $InstallFailed = true; + } + } + echo '<tr><td><input type="checkbox" name="'.htmlentities($dir).'" '; + if ($IsInstalled) echo 'checked="checked" '; + echo '/><label for="'.htmlentities($dir).'">'.htmlentities($mod->getName()).'</label></td> + <td>('.htmlentities($mod->getVersion()).')'.'</td> + <td>'.htmlentities($dir)."</td>"; + + if ($IsInstalled && !$WasInstalled) { + echo('<td style="background-color: lime; color:black; font-weight:bold;">Module Installation succeeded!</td></tr>'); + } else if ($InstallFailed) { + echo('<td style="background-color: red; color:black; font-weight:bold;"... [truncated message content] |