openfirst-cvscommit Mailing List for openFIRST (Page 3)
Brought to you by:
xtimg
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(41) |
Jun
(210) |
Jul
(39) |
Aug
(153) |
Sep
(147) |
Oct
(173) |
Nov
(81) |
Dec
(163) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(33) |
Feb
(18) |
Mar
|
Apr
(62) |
May
|
Jun
(100) |
Jul
(38) |
Aug
(58) |
Sep
(1) |
Oct
|
Nov
(25) |
Dec
(172) |
2005 |
Jan
(31) |
Feb
(12) |
Mar
(67) |
Apr
(92) |
May
(247) |
Jun
(34) |
Jul
(36) |
Aug
(192) |
Sep
(15) |
Oct
(42) |
Nov
(92) |
Dec
(4) |
2006 |
Jan
|
Feb
(21) |
Mar
|
Apr
|
May
|
Jun
(53) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(4) |
Apr
(4) |
May
|
Jun
(15) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ast...@us...> - 2006-06-22 22:57:20
|
Revision: 186 Author: astronouth7303 Date: 2006-06-22 15:57:16 -0700 (Thu, 22 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=186&view=rev Log Message: ----------- Sets $ogFooter when installing. Modified Paths: -------------- trunk/src/includes/globals.php Modified: trunk/src/includes/globals.php =================================================================== --- trunk/src/includes/globals.php 2006-06-22 22:52:27 UTC (rev 185) +++ trunk/src/includes/globals.php 2006-06-22 22:57:16 UTC (rev 186) @@ -50,6 +50,11 @@ } else { $ogHeader = "../style/headers.php"; } + if(is_readable("style/footers.php")) { + $ogFooter = "style/footers.php"; + } else { + $ogFooter = "../style/footers.php"; + } } define('osUNIX', 'unix'); @@ -209,4 +214,4 @@ $ogUser->saveData(); session_write_close(); } -?> \ 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...> - 2006-06-22 22:52:34
|
Revision: 185 Author: astronouth7303 Date: 2006-06-22 15:52:27 -0700 (Thu, 22 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=185&view=rev Log Message: ----------- Fixing inheritance. Modified Paths: -------------- trunk/src/includes/MSSQLDataBase.php trunk/src/includes/MySQLDataBase.php trunk/src/includes/ODBCDataBase.php trunk/src/includes/dbase.php Modified: trunk/src/includes/MSSQLDataBase.php =================================================================== --- trunk/src/includes/MSSQLDataBase.php 2006-06-22 22:18:39 UTC (rev 184) +++ trunk/src/includes/MSSQLDataBase.php 2006-06-22 22:52:27 UTC (rev 185) @@ -26,7 +26,7 @@ require_once('dbase.php'); class MSSQLDataBase extends DataBase { - /*private*/ var $type, $connection, $lastquery, $db; + /*private*/ /*var $type, $connection, $lastquery, $db;*/ function MSSQLDataBase() { $args = func_get_args(); @@ -35,9 +35,8 @@ // Wrapper for database selection. function __construct($type = dbMSSQL, $server = false, $username = false, $password = false, $newlink = false, $flags = false) { + parent::__construct(); $this->type = dbMSSQL; - global $sqlTablePrefix; - $this->prefix = $sqlTablePrefix; $this->checkForFunction('mssql_connect'); $this->connection = mssql_connect($server, $username, $password); } Modified: trunk/src/includes/MySQLDataBase.php =================================================================== --- trunk/src/includes/MySQLDataBase.php 2006-06-22 22:18:39 UTC (rev 184) +++ trunk/src/includes/MySQLDataBase.php 2006-06-22 22:52:27 UTC (rev 185) @@ -26,12 +26,16 @@ require_once('dbase.php'); class MySQLDataBase extends DataBase { - /*private*/ var $type, $connection, $lastquery, $db, $prefix; + /*private*/ /*var $type, $connection, $lastquery, $db, $prefix;*/ + function MySQLDataBase() { + $args = func_get_args(); + call_user_func_array(array(&$this, '__construct'), $args); + } + // Wrapper for database selection. - function MySQLDataBase($type = dbMYSQL, $server = false, $username = false, $password = false, $newlink = false, $flags = false) { + function __construct($type = dbMYSQL, $server = false, $username = false, $password = false, $newlink = false, $flags = false) { + parent::__construct($type, $server, $username, $password, $newlink, $flags); $this->type = dbMYSQL; - global $sqlTablePrefix; - $this->prefix = $sqlTablePrefix; $this->checkForFunction('mysql_connect'); if($flags !== false) { $this->connection = mysql_connect($server, $username, $password, $newlink, $flags); Modified: trunk/src/includes/ODBCDataBase.php =================================================================== --- trunk/src/includes/ODBCDataBase.php 2006-06-22 22:18:39 UTC (rev 184) +++ trunk/src/includes/ODBCDataBase.php 2006-06-22 22:52:27 UTC (rev 185) @@ -26,13 +26,16 @@ require_once('dbase.php'); class ODBCDataBase extends DataBase { - /*private*/ var $type, $connection, $lastquery, $db, $prefix; + /*private*/ /*var $type, $connection, $lastquery, $db, $prefix;*/ + function ODBCDataBase() { + $args = func_get_args(); + call_user_func_array(array(&$this, '__construct'), $args); + } + // Wrapper for database selection. - function ODBCDataBase($type = dbMYSQL, $server = '', $username = '', $password = '', $newlink = false, $flags = null) { - $this->type = $type; - global $sqlTablePrefix; - $this->prefix = $sqlTablePrefix; - + function __construct($type = dbODBC, $server = '', $username = '', $password = '', $newlink = false, $flags = null) { + parent::__construct($type, $server, $username, $password, $newlink, $flags); + $this->type = dbODBC; $this->checkForFunction('odbc_connect'); if($newlink !== false) { $this->connection = odbc_connect($server, $username, $password, $newlink); Modified: trunk/src/includes/dbase.php =================================================================== --- trunk/src/includes/dbase.php 2006-06-22 22:18:39 UTC (rev 184) +++ trunk/src/includes/dbase.php 2006-06-22 22:52:27 UTC (rev 185) @@ -51,8 +51,12 @@ */ class DataBase { /*private*/ var $type, $connection, $lastquery, $db, $prefix, $overrides; + function DataBase($type = dbUNKNOWN, $server = '', $username = '', $password = '', $newlink = '', $flags = '') { + $args = func_get_args(); + call_user_func_array(array(&$this, '__construct'), $args); + } // Wrapper for database selection. - function DataBase($type = dbUNKNOWN, $server = '', $username = '', $password = '', $newlink = '', $flags = '') { + function __construct($type = dbUNKNOWN, $server = '', $username = '', $password = '', $newlink = '', $flags = '') { $this->type = $type; global $sqlTablePrefix; $this->prefix = $sqlTablePrefix; @@ -548,7 +552,7 @@ $scol .= $this->quoteField($col->getName()).' '; } $type = $col->getType(); - if (in_array(strtolower($type), $this->overrides)) { + if (array_key_exists(strtolower($type), $this->overrides)) { $type = $this->overrides[strtolower($type)]; } if ($type == 'SET' || $type == 'ENUM') { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-22 22:18:49
|
Revision: 184 Author: astronouth7303 Date: 2006-06-22 15:18:39 -0700 (Thu, 22 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=184&view=rev Log Message: ----------- Fixed some undefined variable warnings. Modified Paths: -------------- trunk/src/config/first.php Modified: trunk/src/config/first.php =================================================================== --- trunk/src/config/first.php 2006-06-22 22:07:08 UTC (rev 183) +++ trunk/src/config/first.php 2006-06-22 22:18:39 UTC (rev 184) @@ -150,7 +150,7 @@ define('OPENFIRST_NO_INSTALLATION', true); // Do form include("../includes/globals.php"); - include($Header); + include($ogHeader); // Detect default options $basepath = substr($_SERVER["SCRIPT_NAME"], 0, -17); @@ -348,10 +348,6 @@ <div class="center big"><button class="center big" type="submit">Set up openFIRST!</button></div> </form> <?php - } - if(is_readable("style/footers.php")) { - include_once("style/footers.php"); - } else { - include_once("../style/footers.php"); - } +} +include_once($ogFooter); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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-22 17:01:46
|
Revision: 182 Author: astronouth7303 Date: 2006-06-22 10:01:36 -0700 (Thu, 22 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=182&view=rev Log Message: ----------- Fixed versions to be "Devel" instead of "CVS". Modified Paths: -------------- trunk/src/awards/openfirst.info.xml trunk/src/config/openfirst.info.xml trunk/src/news/openfirst.info.xml Modified: trunk/src/awards/openfirst.info.xml =================================================================== --- trunk/src/awards/openfirst.info.xml 2006-06-22 16:33:11 UTC (rev 181) +++ trunk/src/awards/openfirst.info.xml 2006-06-22 17:01:36 UTC (rev 182) @@ -3,7 +3,7 @@ <!-- Info --> <!-- This is not used, except as meta data --> <name>Awards</name> - <version>CVS</version> + <version>Devel</version> <author>David Di Biase</author> <maintainer>Jamie Bliss</maintainer> @@ -170,4 +170,4 @@ </rows> </table> </db> -</module> \ No newline at end of file +</module> Modified: trunk/src/config/openfirst.info.xml =================================================================== --- trunk/src/config/openfirst.info.xml 2006-06-22 16:33:11 UTC (rev 181) +++ trunk/src/config/openfirst.info.xml 2006-06-22 17:01:36 UTC (rev 182) @@ -3,7 +3,7 @@ <!-- NOTE: This file defines the basic DB layout when installing or upgrading. openfirst.base is a psuedo-module for the oF core. --> <name>openFIRST portal system</name> - <version>CVS</version> + <version>Devel</version> <author>The openFIRST Team</author> <includes> Modified: trunk/src/news/openfirst.info.xml =================================================================== --- trunk/src/news/openfirst.info.xml 2006-06-22 16:33:11 UTC (rev 181) +++ trunk/src/news/openfirst.info.xml 2006-06-22 17:01:36 UTC (rev 182) @@ -3,7 +3,7 @@ <!-- Info --> <!-- This is not used, except as meta data --> <name>News</name> - <version>CVS</version> + <version>Devel</version> <author>Tim Ginn</author> <maintainer>Jamie Bliss</maintainer> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-22 16:33:16
|
Revision: 181 Author: astronouth7303 Date: 2006-06-22 09:33:11 -0700 (Thu, 22 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=181&view=rev Log Message: ----------- - more calls to htmlentities() - XHTML-style tags - added <thead> and <tbody> to the table. Modified Paths: -------------- trunk/src/config/modules.php Modified: trunk/src/config/modules.php =================================================================== --- trunk/src/config/modules.php 2006-06-22 02:27:31 UTC (rev 180) +++ trunk/src/config/modules.php 2006-06-22 16:33:11 UTC (rev 181) @@ -73,35 +73,40 @@ if (count($mods) == 0) { echo "<p class='error'>Please install modules before administrating them! [ <a href='install.php'>Install Component</a> ]</p>"; - include($footer); + include($ogFooter); die; } ?> <form method="post" action="modules.php"> <table> - <tr> - <th>Module Name</th> - <th>Activate</th> - <th>Show Menu</th> - </tr> + <thead> + <tr> + <th>Module Name</th> + <th>Activate</th> + <th>Show Menu</th> + </tr> + </thead> + <tbody> <?php foreach($mods as $dir) { $mod = $ogModuleManager->getModuleFromDir($dir); $show = $mod->getShowOnMenu(); $act = $mod->getActive(); + $edir = htmlentities($mod->getDir()); ?> - <tr> - <td><input name="<?php echo $mod->getDir(); ?>-modulename" type="text" id="modulename" value="<?php echo $mod->getName(); ?>"></td> - <td bgcolor='<?php if ($act ) { echo "lime"; } else { echo "red"; } ?>'><input name="<?php echo $mod->getDir(); ?>-active" type="checkbox" id="<?php echo $mod->getDir(); ?>-active" value="checkbox" <?php if ($act) { echo "checked='checked'"; } ?>></td> - <td bgcolor='<?php if ($show) { echo "lime"; } else { echo "red"; } ?>'><input name="<?php echo $mod->getDir(); ?>-showonmenu" type="checkbox" id="<?php echo $mod->getDir(); ?>-showonmenu" value="checkbox" <?php if ($show) { echo "checked='checked'"; } ?>></td> - </tr> + <tr> + <td><input name="<?php echo $edir; ?>-modulename" type="text" id="modulename" value="<?php echo htmlentities($mod->getName()); ?>" /></td> + <td bgcolor='<?php if ($act ) { echo "lime"; } else { echo "red"; } ?>'><input name="<?php echo $edir; ?>-active" type="checkbox" id="<?php echo $edir; ?>-active" value="checkbox" <?php if ($act) { echo "checked='checked'"; } ?> /></td> + <td bgcolor='<?php if ($show) { echo "lime"; } else { echo "red"; } ?>'><input name="<?php echo $edir; ?>-showonmenu" type="checkbox" id="<?php echo $edir; ?>-showonmenu" value="checkbox" <?php if ($show) { echo "checked='checked'"; } ?> /></td> + </tr> <?php } ?> + </tbody> </table> - <br> + <br /> <input type="submit" name="update" value="Update Values" /> </form> <?php - include($ogFooter); ?> \ No newline at end of file + include($ogFooter); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-22 02:29:07
|
Revision: 180 Author: astronouth7303 Date: 2006-06-21 19:27:31 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=180&view=rev Log Message: ----------- Fixed some bugtraq problems. Property Changed: ---------------- / branches/ tags/ tags/openfirst.awards-2.0a1/ tags/openfirst.awards-2.0a1/awards/ tags/openfirst.awards-2.0a1/awards/admin/ tags/openfirst.awards-2.0a2/ tags/openfirst.awards-2.0a2/awards/ tags/openfirst.awards-2.0a2/awards/admin/ tags/openfirst.base-2.0a1/ tags/openfirst.base-2.0a1/config/ tags/openfirst.base-2.0a1/includes/ tags/openfirst.base-2.0a1/includes/functions/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/css/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/dialog/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/js/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/uti/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/js/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/ tags/openfirst.base-2.0a1/style/ tags/openfirst.base-2.0a1/style/images/ tags/openfirst.base-2.0a2/ tags/openfirst.base-2.0a2/config/ tags/openfirst.base-2.0a2/includes/ tags/openfirst.base-2.0a2/includes/functions/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/css/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/dialog/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/js/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/uti/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/js/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/ tags/openfirst.base-2.0a2/style/ tags/openfirst.base-2.0a2/style/images/ tags/openfirst.modules-2.0a1/ tags/openfirst.modules-2.0a1/awards/ tags/openfirst.modules-2.0a1/awards/admin/ tags/openfirst.modules-2.0a2/ tags/openfirst.modules-2.0a2/modules/ trunk/ trunk/src/ 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/ trunk/www/ trunk/www/bugzilla/ trunk/www/bugzilla/account/ trunk/www/bugzilla/account/auth/ trunk/www/bugzilla/account/email/ trunk/www/bugzilla/account/password/ trunk/www/bugzilla/account/prefs/ trunk/www/bugzilla/admin/ trunk/www/bugzilla/admin/attachstatus/ trunk/www/bugzilla/admin/flag-type/ trunk/www/bugzilla/admin/groups/ trunk/www/bugzilla/admin/keywords/ trunk/www/bugzilla/admin/products/ trunk/www/bugzilla/admin/products/groupcontrol/ trunk/www/bugzilla/attachment/ trunk/www/bugzilla/bug/ trunk/www/bugzilla/bug/activity/ trunk/www/bugzilla/bug/create/ trunk/www/bugzilla/bug/process/ trunk/www/bugzilla/bug/votes/ trunk/www/bugzilla/flag/ trunk/www/bugzilla/global/ trunk/www/bugzilla/list/ trunk/www/bugzilla/pages/ trunk/www/bugzilla/reports/ trunk/www/bugzilla/request/ trunk/www/bugzilla/search/ trunk/www/www/ trunk/www/www/htdocs/ trunk/www/www/htdocs/config/ trunk/www/www/htdocs/doc/ trunk/www/www/htdocs/doc/smartcvs/ trunk/www/www/htdocs/doc/smartcvs3/ trunk/www/www/htdocs/doc/tut/ trunk/www/www/htdocs/doc/tut/howto/ trunk/www/www/htdocs/error/ trunk/www/www/htdocs/image/ trunk/www/www/htdocs/image/developers/ trunk/www/www/htdocs/image/hackergotchi/ trunk/www/www/htdocs/image/icon/ trunk/www/www/htdocs/image/icon/emote/ trunk/www/www/htdocs/image/icon/flag/ trunk/www/www/htdocs/image/night-before/ trunk/www/www/htdocs/image/powered/ trunk/www/www/htdocs/image/poweredby/ trunk/www/www/htdocs/image/screens/ trunk/www/www/htdocs/image/tested/ trunk/www/www/htdocs/image/userbar/ trunk/www/www/htdocs/installer/ trunk/www/www/htdocs/media-centre/ trunk/www/www/htdocs/modules/ trunk/www/www/htdocs/night-before/ trunk/www/www/htdocs/nightly/ trunk/www/www/htdocs/nightly/pkg/ trunk/www/www/htdocs/volunteers/ trunk/www/www/inc/ trunk/www/www/pkg/ trunk/www/www/tmp/ Property changes on: ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))+ + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: branches ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.awards-2.0a1 ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.awards-2.0a1/awards ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.awards-2.0a1/awards/admin ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.awards-2.0a2 ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.awards-2.0a2/awards ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.awards-2.0a2/awards/admin ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1 ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/config ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/css ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/dialog ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/js ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/uti ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/js ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/style ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a1/style/images ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2 ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/config ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/css ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/dialog ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/js ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/uti ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/js ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/style ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.base-2.0a2/style/images ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.modules-2.0a1 ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.modules-2.0a1/awards ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.modules-2.0a1/awards/admin ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.modules-2.0a2 ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: tags/openfirst.modules-2.0a2/modules ___________________________________________________________________ Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/awards ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/awards/admin ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/config ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/css ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/dialog ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko/dev ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko/gfx ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko/js ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/gecko/uti ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/images ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/js ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/modules ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/includes/functions/wysiwyg/modules/imagemap ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/modules ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/news ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/news/admin ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/news/images ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/news/rss ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/style ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/src/style/images ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/account ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/account/auth ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/account/email ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/account/password ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/account/prefs ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/admin ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/admin/attachstatus ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/admin/flag-type ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/admin/groups ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/admin/keywords ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/admin/products ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/admin/products/groupcontrol ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/attachment ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/bug ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/bug/activity ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/bug/create ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/bug/process ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/bug/votes ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/flag ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/global ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/list ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/pages ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/reports ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/request ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/bugzilla/search ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/config ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/doc ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/doc/smartcvs ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/doc/smartcvs3 ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/doc/tut ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/doc/tut/howto ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/error ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/image ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/image/developers ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/image/hackergotchi ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/image/icon ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/image/icon/emote ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/image/icon/flag ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/image/night-before ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/image/powered ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/image/poweredby ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/image/screens ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/image/tested ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/image/userbar ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/installer ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/media-centre ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/modules ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/night-before ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/nightly ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/nightly/pkg ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/htdocs/volunteers ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/inc ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/pkg ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) Property changes on: trunk/www/www/tmp ___________________________________________________________________ Name: bugtraq:logregex - [Bb][Uu][Gg] #(\d+) + [Bb][Uu][Gg] #(\d+)(,? ?#'(\d+))* (\d+) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-22 02:17:22
|
Revision: 179 Author: astronouth7303 Date: 2006-06-21 19:17:18 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=179&view=rev Log Message: ----------- Double check that connection is good. Fixes bug #162. Modified Paths: -------------- trunk/src/config/first.php Modified: trunk/src/config/first.php =================================================================== --- trunk/src/config/first.php 2006-06-21 23:08:28 UTC (rev 178) +++ trunk/src/config/first.php 2006-06-22 02:17:18 UTC (rev 179) @@ -110,7 +110,9 @@ include_once($ogHeader); // This a series of statements, each of which are executed. If an error condition occurs, that // branch is ran. - if (!$ogDB->createDB($ogSQLDatabase, $ogSQLTablePrefix)) { + if (!$ogDB->check()) { + echo '<p class="error">DB error: was unable to connect to the server.</p>'; + } else if (!$ogDB->createDB($ogSQLDatabase, $ogSQLTablePrefix)) { // Do this as an optional root user? echo '<p class="error">DB creation error: '.htmlentities($ogDB->errorString()).'</p>'; } else if (($err = $base->install()) !== true) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <xt...@us...> - 2006-06-21 23:08:31
|
Revision: 178 Author: xtimg Date: 2006-06-21 16:08:28 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=178&view=rev Log Message: ----------- Add a basic index file explaining what will go here (this is partly to test if automatic Subversion updating on playground.* is working properly) Added Paths: ----------- trunk/www/playground/index.html Added: trunk/www/playground/index.html =================================================================== --- trunk/www/playground/index.html (rev 0) +++ trunk/www/playground/index.html 2006-06-21 23:08:28 UTC (rev 178) @@ -0,0 +1,12 @@ +<html> + <head> + <title>openFIRST Playground</title> + </head> + <body> + <h1>openFIRST Playground</h1> + <img src="/img/playground.jpg" alt="Playground"> + <p>This is the future location of the openFIRST Playground server. For +more information see <a href="http://bugzilla.openfirst.org/show_bug.cgi?id=268">Bug +#268</a>.</p> + </body> +</html> Property changes on: trunk/www/playground/index.html ___________________________________________________________________ Name: svn:mime-type + text/html Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <xt...@us...> - 2006-06-21 23:02:23
|
Revision: 177 Author: xtimg Date: 2006-06-21 16:02:14 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=177&view=rev Log Message: ----------- Update playground image (I uploaded the wrong one last time... it was too big) Modified Paths: -------------- trunk/www/playground/img/playground.jpg Modified: trunk/www/playground/img/playground.jpg =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <xt...@us...> - 2006-06-21 22:51:30
|
Revision: 176 Author: xtimg Date: 2006-06-21 15:51:25 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=176&view=rev Log Message: ----------- Add an image for playground (the oF equivalent of Mozilla's landfill.mozilla.org) Added Paths: ----------- trunk/www/playground/ trunk/www/playground/img/ trunk/www/playground/img/playground.jpg Added: trunk/www/playground/img/playground.jpg =================================================================== (Binary files differ) Property changes on: trunk/www/playground/img/playground.jpg ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-21 22:43:16
|
Revision: 175 Author: astronouth7303 Date: 2006-06-21 15:43:09 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=175&view=rev Log Message: ----------- Changed devel version string from "CVS" to "Devel" Modified Paths: -------------- trunk/src/includes/BaseModule.php trunk/src/includes/functions.php Modified: trunk/src/includes/BaseModule.php =================================================================== --- trunk/src/includes/BaseModule.php 2006-06-21 22:16:55 UTC (rev 174) +++ trunk/src/includes/BaseModule.php 2006-06-21 22:43:09 UTC (rev 175) @@ -32,7 +32,7 @@ $this->mName = 'openFIRST'; $this->mID = 'openfirst.base'; $this->mDir = 'config'; - $this->mVersion = 'CVS'; + $this->mVersion = 'DEVEL'; $this->mDate = time(); // Definitive date please? $this->mAuthor = 'The openFIRST Team'; $this->mMaintainer = 'The openFIRST Team'; @@ -52,4 +52,4 @@ return new BaseModule($Dir); } } -?> \ No newline at end of file +?> Modified: trunk/src/includes/functions.php =================================================================== --- trunk/src/includes/functions.php 2006-06-21 22:16:55 UTC (rev 174) +++ trunk/src/includes/functions.php 2006-06-21 22:43:09 UTC (rev 175) @@ -192,9 +192,9 @@ /** Compares 2 module versions * - * The versions strings are either PHP-formatted versions, or "CVS" (case + * The versions strings are either PHP-formatted versions, or "Devel" (case * sensitive) to mean development (use dates instead). (See version_compare() - * <http://us3.php.net/manual/en/function.version-compare.php> for the details + * <http://www.php.net/manual/en/function.version-compare.php> for the details * as to how to format versions.) * * It is always assumed that dev is newer if compared to a version. @@ -202,10 +202,11 @@ * @param string $left The left-hand version * @param string $right The right-hand version * @return mixed -1 if the left is older, 1 if the right is older, 0 if they - * are equal, and false if dates should be used (ie, they're both CVS). + * are equal, and false if dates should be used (ie, they're both + * development versions). */ function ofCompareVersions($left, $right) { - if ($left == 'CVS' && $right == 'CVS') { + if ($left == 'Devel' && $right == 'Devel') { return false; } version_compare($left, $right); @@ -248,4 +249,4 @@ } } } -?> \ 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...> - 2006-06-21 22:16:59
|
Revision: 174 Author: astronouth7303 Date: 2006-06-21 15:16:55 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=174&view=rev Log Message: ----------- Implemented check() Modified Paths: -------------- trunk/src/includes/MSSQLDataBase.php trunk/src/includes/MySQLDataBase.php trunk/src/includes/ODBCDataBase.php Modified: trunk/src/includes/MSSQLDataBase.php =================================================================== --- trunk/src/includes/MSSQLDataBase.php 2006-06-21 21:45:45 UTC (rev 173) +++ trunk/src/includes/MSSQLDataBase.php 2006-06-21 22:16:55 UTC (rev 174) @@ -27,8 +27,14 @@ class MSSQLDataBase extends DataBase { /*private*/ var $type, $connection, $lastquery, $db; + + function MSSQLDataBase() { + $args = func_get_args(); + call_user_func_array(array(&$this, '__construct'), $args); + } + // Wrapper for database selection. - function MSSQLDataBase($type = dbMSSQL, $server = false, $username = false, $password = false, $newlink = false, $flags = false) { + function __construct($type = dbMSSQL, $server = false, $username = false, $password = false, $newlink = false, $flags = false) { $this->type = dbMSSQL; global $sqlTablePrefix; $this->prefix = $sqlTablePrefix; @@ -106,6 +112,10 @@ } } + function check() { + return $this->connection !== false; + } + function fetchObject($resource, $rownumber = false) { $this->checkForFunction('mssql_fetch_object'); return mssql_fetch_object($resource); @@ -150,7 +160,7 @@ # Check if there the connection is valid function check() { - #TODO: Write me! + return $this->connection !== false && is_resource($this->connection); } function escape($text) { Modified: trunk/src/includes/MySQLDataBase.php =================================================================== --- trunk/src/includes/MySQLDataBase.php 2006-06-21 21:45:45 UTC (rev 173) +++ trunk/src/includes/MySQLDataBase.php 2006-06-21 22:16:55 UTC (rev 174) @@ -123,11 +123,11 @@ # Check if there the connection is valid function check() { - #TODO: Write me! + return $this->connection !== false && is_resource($this->connection) && @mysql_ping($this->connection); } function escape($text) { - return mysql_real_escape_string($text); + return mysql_real_escape_string($text, $this->connection); } /** SQL escaping and quoting. Modified: trunk/src/includes/ODBCDataBase.php =================================================================== --- trunk/src/includes/ODBCDataBase.php 2006-06-21 21:45:45 UTC (rev 173) +++ trunk/src/includes/ODBCDataBase.php 2006-06-21 22:16:55 UTC (rev 174) @@ -109,7 +109,7 @@ # Check if there the connection is valid function check() { - #TODO: Write me! + return $this->connection != false && is_resource($this->connection); } function quoteName($name, $delimiter = ',') { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-21 21:45:51
|
Revision: 173 Author: astronouth7303 Date: 2006-06-21 14:45:45 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=173&view=rev Log Message: ----------- Adding more needed info and some hacks around SVN. Modified Paths: -------------- trunk/src/includes/functions/debug.php Property Changed: ---------------- trunk/src/includes/functions/debug.php Modified: trunk/src/includes/functions/debug.php =================================================================== --- trunk/src/includes/functions/debug.php 2006-06-21 21:38:47 UTC (rev 172) +++ trunk/src/includes/functions/debug.php 2006-06-21 21:45:45 UTC (rev 173) @@ -55,12 +55,15 @@ if ($usingPHP5 && $errno == 2048) return; // Don't handle E_STRICT - $svn = trim(<<<ENDOFVERSION -$Id$ + $svn = explode(' +', trim(<<<ENDOFVERSION +\$Id$ +\$URL$ ENDOFVERSION -); +)); $details = "MD5: $checksum - SVN: $svn + SVN-Id: {$svn[0]} + SVN-URL: {$svn[1]} Database Type: $ogDataBaseType Operating System: $osType SQL Server: $ogSQLServer Property changes on: trunk/src/includes/functions/debug.php ___________________________________________________________________ Name: svn:keywords - Id + Id URL This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-21 21:38:51
|
Revision: 172 Author: astronouth7303 Date: 2006-06-21 14:38:47 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=172&view=rev Log Message: ----------- Adding an "SVN" header so that we can properly track which file we're talking about. Modified Paths: -------------- trunk/src/includes/functions/debug.php Property Changed: ---------------- trunk/src/includes/functions/debug.php Modified: trunk/src/includes/functions/debug.php =================================================================== --- trunk/src/includes/functions/debug.php 2006-06-21 19:16:53 UTC (rev 171) +++ trunk/src/includes/functions/debug.php 2006-06-21 21:38:47 UTC (rev 172) @@ -55,8 +55,12 @@ if ($usingPHP5 && $errno == 2048) return; // Don't handle E_STRICT - + $svn = trim(<<<ENDOFVERSION +$Id$ +ENDOFVERSION +); $details = "MD5: $checksum + SVN: $svn Database Type: $ogDataBaseType Operating System: $osType SQL Server: $ogSQLServer @@ -133,4 +137,4 @@ } } } -?> \ No newline at end of file +?> Property changes on: trunk/src/includes/functions/debug.php ___________________________________________________________________ Name: svn:keywords + Id This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-21 19:16:57
|
Revision: 171 Author: astronouth7303 Date: 2006-06-21 12:16:53 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=171&view=rev Log Message: ----------- Work on bug #266. DataBase::replace() now defaults to a set of DELETE/INSERT statements instead of the REPLACE. Needs testing. Modified Paths: -------------- trunk/src/includes/MSSQLDataBase.php trunk/src/includes/ODBCDataBase.php trunk/src/includes/dbase.php Modified: trunk/src/includes/MSSQLDataBase.php =================================================================== --- trunk/src/includes/MSSQLDataBase.php 2006-06-21 18:26:09 UTC (rev 170) +++ trunk/src/includes/MSSQLDataBase.php 2006-06-21 19:16:53 UTC (rev 171) @@ -165,7 +165,6 @@ */ #Used for quoting field and DB names - # FIXME: I don't think MSSQL takes ` as a quote. function quoteName($name, $delimiter = ',') { if (is_array($name)) { $value = ''; @@ -175,7 +174,7 @@ $value = substr($value, 0, -strlen($delimiter)); return $value; } else { - return '`'.$this->escape($name).'`'; + return '['.$this->escape($name).']'; } } @@ -283,19 +282,5 @@ } return $this->query( $sql ); } - - /** REPLACE query wrapper. - * Copied from MediaWiki (but removed the fancy stuff). - * - * @param string $table The table to perform it on. - * @param array $unique An array of unique values that distinquish a row. - * @param array $values An array of values to use in a SET clause. - * - * @todo Insert REPLACE substitute. - */ - function replace( $table, $unique, $values ) { - $sql = "REPLACE INTO ".$this->quoteTable($table)." SET ".$this->quoteFDPairs($values); - return $this->query( $sql ); - } } ?> Modified: trunk/src/includes/ODBCDataBase.php =================================================================== --- trunk/src/includes/ODBCDataBase.php 2006-06-21 18:26:09 UTC (rev 170) +++ trunk/src/includes/ODBCDataBase.php 2006-06-21 19:16:53 UTC (rev 171) @@ -112,8 +112,7 @@ #TODO: Write me! } - #Does ODBC support backticks???? -/* function quoteName($name, $delimiter = ',') { + function quoteName($name, $delimiter = ',') { if (is_array($name)) { $value = ''; foreach ($name as $text) { @@ -122,14 +121,8 @@ $value = substr($value, 0, -strlen($delimiter)); return $value; } else { - return '`'.$this->escape($name).'`'; + return '"'.$this->escape($name).'"'; } - }*/ - - # Does ODBC support REPLACE???? -/* function replace( $table, $unique, $values ) { - $sql = "REPLACE INTO ".$this->quoteTable($table)." SET ".$this->quoteFDPairs($values); - return $this->query( $sql ); - }*/ + } } ?> Modified: trunk/src/includes/dbase.php =================================================================== --- trunk/src/includes/dbase.php 2006-06-21 18:26:09 UTC (rev 170) +++ trunk/src/includes/dbase.php 2006-06-21 19:16:53 UTC (rev 171) @@ -344,15 +344,20 @@ /** REPLACE query wrapper. * Copied from MediaWiki (but removed the fancy stuff). * - * Should this be changed to an alternate form by default? + * @note When implementing a subclass, this should be replaced if a single + * statement exists for the engine in question. (eg, MySQL uses a single + * "REPLACE INTO" statement.) * * @param string $table The table to perform it on. * @param array $unique An array of unique values that distinquish a row. - * @param array $values An array of values to use in a SET clause. + * @param array $values An array of values to use, as if they had been passed to insert(). */ function replace( $table, $unique, $values ) { - $sql = "REPLACE INTO ".$this->quoteTable($table)." SET ".$this->quoteFDPairs($values+$unique); - return $this->query( $sql ); + $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 ); } /** INSERT query wrapper. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-21 18:26:15
|
Revision: 170 Author: astronouth7303 Date: 2006-06-21 11:26:09 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=170&view=rev Log Message: ----------- Tweaking slug appearance. Modified Paths: -------------- trunk/src/includes/skinfunctions.php trunk/src/style/slugs.css trunk/src/style/slugs.js Modified: trunk/src/includes/skinfunctions.php =================================================================== --- trunk/src/includes/skinfunctions.php 2006-06-21 15:49:15 UTC (rev 169) +++ trunk/src/includes/skinfunctions.php 2006-06-21 18:26:09 UTC (rev 170) @@ -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 "<div class=\"slug\"><img src=\"{$eimage}\" alt=\"(SLUG)\" title=\"Show slug\" /><span>{$eslug}</span></div>"; + echo "<span class=\"slug\"><img src=\"{$eimage}\" alt=\"(SLUG)\" title=\"Show slug\" /><span>{$eslug}</span></span>"; } /** Prints out the URI for a slug. @@ -66,4 +66,4 @@ # } -?> \ No newline at end of file +?> Modified: trunk/src/style/slugs.css =================================================================== --- trunk/src/style/slugs.css 2006-06-21 15:49:15 UTC (rev 169) +++ trunk/src/style/slugs.css 2006-06-21 18:26:09 UTC (rev 170) @@ -1,9 +1,11 @@ .slug { + border: thin solid red; /* debug */ +/* display:block;*/ +/* float: left;*/ margin: .2em; - float: left; - /* Set font size, etc. to normal */ -/* border: solid red; - padding: .1em;*/ + overflow: visible; + width: 18px; /* Change with image */ + height: 15px; /* Change with image */ } .slug > * { vertical-align: middle; @@ -13,13 +15,23 @@ border: none; } .slug > span { - display: none; - border: thin solid silver; - height: 15px; /* Change with image */ - line-height: 15px; - margin-left: 2px; - padding: 0 2px; +/* visibility: hidden;*/ + border: thin solid silver; + background: white; + height: 15px; /* Change with image */ + 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 */ } + +/*.slug.expand > span { + display: inline; +}*/ + /*.slug > img:active + span, .slug > img:focus + span, .slug:focus > span, Modified: trunk/src/style/slugs.js =================================================================== --- trunk/src/style/slugs.js 2006-06-21 15:49:15 UTC (rev 169) +++ trunk/src/style/slugs.js 2006-06-21 18:26:09 UTC (rev 170) @@ -1,17 +1,21 @@ +// vim:syn=php +// <?php + // Pass this the DOM event function handleSlugClick(evt) { - var obj = evt.target; - if (obj.parentNode.className != 'slug') return; - var target = obj.nextSibling; - if (target.style.display == "none") { - target.style.display = "inline"; - } else if (target.style.display == "inline") { - target.style.display = "none"; - } else { - target.style.display = "inline"; - } + 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"; + } else { + target.style.visibility = disp; + target.title = "Hide slug"; + } } document.documentElement.addEventListener('click', handleSlugClick, true); -// TODO: Add support for non-JS browsers \ No newline at end of file +// TODO: Add support for non-JS browsers This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-21 15:49:24
|
Revision: 169 Author: astronouth7303 Date: 2006-06-21 08:49:15 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=169&view=rev Log Message: ----------- XML is LF (read the spec) Property Changed: ---------------- trunk/src/awards/openfirst.info.xml trunk/src/config/openfirst.info.xml trunk/src/modules/openfirst.info.xml trunk/src/news/openfirst.info.xml Property changes on: trunk/src/awards/openfirst.info.xml ___________________________________________________________________ Name: svn:eol-style - native + LF Property changes on: trunk/src/config/openfirst.info.xml ___________________________________________________________________ Name: svn:eol-style - native + LF Property changes on: trunk/src/modules/openfirst.info.xml ___________________________________________________________________ Name: svn:eol-style - native + LF Property changes on: trunk/src/news/openfirst.info.xml ___________________________________________________________________ Name: svn:eol-style - native + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-21 15:42:52
|
Revision: 168 Author: astronouth7303 Date: 2006-06-21 08:39:54 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=168&view=rev Log Message: ----------- "Tagging" 2.0a2 Added Paths: ----------- tags/openfirst.awards-2.0a2/ tags/openfirst.awards-2.0a2/awards/ tags/openfirst.awards-2.0a2/awards/NOTES tags/openfirst.awards-2.0a2/awards/admin/ tags/openfirst.awards-2.0a2/awards/admin/index.php tags/openfirst.awards-2.0a2/awards/awards.php tags/openfirst.awards-2.0a2/awards/awardsbronze.png tags/openfirst.awards-2.0a2/awards/awardsfirst.gif tags/openfirst.awards-2.0a2/awards/awardsgold.png tags/openfirst.awards-2.0a2/awards/awardssilver.png tags/openfirst.awards-2.0a2/awards/index.php tags/openfirst.awards-2.0a2/awards/openfirst.info.xml tags/openfirst.base-2.0a2/ tags/openfirst.base-2.0a2/COPYING tags/openfirst.base-2.0a2/README tags/openfirst.base-2.0a2/config/ tags/openfirst.base-2.0a2/config/NOTES tags/openfirst.base-2.0a2/config/first.php tags/openfirst.base-2.0a2/config/index.php tags/openfirst.base-2.0a2/config/install.php tags/openfirst.base-2.0a2/config/modules.php tags/openfirst.base-2.0a2/config/openfirst.info.xml tags/openfirst.base-2.0a2/config/version.php tags/openfirst.base-2.0a2/includes/ tags/openfirst.base-2.0a2/includes/BaseModule.php tags/openfirst.base-2.0a2/includes/MSSQLDataBase.php tags/openfirst.base-2.0a2/includes/Module.php tags/openfirst.base-2.0a2/includes/MySQLDataBase.php tags/openfirst.base-2.0a2/includes/ODBCDataBase.php tags/openfirst.base-2.0a2/includes/Skin.php tags/openfirst.base-2.0a2/includes/User.php tags/openfirst.base-2.0a2/includes/auth.php tags/openfirst.base-2.0a2/includes/compatibility.php tags/openfirst.base-2.0a2/includes/dbase.php tags/openfirst.base-2.0a2/includes/edit.php tags/openfirst.base-2.0a2/includes/functions/ tags/openfirst.base-2.0a2/includes/functions/browserid.php tags/openfirst.base-2.0a2/includes/functions/debug.php tags/openfirst.base-2.0a2/includes/functions/forms.php tags/openfirst.base-2.0a2/includes/functions/mail.php tags/openfirst.base-2.0a2/includes/functions/wysiwyg/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/DHTMLEditor Info.txt tags/openfirst.base-2.0a2/includes/functions/wysiwyg/css/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/css/toolbars.css tags/openfirst.base-2.0a2/includes/functions/wysiwyg/dialog/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/dialog/instable.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/dialog/selcolor.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/dialog/setlink.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien/persistent-style.css tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/backcolor.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/bold.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/colors.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/copy.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/cut.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/forecolor.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/indent.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/italic.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifycenter.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifyleft.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifyright.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/link.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/orderedlist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/outdent.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/paste.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/redo.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/table.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/underline.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/undo.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/unorderedlist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Demo.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Midas Specification.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/dev/Text Color.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/backcolor.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/bold.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/colors.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/copy.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/cut.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/forecolor.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/indent.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/italic.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/justifycenter.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/justifyleft.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/justifyright.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/link.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/orderedlist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/outdent.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/paste.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/redo.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/source.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/table.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/underline.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/undo.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/gfx/unorderedlist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/js/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/js/lib.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/uti/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/gecko/uti/colors.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/absmode.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/abspos.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/additem.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/bgcolor.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/bold.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/borders.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/break.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/bullist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/center.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/copy.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/cut.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/deindent.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/delcell.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/delcol.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/delete.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/delrow.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/details.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/dms.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/email.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/end.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/fgcolor.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/find.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/fullscrn.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/help.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/image.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/immap.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/inindent.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/inscell.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/inscol.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/insrow.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/instable.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/italic.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/left.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/link.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/linkadv.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/lock.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/mrgcell.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/newdoc.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/newproj.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/numlist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/open.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/paste.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/print.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/project.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/props.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/reddot.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/redo.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/right.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/save.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/saveall.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/saveas.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/snapgrid.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/source.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/spltcell.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/start.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/target.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/tasklist.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/tblprop.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/under.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/undo.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/zb_b.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/zb_o.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/zb_y.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/zf_b.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/zf_o.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/images/zf_y.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/js/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/js/dhtmled.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/js/lib.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/js/lib2.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/js/lib_ms.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/behavior_css.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/behavior_menu_invisible.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/behavior_remove_phptags.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/behavior_remove_xmltags.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_about.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_hr.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_hr.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_html.htm tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_html.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_image.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_imagemap.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_log.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_table_properties.html tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_table_properties.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/button_table_properties_gecko.html tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/grid_small.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/ tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/arr.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/genMove.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/index.php tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/msmove.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/imagemap/trans.gif tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/listbox_paragraph.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/listbox_styleclass.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/listbox_template.js tags/openfirst.base-2.0a2/includes/functions/wysiwyg/modules/listbox_template_example.html tags/openfirst.base-2.0a2/includes/functions/wysiwyg.php tags/openfirst.base-2.0a2/includes/functions.php tags/openfirst.base-2.0a2/includes/globals.php tags/openfirst.base-2.0a2/includes/settings.php tags/openfirst.base-2.0a2/includes/sitesettings.tpl tags/openfirst.base-2.0a2/includes/slug.php tags/openfirst.base-2.0a2/includes/xmlModule.php tags/openfirst.base-2.0a2/index.php tags/openfirst.base-2.0a2/style/ tags/openfirst.base-2.0a2/style/Default.php tags/openfirst.base-2.0a2/style/footers.php tags/openfirst.base-2.0a2/style/headers.php tags/openfirst.base-2.0a2/style/images/ tags/openfirst.base-2.0a2/style/images/back-admin.png tags/openfirst.base-2.0a2/style/images/back-light.gif tags/openfirst.base-2.0a2/style/images/back-lighter.gif tags/openfirst.base-2.0a2/style/images/back.gif tags/openfirst.base-2.0a2/style/images/developers-small.gif tags/openfirst.base-2.0a2/style/images/help.gif tags/openfirst.base-2.0a2/style/images/large.gif tags/openfirst.base-2.0a2/style/images/mmc.gif tags/openfirst.base-2.0a2/style/images/oflogo.gif tags/openfirst.base-2.0a2/style/images/openfirst-small.png tags/openfirst.base-2.0a2/style/images/openfirst.png tags/openfirst.base-2.0a2/style/images/poweredby-small.png tags/openfirst.base-2.0a2/style/images/poweredby.png tags/openfirst.base-2.0a2/style/images/small-warning-green.gif tags/openfirst.base-2.0a2/style/images/small-warning.gif tags/openfirst.base-2.0a2/style/images/verytinyfirst.gif tags/openfirst.base-2.0a2/style/images/w3c401.png tags/openfirst.base-2.0a2/style/images/warning.gif tags/openfirst.base-2.0a2/style/images/web.gif tags/openfirst.base-2.0a2/style/style.css tags/openfirst.modules-2.0a2/ tags/openfirst.modules-2.0a2/modules/ tags/openfirst.modules-2.0a2/modules/export.php tags/openfirst.modules-2.0a2/modules/extended.php tags/openfirst.modules-2.0a2/modules/index.php tags/openfirst.modules-2.0a2/modules/info.php tags/openfirst.modules-2.0a2/modules/openfirst.info.xml Property changes on: tags/openfirst.awards-2.0a2/awards ___________________________________________________________________ Name: of:module + openfirst.awards Added: tags/openfirst.awards-2.0a2/awards/NOTES =================================================================== --- tags/openfirst.awards-2.0a2/awards/NOTES (rev 0) +++ tags/openfirst.awards-2.0a2/awards/NOTES 2006-06-21 15:39:54 UTC (rev 168) @@ -0,0 +1,11 @@ +openFIRST.awards + +--- + +** December 25, 2003 Release ** + +David Di Biase - Module approved. + +Tim Ginn - Module approved. + +Greg Inozemtsev - Module approved. Property changes on: tags/openfirst.awards-2.0a2/awards/NOTES ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/plain Name: svn:eol-style + native Property changes on: tags/openfirst.awards-2.0a2/awards/admin ___________________________________________________________________ Name: of:module + openfirst.awards Added: tags/openfirst.awards-2.0a2/awards/admin/index.php =================================================================== --- tags/openfirst.awards-2.0a2/awards/admin/index.php (rev 0) +++ tags/openfirst.awards-2.0a2/awards/admin/index.php 2006-06-21 15:39:54 UTC (rev 168) @@ -0,0 +1,293 @@ +<?php +/* + * openFIRST.awards - admin/index.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: David Di Biase <dav...@ea...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + include_once("../../includes/globals.php"); + $ogUser->mustBeAdmin(); + include_once($Header); + + // Check if user is an admin then allow processes + // If user has posted delete then delete specified record in querystring DELETE + if (isset($_GET['DELETE'])){ + $ogDB->delete('awards', array('ID' => $_GET['DELETE'])) or die("DELETE: ". $ogDB->errorString()); + + + echo("<p>Award information has been deleted.</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); + die(include_once($footer)); + } + $DisplayForm = true; + $CreateNew = true; + if (array_key_exists('AwardID', $_POST)) { + $CreateNew = false; + $DisplayForm = false; + } + if (array_key_exists('create', $_POST)) { + $CreateNew = true; + $DisplayForm = false; + } + if (array_key_exists('modify', $_POST)) { + $CreateNew = false; + $DisplayForm = false; + } + + $firstaward = false; + if (isset($_POST['firstaward'])) $firstaward = $_POST['firstaward'] == '1' ? true : false; + $firstawardname = ''; + if (isset($_POST['firstawardname'])) $firstawardname = $_POST['firstawardname']; + $award = ''; + if (isset($_POST['award'])) $award = $_POST['award']; + $event = ''; + if (isset($_POST['event'])) $event = $_POST['event']; + $date = date('Y-n-j'); + if (isset($_POST['date'])) $date = $_POST['date']; + $recipient = ''; + if (isset($_POST['recipient'])) $recipient = $_POST['recipient']; + $description = ''; + if (isset($_POST['description'])) $description = $_POST['description']; + $type = 'gold'; + if (isset($_POST['type'])) $type = $_POST['type']; + + + // If user has posted create then insert new award record + if ($CreateNew && !$DisplayForm){ + if ($award != '' || $firstaward){ + if($firstaward) { + $faq = $ogDB->select( 'firstawards', '*', array('AwardName' => $firstawardname), array('LIMIT' => '0,1') ); + $fa = $ogDB->fetchObject($faq); + $award = $fa->AwardName; + $description = $fa->Description; + } + $ogDB->insert( 'awards', + array( 'AwardName' => $award, + 'FIRSTAward' => $firstaward, + 'Event' => $event, + 'Date' => $date, + 'Image' => $type, + 'Description' => $description, + 'Recipient' => $recipient + ) + ) or trigger_error('an openFIRST DB error'); + + echo("<p>Congratulations on your new award. Award submitted!</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); + } else { + echo("<p>Please enter a name for the award.</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); + } + include_once($Footer); + die(); + } + + // If the user has submitted modifications to an award, then make them. + + if (!$CreateNew && !$DisplayForm){ + if ($award != "" || $firstaward){ + if ($firstaward) { + $faq = $ogDB->select('awards', '*', array('AwardName' => $firstawardname)); + $fa = $ogDB->fetchObject($faq); + $award = $fa->AwardName; + $description = $fa->Description; + } + + $ogDB->update( 'awards', + array( 'AwardName' => $award, + 'FIRSTAward' => $firstaward, + 'Event' => $event, + 'Date' => $date, + 'Image' => $type, + 'Description' => $description, + 'Recipient' => $recipient + ), + array('ID' => AwardID) + ) or die("UPDATE: ".$ogDB->errorString()); + + echo("<p>Award modifications submitted!</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); + } else { + echo("<p>Please enter a name for the award.</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); + } + include_once($Footer); + die(); + } + + + // If the user has elected to modify an award, fill the form with those details. + if(!$CreateNew) { + $award = $ogDB->fetchObject($ogDB->select('awards', array('ID' => $AwardID))); + $award->template = false; + + } else { + $award = (object)''; + $award->template = true; + $award->AwardName = 'Autodesk Visualization Award'; + $award->Description = ''; + $award->Event = ''; + $award->Date = date('Y-n-j'); + $award->Recipient = 'Team Award'; + $award->Image = 'gold'; + $award->FIRSTAward = '1'; + } +?> + +<h1>Manage Award Information</h1> +<form method="post" action="index.php"> + <table> + <colgroup> + <col /> + </colgroup> + <colgroup> + <col /> + </colgroup> + <tr> + <th colspan="2"><?php + if (!$award->template) { + echo("Modify an Existing Award + <input type='hidden' id='AwardID' name='AwardID' value='".htmlentities($award->ID)."'>"); + } else { + echo("Add A New Award"); + } + ?></th> + </tr> + <tr> + <th>Award Name</th> + <td class="left"> + <table class="no-space left"> + <tr> + <td> + <input type='radio' name='firstaward' value='1' <?php if ($award->FIRSTAward) echo 'checked="checked"'; ?>> + </td> + <td> FIRST Award</td> + </td> + <td> + <select name='firstawardname'> + <?php + $faq = $ogDB->select('firstawards', 'AwardName', array(), array('order' => 'AwardName')); + while($fa = $ogDB->fetchObject($faq)) { + echo "<option value='$fa->AwardName'"; + if ($award->AwardName == $fa->AwardName) echo 'selected'; + echo ">$fa->AwardName</option>"; + } + ?> + </select> + </td> + </tr> + <tr> + <td> + <input type='radio' name='firstaward' value='0' <?php if (!$award->FIRSTAward) echo 'checked="checked"'; ?>> + </td> + <td> Custom Award</td> + </td> + <td> + <input name="award" type="text" id="award" value="<?php if (!$award->FIRSTAward) echo $award->AwardName; ?>"> + </td> + </tr> + </table> + </td> + </tr> + <tr> + <th>Regional/Event</th> + <td class="left"><input name="event" type="text" id="event" value="<?php echo $award->Event; ?>"></td> + </tr> + <tr> + <th>Date</th> + <td class="left"><input name="date" type="text" id="date" value="<?php + echo $award->Date; + ?>" size="10"> + <sub>(Use this syntax: Year-Month-Day)</sub></td> + </tr> + <tr> + <th>Recipient</th> + <td class="left"><input name="recipient" type="text" id="recipient" value="<?php + echo $award->Recipient; + ?>"></td> + </tr> + <tr> + <th>Description<br />(leave blank for FIRST Awards)</th> + <td><textarea name="description" cols="30" rows="5"><?php echo $award->Description; ?></textarea></td> + </tr> + <tr> + <th>Award Type</th> + <td class="left"><table> + <tr> + <td><img src="<?php echo($BasePath); ?>/awards/awardsgold.png" alt="Gold"></td> + <td><img src="<?php echo($BasePath); ?>/awards/awardssilver.png" alt="Silver"></td> + <td><img src="<?php echo($BasePath); ?>/awards/awardsbronze.png" alt="Bronze"></td> + </tr> + <tr> + <td><div align="center"> + <input name="type" type="radio" value="gold" <?php + if (strcasecmp($award->Image, 'gold') == 0) echo 'checked="checked"'; + ?>> + </div></td> + <td><div align="center"> + <input type="radio" name="type" value="silver" <?php + if (strcasecmp($award->Image, 'silver') == 0) echo 'checked="checked"'; + ?>> + </div></td> + <td><div align="center"> + <input type="radio" name="type" value="bronze" <?php + if (strcasecmp($award->Image, 'bronze') == 0) echo 'checked="checked"'; + ?>> + </div></td> + </tr> + </table></td> + </tr> + <tr> + <td colspan="2" class="center"> +<?php if($award->template) { ?> + <input name="create" type="submit" id="create" value="Create Award"> +<?php } else { ?> + <input name="modify" type="submit" id="modify" value="Modify Award"></td> +<?php } ?> + </td> + </tr> + </table> +</form> +<table> + <tr> + <th colspan="2">Award Name</th> + <th>Event</th> + <th>Date</th> + <th>Recipient</th> + <th>Option</th> + </tr> +<?php + // Loop through awards ordered by date + $query = $ogDB->select('awards', '*', array(), array('order' => 'Date')); + while($awards = $ogDB->fetchObject($query)){ +?> + <tr> + <td><img src="<?php echo($BasePath); ?>/awards/awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>"></td> + <td><?php echo $awards->AwardName; ?></td> + <td><?php echo $awards->Event; ?></td> + <td><?php echo $awards->Date; ?></td> + <td><?php echo $awards->Recipient; ?></td> + <td><div align="center">[ <a href='./?DELETE=<?php echo $awards->ID; ?>'>Delete</a> | <a href='./?MODIFY=<?php echo $awards->ID; ?>'>Modify</a> ]</div></td> + </tr> +<?php + } + if($ogDB->numberOfRows($query) == 0){ + echo '<tr><td colspan="6">No awards entered!</td></tr>'; + } +?> +</table> +<br /> +<?php + include_once($Footer); +?> Property changes on: tags/openfirst.awards-2.0a2/awards/admin/index.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.awards-2.0a2/awards/awards.php =================================================================== --- tags/openfirst.awards-2.0a2/awards/awards.php (rev 0) +++ tags/openfirst.awards-2.0a2/awards/awards.php 2006-06-21 15:39:54 UTC (rev 168) @@ -0,0 +1,39 @@ +<?php +/* + * openFIRST.awards - awards.php + * + * Copyright (C) 2005, + * openFIRST Project + * Original Author: Jamie Bliss <ja...@op...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + // Purpose: Defines the AwardModule class, a child of the Module class. + +class AwardModule extends Module { + function getSlugURI($slug) { + /* + supported forms: + %Date% (some parsable date) + %Title% (The title exists) + %ID% (just an integer) + */ + } +} + +$awardmod =& new AwardModule(basename(dirname(__FILE__))); +$ogModuleManager->addModuleFromObject($awardmod); +?> \ No newline at end of file Property changes on: tags/openfirst.awards-2.0a2/awards/awards.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.awards-2.0a2/awards/awardsbronze.png =================================================================== (Binary files differ) Property changes on: tags/openfirst.awards-2.0a2/awards/awardsbronze.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: tags/openfirst.awards-2.0a2/awards/awardsfirst.gif =================================================================== (Binary files differ) Property changes on: tags/openfirst.awards-2.0a2/awards/awardsfirst.gif ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/gif Added: tags/openfirst.awards-2.0a2/awards/awardsgold.png =================================================================== (Binary files differ) Property changes on: tags/openfirst.awards-2.0a2/awards/awardsgold.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: tags/openfirst.awards-2.0a2/awards/awardssilver.png =================================================================== (Binary files differ) Property changes on: tags/openfirst.awards-2.0a2/awards/awardssilver.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: tags/openfirst.awards-2.0a2/awards/index.php =================================================================== --- tags/openfirst.awards-2.0a2/awards/index.php (rev 0) +++ tags/openfirst.awards-2.0a2/awards/index.php 2006-06-21 15:39:54 UTC (rev 168) @@ -0,0 +1,103 @@ +<?php +/* + * openFIRST.awards - index.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: David Di Biase <dav...@ea...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + include_once("../includes/globals.php"); + include_once($Header); + + $where = array(); + if (isset($_REQUEST['id'])) { + $where[] = $ogDB->quoteField('ID').'='.$ogDB->quoteData($_REQUEST['id']); + } + if (isset($_REQUEST['name'])) { + $where[] = $ogDB->quoteField('AwardName').'='.$ogDB->quoteData($_REQUEST['name']); + } + if (isset($_REQUEST['event'])) { + $where[] = $ogDB->quoteField('Event').'='.$ogDB->quoteData($_REQUEST['event']); + } + if (isset($_REQUEST['date'])) { + $where[] = $ogDB->quoteField('Date').'='.$ogDB->quoteData($_REQUEST['date']); + } + if (isset($_REQUEST['recipient'])) { + $where[] = $ogDB->quoteField('Recipient').'='.$ogDB->quoteData($_REQUEST['recipient']); + } + if (isset($_REQUEST['image'])) { + $where[] = $ogDB->quoteField('Image').'='.$ogDB->quoteData($_REQUEST['image']); + } + if (isset($_REQUEST['first'])) { + $firstarg = trim($_REQUEST['first']); + if (strcasecmp($firstarg, 'yes') == 0 || strcasecmp($firstarg, 'y') == 0 || strcasecmp($firstarg, 1) == 0 || strcasecmp($firstarg, 'true' ) == 0) $first = true; + if (strcasecmp($firstarg, 'no' ) == 0 || strcasecmp($firstarg, 'n') == 0 || strcasecmp($firstarg, 0) == 0 || strcasecmp($firstarg, 'false') == 0) $first = false; + $where[] = $ogDB->quoteField('FIRSTAward').'='.$ogDB->quoteData($first); + } + + + // Query database for award information + $sql = 'SELECT * FROM '.$ogDB->quoteTable('awards'). + ((count($where) > 0) ? ' WHERE '.implode(' OR ', $where) : ''). + ' ORDER BY '.$ogDB->quoteField('Date').' DESC'; + $query = $ogDB->query($sql); + if ($query === false) { + echo $ogDB->errorNumber().': '.$ogDB->errorString().'<br />'; + var_dump($sql); + } + $amount = $ogDB->numberOfRows($query); +?> +<h1>Team Awards</h1> +<p>This team has won <b><?php echo $amount; ?></b> award(s)<?php if (count($where) > 0) echo ' that fit the criteria'; ?>.</p> +<?php + // If more then one award is present then show the values + if($amount > 0) { +?> +<table> + <tr> + <th colspan="2">Award Name</th> + <th>Event</th> + <th>Date</th> + <th>Recipient</th> + </tr> +<?php + // Loop through awards ordered by date + while($awards = $ogDB->fetchObject($query)){ +?> + <tr valign="top"> + <td> + <img src="awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>" /> + <?php if ($awards->FIRSTAward) { ?><img src="awardsfirst.gif" /><?php } ?> + </td> + <td> + <h3><?php echo $awards->AwardName; ?></h3> + <p><?php echo $awards->Description; ?></p> + </td> + <td><?php echo $awards->Event; ?></td> + <td><?php echo $awards->Date; ?></td> + <td><?php echo $awards->Recipient; ?></td> + </tr> +<?php } ?> +</table> + +<?php + } + $ogDB->freeResult($query); + + include_once($Footer); +?> Property changes on: tags/openfirst.awards-2.0a2/awards/index.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.awards-2.0a2/awards/openfirst.info.xml =================================================================== --- tags/openfirst.awards-2.0a2/awards/openfirst.info.xml (rev 0) +++ tags/openfirst.awards-2.0a2/awards/openfirst.info.xml 2006-06-21 15:39:54 UTC (rev 168) @@ -0,0 +1,173 @@ +<?xml version="1.0"?> +<module xmlns="http://openfirst.org/xml/module/1.0" id="openfirst.awards"> + <!-- Info --> + <!-- This is not used, except as meta data --> + <name>Awards</name> + <version>2.0a2</version> + <author>David Di Biase</author> + <maintainer>Jamie Bliss</maintainer> + + <includes> + <include>$fModPath/awards.php</include> + </includes> + + <!-- Configuration --> + <!-- Either entities or CDATA can be used. Just make sure it's parsed into the literal XHTML. --> + <!-- Note the two ways of including BasePath. --> + <navbar><![CDATA[ + <a href="$ModPath/">View Awards</a> + ]]></navbar> + <adminbar><![CDATA[ + <a href="$ModPath/admin/">Manage Awards</a> + ]]></adminbar> + + <!-- Database setup --> + <db> + <table name="awards"> + <fields> + <!-- Should be self explainatory --> + <field name="ID" null="no" autoincrement="yes"><type length="6" unsigned="yes">int</type></field> + <field name="AwardName"><type>tinytext</type></field> + <field name="Description"><type>text</type></field> + <field name="Event"><type>tinytext</type></field> + <field name="Date"><type>date</type><default>null</default></field> + <field name="Recipient"><type>tinytext</type></field> + <field name="Image"><type>tinytext</type></field> + <field name="Description"><type>TEXT</type></field> + <field name="FIRSTAward"><type>BOOL</type></field> + </fields> + <keys> + <key type="PRIMARY"> + <col>ID</col> + </key> + </keys> + </table> + <!-- Need to change this to an ID-based system. --> + <table name="firstawards"> + <fields><!--The longest is currently 42 chars--> + <field name="fa_id" null="no" autoincrement="yes"><type>int</type></field> + <field name="AwardName" null="no"><type>tinytext</type></field> + <field name="Description"><type>text</type></field> + </fields> + <keys> + <key type="primary"> + <col>fa_id</col> + </key> + </keys> + <rows> + <row> + <col name="AwardName">Chairman's Award</col> + <col name="Description">The FIRST Robotics Competition is about much more than the mechanics of building a robot or winning a competitive event. It is about the impact FIRST has on those who participate in the program and the impact of FIRST on the community at large. The FIRST mission is to change the way America's young people regard science and technology and to inspire an appreciation for the real-life rewards and career opportunities in these fields.</col> + </row> + <row> + <col name="AwardName">Regional Finalists</col> + <col name="Description">This award celebrates the team or alliance that makes it to the final match of the competition.</col> + </row> + <row> + <col name="AwardName">Leadership in Control</col> + <col name="Description">This award celebrates an innovative control system or application of control components to provide unique machine functions.</col> + </row> + <row> + <col name="AwardName">Regional Finalist</col> + <col name="Description">This award celebrates the team or alliance that makes it to the final match of the competition.</col> + </row> + <row> + <col name="AwardName">Rookie All-Star</col> + <col name="Description">This award celebrates the rookie team exemplifying a young but strong partnership effort, as well as implementing the mission of FIRST to inspire students to learn more about science and technology.</col> + </row> + <row> + <col name="AwardName">Website Award</col> + <col name="Description">This award recognizes excellence in student-designed, build, and managed FIRST team websites.</col> + </row> + <row> + <col name="AwardName">Xerox - Creativity</col> + <col name="Description">The award celebrates creative design, use of a component, or a creative or unique strategy of play.</col> + </row> + <row> + <col name="AwardName">The Allaire Medal - Leadership Exemplified</col> + <col name="Description">The Allaire Medal recognizes leadership exemplified, and is awarded to an individual student on the winning Chairman's Award team. Named in honor of Paul A. Allaire, a long-serving FIRST Chairman of the Board, the Allaire Medal is given to the student who has demonstrated outstanding leadership on his/her FIRST team, within his/her school and community, and whose personal character best embodies the spirit of FIRST.</col> + </row> + <row> + <col name="AwardName">Woodie Flowers Awards</col> + <col name="Description">The Woodie Flwers Award celebrates effective communication in the art and science of engineering and design. Dr. William Murphy and Small Parts, Inc. began this prestigious award in 1996. For the 2004 season, this award is being enhanced to honor more exemplary communicators in the FIRST community. Following Dr. Murphy's lead, FIRST Whishes to bring more attention to these FIRST heroes.</col> + </row> + <row> + <col name="AwardName">The Autodesk Inventor ® Award</col> + <col name="Description">Presented by Autodesk, Inc., this award recognizes the team that best understands, communicates, and documents the distinct phases of the design process from concept to completion.</col> + </row> + <row> + <col name="AwardName">The Autodesk Visualization Award</col> + <col name="Description">Presented by Autodesk, Inc. this award recognizes excellence in student animation that clearly and creatively illustrates the spirit of the FIRST Robtoics Compettion.</col> + </row> + <row> + <col name="AwardName">Champion</col> + <col name="Description">This award celebrates the team or alliance that wins the Championship.</col> + </row> + <row> + <col name="AwardName">Championship Finalist</col> + <col name="Description">This award celebrates the team or alliance that makes it to the final match of the Championship.</col> + </row> + <row> + <col name="AwardName">Division Finalist</col> + <col name="Description">This award celebrates the team or alliance that wins the final match in their division at the Championship.</col> + </row> + <row> + <col name="AwardName">Rookie Inspiration</col> + <col name="Description">Award celebrates a rookie team for outstanding effort as a FIRST team in a community outreach & recruiting students to engineering. This team models gracious professionalism on and off the field and is a true inspiration to others</col> + </row> + <row> + <col name="AwardName">Woodie Flowers Finalist Award</col> + <col name="Description">Awarded to an outstanding engineer or teacher participating in each of the robotics Regional Competions. Students choose and write about a person on their team who best demonstrates excellence in teaching science, math, and creative design. These Regional winners will receive consideration for the Championship Woodie Flowers Award.</col> + </row> + <row> + <col name="AwardName">Judges' Award</col> + <col name="Description">During the couse of the competition, the judging panel may encounter a team whose unique efforts, performance, or dyanmics merit recognition.</col> + </row> + <row> + <col name="AwardName">Kleiner Perkins Caufield & Byers-Entrepreneurship</col> + <col name="Description">Celebrates the Entrepreneurial Spirit. This award reconizes a team, which since its inception has developed the framework fer a comprehensive business plan in order to scope, manage, and obtain team objectives. This team displays entrepreneurial enthusiam and the vital business skills for a self-sustaining program.</col> + </row> + <row> + <col name="AwardName">Motorola-Quality</col> + <col name="Description">This award celebrates machine robustness in concept and fabrication</col> + </row> + <row> + <col name="AwardName">Regional Champion</col> + <col name="Description">This award celebrates the team or alliance that makes it to the final match of the competition.</col> + </row> + <row> + <col name="AwardName">General Motors-Industrial Design</col> + <col name="Description">the award celebrates form and function in an efficiently designed machine that effectively achieves the game challenge.</col> + </row> + <row> + <col name="AwardName">Highest Rookie Seed</col> + <col name="Description">this award celebrates the highest-seeded rookie team at the conclusion of the qualifying rounds</col> + </row> + <row> + <col name="AwardName">Imagery</col> + <col name="Description">This award celebrates attractiveness in engineering and outstanding visual aesthetic integration from the machine to team appearance</col> + </row> + <row> + <col name="AwardName">Johnson & Johnson-Sportsman</col> + <col name="Description">This award celebrates outstanding sportsmanship and continues gracious professionalism in the heat of competition, both on and off the playing field</col> + </row> + <row> + <col name="AwardName">Delphi-'driving Tomorrow's Techology'</col> + <col name="Description">Celebrates an elegant and advantageous machine featue. Reconizes any aspect of engeering elegance including , but not limited to: design,wiring methods, material seection, programming techniques, and unique machine attributes. The criteria for this award are based on the teams ability to concisely verbally describe , as well as demonstrate, this chosen machine feature</col> + </row> + <row> + <col name="AwardName">Engeering Inspiration</col> + <col name="Description">Award celebrates a team's outstanding success in advancing respect and appreciation for engeering and engineers, both within their school, as well as their community . Criteria include: the extent and effectiveness of the team's efforts to recruit students to engineering , the extent and effectiveof the team's community outreach efforts, and the measurable success of those efforts. this is the second highest team award FIRST bestows</col> + </row> + <row> + <col name="AwardName">Autodesk Visualization Award</col> + <col name="Description">Reconizes student animation that 'clearly and creatively' shows the spirt of FIRST Robotics Competition.Autodesk will award excellence in content,creativity,and mastery af multimedia</col> + </row> + <row> + <col name="AwardName">Daimler Chrysler-Team Spirit</col> + <col name="Description">This award celebrates extraordinary enthusiasm and spirit through an exceptional partnership and teamwork.</col> + </row> + </rows> + </table> + </db> +</module> Property changes on: tags/openfirst.awards-2.0a2/awards/openfirst.info.xml ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/xml Name: svn:eol-style + LF Added: tags/openfirst.base-2.0a2/COPYING =================================================================== --- tags/openfirst.base-2.0a2/COPYING (rev 0) +++ tags/openfirst.base-2.0a2/COPYING 2006-06-21 15:39:54 UTC (rev 168) @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in... [truncated message content] |
From: <ast...@us...> - 2006-06-21 15:38:43
|
Revision: 167 Author: astronouth7303 Date: 2006-06-21 08:38:19 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=167&view=rev Log Message: ----------- Adding openfirst.awards and openfirst.modules 2.0a1 (for reference) Added Paths: ----------- tags/openfirst.awards-2.0a1/ tags/openfirst.awards-2.0a1/awards/ tags/openfirst.awards-2.0a1/awards/NOTES tags/openfirst.awards-2.0a1/awards/admin/ tags/openfirst.awards-2.0a1/awards/admin/index.php tags/openfirst.awards-2.0a1/awards/awards.php tags/openfirst.awards-2.0a1/awards/awardsbronze.png tags/openfirst.awards-2.0a1/awards/awardsfirst.gif tags/openfirst.awards-2.0a1/awards/awardsgold.png tags/openfirst.awards-2.0a1/awards/awardssilver.png tags/openfirst.awards-2.0a1/awards/index.php tags/openfirst.awards-2.0a1/awards/openfirst.info.xml tags/openfirst.modules-2.0a1/ tags/openfirst.modules-2.0a1/awards/ tags/openfirst.modules-2.0a1/awards/NOTES tags/openfirst.modules-2.0a1/awards/admin/ tags/openfirst.modules-2.0a1/awards/admin/index.php tags/openfirst.modules-2.0a1/awards/awards.php tags/openfirst.modules-2.0a1/awards/awardsbronze.png tags/openfirst.modules-2.0a1/awards/awardsfirst.gif tags/openfirst.modules-2.0a1/awards/awardsgold.png tags/openfirst.modules-2.0a1/awards/awardssilver.png tags/openfirst.modules-2.0a1/awards/index.php tags/openfirst.modules-2.0a1/awards/openfirst.info.xml Property changes on: tags/openfirst.awards-2.0a1/awards ___________________________________________________________________ Name: of:module + openfirst.awards Added: tags/openfirst.awards-2.0a1/awards/NOTES =================================================================== --- tags/openfirst.awards-2.0a1/awards/NOTES (rev 0) +++ tags/openfirst.awards-2.0a1/awards/NOTES 2006-06-21 15:38:19 UTC (rev 167) @@ -0,0 +1,11 @@ +openFIRST.awards + +--- + +** December 25, 2003 Release ** + +David Di Biase - Module approved. + +Tim Ginn - Module approved. + +Greg Inozemtsev - Module approved. Property changes on: tags/openfirst.awards-2.0a1/awards/NOTES ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/plain Name: svn:eol-style + native Property changes on: tags/openfirst.awards-2.0a1/awards/admin ___________________________________________________________________ Name: of:module + openfirst.awards Added: tags/openfirst.awards-2.0a1/awards/admin/index.php =================================================================== --- tags/openfirst.awards-2.0a1/awards/admin/index.php (rev 0) +++ tags/openfirst.awards-2.0a1/awards/admin/index.php 2006-06-21 15:38:19 UTC (rev 167) @@ -0,0 +1,312 @@ +<?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"); + include_once($Header); + + // Check if user is an admin then allow processes + if(isset($user->user)){ + + if($user->membertype=="administrator"){ + // If user has posted delete then delete specified record in querystring DELETE + if (isset($_GET['DELETE'])){ + ofirst_dbquery('DELETE FROM '. + ofirst_dbquote_table('awards'). + ' WHERE '. + ofirst_dbquote_name('ID'). + ' = '. + ofirst_dbquote_data($_GET['DELETE']) + ) or die("DELETE: ". ofirst_dberror()); + + 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) { + $sql = 'SELECT * FROM '.$ogDB->quoteTable('firstawards'). + ' WHERE '.$ogDB->quoteField('AwardName').'='.$ogDB->quoteData($firstawardname). + ' LIMIT 0,1'; + $faq = $ogDB->query($sql); + $fa = $ogDB->fetchObject($faq); + $award = $fa->AwardName; + $description = $fa->Description; + } + $sql = 'INSERT INTO '. + $ogDB->quoteTable('awards').' SET '. + $ogDB->quoteFDPairs(array('AwardName' => $award, + 'FIRSTAward' => $firstaward, + 'Event' => $event, + 'Date' => $date, + 'Image' => $type, + 'Description' => $description, + 'Recipient' => $recipient + )); + $ogDB->query($sql) or die(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>"); + } + die(include_once($Footer)); + } + + // If the user has submitted modifications to an award, then make them. + + if (!$CreateNew && !$DisplayForm){ + if ($award != "" || $firstaward){ + if ($firstaward) { + $faq = ofirst_dbquery('SELECT * FROM '.ofirst_dbquote_table('awards').' WHERE '. + ofirst_dbquote_name('AwardName').'='. + ofirst_dbquote_data($firstawardname)); + $fa = ofirst_dbfetch_object($faq); + $award = $fa->AwardName; + $description = $fa->Description; + } + + ofirst_dbquery('UPDATE '.ofirst_dbquote_table('awards').' SET '. + ofirst_dbquote_fd_pairs(array( + 'AwardName' => $award, + 'FIRSTAward' => $firstaward, + 'Event' => $event, + 'Date' => $date, + 'Image' => $type, + 'Description' => $description, + 'Recipient' => $recipient)). + ' WHERE '.ofirst_dbquote_name('ID').'='.ofirst_dbquote_data(AwardID)) + or die("UPDATE: ".ofirst_dberror()); + + 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>"); + } + die(include_once($footer)); + } + + + // If the user has elected to modify an award, fill the form with those details. + if(!$CreateNew) { + $sql = 'SELECT * FROM '.$ogDB->quoteTable('awards'). + ' WHERE '.$ogDB->quoteField('ID').'='.$ogDB->quoteData('AwardID'); + $award = $ogDB->fetchObject($ogDB->query($sql)); + $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='$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->query('SELECT * FROM '.$ogDB->quoteTable('firstawards').' ORDER BY '.$ogDB->quoteField('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->query('SELECT * FROM '.$ogDB->quoteTable('awards').' ORDER BY '.$ogDB->quoteName('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 + } else { + echo("<h1>Manage Award Information</h1><p>Only administrators can use this feature</p>"); + } + } else { + showlogin(); + } + include_once($Footer); +?> Property changes on: tags/openfirst.awards-2.0a1/awards/admin/index.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.awards-2.0a1/awards/awards.php =================================================================== --- tags/openfirst.awards-2.0a1/awards/awards.php (rev 0) +++ tags/openfirst.awards-2.0a1/awards/awards.php 2006-06-21 15:38:19 UTC (rev 167) @@ -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); +?> Property changes on: tags/openfirst.awards-2.0a1/awards/awards.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.awards-2.0a1/awards/awardsbronze.png =================================================================== (Binary files differ) Property changes on: tags/openfirst.awards-2.0a1/awards/awardsbronze.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: tags/openfirst.awards-2.0a1/awards/awardsfirst.gif =================================================================== (Binary files differ) Property changes on: tags/openfirst.awards-2.0a1/awards/awardsfirst.gif ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/gif Added: tags/openfirst.awards-2.0a1/awards/awardsgold.png =================================================================== (Binary files differ) Property changes on: tags/openfirst.awards-2.0a1/awards/awardsgold.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: tags/openfirst.awards-2.0a1/awards/awardssilver.png =================================================================== (Binary files differ) Property changes on: tags/openfirst.awards-2.0a1/awards/awardssilver.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: tags/openfirst.awards-2.0a1/awards/index.php =================================================================== --- tags/openfirst.awards-2.0a1/awards/index.php (rev 0) +++ tags/openfirst.awards-2.0a1/awards/index.php 2006-06-21 15:38:19 UTC (rev 167) @@ -0,0 +1,103 @@ +<?php +/* + * openFIRST.awards - index.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: David Di Biase <dav...@ea...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + include_once("../includes/globals.php"); + include_once($Header); + + $where = array(); + if (isset($_REQUEST['id'])) { + $where[] = $ogDB->quoteField('ID').'='.$ogDB->quoteData($_REQUEST['id']); + } + if (isset($_REQUEST['name'])) { + $where[] = $ogDB->quoteField('AwardName').'='.$ogDB->quoteData($_REQUEST['name']); + } + if (isset($_REQUEST['event'])) { + $where[] = $ogDB->quoteField('Event').'='.$ogDB->quoteData($_REQUEST['event']); + } + if (isset($_REQUEST['date'])) { + $where[] = $ogDB->quoteField('Date').'='.$ogDB->quoteData($_REQUEST['date']); + } + if (isset($_REQUEST['recipient'])) { + $where[] = $ogDB->quoteField('Recipient').'='.$ogDB->quoteData($_REQUEST['recipient']); + } + if (isset($_REQUEST['image'])) { + $where[] = $ogDB->quoteField('Image').'='.$ogDB->quoteData($_REQUEST['image']); + } + if (isset($_REQUEST['first'])) { + $firstarg = trim($_REQUEST['first']); + if (strcasecmp($firstarg, 'yes') == 0 || strcasecmp($firstarg, 'y') == 0 || strcasecmp($firstarg, 1) == 0 || strcasecmp($firstarg, 'true' ) == 0) $first = true; + if (strcasecmp($firstarg, 'no' ) == 0 || strcasecmp($firstarg, 'n') == 0 || strcasecmp($firstarg, 0) == 0 || strcasecmp($firstarg, 'false') == 0) $first = false; + $where[] = $ogDB->quoteField('FIRSTAward').'='.$ogDB->quoteData($first); + } + + + // Query database for award information + $sql = 'SELECT * FROM '.$ogDB->quoteTable('awards'). + ((count($where) > 0) ? ' WHERE '.implode(' OR ', $where) : ''). + ' ORDER BY '.$ogDB->quoteField('Date').' DESC'; + $query = $ogDB->query($sql); + if ($query === false) { + echo $ogDB->errorNumber().': '.$ogDB->errorString().'<br />'; + var_dump($sql); + } + $amount = $ogDB->numberOfRows($query); +?> +<h1>Team Awards</h1> +<p>This team has won <b><?php echo $amount; ?></b> award(s)<?php if (count($where) > 0) echo ' that fit the criteria'; ?>.</p> +<?php + // If more then one award is present then show the values + if($amount > 0) { +?> +<table> + <tr> + <th colspan="2">Award Name</th> + <th>Event</th> + <th>Date</th> + <th>Recipient</th> + </tr> +<?php + // Loop through awards ordered by date + while($awards = $ogDB->fetchObject($query)){ +?> + <tr valign="top"> + <td> + <img src="awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>" /> + <?php if ($awards->FIRSTAward) { ?><img src="awardsfirst.gif" /><?php } ?> + </td> + <td> + <h3><?php echo $awards->AwardName; ?></h3> + <p><?php echo $awards->Description; ?></p> + </td> + <td><?php echo $awards->Event; ?></td> + <td><?php echo $awards->Date; ?></td> + <td><?php echo $awards->Recipient; ?></td> + </tr> +<?php } ?> +</table> + +<?php + } + $ogDB->freeResult($query); + + include_once($Footer); +?> Property changes on: tags/openfirst.awards-2.0a1/awards/index.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.awards-2.0a1/awards/openfirst.info.xml =================================================================== --- tags/openfirst.awards-2.0a1/awards/openfirst.info.xml (rev 0) +++ tags/openfirst.awards-2.0a1/awards/openfirst.info.xml 2006-06-21 15:38:19 UTC (rev 167) @@ -0,0 +1,173 @@ +<?xml version="1.0"?> +<module xmlns="http://openfirst.org/xml/module/1.0" id="openfirst.awards"> + <!-- Info --> + <!-- This is not used, except as meta data --> + <name>Awards</name> + <version>2.0a1</version> + <author>David Di Biase</author> + <maintainer>Jamie Bliss</maintainer> + + <includes> + <include>$fModPath/awards.php</include> + </includes> + + <!-- Configuration --> + <!-- Either entities or CDATA can be used. Just make sure it's parsed into the literal XHTML. --> + <!-- Note the two ways of including BasePath. --> + <navbar><![CDATA[ + <a href="$ModPath/">View Awards</a> + ]]></navbar> + <adminbar><![CDATA[ + <a href="$ModPath/admin/">Manage Awards</a> + ]]></adminbar> + + <!-- Database setup --> + <db> + <table name="awards"> + <fields> + <!-- Should be self explainatory --> + <field name="ID" null="no" autoincrement="yes"><type length="6" unsigned="yes">int</type></field> + <field name="AwardName"><type>tinytext</type></field> + <field name="Description"><type>text</type></field> + <field name="Event"><type>tinytext</type></field> + <field name="Date"><type>date</type><default>null</default></field> + <field name="Recipient"><type>tinytext</type></field> + <field name="Image"><type>tinytext</type></field> + <field name="Description"><type>TEXT</type></field> + <field name="FIRSTAward"><type>BOOL</type></field> + </fields> + <keys> + <key type="PRIMARY"> + <col>ID</col> + </key> + </keys> + </table> + <!-- Need to change this to an ID-based system. --> + <table name="firstawards"> + <fields><!--The longest is currently 42 chars--> + <field name="fa_id" null="no" autoincrement="yes"><type>int</type></field> + <field name="AwardName" null="no"><type>tinytext</type></field> + <field name="Description"><type>text</type></field> + </fields> + <keys> + <key type="primary"> + <col>fa_id</col> + </key> + </keys> + <rows> + <row> + <col name="AwardName">Chairman's Award</col> + <col name="Description">The FIRST Robotics Competition is about much more than the mechanics of building a robot or winning a competitive event. It is about the impact FIRST has on those who participate in the program and the impact of FIRST on the community at large. The FIRST mission is to change the way America's young people regard science and technology and to inspire an appreciation for the real-life rewards and career opportunities in these fields.</col> + </row> + <row> + <col name="AwardName">Regional Finalists</col> + <col name="Description">This award celebrates the team or alliance that makes it to the final match of the competition.</col> + </row> + <row> + <col name="AwardName">Leadership in Control</col> + <col name="Description">This award celebrates an innovative control system or application of control components to provide unique machine functions.</col> + </row> + <row> + <col name="AwardName">Regional Finalist</col> + <col name="Description">This award celebrates the team or alliance that makes it to the final match of the competition.</col> + </row> + <row> + <col name="AwardName">Rookie All-Star</col> + <col name="Description">This award celebrates the rookie team exemplifying a young but strong partnership effort, as well as implementing the mission of FIRST to inspire students to learn more about science and technology.</col> + </row> + <row> + <col name="AwardName">Website Award</col> + <col name="Description">This award recognizes excellence in student-designed, build, and managed FIRST team websites.</col> + </row> + <row> + <col name="AwardName">Xerox - Creativity</col> + <col name="Description">The award celebrates creative design, use of a component, or a creative or unique strategy of play.</col> + </row> + <row> + <col name="AwardName">The Allaire Medal - Leadership Exemplified</col> + <col name="Description">The Allaire Medal recognizes leadership exemplified, and is awarded to an individual student on the winning Chairman's Award team. Named in honor of Paul A. Allaire, a long-serving FIRST Chairman of the Board, the Allaire Medal is given to the student who has demonstrated outstanding leadership on his/her FIRST team, within his/her school and community, and whose personal character best embodies the spirit of FIRST.</col> + </row> + <row> + <col name="AwardName">Woodie Flowers Awards</col> + <col name="Description">The Woodie Flwers Award celebrates effective communication in the art and science of engineering and design. Dr. William Murphy and Small Parts, Inc. began this prestigious award in 1996. For the 2004 season, this award is being enhanced to honor more exemplary communicators in the FIRST community. Following Dr. Murphy's lead, FIRST Whishes to bring more attention to these FIRST heroes.</col> + </row> + <row> + <col name="AwardName">The Autodesk Inventor ® Award</col> + <col name="Description">Presented by Autodesk, Inc., this award recognizes the team that best understands, communicates, and documents the distinct phases of the design process from concept to completion.</col> + </row> + <row> + <col name="AwardName">The Autodesk Visualization Award</col> + <col name="Description">Presented by Autodesk, Inc. this award recognizes excellence in student animation that clearly and creatively illustrates the spirit of the FIRST Robtoics Compettion.</col> + </row> + <row> + <col name="AwardName">Champion</col> + <col name="Description">This award celebrates the team or alliance that wins the Championship.</col> + </row> + <row> + <col name="AwardName">Championship Finalist</col> + <col name="Description">This award celebrates the team or alliance that makes it to the final match of the Championship.</col> + </row> + <row> + <col name="AwardName">Division Finalist</col> + <col name="Description">This award celebrates the team or alliance that wins the final match in their division at the Championship.</col> + </row> + <row> + <col name="AwardName">Rookie Inspiration</col> + <col name="Description">Award celebrates a rookie team for outstanding effort as a FIRST team in a community outreach & recruiting students to engineering. This team models gracious professionalism on and off the field and is a true inspiration to others</col> + </row> + <row> + <col name="AwardName">Woodie Flowers Finalist Award</col> + <col name="Description">Awarded to an outstanding engineer or teacher participating in each of the robotics Regional Competions. Students choose and write about a person on their team who best demonstrates excellence in teaching science, math, and creative design. These Regional winners will receive consideration for the Championship Woodie Flowers Award.</col> + </row> + <row> + <col name="AwardName">Judges' Award</col> + <col name="Description">During the couse of the competition, the judging panel may encounter a team whose unique efforts, performance, or dyanmics merit recognition.</col> + </row> + <row> + <col name="AwardName">Kleiner Perkins Caufield & Byers-Entrepreneurship</col> + <col name="Description">Celebrates the Entrepreneurial Spirit. This award reconizes a team, which since its inception has developed the framework fer a comprehensive business plan in order to scope, manage, and obtain team objectives. This team displays entrepreneurial enthusiam and the vital business skills for a self-sustaining program.</col> + </row> + <row> + <col name="AwardName">Motorola-Quality</col> + <col name="Description">This award celebrates machine robustness in concept and fabrication</col> + </row> + <row> + <col name="AwardName">Regional Champion</col> + <col name="Description">This award celebrates the team or alliance that makes it to the final match of the competition.</col> + </row> + <row> + <col name="AwardName">General Motors-Industrial Design</col> + <col name="Description">the award celebrates form and function in an efficiently designed machine that effectively achieves the game challenge.</col> + </row> + <row> + <col name="AwardName">Highest Rookie Seed</col> + <col name="Description">this award celebrates the highest-seeded rookie team at the conclusion of the qualifying rounds</col> + </row> + <row> + <col name="AwardName">Imagery</col> + <col name="Description">This award celebrates attractiveness in engineering and outstanding visual aesthetic integration from the machine to team appearance</col> + </row> + <row> + <col name="AwardName">Johnson & Johnson-Sportsman</col> + <col name="Description">This award celebrates outstanding sportsmanship and continues gracious professionalism in the heat of competition, both on and off the playing field</col> + </row> + <row> + <col name="AwardName">Delphi-'driving Tomorrow's Techology'</col> + <col name="Description">Celebrates an elegant and advantageous machine featue. Reconizes any aspect of engeering elegance including , but not limited to: design,wiring methods, material seection, programming techniques, and unique machine attributes. The criteria for this award are based on the teams ability to concisely verbally describe , as well as demonstrate, this chosen machine feature</col> + </row> + <row> + <col name="AwardName">Engeering Inspiration</col> + <col name="Description">Award celebrates a team's outstanding success in advancing respect and appreciation for engeering and engineers, both within their school, as well as their community . Criteria include: the extent and effectiveness of the team's efforts to recruit students to engineering , the extent and effectiveof the team's community outreach efforts, and the measurable success of those efforts. this is the second highest team award FIRST bestows</col> + </row> + <row> + <col name="AwardName">Autodesk Visualization Award</col> + <col name="Description">Reconizes student animation that 'clearly and creatively' shows the spirt of FIRST Robotics Competition.Autodesk will award excellence in content,creativity,and mastery af multimedia</col> + </row> + <row> + <col name="AwardName">Daimler Chrysler-Team Spirit</col> + <col name="Description">This award celebrates extraordinary enthusiasm and spirit through an exceptional partnership and teamwork.</col> + </row> + </rows> + </table> + </db> +</module> Property changes on: tags/openfirst.awards-2.0a1/awards/openfirst.info.xml ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/xml Name: svn:eol-style + LF Property changes on: tags/openfirst.modules-2.0a1/awards ___________________________________________________________________ Name: of:module + openfirst.awards Added: tags/openfirst.modules-2.0a1/awards/NOTES =================================================================== --- tags/openfirst.modules-2.0a1/awards/NOTES (rev 0) +++ tags/openfirst.modules-2.0a1/awards/NOTES 2006-06-21 15:38:19 UTC (rev 167) @@ -0,0 +1,11 @@ +openFIRST.awards + +--- + +** December 25, 2003 Release ** + +David Di Biase - Module approved. + +Tim Ginn - Module approved. + +Greg Inozemtsev - Module approved. Property changes on: tags/openfirst.modules-2.0a1/awards/NOTES ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/plain Name: svn:eol-style + native Property changes on: tags/openfirst.modules-2.0a1/awards/admin ___________________________________________________________________ Name: of:module + openfirst.awards Added: tags/openfirst.modules-2.0a1/awards/admin/index.php =================================================================== --- tags/openfirst.modules-2.0a1/awards/admin/index.php (rev 0) +++ tags/openfirst.modules-2.0a1/awards/admin/index.php 2006-06-21 15:38:19 UTC (rev 167) @@ -0,0 +1,312 @@ +<?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"); + include_once($Header); + + // Check if user is an admin then allow processes + if(isset($user->user)){ + + if($user->membertype=="administrator"){ + // If user has posted delete then delete specified record in querystring DELETE + if (isset($_GET['DELETE'])){ + ofirst_dbquery('DELETE FROM '. + ofirst_dbquote_table('awards'). + ' WHERE '. + ofirst_dbquote_name('ID'). + ' = '. + ofirst_dbquote_data($_GET['DELETE']) + ) or die("DELETE: ". ofirst_dberror()); + + 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) { + $sql = 'SELECT * FROM '.$ogDB->quoteTable('firstawards'). + ' WHERE '.$ogDB->quoteField('AwardName').'='.$ogDB->quoteData($firstawardname). + ' LIMIT 0,1'; + $faq = $ogDB->query($sql); + $fa = $ogDB->fetchObject($faq); + $award = $fa->AwardName; + $description = $fa->Description; + } + $sql = 'INSERT INTO '. + $ogDB->quoteTable('awards').' SET '. + $ogDB->quoteFDPairs(array('AwardName' => $award, + 'FIRSTAward' => $firstaward, + 'Event' => $event, + 'Date' => $date, + 'Image' => $type, + 'Description' => $description, + 'Recipient' => $recipient + )); + $ogDB->query($sql) or die(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>"); + } + die(include_once($Footer)); + } + + // If the user has submitted modifications to an award, then make them. + + if (!$CreateNew && !$DisplayForm){ + if ($award != "" || $firstaward){ + if ($firstaward) { + $faq = ofirst_dbquery('SELECT * FROM '.ofirst_dbquote_table('awards').' WHERE '. + ofirst_dbquote_name('AwardName').'='. + ofirst_dbquote_data($firstawardname)); + $fa = ofirst_dbfetch_object($faq); + $award = $fa->AwardName; + $description = $fa->Description; + } + + ofirst_dbquery('UPDATE '.ofirst_dbquote_table('awards').' SET '. + ofirst_dbquote_fd_pairs(array( + 'AwardName' => $award, + 'FIRSTAward' => $firstaward, + 'Event' => $event, + 'Date' => $date, + 'Image' => $type, + 'Description' => $description, + 'Recipient' => $recipient)). + ' WHERE '.ofirst_dbquote_name('ID').'='.ofirst_dbquote_data(AwardID)) + or die("UPDATE: ".ofirst_dberror()); + + 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>"); + } + die(include_once($footer)); + } + + + // If the user has elected to modify an award, fill the form with those details. + if(!$CreateNew) { + $sql = 'SELECT * FROM '.$ogDB->quoteTable('awards'). + ' WHERE '.$ogDB->quoteField('ID').'='.$ogDB->quoteData('AwardID'); + $award = $ogDB->fetchObject($ogDB->query($sql)); + $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='$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->query('SELECT * FROM '.$ogDB->quoteTable('firstawards').' ORDER BY '.$ogDB->quoteField('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->query('SELECT * FROM '.$ogDB->quoteTable('awards').' ORDER BY '.$ogDB->quoteName('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 + } else { + echo("<h1>Manage Award Information</h1><p>Only administrators can use this feature</p>"); + } + } else { + showlogin(); + } + include_once($Footer); +?> Property changes on: tags/openfirst.modules-2.0a1/awards/admin/index.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.modules-2.0a1/awards/awards.php =================================================================== --- tags/openfirst.modules-2.0a1/awards/awards.php (rev 0) +++ tags/openfirst.modules-2.0a1/awards/awards.php 2006-06-21 15:38:19 UTC (rev 167) @@ -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); +?> Property changes on: tags/openfirst.modules-2.0a1/awards/awards.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.modules-2.0a1/awards/awardsbronze.png =================================================================== (Binary files differ) Property changes on: tags/openfirst.modules-2.0a1/awards/awardsbronze.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: tags/openfirst.modules-2.0a1/awards/awardsfirst.gif =================================================================== (Binary files differ) Property changes on: tags/openfirst.modules-2.0a1/awards/awardsfirst.gif ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/gif Added: tags/openfirst.modules-2.0a1/awards/awardsgold.png =================================================================== (Binary files differ) Property changes on: tags/openfirst.modules-2.0a1/awards/awardsgold.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: tags/openfirst.modules-2.0a1/awards/awardssilver.png =================================================================== (Binary files differ) Property changes on: tags/openfirst.modules-2.0a1/awards/awardssilver.png ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + image/png Added: tags/openfirst.modules-2.0a1/awards/index.php =================================================================== --- tags/openfirst.modules-2.0a1/awards/index.php (rev 0) +++ tags/openfirst.modules-2.0a1/awards/index.php 2006-06-21 15:38:19 UTC (rev 167) @@ -0,0 +1,103 @@ +<?php +/* + * openFIRST.awards - index.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: David Di Biase <dav...@ea...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + include_once("../includes/globals.php"); + include_once($Header); + + $where = array(); + if (isset($_REQUEST['id'])) { + $where[] = $ogDB->quoteField('ID').'='.$ogDB->quoteData($_REQUEST['id']); + } + if (isset($_REQUEST['name'])) { + $where[] = $ogDB->quoteField('AwardName').'='.$ogDB->quoteData($_REQUEST['name']); + } + if (isset($_REQUEST['event'])) { + $where[] = $ogDB->quoteField('Event').'='.$ogDB->quoteData($_REQUEST['event']); + } + if (isset($_REQUEST['date'])) { + $where[] = $ogDB->quoteField('Date').'='.$ogDB->quoteData($_REQUEST['date']); + } + if (isset($_REQUEST['recipient'])) { + $where[] = $ogDB->quoteField('Recipient').'='.$ogDB->quoteData($_REQUEST['recipient']); + } + if (isset($_REQUEST['image'])) { + $where[] = $ogDB->quoteField('Image').'='.$ogDB->quoteData($_REQUEST['image']); + } + if (isset($_REQUEST['first'])) { + $firstarg = trim($_REQUEST['first']); + if (strcasecmp($firstarg, 'yes') == 0 || strcasecmp($firstarg, 'y') == 0 || strcasecmp($firstarg, 1) == 0 || strcasecmp($firstarg, 'true' ) == 0) $first = true; + if (strcasecmp($firstarg, 'no' ) == 0 || strcasecmp($firstarg, 'n') == 0 || strcasecmp($firstarg, 0) == 0 || strcasecmp($firstarg, 'false') == 0) $first = false; + $where[] = $ogDB->quoteField('FIRSTAward').'='.$ogDB->quoteData($first); + } + + + // Query database for award information + $sql = 'SELECT * FROM '.$ogDB->quoteTable('awards'). + ((count($where) > 0) ? ' WHERE '.implode(' OR ', $where) : ''). + ' ORDER BY '.$ogDB->quoteField('Date').' DESC'; + $query = $ogDB->query($sql); + if ($query === false) { + echo $ogDB->errorNumber().': '.$ogDB->errorString().'<br />'; + var_dump($sql); + } + $amount = $ogDB->numberOfRows($query); +?> +<h1>Team Awards</h1> +<p>This team has won <b><?php echo $amount; ?></b> award(s)<?php if (count($where) > 0) echo ' that fit the criteria'; ?>.</p> +<?php + // If more then one award is present then show the values + if($amount > 0) { +?> +<table> + <tr> + <th colspan="2">Award Name</th> + <th>Event</th> + <th>Date</th> + <th>Recipient</th> + </tr> +<?php + // Loop through awards ordered by date + while($awards = $ogDB->fetchObject($query)){ +?> + <tr valign="top"> + <td> + <img src="awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>" /> + <?php if ($awards->FIRSTAward) { ?><img src="awardsfirst.gif" /><?php } ?> + </td> + <td> + <h3><?php echo $awards->AwardName; ?></h3> + <p><?php echo $awards->Description; ?></p> + </td> + <td><?php echo $awards->Event; ?></td> + <td><?php echo $awards->Date; ?></td> + <td><?php echo $awards->Recipient; ?></td> + </tr> +<?php } ?> +</table> + +<?php + } + $ogDB->freeResult($query); + + include_once($Footer); +?> Property changes on: tags/openfirst.modules-2.0a1/awards/index.php ___________________________________________________________________ Name: of:module + openfirst.awards Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.modules-2.0a1/awards/openfirst.info.xml =================================================================== --- tags/openfirst.modules-2.0a1/awards/openfirst.info.xml (rev 0) +++ tags/openfirst.modules-2.0a1/awards/openfirst.info.xml 2006-06-21 15:38:19 UTC (rev 167) @@ -0,0 +1,173 @@ +<?xml version="1.0"?> +<module xmlns="http://openfirst.org/xml/module/1.0" id="openfirst.awards"> + <!-- Info --> + <!-- This is not used, except as meta data --> + <name>Awards</name> + <version>2.0a1</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 ill... [truncated message content] |
From: <ast...@us...> - 2006-06-21 15:36:33
|
Revision: 166 Author: astronouth7303 Date: 2006-06-21 08:33:45 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=166&view=rev Log Message: ----------- Adding a tag for the (faulty) openfirst.base 2.0a1 release Added Paths: ----------- tags/openfirst.base-2.0a1/ tags/openfirst.base-2.0a1/COPYING tags/openfirst.base-2.0a1/README tags/openfirst.base-2.0a1/config/ tags/openfirst.base-2.0a1/config/NOTES tags/openfirst.base-2.0a1/config/first.php tags/openfirst.base-2.0a1/config/index.php tags/openfirst.base-2.0a1/config/install.php tags/openfirst.base-2.0a1/config/modules.php tags/openfirst.base-2.0a1/config/openfirst.info.xml tags/openfirst.base-2.0a1/config/version.php tags/openfirst.base-2.0a1/includes/ tags/openfirst.base-2.0a1/includes/BaseModule.php tags/openfirst.base-2.0a1/includes/MSSQLDataBase.php tags/openfirst.base-2.0a1/includes/Module.php tags/openfirst.base-2.0a1/includes/MySQLDataBase.php tags/openfirst.base-2.0a1/includes/ODBCDataBase.php tags/openfirst.base-2.0a1/includes/Skin.php tags/openfirst.base-2.0a1/includes/User.php tags/openfirst.base-2.0a1/includes/auth.php tags/openfirst.base-2.0a1/includes/compatibility.php tags/openfirst.base-2.0a1/includes/dbase.php tags/openfirst.base-2.0a1/includes/edit.php tags/openfirst.base-2.0a1/includes/functions/ tags/openfirst.base-2.0a1/includes/functions/browserid.php tags/openfirst.base-2.0a1/includes/functions/debug.php tags/openfirst.base-2.0a1/includes/functions/forms.php tags/openfirst.base-2.0a1/includes/functions/mail.php tags/openfirst.base-2.0a1/includes/functions/wysiwyg/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/DHTMLEditor Info.txt tags/openfirst.base-2.0a1/includes/functions/wysiwyg/css/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/css/toolbars.css tags/openfirst.base-2.0a1/includes/functions/wysiwyg/dialog/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/dialog/instable.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/dialog/selcolor.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/dialog/setlink.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien/persistent-style.css tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/backcolor.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/bold.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/colors.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/copy.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/cut.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/forecolor.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/indent.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/italic.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifycenter.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifyleft.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/justifyright.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/link.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/orderedlist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/outdent.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/paste.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/redo.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/table.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/underline.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/undo.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien/unorderedlist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Demo.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Midas Specification.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/dev/Text Color.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/backcolor.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/bold.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/colors.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/copy.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/cut.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/forecolor.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/indent.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/italic.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/justifycenter.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/justifyleft.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/justifyright.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/link.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/orderedlist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/outdent.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/paste.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/redo.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/source.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/table.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/underline.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/undo.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/gfx/unorderedlist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/js/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/js/lib.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/uti/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/gecko/uti/colors.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/absmode.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/abspos.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/additem.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/bgcolor.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/bold.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/borders.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/break.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/bullist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/center.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/copy.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/cut.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/deindent.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/delcell.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/delcol.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/delete.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/delrow.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/details.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/dms.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/email.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/end.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/fgcolor.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/find.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/fullscrn.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/help.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/image.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/immap.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/inindent.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/inscell.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/inscol.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/insrow.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/instable.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/italic.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/left.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/link.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/linkadv.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/lock.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/mrgcell.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/newdoc.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/newproj.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/numlist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/open.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/paste.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/print.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/project.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/props.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/reddot.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/redo.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/right.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/save.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/saveall.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/saveas.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/snapgrid.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/source.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/spltcell.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/start.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/target.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/tasklist.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/tblprop.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/under.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/undo.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/zb_b.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/zb_o.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/zb_y.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/zf_b.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/zf_o.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/images/zf_y.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/js/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/js/dhtmled.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/js/lib.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/js/lib2.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/js/lib_ms.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/behavior_css.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/behavior_menu_invisible.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/behavior_remove_phptags.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/behavior_remove_xmltags.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_about.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_hr.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_hr.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_html.htm tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_html.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_image.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_imagemap.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_log.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_table_properties.html tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_table_properties.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/button_table_properties_gecko.html tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/grid_small.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/ tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/arr.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/genMove.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/index.php tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/msmove.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/imagemap/trans.gif tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/listbox_paragraph.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/listbox_styleclass.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/listbox_template.js tags/openfirst.base-2.0a1/includes/functions/wysiwyg/modules/listbox_template_example.html tags/openfirst.base-2.0a1/includes/functions/wysiwyg.php tags/openfirst.base-2.0a1/includes/functions.php tags/openfirst.base-2.0a1/includes/globals.php tags/openfirst.base-2.0a1/includes/settings.php tags/openfirst.base-2.0a1/includes/sitesettings.tpl tags/openfirst.base-2.0a1/includes/slug.php tags/openfirst.base-2.0a1/includes/xmlModule.php tags/openfirst.base-2.0a1/index.php tags/openfirst.base-2.0a1/style/ tags/openfirst.base-2.0a1/style/Default.php tags/openfirst.base-2.0a1/style/footers.php tags/openfirst.base-2.0a1/style/headers.php tags/openfirst.base-2.0a1/style/images/ tags/openfirst.base-2.0a1/style/images/back-admin.png tags/openfirst.base-2.0a1/style/images/back-light.gif tags/openfirst.base-2.0a1/style/images/back-lighter.gif tags/openfirst.base-2.0a1/style/images/back.gif tags/openfirst.base-2.0a1/style/images/developers-small.gif tags/openfirst.base-2.0a1/style/images/help.gif tags/openfirst.base-2.0a1/style/images/large.gif tags/openfirst.base-2.0a1/style/images/mmc.gif tags/openfirst.base-2.0a1/style/images/oflogo.gif tags/openfirst.base-2.0a1/style/images/openfirst-small.png tags/openfirst.base-2.0a1/style/images/openfirst.png tags/openfirst.base-2.0a1/style/images/poweredby-small.png tags/openfirst.base-2.0a1/style/images/poweredby.png tags/openfirst.base-2.0a1/style/images/small-warning-green.gif tags/openfirst.base-2.0a1/style/images/small-warning.gif tags/openfirst.base-2.0a1/style/images/verytinyfirst.gif tags/openfirst.base-2.0a1/style/images/w3c401.png tags/openfirst.base-2.0a1/style/images/warning.gif tags/openfirst.base-2.0a1/style/images/web.gif tags/openfirst.base-2.0a1/style/style.css Added: tags/openfirst.base-2.0a1/COPYING =================================================================== --- tags/openfirst.base-2.0a1/COPYING (rev 0) +++ tags/openfirst.base-2.0a1/COPYING 2006-06-21 15:33:45 UTC (rev 166) @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) 19yy <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. Property changes on: tags/openfirst.base-2.0a1/COPYING ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: tags/openfirst.base-2.0a1/README =================================================================== --- tags/openfirst.base-2.0a1/README (rev 0) +++ tags/openfirst.base-2.0a1/README 2006-06-21 15:33:45 UTC (rev 166) @@ -0,0 +1,22 @@ +openFIRST.base +============== + +This module is the basic container for all of the OpenFIRST software. + +It includes the configuration information required by other modules, +and provides an integrated view of the software. + +Configuration +============= +Access an OpenFIRST page without having created sitesettings.php and a configuration +wizard will pop up. + + +Tables Used +=========== +config +members + + openFIRST.base is distributed +under the GNU GPL. For more information, see +http://OpenFIRST.sourceforge.net and COPYING Property changes on: tags/openfirst.base-2.0a1/README ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/plain Name: svn:eol-style + native Property changes on: tags/openfirst.base-2.0a1/config ___________________________________________________________________ Name: of:module + openfirst.base Added: tags/openfirst.base-2.0a1/config/NOTES =================================================================== --- tags/openfirst.base-2.0a1/config/NOTES (rev 0) +++ tags/openfirst.base-2.0a1/config/NOTES 2006-06-21 15:33:45 UTC (rev 166) @@ -0,0 +1,11 @@ +openFIRST.news + +--- + +** December 25, 2003 Release ** + +David Di Biase - not yet audited + +Tim Ginn - not yet audited + +Greg Inozemtsev - Module approved. Fixed minor issues in authentication code and a typo in debug.php. \ No newline at end of file Property changes on: tags/openfirst.base-2.0a1/config/NOTES ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: tags/openfirst.base-2.0a1/config/first.php =================================================================== --- tags/openfirst.base-2.0a1/config/first.php (rev 0) +++ tags/openfirst.base-2.0a1/config/first.php 2006-06-21 15:33:45 UTC (rev 166) @@ -0,0 +1,336 @@ +<?php +/* + * openFIRST.base - config/first.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: Tim Ginn <tim...@po...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +// Purpose: Deal with the initial set up that must occur once the openFIRST +// base system has been extracted. This file should be removed once +// this task is complete, or the permissions on globals.php should be +// changed to prevent unwanted modification of configuration options. + + // Initialize header/footer vars + $Title = 'openFIRST Installation'; + $StylePath = 'http://openfirst.sourceforge.net'; + + define('OPENFIRST_INSTALLATION_SCRIPT', true); // Only define if it's the installation script + + if(isset($_POST["sqlserver"])) { + $sqlserver = $_POST["sqlserver"]; + $sqluser = $_POST["sqluser"]; + $sqlpassword = $_POST["sqlpassword"]; + $sqldatabase = $_POST["sqldatabase"]; + $fbasepath = realpath($_POST['fbasepath']); + + function GetVarValue($var) { + ob_Start(); + var_export($var); + $Value = ob_Get_Contents(); + ob_End_Clean(); + return $Value; + } + + // They have submitted the form, write a new globals.php file and test + // options. + $ConfigFile = "$fbasepath/includes/sitesettings.php"; + if ( (file_exists($ConfigFile) && is_writable($ConfigFile)) || is_writable(dirname($ConfigFile)) ) { + $file = file_get_contents('../includes/sitesettings.tpl'); + $cookielogins = ((isset($_POST["cookielogins"]) && $_POST["cookielogins"]=="yes") ? true : false); + $allowreg = ((isset($_POST["allowreg"]) && $_POST["allowreg"]=="yes") ? true : false); + + $find = array('%DBTYPE%', + '%ENCRYPT%', + '%TITLE%', + '%VER%', + '%DBSERVER%', + '%DBUSER%', + '%DBPASS%', + '%DBNAME%', + '%COOKIE%', + '%REG%', + '%HOME%', + '%HEADER%', + '%FOOTER%', + '%MASTERMAIL%', + '%BOTMAIL%', + '%SERVER%', + '%BASEPATH%', + '%FBASEPATH%'); + + $replace = array(GetVarValue($_POST['dbasetype']), + GetVarValue($_POST['encryption']), + GetVarValue($_POST['title']), + GetVarValue($_POST['version']), + GetVarValue($_POST['sqlserver']), + GetVarValue($_POST['sqluser']), + GetVarValue($_POST['sqlpassword']), + GetVarValue($_POST['sqldatabase']), + GetVarValue($cookielogins), + GetVarValue($allowreg), + GetVarValue($_POST['home']), + GetVarValue($_POST['header']), + GetVarValue($_POST['footer']), + GetVarValue($_POST['mailnotify']), + GetVarValue($_POST['mailfrom']), + GetVarValue($_POST['server']), + GetVarValue($_POST['basepath']), + GetVarValue($fbasepath)); + + $file = str_replace($find, $replace, $file); + $hfile = fopen("$ConfigFile",'w'); fwrite($hfile, $file); fclose($hfile); + + // We write the settings file before including globals.php + + include_once("$fbasepath/includes/globals.php"); + require_once("$fbasepath/includes/xmlModule.php"); + $base = xmlModule::createFromFile(dirname(__FILE__).'/openfirst.info.xml'); + + include_once($Header); + // This a series of statements, each of which are executed. If an error condition occurs, that + // branch is ran. + if (!$ogDB->createDB($ogSQLDatabase, $ogSQLTablePrefix)) { + // Do this as an optional root user? + echo '<p class="error">DB creation error: '.htmlentities($ogDB->errorString()).'</p>'; + } else if (($err = $base->install()) !== true) { + echo '<p class="error">Tables creation error: '.htmlentities($err).'</p>'; + echo '<pre>'.htmlentities($ogLastQuery).'</pre>'; + } else if (($ogUser = User::createNewUser('admin', 'openfirst')) == null) { + echo '<p class="error">Error creating user: '.htmlentities($ogDB->errorString()).'</p>'; + } else { + $ogUser->addGroup(ugADMIN); + $ogUser->saveData(); + echo("<div class=\"success\"><h1>openFIRST Software Configured</h1> + <p>If this page does not display errors elsewhere, then your openFIRST has now been successfully +configured. If there are errors, check your configuration options and try again. You may now +wish to change the permissions on <span class=\"file\">".htmlentities(basename($ConfigFile))."</span> to prevent unwanted changes +to the configuration options. You should be able to login using the username +<b class=\"user\">admin</b> and the password <b class=\"password\">openfirst</b>, if not, then either +the password for that account has been changed, or the MySQL settings are incorrect.</p>"); + echo '<p class="big">Continue to the <a href="'.htmlentities($BasePath).'/config/">administration page</a>.</p>'; + } + include_once($Footer); + die; + } else { +/* echo '<p class="error"><span class="file">'.htmlentities($ConfigFile).'</span> is not writable</p> +';*/ + include_once($header); + echo("<h1 class=\"error\">System Configuration Error</h1> +<p>Cannot write to configuration file. Please check permissions on <b>".htmlentities(basename($ConfigFile))."</b> and +ensure that the web user has the ability to write to this file.</p> + +<p>For unix, this would typically require the command: +<pre class=\"shell\">cd includes<br /> +chmod 666 \"".htmlentities(addslashes(basename($ConfigFile)))."\"</pre></p>"); + } + } else { + define('OPENFIRST_NO_INSTALLATION', true); +// Do form + include("../includes/globals.php"); + include($Header); + + // Detect default options + $basepath = substr($_SERVER["SCRIPT_NAME"], 0, -17); + $server = $_SERVER["SERVER_NAME"]; + $fbasepath = realpath(dirname(__FILE__).'/..'); + $ConfigFile = "$fbasepath/includes/sitesettings.php"; + + $sqlhost = 'localhost'; + if(ini_get('mysql.default_host') != '') { + $sqlhost = ini_get('mysql.default_host'); + } + + $sqluser = 'sqluser'; + if(ini_get('mysql.default_user') != '') { + $sqluser = ini_get('mysql.default_user'); + } + + $sqlpass = ''; + if(ini_get('mysql.default_password') != '') { + $sqlpass = ini_get('mysql.default_password'); + } + + $mailto = $_SERVER['SERVER_ADMIN']; + $mailfrom = "openfirst@$server"; + + // User is visiting the configuration page, present them with a form + // of options to fill out. +?> +<div class="center"> + <h1>Base Configuration</h1> + <p class="center" style="max-width: 50em;">Congratulations for choosing openFIRST! Please proceed through + this setup wizard to get your new openFIRST portal software set up and working + quickly and painlessly. Also please make sure that before installing this script + that you have the appropriate permissions set on <span class="file"><?php echo htmlentities($ConfigFile) ?></span> (if not + then you may receive a collection of errors after submitting this form).</p> +</div> + <form action="<?php echo htmlentities("http://$server$basepath/config/first.php"); ?>" method="post"> + <fieldset> + <legend>Database Setup</legend> + <dl class="setup"> + <dd> + <label for="dbasetype">Database Type</label> + <input type='hidden' name='peardb' value='false'> + <select name="dbasetype"> + <option value="mysql" selected="selected">MySQL</option> + <option value="mssql">Microsoft SQL</option> + <option value="odbc">ODBC</option> + </select> + </dd> + <dt></dt> + <dd> + <label for="title">Title of Website</label> + <input type="text" name="title" value="openFIRST" /> + </dd> + <dt></dt> + <dd> + <label for="version">Version of Website</label> + <input type="text" name="version" value="1.0" /> + </dd> + <dt></dt> + <dd> + <label for="sqlserver">Database Server Address</label> + <input type="text" name="sqlserver" value="<?php echo htmlentities($sqlhost); ?>" /> + </dd> + <dt></dt> + <dd> + <label for="sqluser">Database User Name</label> + <input type="text" name="sqluser" value="<?php echo htmlentities($sqluser); ?>" /> + </dd> + <dt></dt> + <dd> + <label for="sqlpassword">Database User Password</label> + <input type="password" name="sqlpassword" value="<?php echo htmlentities($sqlpass); ?>" /> + </dd> + <dt></dt> + <dd> + <label for="sqldatabase">Database Name</label> + <input type="text" name="sqldatabase" value="openfirst" /> + </dd> + <dt>(I this database does not already exist, the user entered above must have access to create it.</dt> + </dl> + </fieldset> + + <fieldset> + <legend>Linking Options</legend> + <dl class="setup"> + <dd> + <label for="home">Home Site</label> + <input type="text" name="home" value="http://<?php echo htmlentities("$server$basepath"); ?>" /> + </dd> + <dt>This address will used for linking to your main page.</dt> + <dd> + <label for="header">Header file</label> + <input type="text" name="header" value="<?php echo htmlentities(realpath("$fbasepath/style/headers.php")); ?>" /> + </dd> + <dt>This should be a full system path, eg, + <code class="file">c:\inetpub\wwwroot\openfirst\style\header.php</code> or + <code class="file">/home/site/public_html/openfirst/style/headers.php</code> + </dt> + <dd> + <label for="footer">Footer file</label> + <input type="text" name="footer" value="<?php echo htmlentities(realpath("$fbasepath/style/footers.php")); ?>" /> + </dd> + <dt>This should be a full system path, eg, + <code class="file">c:\inetpub\wwwroot\openfirst\style\footers.php</code> or + <code class="file">/home/site/public_html/openfirst/style/footers.php</code> + </dt> + <dd> + <label for="">The server name</label> + <input type="text" name="server" value="http://<?php echo htmlentities($server); ?>" /> + <span class="warning">Must not have a trailing slash and must include a protocol.</span> + </dd> + <dt>eg, <code class="url"><b>http://openfirst.sourceforge.net</b>/openfirst</code></dt> + <dd> + <label for="basepath">URL base path</label> + <input type="text" name="basepath" value="<?php echo htmlentities($basepath); ?>" /> + <span class="warning">Must not have a trailing slash.</span> + </dd> + <dt>ie. example: <code class="url">http://openfirst.sourceforge.net<b>/openfirst</b></code>) this should + always have a beginning slash but no ending slash. (If openFIRST is in the root directory, then leave blank.) + </dt> + <dd> + <label for="fbasepath">File system path</label> + <input type="text" name="fbasepath" value="<?php echo htmlentities($fbasepath); ?>" /> + <span class="warning">Must not have a trailing slash.</span> + </dd> + <dt>eg, <code class="file">/home/openfirst/htdocs/openfirst</code> + or <code class="file">c:\inetpub\wwwroot\openfirst</code>) this should not have a ending slash.</dt> + </dl> + </fieldset> + + <fieldset> + <legend>Security Options</legend> + <dl class="setup"> + <dd> + <label for="">Hashing method</label> + <select name="encryption"> + <option value='md5' selected='selected'>MD5 Message-Digest Algorithm</option> + <option value='crypt'>Standard Unix DES-based encryption algorthm</option> + <option value='crc32'>crc32 Polynomial</option> + <option value='sha1'>US Secure Hash Algorithm 1 (sha1)</option> + </select> + </dd> + <dt>If you are migrating from an existing system, this should be the same encryption + style that system uses, otherwise all users will have to reset their password; otherwise, in + most cases the default option is fine.</dt> + <dd> + <label for="cookielogins">Allow users to save their passwords?</label> + <input type="checkbox" name="cookielogins" id="cookielogins" value="yes" checked />Allowed + </dd> + <dt>This feature uses cookies to automatically log in users into the openFIRST portal.</dt> + <dd> + <label for="allowreg">Allow users to register on the portal?</label> + <input type="checkbox" name="allowreg" id="allowreg" value="yes" />Allowed + </dd> + <dt>Enabling this option will allow users to register on the website and log in to access the + members area. Be careful when using this option.</dt> + </dl> + </fieldset> + + <fieldset> + <legend>Mailing Options</legend> + <dl class="setup"> + <dd> + <label for="mailnotify">Mail Notification</label> + <input type="text" name="mailnotify" value="<?php echo htmlentities($mailto); ?>" /> + </dd> + <dt>The e-mail address used to notify you when significant events occur.</dt> + <dd> + <label for="mailfrom">Mail From</label> + <input type="text" name="mailfrom" value="<?php echo htmlentities($mailfrom); ?>" /> + </dd> + <dt>The e-mail address that mail from the openFIRST site should appear to be from.</dt> + </dl> + </fieldset> + <div class="center big"><button class="center big" type="submit">Set up openFIRST!</button></div> +</form> +<?php + } + if(is_readable("style/footers.php")) { + include_once("style/footers.php"); + } else { + include_once("../style/footers.php"); + } +?> Property changes on: tags/openfirst.base-2.0a1/config/first.php ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.base-2.0a1/config/index.php =================================================================== --- tags/openfirst.base-2.0a1/config/index.php (rev 0) +++ tags/openfirst.base-2.0a1/config/index.php 2006-06-21 15:33:45 UTC (rev 166) @@ -0,0 +1,104 @@ +<?php +/* + * openFIRST.base - config/index.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: Tim Ginn <tim...@po...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + // Purpose: Provide a control center for configuration activities. + + include("../includes/globals.php"); + $ogUser->mustBeAdmin(); + include_once($Header); + +?> +<h1>openFIRST Configuration Area</h1> + +<table width="50%"> + <tr> + <th>Administrative Options</th> + </tr> +</table> + +<?php + if(is_writable("$fBasePath/includes/sitesettings.php") && file_exists("$fBasePath/includes/first.php")) { + echo "<p class='warning'><strong>Warning</strong>: Your + <span class='file'>sitesettings.php</span> file is writable by the web user. + Also, <span class='file'>first.php</span> is still in existance. After you + have setup the openFIRST web portal system, it is safe to remove + <span class='file'>first.php</span>. Removing + <span class='file'>first.php</span> prevents the accidental reset of + configuration information and prevents external users from altering your + configuration. For maximal security, you should also change the filesystem + permissions so that <span class='file'>sitesettings.php</span> is not + writable by the web user."; + } elseif(is_writable("$fBasePath/includes/sitesettings.php")) { + echo "<p class='warning'><strong>Warning</strong>: Your + <span class='file'>sitesettings.php</span> file is writable by the web user. + For maximal security, you should change the filesystem permissions to correct + this.</p>"; + } +?> + +<table> + <tr> + <th colspan="2">Statistics</th> + </tr> + <tr> + <th>Database Version</th><td> +<?php + // The statistics feature is loosely inspired by that of phpBB. + echo $ogDB->getVersion(); +?></td> + </tr> + <tr> + <th>Database Size</th><td> +<?php + echo $ogDB->getSize(); +?> + </td> + </tr> + <tr><th>openFIRST Project Statistics</th><td> + <script type='application/x-javascript' src='http://bugzilla.openfirst.org/openfirst/bugcrushers.php?style=js'></script> +</td></tr> +</table> + +<br/> +<table width="50%"> + <tr> + <td valign="top"><a href="install.php">Install Modules</a></td> + <td valign="top">Required to install several new openFIRST modules.</td> + </tr> + <tr> + <td valign="top"><a href="modules.php">Module Administrator</a></td> + <td valign="top">Required to manage openFIRST modules.</td> + </tr> + <tr> + <td width="30%" valign="top"><a href="version.php">Version Check</a></td> + <td width="70%" valign="top">Ensure that your version of the openFIRST and + modules are up to date</td> + </tr> +</table> +<?php + include($Footer); +?> \ No newline at end of file Property changes on: tags/openfirst.base-2.0a1/config/index.php ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/x-php Name: svn:eol-style + native Added: tags/openfirst.base-2.0a1/config/install.php =================================================================== --- tags/openfirst.base-2.0a1/config/install.php (rev 0) +++ tags/openfirst.base-2.0a1/config/install.php 2006-06-21 15:33:45 UTC (rev 166) @@ -0,0 +1,127 @@ +<?php +/* + * openFIRST.base - config/install.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: Tim Ginn <tim...@po...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ +// Purpose: set up OpenFIRST modules + + include_once("../includes/globals.php"); + $ogUser->mustBeAdmin(); + include_once('xmlModule.php'); + include_once($Header); + + ini_set("max_execution_time", 600); // Bypass problem of timeouts when many modules are installed + // 10 minutes should be sufficient, even for remote database servers + + ?> + +<h1>Module Installer</h1> +<p>This utility will create the tables required for certain openFIRST components + to run.<br /> + Select the modules you would like to install.<br /> + <br /> + <span style="color:red;">Once installed, modules must be enabled from the <a href="modules.php"><strong>Module + Administrator</strong></a>.</span></p> + +<?php + +$InstalledModules = $ogModuleManager->getDirs(); + +$Modules = array(); + +$files = glob("$fBasePath/*/openfirst.info.xml"); +if (count($files) < 1) { + ?> +<p class="error">You have no modules to install or are misconfigured. You can go to <a href="http://www.openfirst.org/">openFIRST.org</a> + to download them.</p> + <?php + include($Footer); + die(); +} + +foreach($files as $file) { + $mod = xmlModule::createFromFile($file); + $Modules[$mod->getDir()] = $mod; +} + +?> +<form method="post" action="install.php"> +<table id="moduleInstall"> +<colgroup> + <col /> + <col /> + <col class="file" /> +</colgroup> +<colgroup> + <col /> +</colgroup> +<thead> +<tr><th colspan="3">Module</th><th>Status</th></tr> +</thead> +<tbody> +<?php + +# Get the meta data +foreach($Modules as $mod) { + if ($mod->isBase()) { + // Hide openfirst.base + continue; + } + + $dir = $mod->getDir(); + + $WasInstalled = $IsInstalled = in_array($dir, $InstalledModules); + $InstallFailed = $UpgradeFailed = false; + if(isset($_POST[$dir]) && $_POST[$dir] == "on" && !$IsInstalled) { + if (($err = $mod->install()) === true) { + $IsInstalled = true; + } else { + $InstallFailed = true; + } + } + echo '<tr><td><input type="checkbox" name="'.htmlentities($dir).'" '; + if ($IsInstalled) echo 'checked="checked" '; + echo '/><label for="'.htmlentities($dir).'">'.htmlentities($mod->getName()).'</label></td> + <td>('.htmlentities($mod->getVersion()).')'.'</td> + <td>'.htmlentities($dir)."</td>"; + + if ($IsInstalled && !$WasInstalled) { + echo('<td style="background-color: lime; color:black; font-weight:bold;">Module Installation succeeded!</td></tr>'); + } else if ($InstallFailed) { + echo('<td style="background-color: red; color:black; font-weight:bold;"... [truncated message content] |
From: <ast...@us...> - 2006-06-21 15:00:15
|
Revision: 165 Author: astronouth7303 Date: 2006-06-21 07:59:58 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=165&view=rev Log Message: ----------- Missed a dir. Property Changed: ---------------- / Property changes on: ___________________________________________________________________ Name: bugtraq:label + Bug #: Name: bugtraq:url + http://bugzilla.openfirst.org/show_bug.cgi?id=%BUGID% Name: bugtraq:number + true Name: bugtraq:logregex + [Bb][Uu][Gg] #(\d+)(,? ?#'(\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:44:23
|
Revision: 164 Author: astronouth7303 Date: 2006-06-20 19:44:19 -0700 (Tue, 20 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=164&view=rev Log Message: ----------- oops, this shouldn't be here! Removed Paths: ------------- trunk/src/includes/functions/wysiwyg/gecko/js/.dhtmleditorgecko.js.swp Deleted: trunk/src/includes/functions/wysiwyg/gecko/js/.dhtmleditorgecko.js.swp =================================================================== (Binary files differ) 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-21 02:14:47
|
Revision: 162 Author: astronouth7303 Date: 2006-06-20 19:14:41 -0700 (Tue, 20 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=162&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 Testing mismatched EOLs Added Paths: ----------- trunk/src/includes/functions.php Added: trunk/src/includes/functions.php =================================================================== --- trunk/src/includes/functions.php (rev 0) +++ trunk/src/includes/functions.php 2006-06-21 02:14:41 UTC (rev 162) @@ -0,0 +1,251 @@ +<?php +/* + * openFIRST.base - includes/functions.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: Provide global functions to openFIRST + +/** Replaces standard vars in config text. + * Currently includes $BasePath, $fBasePath, + * $StylePath, $fStylePath, $ModPath, and $fModPath. + */ +function ofReplaceVariables($text, $ModuleDir = false) { + if ($ModuleDir === false) { + global $CurrentModule; + if (is_object($CurrentModule)) $ModuleDir == $CurrentModule->getDir(); + } + + global $BasePath, $fBasePath, $StylePath, $fStylePath; + + $find = array('$BasePath', + '$fBasePath', + '$StylePath', + '$fStylePath', + '$ModPath', + '$fModPath', + '$DirName' + ); + + $replace = array($BasePath, + $fBasePath, + $StylePath, + $fStylePath, + "$BasePath/$ModuleDir", + "$fBasePath/$ModuleDir", + "$ModuleDir" + ); + + return str_ireplace($find, $replace, $text); + +} + + +/** Formats the size of computer data. + * Uses the units: KB, MB, GB, etc. + * Uses 1024 definition (1 KB = 1024 B) + */ +function ofFormatSize($size) { + $base = 1024; + $units = array( + 'B', + 'KB', + 'MB', + 'GB', + 'TB', + 'PB', + 'EB', + 'ZB', + 'YB', + 'XB', + false, + 'VB' + ); + + $units = array_reverse($units, true); + reset($units); + while (list($pow, $unit) = each($units)) { + if ($unit === false) continue; + if ($size >= pow($base, $pow)) { + $unitsize = $size/pow($base, $pow); + $unitsize = rtrim($unitsize, '0'); + if (substr($unitsize, -1) == '.') $unitsize = substr($unitsize, 0, -1); + return number_format($unitsize, 2, '.', '').' '.$unit; + } + } +} + +/** Strip line comment. + * Given a string and an array of commentors (in PHP, it would be array('#', '//')), + * remove all end-of-line comments. + * Now handles multiple lines + */ +function ofStripLineComment($commentors, $text) { + $rtn = array(); + $lines = explode(array("\r\n","\n","\r"), $text); + foreach($lines as $line) { + $parts = explode($commentors, $line, 2); + $rtn[] = $parts[0]; + } + return implode(PHP_EOL, $rtn); +} + +/** Converts input to boolean + * returns true on: yes, y, true, 1 + * returns false on: no, n, false, 0 + * returns nothing if neither (return;). + * if a value is in both $moretrue and $morefalse, it is treated as true + * case-insensitive + */ +function ofConvert2Bool($text, $moretrue=array(), $morefalse=array()) { + $yesvals = $moretrue; + $yesvals[] = 'yes'; + $yesvals[] = 'y'; + $yesvals[] = 'true'; + $yesvals[] = '1'; + + $novals = $morefalse; + $novals[] = 'no'; + $novals[] = 'n'; + $novals[] = 'false'; + $novals[] = '0'; + + foreach ($yesvals as $val) { + if (strcasecmp($text, $val) == 0) return true; + } + foreach ($novals as $val) { + if (strcasecmp($text, $val) == 0) return false; + } + return; +} + +/** Returns the last key of an array. + * @param $array array The array to get the key of + */ +function ofGetLastKey($array) { + return end(array_keys($array)); +} + +/** Returns an associative array based on the given URL query. + * @todo Add arrays + */ +function ofDecodeQuery($query) { + $parts = explode('&', $query); + $rtn = array(); + foreach($parts as $part) { + $items = explode('=', $part, 2); + $name = rawurldecode($items[0]); + $value = true; + if (isset($items[1])) $value = rawurldecode($items[1]); + $rtn[$name] = $value; + } + return $rtn; +} + +/** Reverse of ofDecodeQuery() + * @todo Add arrays + */ +function ofEncodeQuery($vars) { + $rtn = array(); + foreach($vars as $name => $val) { + $str = rawurlencode($name); + if ($val !== true) { + $str .= '='.rawurlencode($val); + } + $rtn[] = $str; + } + return implode('&', $rtn); +} + +/** Uses var_dump() to output a variable, except appropriately cleaned. + */ +function ofDebugVar($var) { + ob_start(); + var_dump($var); + $text = ob_get_clean(); + echo '<pre>'; + echo htmlentities($text); + echo "</pre>\n"; +} + +/** Compares 2 module versions + * + * The versions strings are either PHP-formatted versions, or "CVS" (case + * sensitive) to mean development (use dates instead). (See version_compare() + * <http://us3.php.net/manual/en/function.version-compare.php> for the details + * as to how to format versions.) + * + * It is always assumed that dev is newer if compared to a version. + * + * @param string $left The left-hand version + * @param string $right The right-hand version + * @return mixed -1 if the left is older, 1 if the right is older, 0 if they + * are equal, and false if dates should be used (ie, they're both CVS). + */ +function ofCompareVersions($left, $right) { + if ($left == 'CVS' && $right == 'CVS') { + return false; + } + version_compare($left, $right); +} + +function ofStackTrace() { + echo '<pre class="stack-trace">'; + debug_print_backtrace(); + echo '</pre>'; +} + +/** Check magic quotes settings + */ +function ofCheckMagicQuotes() { + set_magic_quotes_runtime(false); //Back, you foul demons! Back! Back! + ini_set('magic_quotes_sybase', false); + if (get_magic_quotes_gpc()) { // Gah! + // Quite making our lives difficult!! + ofFixMagicQuotes($_GET); + ofFixMagicQuotes($_POST); + ofFixMagicQuotes($_COOKIE); + } +} + +/** Fixes magic quote munging! + */ +function ofFixMagicQuotes(&$arr) { + $sybase = (bool)ini_get('magic_quotes_sybase'); + if (count($arr) <= 0) return; + foreach( $arr as $key => $val ) { + if( is_array( $val ) ) { + ofFixMagicQuotes( $arr[$key] ); + } else if (is_string($val)) { + if ($sybase) { + // We really should just die() here and make them get a decent configuration. + $arr[$key] = str_replace("''", "'", $val); + } else { + $arr[$key] = stripslashes( $val ); + } + } + } +} +?> \ No newline at end of file Property changes on: trunk/src/includes/functions.php ___________________________________________________________________ Name: of:module + openfirst.base Name: svn:mime-type + text/x-php Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |