Thread: [Openfirst-cvscommit] SF.net SVN: openfirst: [161] trunk/src
Brought to you by:
xtimg
From: <ast...@us...> - 2006-06-21 02:13:38
|
Revision: 161 Author: astronouth7303 Date: 2006-06-20 19:13:17 -0700 (Tue, 20 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=161&view=rev Log Message: ----------- commiting directory structure while I finish EOLs Added Paths: ----------- trunk/src/awards/ trunk/src/awards/admin/ trunk/src/config/ trunk/src/includes/ trunk/src/includes/functions/ trunk/src/includes/functions/wysiwyg/ trunk/src/includes/functions/wysiwyg/css/ trunk/src/includes/functions/wysiwyg/dialog/ trunk/src/includes/functions/wysiwyg/gecko/ trunk/src/includes/functions/wysiwyg/gecko/dev/ trunk/src/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien/ trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/ trunk/src/includes/functions/wysiwyg/gecko/gfx/ trunk/src/includes/functions/wysiwyg/gecko/js/ trunk/src/includes/functions/wysiwyg/gecko/uti/ trunk/src/includes/functions/wysiwyg/images/ trunk/src/includes/functions/wysiwyg/js/ trunk/src/includes/functions/wysiwyg/modules/ trunk/src/includes/functions/wysiwyg/modules/imagemap/ trunk/src/modules/ trunk/src/news/ trunk/src/news/admin/ trunk/src/news/images/ trunk/src/news/rss/ trunk/src/style/ trunk/src/style/images/ Property changes on: trunk/src/awards ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.awards Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/awards/admin ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.awards Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/config ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: svn:ignore + sitesettings.php Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/css ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/dialog ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko/dev ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko/gfx ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko/js ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko/uti ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/images ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/js ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/modules ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/includes/functions/wysiwyg/modules/imagemap ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/modules ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.modules Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/news ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.news Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/news/admin ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.news Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/news/images ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.news Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/news/rss ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.news Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/style ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) Property changes on: trunk/src/style/images ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: of:module + openfirst.base Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-21 02:42:32
|
Revision: 163 Author: astronouth7303 Date: 2006-06-20 19:38:02 -0700 (Tue, 20 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=163&view=rev Log Message: ----------- - Did a surface-skim of the ported modules - Set of:module property where appropriate - Added bugtraq:* properties for Bugzilla integration - Mimed the files & did EOLs (Hopefully it works this time!) Added Paths: ----------- trunk/src/COPYING trunk/src/README trunk/src/awards/NOTES trunk/src/awards/admin/index.php trunk/src/awards/awards.php trunk/src/awards/awardsbronze.png trunk/src/awards/awardsfirst.gif trunk/src/awards/awardsgold.png trunk/src/awards/awardssilver.png trunk/src/awards/index.php trunk/src/awards/openfirst.info.xml trunk/src/config/NOTES trunk/src/config/first.php trunk/src/config/index.php trunk/src/config/install.php trunk/src/config/modules.php trunk/src/config/openfirst.info.xml trunk/src/config/version.php trunk/src/includes/BaseModule.php trunk/src/includes/MSSQLDataBase.php trunk/src/includes/Module.php trunk/src/includes/MySQLDataBase.php trunk/src/includes/ODBCDataBase.php trunk/src/includes/Skin.php trunk/src/includes/User.php trunk/src/includes/auth.php trunk/src/includes/compatibility.php trunk/src/includes/dbase.php trunk/src/includes/edit.php trunk/src/includes/functions/browserid.php trunk/src/includes/functions/debug.php trunk/src/includes/functions/forms.php trunk/src/includes/functions/mail.php trunk/src/includes/functions/wysiwyg/DHTMLEditor Info.txt trunk/src/includes/functions/wysiwyg/css/toolbars.css trunk/src/includes/functions/wysiwyg/dialog/instable.htm trunk/src/includes/functions/wysiwyg/dialog/selcolor.htm trunk/src/includes/functions/wysiwyg/dialog/setlink.htm trunk/src/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien/persistent-style.css trunk/src/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas.htm trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/backcolor.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/bold.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/colors.htm trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/copy.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/cut.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/forecolor.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/indent.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/italic.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifycenter.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifyleft.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifyright.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/link.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/orderedlist.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/outdent.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/paste.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/redo.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/table.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/underline.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/undo.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/unorderedlist.gif trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo.htm trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Specification.htm trunk/src/includes/functions/wysiwyg/gecko/dev/Text Color.htm trunk/src/includes/functions/wysiwyg/gecko/gfx/backcolor.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/bold.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/colors.htm trunk/src/includes/functions/wysiwyg/gecko/gfx/copy.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/cut.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/forecolor.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/indent.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/italic.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/justifycenter.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/justifyleft.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/justifyright.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/link.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/orderedlist.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/outdent.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/paste.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/redo.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/source.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/table.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/underline.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/undo.gif trunk/src/includes/functions/wysiwyg/gecko/gfx/unorderedlist.gif trunk/src/includes/functions/wysiwyg/gecko/js/.dhtmleditorgecko.js.swp trunk/src/includes/functions/wysiwyg/gecko/js/lib.js trunk/src/includes/functions/wysiwyg/gecko/uti/colors.htm trunk/src/includes/functions/wysiwyg/images/absmode.gif trunk/src/includes/functions/wysiwyg/images/abspos.gif trunk/src/includes/functions/wysiwyg/images/additem.gif trunk/src/includes/functions/wysiwyg/images/bgcolor.gif trunk/src/includes/functions/wysiwyg/images/bold.gif trunk/src/includes/functions/wysiwyg/images/borders.gif trunk/src/includes/functions/wysiwyg/images/break.gif trunk/src/includes/functions/wysiwyg/images/bullist.gif trunk/src/includes/functions/wysiwyg/images/center.gif trunk/src/includes/functions/wysiwyg/images/copy.gif trunk/src/includes/functions/wysiwyg/images/cut.gif trunk/src/includes/functions/wysiwyg/images/deindent.gif trunk/src/includes/functions/wysiwyg/images/delcell.gif trunk/src/includes/functions/wysiwyg/images/delcol.gif trunk/src/includes/functions/wysiwyg/images/delete.gif trunk/src/includes/functions/wysiwyg/images/delrow.gif trunk/src/includes/functions/wysiwyg/images/details.gif trunk/src/includes/functions/wysiwyg/images/dms.gif trunk/src/includes/functions/wysiwyg/images/email.gif trunk/src/includes/functions/wysiwyg/images/end.gif trunk/src/includes/functions/wysiwyg/images/fgcolor.gif trunk/src/includes/functions/wysiwyg/images/find.gif trunk/src/includes/functions/wysiwyg/images/fullscrn.gif trunk/src/includes/functions/wysiwyg/images/help.gif trunk/src/includes/functions/wysiwyg/images/image.gif trunk/src/includes/functions/wysiwyg/images/immap.gif trunk/src/includes/functions/wysiwyg/images/inindent.gif trunk/src/includes/functions/wysiwyg/images/inscell.gif trunk/src/includes/functions/wysiwyg/images/inscol.gif trunk/src/includes/functions/wysiwyg/images/insrow.gif trunk/src/includes/functions/wysiwyg/images/instable.gif trunk/src/includes/functions/wysiwyg/images/italic.gif trunk/src/includes/functions/wysiwyg/images/left.gif trunk/src/includes/functions/wysiwyg/images/link.gif trunk/src/includes/functions/wysiwyg/images/linkadv.gif trunk/src/includes/functions/wysiwyg/images/lock.gif trunk/src/includes/functions/wysiwyg/images/mrgcell.gif trunk/src/includes/functions/wysiwyg/images/newdoc.gif trunk/src/includes/functions/wysiwyg/images/newproj.gif trunk/src/includes/functions/wysiwyg/images/numlist.gif trunk/src/includes/functions/wysiwyg/images/open.gif trunk/src/includes/functions/wysiwyg/images/paste.gif trunk/src/includes/functions/wysiwyg/images/print.gif trunk/src/includes/functions/wysiwyg/images/project.gif trunk/src/includes/functions/wysiwyg/images/props.gif trunk/src/includes/functions/wysiwyg/images/reddot.gif trunk/src/includes/functions/wysiwyg/images/redo.gif trunk/src/includes/functions/wysiwyg/images/right.gif trunk/src/includes/functions/wysiwyg/images/save.gif trunk/src/includes/functions/wysiwyg/images/saveall.gif trunk/src/includes/functions/wysiwyg/images/saveas.gif trunk/src/includes/functions/wysiwyg/images/snapgrid.gif trunk/src/includes/functions/wysiwyg/images/source.gif trunk/src/includes/functions/wysiwyg/images/spltcell.gif trunk/src/includes/functions/wysiwyg/images/start.gif trunk/src/includes/functions/wysiwyg/images/target.gif trunk/src/includes/functions/wysiwyg/images/tasklist.gif trunk/src/includes/functions/wysiwyg/images/tblprop.gif trunk/src/includes/functions/wysiwyg/images/under.gif trunk/src/includes/functions/wysiwyg/images/undo.gif trunk/src/includes/functions/wysiwyg/images/zb_b.gif trunk/src/includes/functions/wysiwyg/images/zb_o.gif trunk/src/includes/functions/wysiwyg/images/zb_y.gif trunk/src/includes/functions/wysiwyg/images/zf_b.gif trunk/src/includes/functions/wysiwyg/images/zf_o.gif trunk/src/includes/functions/wysiwyg/images/zf_y.gif trunk/src/includes/functions/wysiwyg/js/dhtmled.js trunk/src/includes/functions/wysiwyg/js/lib.js trunk/src/includes/functions/wysiwyg/js/lib2.js trunk/src/includes/functions/wysiwyg/js/lib_ms.js trunk/src/includes/functions/wysiwyg/modules/behavior_css.js trunk/src/includes/functions/wysiwyg/modules/behavior_menu_invisible.js trunk/src/includes/functions/wysiwyg/modules/behavior_remove_phptags.js trunk/src/includes/functions/wysiwyg/modules/behavior_remove_xmltags.js trunk/src/includes/functions/wysiwyg/modules/button_about.js trunk/src/includes/functions/wysiwyg/modules/button_hr.gif trunk/src/includes/functions/wysiwyg/modules/button_hr.js trunk/src/includes/functions/wysiwyg/modules/button_html.htm trunk/src/includes/functions/wysiwyg/modules/button_html.js trunk/src/includes/functions/wysiwyg/modules/button_image.js trunk/src/includes/functions/wysiwyg/modules/button_imagemap.js trunk/src/includes/functions/wysiwyg/modules/button_log.js trunk/src/includes/functions/wysiwyg/modules/button_table_properties.html trunk/src/includes/functions/wysiwyg/modules/button_table_properties.js trunk/src/includes/functions/wysiwyg/modules/button_table_properties_gecko.html trunk/src/includes/functions/wysiwyg/modules/grid_small.js trunk/src/includes/functions/wysiwyg/modules/imagemap/arr.gif trunk/src/includes/functions/wysiwyg/modules/imagemap/genMove.js trunk/src/includes/functions/wysiwyg/modules/imagemap/index.php trunk/src/includes/functions/wysiwyg/modules/imagemap/msmove.js trunk/src/includes/functions/wysiwyg/modules/imagemap/trans.gif trunk/src/includes/functions/wysiwyg/modules/listbox_paragraph.js trunk/src/includes/functions/wysiwyg/modules/listbox_styleclass.js trunk/src/includes/functions/wysiwyg/modules/listbox_template.js trunk/src/includes/functions/wysiwyg/modules/listbox_template_example.html trunk/src/includes/functions/wysiwyg.php trunk/src/includes/globals.php trunk/src/includes/settings.php trunk/src/includes/sitesettings.tpl trunk/src/includes/skinfunctions.php trunk/src/includes/slug.php trunk/src/includes/xmlModule.php trunk/src/index.php trunk/src/login.php trunk/src/logout.php trunk/src/modules/export.php trunk/src/modules/extended.php trunk/src/modules/index.php trunk/src/modules/info.php trunk/src/modules/openfirst.info.xml trunk/src/news/NOTES trunk/src/news/admin/delcomment.php trunk/src/news/admin/editnews.php trunk/src/news/admin/index.php trunk/src/news/admin/killnews.php trunk/src/news/admin/uploader.php trunk/src/news/comments.php trunk/src/news/images/README trunk/src/news/images/killdoc.gif trunk/src/news/images/newdoc.gif trunk/src/news/index.php trunk/src/news/newcomment.php trunk/src/news/openfirst.info.xml trunk/src/news/rss/class.RSSBuilder.inc.php trunk/src/news/rss/rss.php trunk/src/news/rssfeed.php trunk/src/news/viewnews.php trunk/src/style/Default.php trunk/src/style/footers.php trunk/src/style/headers.php trunk/src/style/images/back-admin.png trunk/src/style/images/back-light.gif trunk/src/style/images/back-lighter.gif trunk/src/style/images/back.gif trunk/src/style/images/developers-small.gif trunk/src/style/images/help.gif trunk/src/style/images/large.gif trunk/src/style/images/mmc.gif trunk/src/style/images/oflogo.gif trunk/src/style/images/openfirst-small.png trunk/src/style/images/openfirst.png trunk/src/style/images/poweredby-small.png trunk/src/style/images/poweredby.png trunk/src/style/images/slug.gif trunk/src/style/images/small-warning-green.gif trunk/src/style/images/small-warning.gif trunk/src/style/images/verytinyfirst.gif trunk/src/style/images/w3c401.png trunk/src/style/images/warning.gif trunk/src/style/images/web.gif trunk/src/style/slugs.css trunk/src/style/slugs.js trunk/src/style/style.css Added: trunk/src/COPYING =================================================================== --- trunk/src/COPYING (rev 0) +++ trunk/src/COPYING 2006-06-21 02:38:02 UTC (rev 163) @@ -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: trunk/src/COPYING ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: trunk/src/README =================================================================== --- trunk/src/README (rev 0) +++ trunk/src/README 2006-06-21 02:38:02 UTC (rev 163) @@ -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: trunk/src/README ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: trunk/src/awards/NOTES =================================================================== --- trunk/src/awards/NOTES (rev 0) +++ trunk/src/awards/NOTES 2006-06-21 02:38:02 UTC (rev 163) @@ -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: trunk/src/awards/NOTES ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: trunk/src/awards/admin/index.php =================================================================== --- trunk/src/awards/admin/index.php (rev 0) +++ trunk/src/awards/admin/index.php 2006-06-21 02:38:02 UTC (rev 163) @@ -0,0 +1,295 @@ +<?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($ogHeader); + + // 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)); + if ($ogDB->rowCount($faq) <= 0) + die('Error in getting award:'.$ogDB->errorNumber().': '.$ogDB->errorString()); + $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($ogFooter); +?> Property changes on: trunk/src/awards/admin/index.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: trunk/src/awards/awards.php =================================================================== --- trunk/src/awards/awards.php (rev 0) +++ trunk/src/awards/awards.php 2006-06-21 02:38:02 UTC (rev 163) @@ -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: trunk/src/awards/awards.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: trunk/src/awards/awardsbronze.png =================================================================== (Binary files differ) Property changes on: trunk/src/awards/awardsbronze.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: trunk/src/awards/awardsfirst.gif =================================================================== (Binary files differ) Property changes on: trunk/src/awards/awardsfirst.gif ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/gif Added: trunk/src/awards/awardsgold.png =================================================================== (Binary files differ) Property changes on: trunk/src/awards/awardsgold.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: trunk/src/awards/awardssilver.png =================================================================== (Binary files differ) Property changes on: trunk/src/awards/awardssilver.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: trunk/src/awards/index.php =================================================================== --- trunk/src/awards/index.php (rev 0) +++ trunk/src/awards/index.php 2006-06-21 02:38:02 UTC (rev 163) @@ -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($ogHeader); + + $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($ogFooter); +?> Property changes on: trunk/src/awards/index.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: trunk/src/awards/openfirst.info.xml =================================================================== --- trunk/src/awards/openfirst.info.xml (rev 0) +++ trunk/src/awards/openfirst.info.xml 2006-06-21 02:38:02 UTC (rev 163) @@ -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>CVS</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> + ... [truncated message content] |
From: <ast...@us...> - 2006-06-22 22:07:15
|
Revision: 183 Author: astronouth7303 Date: 2006-06-22 15:07:08 -0700 (Thu, 22 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=183&view=rev Log Message: ----------- Fixed slug ads. Weird things happening, though. Modified Paths: -------------- trunk/src/includes/skinfunctions.php trunk/src/index.php trunk/src/style/slugs.css trunk/src/style/slugs.js Modified: trunk/src/includes/skinfunctions.php =================================================================== --- trunk/src/includes/skinfunctions.php 2006-06-22 17:01:36 UTC (rev 182) +++ trunk/src/includes/skinfunctions.php 2006-06-22 22:07:08 UTC (rev 183) @@ -35,7 +35,7 @@ $eimage = htmlentities($StylePath).'/images/slug.gif'; // Image source: http://www.onescience.com/forum/images/slug_125.gif //onclick=\"handleSlugClick(this)\" - echo "<span class=\"slug\"><img src=\"{$eimage}\" alt=\"(SLUG)\" title=\"Show slug\" /><span>{$eslug}</span></span>"; + echo "<span class=\"slug\"><img src=\"{$eimage}\" alt=\"(SLUG)\" title=\"Show slug\" /><span class=\"hide\">{$eslug}</span></span>"; } /** Prints out the URI for a slug. Modified: trunk/src/index.php =================================================================== --- trunk/src/index.php 2006-06-22 17:01:36 UTC (rev 182) +++ trunk/src/index.php 2006-06-22 22:07:08 UTC (rev 183) @@ -35,8 +35,7 @@ $count = 0; global $Modules; ?> - <h1>openFIRST Web Portal</h1> - <?php slug('slug:/'); ?> + <h1>openFIRST Web Portal <?php slug('slug:/'); ?></h1> <table> <tr> <?php @@ -124,4 +123,4 @@ echo(" </td></tr></table>"); include($ogFooter); -?> \ No newline at end of file +?> Modified: trunk/src/style/slugs.css =================================================================== --- trunk/src/style/slugs.css 2006-06-22 17:01:36 UTC (rev 182) +++ trunk/src/style/slugs.css 2006-06-22 22:07:08 UTC (rev 183) @@ -1,52 +1,47 @@ .slug { - border: thin solid red; /* debug */ -/* display:block;*/ /* float: left;*/ margin: .2em; overflow: visible; - width: 18px; /* Change with image */ - height: 15px; /* Change with image */ + position: relative; + vertical-align: top; + height: 15px; /* change with image */ + line-height: 15px; /* change with image */ } .slug > * { - vertical-align: middle; + vertical-align: top; } .slug > img { cursor: pointer; border: none; } .slug > span { -/* visibility: hidden;*/ - border: thin solid silver; - background: white; - height: 15px; /* Change with image */ + border: 1px solid silver; + background: #DDD; line-height: 15px; margin-left: 2px; padding: 0 2px; z-index: 50; -/* position: relative; -/* left: 18px; /* Change with image */ -/* top: -15px; /* Change with line-height */ + position: absolute; + top: 0; + left: 20px; /* Change with image: img width + margin left */ + height: auto; + width: auto; + right: auto; + white-space: nowrap; + + /* Match normal formatting, so that putting it in eg headers has no effect. */ + font-family: sans-serif; + font-size: 12px; + font-weight: normal; + font-style: normal; + font-variant: normal; + text-decoration: none; } -/*.slug.expand > span { +.slug > span.show { display: inline; -}*/ +} -/*.slug > img:active + span, -.slug > img:focus + span, -.slug:focus > span, -.slug:active > span { - display: inline; -}*/ - -/*.slug > img:hover + span, -.slug:hover > span { - display: inline; -}*/ - -/*.slug > span:selection { - display: inline; +.slug > span.hide { + display: none; } -.slug > span::selection { - display: inline; -}*/ Modified: trunk/src/style/slugs.js =================================================================== --- trunk/src/style/slugs.js 2006-06-22 17:01:36 UTC (rev 182) +++ trunk/src/style/slugs.js 2006-06-22 22:07:08 UTC (rev 183) @@ -3,16 +3,15 @@ // Pass this the DOM event function handleSlugClick(evt) { - disp = 'visible'; var obj = evt.target; if (obj.parentNode.className != 'slug') return; var target = obj.nextSibling; - if (target.style.visibility == disp) { - target.style.visibility = "hidden"; - target.title = "Show slug"; + if (target.className == 'show') { + target.className = "hide"; + obj.title = "Show slug"; } else { - target.style.visibility = disp; - target.title = "Hide slug"; + target.className = "show"; + obj.title = "Hide slug"; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-23 05:12:06
|
Revision: 199 Author: astronouth7303 Date: 2006-06-22 22:11:49 -0700 (Thu, 22 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=199&view=rev Log Message: ----------- Moving Wysiwyg editor to its own module. Note that it is not ready for anything, as it has major XSS vectors. This is just to simplify code and debugging. Added Paths: ----------- trunk/src/wysiwyg/ trunk/src/wysiwyg/DHTMLEditor Info.txt trunk/src/wysiwyg/css/ trunk/src/wysiwyg/dialog/ trunk/src/wysiwyg/gecko/ trunk/src/wysiwyg/images/ trunk/src/wysiwyg/js/ trunk/src/wysiwyg/modules/ trunk/src/wysiwyg/openfirst.info.xml trunk/src/wysiwyg/wysiwyg.php Removed Paths: ------------- trunk/src/includes/functions/wysiwyg/ trunk/src/includes/functions/wysiwyg.php Deleted: trunk/src/includes/functions/wysiwyg.php =================================================================== --- trunk/src/includes/functions/wysiwyg.php 2006-06-23 05:06:03 UTC (rev 198) +++ trunk/src/includes/functions/wysiwyg.php 2006-06-23 05:11:49 UTC (rev 199) @@ -1,51 +0,0 @@ -<?php -/* - * openFIRST.base - config/functions/wysiwyg.php - * - * Copyright (C) 2003, - * openFIRST Project - * Original Author: David Di Biase<dav...@ea...> and DHTMLEditor Author: Hans-J\xFCrgen Petrich <pe...@tr...> - * - * 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 - * - */ - - // A complete function to create the Javascript command for loading of the WYSIWYG - function make_wysiwyg($fieldname,$height,$width,$init){ - global $basepath; -?> -<SCRIPT TYPE="text/javascript" language="JavaScript1.3"> -<!-- !!!! important comment this !!!! - document.dhtmlEditors_home='<?php echo $basepath; ?>/config/functions/wysiwyg/'; - document.writeln('<'+'SCRIPT LANGUAGE="JavaScript" src="'+document.dhtmlEditors_home+'js/lib.js">'+'<'+'/SCRIPT'+'>'); - document.writeln('<'+'SCRIPT LANGUAGE="JavaScript" src="'+document.dhtmlEditors_home+'modules/button_html.js">'+'<'+'/SCRIPT'+'>'); - -// --> -</SCRIPT> -<textarea id="<?php echo $fieldname; ?>" name="<?php echo $fieldname; ?>" style="width:<?php echo $height; ?>px; height:<?php echo $width; ?>px;"><?php echo $init; ?></textarea> -<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> -<!-- - var myEditor = new dhtmlEditor; - myEditor.registerApiModul(MODUL__toggleEditModeGetApiInfoArray('<?php echo $basepath; ?>/config/functions/wysiwyg/images/newdoc.gif')); - myEditor.make_andReplaceTextarea('<?php echo $fieldname; ?>'); -//--> -</SCRIPT> -<?php - } -?> Copied: trunk/src/wysiwyg/DHTMLEditor Info.txt (from rev 180, trunk/src/includes/functions/wysiwyg/DHTMLEditor Info.txt) =================================================================== --- trunk/src/wysiwyg/DHTMLEditor Info.txt (rev 0) +++ trunk/src/wysiwyg/DHTMLEditor Info.txt 2006-06-23 05:11:49 UTC (rev 199) @@ -0,0 +1,58 @@ +// Copyright 2002,2003 by Hans-J\xFCrgen Petrich - Germany Berlin <pe...@tr...> +// Free for Private use ;-) if not removing or changing the (contents of)lincense.txt and copyrights in the source +// For any kind of commercial usage this script's requires a license +// Please contact pe...@tr... for a license request + +// Special thanks to Hans-J\xFCrgen Petrich for allowing the openFIRST team to include his very powerful +// WYSIWYG editor. We extend our thanks to him on behalf of the USFIRST teams who will be using +// this source in the development of their site. + +// USAGE REQUEST FROM DAVID DI BIASE TO HANS PETRICH + +Hi David, + +>> Would you allow us to use your source code and implement it into our +>> open-source project to distribute to students? + +Yes (i'm proud that the Editor may help you with your great project) + +Best Greetings from Germany(Munich) to you and all your Developers + +Hans-J\xFCrgen Petrich + +----- Original Message ----- +From: "David M.Di Biase" <dav...@ea...> +To: <pe...@tr...> +Sent: Tuesday, August 19, 2003 11:42 PM +Subject: DHTMLEditor Use in Open-Source Project + +>> Hi, +>> +>> I am e-mailing you in regards to your DHTMLEditor open-source WYSIWYG. I +>> am apart of the openFIRST development team (http://www.openfirst.org). +>> We are a sourceforge.net listed open-source development group that is +>> coding a complete portal system for teams of a robotics competition (the +>> USFIRST Robotics Competition: http://www.usfirst.org). +>> +>> Our source code will be released in a few weeks to over 600 teams in +>> this robotics competition. The uses of our source are completely +>> non-commercial and completely educational. +>> +>> Our team needed a solution for a WYSIWYG that is compatible with our +>> system and works well when tested over different OS's and browsers. We +>> found that DHTMLEditor worked best in our testing. +>> +>> Would you allow us to use your source code and implement it into our +>> open-source project to distribute to students? All your source will be +>> kept in tact, with the license agreement and credit, following a link +>> within the source. +>> +>> Great work btw, we hope that you will allow us to put it to use in our +>> system. +>> +>> Thanks, +>> +>> David Di Biase +>> The openFIRST Development Team +>> +>> \ No newline at end of file Copied: trunk/src/wysiwyg/css (from rev 180, trunk/src/includes/functions/wysiwyg/css) Copied: trunk/src/wysiwyg/dialog (from rev 180, trunk/src/includes/functions/wysiwyg/dialog) Copied: trunk/src/wysiwyg/gecko (from rev 180, trunk/src/includes/functions/wysiwyg/gecko) Copied: trunk/src/wysiwyg/images (from rev 180, trunk/src/includes/functions/wysiwyg/images) Copied: trunk/src/wysiwyg/js (from rev 180, trunk/src/includes/functions/wysiwyg/js) Copied: trunk/src/wysiwyg/modules (from rev 180, trunk/src/includes/functions/wysiwyg/modules) Added: trunk/src/wysiwyg/openfirst.info.xml =================================================================== --- trunk/src/wysiwyg/openfirst.info.xml (rev 0) +++ trunk/src/wysiwyg/openfirst.info.xml 2006-06-23 05:11:49 UTC (rev 199) @@ -0,0 +1,13 @@ +<?xml version="1.0" ?> +<module xmlns="http://openfirst.org/xml/module/1.0" id="openfirst.wysiwyg"> + <!-- Info --> + <!-- This is not used, except as meta data --> + <name>WYSIWYG</name> + <version>Devel</version> + <author>David Di Biase</author> + <maintainer>Jamie Bliss</maintainer> + + <includes> + <include>$fModPath/wysiwyg.php</include> + </includes> +</module> Property changes on: trunk/src/wysiwyg/openfirst.info.xml ___________________________________________________________________ Name: svn:mime-type + text/xml Name: svn:eol-style + LF Copied: trunk/src/wysiwyg/wysiwyg.php (from rev 180, trunk/src/includes/functions/wysiwyg.php) =================================================================== --- trunk/src/wysiwyg/wysiwyg.php (rev 0) +++ trunk/src/wysiwyg/wysiwyg.php 2006-06-23 05:11:49 UTC (rev 199) @@ -0,0 +1,81 @@ +<?php +/* + * openFIRST.wysiwyg - wysiwyg.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: David Di Biase<dav...@ea...> and DHTMLEditor Author: Hans-J\xFCrgen Petrich <pe...@tr...> + * + * 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 + * + */ + +class WysiwygModule extends Module { + function &getEditorObject() { + return new WysiwygEditor(&$this); + } +} + + +class WysiwygEditor extends Editor { + var $module; + /*private*/ function WysiwygEditor(&$module) { + $this->module =& $module; + } + + // A complete function to create the Javascript command for loading of the WYSIWYG + function getEditField($fieldname,$height,$width,$init){ + global $BasePath; + $dir = $BasePath.'/'.$this->module->getDir(); + ob_start(); +?> +<script type="text/javascript" language="JavaScript1.3"> +//<!-- !!!! important comment this !!!! + document.writeln('<'+'script language="JavaScript" type="text/javascript" src="<?php echo htmlentities($dir); ?>/js/lib.js">'+'<'+'/script'+'>'); + document.writeln('<'+'script language="JavaScript" type="text/javascript" src="<?php echo htmlentities($dir); ?>/modules/button_html.js">'+'<'+'/script'+'>'); +// --> +</script> +<textarea id="<?php echo htmlentities($fieldname); ?>" name="<?php echo htmlentities($fieldname); ?>" style="width:<?php echo htmlentities($width); ?>; height:<?php echo htmlentities($height); ?>;"><?php echo htmlentities($init); ?></textarea> +<script language="JavaScript" type="text/javascript"> +//<!-- + var myEditor = new dhtmlEditor; + myEditor.registerApiModul(MODUL__toggleEditModeGetApiInfoArray('<?php echo $dir; ?>/images/newdoc.gif')); + myEditor.make_andReplaceTextarea('<?php echo htmlentities($fieldname); ?>'); +//--> +</script> +<?php + $text = ob_get_clean(); + return $text; + } + + function getPlainText($text) { + return strip_tags($text); + } + + function parseText($text) { + #FIXME: XSS VECTOR! + return $text; + } +} + +$wysiwygmod =& new WysiwygModule(basename(dirname(__FILE__))); +$ogModuleManager->addModuleFromObject($wysiwygmod); +unset($wysiwygmod); +?> + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-23 23:24:41
|
Revision: 202 Author: astronouth7303 Date: 2006-06-23 16:23:33 -0700 (Fri, 23 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=202&view=rev Log Message: ----------- Fixed variable names. Modified Paths: -------------- trunk/src/awards/admin/index.php trunk/src/config/index.php trunk/src/config/install.php trunk/src/includes/Module.php trunk/src/includes/auth.php trunk/src/includes/functions/debug.php trunk/src/includes/skinfunctions.php trunk/src/includes/slug.php trunk/src/index.php trunk/src/modules/export.php trunk/src/modules/extended.php trunk/src/modules/index.php trunk/src/style/footers.php trunk/src/style/headers.php trunk/src/wysiwyg/wysiwyg.php Modified: trunk/src/awards/admin/index.php =================================================================== --- trunk/src/awards/admin/index.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/awards/admin/index.php 2006-06-23 23:23:33 UTC (rev 202) @@ -32,7 +32,8 @@ echo("<p>Award information has been deleted.</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); - die(include_once($footer)); + include_once($footer); + die(); } $DisplayForm = true; $CreateNew = true; @@ -227,9 +228,9 @@ <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> + <td><img src="<?php echo htmlentities($ogBasePath); ?>/awards/awardsgold.png" alt="Gold"></td> + <td><img src="<?php echo htmlentities($ogBasePath); ?>/awards/awardssilver.png" alt="Silver"></td> + <td><img src="<?php echo htmlentities($ogBasePath); ?>/awards/awardsbronze.png" alt="Bronze"></td> </tr> <tr> <td><div align="center"> @@ -275,7 +276,7 @@ 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><img src="<?php echo htmlentities($ogBasePath); ?>/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> Modified: trunk/src/config/index.php =================================================================== --- trunk/src/config/index.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/config/index.php 2006-06-23 23:23:33 UTC (rev 202) @@ -41,7 +41,7 @@ </table> <?php - if(is_writable("$fBasePath/includes/sitesettings.php") && file_exists("$fBasePath/includes/first.php")) { + if(is_writable("$ogfBasePath/includes/sitesettings.php") && file_exists("$ogfBasePath/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 @@ -52,7 +52,7 @@ 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")) { + } elseif(is_writable("$ogfBasePath/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 @@ -101,4 +101,4 @@ </table> <?php include($ogFooter); -?> \ No newline at end of file +?> Modified: trunk/src/config/install.php =================================================================== --- trunk/src/config/install.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/config/install.php 2006-06-23 23:23:33 UTC (rev 202) @@ -51,7 +51,7 @@ $Modules = array(); -$files = glob("$fBasePath/*/openfirst.info.xml"); +$files = glob("$ogfBasePath/*/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> @@ -124,4 +124,4 @@ <?php include($ogFooter); -?> \ No newline at end of file +?> Modified: trunk/src/includes/Module.php =================================================================== --- trunk/src/includes/Module.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/includes/Module.php 2006-06-23 23:23:33 UTC (rev 202) @@ -236,7 +236,7 @@ You can do any manipulation you want to it, however, it is suggested that you use a directory-style setup, and that it is kept sane and logical. function getSlugURI($slug) { - return $BasePath.'/'.$this->dir.'/'.$slug; + return $ogBasePath.'/'.$this->dir.'/'.$slug; } It is recomended that you present the slug, in some form, to the user. At a later date, there may be functions available from the skin to do this. @@ -251,4 +251,4 @@ } require_once('BaseModule.php'); -?> \ No newline at end of file +?> Modified: trunk/src/includes/auth.php =================================================================== --- trunk/src/includes/auth.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/includes/auth.php 2006-06-23 23:23:33 UTC (rev 202) @@ -91,9 +91,9 @@ if($ogPasswordSaveEnabled){ echo " <br /><input type='checkbox' name='savepass' id='savepass' value='1' checked='checked' /><label for='savepass'>Save Password</label>"; } - global $BasePath; + global $ogBasePath; echo "</td></tr> - <tr><td colspan='2'><a href=\"".htmlentities($BasePath)."/members/forgotten.php\">Forgot Password</a></td></tr> + <tr><td colspan='2'><a href=\"".htmlentities($ogBasePath)."/members/forgotten.php\">Forgot Password</a></td></tr> </table>"; // FIXME: Reference to module not in base // Include anything else in the post, so it is forwarded to the actual form @@ -103,4 +103,4 @@ } echo "</form><br /><br />"; } -?> \ No newline at end of file +?> Modified: trunk/src/includes/functions/debug.php =================================================================== --- trunk/src/includes/functions/debug.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/includes/functions/debug.php 2006-06-23 23:23:33 UTC (rev 202) @@ -37,8 +37,8 @@ function ofirst_error_handler($errno, $error, $file, $line, $context) { global $ogDataBaseType, $ogEncryptionType, $ogSiteTitle, $ogVersion, $ogSQLServer, $ogSQLUser, $ogSQLPassword, $ogSQLDatabase, - $ogSQLConnection, $ogPasswordSaveEnabled, $regEnabled, $Server, - $BasePath, $fBasePath, $Home, $StylePath, $fStylePath, $ogHeader, + $ogSQLConnection, $ogPasswordSaveEnabled, $ogRegistraytionEnabled, $ogServer, + $ogBasePath, $ogfBasePath, $ogHome, $ogStylePath, $ogfStylePath, $ogHeader, $ogFooter, $ogMailNotify, $ogMailFrom, $ogDB, $osType, $ogCurrentModule, $ogUser, $lastquery, $usingPHP5; global $NO_ADD_BUG; Modified: trunk/src/includes/skinfunctions.php =================================================================== --- trunk/src/includes/skinfunctions.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/includes/skinfunctions.php 2006-06-23 23:23:33 UTC (rev 202) @@ -30,9 +30,9 @@ * @todo Move implementation to skin */ function slug($slug) { - global $StylePath; + global $ogStylePath; $eslug = htmlentities($slug); - $eimage = htmlentities($StylePath).'/images/slug.gif'; + $eimage = htmlentities($ogStylePath).'/images/slug.gif'; // Image source: http://www.onescience.com/forum/images/slug_125.gif //onclick=\"handleSlugClick(this)\" echo "<span class=\"slug\"><img src=\"{$eimage}\" alt=\"(SLUG)\" title=\"Show slug\" /><span class=\"hide\">{$eslug}</span></span>"; Modified: trunk/src/includes/slug.php =================================================================== --- trunk/src/includes/slug.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/includes/slug.php 2006-06-23 23:23:33 UTC (rev 202) @@ -24,8 +24,8 @@ // Purpose: Defines the functions to handle slugs. /** Returns the URI of a slug. - * Note that it is relative to $BasePath, so you still need to - * prepend $BasePath to it. + * Note that it is relative to $ogBasePath, so you still need to + * prepend $ogBasePath to it. * It also removes an initial slug: in it. */ function ofGetSlugURI($slug) { Modified: trunk/src/index.php =================================================================== --- trunk/src/index.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/index.php 2006-06-23 23:23:33 UTC (rev 202) @@ -61,7 +61,7 @@ if ( count($ogModuleManager->getDirsFromID('openfirst.guestbook')) >= 1) { $qu = $ogDB->query("SELECT guest, date FROM ofirst_guestbook ORDER BY guest LIMIT 5;"); if($ogDB->numberOfRows($qu)!=0){ - echo("<table width=200><tr><th>Guestbook</th></tr><tr><td><div>Last records in our <a href=\"$BasePath/guestbook\">guestbook</a>: </div>"); + echo("<table width=200><tr><th>Guestbook</th></tr><tr><td><div>Last records in our <a href=\"$ogBasePath/guestbook\">guestbook</a>: </div>"); while($q = $ogDB->fetch_object($qu)) { echo("<sub><strong><a href='/guestbook/' target='_content'>$q->guest</a></strong><br />$q->date</sub><br />"); } @@ -73,9 +73,9 @@ if ( count($ogModuleManager->getDirsFromID('openfirst.awards')) >= 1) { $qu = $ogDB->query("SELECT AwardName FROM ofirst_awards;"); if($ogDB->numberOfRows($qu) != 0){ - echo("<table width=200><tr><th>Awards</th></tr><tr><td><div>Our team has received the following <a href=\"$BasePath/awards\">awards</a>: </div>"); + echo("<table width=200><tr><th>Awards</th></tr><tr><td><div>Our team has received the following <a href=\"$ogBasePath/awards\">awards</a>: </div>"); while($q = $ogDB->fetchObject($qu)) { - echo("<sub><a href='$BasePath/awards' target='_content'>$q->AwardName</a></sub><br />"); + echo("<sub><a href='$ogBasePath/awards' target='_content'>$q->AwardName</a></sub><br />"); } echo("</td></tr></table><br />"); } @@ -94,7 +94,7 @@ if ($mod->getActive() #&& $mod->getShowOnMenu() ) { - echo '<li><a href="'.htmlentities("$BasePath/$dir").'">'.htmlentities($mod->getName()).'</a></li> + echo '<li><a href="'.htmlentities("$ogBasePath/$dir").'">'.htmlentities($mod->getName()).'</a></li> '; } } @@ -102,7 +102,7 @@ echo '</td></tr></table><br />'; if(function_exists("get_visitors")) { - echo("<table width=200><tr><th>Stats</th></tr><tr><td><div>Website <a href=\"$BasePath/logger/stats.php\">usage statistics</a>: </div>"); + echo("<table width=200><tr><th>Stats</th></tr><tr><td><div>Website <a href=\"$ogBasePath/logger/stats.php\">usage statistics</a>: </div>"); echo("<sub><strong>".get_totalpages()." pages served to ".get_visitors()." visitors</strong></sub>"); echo("</td></tr></table><br />"); } @@ -117,7 +117,7 @@ } //are there more news? if ( shownews(5,$admin) ){ - echo("<div class=\"right\">[ <b><a href=\"$BasePath/news/index.php?show=all\">More News</a></b> ]</div>"); + echo("<div class=\"right\">[ <b><a href=\"$ogBasePath/news/index.php?show=all\">More News</a></b> ]</div>"); } } echo(" </td></tr></table>"); Modified: trunk/src/modules/export.php =================================================================== --- trunk/src/modules/export.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/modules/export.php 2006-06-23 23:23:33 UTC (rev 202) @@ -73,7 +73,7 @@ $XMLCode .= '</module>'; if (isset($_REQUEST['save'])) { - $save_len = file_put_contents("$fBasePath/$dir/openfirst.info.xml", $XMLCode); + $save_len = file_put_contents("$ogfBasePath/$dir/openfirst.info.xml", $XMLCode); } ?><dt style="font-weight:bold;"><h2><?php echo htmlentities($name); ?></h2><?php Modified: trunk/src/modules/extended.php =================================================================== --- trunk/src/modules/extended.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/modules/extended.php 2006-06-23 23:23:33 UTC (rev 202) @@ -41,7 +41,7 @@ return in_array($x, $files); } -$files = glob("$fBasePath/*/openfirst.info.xml"); +$files = glob("$ogfBasePath/*/openfirst.info.xml"); $files = array_map('mapDirs', $files); if (count($dirs) < 1) { @@ -226,7 +226,7 @@ } echo '<div class="left"> '; -$hbasepath = htmlentities($BasePath); +$hbasepath = htmlentities($ogBasePath); foreach($dirs as $dir) { $mod = xmlModule::createFromDir($dir); @@ -313,4 +313,4 @@ } echo '</div>'; include($ogFooter); -?> \ No newline at end of file +?> Modified: trunk/src/modules/index.php =================================================================== --- trunk/src/modules/index.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/modules/index.php 2006-06-23 23:23:33 UTC (rev 202) @@ -24,7 +24,7 @@ require_once('../includes/globals.php'); require_once('xmlModule.php'); -$files = glob("$fBasePath/*/openfirst.info.xml"); +$files = glob("$ogfBasePath/*/openfirst.info.xml"); $oMods = array(); @@ -55,7 +55,7 @@ </thead> <tbody> <?php -$hbasepath = htmlentities($BasePath); +$hbasepath = htmlentities($ogBasePath); foreach($oMods as $mod) { echo ' <tr> @@ -145,4 +145,4 @@ </table> <?php include($ogFooter); -?> \ No newline at end of file +?> Modified: trunk/src/style/footers.php =================================================================== --- trunk/src/style/footers.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/style/footers.php 2006-06-23 23:23:33 UTC (rev 202) @@ -1,6 +1,7 @@ <?php -if(! isset($BasePath)){ - $BasePath = "http://openfirst.sourceforge.net/"; +global $ogBasePath, +if(! isset($ogBasePath)){ + $ogBasePath = "http://openfirst.sourceforge.net/"; } ?></div> <div id="footer"> @@ -10,11 +11,11 @@ </div> <?php if(isset($user->membertype) && $user->membertype == "administrator"){ - echo "<div id=\"adiminlink\">[ <a href='".htmlentities($BasePath)."/config/index.php'>Administrator Options / Configuration Area</a> ]</div>"; } + echo "<div id=\"adiminlink\">[ <a href='".htmlentities($ogBasePath)."/config/index.php'>Administrator Options / Configuration Area</a> ]</div>"; } ?> <div class="right menu"> <a class="logo" href="http://openfirst.sourceforge.net"> - <img src="<?php echo htmlentities("$StylePath"); ?>/images/poweredby-small.png" alt="Powered by openFIRST" /> + <img src="<?php echo htmlentities("$ogStylePath"); ?>/images/poweredby-small.png" alt="Powered by openFIRST" /> </a> </div> </div> Modified: trunk/src/style/headers.php =================================================================== --- trunk/src/style/headers.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/style/headers.php 2006-06-23 23:23:33 UTC (rev 202) @@ -6,7 +6,7 @@ if(!isset($ogBasePath)){ $ogBasePath = 'http://openfirst.sourceforge.net'; - $StylePath = 'http://openfirst.sourceforge.net/style'; + $ogStylePath = 'http://openfirst.sourceforge.net/style'; $Title = "openFIRST Team"; } else { $headerlinks = array(); @@ -50,9 +50,9 @@ <meta http-equiv="Content-Language" content="en" /> <meta name="copyright" content="© 2006 openFIRST http://openfirst.sf.net." /> <meta name="generator" content="openFIRST - http://openfirst.sf.net" /> - <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($StylePath); ?>/style.css" /> - <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($StylePath); ?>/slugs.css" /> - <script type="application/x-javascript" src="<?php echo htmlentities($StylePath); ?>/slugs.js"></script> + <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($ogStylePath); ?>/style.css" /> + <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($ogStylePath); ?>/slugs.css" /> + <script type="application/x-javascript" src="<?php echo htmlentities($ogStylePath); ?>/slugs.js"></script> <?php if (isset($ogMoreHeadItems) && is_array($ogMoreHeadItems)) { foreach($ogMoreHeadItems as $i) { @@ -79,7 +79,7 @@ <th id="topmenu"> <?php if(isset($headers)){ - echo("» <a accesskey='h' href='$Home'><u>H</u>ome</a> | " . $headers); + echo("» <a accesskey='h' href='$ogHome'><u>H</u>ome</a> | " . $headers); }else{ ?> » <a accesskey="h" href="http://openfirst.sourceforge.net"><u>H</u>ome</a> @@ -95,7 +95,7 @@ </th> </tr> <tr> - <td class="nav2" style="background-image: url('<?php echo htmlentities($StylePath); ?>/images/back-light.gif'); "> + <td class="nav2" style="background-image: url('<?php echo htmlentities($ogStylePath); ?>/images/back-light.gif'); "> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> Modified: trunk/src/wysiwyg/wysiwyg.php =================================================================== --- trunk/src/wysiwyg/wysiwyg.php 2006-06-23 22:31:51 UTC (rev 201) +++ trunk/src/wysiwyg/wysiwyg.php 2006-06-23 23:23:33 UTC (rev 202) @@ -41,8 +41,8 @@ // A complete function to create the Javascript command for loading of the WYSIWYG function getEditField($fieldname,$height,$width,$init){ - global $BasePath; - $dir = $BasePath.'/'.$this->module->getDir(); + global $ogBasePath; + $dir = $ogBasePath.'/'.$this->module->getDir(); ob_start(); ?> <script type="text/javascript" language="JavaScript1.3"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2007-04-06 21:10:27
|
Revision: 218 http://svn.sourceforge.net/openfirst/?rev=218&view=rev Author: astronouth7303 Date: 2007-04-06 14:10:28 -0700 (Fri, 06 Apr 2007) Log Message: ----------- - Fixed some warnings/notices in xmlModule.php and Module.php - Fixed DataBase::replace() Modified Paths: -------------- trunk/src/config/first.php trunk/src/config/install.php trunk/src/includes/Module.php trunk/src/includes/dbase.php trunk/src/includes/xmlModule.php Modified: trunk/src/config/first.php =================================================================== --- trunk/src/config/first.php 2007-03-25 21:29:23 UTC (rev 217) +++ trunk/src/config/first.php 2007-04-06 21:10:28 UTC (rev 218) @@ -33,7 +33,7 @@ // Initialize header/footer vars $Title = 'openFIRST Installation'; - $StylePath = 'http://openfirst.sourceforge.net'; + $ogStylePath = 'http://openfirst.sourceforge.net'; define('OPENFIRST_INSTALLATION_SCRIPT', true); // Only define if it's the installation script @@ -130,7 +130,7 @@ 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>'; + echo '<p class="big">Continue to the <a href="'.htmlentities($ogBasePath).'/config/">administration page</a>.</p>'; } include_once($ogFooter); die; Modified: trunk/src/config/install.php =================================================================== --- trunk/src/config/install.php 2007-03-25 21:29:23 UTC (rev 217) +++ trunk/src/config/install.php 2007-04-06 21:10:28 UTC (rev 218) @@ -99,6 +99,7 @@ $IsInstalled = true; } else { $InstallFailed = true; + #$err .= "\n".$ogLastQuery; } } echo '<tr><td><input type="checkbox" name="'.htmlentities($dir).'" '; Modified: trunk/src/includes/Module.php =================================================================== --- trunk/src/includes/Module.php 2007-03-25 21:29:23 UTC (rev 217) +++ trunk/src/includes/Module.php 2007-04-06 21:10:28 UTC (rev 218) @@ -77,7 +77,8 @@ if (isset($this->modules[$dir])) { return $this->modules[$dir]; } else { - return false; + $rv = false; + return $rv; } } @@ -251,4 +252,6 @@ } require_once('BaseModule.php'); + +# vim:set expandtab tabwidth=2 : ?> Modified: trunk/src/includes/dbase.php =================================================================== --- trunk/src/includes/dbase.php 2007-03-25 21:29:23 UTC (rev 217) +++ trunk/src/includes/dbase.php 2007-04-06 21:10:28 UTC (rev 218) @@ -373,11 +373,15 @@ * @param array $values An array of values to use, as if they had been passed to insert(). */ function replace( $table, $unique, $values ) { - $etable = $this->quoteTable($table); - $eunique = $this->quoteFDPairs($unique, ' AND '); - $sql = "DELTE FROM {$etable} WHERE {$eunique}; - INSERT INTO {$etable} (".$this->quoteField(array_keys($values)).") VALUES (".$this->quoteData(array_values($values)).")"; - return $this->query( $sql ); + #$etable = $this->quoteTable($table); + #$eunique = $this->quoteFDPairs($unique, ' AND '); + #$sql = "DELETE FROM {$etable} WHERE {$eunique}; ". + #"INSERT INTO {$etable} (".$this->quoteField(array_keys($values)).") VALUES (".$this->quoteData(array_values($values)).")"; + #return $this->query( $sql ); + $rv = $this->delete($table, $unique); + if ($rv === false) return $rv; + $rv = $this->insert($table, $values); + return $rv; } /** INSERT query wrapper. @@ -403,7 +407,7 @@ $table = $this->quoteTable( $table ); $sql = "DELETE FROM $table"; if ( $conds != '*' ) { - $sql .= ' WHERE ' . $this->quoteFDPairs( $conds ); + $sql .= ' WHERE ' . $this->quoteFDPairs( $conds, ' AND ' ); } return $this->query( $sql ); } Modified: trunk/src/includes/xmlModule.php =================================================================== --- trunk/src/includes/xmlModule.php 2007-03-25 21:29:23 UTC (rev 217) +++ trunk/src/includes/xmlModule.php 2007-04-06 21:10:28 UTC (rev 218) @@ -414,7 +414,9 @@ return $this->mName; } function &setCol($value) { - return $this->mCols[$value->getName()] = $value; + $rv = $value; + $this->mCols[$value->getName()] =& $rv; + return $rv; } function getCol($name) { @@ -434,7 +436,9 @@ } function &setKey($value) { - return $this->mKeys[$value->getName()] = $value; + $rv = $value; + $this->mKeys[$value->getName()] =& $rv; + return $rv; } function getKey($name) { @@ -456,12 +460,14 @@ function &addRow($values) { if (is_array($values)) { - return $this->mRows[] = new xmlRow($values); + $rv = new xmlRow($values); } else if (is_object($values)) { - return $this->mRows[] = $values; + $rv = $values; } else { - return $this->mRows[] = new xmlRow(); + $rv = new xmlRow(); } + $this->mRows[] =& $rv; + return $rv; } function clearRows($values) { @@ -807,7 +813,9 @@ /*public*/ function &addElement($Name, $Attrs) { global $xmlClassNames; $ClassName = $xmlClassNames['Element']; - return $this->Contents[] =& new xmlElement($Name, $Attrs, &$this); + $rv =& new xmlElement($Name, $Attrs, &$this); + $this->Contents[] =& $rv; + return $rv; } /*public*/ function &getParent() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2007-04-06 21:53:46
|
Revision: 221 http://svn.sourceforge.net/openfirst/?rev=221&view=rev Author: astronouth7303 Date: 2007-04-06 14:53:42 -0700 (Fri, 06 Apr 2007) Log Message: ----------- -Fixed file headers -ofGetSlugURI() works with "/" -implemented a slug redirector Modified Paths: -------------- trunk/src/includes/slug.php trunk/src/login.php trunk/src/logout.php Added Paths: ----------- trunk/src/findslug.php Added: trunk/src/findslug.php =================================================================== --- trunk/src/findslug.php (rev 0) +++ trunk/src/findslug.php 2007-04-06 21:53:42 UTC (rev 221) @@ -0,0 +1,40 @@ +<?php +/* + * openFIRST.base - findslug.php + * + * Copyright (C) 2003, + * 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. + * 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: Redirect from a slug + +include_once("includes/globals.php"); +include_once("slug.php"); + +$slug = $_SERVER['QUERY_STRING']; + +$uri = ofGetSlugURI($slug); + +header('Location: '.$ogServer.$ogBasePath.$uri); +#echo $ogServer.$ogBasePath.$uri + +?> Property changes on: trunk/src/findslug.php ___________________________________________________________________ Name: svn:mime-type + text/x-php Name: svn:eol-style + native Modified: trunk/src/includes/slug.php =================================================================== --- trunk/src/includes/slug.php 2007-04-06 21:23:22 UTC (rev 220) +++ trunk/src/includes/slug.php 2007-04-06 21:53:42 UTC (rev 221) @@ -33,6 +33,9 @@ if (strcasecmp(substr($slug, 1, strlen('slug:')), 'slug:') == 0) { $slug = substr($slug, strlen('slug:')); } + if (strcasecmp($slug[0], '/') == 0) { + $slug = substr($slug, 1); + } $parts = explode('/', $slug); if (!isset($parts[1])) { return '/'.$parts[0]; Modified: trunk/src/login.php =================================================================== --- trunk/src/login.php 2007-04-06 21:23:22 UTC (rev 220) +++ trunk/src/login.php 2007-04-06 21:53:42 UTC (rev 221) @@ -25,7 +25,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ -// Purpose: configure OpenFIRST modules, including their position on menus +// Purpose: Log users in include_once("includes/globals.php"); include_once($ogHeader); @@ -38,4 +38,4 @@ ofShowLogin(); include_once($ogFooter); -?> \ No newline at end of file +?> Modified: trunk/src/logout.php =================================================================== --- trunk/src/logout.php 2007-04-06 21:23:22 UTC (rev 220) +++ trunk/src/logout.php 2007-04-06 21:53:42 UTC (rev 221) @@ -25,7 +25,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ -// Purpose: configure OpenFIRST modules, including their position on menus +// Purpose: Log a user out. include_once("includes/globals.php"); include_once($ogHeader); @@ -38,4 +38,4 @@ <?php include_once($ogFooter); -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2007-06-24 02:31:22
|
Revision: 232 http://svn.sourceforge.net/openfirst/?rev=232&view=rev Author: astronouth7303 Date: 2007-06-23 19:31:24 -0700 (Sat, 23 Jun 2007) Log Message: ----------- Added basic "user bar". Login/logout now accessable. Modified Paths: -------------- trunk/src/login.php trunk/src/logout.php trunk/src/style/headers.php trunk/src/style/style.css Modified: trunk/src/login.php =================================================================== --- trunk/src/login.php 2007-06-24 02:30:56 UTC (rev 231) +++ trunk/src/login.php 2007-06-24 02:31:24 UTC (rev 232) @@ -28,14 +28,26 @@ // Purpose: Log users in include_once("includes/globals.php"); + +if (isset($_REQUEST['return'])) + $_POST['return'] = $_REQUEST['return']; + include_once($ogHeader); - ?> <h1>User Log In</h1> <?php -ofShowLogin(); +if ($ogUser->isLoggedIn()) { +?> + <p>You have successfully logged in!</p> + + <p>Return to the <a href="<?php echo htmlentities(@$_REQUEST['return']); ?>">previous page</a>.</p> +<?php +} else { + ofShowLogin(); +} include_once($ogFooter); +# vim:set expandtab tabwidth=2 : ?> Modified: trunk/src/logout.php =================================================================== --- trunk/src/logout.php 2007-06-24 02:30:56 UTC (rev 231) +++ trunk/src/logout.php 2007-06-24 02:31:24 UTC (rev 232) @@ -35,7 +35,8 @@ ?> <h1>User Log Out</h1> <p>You are now logged out.</p> - +<p>Return to the <a href="<?php echo htmlentities(@$_REQUEST['return']); ?>">previous page</a>.</p> <?php include_once($ogFooter); +# vim:set expandtab tabwidth=2 : ?> Modified: trunk/src/style/headers.php =================================================================== --- trunk/src/style/headers.php 2007-06-24 02:30:56 UTC (rev 231) +++ trunk/src/style/headers.php 2007-06-24 02:31:24 UTC (rev 232) @@ -115,17 +115,22 @@ } ?> </td> - <td class="right" style="color: #333333;"> + <td class="right userbar" style="color: #333333;"> <?php - - // Check if messenger module has activated usersonline option then echo value - if(isset($usersonline)){ - echo htmlentities($usersonline); - } else { - echo "Welcome to the <b>".htmlentities($ogSiteTitle)."</b> website!"; - } - +#echo "Welcome to the <b>".htmlentities($ogSiteTitle)."</b> website!"; +if ($ogUser->isLoggedIn()) { + $icon = $ogUser->isAdmin() ? "/icons/user_suit.png" : "/icons/user.png"; ?> + <img src="<?php echo htmlentities($ogStylePath.$icon); ?>" /> + <a href="#"><?php echo htmlentities($ogUser->getName()); ?></a> | + <a href="<?php echo htmlentities($ogBasePath."/logout.php?return=".urlencode($_SERVER['REQUEST_URI'])); ?>">Log out</a> +<?php +} else { +?> + <a href="<?php echo htmlentities($ogBasePath."/login.php?return=".urlencode($_SERVER['REQUEST_URI'])); ?>">Log in</a> +<?php +} +?> </td> </tr> </table></td> @@ -153,4 +158,5 @@ unset($ogBasePath); } +# vim:set expandtab tabwidth=2 : ?> Modified: trunk/src/style/style.css =================================================================== --- trunk/src/style/style.css 2007-06-24 02:30:56 UTC (rev 231) +++ trunk/src/style/style.css 2007-06-24 02:31:24 UTC (rev 232) @@ -314,4 +314,8 @@ .big, .big * { font-size: large; -} \ No newline at end of file +} + +.userbar img { + vertical-align: middle; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2007-06-24 02:38:50
|
Revision: 233 http://svn.sourceforge.net/openfirst/?rev=233&view=rev Author: astronouth7303 Date: 2007-06-23 19:38:52 -0700 (Sat, 23 Jun 2007) Log Message: ----------- * Don't show "return to" bit unless there's something to return to. * Registraytion? Modified Paths: -------------- trunk/src/includes/functions/debug.php trunk/src/includes/sitesettings.tpl trunk/src/login.php Modified: trunk/src/includes/functions/debug.php =================================================================== --- trunk/src/includes/functions/debug.php 2007-06-24 02:31:24 UTC (rev 232) +++ trunk/src/includes/functions/debug.php 2007-06-24 02:38:52 UTC (rev 233) @@ -37,7 +37,7 @@ function ofirst_error_handler($errno, $error, $file, $line, $context) { global $ogDataBaseType, $ogEncryptionType, $ogSiteTitle, $ogVersion, $ogSQLServer, $ogSQLUser, $ogSQLPassword, $ogSQLDatabase, - $ogSQLConnection, $ogPasswordSaveEnabled, $ogRegistraytionEnabled, $ogServer, + $ogSQLConnection, $ogPasswordSaveEnabled, $ogRegistrationEnabled, $ogServer, $ogBasePath, $ogfBasePath, $ogHome, $ogStylePath, $ogfStylePath, $ogHeader, $ogFooter, $ogMailNotify, $ogMailFrom, $ogDB, $osType, $ogCurrentModule, $ogUser, $lastquery, $usingPHP5; Modified: trunk/src/includes/sitesettings.tpl =================================================================== --- trunk/src/includes/sitesettings.tpl 2007-06-24 02:31:24 UTC (rev 232) +++ trunk/src/includes/sitesettings.tpl 2007-06-24 02:38:52 UTC (rev 233) @@ -21,7 +21,7 @@ $ogSQLTablePrefix = 'ofirst_'; $ogPasswordSaveEnabled = !(%COOKIE%); -$ogRegistraytionEnabled = %REG%; +$ogRegistrationEnabled = %REG%; $ogServer = %SERVER%; $ogBasePath = %BASEPATH%; $ogfBasePath = %FBASEPATH%; Modified: trunk/src/login.php =================================================================== --- trunk/src/login.php 2007-06-24 02:31:24 UTC (rev 232) +++ trunk/src/login.php 2007-06-24 02:38:52 UTC (rev 233) @@ -41,9 +41,12 @@ if ($ogUser->isLoggedIn()) { ?> <p>You have successfully logged in!</p> - +<?php + if (isset($_REQUEST['return'])) { + ?> <p>Return to the <a href="<?php echo htmlentities(@$_REQUEST['return']); ?>">previous page</a>.</p> -<?php + <?php + } } else { ofShowLogin(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |