openfirst-cvscommit Mailing List for openFIRST (Page 20)
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: Tim G. <xt...@us...> - 2005-07-10 22:33:16
|
Update of /cvsroot/openfirst/www/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5411 Modified Files: index.php Log Message: Make FIRST Blogs logo a link. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/index.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** index.php 10 Jul 2005 22:22:13 -0000 1.6 --- index.php 10 Jul 2005 22:33:05 -0000 1.7 *************** *** 1,3 **** ! <img src="http://blog.openfirst.org/img/first_blog_logo.gif" alt="FIRST Blogs"> <p>Do you have a blog? Want to learn more about other people in <acronym title="For Inspiration and Recognition of Science and Technology">FIRST</acronym>? See the <a href="http://blog.openfirst.org/">FIRST Blogs community</a>. Get your blog listed by e-mailing <a href="mailto: ti...@op...">ti...@op...</a> with the address to your feed (or if you're unsure about what a feed is, the address of your main blog page).</p> --- 1,3 ---- ! <a href="http://blog.openfirst.org/"><img src="http://blog.openfirst.org/img/first_blog_logo.gif" alt="FIRST Blogs" style="border: 0px;"></a> <p>Do you have a blog? Want to learn more about other people in <acronym title="For Inspiration and Recognition of Science and Technology">FIRST</acronym>? See the <a href="http://blog.openfirst.org/">FIRST Blogs community</a>. Get your blog listed by e-mailing <a href="mailto: ti...@op...">ti...@op...</a> with the address to your feed (or if you're unsure about what a feed is, the address of your main blog page).</p> |
From: Tim G. <xt...@us...> - 2005-07-10 22:31:38
|
Update of /cvsroot/openfirst/www/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4528 Modified Files: headers.php Log Message: Remove border; centre powered by logo. Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/www/inc/headers.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** headers.php 10 Jul 2005 22:22:13 -0000 1.16 --- headers.php 10 Jul 2005 22:31:28 -0000 1.17 *************** *** 97,101 **** <td width="20%" valign="top" style="background-image: url('/image/back-lighter.gif'); "><table width="100%" border="0"> <tr> ! <td><a href="http://www.openfirst.org/"><img src="http://blog.openfirst.org/img/poweredby-openfirst.gif" alt="openFIRST Powered"></a></td> </tr> <tr> --- 97,101 ---- <td width="20%" valign="top" style="background-image: url('/image/back-lighter.gif'); "><table width="100%" border="0"> <tr> ! <td><center><a href="http://www.openfirst.org/"><img src="http://blog.openfirst.org/img/poweredby-openfirst.gif" alt="openFIRST Powered" style="border: 0px;"></a></center></td> </tr> <tr> |
From: Tim G. <xt...@us...> - 2005-07-10 22:22:24
|
Update of /cvsroot/openfirst/www/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31196/inc Modified Files: headers.php Log Message: Add openFIRST Powered Logo, reference to the new FIRST Blogs project (blog.openfirst.org) Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/www/inc/headers.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** headers.php 3 Jul 2005 04:02:14 -0000 1.15 --- headers.php 10 Jul 2005 22:22:13 -0000 1.16 *************** *** 96,99 **** --- 96,102 ---- <tr> <td width="20%" valign="top" style="background-image: url('/image/back-lighter.gif'); "><table width="100%" border="0"> + <tr> + <td><a href="http://www.openfirst.org/"><img src="http://blog.openfirst.org/img/poweredby-openfirst.gif" alt="openFIRST Powered"></a></td> + </tr> <tr> <td><strong><img alt="" src="/image/help.png"> What is *************** *** 101,105 **** </tr> <tr> ! <td><strong> </strong>openFIRST is an integrated set of modules which may be used together to create or enhance a web site. It is directed towards teams participating in the FIRST competition.</td> --- 104,108 ---- </tr> <tr> ! <td>openFIRST is an integrated set of modules which may be used together to create or enhance a web site. It is directed towards teams participating in the FIRST competition.</td> *************** *** 144,148 **** <!--img src="/image/powered_pear.png" alt="PEAR"><br>(Pear components are optional)--></center> <p><b>Bugzilla Stats</b> ! <!-- <br> <iframe src="http://bugzilla.openfirst.org/openfirst/bugcrushers.php?style=yes" --- 147,151 ---- <!--img src="/image/powered_pear.png" alt="PEAR"><br>(Pear components are optional)--></center> <p><b>Bugzilla Stats</b> ! <!-- TODO: Replace this with a javascript thingie. <br> <iframe src="http://bugzilla.openfirst.org/openfirst/bugcrushers.php?style=yes" |
From: Tim G. <xt...@us...> - 2005-07-10 22:22:23
|
Update of /cvsroot/openfirst/www/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31196/htdocs Modified Files: index.php Log Message: Add openFIRST Powered Logo, reference to the new FIRST Blogs project (blog.openfirst.org) Index: index.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/index.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** index.php 29 Jun 2005 12:00:33 -0000 1.5 --- index.php 10 Jul 2005 22:22:13 -0000 1.6 *************** *** 1,2 **** --- 1,4 ---- + <img src="http://blog.openfirst.org/img/first_blog_logo.gif" alt="FIRST Blogs"> + <p>Do you have a blog? Want to learn more about other people in <acronym title="For Inspiration and Recognition of Science and Technology">FIRST</acronym>? See the <a href="http://blog.openfirst.org/">FIRST Blogs community</a>. Get your blog listed by e-mailing <a href="mailto: ti...@op...">ti...@op...</a> with the address to your feed (or if you're unsure about what a feed is, the address of your main blog page).</p> <h1><img |
From: Tim G. <xt...@us...> - 2005-07-03 04:02:33
|
Update of /cvsroot/openfirst/www/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25372 Modified Files: headers.php Log Message: Apparently the 'copy & paste' source from FIRST Top Sites only works as is if you want to violate W3C standards *sigh* I'll report the bug to them. Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/www/inc/headers.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** headers.php 29 Jun 2005 11:37:19 -0000 1.14 --- headers.php 3 Jul 2005 04:02:14 -0000 1.15 *************** *** 140,144 **** <br> <img alt="" src="/image/tested/sambar.png"> <img alt="" src="/image/tested/php.png"><br> ! / <br><a href="http://www.firsttopsite.com/index.php?id=92" target="_blank"><img src="http://www.firsttopsite.com/img.php?id=92" border="0"></a> <img alt="" src="/image/tested/mysql.png"><br>(Other databases are supported)<br> <!--img src="/image/powered_pear.png" alt="PEAR"><br>(Pear components are optional)--></center> --- 140,144 ---- <br> <img alt="" src="/image/tested/sambar.png"> <img alt="" src="/image/tested/php.png"><br> ! / <br><a href="http://www.firsttopsite.com/index.php?id=92" target="_blank"><img src="http://www.firsttopsite.com/img.php?id=92" border="0" alt="0"></a> <img alt="" src="/image/tested/mysql.png"><br>(Other databases are supported)<br> <!--img src="/image/powered_pear.png" alt="PEAR"><br>(Pear components are optional)--></center> |
From: Tim G. <xt...@us...> - 2005-07-02 15:58:49
|
Update of /cvsroot/openfirst/www/htdocs/doc/tut/howto In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28117 Modified Files: preface.php technology.php Log Message: Write a few more of those unwritten sections of the Contributor's HOWTO Index: preface.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/preface.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** preface.php 2 Jul 2005 15:31:05 -0000 1.4 --- preface.php 2 Jul 2005 15:58:39 -0000 1.5 *************** *** 22,26 **** <h3>Applies to: All</h3> ! <p>...</p> <h2><span id="conventionsused">Conventions Used</span></h2> --- 22,26 ---- <h3>Applies to: All</h3> ! <p>... [Refer to the table of contents at the moment] ...</p> <h2><span id="conventionsused">Conventions Used</span></h2> Index: technology.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/technology.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** technology.php 2 Jul 2005 15:31:06 -0000 1.7 --- technology.php 2 Jul 2005 15:58:39 -0000 1.8 *************** *** 23,28 **** <h2><span id="webbrowser">The web browser</span></h2> <h3>Applies to: All</h3> ! <p>...</p> <h2><span id="html">HTML</span></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Webmaster, Documentation Writer</h3> --- 23,42 ---- <h2><span id="webbrowser">The web browser</span></h2> <h3>Applies to: All</h3> ! <p>Since the openFIRST project is inherently web-based it is expected that contributors have at least a basic understanding of the usage of a web browser. It is recommended especially for those working with code/html to make use of the <a href="http://www.mozilla.org/firefox/">Firefox</a> web browser. There are a wide variety of plugins which are of use to website developers and general users (in Firefox, see <b>Tools</b> - <b>Extensions</b> - <b>Get More Extensions</b> for a catalogue of the available Firefox extensions).</p> + <h3>Applies to: Developer, Patch Writer, Webmaster, Documentation Writer</h3> + <p>Plugins that are of particular note for Firefox include these:</p> + + <ul> + <li><b>Live HTTP Headers</b> - View HTTP headers of a page and while browsing.</li> + <li><b>netcrafttoolbar</b> - Blocks Phishing Sites (can also be used to look up in depth information about where a website is hosted, by whom, etc which may be of particular use for detecting obscure configuration problems that are applicable to all users of a particular web host).</li> + <li><b>Checky</b> - Easy to use interface to many free and commercial online validation and analysis services. Validate and analyse HTML, XHTML, CSS, RDF, RSS, XML, WAI, Section 508, P3P, hyperlinks, metadata and many more. Adds a context and tools menu.</li> + <li><b>Fangs Screen Reader Emulator</b> - Renders a text version of a web page similar to screen reader output.</li> + <li><b>LinkChecker</b> - Checks the validity of links on any webpage.</li> + <li><b>View formatted source</b> - View formatted and rendered source code</li> + <li><b>View Rendered Source</b> - Displays Color Coded and Styled Rendered Source</li> + <li><b>Web Developer</b> - Adds a menu and a toolbar with various web developer tools.</li> + </ul> + <h2><span id="html">HTML</span></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Webmaster, Documentation Writer</h3> *************** *** 68,72 **** <h2><span id="php">PHP</span></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Release Technician, Webmaster</h3> ! <p>...</p> <h2><span id="asp">ASP</span></h2> --- 82,86 ---- <h2><span id="php">PHP</span></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Release Technician, Webmaster</h3> ! <p><a href="http://www.php.net/">PHP</a> is the language used to write the vast majority of the code that openFIRST uses/distributes. When writing/patching openFIRST software it may be assumed that the user is using at least PHP version 4. PHP 3 is no longer officially supported by the openFIRST project. Some of the openFIRST servers run PHP4 versions and others run PHP5; when writing code, you should test with both PHP4 and PHP5.</p> <h2><span id="asp">ASP</span></h2> *************** *** 76,81 **** <h2><span id="database">MySQL/Database Software</span></h2> <h3>Applies to: Administrator, Developer, Webmaster</h3> ! <p>...</p> ! <h2><span id="cvs">CVS</span></h2> <h3>Applies to: Administrator, Developer, Documentation Writer, Release Technician, Webmaster</h3> --- 90,97 ---- <h2><span id="database">MySQL/Database Software</span></h2> <h3>Applies to: Administrator, Developer, Webmaster</h3> ! <p>When programming, use the openFIRST database wrappers rather than directly using any database-specific functions.</p> ! ! <p>...</p> ! <h2><span id="cvs">CVS</span></h2> <h3>Applies to: Administrator, Developer, Documentation Writer, Release Technician, Webmaster</h3> |
From: Tim G. <xt...@us...> - 2005-07-02 15:31:19
|
Update of /cvsroot/openfirst/www/htdocs/doc/tut/howto In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13954 Modified Files: atmosphere.php glossary.php history.php information.php preface.php roles.php technology.php Log Message: Get rid of long standing annoying 'seisure-causing-flicker-style' effect on mouse over of titles. Index: history.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/history.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** history.php 29 Dec 2004 17:01:37 -0000 1.2 --- history.php 2 Jul 2005 15:31:05 -0000 1.3 *************** *** 4,8 **** </ul> ! <h2><a name="generaloverview">General Overview</a></h2> <h3>Applies to: All</h3> <p>openFIRST is an initiative to help FIRST Robotics web sites prosper by aiding their developers with design and construction of components for their team's web site. To do this, we have developed open-source components using PHP and ASP using the services of SourceForge.net.</p> --- 4,8 ---- </ul> ! <h2><span id="generaloverview">General Overview</span></h2> <h3>Applies to: All</h3> <p>openFIRST is an initiative to help FIRST Robotics web sites prosper by aiding their developers with design and construction of components for their team's web site. To do this, we have developed open-source components using PHP and ASP using the services of SourceForge.net.</p> Index: technology.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/technology.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** technology.php 24 May 2005 22:57:48 -0000 1.6 --- technology.php 2 Jul 2005 15:31:06 -0000 1.7 *************** *** 14,18 **** </ul> ! <h2><a name="email">E-mail</a></h2> <h3>Applies to: All</h3> --- 14,18 ---- </ul> ! <h2><span id="email">E-mail</span></h2> <h3>Applies to: All</h3> *************** *** 21,29 **** <p>A series of mailing lists is also maintained. See the <a href="information.php#mailinglists">Mailing lists heading</a> of the <a href="information.php">Information and Resources section</a> for more information about these mailing lists.</p> ! <h2><a name="webbrowser">The web browser</a></h2> <h3>Applies to: All</h3> <p>...</p> ! <h2><a name="html">HTML</a></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Webmaster, Documentation Writer</h3> <p>The openFIRST project tries when possible to produce valid HTML (matching the particular doctype of any given document). In most cases, the standard currently used is HTML 4. Pages should have valid HTML and should be checked with the W3C HTML Validator at <a href="http://validator.w3.org/">http://validator.w3.org/</a> or a similar tool. It is suggested that you be familiar with HTML, and the HTML standard itself available at <a href="http://w3.org/MarkUp/">http://w3.org/MarkUp/</a> rather than just blindly following a validator.</p> --- 21,29 ---- <p>A series of mailing lists is also maintained. See the <a href="information.php#mailinglists">Mailing lists heading</a> of the <a href="information.php">Information and Resources section</a> for more information about these mailing lists.</p> ! <h2><span id="webbrowser">The web browser</span></h2> <h3>Applies to: All</h3> <p>...</p> ! <h2><span id="html">HTML</span></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Webmaster, Documentation Writer</h3> <p>The openFIRST project tries when possible to produce valid HTML (matching the particular doctype of any given document). In most cases, the standard currently used is HTML 4. Pages should have valid HTML and should be checked with the W3C HTML Validator at <a href="http://validator.w3.org/">http://validator.w3.org/</a> or a similar tool. It is suggested that you be familiar with HTML, and the HTML standard itself available at <a href="http://w3.org/MarkUp/">http://w3.org/MarkUp/</a> rather than just blindly following a validator.</p> *************** *** 31,35 **** <p>The openFIRST project site, and the software created by the project should be as accessible as possible. More information about making web pages accessible is available from the Web Accessibility Initiative at <a href="http://w3.org/WAI/">http://w3.org/WAI/</a>. An Accessibility testing tool called Bobby™ is available at <a href="http://bobby.watchfire.com/bobby/html/en/index.jsp">http://bobby.watchfire.com/bobby/html/en/index.jsp</a>.</p> ! <h2><a name="css">CSS</a></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Webmaster</h3> <p>The openFIRST project tries when possible to sue valid CSS when possible. The current version of the Cascading Style Sheets standard that is used is CSS 2. It is recommended that stylesheets and pages be checked using the CSS validator at <a href="http://jigsaw.w3.org/css-validator/">http://jigsaw.w3.org/css-validator/</a> or a similar tool. It is suggested that you use the CSS standard for reference; the standard is available at <a href="http://w3.org/Style/CSS/">http://w3.org/Style/CSS/</a>.</p> --- 31,35 ---- <p>The openFIRST project site, and the software created by the project should be as accessible as possible. More information about making web pages accessible is available from the Web Accessibility Initiative at <a href="http://w3.org/WAI/">http://w3.org/WAI/</a>. An Accessibility testing tool called Bobby™ is available at <a href="http://bobby.watchfire.com/bobby/html/en/index.jsp">http://bobby.watchfire.com/bobby/html/en/index.jsp</a>.</p> ! <h2><span id="css">CSS</span></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Webmaster</h3> <p>The openFIRST project tries when possible to sue valid CSS when possible. The current version of the Cascading Style Sheets standard that is used is CSS 2. It is recommended that stylesheets and pages be checked using the CSS validator at <a href="http://jigsaw.w3.org/css-validator/">http://jigsaw.w3.org/css-validator/</a> or a similar tool. It is suggested that you use the CSS standard for reference; the standard is available at <a href="http://w3.org/Style/CSS/">http://w3.org/Style/CSS/</a>.</p> *************** *** 37,41 **** <p>Where possible, CSS should be used to make web pages more accessible. More information about making web pages accessible is available from the Web Accessibility Initiative at <a href="http://w3.org/WAI/">http://w3.org/WAI/</a>. An Accessibility testing tool called Bobby™ is available at <a href="http://bobby.watchfire.com/bobby/html/en/index.jsp">http://bobby.watchfire.com/bobby/html/en/index.jsp</a>.</p> ! <h2><a name="bugzilla">Bugzilla</a></h2> <h3>Applies to: Administrator, Developer, Documentation Writer, Patch Writer, Webmaster</h3> <p>Bugzilla (<a href="http://bugzilla.openfirst.org/">http://bugzilla.openfirst.org/</a>) keeps track of bug reports and feature requests for both source code and documentation. Issues of an administrative nature may also be posted on Bugzilla. As a contributor to the openFIRST project you should register for a Bugzilla account using your @openfirst.org e-mail address. Only e-mail addresses that are @openfirst.org show up in the bug crusher statistics on the openfirst.org site and installations of the openFIRST System. To be credited as having crushed a bug, the bug must be finished (eg marked CLOSED, FIXED, etc.) but not DUPLICATE and the bug must be assigned to you at the time it is closed.</p> --- 37,41 ---- <p>Where possible, CSS should be used to make web pages more accessible. More information about making web pages accessible is available from the Web Accessibility Initiative at <a href="http://w3.org/WAI/">http://w3.org/WAI/</a>. An Accessibility testing tool called Bobby™ is available at <a href="http://bobby.watchfire.com/bobby/html/en/index.jsp">http://bobby.watchfire.com/bobby/html/en/index.jsp</a>.</p> ! <h2><span id="bugzilla">Bugzilla</span></h2> <h3>Applies to: Administrator, Developer, Documentation Writer, Patch Writer, Webmaster</h3> <p>Bugzilla (<a href="http://bugzilla.openfirst.org/">http://bugzilla.openfirst.org/</a>) keeps track of bug reports and feature requests for both source code and documentation. Issues of an administrative nature may also be posted on Bugzilla. As a contributor to the openFIRST project you should register for a Bugzilla account using your @openfirst.org e-mail address. Only e-mail addresses that are @openfirst.org show up in the bug crusher statistics on the openfirst.org site and installations of the openFIRST System. To be credited as having crushed a bug, the bug must be finished (eg marked CLOSED, FIXED, etc.) but not DUPLICATE and the bug must be assigned to you at the time it is closed.</p> *************** *** 43,47 **** <p>Automated bug reports are filed by openFIRST installations and are clearly marked as such. You, as one who browses Bugzilla should change the subject of Automated bug reports to better reflect their content and/or mark them as DUPLICATE if applicable. Automated bug reports are reported through <a href="http://bugzilla.openfirst.org/openfirst/">http://bugzilla.openfirst.org/openfirst/</a> and bug crusher statistics are available at <a href="http://bugzilla.openfirst.org/openfirst/bugcrushers.php">http://bugzilla.openfirst.org/openfirst/bugcrushers.php</a>. The style sheet and design information for the Bugzilla site is present within the CVS repository in the <b>htdocs/bugzilla</b> directory of the <b>www</b> module. Upgrades to Bugzilla may require remaking these templates in order for the Bugzilla site to function as expected.</p> ! <h2><a name="updatesystem">openFIRST Update System</a></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Webmaster</h3> --- 43,47 ---- <p>Automated bug reports are filed by openFIRST installations and are clearly marked as such. You, as one who browses Bugzilla should change the subject of Automated bug reports to better reflect their content and/or mark them as DUPLICATE if applicable. Automated bug reports are reported through <a href="http://bugzilla.openfirst.org/openfirst/">http://bugzilla.openfirst.org/openfirst/</a> and bug crusher statistics are available at <a href="http://bugzilla.openfirst.org/openfirst/bugcrushers.php">http://bugzilla.openfirst.org/openfirst/bugcrushers.php</a>. The style sheet and design information for the Bugzilla site is present within the CVS repository in the <b>htdocs/bugzilla</b> directory of the <b>www</b> module. Upgrades to Bugzilla may require remaking these templates in order for the Bugzilla site to function as expected.</p> ! <h2><span id="updatesystem">openFIRST Update System</span></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Webmaster</h3> *************** *** 50,54 **** <p>The openFIRST Update System resides in the <b>update</b> module of the openFIRST CVS repository.</p> ! <h2><a name="shellaccess">Shell Access</a></h2> <h3>Applies to: Administrator, Developer, Webmaster</h3> <p>All developers, webmasters, and administrators are able to access the SourceForge.net Project Shell Server via SSH at <b>shell.sourceforge.net</b>. A suitable SSH client for Windows is PuTTY, and is available at <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a>; many other operating systems already include an SSH client, on UNIX or Linux consult <tt>man ssh</tt> for more information. To login, you should use your SourceForge.net username and passsword. It is recommended, for the sake of convenience, that upon logging into the system for the first time, you perform these command:</p> --- 50,54 ---- <p>The openFIRST Update System resides in the <b>update</b> module of the openFIRST CVS repository.</p> ! <h2><span id="shellaccess">Shell Access</span></h2> <h3>Applies to: Administrator, Developer, Webmaster</h3> <p>All developers, webmasters, and administrators are able to access the SourceForge.net Project Shell Server via SSH at <b>shell.sourceforge.net</b>. A suitable SSH client for Windows is PuTTY, and is available at <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a>; many other operating systems already include an SSH client, on UNIX or Linux consult <tt>man ssh</tt> for more information. To login, you should use your SourceForge.net username and passsword. It is recommended, for the sake of convenience, that upon logging into the system for the first time, you perform these command:</p> *************** *** 66,82 **** <p>...</p> ! <h2><a name="php">PHP</a></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Release Technician, Webmaster</h3> <p>...</p> ! <h2><a name="asp">ASP</a></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Release Technician, Webmaster</h3> <p>Very little of the project is written in ASP at the moment, and the ASP versions have been unmaintained for quite some time now. The original creator of the ASP modules graduated before the project had any real plan for replacing graduated developers. Ideally we'd find someone who could take them over, but the focus is on the PHP versions of modules. If you happen to be interested in bringing the ASP versions up to date (with features that parallel the PHP versions of modules) contact an Administrator.</p> ! <h2><a name="database">MySQL/Database Software</a></h2> <h3>Applies to: Administrator, Developer, Webmaster</h3> <p>...</p> ! <h2><a name="cvs">CVS</a></h2> <h3>Applies to: Administrator, Developer, Documentation Writer, Release Technician, Webmaster</h3> <p>CVS is used by the openFIRST project for version control. It allows multiple contributors to work on the project at one time without interfering with one another's work. CVS can merge different changes to a file in an intelligent way; but it's merging attempts should be verfied manually just to be certain. To login to CVS, use your SourceForge.net username and password.</p> --- 66,82 ---- <p>...</p> ! <h2><span id="php">PHP</span></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Release Technician, Webmaster</h3> <p>...</p> ! <h2><span id="asp">ASP</span></h2> <h3>Applies to: Administrator, Developer, Patch Writer, Release Technician, Webmaster</h3> <p>Very little of the project is written in ASP at the moment, and the ASP versions have been unmaintained for quite some time now. The original creator of the ASP modules graduated before the project had any real plan for replacing graduated developers. Ideally we'd find someone who could take them over, but the focus is on the PHP versions of modules. If you happen to be interested in bringing the ASP versions up to date (with features that parallel the PHP versions of modules) contact an Administrator.</p> ! <h2><span id="database">MySQL/Database Software</span></h2> <h3>Applies to: Administrator, Developer, Webmaster</h3> <p>...</p> ! <h2><span id="cvs">CVS</span></h2> <h3>Applies to: Administrator, Developer, Documentation Writer, Release Technician, Webmaster</h3> <p>CVS is used by the openFIRST project for version control. It allows multiple contributors to work on the project at one time without interfering with one another's work. CVS can merge different changes to a file in an intelligent way; but it's merging attempts should be verfied manually just to be certain. To login to CVS, use your SourceForge.net username and password.</p> *************** *** 92,101 **** <p>Important Note: the <b>config</b> module is <b>depreciated</b>. Please use the base module instead. That is to say, <b>don't use the config module</b>. The idea behind the move from <b>config</b> to <b>base</b> is that using <b>base</b> a common index page could be created, and resources such as images that are used throughout the site could be in one place (Release technicians rename base to openfirst when distributing the base package. On the webserver, modules are installed within the root of the base module [eg openfirst/guestbook or base/guestbook]. This is why some modules may <b>appear</b> to use the config module, when in fact they do not). The reason that the <b>config</b> module is still in CVS, is because very old versions of openFIRST used to use it. SourceForge doesn't allow the removal of modules; and even if it did, config is part of the history of the project. <b>config</b> remains in the CVS repository on the off chance that someone running a very old version may want to upgrade/patch their install, in which case the <b>config</b> module provides all of the patches up until the point that it became unsupported (which was after the last official release that made use of the module).</p> ! <h2><a name="profiles">Volunteer Profiles</a></h2> <h3>Applies to: All</h3> <p>Those wishing to create a <a href="http://www.openfirst.org/developers/">volunteer profile</a> (previously called developer profile) must check out the www module from CVS and add their profile to the www/htdocs/developer directory then edit index.php of that directory in order to have their profile listed. Alternatively, contact a developer/administrator to have them do this on your behalf. Information about the "Hackergotchi" section of the Volunteer Profiles follows.</p> ! <h2><a name="hackergotchi">Hackergotchi</a></h2> <h3>Applies to: All</h3> <p>Those wishing to create a "Hackergotchi" character may do so. The dimensions recommended are 80 pixels by 80 pixels. To have the Hackergotchi used for news postings, etc. on the main site, using CVS add it to the www/htdocs/image/hackergotchi directory. The Hackergotchi image should be named using your SourceForge.net username and should be of type PNG, JPEG or GIF; the filename must be all lowercase letters. A tutorial on how to create Hackergotchi images is available at <a href="http://www.livejournal.com/users/wouterverhelst/21322.html">http://www.livejournal.com/users/wouterverhelst/21322.html</a>.</p> --- 92,101 ---- <p>Important Note: the <b>config</b> module is <b>depreciated</b>. Please use the base module instead. That is to say, <b>don't use the config module</b>. The idea behind the move from <b>config</b> to <b>base</b> is that using <b>base</b> a common index page could be created, and resources such as images that are used throughout the site could be in one place (Release technicians rename base to openfirst when distributing the base package. On the webserver, modules are installed within the root of the base module [eg openfirst/guestbook or base/guestbook]. This is why some modules may <b>appear</b> to use the config module, when in fact they do not). The reason that the <b>config</b> module is still in CVS, is because very old versions of openFIRST used to use it. SourceForge doesn't allow the removal of modules; and even if it did, config is part of the history of the project. <b>config</b> remains in the CVS repository on the off chance that someone running a very old version may want to upgrade/patch their install, in which case the <b>config</b> module provides all of the patches up until the point that it became unsupported (which was after the last official release that made use of the module).</p> ! <h2><span id="profiles">Volunteer Profiles</span></h2> <h3>Applies to: All</h3> <p>Those wishing to create a <a href="http://www.openfirst.org/developers/">volunteer profile</a> (previously called developer profile) must check out the www module from CVS and add their profile to the www/htdocs/developer directory then edit index.php of that directory in order to have their profile listed. Alternatively, contact a developer/administrator to have them do this on your behalf. Information about the "Hackergotchi" section of the Volunteer Profiles follows.</p> ! <h2><span id="hackergotchi">Hackergotchi</span></h2> <h3>Applies to: All</h3> <p>Those wishing to create a "Hackergotchi" character may do so. The dimensions recommended are 80 pixels by 80 pixels. To have the Hackergotchi used for news postings, etc. on the main site, using CVS add it to the www/htdocs/image/hackergotchi directory. The Hackergotchi image should be named using your SourceForge.net username and should be of type PNG, JPEG or GIF; the filename must be all lowercase letters. A tutorial on how to create Hackergotchi images is available at <a href="http://www.livejournal.com/users/wouterverhelst/21322.html">http://www.livejournal.com/users/wouterverhelst/21322.html</a>.</p> Index: atmosphere.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/atmosphere.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** atmosphere.php 29 Dec 2004 17:01:37 -0000 1.2 --- atmosphere.php 2 Jul 2005 15:31:05 -0000 1.3 *************** *** 6,10 **** </ul> ! <h2><a name="thepeople">The people</a></h2> <h3>Applies to: All</h3> --- 6,10 ---- </ul> ! <h2><span id="thepeople">The people</span></h2> <h3>Applies to: All</h3> *************** *** 13,22 **** <p>It's worth noting that all developers are students (and not University/College mentors) on FIRST Robotics, or FIRST Lego League teams; this is one of the fundamental ideals within openFIRST-- that the project must be student-driven. It's likely that the people you meet doing openFIRST could be the people you go to University or College with in the future, and that they will become your friends. They can also be the people you decide to join or form future projects/companies with. openFIRST isn't an end in itself, it's a starting point. The web portal itself is a starting point for a website and a community; and the relationships with the other contributors can be a starting point for future endeavours.</p> ! <h2><a name="theenvironment">The environment</a></h2> <h3>Applies to: All</h3> <p>openFIRST has little to no unified physical presence; this can be tough, but it also has advantages. Most contributions are made Online, through the Internet. It is possible to spread the word of openFIRST through teaching sessions, and workshops; doing so can provide a personal connection to the project. You can choose where you want to work on the project, and the amount of work you do. The environment is generally pretty calm and laid back (except around release times). People tend to be grateful for your contributions and we <b>do</b> notice the behind the scenes work.</p> ! <h2><a name="thelearning">The learning</a></h2> <h3>Applies to: All</h3> --- 13,22 ---- <p>It's worth noting that all developers are students (and not University/College mentors) on FIRST Robotics, or FIRST Lego League teams; this is one of the fundamental ideals within openFIRST-- that the project must be student-driven. It's likely that the people you meet doing openFIRST could be the people you go to University or College with in the future, and that they will become your friends. They can also be the people you decide to join or form future projects/companies with. openFIRST isn't an end in itself, it's a starting point. The web portal itself is a starting point for a website and a community; and the relationships with the other contributors can be a starting point for future endeavours.</p> ! <h2><span id="theenvironment">The environment</span></h2> <h3>Applies to: All</h3> <p>openFIRST has little to no unified physical presence; this can be tough, but it also has advantages. Most contributions are made Online, through the Internet. It is possible to spread the word of openFIRST through teaching sessions, and workshops; doing so can provide a personal connection to the project. You can choose where you want to work on the project, and the amount of work you do. The environment is generally pretty calm and laid back (except around release times). People tend to be grateful for your contributions and we <b>do</b> notice the behind the scenes work.</p> ! <h2><span id="thelearning">The learning</span></h2> <h3>Applies to: All</h3> Index: information.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/information.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** information.php 2 Jul 2005 15:14:31 -0000 1.5 --- information.php 2 Jul 2005 15:31:05 -0000 1.6 *************** *** 6,15 **** </ul> ! <h2><a name="generalinformation">General Information</a></h2> <h3>Applies to: All</h3> <p>The openFIRST Portal System is an integrated set of modules which may be used together to create or enhance a web site. It is directed towards teams participating in the FIRST competition. It is developed by a number of students from FIRST Robotics competition teams.</p> ! <h2><a name="urls">URLs</a></h2> <h3>Applies to: All</h3> <p>The openFIRST Project has several official and unofficial URLs. The list, including who they are relevant to, follows:</p> --- 6,15 ---- </ul> ! <h2><span id="generalinformation">General Information</span></h2> <h3>Applies to: All</h3> <p>The openFIRST Portal System is an integrated set of modules which may be used together to create or enhance a web site. It is directed towards teams participating in the FIRST competition. It is developed by a number of students from FIRST Robotics competition teams.</p> ! <h2><span id="urls">URLs</span></h2> <h3>Applies to: All</h3> <p>The openFIRST Project has several official and unofficial URLs. The list, including who they are relevant to, follows:</p> *************** *** 23,27 **** </ul> ! <h2><a name="mailinglists">Mailing lists</a></h2> <h3>Applies to: All</h3> --- 23,27 ---- </ul> ! <h2><span id="mailinglists">Mailing lists</span></h2> <h3>Applies to: All</h3> Index: preface.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/preface.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** preface.php 30 Dec 2004 01:53:12 -0000 1.3 --- preface.php 2 Jul 2005 15:31:05 -0000 1.4 *************** *** 8,17 **** </ul> ! <h2><a name="prerequisites">Prerequisites</a></h2> <h3>Applies to: All</h3> <p>To contribute to the openFIRST project, you require at least a basic knowledge in one or more of the following subject areas: English, e-mail, a web browser, HTML, CSS, Bugzilla, PHP, MySQL (and/or other database software), CVS. Aside from that, you should be able to work independently and as part of a team with whom you will have little or no physical contact. Communications skills are very important, and are arguably more important than raw coding ability. In general, the more technically adept you are, the more options are available for you to choose how you'd like to contribute. However, if you're not all that technically adept it may be reassuring to know that it is certainly possible to make a valuable, lasting contribution to openFIRST without writing a single line of code. It is certainly possible to work in complete isolation from the rest of the openFIRST team, and only submit patches to the source code, or documentation, or do publicity work; but, I wouldn't recommend it.</p> ! <h2><a name="approach">Approach</a></h2> <h3>Applies to: All</h3> <p>For the most part, this document is broken down into two main sections. The first section is general information that is useful background knowledge for all contributors; I would suggest that everyone read this part. The second situation is oriented around specific roles that you may wish to take as a contributor. A brief description of all of the roles is provided at the beginning of this section, and I would suggest that you read the information for all roles that sound appealing to you. In general, the brief descriptions provide as much information about the role as someone not considering taking it on would need. All sections of this document are clearly marked as to what roles they pertain to.</p> --- 8,17 ---- </ul> ! <h2><span id="prerequisites">Prerequisites</span></h2> <h3>Applies to: All</h3> <p>To contribute to the openFIRST project, you require at least a basic knowledge in one or more of the following subject areas: English, e-mail, a web browser, HTML, CSS, Bugzilla, PHP, MySQL (and/or other database software), CVS. Aside from that, you should be able to work independently and as part of a team with whom you will have little or no physical contact. Communications skills are very important, and are arguably more important than raw coding ability. In general, the more technically adept you are, the more options are available for you to choose how you'd like to contribute. However, if you're not all that technically adept it may be reassuring to know that it is certainly possible to make a valuable, lasting contribution to openFIRST without writing a single line of code. It is certainly possible to work in complete isolation from the rest of the openFIRST team, and only submit patches to the source code, or documentation, or do publicity work; but, I wouldn't recommend it.</p> ! <h2><span id="approach">Approach</span></h2> <h3>Applies to: All</h3> <p>For the most part, this document is broken down into two main sections. The first section is general information that is useful background knowledge for all contributors; I would suggest that everyone read this part. The second situation is oriented around specific roles that you may wish to take as a contributor. A brief description of all of the roles is provided at the beginning of this section, and I would suggest that you read the information for all roles that sound appealing to you. In general, the brief descriptions provide as much information about the role as someone not considering taking it on would need. All sections of this document are clearly marked as to what roles they pertain to.</p> *************** *** 19,28 **** <p>In terms of the approach that is taken to the openFIRST project itself, what the project is trying to create is software that is specialized for FIRST teams, with easily-modifyable code that follows standard conventions. The approach we take is to create a completely student-designed and built website. All code that leaves the project targetted to end users (that is, packaged modules) is completely student-created. A potential problem with this, is that there is guaranteed to be a fairly high developer turnover rate, and that no single developer is a student long enough to see the openFIRST project from start to finish. The approach that the project takes to deal with this issue is to have other people work from the foundation that the people who have since graduated built with guidance and mentorship by previous developers. The openFIRST approach isn't to merely package and integrate disparate software from other Open Source or proprietary sources into a connected system, it's to create a new system.</p> ! <h2><a name="summaryoftopics">Summary of Topics</a></h2> <h3>Applies to: All</h3> <p>...</p> ! <h2><a name="conventionsused">Conventions Used</a></h2> <h3>Applies to: All</h3> --- 19,28 ---- <p>In terms of the approach that is taken to the openFIRST project itself, what the project is trying to create is software that is specialized for FIRST teams, with easily-modifyable code that follows standard conventions. The approach we take is to create a completely student-designed and built website. All code that leaves the project targetted to end users (that is, packaged modules) is completely student-created. A potential problem with this, is that there is guaranteed to be a fairly high developer turnover rate, and that no single developer is a student long enough to see the openFIRST project from start to finish. The approach that the project takes to deal with this issue is to have other people work from the foundation that the people who have since graduated built with guidance and mentorship by previous developers. The openFIRST approach isn't to merely package and integrate disparate software from other Open Source or proprietary sources into a connected system, it's to create a new system.</p> ! <h2><span id="summaryoftopics">Summary of Topics</span></h2> <h3>Applies to: All</h3> <p>...</p> ! <h2><span id="conventionsused">Conventions Used</span></h2> <h3>Applies to: All</h3> Index: roles.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/roles.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** roles.php 5 Jan 2005 19:13:59 -0000 1.3 --- roles.php 2 Jul 2005 15:31:05 -0000 1.4 *************** *** 11,15 **** </ul> ! <h2><a name="outline">Brief Outline of the Roles</a></h2> <h3>Applies to: All</h3> --- 11,15 ---- </ul> ! <h2><span id="outline">Brief Outline of the Roles</span></h2> <h3>Applies to: All</h3> *************** *** 30,34 **** <p><b>Webmaster</b> - Webmaster positions are open to anyone who meets the requirements of the position. A person in the webmaster position is responsible for maintaining and updating the <a href="http://www.openfirst.org/">openfirst.org</a> project site and/or other sites operated by the openFIRST project.</p> ! <h2><a name="administrator">Administrator</a></h2> <h3>Applies to: Administrator</h3> <p>Please read the Administrator section of the Brief Outline above before reading this section.</p> --- 30,34 ---- <p><b>Webmaster</b> - Webmaster positions are open to anyone who meets the requirements of the position. A person in the webmaster position is responsible for maintaining and updating the <a href="http://www.openfirst.org/">openfirst.org</a> project site and/or other sites operated by the openFIRST project.</p> ! <h2><span id="administrator">Administrator</span></h2> <h3>Applies to: Administrator</h3> <p>Please read the Administrator section of the Brief Outline above before reading this section.</p> *************** *** 38,42 **** <p>Please also read the parts of the <a href="technology.php">Technology Section</a> relevant to the Administrator role.</p> ! <h2><a name="developer">Developer (open to students only)</a></h2> <h3>Applies to: Developer</h3> <p>Please read the Developer section of the Brief Outline above before reading this section.</p> --- 38,42 ---- <p>Please also read the parts of the <a href="technology.php">Technology Section</a> relevant to the Administrator role.</p> ! <h2><span id="developer">Developer (open to students only)</span></h2> <h3>Applies to: Developer</h3> <p>Please read the Developer section of the Brief Outline above before reading this section.</p> *************** *** 46,50 **** <p>Please also read the parts of the <a href="technology.php">Technology Section</a> relevant to the Developer role.</p> ! <h2><a name="documentationwriter">Documentation Writer</a></h2> <h3>Applies to: Documentation Writer</h3> <p>Please read the Documentation Writer section of the Brief Outline above before reading this section.</p> --- 46,50 ---- <p>Please also read the parts of the <a href="technology.php">Technology Section</a> relevant to the Developer role.</p> ! <h2><span id="documentationwriter">Documentation Writer</span></h2> <h3>Applies to: Documentation Writer</h3> <p>Please read the Documentation Writer section of the Brief Outline above before reading this section.</p> *************** *** 56,60 **** <p>Please also read the parts of the <a href="technology.php">Technology Section</a> relevant to the Documentation Writer role.</p> ! <h2><a name="patchwriter">Patch Writer (open to students only)</a></h2> <h3>Applies to: Patch Writer</h3> <p>Please read the Patch Writer section of the Brief Outline above before reading this section.</p> --- 56,60 ---- <p>Please also read the parts of the <a href="technology.php">Technology Section</a> relevant to the Documentation Writer role.</p> ! <h2><span id="patchwriter">Patch Writer (open to students only)</span></h2> <h3>Applies to: Patch Writer</h3> <p>Please read the Patch Writer section of the Brief Outline above before reading this section.</p> *************** *** 64,68 **** <p>Please also read the parts of the <a href="technology.php">Technology Section</a> relevant to the Patch Writer role.</p> ! <h2><a name="publicity">Publicity</a></h2> <h3>Applies to: Publicity</h3> <p>Please read the Publicity section of the Brief Outline above before reading this section.</p> --- 64,68 ---- <p>Please also read the parts of the <a href="technology.php">Technology Section</a> relevant to the Patch Writer role.</p> ! <h2><span id="publicity">Publicity</span></h2> <h3>Applies to: Publicity</h3> <p>Please read the Publicity section of the Brief Outline above before reading this section.</p> *************** *** 72,76 **** <p>You may also wish to read the parts of the <a href="technology.php">Technology Section</a> relevant to the Publicity role. You may or may not have to actually use any of these technologies depending on the method you choose to pursue for publicising the openFIRST project; but, it having a working knowledge of them may be useful. Alternatively, you may wish to use the technology section only as a reference.</p> ! <h2><a name="releasetechnician">Release Technician</a></h2> <h3>Applies to: Release Technician</h3> <p>Please read the Release Technician section of the Brief Outline above before reading this section.</p> --- 72,76 ---- <p>You may also wish to read the parts of the <a href="technology.php">Technology Section</a> relevant to the Publicity role. You may or may not have to actually use any of these technologies depending on the method you choose to pursue for publicising the openFIRST project; but, it having a working knowledge of them may be useful. Alternatively, you may wish to use the technology section only as a reference.</p> ! <h2><span id="releasetechnician">Release Technician</span></h2> <h3>Applies to: Release Technician</h3> <p>Please read the Release Technician section of the Brief Outline above before reading this section.</p> *************** *** 80,84 **** <p>Please also read the parts of the <a href="technology.php">Technology Section</a> relevant to the Release Technician role.</p> ! <h2><a name="webmaster">Webmaster</a></h2> <h3>Applies to: Webmaster</h3> <p>Please read the Webmaster section of the Brief Outline above before reading this section.</p> --- 80,84 ---- <p>Please also read the parts of the <a href="technology.php">Technology Section</a> relevant to the Release Technician role.</p> ! <h2><span id="webmaster">Webmaster</span></h2> <h3>Applies to: Webmaster</h3> <p>Please read the Webmaster section of the Brief Outline above before reading this section.</p> Index: glossary.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/glossary.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** glossary.php 30 Dec 2004 01:53:12 -0000 1.3 --- glossary.php 2 Jul 2005 15:31:05 -0000 1.4 *************** *** 3,9 **** <p>The glossary is arranged in alphabetical order. Sections and whom they are relevant are not marked, as it is assumed this will be used primarily as a reference when an unfamiliar term is mentioned elsewhere.</p> ! <p><a name="bz"><b>BZ</b></a> - BZ is often used as a short form to refer to the openFIRST project's Bugzilla Site (<a href="http://bugzilla.openfirst.org/">http://bugzilla.openfirst.org</a>).</p> ! <p><a name="module"><b>module</b><a> - when referring to the distributed modules (as in the modules produced by the openFIRST project), a module is a component of a complete site. People can pick and choose which modules to install from a wide selection (eg, a guestbook, a members area, etc.). When referring to CVS, a module is a given component within the project CVS archive. There are modules which are only used internally by the project (for example, there's a module that houses the website, and one that is home to the remote update server software). The internal modules, and some modules that may be in CVS are not necessarily packaged and distributed to external users; however, external users can access them if they're so inclined (but doing so requires the use of a CVS client).</p> <p><center><a href="technology.php">Previous</a> | <a href="index.php">Table of Contents</a> | <a href="index.php">Next</a></center></p> \ No newline at end of file --- 3,9 ---- <p>The glossary is arranged in alphabetical order. Sections and whom they are relevant are not marked, as it is assumed this will be used primarily as a reference when an unfamiliar term is mentioned elsewhere.</p> ! <p><span id="bz"><b>BZ</b></span> - BZ is often used as a short form to refer to the openFIRST project's Bugzilla Site (<a href="http://bugzilla.openfirst.org/">http://bugzilla.openfirst.org</a>).</p> ! <p><span id="module"><b>module</b><span> - when referring to the distributed modules (as in the modules produced by the openFIRST project), a module is a component of a complete site. People can pick and choose which modules to install from a wide selection (eg, a guestbook, a members area, etc.). When referring to CVS, a module is a given component within the project CVS archive. There are modules which are only used internally by the project (for example, there's a module that houses the website, and one that is home to the remote update server software). The internal modules, and some modules that may be in CVS are not necessarily packaged and distributed to external users; however, external users can access them if they're so inclined (but doing so requires the use of a CVS client).</p> <p><center><a href="technology.php">Previous</a> | <a href="index.php">Table of Contents</a> | <a href="index.php">Next</a></center></p> \ No newline at end of file |
From: Tim G. <xt...@us...> - 2005-07-02 15:18:42
|
Update of /cvsroot/openfirst/www/htdocs/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6489 Modified Files: index.php Log Message: Use relative path to HOWTO, since Dotster is holding openfirst.org hostage at the moment. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 25 May 2005 21:11:38 -0000 1.2 --- index.php 2 Jul 2005 15:18:33 -0000 1.3 *************** *** 21,25 **** <h2>Developer / Volunteer</h2> <ul> ! <li><a href="http://www.openfirst.org/doc/tut/howto/">openFIRST Contributor's HOWTO</a></li> <li><a href="/cvs/smartcvs/">SmartCVS Tutorial for access to the openFIRST CVS repository</a> (for SmartCVS version 2)</li> <li><a href="/cvs/smartcvs3/">SmartCVS Tutorial for access to the openFIRST CVS repository</a> (for SmartCVS version 3)</li> --- 21,25 ---- <h2>Developer / Volunteer</h2> <ul> ! <li><a href="/doc/tut/howto/">openFIRST Contributor's HOWTO</a></li> <li><a href="/cvs/smartcvs/">SmartCVS Tutorial for access to the openFIRST CVS repository</a> (for SmartCVS version 2)</li> <li><a href="/cvs/smartcvs3/">SmartCVS Tutorial for access to the openFIRST CVS repository</a> (for SmartCVS version 3)</li> |
From: Tim G. <xt...@us...> - 2005-07-02 15:14:41
|
Update of /cvsroot/openfirst/www/htdocs/doc/tut/howto In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4753 Modified Files: information.php Log Message: Add information about newly created openfirst-devel mailing list, add description of openfirst-webdev, close <li> tag on Chief Delphi resource Index: information.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/information.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** information.php 11 Jan 2005 01:11:08 -0000 1.4 --- information.php 2 Jul 2005 15:14:31 -0000 1.5 *************** *** 17,21 **** <li>All: <a href="http://www.openfirst.org/">http://www.openfirst.org/</a> - The openFIRST Home Page</li> <li>All: <a href="http://www.sourceforge.net/projects/openfirst/">http://www.sourceforge.net/projects/openfirst/</a> - The openFIRST Source Forge Project Page</li> ! <li>All: <a href="http://www.chiefdelphi.com/forums/forumdisplay.php?f=108">http://www.chiefdelphi.com/forums/forumdisplay.php?f=108</a> - The openFIRST Forum on Chief Delphi</a> <li>Adminstrator, Developer, Documentation Writer, Patch Writer:<a href="http://bugzilla.openfirst.org/">http://bugzilla.openfirst.org/</a> - The openFIRST Bugzilla Page</li> <li>Adminstrator, Developer:<a href="http://update.openfirst.org/">http://update.openfirst.org/</a> - The openFIRST Update Server</li> --- 17,21 ---- <li>All: <a href="http://www.openfirst.org/">http://www.openfirst.org/</a> - The openFIRST Home Page</li> <li>All: <a href="http://www.sourceforge.net/projects/openfirst/">http://www.sourceforge.net/projects/openfirst/</a> - The openFIRST Source Forge Project Page</li> ! <li>All: <a href="http://www.chiefdelphi.com/forums/forumdisplay.php?f=108">http://www.chiefdelphi.com/forums/forumdisplay.php?f=108</a> - The openFIRST Forum on Chief Delphi</a></li> <li>Adminstrator, Developer, Documentation Writer, Patch Writer:<a href="http://bugzilla.openfirst.org/">http://bugzilla.openfirst.org/</a> - The openFIRST Bugzilla Page</li> <li>Adminstrator, Developer:<a href="http://update.openfirst.org/">http://update.openfirst.org/</a> - The openFIRST Update Server</li> *************** *** 29,33 **** <ul> ! <li>Administrator, Developer, Webmaster: openfirst-webdev</li> <li>Administrator, Developer, Webmaster, Patch Writer, Documentation Writer: openfirst-cvscommit - Receives notifications whenever a commit is made to the openFIRST CVS repository, and is also informed about many Bugzilla bugs. The mailing list is also used by contributors who are working with some code to discuss specific issues with a particular change made in CVS.</li> </ul> --- 29,34 ---- <ul> ! <li>All: openfirst-devel - Overall list on which discussion of everything openFIRST (or FIRST related) may take place. Posts are allowed by those who are not subscribed and the list is unmoderated. All important changes to openFIRST should be discussed here, proposals for press releases/news bulletins should be sent here first (where precise wording, grammar, included facts and such can be properly refined).</li> ! <li>Administrator, Developer, Webmaster: openfirst-webdev - List used for discussion between those who are responsible for updating the project website.</li> <li>Administrator, Developer, Webmaster, Patch Writer, Documentation Writer: openfirst-cvscommit - Receives notifications whenever a commit is made to the openFIRST CVS repository, and is also informed about many Bugzilla bugs. The mailing list is also used by contributors who are working with some code to discuss specific issues with a particular change made in CVS.</li> </ul> |
From: Astronouth7303 <ast...@us...> - 2005-06-30 03:55:57
|
Update of /cvsroot/openfirst/base/includes/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23671/includes/functions Modified Files: debug.php Log Message: damn! was using $ofDB! Changed all instances of $ofDB to $ogDB Index: debug.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/functions/debug.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** debug.php 30 Jun 2005 02:30:45 -0000 1.4 --- debug.php 30 Jun 2005 03:55:47 -0000 1.5 *************** *** 38,46 **** global $DBaseType, $Encryption, $Title, $Version, $sqlServer, $sqlUser, $sqlPassword, $sqlDatabase, $sqlConnection, $PassSaveDisabled, $regEnabled, $Server, $BasePath, $fBasePath, $Home, ! $StylePath, $fStylePath, $Header, $Footer, $MailNotify, $MailFrom, $ofDB; global $osType, $currentmodule, $user, $lastquery, $usingPHP5; global $NO_ADD_BUG; ! $dberrno = $ofDB->errorNumber(); ! $dberror = $ofDB->errorString(); if(! function_exists("md5_file")) { --- 38,46 ---- global $DBaseType, $Encryption, $Title, $Version, $sqlServer, $sqlUser, $sqlPassword, $sqlDatabase, $sqlConnection, $PassSaveDisabled, $regEnabled, $Server, $BasePath, $fBasePath, $Home, ! $StylePath, $fStylePath, $Header, $Footer, $MailNotify, $MailFrom, $ogDB; global $osType, $currentmodule, $user, $lastquery, $usingPHP5; global $NO_ADD_BUG; ! $dberrno = $ogDB->errorNumber(); ! $dberror = $ogDB->errorString(); if(! function_exists("md5_file")) { |
From: Astronouth7303 <ast...@us...> - 2005-06-30 03:28:39
|
Update of /cvsroot/openfirst/awards In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9748/awards Modified Files: index.php Log Message: damn! was using $ofDB! Changed all instances of $ofDB to $ogDB Index: index.php =================================================================== RCS file: /cvsroot/openfirst/awards/index.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** index.php 30 Jun 2005 02:28:19 -0000 1.19 --- index.php 30 Jun 2005 03:28:30 -0000 1.20 *************** *** 27,46 **** $where = array(); if (isset($_REQUEST['id'])) { ! $where[] = $ofDB->quoteField('ID').'='.$ofDB->quoteData($_REQUEST['id']); } if (isset($_REQUEST['name'])) { ! $where[] = $ofDB->quoteField('AwardName').'='.$ofDB->quoteData($_REQUEST['name']); } if (isset($_REQUEST['event'])) { ! $where[] = $ofDB->quoteField('Event').'='.$ofDB->quoteData($_REQUEST['event']); } if (isset($_REQUEST['date'])) { ! $where[] = $ofDB->quoteField('Date').'='.$ofDB->quoteData($_REQUEST['date']); } if (isset($_REQUEST['recipient'])) { ! $where[] = $ofDB->quoteField('Recipient').'='.$ofDB->quoteData($_REQUEST['recipient']); } if (isset($_REQUEST['image'])) { ! $where[] = $ofDB->quoteField('Image').'='.$ofDB->quoteData($_REQUEST['image']); } if (isset($_REQUEST['first'])) { --- 27,46 ---- $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'])) { *************** *** 48,65 **** 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[] = $ofDB->quoteField('FIRSTAward').'='.$ofDB->quoteData($first); } // Query database for award information ! $sql = 'SELECT * FROM '.$ofDB->quoteTable('awards'). ((count($where) > 0) ? ' WHERE '.implode(' OR ', $where) : ''). ! ' ORDER BY '.$ofDB->quoteField('Date').' DESC'; ! $query = $ofDB->query($sql); if ($query === false) { ! echo $ofDB->errorNumber().': '.$ofDB->errorString().'<br />'; var_dump($sql); } ! $amount = $ofDB->numberOfRows($query); ?> <h1>Team Awards</h1> --- 48,65 ---- 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> *************** *** 78,82 **** <?php // Loop through awards ordered by date ! while($awards = $ofDB->fetchObject($query)){ ?> <tr valign="top"> --- 78,82 ---- <?php // Loop through awards ordered by date ! while($awards = $ogDB->fetchObject($query)){ ?> <tr valign="top"> *************** *** 98,102 **** <?php } ! $ofDB->freeResult($query); include_once($Footer); --- 98,102 ---- <?php } ! $ogDB->freeResult($query); include_once($Footer); |
From: Astronouth7303 <ast...@us...> - 2005-06-30 03:28:39
|
Update of /cvsroot/openfirst/awards/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9748/awards/admin Modified Files: index.php Log Message: damn! was using $ofDB! Changed all instances of $ofDB to $ogDB Index: index.php =================================================================== RCS file: /cvsroot/openfirst/awards/admin/index.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** index.php 30 Jun 2005 01:58:52 -0000 1.24 --- index.php 30 Jun 2005 03:28:30 -0000 1.25 *************** *** 79,93 **** if ($award != '' || $firstaward){ if($firstaward) { ! $sql = 'SELECT * FROM '.$ofDB->quoteTable('firstawards'). ! ' WHERE '.$ofDB->quoteField('AwardName').'='.$ofDB->quoteData($firstawardname). ' LIMIT 0,1'; ! $faq = $ofDB->query($sql); ! $fa = $ofDB->fetchObject($faq); $award = $fa->AwardName; $description = $fa->Description; } $sql = 'INSERT INTO '. ! $ofDB->quoteTable('awards').' SET '. ! $ofDB->quoteFDPairs(array('AwardName' => $award, 'FIRSTAward' => $firstaward, 'Event' => $event, --- 79,93 ---- 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, *************** *** 97,101 **** 'Recipient' => $recipient )); ! $ofDB->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>"); --- 97,101 ---- '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>"); *************** *** 141,147 **** // If the user has elected to modify an award, fill the form with those details. if(!$CreateNew) { ! $sql = 'SELECT * FROM '.$ofDB->quoteTable('awards'). ! ' WHERE '.$ofDB->quoteField('ID').'='.$ofDB->quoteData('AwardID'); ! $award = $ofDB->fetchObject($ofDB->query($sql)); $award->template = false; --- 141,147 ---- // 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; *************** *** 191,196 **** <select name='firstawardname'> <?php ! $faq = $ofDB->query('SELECT * FROM '.$ofDB->quoteTable('firstawards').' ORDER BY '.$ofDB->quoteField('AwardName')); ! while($fa = $ofDB->fetchObject($faq)) { echo "<option value='$fa->AwardName'"; if ($award->AwardName == $fa->AwardName) echo 'selected'; --- 191,196 ---- <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'; *************** *** 283,288 **** <?php // Loop through awards ordered by date ! $query = $ofDB->query('SELECT * FROM '.$ofDB->quoteTable('awards').' ORDER BY '.$ofDB->quoteName('Date')); ! while($awards = $ofDB->fetchObject($query)){ ?> <tr> --- 283,288 ---- <?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> *************** *** 296,300 **** <?php } ! if($ofDB->numberOfRows($query) == 0){ echo '<tr><td colspan="6">No awards entered!</td></tr>'; } --- 296,300 ---- <?php } ! if($ogDB->numberOfRows($query) == 0){ echo '<tr><td colspan="6">No awards entered!</td></tr>'; } |
From: Astronouth7303 <ast...@us...> - 2005-06-30 03:28:36
|
Update of /cvsroot/openfirst/base In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9709 Modified Files: index.php Log Message: damn! was using $ofDB! Changed all instances of $ofDB to $ogDB Index: index.php =================================================================== RCS file: /cvsroot/openfirst/base/index.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** index.php 30 Jun 2005 02:29:18 -0000 1.17 --- index.php 30 Jun 2005 03:28:26 -0000 1.18 *************** *** 69,73 **** #FIXME: Bad SQL handling ! if (is_readable("awards/") && $ofDB->numberOfRows($ofDB->query("SELECT * FROM ofirst_config WHERE modulename='awards' AND active='1';")) > 0) { $qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;"); if(ofirst_dbnum_rows($qu)!=0){ --- 69,73 ---- #FIXME: Bad SQL handling ! if (is_readable("awards/") && $ogDB->numberOfRows($ogDB->query("SELECT * FROM ofirst_config WHERE modulename='awards' AND active='1';")) > 0) { $qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;"); if(ofirst_dbnum_rows($qu)!=0){ |
From: Astronouth7303 <ast...@us...> - 2005-06-30 03:28:08
|
Update of /cvsroot/openfirst/base/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9432/includes Modified Files: Module.php auth.php db_setup.php globals.php Log Message: damn! was using $ofDB! Changed all instances of $ofDB to $ogDB Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/auth.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** auth.php 30 Jun 2005 02:34:55 -0000 1.3 --- auth.php 30 Jun 2005 03:27:57 -0000 1.4 *************** *** 52,59 **** function logout(){ ! global $ofDB; if(isset($GLOBALS["user"]->user)) { #FIXME: Bad SQL Handling ! $q = $ofDB->query("UPDATE ofirst_members SET authcode = NULL WHERE user='".$GLOBALS["user"]->user."';"); } } --- 52,59 ---- function logout(){ ! global $ogDB; if(isset($GLOBALS["user"]->user)) { #FIXME: Bad SQL Handling ! $q = $ogDB->query("UPDATE ofirst_members SET authcode = NULL WHERE user='".$GLOBALS["user"]->user."';"); } } *************** *** 105,109 **** function InitUser() { ! global $pass_save_disabled, $encryption, $user, $ofDB; // Determine if the user has already logged in with this session. If // they have, set variables indicating this. If they have not, make a --- 105,109 ---- function InitUser() { ! global $pass_save_disabled, $encryption, $user, $ogDB; // Determine if the user has already logged in with this session. If // they have, set variables indicating this. If they have not, make a *************** *** 126,132 **** #FIXME: Bad SQL handling ! $query = $ofDB->query("SELECT * FROM ofirst_members WHERE authcode='$authcode';"); ! if ($ofDB->errorNumber() == 0 && $ofDB->numberOfRows($query) == 1 && $authcode != 0 ) { ! $user = $ofDB->fetchObject($query); } else { unset($_SESSION['authcode']); --- 126,132 ---- #FIXME: Bad SQL handling ! $query = $ogDB->query("SELECT * FROM ofirst_members WHERE authcode='$authcode';"); ! if ($ogDB->errorNumber() == 0 && $ogDB->numberOfRows($query) == 1 && $authcode != 0 ) { ! $user = $ogDB->fetchObject($query); } else { unset($_SESSION['authcode']); *************** *** 137,144 **** if (isset($_POST["login"])){ #FIXME: Bad SQL handling ! $query = $ofDB->query("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';"); ! if ($ofDB->errorNumber() == 0) { ! $user = $ofDB->fetchObject($query); ! if ($ofDB->numberOfRows($query) == 1) { if (cryptpassword($_POST["password"], false, $user->password) == $user->password) { session_register("authcode"); --- 137,144 ---- if (isset($_POST["login"])){ #FIXME: Bad SQL handling ! $query = $ogDB->query("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';"); ! if ($ogDB->errorNumber() == 0) { ! $user = $ogDB->fetchObject($query); ! if ($ogDB->numberOfRows($query) == 1) { if (cryptpassword($_POST["password"], false, $user->password) == $user->password) { session_register("authcode"); *************** *** 146,150 **** $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr(gethostbyaddr($_SERVER["REMOTE_ADDR"]),0,40); #FIXME: Bad SQL handling ! $aquery = $ofDB->query("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); } else { unset($user); --- 146,150 ---- $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr(gethostbyaddr($_SERVER["REMOTE_ADDR"]),0,40); #FIXME: Bad SQL handling ! $aquery = $ogDB->query("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); } else { unset($user); *************** *** 157,164 **** #FIXME: Bad SQL handling ! $query = $ofDB->query("SELECT * FROM ofirst_members WHERE user='{$_POST['login']}';"); ! if ($ofDB->errorNumber() == 0) { ! $user = $ofDB->fetchObject($query); ! if ($ofDB->numberOfRows($query) == 1) { if (cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); --- 157,164 ---- #FIXME: Bad SQL handling ! $query = $ogDB->query("SELECT * FROM ofirst_members WHERE user='{$_POST['login']}';"); ! if ($ogDB->errorNumber() == 0) { ! $user = $ogDB->fetchObject($query); ! if ($ogDB->numberOfRows($query) == 1) { if (cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); *************** *** 166,170 **** $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).$_SERVER['REMOTE_ADDR']; #FIXME: Bad SQL handling ! $aquery = $ofDB->query("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); if(!isset($pass_save_disabled)){ if(isset($_POST["savepass"])&&$_POST["savepass"]="1"){ --- 166,170 ---- $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).$_SERVER['REMOTE_ADDR']; #FIXME: Bad SQL handling ! $aquery = $ogDB->query("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); if(!isset($pass_save_disabled)){ if(isset($_POST["savepass"])&&$_POST["savepass"]="1"){ *************** *** 191,195 **** #FIXME: Bad SQL handling $query = "UPDATE ofirst_members SET lastseen='" . date("h:i:s M d, Y") . "' WHERE user='$user->user';"; ! $q = $ofDB->query($query); unset($q); } --- 191,195 ---- #FIXME: Bad SQL handling $query = "UPDATE ofirst_members SET lastseen='" . date("h:i:s M d, Y") . "' WHERE user='$user->user';"; ! $q = $ogDB->query($query); unset($q); } Index: Module.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/Module.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Module.php 30 Jun 2005 02:34:55 -0000 1.4 --- Module.php 30 Jun 2005 03:27:57 -0000 1.5 *************** *** 36,49 **** */ /*public*/ function getIDFromDir($dir) { ! global $ofDB; #$dir = strtolower($dir); //Should I do this? if (!isset($this->dirs[$dir])) { ! $sql = 'SELECT '.$ofDB->quoteField('modulename'). ! ' FROM '.$ofDB->quoteTable('config'). ! ' WHERE '.$ofDB->quoteFDPairs(array('dir'=>$dir), ' AND '). ' LIMIT 0,1'; ! $res = $ofDB->query($sql); ! $row = $ofDB->fetchObject($res); ! $ofDB->freeResult($res); $this->dirs[$dir] = $row->modulename; } --- 36,49 ---- */ /*public*/ function getIDFromDir($dir) { ! global $ogDB; #$dir = strtolower($dir); //Should I do this? if (!isset($this->dirs[$dir])) { ! $sql = 'SELECT '.$ogDB->quoteField('modulename'). ! ' FROM '.$ogDB->quoteTable('config'). ! ' WHERE '.$ogDB->quoteFDPairs(array('dir'=>$dir), ' AND '). ' LIMIT 0,1'; ! $res = $ogDB->query($sql); ! $row = $ogDB->fetchObject($res); ! $ogDB->freeResult($res); $this->dirs[$dir] = $row->modulename; } *************** *** 52,65 **** /*public*/ function getDirsFromID($ID) { ! global $ofDB; if (!isset($this->ids[$ID])) { ! $sql = 'SELECT '.$ofDB->quoteField('dir'). ! ' FROM '.$ofDB->quoteTable('config'). ! ' WHERE '.$ofDB->quoteFDPairs(array('modulename'=>$ID), ' AND '); ! $res = $ofDB->query($sql); ! while ($row = $ofDB->fetchObject($res)) { $this->ids[$ID][] = $row->dir; } ! $ofDB->freeResult($res); } return $this->ids[$ID]; --- 52,65 ---- /*public*/ function getDirsFromID($ID) { ! global $ogDB; if (!isset($this->ids[$ID])) { ! $sql = 'SELECT '.$ogDB->quoteField('dir'). ! ' FROM '.$ogDB->quoteTable('config'). ! ' WHERE '.$ogDB->quoteFDPairs(array('modulename'=>$ID), ' AND '); ! $res = $ogDB->query($sql); ! while ($row = $ogDB->fetchObject($res)) { $this->ids[$ID][] = $row->dir; } ! $ogDB->freeResult($res); } return $this->ids[$ID]; *************** *** 102,110 **** function Module($dir) { ! global $ofDB; ! $sql = 'SELECT * FROM '.$ofDB->quoteTable('config').' WHERE '.$ofDB->quoteFDPairs(array('dir'=>$dir), ' AND ').' LIMIT 0,1'; ! $res = $ofDB->query($sql); ! $mod = $ofDB->fetchObject($res); ! $ofDB->freeResult($res); $this->mName = $mod->label; --- 102,110 ---- function Module($dir) { ! global $ogDB; ! $sql = 'SELECT * FROM '.$ogDB->quoteTable('config').' WHERE '.$ogDB->quoteFDPairs(array('dir'=>$dir), ' AND ').' LIMIT 0,1'; ! $res = $ogDB->query($sql); ! $mod = $ogDB->fetchObject($res); ! $ogDB->freeResult($res); $this->mName = $mod->label; *************** *** 129,133 **** $this->mActive = $mod->active; ! $ofDB->freeResult($res); } --- 129,133 ---- $this->mActive = $mod->active; ! $ogDB->freeResult($res); } Index: globals.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/globals.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** globals.php 30 Jun 2005 02:34:55 -0000 1.10 --- globals.php 30 Jun 2005 03:27:57 -0000 1.11 *************** *** 73,78 **** require_once('sitesettings.php'); ! $ofDB = new DataBase($DBaseType, $sqlServer, $sqlUser, $sqlPassword); ! $ofDB->selectDB($sqlDatabase); --- 73,78 ---- require_once('sitesettings.php'); ! $ogDB = new DataBase($DBaseType, $sqlServer, $sqlUser, $sqlPassword); ! $ogDB->selectDB($sqlDatabase); *************** *** 96,105 **** */ $ogModuleManager = new ModuleManager; ! $res = $ofDB->query('SELECT '.$ofDB->quoteField('dir'). ! ' FROM '.$ofDB->quoteTable('config')); ! if($ofDB->errorNumber() != 0) { trigger_error('Error while listing modules!', E_USER_ERROR); } ! while($mod =& $ofDB->fetchObject($res)) { $dir = $mod->dir; $module =& $ogModuleManager->addModuleFromDir($dir); --- 96,105 ---- */ $ogModuleManager = new ModuleManager; ! $res = $ogDB->query('SELECT '.$ogDB->quoteField('dir'). ! ' FROM '.$ogDB->quoteTable('config')); ! if($ogDB->errorNumber() != 0) { trigger_error('Error while listing modules!', E_USER_ERROR); } ! while($mod =& $ogDB->fetchObject($res)) { $dir = $mod->dir; $module =& $ogModuleManager->addModuleFromDir($dir); *************** *** 116,120 **** } } ! $ofDB->freeResult($res); if (!preg_match('/\A[a-zA-Z0-9]+\z/',session_id())) { --- 116,120 ---- } } ! $ogDB->freeResult($res); if (!preg_match('/\A[a-zA-Z0-9]+\z/',session_id())) { Index: db_setup.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/db_setup.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_setup.php 31 May 2005 22:16:58 -0000 1.3 --- db_setup.php 30 Jun 2005 03:27:57 -0000 1.4 *************** *** 1,112 **** ! <?php ! /* ! * openFIRST.base - config/db_setup.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: Allow easy and stable configuration of database tables. This ! // includes both setup and modification of said tables. ! require_once('dbase.php'); ! require_once('modules.php'); ! ! /** Gets an array of tables. ! * Uses the current DB connection. The key is the name, the content ! * is a Table class ! */ ! function GetTables() { ! # ! } ! ! /** The class representing a table. ! * This is a wrapper for a SQL table. It allows access to fields, ! * keys, etc. THIS SHOULD NOT BE USED FOR QUERIES! ! */ ! class Table { ! var $mName, $mFields, $mRecords; ! ! /** Constructor ! */ ! function Table() { ! $this->mName = ''; ! $this->mFields = array(); ! $this->mRecords = array(); ! } ! ! /*static*/ function createFromXML($tag) { ! if (!(is_object($tag) && is_a($tag, 'xmlElement'))) return false; ! if ($tag->Name != 'TABLE') return false; ! ! } ! ! /*static*/ function createFromDB($Name) { ! # ! } ! ! /** Gets an array of current fields. ! * The returned array contains just the field names, in order. ! */ ! function getFields() { ! # ! } ! ! /** Adds a field to the table. ! * @param $Name The name of the new field ! * @param $Type The type of the new field ! * @param $Options An associative array of options. Certain elements ! * are required under certain conditions. ! */ ! function addField($Name, $Type, $Options=array()) { ! # ! } ! ! function getFieldType($Name) { ! # ! } ! ! function getFieldOptions($Name) { ! # ! } ! ! function alterField($Name, $Type, $Options) { ! # ! } ! } ! ! /** ! * Only stores meta-data about a table. Does not ! * manipulate it. ! */ ! class liteTable { ! } ! ! /*** SQL Statements ***/ ! /* ! Get information on a table: ! DESCRIBE `{TABLE NAME}` ! Which returns a series of "records" with the "fields": ! Field - some kind of string - Name ! Type - a type (with length and all) - data type ! Null - SET('YES') - whether it can be null ! Key - SET('MUL','PRI','UNI') - what kind of key it is ! Default - the same type as the field - the default value ! Extra - SET('auto_increment') - ! */ ! ! ?> --- 1,112 ---- ! <?php ! /* ! * openFIRST.base - config/db_setup.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: Allow easy and stable configuration of database tables. This ! // includes both setup and modification of said tables. ! require_once('dbase.php'); ! #require_once('modules.php'); ! ! /** Gets an array of tables. ! * Uses the current DB connection. The key is the name, the content ! * is a Table class ! */ ! function GetTables() { ! # ! } ! ! /** The class representing a table. ! * This is a wrapper for a SQL table. It allows access to fields, ! * keys, etc. THIS SHOULD NOT BE USED FOR QUERIES! ! */ ! class Table { ! var $mName, $mFields, $mRecords; ! ! /** Constructor ! */ ! function Table() { ! $this->mName = ''; ! $this->mFields = array(); ! $this->mRecords = array(); ! } ! ! /*static*/ function createFromXML($tag) { ! if (!(is_object($tag) && is_a($tag, 'xmlElement'))) return false; ! if ($tag->Name != 'TABLE') return false; ! ! } ! ! /*static*/ function createFromDB($Name) { ! # ! } ! ! /** Gets an array of current fields. ! * The returned array contains just the field names, in order. ! */ ! function getFields() { ! # ! } ! ! /** Adds a field to the table. ! * @param $Name The name of the new field ! * @param $Type The type of the new field ! * @param $Options An associative array of options. Certain elements ! * are required under certain conditions. ! */ ! function addField($Name, $Type, $Options=array()) { ! # ! } ! ! function getFieldType($Name) { ! # ! } ! ! function getFieldOptions($Name) { ! # ! } ! ! function alterField($Name, $Type, $Options) { ! # ! } ! } ! ! /** ! * Only stores meta-data about a table. Does not ! * manipulate it. ! */ ! class liteTable { ! } ! ! /*** SQL Statements ***/ ! /* ! Get information on a table: ! DESCRIBE `{TABLE NAME}` ! Which returns a series of "records" with the "fields": ! Field - some kind of string - Name ! Type - a type (with length and all) - data type ! Null - SET('YES') - whether it can be null ! Key - SET('MUL','PRI','UNI') - what kind of key it is ! Default - the same type as the field - the default value ! Extra - SET('auto_increment') - ! */ ! ! ?> |
From: Astronouth7303 <ast...@us...> - 2005-06-30 03:28:06
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9432/config Modified Files: index.php Log Message: damn! was using $ofDB! Changed all instances of $ofDB to $ogDB Index: index.php =================================================================== RCS file: /cvsroot/openfirst/base/config/index.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** index.php 30 Jun 2005 02:29:42 -0000 1.13 --- index.php 30 Jun 2005 03:27:57 -0000 1.14 *************** *** 56,60 **** <?php // The statistics feature is loosely inspired by that of phpBB. ! echo $ofDB->getVersion(); ?></td> </tr> --- 56,60 ---- <?php // The statistics feature is loosely inspired by that of phpBB. ! echo $ogDB->getVersion(); ?></td> </tr> *************** *** 62,66 **** <th>Database Size</th><td> <?php ! echo $ofDB->getSize(); ?> </td> --- 62,66 ---- <th>Database Size</th><td> <?php ! echo $ogDB->getSize(); ?> </td> |
From: Astronouth7303 <ast...@us...> - 2005-06-30 02:36:55
|
Update of /cvsroot/openfirst/base/style In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16032/style Added Files: Default.php Log Message: Skin object for default openFIRST skin. --- NEW FILE: Default.php --- <?php /* * openFIRST.base - style/Default.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 DefaultSkin extends Skin { /*public*/ function getSlugText($slug) { #Badly need something here } /*public*/ function outputHeader() { global $Title; $Title = $this->title; include('headers.php'); } /*public*/ function outputFooter() { include('footers.php'); } } ?> |
From: Astronouth7303 <ast...@us...> - 2005-06-30 02:36:00
|
Update of /cvsroot/openfirst/base/style In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15531/style Modified Files: headers.php Log Message: minor thing (removes trailing space on header list). See dif. Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/base/style/headers.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** headers.php 29 Jun 2005 21:20:42 -0000 1.5 --- headers.php 30 Jun 2005 02:35:50 -0000 1.6 *************** *** 24,28 **** } ! $headers = substr($headers, 0, -strlen('| ')); } --- 24,28 ---- } ! $headers = substr($headers, 0, -strlen(' | ')); } |
From: Astronouth7303 <ast...@us...> - 2005-06-30 02:35:07
|
Update of /cvsroot/openfirst/base/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14967/includes Modified Files: Module.php auth.php globals.php Log Message: Converted to OOP DB Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/auth.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** auth.php 26 May 2005 21:00:03 -0000 1.2 --- auth.php 30 Jun 2005 02:34:55 -0000 1.3 *************** *** 1,189 **** ! <?php ! /* ! * openFIRST.base - config/auth.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 authorization of users. ! ! require_once('dbase.php'); ! ! if(isset($encryption) == false) { $encryption = "crypt"; } ! ! // Provide functions for the various encryption types... ! // syntax: cryptpassword(password, encryption-type, salt); ! ! function cryptpassword ($password, $enctype = false, $salt="") { ! global $encryption; ! if ($enctype === false) $enctype = $encryption; ! ! // Encrypt passwords using whatever algorithm is preferred. ! if ($enctype == "crc32") { ! return(crc32($password)); ! } else if ($enctype == "sha1") { ! return(sha1($password)); ! } else if ($enctype == "crypt") { ! return(crypt($password, $salt)); ! } else { ! return(md5($password)); ! } ! } ! ! function logout(){ ! if(isset($GLOBALS["user"]->user)) { ! $q = ofirst_dbquery("UPDATE ofirst_members SET authcode = NULL WHERE user='".$GLOBALS["user"]->user."';"); ! } ! } ! ! function showlogin () { ! ! // Show a login form for the user. ! echo("<br /><br />"); ! ! if (isset($_POST["login"]) && !isset($user)) { ! echo '<div class="error">Invalid username or password!</div>'; ! } ! ! echo "<form action='". $_SERVER["PHP_SELF"] . "' method='post'>"; ! if(isset($_SERVER["HTTP_REFERER"])){ ! echo("<input name='referer' type='hidden' value='".$_SERVER["HTTP_REFERER"]."'/>"); ! } ! echo "<table width='200' class='center' id='login'> ! <caption>Account Login</caption> ! <tr> ! <td><div align='right'>Username:</div></td> ! <td><input name='login' type='text' /> ! </td> ! </tr> ! <tr> ! <td><div align='right'>Password:</div></td> ! <td> <input name='password' type='password' /></td> ! </tr> ! <tr> ! <td colspan='2'><input type=\"submit\" value=\"Login\" />"; ! global $pass_save_disabled; ! if(!(isset($pass_save_disabled) && $pass_save_disabled)){ ! echo " <br /><input type=checkbox name=savepass id=savepass value=1 checked /><label for=savepass>Save Password</label>"; ! } ! global $BasePath; ! echo "</td></tr> ! <tr><td colspan='2'><a href=\"".htmlentities($BasePath)."/members/forgotten.php\">Forgot Password</a></td></tr> ! </table>"; ! ! // Include anything else in the post, so it is forwarded to the actual form ! unset($_POST['login'], $_POST['password']); ! foreach($_POST as $name => $value) { ! echo '<input type="hidden" name="'.htmlentities($name).'" value="'.htmlentities($value).'" />'; ! } ! echo "</form><br /><br />"; ! return(0); ! } ! ! ! function InitUser() { ! global $pass_save_disabled, $encryption, $user; ! // Determine if the user has already logged in with this session. If ! // they have, set variables indicating this. If they have not, make a ! // note of this so that components requiring them to log in are disabled. ! ! if ( (isset($_SESSION['authcode'])) || ! (isset($_COOKIE["openFIRSTlogin"]) && !$pass_save_disabled) ! ) { ! ! if (isset($_SESSION['authcode'])) { ! $authcode = $_SESSION['authcode']; ! } else if (isset($_COOKIE["openFIRSTlogin"]) && $_COOKIE["openFIRSTlogin"] != 0) { ! $authcode = $_COOKIE["openFIRSTlogin"]; ! $_SESSION['authcode'] = $authcode; ! //renew cookie ! setcookie("openFIRSTlogin", $authcode, time()+2592000, "/"); ! } else { ! $authcode = 0; ! } ! ! $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE authcode='$authcode';"); ! if (ofirst_dberrno() == 0 && ofirst_dbnum_rows($query) == 1 && $authcode != 0 ) { ! $user = ofirst_dbfetch_object($query); ! } else { ! unset($_SESSION['authcode']); ! if(!isset($pass_save_disabled)){ ! //delete cookie ! setcookie("openFIRSTlogin"," ",time()-3600,"/"); ! } ! if (isset($_POST["login"])){ ! $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';"); ! if (ofirst_dberrno() == 0) { ! $user = ofirst_dbfetch_object($query); ! if (ofirst_dbnum_rows($query) == 1) { ! if (cryptpassword($_POST["password"], false, $user->password) == $user->password) { ! session_register("authcode"); ! mt_srand(microtime() * 1000000); ! $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr(gethostbyaddr($_SERVER["REMOTE_ADDR"]),0,40); ! $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); ! } else { ! unset($user); ! } ! } ! } ! } ! } ! } elseif (isset($_POST["login"]) && isset($_POST["password"])) { ! ! $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='{$_POST['login']}';"); ! if (ofirst_dberrno() == 0) { ! $user = ofirst_dbfetch_object($query); ! if (ofirst_dbnum_rows($query) == 1) { ! if (cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { ! session_register("authcode"); ! mt_srand(microtime() * 1000000); ! $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).$_SERVER['REMOTE_ADDR']; ! $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); ! if(!isset($pass_save_disabled)){ ! if(isset($_POST["savepass"])&&$_POST["savepass"]="1"){ ! //save authcode in a cookie ! setcookie("openFIRSTlogin",$_SESSION["authcode"],time()+2592000,"/"); ! } else { ! //delete cookie ! setcookie("openFIRSTlogin"," ",time()-3600,"/"); ! unset($_COOKIE["openFIRSTlogin"]); ! } ! } ! } else { ! # invalid password! ! unset($user); ! } ! } ! } else { ! # invalid user! ! unset($user); ! } ! } ! ! if(isset($user->user)){ ! $query = "UPDATE ofirst_members SET lastseen='" . date("h:i:s M d, Y") . "' WHERE user='$user->user';"; ! $q = ofirst_dbquery($query); ! unset($q); ! } ! } ! ?> --- 1,197 ---- ! <?php ! /* ! * openFIRST.base - config/auth.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 authorization of users. ! ! require_once('dbase.php'); ! ! if(isset($encryption) == false) { $encryption = "crypt"; } ! ! // Provide functions for the various encryption types... ! // syntax: cryptpassword(password, encryption-type, salt); ! ! function cryptpassword ($password, $enctype = false, $salt="") { ! global $encryption; ! if ($enctype === false) $enctype = $encryption; ! ! // Encrypt passwords using whatever algorithm is preferred. ! if ($enctype == "crc32") { ! return(crc32($password)); ! } else if ($enctype == "sha1") { ! return(sha1($password)); ! } else if ($enctype == "crypt") { ! return(crypt($password, $salt)); ! } else { ! return(md5($password)); ! } ! } ! ! function logout(){ ! global $ofDB; ! if(isset($GLOBALS["user"]->user)) { ! #FIXME: Bad SQL Handling ! $q = $ofDB->query("UPDATE ofirst_members SET authcode = NULL WHERE user='".$GLOBALS["user"]->user."';"); ! } ! } ! ! function showlogin () { ! ! // Show a login form for the user. ! echo("<br /><br />"); ! ! if (isset($_POST["login"]) && !isset($user)) { ! echo '<div class="error">Invalid username or password!</div>'; ! } ! ! echo "<form action='". $_SERVER["PHP_SELF"] . "' method='post'>"; ! if(isset($_SERVER["HTTP_REFERER"])){ ! echo("<input name='referer' type='hidden' value='".$_SERVER["HTTP_REFERER"]."'/>"); ! } ! echo "<table width='200' class='center' id='login'> ! <caption>Account Login</caption> ! <tr> ! <td><div align='right'>Username:</div></td> ! <td><input name='login' type='text' /> ! </td> ! </tr> ! <tr> ! <td><div align='right'>Password:</div></td> ! <td> <input name='password' type='password' /></td> ! </tr> ! <tr> ! <td colspan='2'><input type=\"submit\" value=\"Login\" />"; ! global $pass_save_disabled; ! if(!(isset($pass_save_disabled) && $pass_save_disabled)){ ! echo " <br /><input type=checkbox name=savepass id=savepass value=1 checked /><label for=savepass>Save Password</label>"; ! } ! global $BasePath; ! echo "</td></tr> ! <tr><td colspan='2'><a href=\"".htmlentities($BasePath)."/members/forgotten.php\">Forgot Password</a></td></tr> ! </table>"; ! ! // Include anything else in the post, so it is forwarded to the actual form ! unset($_POST['login'], $_POST['password']); ! foreach($_POST as $name => $value) { ! echo '<input type="hidden" name="'.htmlentities($name).'" value="'.htmlentities($value).'" />'; ! } ! echo "</form><br /><br />"; ! return(0); ! } ! ! ! function InitUser() { ! global $pass_save_disabled, $encryption, $user, $ofDB; ! // Determine if the user has already logged in with this session. If ! // they have, set variables indicating this. If they have not, make a ! // note of this so that components requiring them to log in are disabled. ! ! if ( (isset($_SESSION['authcode'])) || ! (isset($_COOKIE["openFIRSTlogin"]) && !$pass_save_disabled) ! ) { ! ! if (isset($_SESSION['authcode'])) { ! $authcode = $_SESSION['authcode']; ! } else if (isset($_COOKIE["openFIRSTlogin"]) && $_COOKIE["openFIRSTlogin"] != 0) { ! $authcode = $_COOKIE["openFIRSTlogin"]; ! $_SESSION['authcode'] = $authcode; ! //renew cookie ! setcookie("openFIRSTlogin", $authcode, time()+2592000, "/"); ! } else { ! $authcode = 0; ! } ! ! #FIXME: Bad SQL handling ! $query = $ofDB->query("SELECT * FROM ofirst_members WHERE authcode='$authcode';"); ! if ($ofDB->errorNumber() == 0 && $ofDB->numberOfRows($query) == 1 && $authcode != 0 ) { ! $user = $ofDB->fetchObject($query); ! } else { ! unset($_SESSION['authcode']); ! if(!isset($pass_save_disabled)){ ! //delete cookie ! setcookie("openFIRSTlogin"," ",time()-3600,"/"); ! } ! if (isset($_POST["login"])){ ! #FIXME: Bad SQL handling ! $query = $ofDB->query("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';"); ! if ($ofDB->errorNumber() == 0) { ! $user = $ofDB->fetchObject($query); ! if ($ofDB->numberOfRows($query) == 1) { ! if (cryptpassword($_POST["password"], false, $user->password) == $user->password) { ! session_register("authcode"); ! mt_srand(microtime() * 1000000); ! $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr(gethostbyaddr($_SERVER["REMOTE_ADDR"]),0,40); ! #FIXME: Bad SQL handling ! $aquery = $ofDB->query("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); ! } else { ! unset($user); ! } ! } ! } ! } ! } ! } elseif (isset($_POST["login"]) && isset($_POST["password"])) { ! ! #FIXME: Bad SQL handling ! $query = $ofDB->query("SELECT * FROM ofirst_members WHERE user='{$_POST['login']}';"); ! if ($ofDB->errorNumber() == 0) { ! $user = $ofDB->fetchObject($query); ! if ($ofDB->numberOfRows($query) == 1) { ! if (cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { ! session_register("authcode"); ! mt_srand(microtime() * 1000000); ! $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).$_SERVER['REMOTE_ADDR']; ! #FIXME: Bad SQL handling ! $aquery = $ofDB->query("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); ! if(!isset($pass_save_disabled)){ ! if(isset($_POST["savepass"])&&$_POST["savepass"]="1"){ ! //save authcode in a cookie ! setcookie("openFIRSTlogin",$_SESSION["authcode"],time()+2592000,"/"); ! } else { ! //delete cookie ! setcookie("openFIRSTlogin"," ",time()-3600,"/"); ! unset($_COOKIE["openFIRSTlogin"]); ! } ! } ! } else { ! # invalid password! ! unset($user); ! } ! } ! } else { ! # invalid user! ! unset($user); ! } ! } ! ! if(isset($user->user)){ ! #FIXME: Bad SQL handling ! $query = "UPDATE ofirst_members SET lastseen='" . date("h:i:s M d, Y") . "' WHERE user='$user->user';"; ! $q = $ofDB->query($query); ! unset($q); ! } ! } ! ?> Index: Module.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/Module.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Module.php 29 Jun 2005 21:20:41 -0000 1.3 --- Module.php 30 Jun 2005 02:34:55 -0000 1.4 *************** *** 36,48 **** */ /*public*/ function getIDFromDir($dir) { #$dir = strtolower($dir); //Should I do this? if (!isset($this->dirs[$dir])) { ! $sql = 'SELECT '.ofirst_dbquote_name('modulename'). ! ' FROM '.ofirst_dbquote_table('config'). ! ' WHERE '.ofirst_dbquote_fd_pairs(array('dir'=>$dir), ' AND '). ' LIMIT 0,1'; ! $res = ofirst_dbquery($sql); ! $row = ofirst_dbfetch_object($res); ! ofirst_dbfree_result($res); $this->dirs[$dir] = $row->modulename; } --- 36,49 ---- */ /*public*/ function getIDFromDir($dir) { + global $ofDB; #$dir = strtolower($dir); //Should I do this? if (!isset($this->dirs[$dir])) { ! $sql = 'SELECT '.$ofDB->quoteField('modulename'). ! ' FROM '.$ofDB->quoteTable('config'). ! ' WHERE '.$ofDB->quoteFDPairs(array('dir'=>$dir), ' AND '). ' LIMIT 0,1'; ! $res = $ofDB->query($sql); ! $row = $ofDB->fetchObject($res); ! $ofDB->freeResult($res); $this->dirs[$dir] = $row->modulename; } *************** *** 51,63 **** /*public*/ function getDirsFromID($ID) { if (!isset($this->ids[$ID])) { ! $sql = 'SELECT '.ofirst_dbquote_name('dir'). ! ' FROM '.ofirst_dbquote_table('config'). ! ' WHERE '.ofirst_dbquote_fd_pairs(array('modulename'=>$ID), ' AND '); ! $res = ofirst_dbquery($sql); ! while ($row = ofirst_dbfetch_object($res)) { $this->ids[$ID][] = $row->dir; } ! ofirst_dbfree_result($res); } return $this->ids[$ID]; --- 52,65 ---- /*public*/ function getDirsFromID($ID) { + global $ofDB; if (!isset($this->ids[$ID])) { ! $sql = 'SELECT '.$ofDB->quoteField('dir'). ! ' FROM '.$ofDB->quoteTable('config'). ! ' WHERE '.$ofDB->quoteFDPairs(array('modulename'=>$ID), ' AND '); ! $res = $ofDB->query($sql); ! while ($row = $ofDB->fetchObject($res)) { $this->ids[$ID][] = $row->dir; } ! $ofDB->freeResult($res); } return $this->ids[$ID]; *************** *** 100,107 **** function Module($dir) { ! $sql = 'SELECT * FROM '.ofirst_dbquote_table('config').' WHERE '.ofirst_dbquote_fd_pairs(array('dir'=>$dir), ' AND ').' LIMIT 0,1'; ! $res = ofirst_dbquery($sql); ! $mod = ofirst_dbfetch_object($res); ! ofirst_dbfree_result($res); $this->mName = $mod->label; --- 102,110 ---- function Module($dir) { ! global $ofDB; ! $sql = 'SELECT * FROM '.$ofDB->quoteTable('config').' WHERE '.$ofDB->quoteFDPairs(array('dir'=>$dir), ' AND ').' LIMIT 0,1'; ! $res = $ofDB->query($sql); ! $mod = $ofDB->fetchObject($res); ! $ofDB->freeResult($res); $this->mName = $mod->label; *************** *** 117,120 **** --- 120,126 ---- } else { $this->mIncludes = explode(',', $mod->includes); + foreach($this->mIncludes as $key => $value) { + $this->mIncludes[$key] = replaceVariables($value, $this->getDir()); + } } $this->mNavBar = replaceVariables($mod->modulenavigation, $this->getDir()); *************** *** 123,127 **** $this->mActive = $mod->active; ! ofirst_dbfree_result($res); } --- 129,133 ---- $this->mActive = $mod->active; ! $ofDB->freeResult($res); } Index: globals.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/globals.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** globals.php 29 Jun 2005 21:33:47 -0000 1.9 --- globals.php 30 Jun 2005 02:34:55 -0000 1.10 *************** *** 57,60 **** --- 57,61 ---- require_once('compatibility.php'); + require_once('dbase.php'); set_include_path( get_include_path().PATH_SEPARATOR."$configdir/".PATH_SEPARATOR."."); *************** *** 62,69 **** require_once('functions.php'); - require_once('dbase.php'); require_once('auth.php'); require_once('Module.php'); require_once('slug.php'); $sqlTablePrefix = 'ofirst_'; --- 63,71 ---- require_once('functions.php'); require_once('auth.php'); require_once('Module.php'); require_once('slug.php'); + require_once('edit.php'); + require_once('skin.php'); $sqlTablePrefix = 'ofirst_'; *************** *** 71,77 **** require_once('sitesettings.php'); ! if(function_exists("ofirst_dbconnect") == false) { ! die('Your version of PHP has not been compiled with SQL support, therefore the openFIRST web portal system cannot run on this system. Please contact your system administrator to request SQL support for your version of PHP.'); ! } InitUser(); --- 73,79 ---- require_once('sitesettings.php'); ! $ofDB = new DataBase($DBaseType, $sqlServer, $sqlUser, $sqlPassword); ! $ofDB->selectDB($sqlDatabase); ! InitUser(); *************** *** 94,103 **** */ $ogModuleManager = new ModuleManager; ! $res = ofirst_dbquery('SELECT '.ofirst_dbquote_name('dir'). ! ' FROM '.ofirst_dbquote_table('config')); ! if(ofirst_dberrno() != 0) { trigger_error('Error while listing modules!', E_USER_ERROR); } ! while($mod =& ofirst_dbfetch_object($res)) { $dir = $mod->dir; $module =& $ogModuleManager->addModuleFromDir($dir); --- 96,105 ---- */ $ogModuleManager = new ModuleManager; ! $res = $ofDB->query('SELECT '.$ofDB->quoteField('dir'). ! ' FROM '.$ofDB->quoteTable('config')); ! if($ofDB->errorNumber() != 0) { trigger_error('Error while listing modules!', E_USER_ERROR); } ! while($mod =& $ofDB->fetchObject($res)) { $dir = $mod->dir; $module =& $ogModuleManager->addModuleFromDir($dir); *************** *** 108,112 **** foreach ($includes as $include) { if ($include != '') { ! include_once("$fBasePath/$dir/$include"); } } --- 110,114 ---- foreach ($includes as $include) { if ($include != '') { ! include_once($include); } } *************** *** 114,118 **** } } ! ofirst_dbfree_result($res); if (!preg_match('/\A[a-zA-Z0-9]+\z/',session_id())) { --- 116,120 ---- } } ! $ofDB->freeResult($res); if (!preg_match('/\A[a-zA-Z0-9]+\z/',session_id())) { |
From: Astronouth7303 <ast...@us...> - 2005-06-30 02:33:53
|
Update of /cvsroot/openfirst/base/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14385/includes Modified Files: dbase.php Log Message: bug fixes, stream lining, removed dependencies on settings, renamed method (more like old name), etc. Index: dbase.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/dbase.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** dbase.php 29 Jun 2005 23:47:52 -0000 1.5 --- dbase.php 30 Jun 2005 02:33:43 -0000 1.6 *************** *** 34,38 **** class DataBase { ! /*private*/ var $type, $connection, $lastquery; // Wrapper for database selection. function DataBase($type = 'mysql', $server = '', $username = '', $password = '', $newlink = '', $intclientflags = '') { --- 34,38 ---- class DataBase { ! /*private*/ var $type, $connection, $lastquery, $db; // Wrapper for database selection. function DataBase($type = 'mysql', $server = '', $username = '', $password = '', $newlink = '', $intclientflags = '') { *************** *** 69,73 **** } ! /*private*/ function getTypeName() { $typetext = $this->type; switch ($this->type) { --- 69,73 ---- } ! /*public*/ function getTypeName() { $typetext = $this->type; switch ($this->type) { *************** *** 100,103 **** --- 100,104 ---- function selectDB($databasename) { + $this->db = $databasename; switch ($this->type) { case dbMYSQL: *************** *** 192,196 **** } ! function getObject($resource, $rownumber = false) { switch ($this->type) { case dbMYSQL: --- 193,197 ---- } ! function fetchObject($resource, $rownumber = false) { switch ($this->type) { case dbMYSQL: *************** *** 220,239 **** function numberOfRows($resource) { ! if($DBaseType == "mysql") { ! if(function_exists("mysql_num_rows") == false) { ! die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); ! } if (!is_resource($resource)) return -1; ! return(mysql_num_rows($resource)); ! } elseif($DBaseType == "mssql") { ! if(function_exists("mssql_num_rows") == false) { ! die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); ! } if (!is_resource($resource)) return -1; ! return(mssql_num_rows($resource)); ! } elseif($DBaseType == "odbc") { ! if(function_exists("odbc_num_rows") == false) { ! die("ODBC support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); ! } if($resource != "") { if (!is_resource($resource)) return -1; --- 221,239 ---- function numberOfRows($resource) { ! switch ($this->type) { ! case dbMYSQL: ! $this->checkForFunction('mysql_num_rows'); if (!is_resource($resource)) return -1; ! return mysql_num_rows($resource); ! break; ! ! case dbMSSQL: ! $this->checkForFunction('mssql_num_rows'); if (!is_resource($resource)) return -1; ! return mssql_num_rows($resource); ! break; ! ! case dbODBC: ! $this->checkForFunction('odbc_num_rows'); if($resource != "") { if (!is_resource($resource)) return -1; *************** *** 242,247 **** return(odbc_num_rows()); } } - exit(0); } --- 242,250 ---- return(odbc_num_rows()); } + break; + + default: + $this->badDBType(); } } *************** *** 299,307 **** function getSize() { ! global $sqlDatabase; switch ($this->type) { case dbMYSQL: $dbsize = 0; ! $dq = $this->query("SHOW TABLE STATUS FROM $sqlDatabase"); while($d = $this->fetchObject($dq)) { $dbsize += $d->Data_length; --- 302,310 ---- function getSize() { ! $sqlDatabase = $this->db; switch ($this->type) { case dbMYSQL: $dbsize = 0; ! $dq = $this->query('SHOW TABLE STATUS FROM '.$this->quoteDatabase($sqlDatabase)); while($d = $this->fetchObject($dq)) { $dbsize += $d->Data_length; *************** *** 314,318 **** case dbMSSQL: ! $s = ofirst_dbfetch_object(ofirst_dbquery("SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize FROM sysfiles")); return ofFormatSize($s->dbsize); --- 317,323 ---- case dbMSSQL: ! $res = $this->query('SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize FROM sysfiles'); ! $s = $this->fetchObject($res); ! $this->freeResult($res); return ofFormatSize($s->dbsize); |
From: Astronouth7303 <ast...@us...> - 2005-06-30 02:31:33
|
Update of /cvsroot/openfirst/base/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13067/includes Modified Files: sitesettings.tpl Log Message: Removed DB initialization Index: sitesettings.tpl =================================================================== RCS file: /cvsroot/openfirst/base/includes/sitesettings.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sitesettings.tpl 26 May 2005 21:00:03 -0000 1.2 --- sitesettings.tpl 30 Jun 2005 02:31:24 -0000 1.3 *************** *** 1,36 **** ! <?php ! /* ! * openFIRST base configuration file ! * This file has been automatically generated by first.php. ! * it contains the basic configuration options required to ! * operate the OpenFIRST web portal software. Note, that ! * most configuration options are now stored in the MySQL ! * database, in the ofirst_config table. ! */ ! $DBaseType = %DBTYPE%; ! ! $Encryption = %ENCRYPT%; ! ! $Title = %TITLE%; ! $Version = %VER%; ! $sqlServer = %DBSERVER%; ! $sqlUser = %DBUSER%; ! $sqlPassword = %DBPASS%; ! $sqlDatabase = %DBNAME%; ! ! $sqlConnection = ofirst_dbconnect($sqlServer, $sqlUser, $sqlPassword); ! ofirst_select_db($sqlDatabase); ! ! $PassSaveDisabled = %COOKIE%; ! $regEnabled = %REG%; ! $Server = %SERVER%; ! $BasePath = %BASEPATH%; ! $fBasePath = %FBASEPATH%; ! $Home = %HOME%; ! $StylePath = "$BasePath/style"; ! $fStylePath = "$fBasePath/style"; ! $Header = %HEADER%; ! $Footer = %FOOTER%; ! $MailNotify = %MASTERMAIL%; ! $MailFrom = %BOTMAIL%; ! ?> --- 1,33 ---- ! <?php ! /* ! * openFIRST base configuration file ! * This file has been automatically generated by first.php. ! * it contains the basic configuration options required to ! * operate the OpenFIRST web portal software. Note, that ! * most configuration options are now stored in the MySQL ! * database, in the ofirst_config table. ! */ ! $DBaseType = %DBTYPE%; ! ! $Encryption = %ENCRYPT%; ! ! $Title = %TITLE%; ! $Version = %VER%; ! $sqlServer = %DBSERVER%; ! $sqlUser = %DBUSER%; ! $sqlPassword = %DBPASS%; ! $sqlDatabase = %DBNAME%; ! ! $PassSaveDisabled = %COOKIE%; ! $regEnabled = %REG%; ! $Server = %SERVER%; ! $BasePath = %BASEPATH%; ! $fBasePath = %FBASEPATH%; ! $Home = %HOME%; ! $StylePath = "$BasePath/style"; ! $fStylePath = "$fBasePath/style"; ! $Header = %HEADER%; ! $Footer = %FOOTER%; ! $MailNotify = %MASTERMAIL%; ! $MailFrom = %BOTMAIL%; ! ?> |
From: Astronouth7303 <ast...@us...> - 2005-06-30 02:31:00
|
Update of /cvsroot/openfirst/base/includes/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12705/includes/functions Modified Files: debug.php Log Message: added backtrace to non-commiting debug message. Index: debug.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/functions/debug.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** debug.php 27 May 2005 00:02:23 -0000 1.3 --- debug.php 30 Jun 2005 02:30:45 -0000 1.4 *************** *** 1,132 **** ! <?php ! /* ! * openFIRST.base - config/functions/debug.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 some useful features for debugging certain problems. ! // This entire process is optional, of course. Anyone may easily ! // simply remove this file in order to eliminate the debugging. ! ! set_error_handler("ofirst_error_handler"); ! if (!isset($NO_ADD_BUG)) $NO_ADD_BUG = false; ! ! // Handles errors by displaying a message and contacting openFIRST ! // developers for assistance. ! function ofirst_error_handler($errno,$error,$file,$line,$context) { ! global $DBaseType, $Encryption, $Title, $Version, $sqlServer, $sqlUser, $sqlPassword, $sqlDatabase, ! $sqlConnection, $PassSaveDisabled, $regEnabled, $Server, $BasePath, $fBasePath, $Home, ! $StylePath, $fStylePath, $Header, $Footer, $MailNotify, $MailFrom; ! global $osType, $currentmodule, $user, $lastquery, $usingPHP5; ! global $NO_ADD_BUG; ! $dberrno = ofirst_dberrno(); ! $dberror = ofirst_dberror(); ! ! if(! function_exists("md5_file")) { ! $checksum = "na"; ! } else { ! if (isset($_SERVER['SCRIPT_FILENAME'])) { ! $checksum = md5_file($_SERVER['SCRIPT_FILENAME']); ! } ! } ! ! if ($usingPHP5 && $errno == 2048) return; ! ! $details = "MD5: $checksum ! Database Type: $DBaseType ! Operating System: $osType ! SQL Server: $sqlServer ! Current Module: $currentmodule ! Error Number: $errno"; ! ! $specifics = "PHP_SELF: {$_SERVER['PHP_SELF']} ! HTTP Host: {$_SERVER['HTTP_HOST']}"; ! ! if (isset($_SERVER['HTTP_REFERER'])) { ! $specifics .= " ! HTTP Referer: {$_SERVER['HTTP_REFERER']}"; ! } ! $specifics .= " ! Translated Path: {$_SERVER['SCRIPT_FILENAME']}"; ! if (isset($user) ) { ! $specifics .= " ! User: {$user->user} ! User Access Level: {$user->membertype}"; ! } ! $specifics .= " ! Error Description: {$error} in {$file} on line {$line}"; ! if ($dberrno != 0) { ! $specifics .= " ! DB Error Number: {$dberrno} ! DB Error: ".ofirst_dberror()." ! Last Query: {$lastquery}"; ! } ! ! if ($NO_ADD_BUG) ! { ! echo "<br /><div class=\"error\"><h2>Error:</h2><dl>"; ! echo "<dt>Details:</dt><dd><pre>"; ! echo $details; ! echo "</pre></dd>"; ! echo "<dt>Specifics:</dt><dd><pre>"; ! echo $specifics; ! echo "</pre></dd></dl></div>"; ! } else { ! // Notify the appropriate local contact ! mail($mailnotify, "$error in $file on line $line", "Error Description: $error in $file on line $line ! ! There is additional information regarding this bug stored on ! the openFIRST Bugzilla Server at: ! ! http://bugzilla.openfirst.org/", "From: $mailfrom"); ! ! // Attempt to contact the openFIRST Bugzilla Server ! $bugzilla = fopen( "http://bugzilla.openfirst.org/openfirst/". ! "?module=$currentmodule". ! "&uri=" . urlencode($_SERVER["HTTP_HOST"] . $_SERVER["SCRIPT_NAME"]). ! "&details=".urlencode($details). ! "&specifics=".urlencode($specifics) . ! ($NO_ADD_BUG ? "&no-commit=true" : ""), "r"); ! ! if(! $bugzilla) { ! // If a connection cannot be established to the Bugzilla server ! echo("Could not contact the openFIRST Bugzilla server."); ! echo("<h3><strong>$errno</strong> - <strong>$error</strong> in ! <strong>$file</strong> on line <strong>$line</strong></h3> ! <p><strong>The openFIRST system has encountered an error. This ! may be due to a misconfiguration on the behalf of the person installing it, ! or an error in the openFIRST code.</strong></p> ! <p>Debugging may be disabled by removing (config/functions/debug.php)"); ! ! } else { ! // If a connection is established to the Bugzilla server then rely ! // completely on it for the appropriate error message to show. ! while(!feof($bugzilla)) { ! $line = fgets($bugzilla, 2048); ! echo $line; ! } ! } ! } ! } ! ?> --- 1,137 ---- ! <?php ! /* ! * openFIRST.base - config/functions/debug.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 some useful features for debugging certain problems. ! // This entire process is optional, of course. Anyone may easily ! // simply remove this file in order to eliminate the debugging. ! ! set_error_handler("ofirst_error_handler"); ! if (!isset($NO_ADD_BUG)) $NO_ADD_BUG = false; ! ! // Handles errors by displaying a message and contacting openFIRST ! // developers for assistance. ! function ofirst_error_handler($errno,$error,$file,$line,$context) { ! global $DBaseType, $Encryption, $Title, $Version, $sqlServer, $sqlUser, $sqlPassword, $sqlDatabase, ! $sqlConnection, $PassSaveDisabled, $regEnabled, $Server, $BasePath, $fBasePath, $Home, ! $StylePath, $fStylePath, $Header, $Footer, $MailNotify, $MailFrom, $ofDB; ! global $osType, $currentmodule, $user, $lastquery, $usingPHP5; ! global $NO_ADD_BUG; ! $dberrno = $ofDB->errorNumber(); ! $dberror = $ofDB->errorString(); ! ! if(! function_exists("md5_file")) { ! $checksum = "na"; ! } else { ! if (isset($_SERVER['SCRIPT_FILENAME'])) { ! $checksum = md5_file($_SERVER['SCRIPT_FILENAME']); ! } ! } ! ! if ($usingPHP5 && $errno == 2048) return; ! ! $details = "MD5: $checksum ! Database Type: $DBaseType ! Operating System: $osType ! SQL Server: $sqlServer ! Current Module: $currentmodule ! Error Number: $errno"; ! ! $specifics = "PHP_SELF: {$_SERVER['PHP_SELF']} ! HTTP Host: {$_SERVER['HTTP_HOST']}"; ! ! if (isset($_SERVER['HTTP_REFERER'])) { ! $specifics .= " ! HTTP Referer: {$_SERVER['HTTP_REFERER']}"; ! } ! $specifics .= " ! Translated Path: {$_SERVER['SCRIPT_FILENAME']}"; ! if (isset($user) ) { ! $specifics .= " ! User: {$user->user} ! User Access Level: {$user->membertype}"; ! } ! $specifics .= " ! Error Description: {$error} in {$file} on line {$line}"; ! if ($dberrno != 0) { ! $specifics .= " ! DB Error Number: {$dberrno} ! DB Error: {$dberror} ! Last Query: {$lastquery}"; ! } ! ! if ($NO_ADD_BUG) ! { ! echo "<br /><div class=\"error\"><h2>Error:</h2><dl>"; ! echo "<dt>Details:</dt><dd><pre>"; ! echo $details; ! echo "</pre></dd>\n"; ! echo "<dt>Specifics:</dt><dd><pre>"; ! echo $specifics; ! echo "</pre></dd>\n"; ! echo "<dt>Backtrace:</dt><dd><pre>"; ! debug_print_backtrace(); ! echo "</pre></dd>\n"; ! echo "</dl>"; ! echo "</div>"; ! } else { ! // Notify the appropriate local contact ! mail($mailnotify, "$error in $file on line $line", "Error Description: $error in $file on line $line ! ! There is additional information regarding this bug stored on ! the openFIRST Bugzilla Server at: ! ! http://bugzilla.openfirst.org/", "From: $mailfrom"); ! ! // Attempt to contact the openFIRST Bugzilla Server ! $bugzilla = fopen( "http://bugzilla.openfirst.org/openfirst/". ! "?module=$currentmodule". ! "&uri=" . urlencode($_SERVER["HTTP_HOST"] . $_SERVER["SCRIPT_NAME"]). ! "&details=".urlencode($details). ! "&specifics=".urlencode($specifics) . ! ($NO_ADD_BUG ? "&no-commit=true" : ""), "r"); ! ! if(! $bugzilla) { ! // If a connection cannot be established to the Bugzilla server ! echo("Could not contact the openFIRST Bugzilla server."); ! echo("<h3><strong>$errno</strong> - <strong>$error</strong> in ! <strong>$file</strong> on line <strong>$line</strong></h3> ! <p><strong>The openFIRST system has encountered an error. This ! may be due to a misconfiguration on the behalf of the person installing it, ! or an error in the openFIRST code.</strong></p> ! <p>Debugging may be disabled by removing (config/functions/debug.php)"); ! ! } else { ! // If a connection is established to the Bugzilla server then rely ! // completely on it for the appropriate error message to show. ! while(!feof($bugzilla)) { ! $line = fgets($bugzilla, 2048); ! echo $line; ! } ! } ! } ! } ! ?> |
From: Astronouth7303 <ast...@us...> - 2005-06-30 02:29:50
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12228/config Modified Files: index.php Log Message: Updated for OOP DB Index: index.php =================================================================== RCS file: /cvsroot/openfirst/base/config/index.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** index.php 26 May 2005 21:00:02 -0000 1.12 --- index.php 30 Jun 2005 02:29:42 -0000 1.13 *************** *** 1,96 **** ! <?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"); ! include($Header); ! if(isset($user->user) == true && $user->membertype == "administrator") { ! ?> ! <h1>openFIRST Configuration Area</h1> ! ! <table width="50%"> ! <tr> ! <th>Administrative Options</th> ! </tr> ! </table> ! ! <?php ! if(is_writable("$fBasePath/includes/globals.php") && file_exists("$fBasePath/includes/first.php")) { ! echo("<p><strong>Warning</strong>: Your globals.php file is writable by the web user. Also, first.php is still in existance. After you have setup the openFIRST web portal system, it is safe to remove first.php. Removing first.php 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 globals.php is not writable by the web user."); ! } elseif(is_writable("$fBasePath/includes/globals.php")) { ! echo("<p><strong>Warning</strong>: Your globals.php 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 ofirst_dbname_version(); ! ?></td> ! </tr> ! <tr> ! <th>Database Size</th><td> ! <?php ! echo ofirst_dbsize(); ! ?> ! </td> ! </tr> ! <tr><th>openFIRST Project Statistics</th><td> ! <?php include_once("http://bugzilla.openfirst.org/openfirst/bugcrushers.php"); ?> ! </td></tr> ! </table> ! ! <br> ! <table width="50%"> ! <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 web ! portal software and any 3rd party extensions is up to date</td> ! </tr> ! <tr> ! <td valign="top"><a href="install.php">Install Component</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> ! </table> ! <p> ! <?php ! } else { ! showlogin(); ! } ! include($Footer); ! ?> ! </p> --- 1,96 ---- ! <?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"); ! include($Header); ! if(isset($user->user) == true && $user->membertype == "administrator") { ! ?> ! <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><strong>Warning</strong>: Your sitesettings.php file is writable by the web user. Also, first.php is still in existance. After you have setup the openFIRST web portal system, it is safe to remove first.php. Removing first.php 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 sitesettings.php is not writable by the web user."); ! } elseif(is_writable("$fBasePath/includes/sitesettings.php")) { ! echo("<p><strong>Warning</strong>: Your sitesettings.php 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 $ofDB->getVersion(); ! ?></td> ! </tr> ! <tr> ! <th>Database Size</th><td> ! <?php ! echo $ofDB->getSize(); ! ?> ! </td> ! </tr> ! <tr><th>openFIRST Project Statistics</th><td> ! <script type='application/x-javascript' src='http://bugzilla.openfirst.org/openfirst/bugcrushers.php?style=true'></script> ! </td></tr> ! </table> ! ! <br> ! <table width="50%"> ! <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 web ! portal software and any 3rd party extensions is up to date</td> ! </tr> ! <tr> ! <td valign="top"><a href="install.php">Install Component</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> ! </table> ! <p> ! <?php ! } else { ! showlogin(); ! } ! include($Footer); ! ?> ! </p> |
From: Astronouth7303 <ast...@us...> - 2005-06-30 02:29:26
|
Update of /cvsroot/openfirst/base In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12070 Modified Files: index.php Log Message: added comment Index: index.php =================================================================== RCS file: /cvsroot/openfirst/base/index.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** index.php 29 Jun 2005 21:20:41 -0000 1.16 --- index.php 30 Jun 2005 02:29:18 -0000 1.17 *************** *** 68,72 **** } ! if (is_readable("awards/") && ofirst_dbnum_rows(ofirst_dbquery("SELECT * FROM ofirst_config WHERE modulename='awards' AND active='1';")) > 0) { $qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;"); if(ofirst_dbnum_rows($qu)!=0){ --- 68,73 ---- } ! #FIXME: Bad SQL handling ! if (is_readable("awards/") && $ofDB->numberOfRows($ofDB->query("SELECT * FROM ofirst_config WHERE modulename='awards' AND active='1';")) > 0) { $qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;"); if(ofirst_dbnum_rows($qu)!=0){ |
From: Astronouth7303 <ast...@us...> - 2005-06-30 02:28:28
|
Update of /cvsroot/openfirst/awards In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11607/awards Modified Files: awards.php index.php Log Message: Primitive searching. Slugs still need to be implemented. awards.php now fixes ModuleManager. Index: awards.php =================================================================== RCS file: /cvsroot/openfirst/awards/awards.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** awards.php 30 Jun 2005 02:00:50 -0000 1.7 --- awards.php 30 Jun 2005 02:28:19 -0000 1.8 *************** *** 34,36 **** --- 34,39 ---- } } + + $awardmod =& new AwardModule(basename(dirname(__FILE__))); + $ogModuleManager->addModuleFromObject($awardmod); ?> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/awards/index.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** index.php 30 Jun 2005 01:58:53 -0000 1.18 --- index.php 30 Jun 2005 02:28:19 -0000 1.19 *************** *** 25,36 **** include_once($Header); // Query database for award information ! $query = $ofDB->query('SELECT * FROM '.$ofDB->quoteTable('awards'). ! ' ORDER BY '.$ofDB->quoteField('Date').' DESC' ! ); $amount = $ofDB->numberOfRows($query); ?> <h1>Team Awards</h1> ! <p>This team has won <b><?php echo $amount; ?></b> award(s).</p> <?php // If more then one award is present then show the values --- 25,68 ---- include_once($Header); + $where = array(); + if (isset($_REQUEST['id'])) { + $where[] = $ofDB->quoteField('ID').'='.$ofDB->quoteData($_REQUEST['id']); + } + if (isset($_REQUEST['name'])) { + $where[] = $ofDB->quoteField('AwardName').'='.$ofDB->quoteData($_REQUEST['name']); + } + if (isset($_REQUEST['event'])) { + $where[] = $ofDB->quoteField('Event').'='.$ofDB->quoteData($_REQUEST['event']); + } + if (isset($_REQUEST['date'])) { + $where[] = $ofDB->quoteField('Date').'='.$ofDB->quoteData($_REQUEST['date']); + } + if (isset($_REQUEST['recipient'])) { + $where[] = $ofDB->quoteField('Recipient').'='.$ofDB->quoteData($_REQUEST['recipient']); + } + if (isset($_REQUEST['image'])) { + $where[] = $ofDB->quoteField('Image').'='.$ofDB->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[] = $ofDB->quoteField('FIRSTAward').'='.$ofDB->quoteData($first); + } + + // Query database for award information ! $sql = 'SELECT * FROM '.$ofDB->quoteTable('awards'). ! ((count($where) > 0) ? ' WHERE '.implode(' OR ', $where) : ''). ! ' ORDER BY '.$ofDB->quoteField('Date').' DESC'; ! $query = $ofDB->query($sql); ! if ($query === false) { ! echo $ofDB->errorNumber().': '.$ofDB->errorString().'<br />'; ! var_dump($sql); ! } $amount = $ofDB->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 |
From: Astronouth7303 <ast...@us...> - 2005-06-30 02:27:24
|
Update of /cvsroot/openfirst/base/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11124/includes Added Files: Skin.php Log Message: Created Skin object, Needs to be integrated. --- NEW FILE: Skin.php --- <?php /* * openFIRST.base - includes/Skin.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. * * 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 Skin class, which handles skinning openFIRST. class Skin { /*private*/ var $title; /*public*/ function getTitle() { return $this->title; } /*public*/ function setTitle($title) { $this->title = $title; } /*public*/ function getSlugText($slug) { } /*public*/ function outputHeader() { } /*public*/ function outputFooter() { } } ?> |