openfirst-cvscommit Mailing List for openFIRST (Page 62)
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: <dav...@us...> - 2003-12-24 18:06:09
|
Update of /cvsroot/openfirst/manual/openfirst.messenger In directory sc8-pr-cvs1:/tmp/cvs-serv12815 Modified Files: messenger.php Log Message: Content update, spelling/grammer updates and syntax in code. Index: messenger.php =================================================================== RCS file: /cvsroot/openfirst/manual/openfirst.messenger/messenger.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** messenger.php 12 Oct 2003 22:40:49 -0000 1.2 --- messenger.php 24 Dec 2003 18:06:06 -0000 1.3 *************** *** 26,33 **** * */ - include("../../config/globals.php"); include("$header"); - ?> <h2>openFIRST Manual Module</h2> --- 26,31 ---- |
From: <dav...@us...> - 2003-12-24 18:05:56
|
Update of /cvsroot/openfirst/manual/openfirst.members In directory sc8-pr-cvs1:/tmp/cvs-serv12744 Modified Files: members.php Log Message: Content update, spelling/grammer updates and syntax in code. Index: members.php =================================================================== RCS file: /cvsroot/openfirst/manual/openfirst.members/members.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** members.php 12 Oct 2003 22:40:49 -0000 1.2 --- members.php 24 Dec 2003 18:05:53 -0000 1.3 *************** *** 26,33 **** * */ - include("../../config/globals.php"); include("$header"); - ?> <h2>openFIRST Manual Module</h2> --- 26,31 ---- *************** *** 83,87 **** </tr> <tr> ! <td>None.</td> </tr> <tr> --- 81,85 ---- </tr> <tr> ! <td>none</td> </tr> <tr> *************** *** 105,109 **** logout.php - ends all sessions and ensures the user has to login again<br> skills.php - allows users to edit their skills on the profile<br> ! links.php - a list of current links listed for the website</td> </tr> <tr> --- 103,112 ---- logout.php - ends all sessions and ensures the user has to login again<br> skills.php - allows users to edit their skills on the profile<br> ! links.php - a list of current links listed for the website<br> ! forgotten.php - allows to send emails for password retrieval<br> ! reset.php - allows users to actually reset their accounts<br> ! admin/index.php - allows administrators to manage user accounts<br> ! admin/editdivisions.php - allows administrators to edit divisions<br> ! admin/editmember.php - edit individual member information</td> </tr> <tr> |
From: <xt...@us...> - 2003-12-24 18:05:55
|
Update of /cvsroot/openfirst/emoticon In directory sc8-pr-cvs1:/tmp/cvs-serv12748 Modified Files: NOTES emoticonf.php index.php Log Message: Bring emoticon module into compliance with openFIRST coding standards Index: NOTES =================================================================== RCS file: /cvsroot/openfirst/emoticon/NOTES,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NOTES 24 Dec 2003 17:17:58 -0000 1.1 --- NOTES 24 Dec 2003 18:05:50 -0000 1.2 *************** *** 7,11 **** David Di Biase - Module approved. ! Tim Ginn - not yet audited ! Greg Inozemtsev - not yet audited \ No newline at end of file --- 7,11 ---- David Di Biase - Module approved. ! Tim Ginn - Module approved. ! Greg Inozemtsev - not yet audited Index: emoticonf.php =================================================================== RCS file: /cvsroot/openfirst/emoticon/emoticonf.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** emoticonf.php 24 Dec 2003 17:17:58 -0000 1.12 --- emoticonf.php 24 Dec 2003 18:05:50 -0000 1.13 *************** *** 33,45 **** function emoticon_translate ($text) { ! $query = ofirst_dbquery("SELECT * FROM ofirst_emoticon"); ! if (ofirst_dbnum_rows($query) != 0){ ! while ($er = ofirst_dbfetch_object($query)) { ! $text = str_replace($er->emoticon, $er->substitution, $text); } - } ! return $text; } --- 33,45 ---- function emoticon_translate ($text) { ! $query = ofirst_dbquery("SELECT * FROM ofirst_emoticon"); ! if (ofirst_dbnum_rows($query) != 0){ ! while ($er = ofirst_dbfetch_object($query)) { ! $text = str_replace($er->emoticon, $er->substitution, $text); ! } } ! return $text; } *************** *** 49,53 **** function emoticon_preview ($limit = 5, $start = 0) { ! global $basepath; $query = ofirst_dbquery("SELECT * FROM ofirst_emoticon LIMIT $start,$limit"); echo "<table><th>Emoticons</th><th></th>"; --- 49,53 ---- function emoticon_preview ($limit = 5, $start = 0) { ! global $basepath; $query = ofirst_dbquery("SELECT * FROM ofirst_emoticon LIMIT $start,$limit"); echo "<table><th>Emoticons</th><th></th>"; *************** *** 63,74 **** function slur_block ($text) { ! $query = ofirst_dbquery("SELECT * FROM ofirst_slurblock"); if (ofirst_dbnum_rows($query) != 0){ while ($er = ofirst_dbfetch_object($query)) { ! $text = str_replace($er->slur, $er->substitution, $text); } } - return $text; - } ?> --- 63,74 ---- function slur_block ($text) { ! $query = ofirst_dbquery("SELECT * FROM ofirst_slurblock"); if (ofirst_dbnum_rows($query) != 0){ while ($er = ofirst_dbfetch_object($query)) { ! $text = str_replace($er->slur, $er->substitution, $text); ! } } + return $text; } ?> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/emoticon/index.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** index.php 24 Dec 2003 17:17:58 -0000 1.7 --- index.php 24 Dec 2003 18:05:50 -0000 1.8 *************** *** 36,42 **** <input type='text' name='perpage' value='" . $_GET["perpage"] ."' size='3'> emoticons per page. <input type='submit' value='Show Emoticons'> ! </form>"); emoticon_preview($_GET["perpage"], $_GET["start"]); ! echo "<br>"; } else { echo("Emoticon functions are not enabled"); --- 36,42 ---- <input type='text' name='perpage' value='" . $_GET["perpage"] ."' size='3'> emoticons per page. <input type='submit' value='Show Emoticons'> ! </form>"); emoticon_preview($_GET["perpage"], $_GET["start"]); ! echo "<br>"; } else { echo("Emoticon functions are not enabled"); |
From: <dav...@us...> - 2003-12-24 18:05:25
|
Update of /cvsroot/openfirst/manual/openfirst.logger In directory sc8-pr-cvs1:/tmp/cvs-serv12685 Modified Files: logger.php Log Message: Content update, spelling/grammer updates and syntax in code. Index: logger.php =================================================================== RCS file: /cvsroot/openfirst/manual/openfirst.logger/logger.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** logger.php 12 Oct 2003 22:40:49 -0000 1.2 --- logger.php 24 Dec 2003 18:05:22 -0000 1.3 *************** *** 26,33 **** * */ - include("../../config/globals.php"); include("$header"); - ?> <h2>openFIRST Manual Module</h2> --- 26,31 ---- *************** *** 69,78 **** </tr> <tr> ! <td>The logger script does not have a visitor page. This module was ! designed for administrators to view who visits their website. You should ! <em>NOT </em>show the logger module on the menu, so please make sure you ! uncheck show on menu it in the module selector in <em>config</em>. The module carries logger.php through the entire website via the globals script. It ! logs all the information retrieved when it's on the page, then puts it into ! the database.</td> </tr> <tr> --- 67,75 ---- </tr> <tr> ! <td> This module was designed for administrators to view who visits their ! website, and to provide a stats page for anyone not an administrator. The ! module carries logger.php through the entire website via the globals script. ! It logs all the information retrieved when it's on the page, then puts it ! into the database.</td> </tr> <tr> *************** *** 80,86 **** </tr> <tr> ! <td>A new update will be made available that allows webmasters to calculate ! bandwidth used on the website, number of total hits, and page views. It ! will provide this information in a graphical chart format.</td> </tr> <tr> --- 77,81 ---- </tr> <tr> ! <td>none</td> </tr> <tr> |
From: <dav...@us...> - 2003-12-24 18:04:42
|
Update of /cvsroot/openfirst/manual/openfirst.guestbook In directory sc8-pr-cvs1:/tmp/cvs-serv12545 Modified Files: guestbook.php Log Message: Content update, spelling/grammer updates and syntax in code. Index: guestbook.php =================================================================== RCS file: /cvsroot/openfirst/manual/openfirst.guestbook/guestbook.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** guestbook.php 12 Oct 2003 22:40:49 -0000 1.2 --- guestbook.php 24 Dec 2003 18:04:39 -0000 1.3 *************** *** 26,33 **** * */ - include("../../config/globals.php"); include("$header"); - ?> <h2>openFIRST Manual Module</h2> --- 26,31 ---- |
From: <dav...@us...> - 2003-12-24 18:04:29
|
Update of /cvsroot/openfirst/manual/openfirst.feedback In directory sc8-pr-cvs1:/tmp/cvs-serv12511 Modified Files: feedback.php Log Message: Content update, spelling/grammer updates and syntax in code. Index: feedback.php =================================================================== RCS file: /cvsroot/openfirst/manual/openfirst.feedback/feedback.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** feedback.php 12 Oct 2003 22:40:49 -0000 1.2 --- feedback.php 24 Dec 2003 18:04:25 -0000 1.3 *************** *** 26,33 **** * */ - include("../../config/globals.php"); include("$header"); - ?> <h2>openFIRST Manual Module</h2> --- 26,31 ---- |
From: <dav...@us...> - 2003-12-24 18:04:11
|
Update of /cvsroot/openfirst/manual/openfirst.emoticon In directory sc8-pr-cvs1:/tmp/cvs-serv12464 Modified Files: emoticon.php Log Message: Content update, spelling/grammer updates and syntax in code. Index: emoticon.php =================================================================== RCS file: /cvsroot/openfirst/manual/openfirst.emoticon/emoticon.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** emoticon.php 12 Oct 2003 22:40:49 -0000 1.2 --- emoticon.php 24 Dec 2003 18:04:07 -0000 1.3 *************** *** 76,80 **** </tr> <tr> ! <td>None.</td> </tr> <tr> --- 76,81 ---- </tr> <tr> ! <td>More icons and more slurs will be implemented, as well as manager backends ! for both.</td> </tr> <tr> |
From: <dav...@us...> - 2003-12-24 18:03:53
|
Update of /cvsroot/openfirst/manual/openfirst.base In directory sc8-pr-cvs1:/tmp/cvs-serv12399 Modified Files: base.php Log Message: Content update, spelling/grammer updates and syntax in code. Index: base.php =================================================================== RCS file: /cvsroot/openfirst/manual/openfirst.base/base.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** base.php 12 Oct 2003 22:40:49 -0000 1.2 --- base.php 24 Dec 2003 18:03:50 -0000 1.3 *************** *** 26,33 **** * */ - include("../../config/globals.php"); include("$header"); - ?> <h2>openFIRST Manual Module</h2> --- 26,31 ---- *************** *** 43,48 **** </tr> <tr> ! <td>The openFIRST.base is the biggest most important module in all of openFIRST. ! Its function is to provide a foundation for all the other openFIRST modules..</td> </tr> <tr> --- 41,47 ---- </tr> <tr> ! <td>The openFIRST.base is the biggest and most important module in all of ! openFIRST. Its function is to provide a foundation for all the other openFIRST ! modules..</td> </tr> <tr> *************** *** 75,79 **** </tr> <tr> ! <td>New updates are planned to upgrade the header control system.</td> </tr> <tr> --- 74,78 ---- </tr> <tr> ! <td>None</td> </tr> <tr> *************** *** 121,128 **** dbase.php - used to store the function for querying databases<br> version.php - checks the current version of the entire system and updates ! it if there are new versions available.<br> functions/wysiwyg.php - contains a function for previewing the wysiwyg system<br> functions/forms.php - contains a function for form checking<br> ! functions/mail.php - contains the multipartmail function</td> </tr> <tr> --- 120,129 ---- dbase.php - used to store the function for querying databases<br> version.php - checks the current version of the entire system and updates ! it if there are new versions available<br> functions/wysiwyg.php - contains a function for previewing the wysiwyg system<br> functions/forms.php - contains a function for form checking<br> ! functions/mail.php - contains the multipartmail function<br> ! functions/debug.php - used for reporting website errors directly to openFIRST ! </td> </tr> <tr> |
From: <dav...@us...> - 2003-12-24 18:03:39
|
Update of /cvsroot/openfirst/manual/openfirst.awards In directory sc8-pr-cvs1:/tmp/cvs-serv12348 Modified Files: awards.php Log Message: Content update, spelling/grammer updates and syntax in code. Index: awards.php =================================================================== RCS file: /cvsroot/openfirst/manual/openfirst.awards/awards.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** awards.php 12 Oct 2003 22:40:49 -0000 1.2 --- awards.php 24 Dec 2003 18:03:35 -0000 1.3 *************** *** 26,33 **** * */ - include("../../config/globals.php"); include("$header"); - ?> <h2>openFIRST Manual Module</h2> --- 26,31 ---- *************** *** 71,75 **** <tr> <td>This is a very basic script that inserts and views award data in ofirst_awards. ! It uses images to depict 1st, 2nd and 3rd place positions.</td> </tr> <tr> --- 69,74 ---- <tr> <td>This is a very basic script that inserts and views award data in ofirst_awards. ! It uses images to depict 1st, 2nd and 3rd place positions and requests you ! to enter the award description, name and recipient.</td> </tr> <tr> *************** *** 102,104 **** </table> <p></p> ! <?php include("$footer"); --- 101,103 ---- </table> <p></p> ! <?php include("$footer") ?>; \ No newline at end of file |
From: <dav...@us...> - 2003-12-24 18:03:07
|
Update of /cvsroot/openfirst/manual In directory sc8-pr-cvs1:/tmp/cvs-serv12180 Modified Files: index.php Log Message: Content update Index: index.php =================================================================== RCS file: /cvsroot/openfirst/manual/index.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** index.php 12 Oct 2003 22:40:49 -0000 1.5 --- index.php 24 Dec 2003 18:03:03 -0000 1.6 *************** *** 26,33 **** * */ - include("../config/globals.php"); include("$header"); - ?> <h1 align="center">openFIRST Manual Module</h1> --- 26,31 ---- *************** *** 47,56 **** Perry Robotics Team</a>. As of September 30th 2003 openFIRST has a total of 4 supporting developers. The goal of the founders was to provide teams ! with an easy and efficient way of hosting and managing a website. Instead ! of worrying about the nitty-gritty aspects of a website any team can effectively ! and efficiently start a website and concentrate on getting their message ! out.</p> <p>If you have any information about the openFIRST Development Team then ! please visit our website. Also note that we are always looking for new and interesting modules. If your team has coded and founded a new module then please send it to openFIRST and have it implemented into the system.</p> --- 45,54 ---- Perry Robotics Team</a>. As of September 30th 2003 openFIRST has a total of 4 supporting developers. The goal of the founders was to provide teams ! with an easy and efficient way of hosting and managing a web site. Instead ! of worrying about the nitty-gritty aspects of a web site any team can ! effectively and efficiently start a web site and concentrate on getting ! their message out.</p> <p>If you have any information about the openFIRST Development Team then ! please visit our web site. Also note that we are always looking for new and interesting modules. If your team has coded and founded a new module then please send it to openFIRST and have it implemented into the system.</p> *************** *** 66,70 **** <li><a href="index.php?manual=setup">How to Setup openFIRST</a></li> <li><a href="index.php?manual=modules">Modules and Components</a></li> ! <li><a href="index.php?manual=customize">How to Customize Your Website</a></li> <li><a href="index.php?manual=advanced">The Nitty-Gritty of openFIRST</a><br> <br> --- 64,68 ---- <li><a href="index.php?manual=setup">How to Setup openFIRST</a></li> <li><a href="index.php?manual=modules">Modules and Components</a></li> ! <li><a href="index.php?manual=customize">How to Customize Your Web site</a></li> <li><a href="index.php?manual=advanced">The Nitty-Gritty of openFIRST</a><br> <br> *************** *** 85,88 **** --- 83,88 ---- <li><a href="openfirst.sidebars/sidebars.php">openFIRST.sidebars</a></li> <li><a href="openfirst.emoticon/emoticon.php">openFIRST.emoticon </a></li> + <li><a href="openfirst.forum/forum.php">openFIRST.forum</a></li> + <li><a href="openfirst.downloads/downloads.php">openFIRST.downloads</a></li> </ol> <p> </p></td> *************** *** 96,120 **** this page you will see a complete list of the modules and links to their manual references. The openFIRST system has many complex functions and is ! completely intergrated for allowing ease of use for webmasters. <p>The first step to setting up openFIRST is downloading and arranging the files according. For Unix users there is a module called bashinstall written by Tim Ginn that automatically retrieves and arranges the files. Unfortunately ! there is no equivelent for our Windows users, therefore we will have to ! do it the old-fashioned way. Follow these steps to ensure that ! you are installing and preparing your computer properly:</p> <ol> <li>Visit <a href='http://www.openfirst.org/'>http://www.openfirst.org</a> or <a href='http://www.openfirst.org/nightly/'>http://www.openfirst.org/nightly/</a> and download the latest version of the full openFIRST system.</li> <li>It's time to configure your system with the proper software. Click ! on one of the following links to learn how to setup your webserver technology: ! IIS/PWS with PHP on Windows, Apache with PHP on Windows, Apache with ! PHP on Linux.</li> ! <li>Click on one of the following links to learn how to setup your webserver ! with a database technology: MySQL on Windows, MySQL on Linux, MSSQL ! on Windows, ODBC on Windows, ODBC on Linux.</li> ! <li>Now that you have your webserver and database software setup and running ! properly lets unpack the files that you downloaded in Step 1 and place ! them somewhere beneath your document root directory. Here are some common locations of this directory: ! <table> <tr><th>Operating System</th><th>Web Server</th><th>Location</th></tr> <tr><td>Windows</td><td>Microsoft IIS/PWS</td><td>c:/inetpub/wwwroot/</td></tr> --- 96,121 ---- this page you will see a complete list of the modules and links to their manual references. The openFIRST system has many complex functions and is ! completely inter grated for allowing ease of use for webmasters. <p>The first step to setting up openFIRST is downloading and arranging the files according. For Unix users there is a module called bashinstall written by Tim Ginn that automatically retrieves and arranges the files. Unfortunately ! there is no equivalent for our Windows users, therefore we will have to ! do it the old-fashioned way. Follow these steps to ensure that you are ! installing and preparing your computer properly:</p> <ol> <li>Visit <a href='http://www.openfirst.org/'>http://www.openfirst.org</a> or <a href='http://www.openfirst.org/nightly/'>http://www.openfirst.org/nightly/</a> and download the latest version of the full openFIRST system.</li> <li>It's time to configure your system with the proper software. Click ! on one of the following links to learn how to setup your web server ! technology: IIS/PWS with PHP on Windows, Apache with PHP on Windows, ! Apache with PHP on Linux.</li> ! <li>Click on one of the following links to learn how to setup your web ! server with a database technology: MySQL on Windows, MySQL on Linux, ! MSSQL on Windows, ODBC on Windows, ODBC on Linux.</li> ! <li>Now that you have your web server and database software setup and ! running properly lets unpack the files that you downloaded in Step 1 ! and place them somewhere beneath your document root directory. Here ! are some common locations of this directory: ! <table> <tr><th>Operating System</th><th>Web Server</th><th>Location</th></tr> <tr><td>Windows</td><td>Microsoft IIS/PWS</td><td>c:/inetpub/wwwroot/</td></tr> *************** *** 131,149 **** files are set properly. You will want to make sure that you have write capability set for the globals file located at /config/globals.php.</li> ! <li>Now that you have your webserver, database and openFIRST base files in place we may begin the actual installation process.</li> <li>Open your database software and prepare your username and password for you will have to enter them into the openFIRST installer.</li> ! <li> If you are running opeFIRST on a local system you can use (http://localhost ! or 127.0.0.1) to access your webserver files. In some versions of IIS this will not work, if this is the case you will have to access your webserver using an alternative address. Open your web browser ! and navigate to localhost/config/index.php which should automatically ! direct you to the base configuration wizard.</li> <li>At this point you will be able to use our installer to guide you through the installation process.<br> <br> Note: Please be very careful when entering file locations and connecting ! files to the openFIRST system. If you conect the files incorrectly you ! will receive a slew of errors. If this is your case you will have refresh ! first.php and try again.</li> <li>If you have completed the install correctly the system should bring you to the next page error free. This page will prompt you for a username --- 132,152 ---- files are set properly. You will want to make sure that you have write capability set for the globals file located at /config/globals.php.</li> ! <li>Now that you have your web server, database and openFIRST base files in place we may begin the actual installation process.</li> <li>Open your database software and prepare your username and password for you will have to enter them into the openFIRST installer.</li> ! <li> If you are running openFIRST on a local system you can use (http://localhost ! or 127.0.0.1) to access your webserver files. In some versions of IIS ! this will not work, if this is the case you will have to access your ! web server using an alternative address. Open your web browser and navigate ! to localhost/config/index.php which should automatically direct you ! to the base configuration wizard.</li> <li>At this point you will be able to use our installer to guide you through the installation process.<br> <br> Note: Please be very careful when entering file locations and connecting ! files to the openFIRST system. If you connect the files incorrectly ! you will receive a slew of errors. If this is your case you will have ! refresh first.php and try again.</li> <li>If you have completed the install correctly the system should bring you to the next page error free. This page will prompt you for a username *************** *** 151,177 **** with this information: username: admin, password: openfirst.</li> <li>You should make sure there are no security holes by removing the write ! permissions from config/globals.php or deleting config/first.php. We are ! not responsible for any damaged websites or webservers if this security ! hole is not closed.</li> <li>openFIRST is designed to allow you to have control over the content ! and features on the website. When you unpackaged the file to the root directory you basically placed all the modules that come with the system in their correct spots. Now you will have to actually install the modules ! you wish to use. To do this, login to the openFIRST system from the screen following setup. Click Install Components. Select the modules which ! you would like to run on the openFIRST system. Note that you don't have ! to use all the modules that come with openFIRST. There are many people ! who would just like to a few of our modules for specific reasons. For more ! information on how to do this read the Modules & Components section ! of the manual.</li> <li>Once you have the modules installed you have to activate them and decide if you want them to be shown on the menu. Click Module Administration. A list of all the currently installed modules will be shown.</li> <li>Click on the checkboxes that correspond to each module. The Includes ! File texbox is used to edit the includes that each module are required to use. We added this feature to give webmasters more control over which functions to be included into the system. The files you list in the ! includes textbox will be found in the directory of the module. For example ! the logger module has an include file called logger.php. This file may ! be found at /logger/logger.php.</li> <li>Congratulations, you have just installed openFIRST, the first open-source robotics-oriented website for teams and students of the FIRST Robotics --- 154,181 ---- with this information: username: admin, password: openfirst.</li> <li>You should make sure there are no security holes by removing the write ! permissions from config/globals.php or deleting config/first.php. We ! are not responsible for any damaged web sites or web servers if this ! security hole is not closed.</li> <li>openFIRST is designed to allow you to have control over the content ! and features on the web site. When you unpackaged the file to the root directory you basically placed all the modules that come with the system in their correct spots. Now you will have to actually install the modules ! you wish to use. To do this, login to the openFIRST system from the ! screen following setup. Click Install Components. Select the modules ! which you would like to run on the openFIRST system. Note that you don't ! have to use all the modules that come with openFIRST. There are many ! people who would just like to a few of our modules for specific reasons. ! For more information on how to do this read the Modules & Components ! section of the manual.</li> <li>Once you have the modules installed you have to activate them and decide if you want them to be shown on the menu. Click Module Administration. A list of all the currently installed modules will be shown.</li> <li>Click on the checkboxes that correspond to each module. The Includes ! File text box is used to edit the includes that each module are required to use. We added this feature to give webmasters more control over which functions to be included into the system. The files you list in the ! includes text box will be found in the directory of the module. For ! example the logger module has an include file called logger.php. This ! file may be found at /logger/logger.php.</li> <li>Congratulations, you have just installed openFIRST, the first open-source robotics-oriented website for teams and students of the FIRST Robotics *************** *** 195,207 **** </tr> <tr> ! <td>So you'd like a few openFIRST modules but you don't want to have to use the ! entire system. We are perfectly fine with this; in fact we have developed ! openFIRST to enocourage this. In order to use just a few modules all you ! have to do is download the base module, plop it into your website root and ! run the base configuration utility. You can use headers and footers directly from your ! website or you can modify our provided headers and footers. ! <p>You can even use your original website database. All you have to do is ! use the same connection information. We made sure that openfirst tables ! wouldnt interfere with your websites table so we named each of our tables with a prefix of ofirst_.</p> <p>It's that easy. Just download and install the modules you want and viola!</p></td> --- 199,211 ---- </tr> <tr> ! <td>So you'd like a few openFIRST modules but you don't want to have to use ! the entire system. We are perfectly fine with this; in fact we have developed ! openFIRST to encourage this. In order to use just a few modules all you ! have to do is download the base module, plop it into your web site root ! and run the base configuration utility. You can use headers and footers ! directly from your web site or you can modify our provided headers and footers. ! <p>You can even use your original web site database. All you have to do ! is use the same connection information. We made sure that openfirst tables ! wouldn't interfere with your web sites table so we named each of our tables with a prefix of ofirst_.</p> <p>It's that easy. Just download and install the modules you want and viola!</p></td> *************** *** 216,220 **** <tr> <td>openFIRST was designed to allow the manipulation and/or addition to the ! system without interfering with important system functions. We enourage anyone who is fluent in PHP to help develop and expand the openFIRST Portal System. If a developer comes up with a quality module the openFIRST team --- 220,224 ---- <tr> <td>openFIRST was designed to allow the manipulation and/or addition to the ! system without interfering with important system functions. We entourage anyone who is fluent in PHP to help develop and expand the openFIRST Portal System. If a developer comes up with a quality module the openFIRST team *************** *** 224,233 **** and edit them to their own specifications, in this case you wont have to make extra code for displaying information such as header links. If ! you already have a website then you could adapt your header and footer ! files to work seemlesly with the openFIRST system. The headers and footers ! you specify are adapted everywhere on the system. Even the e-mail output includes the system headers.</p> <p>Our team has adopted CSS in the headers because we wanted to give our ! users more power in the design and look of the website. You will have to code the CSS to our specifications but at least you will be able to control colors, backgrounds etc.</p></td> --- 228,237 ---- and edit them to their own specifications, in this case you wont have to make extra code for displaying information such as header links. If ! you already have a web site then you could adapt your header and footer ! files to work seamlessly with the openFIRST system. The headers and footers ! you specify are adapted everywhere on the system. Even the e-mail output includes the system headers.</p> <p>Our team has adopted CSS in the headers because we wanted to give our ! users more power in the design and look of the web site. You will have to code the CSS to our specifications but at least you will be able to control colors, backgrounds etc.</p></td> *************** *** 263,267 **** ofirst_config which will automatically include any module-specific include files from each folder. For example logger has an include that is carried ! throughout the website to help log visitors. When globals is called it automatically gets the logger include files from the database and includes /logger/logger.php. It was programmed this way so that users will have --- 267,271 ---- ofirst_config which will automatically include any module-specific include files from each folder. For example logger has an include that is carried ! throughout the web site to help log visitors. When globals is called it automatically gets the logger include files from the database and includes /logger/logger.php. It was programmed this way so that users will have *************** *** 277,288 **** <p align="left">So as you can see openFIRST is very extensible and neatly coded to allow for PHP programmers to easily develop something or adapt ! the website. Note: this chart does not list all the avaiable variables/functions ! avaiable globally throughout the website. You must read the descriptions of each individual module manual to get that information.</p> <p align="left">Be creative and have fun with your coding!</p></td> </tr> </table> ! ! <?php ! } ?> ! <?php include("$footer"); ?> --- 281,289 ---- <p align="left">So as you can see openFIRST is very extensible and neatly coded to allow for PHP programmers to easily develop something or adapt ! the web site. Note: this chart does not list all the available variables/functions ! available globally throughout the web site. You must read the descriptions of each individual module manual to get that information.</p> <p align="left">Be creative and have fun with your coding!</p></td> </tr> </table> ! <?php } include("$footer"); ?> |
From: <dav...@us...> - 2003-12-24 18:02:39
|
Update of /cvsroot/openfirst/manual/openfirst.forum In directory sc8-pr-cvs1:/tmp/cvs-serv12143 Added Files: forum.php Log Message: initial upload --- NEW FILE: forum.php --- <?php /* * openFIRST.manual - /openfirst.emoticon/emoticon.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ include("../../config/globals.php"); include("$header"); ?> <h2>openFIRST Manual Module</h2> <table width="65%" cellpadding="4"> <tr> <th>openFIRST.forum</th> </tr> <tr> <td><div align="center"> <p> </p> <p align="center">[ No screenshots ]</p> <p> </p> </div></td> </tr> <tr> <td class='sub' ><strong>Description:</strong></td> </tr> <tr> <td>The openFIRST.forum should act as a discussion and conversing area of your website. Team members have the ability to login and display thoughts and comments on particular subjects.</td> </tr> <tr> <td class='sub' ><strong>Developed By:</strong></td> </tr> <tr> <td>Greg Inozemtsev of openFIRST</td> </tr> <tr> <td class='sub' ><strong>Database Tables</strong></td> </tr> <tr> <td>ofirst_forum</td> </tr> <tr> <td class='sub' ><strong>Includes</strong></td> </tr> <tr> <td>none</td> </tr> <tr> <td class='sub' ><strong>How It Works</strong></td> </tr> <tr> <td>--</td> </tr> <tr> <td class='sub' ><strong>Upcoming Module Requests</strong></td> </tr> <tr> <td>--</td> </tr> <tr> <td class='sub' ><strong>Module Defined Variables</strong></td> </tr> <tr> <td><p>--</p> </td> </tr> <tr> <td class='sub' ><strong>Module Scripts</strong></td> </tr> <tr> <td>--</td> </tr> <tr> <td class='sub' ><strong>Related Modules <font size="2">(required for using this module)</font></strong></td> </tr> <tr> <td>openFIRST.base, openFIRST.membres, openFIRST.news (optional)</td> </tr> </table> <p><strong></strong></p> <?php include("$footer"); ?> |
From: <dav...@us...> - 2003-12-24 18:02:16
|
Update of /cvsroot/openfirst/manual/openfirst.forum In directory sc8-pr-cvs1:/tmp/cvs-serv12094/openfirst.forum Log Message: Directory /cvsroot/openfirst/manual/openfirst.forum added to the repository |
From: <dav...@us...> - 2003-12-24 18:02:03
|
Update of /cvsroot/openfirst/manual/openfirst.downloads In directory sc8-pr-cvs1:/tmp/cvs-serv12030 Added Files: downloads.php Log Message: initial upload --- NEW FILE: downloads.php --- <?php /* * openFIRST.manual - /openfirst.emoticon/emoticon.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ include("../../config/globals.php"); include("$header"); ?> <h2>openFIRST Manual Module</h2> <table width="65%" cellpadding="4"> <tr> <th>openFIRST.downloads</th> </tr> <tr> <td><div align="center"> <p> </p> <p align="center">[ No screenshots ]</p> <p> </p> </div></td> </tr> <tr> <td class='sub' ><strong>Description:</strong></td> </tr> <tr> <td>The openFIRST.downloads is used to manage resources and downloads that your website wishes for other teams to use.</td> </tr> <tr> <td class='sub' ><strong>Developed By:</strong></td> </tr> <tr> <td>Greg Inozemtsev of openFIRST</td> </tr> <tr> <td class='sub' ><strong>Database Tables</strong></td> </tr> <tr> <td>ofirst_forum</td> </tr> <tr> <td class='sub' ><strong>Includes</strong></td> </tr> <tr> <td>none</td> </tr> <tr> <td class='sub' ><strong>How It Works</strong></td> </tr> <tr> <td>--</td> </tr> <tr> <td class='sub' ><strong>Upcoming Module Requests</strong></td> </tr> <tr> <td>--</td> </tr> <tr> <td class='sub' ><strong>Module Defined Variables</strong></td> </tr> <tr> <td><p>--</p> </td> </tr> <tr> <td class='sub' ><strong>Module Scripts</strong></td> </tr> <tr> <td>--</td> </tr> <tr> <td class='sub' ><strong>Related Modules <font size="2">(required for using this module)</font></strong></td> </tr> <tr> <td>openFIRST.base, openFIRST.members</td> </tr> </table> <p><strong></strong></p> <?php include("$footer"); ?> |
From: <dav...@us...> - 2003-12-24 18:01:37
|
Update of /cvsroot/openfirst/manual/openfirst.downloads In directory sc8-pr-cvs1:/tmp/cvs-serv11941/openfirst.downloads Log Message: Directory /cvsroot/openfirst/manual/openfirst.downloads added to the repository |
From: <xt...@us...> - 2003-12-24 17:43:29
|
Update of /cvsroot/openfirst/awards/admin In directory sc8-pr-cvs1:/tmp/cvs-serv9281/admin Modified Files: index.php Log Message: Bring awards module into compliance with openFIRST coding standards, fix issue which may cause graphical glitch on some browsers. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/awards/admin/index.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** index.php 27 Nov 2003 01:32:35 -0000 1.13 --- index.php 24 Dec 2003 17:43:25 -0000 1.14 *************** *** 34,38 **** if($user->membertype=="administrator"){ // If user has posted delete then delete specified record in querystring DELETE ! if (ISSET($_GET['DELETE'])){ ofirst_dbquery("DELETE FROM ofirst_awards WHERE ID = '".$_GET['DELETE']."'") or die("DELETE: ". ofirst_dberror()); --- 34,38 ---- if($user->membertype=="administrator"){ // If user has posted delete then delete specified record in querystring DELETE ! if (isset($_GET['DELETE'])){ ofirst_dbquery("DELETE FROM ofirst_awards WHERE ID = '".$_GET['DELETE']."'") or die("DELETE: ". ofirst_dberror()); *************** *** 42,58 **** // If user has posted create then insert new award record ! if (ISSET($_POST['create'])){ if($_POST['award']!=""){ ofirst_dbquery("INSERT INTO ofirst_awards (AwardName,Event,Date,Image,Description,Recipient) values( '".$_POST['award']."', ! '".$_POST['event']."', ! '".$_POST['date']."', ! '".$_POST['type']."', ! '".$_POST['description']."', ! '".$_POST['recipient']."')") or die("INSERT: ". ofirst_dberror()); echo("<p>Congratulations on your new award. Award submitted!</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); ! }else{ echo("<p>Please enter a name for the award.</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); } --- 42,58 ---- // If user has posted create then insert new award record ! if (isset($_POST['create'])){ if($_POST['award']!=""){ ofirst_dbquery("INSERT INTO ofirst_awards (AwardName,Event,Date,Image,Description,Recipient) values( '".$_POST['award']."', ! '".$_POST['event']."', ! '".$_POST['date']."', ! '".$_POST['type']."', ! '".$_POST['description']."', ! '".$_POST['recipient']."')") or die("INSERT: ". ofirst_dberror()); echo("<p>Congratulations on your new award. Award submitted!</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); ! } else { echo("<p>Please enter a name for the award.</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); } *************** *** 62,66 **** // If the user has submitted modifications to an award, then make them. ! if (ISSET($_POST['modify'])){ if($_POST['award']!=""){ ofirst_dbquery("UPDATE ofirst_awards SET AwardName='".$_POST['award']."', --- 62,66 ---- // If the user has submitted modifications to an award, then make them. ! if (isset($_POST['modify'])){ if($_POST['award']!=""){ ofirst_dbquery("UPDATE ofirst_awards SET AwardName='".$_POST['award']."', *************** *** 68,77 **** Date = '".$_POST['date'] . "', Image = '".$_POST['type']."', ! Description = '".$_POST['description']."', Recipient = '".$_POST['recipient']."' WHERE ID='" . $_POST["AwardID"] . "';") or die("UPDATE: ".ofirst_dberror()); echo("<p>Award modifications submitted!</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); ! }else{ echo("<p>Please enter a name for the award.</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); } --- 68,77 ---- Date = '".$_POST['date'] . "', Image = '".$_POST['type']."', ! Description = '".$_POST['description']."', Recipient = '".$_POST['recipient']."' WHERE ID='" . $_POST["AwardID"] . "';") or die("UPDATE: ".ofirst_dberror()); echo("<p>Award modifications submitted!</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); ! } else { echo("<p>Please enter a name for the award.</p><p>[ <a href='./'>Manage Awards</a> ]</p>"); } *************** *** 82,88 **** // If the user has elected to modify an award, fill the form with those details. if(isset($_GET["MODIFY"])) { ! $award = ofirst_dbfetch_object(ofirst_dbquery("SELECT * FROM ofirst_awards WHERE ID='" . $_GET["MODIFY"] . "';")); } else { ! $award = ""; } ?> --- 82,88 ---- // If the user has elected to modify an award, fill the form with those details. if(isset($_GET["MODIFY"])) { ! $award = ofirst_dbfetch_object(ofirst_dbquery("SELECT * FROM ofirst_awards WHERE ID='" . $_GET["MODIFY"] . "';")); } else { ! $award = ""; } ?> *************** *** 94,103 **** <th> </th> <th><?php ! if ($award == "") { ! echo("Add A New Award"); ! } else { ! echo("Modify an Existing Award ! <input type='hidden' id='AwardID' name='AwardID' value='$award->ID'>"); ! } ?></th> </tr> <tr> --- 94,103 ---- <th> </th> <th><?php ! if ($award == "") { ! echo("Add A New Award"); ! } else { ! echo("Modify an Existing Award ! <input type='hidden' id='AwardID' name='AwardID' value='$award->ID'>"); ! } ?></th> </tr> <tr> *************** *** 112,120 **** <th>Date</th> <td><input name="date" type="text" id="date" value="<?php ! if($award == "") { ! echo date("Y-n-j"); ! } else { ! echo $award->Date; ! } ?>" size="10"> <sub>(Use this syntax: Year-Month-Day)</sub></td> </tr> --- 112,120 ---- <th>Date</th> <td><input name="date" type="text" id="date" value="<?php ! if($award == "") { ! echo date("Y-n-j"); ! } else { ! echo $award->Date; ! } ?>" size="10"> <sub>(Use this syntax: Year-Month-Day)</sub></td> </tr> *************** *** 122,130 **** <th>Recipient</th> <td><input name="recipient" type="text" id="recipient" value="<?php ! if($award == "") { ! echo ("Team Award"); ! } else { ! echo $award->Recipient; ! } ?>"></td> </tr> <tr> --- 122,130 ---- <th>Recipient</th> <td><input name="recipient" type="text" id="recipient" value="<?php ! if($award == "") { ! echo ("Team Award"); ! } else { ! echo $award->Recipient; ! } ?>"></td> </tr> <tr> *************** *** 155,163 **** <tr> <th> </th> ! <?php if($award == "") { ?> <td><input name="create" type="submit" id="create" value="Create Listing"></td> ! <?php } else { ?> <td><input name="modify" type="submit" id="modify" value="Modify Listing"></td> ! <?php } ?> </tr> </table> --- 155,163 ---- <tr> <th> </th> ! <?php if($award == "") { ?> <td><input name="create" type="submit" id="create" value="Create Listing"></td> ! <?php } else { ?> <td><input name="modify" type="submit" id="modify" value="Modify Listing"></td> ! <?php } ?> </tr> </table> *************** *** 165,169 **** <table> <tr> ! <th> </th> <th>Award Name</th> <th>Event</th> --- 165,169 ---- <table> <tr> ! <th> </th> <th>Award Name</th> <th>Event</th> *************** *** 173,179 **** </tr> <?php ! // Loop through awards ordered by date ! $query = ofirst_dbquery("SELECT * FROM ofirst_awards ORDER BY Date"); ! while($awards = ofirst_dbfetch_object($query)){ ?> <tr> --- 173,179 ---- </tr> <?php ! // Loop through awards ordered by date ! $query = ofirst_dbquery("SELECT * FROM ofirst_awards ORDER BY Date"); ! while($awards = ofirst_dbfetch_object($query)){ ?> <tr> *************** *** 186,198 **** </tr> <?php ! } ! if(ofirst_dbnum_rows($query) == 0){ ! echo "<tr><td> </td><td> </td><td>No awards entered!</td><td> </td><td> </td><td> </td></tr>"; ! } ?> </table> <br> <?php ! }else{ echo("<h1>Manage Award Information</h1><p>Only administrators can use this feature</p>"); } --- 186,198 ---- </tr> <?php ! } ! if(ofirst_dbnum_rows($query) == 0){ ! echo "<tr><td> </td><td> </td><td>No awards entered!</td><td> </td><td> </td><td> </td></tr>"; ! } ?> </table> <br> <?php ! } else { echo("<h1>Manage Award Information</h1><p>Only administrators can use this feature</p>"); } *************** *** 200,203 **** showlogin(); } ! include_once($footer); ?> --- 200,203 ---- showlogin(); } ! include_once($footer); ?> |
From: <xt...@us...> - 2003-12-24 17:43:28
|
Update of /cvsroot/openfirst/awards In directory sc8-pr-cvs1:/tmp/cvs-serv9281 Modified Files: NOTES index.php Log Message: Bring awards module into compliance with openFIRST coding standards, fix issue which may cause graphical glitch on some browsers. Index: NOTES =================================================================== RCS file: /cvsroot/openfirst/awards/NOTES,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NOTES 24 Dec 2003 17:30:14 -0000 1.1 --- NOTES 24 Dec 2003 17:43:25 -0000 1.2 *************** *** 7,11 **** David Di Biase - Module approved. ! Tim Ginn - not yet audited ! Greg Inozemtsev - not yet audited \ No newline at end of file --- 7,11 ---- David Di Biase - Module approved. ! Tim Ginn - Module approved. ! Greg Inozemtsev - not yet audited Index: index.php =================================================================== RCS file: /cvsroot/openfirst/awards/index.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** index.php 27 Nov 2003 02:36:09 -0000 1.10 --- index.php 24 Dec 2003 17:43:25 -0000 1.11 *************** *** 1,5 **** <?php /* ! * openFIRST.awards - awards.php * * Copyright (C) 2003, --- 1,5 ---- <?php /* ! * openFIRST.awards - index.php * * Copyright (C) 2003, *************** *** 53,57 **** <tr valign="top"> <td><img src="awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>"></td> ! <td> <b><?php echo $awards->AwardName; ?></b> <br> <?php echo $awards->Description; ?> </td> <td><?php echo $awards->Event; ?></td> --- 53,57 ---- <tr valign="top"> <td><img src="awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>"></td> ! <td><b><?php echo $awards->AwardName; ?></b><br> <?php echo $awards->Description; ?> </td> <td><?php echo $awards->Event; ?></td> |
From: <dav...@us...> - 2003-12-24 17:35:17
|
Update of /cvsroot/openfirst/members/admin In directory sc8-pr-cvs1:/tmp/cvs-serv8031 Modified Files: index.php editmember.php editdivisions.php Log Message: Closed security hole for administrator access. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/members/admin/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.php 23 Dec 2003 23:10:18 -0000 1.3 --- index.php 24 Dec 2003 17:35:08 -0000 1.4 *************** *** 29,35 **** include_once($header); ! // Check if user is a member ! if(! isset($user->user)) { ! die(showlogin() . include($footer)); } --- 29,36 ---- include_once($header); ! // Check if user is an admin then allow processes ! if(! isset($user->user) || $user->membertype != "administrator"){ ! showlogin(); ! die(include_once($footer)); } Index: editmember.php =================================================================== RCS file: /cvsroot/openfirst/members/admin/editmember.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** editmember.php 23 Dec 2003 23:10:18 -0000 1.3 --- editmember.php 24 Dec 2003 17:35:08 -0000 1.4 *************** *** 29,35 **** include_once($header); ! // Check if user is a member ! if(! isset($user->user)) { ! die(showlogin() . include($footer)); } --- 29,36 ---- include_once($header); ! // Check if user is an admin then allow processes ! if(! isset($user->user) || $user->membertype != "administrator"){ ! showlogin(); ! die(include_once($footer)); } Index: editdivisions.php =================================================================== RCS file: /cvsroot/openfirst/members/admin/editdivisions.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** editdivisions.php 23 Dec 2003 23:10:18 -0000 1.4 --- editdivisions.php 24 Dec 2003 17:35:08 -0000 1.5 *************** *** 29,35 **** include_once($header); ! // Check if user is a member ! if(! isset($user->user)) { ! die(showlogin() . include($footer)); } --- 29,36 ---- include_once($header); ! // Check if user is an admin then allow processes ! if(! isset($user->user) || $user->membertype != "administrator"){ ! showlogin(); ! die(include_once($footer)); } |
From: <dav...@us...> - 2003-12-24 17:30:18
|
Update of /cvsroot/openfirst/awards In directory sc8-pr-cvs1:/tmp/cvs-serv7458 Added Files: NOTES Log Message: initial upload --- NEW FILE: NOTES --- openFIRST.awards --- ** December 25, 2003 Release ** David Di Biase - Module approved. Tim Ginn - not yet audited Greg Inozemtsev - not yet audited |
From: <dav...@us...> - 2003-12-24 17:18:01
|
Update of /cvsroot/openfirst/emoticon In directory sc8-pr-cvs1:/tmp/cvs-serv5575 Modified Files: index.php emoticonf.php Added Files: NOTES Log Message: Added NOTES file for auditing. Many updates were made. Check the NOTES file. --- NEW FILE: NOTES --- openFIRST.emoticon --- ** December 25, 2003 Release ** David Di Biase - Module approved. Tim Ginn - not yet audited Greg Inozemtsev - not yet audited Index: index.php =================================================================== RCS file: /cvsroot/openfirst/emoticon/index.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** index.php 13 Oct 2003 17:52:29 -0000 1.6 --- index.php 24 Dec 2003 17:17:58 -0000 1.7 *************** *** 28,31 **** --- 28,32 ---- include_once("../config/globals.php"); include_once($header); + if(function_exists("emoticon_preview")) { if(! isset($_GET["perpage"])) { $_GET["perpage"] = 25; } *************** *** 41,44 **** echo("Emoticon functions are not enabled"); } ! include_once($footer); ! ?> --- 42,45 ---- echo("Emoticon functions are not enabled"); } ! ! include_once($footer); ?> Index: emoticonf.php =================================================================== RCS file: /cvsroot/openfirst/emoticon/emoticonf.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** emoticonf.php 13 Sep 2003 15:35:01 -0000 1.11 --- emoticonf.php 24 Dec 2003 17:17:58 -0000 1.12 *************** *** 32,36 **** // switched text. ! function emoticon_translate ($text) { $query = ofirst_dbquery("SELECT * FROM ofirst_emoticon"); --- 32,36 ---- // switched text. ! function emoticon_translate ($text) { $query = ofirst_dbquery("SELECT * FROM ofirst_emoticon"); *************** *** 42,74 **** return $text; ! } ! // Displays emoticons in a table. ! // Its a good function to place on a messaging system ! // or have as reference page. ! function emoticon_preview ($limit = 5, $start = 0) { ! global $basepath; ! $query = ofirst_dbquery("SELECT * FROM ofirst_emoticon LIMIT $start,$limit"); ! echo "<table><th>Emoticons</th><th></th>"; ! while ($emot = ofirst_dbfetch_object($query)) { ! echo "<tr><td>".$emot->substitution."</td><td>".$emot->emoticon."</td></tr>"; } - echo "<td><a href='$basepath/emoticon/'>Show more...</a></td></table>"; - } ! // Analyzis database and compares slur words ! // then it replaces the slur words with its ! // substitution value. ! function slur_block ($text) { $query = ofirst_dbquery("SELECT * FROM ofirst_slurblock"); ! ! if (ofirst_dbnum_rows($query) != 0){ ! while ($er = ofirst_dbfetch_object($query)) { $text = str_replace($er->slur, $er->substitution, $text); } } - return $text; } --- 42,72 ---- return $text; ! } ! // Displays emoticons in a table. ! // Its a good function to place on a messaging system ! // or have as reference page. ! function emoticon_preview ($limit = 5, $start = 0) { ! global $basepath; ! $query = ofirst_dbquery("SELECT * FROM ofirst_emoticon LIMIT $start,$limit"); ! echo "<table><th>Emoticons</th><th></th>"; ! while ($emot = ofirst_dbfetch_object($query)) { ! echo "<tr><td>".$emot->substitution."</td><td>".$emot->emoticon."</td></tr>"; ! } ! echo "<td><a href='$basepath/emoticon/'>Show more...</a></td></table>"; } ! // Analyzis database and compares slur words ! // then it replaces the slur words with its ! // substitution value. ! function slur_block ($text) { $query = ofirst_dbquery("SELECT * FROM ofirst_slurblock"); ! if (ofirst_dbnum_rows($query) != 0){ ! while ($er = ofirst_dbfetch_object($query)) { $text = str_replace($er->slur, $er->substitution, $text); } } return $text; } |
From: <dav...@us...> - 2003-12-24 17:06:23
|
Update of /cvsroot/openfirst/forum/admin In directory sc8-pr-cvs1:/tmp/cvs-serv4039 Modified Files: index.php Log Message: Added NOTES file for auditing. Many updates were made. Check the NOTES file. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/forum/admin/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 13 Oct 2003 22:12:04 -0000 1.1 --- index.php 24 Dec 2003 17:06:18 -0000 1.2 *************** *** 26,47 **** * */ - include_once("../../config/globals.php"); - include_once($header); echo("<h1>Forum Admin</h1>"); ! if (isset($user->membertype)&&$user->membertype=="administrator"){ ! if(!isset($_POST["act"])) { ! $query = ofirst_dbquery("SELECT * FROM ofirst_forum ORDER BY ID"); ! echo("<table width=300><tr><th colspan=2><label for=cat>Forum</label></th></tr>"); ! echo('<tr><td align=center colspan=2><form id=ForumAdmin name=ForumAdmin method="POST" action="index.php"><select style="width:250px" name=cat id=cat size=4>'); ! if(ofirst_dbnum_rows($query)==0){ ! echo('<option selected value="0">(none)</option></select>'); ! } ! else{ while($cat = ofirst_dbfetch_object($query)){ ! echo('<option value="'.$cat->ID.'">'.ucfirst($cat->name).'</option>'); } ?> --- 26,44 ---- * */ include_once("../../config/globals.php"); include_once($header); echo("<h1>Forum Admin</h1>"); ! if (isset($user->membertype) && $user->membertype == "administrator"){ ! if(! isset($_POST["act"])) { ! $query = ofirst_dbquery("SELECT * FROM ofirst_forum ORDER BY ID"; ! echo "<table width=300><tr><th colspan=2><label for=cat>Forum</label></th></tr>"; ! echo '<tr><td align=center colspan=2><form id=ForumAdmin name=ForumAdmin method="POST" action="index.php"><select style="width:250px" name=cat id=cat size=4>'); ! if(ofirst_dbnum_rows($query) == 0){ ! echo '<option selected value="0">(none)</option></select>'; ! } else { while($cat = ofirst_dbfetch_object($query)){ ! echo '<option value="'.$cat->ID.'">'.ucfirst($cat->name).'</option>'; } ?> *************** *** 63,69 **** document.ForumAdmin.submit(); } " value=Delete></td></tr> ! <?php ! } ! ?> <input type=hidden name=act value="new"> <tr><th colspan=2>New Subforum</th></tr> --- 60,64 ---- document.ForumAdmin.submit(); } " value=Delete></td></tr> ! <?php } ?> <input type=hidden name=act value="new"> <tr><th colspan=2>New Subforum</th></tr> *************** *** 75,148 **** </td></tr></table></form> <?php ! } ! else { // Action switch($_POST["act"]){ case "hide": { ! if(isset($_POST["cat"])&&$_POST["cat"]!=0){ ! $q=ofirst_dbquery("SELECT name,hidden FROM ofirst_forum WHERE ID='".$_POST["cat"]."'"); ! $subforum=ofirst_dbfetch_object($q); if($subforum->hidden){ ofirst_dbquery("UPDATE ofirst_forum SET hidden='0' WHERE ID='".$_POST["cat"]."'"); ! echo("<div>Subforum ".$subforum->name." is now visible to all visitors</div>"); ! } ! else{ ofirst_dbquery("UPDATE ofirst_forum SET hidden='1' WHERE ID='".$_POST["cat"]."'"); ! echo("<div>Subforum ".$subforum->name." is only shown to administrators</div>"); } ! } ! else{ ! echo("<div>No action has been performed</div>"); } break; } case "close": { ! if(isset($_POST["cat"])&&$_POST["cat"]!=0){ ! $q=ofirst_dbquery("SELECT name,closed FROM ofirst_forum WHERE ID='".$_POST["cat"]."'"); ! $subforum=ofirst_dbfetch_object($q); if($subforum->closed){ ofirst_dbquery("UPDATE ofirst_forum SET closed='0' WHERE ID='".$_POST["cat"]."'"); ! echo("<div>Subforum ".$subforum->name." is now unlocked</div>"); } else{ ofirst_dbquery("UPDATE ofirst_forum SET closed='1' WHERE ID='".$_POST["cat"]."'"); ! echo("<div>Subforum ".$subforum->name." is now locked</div>"); } ! } ! else{ ! echo("<div>No action has been performed</div>"); } break; } case "delete": { ! if(isset($_POST["cat"])&&$_POST["cat"]!=0){ ! $q=ofirst_dbquery("SELECT name FROM ofirst_forum WHERE ID='".$_POST["cat"]."'"); ! $subforum=ofirst_dbfetch_object($q); ofirst_dbquery("DELETE FROM ofirst_forumposts WHERE forum='".$subforum->name."'"); ofirst_dbquery("DELETE FROM ofirst_forum WHERE ID='".$_POST["cat"]."'"); ! echo("<div>Subforum ".$subforum->name." deleted</div>"); ! } ! else{ ! echo("<div>No action has been performed</div>"); } break; } default: { ! if($_POST["newcat"]!=""){ ! $subforum=0; ! $q=ofirst_dbquery("SELECT name FROM ofirst_forum WHERE subforum='0'"); if(isset($_POST["cat"])){ ! $subforum=$_POST["cat"]; } ! if(ofirst_dbnum_rows($q)==0||$subforum!=0){ ofirst_dbquery("INSERT INTO ofirst_forum (name, message, subforum) VALUES ('" . $_POST["newcat"] . "', '" . $_POST["newdesc"] . "', '" .$subforum. "');"); ! echo("<div>Subforum ".$_POST["newcat"]." created</div>"); ! } ! else { ! echo("<div>Root category already exists. You must create a subforum.</div>"); } ! } ! else{ ! echo("<div>No action has been performed</div>"); } break; --- 70,138 ---- </td></tr></table></form> <?php ! } else { // Action switch($_POST["act"]){ case "hide": { ! if(isset($_POST["cat"]) && $_POST["cat"] != 0){ ! $q = ofirst_dbquery("SELECT name,hidden FROM ofirst_forum WHERE ID='".$_POST["cat"]."'"); ! $subforum = ofirst_dbfetch_object($q); if($subforum->hidden){ ofirst_dbquery("UPDATE ofirst_forum SET hidden='0' WHERE ID='".$_POST["cat"]."'"); ! echo "<div>Subforum ".$subforum->name." is now visible to all visitors</div>"; ! } else { ofirst_dbquery("UPDATE ofirst_forum SET hidden='1' WHERE ID='".$_POST["cat"]."'"); ! echo "<div>Subforum ".$subforum->name." is only shown to administrators</div>"; } ! } else { ! echo "<div>No action has been performed</div>"; } break; } case "close": { ! if(isset($_POST["cat"]) && $_POST["cat"] != 0){ ! $q = ofirst_dbquery("SELECT name,closed FROM ofirst_forum WHERE ID='".$_POST["cat"]."'"); ! $subforum = ofirst_dbfetch_object($q); if($subforum->closed){ ofirst_dbquery("UPDATE ofirst_forum SET closed='0' WHERE ID='".$_POST["cat"]."'"); ! echo "<div>Subforum ".$subforum->name." is now unlocked</div>"; } else{ ofirst_dbquery("UPDATE ofirst_forum SET closed='1' WHERE ID='".$_POST["cat"]."'"); ! echo "<div>Subforum ".$subforum->name." is now locked</div>"; } ! } else { ! echo "<div>No action has been performed</div>"; } break; } case "delete": { ! if(isset($_POST["cat"]) && $_POST["cat"] != 0){ ! $q = ofirst_dbquery("SELECT name FROM ofirst_forum WHERE ID='".$_POST["cat"]."'"); ! ! $subforum = ofirst_dbfetch_object($q); ofirst_dbquery("DELETE FROM ofirst_forumposts WHERE forum='".$subforum->name."'"); ofirst_dbquery("DELETE FROM ofirst_forum WHERE ID='".$_POST["cat"]."'"); ! ! echo "<div>Subforum ".$subforum->name." deleted</div>"; ! } else { ! echo "<div>No action has been performed</div>"; } break; } default: { ! if($_POST["newcat"] != ""){ ! $subforum = 0; ! $q = ofirst_dbquery("SELECT name FROM ofirst_forum WHERE subforum='0'"); if(isset($_POST["cat"])){ ! $subforum = $_POST["cat"]; } ! if(ofirst_dbnum_rows($q) == 0 || $subforum != 0){ ofirst_dbquery("INSERT INTO ofirst_forum (name, message, subforum) VALUES ('" . $_POST["newcat"] . "', '" . $_POST["newdesc"] . "', '" .$subforum. "');"); ! echo "<div>Subforum ".$_POST["newcat"]." created</div>"; ! } else { ! echo "<div>Root category already exists. You must create a subforum.</div>"; } ! } else { ! echo "<div>No action has been performed</div>"; } break; *************** *** 150,158 **** } } ! } ! else{ ! echo("<div>You must log in as an administrative user to use this feature</div>"); } ! include_once($footer); ! ?> --- 140,146 ---- } } ! } else { ! echo "<div>You must log in as an administrative user to use this feature</div>"; } ! include_once($footer); ?> |
From: <dav...@us...> - 2003-12-24 17:06:03
|
Update of /cvsroot/openfirst/forum In directory sc8-pr-cvs1:/tmp/cvs-serv3912 Modified Files: thread.php newpost.php login.php index.php forumvisit.php editpost.php Added Files: NOTES Log Message: Added NOTES file for auditing. Many updates were made. Check the NOTES file. --- NEW FILE: NOTES --- openFIRST.forum --- ** December 25, 2003 Release ** David Di Biase - Module approved. There was MUCH syntax editing required for this module. I think its because this module was written when Greg first joined the team so he wasn't completely aware of our coding rules. I have arranged the code to match the rest of the modules. Very nice logic though. Tim Ginn - not yet audited Greg Inozemtsev - not yet audited Index: thread.php =================================================================== RCS file: /cvsroot/openfirst/forum/thread.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** thread.php 25 Oct 2003 23:02:50 -0000 1.3 --- thread.php 24 Dec 2003 17:05:59 -0000 1.4 *************** *** 26,33 **** * */ ! ! //number of threads per page ! define("posts_page",10); ! include("../config/globals.php"); include($header); --- 26,30 ---- * */ ! define("posts_page",10); // Define number of posts to show include("../config/globals.php"); include($header); *************** *** 46,150 **** $forum=""; ! if($thread!=0){ $query = ofirst_dbquery("SELECT * FROM ofirst_forumposts WHERE ID=".$thread); ! if(ofirst_dbnum_rows($query)!=0){ ! $msg=ofirst_dbfetch_object($query); ! $reply=$msg->ID; ! $forum=$msg->forum; - $sub=$forum; - $res=""; - while($sub!=""){ - $res=" > ".'<a href="'.$basepath."/forum/index.php?forum=".urlencode($sub).'">'.ucfirst($sub)."</a>".$res; - $q=ofirst_dbquery("SELECT subforum FROM ofirst_forum WHERE name='".$sub."'"); if(ofirst_dbnum_rows($q)!=0){ ! $sub=ofirst_dbfetch_object($q); ! $q=ofirst_dbquery("SELECT name,subforum FROM ofirst_forum WHERE ID=".$sub->subforum); ! $sub=ofirst_dbfetch_object($q); ! if($sub->subforum!=0){ ! $sub=$sub->name; ! } ! else { break; } ! } ! else { break; } } ! echo('<div align=left><a href="'.$basepath.'/forum">'.$title." Forums</a> $res</div>"); ! echo("<h1>$msg->Title</h1>"); ! echo("<table width=600><tr><th colspan=2>$msg->Title</th></tr>"); ! echo("<tr><td width=200 valign=top class=sub>".userdetails($msg->Author)."<div>Date: $msg->DatePosted</div></td><td valign=top>".$msg->Message."</td></tr>"); ! echo("<tr><td colspan=2 align=right class=sub>"); if(is_readable("../members/profile.php")){ ! echo("<a href=".$basepath."/members/profile.php?id=".urlencode($msg->Author).">Profile</a> | "); } ! echo('<a href="'.$basepath.'/forum/editpost.php?id='.$msg->ID.'&threadid='.$thread.'">Edit</a></td></tr></table><br />'); $query = ofirst_dbquery("SELECT * FROM ofirst_forumposts WHERE ReplyTo=$thread ORDER BY DatePosted"); $num=ofirst_dbnum_rows($query); ! $page=0; if(isset($_GET["page"])){ ! if($_GET["page"]=="last"){ ! $page=ceil($num/posts_page)-1; ! }else{ ! $page=$_GET["page"]-1; } } ! if($page<0){ ! $page=0; } ! if($num!=0){ echo("<table width=600><tr><th colspan=2>"); ! if($num==1){ ! echo("1 Reply"); }else{ ! echo("$num Replies"); } ! echo("</th></tr>"); ! //skip ! for($i=0;$i<$page*posts_page;$i++){ if(!ofirst_dbfetch_object($query)){ break; } } ! for($i=0;$i<posts_page;$i++){ if($msg=ofirst_dbfetch_object($query)){ ! echo('<tr><td width=200 valign=top class=sub>'.userdetails($msg->Author)."<div>Date: $msg->DatePosted</div></td>"); ! echo("<td valign=top>"); if($msg->Title!=""){ ! echo("<p><b>$msg->Title</b></p>"); } ! echo("<div>$msg->Message</div></td></tr>"); ! echo("<tr><td colspan=2 align=right class=sub>"); if(is_readable("../members/profile.php")){ ! echo("<a href=".$basepath."/members/profile.php?id=".urlencode($msg->Author).">Profile</a> | "); } ! echo('<a href="'.$basepath.'/forum/editpost.php?id='.$msg->ID.'&threadid='.$thread.'">Edit</a></td></tr>'); }else{ break; } } ! echo('<tr><th colspan=2><div style="font-size:12px" align=right> '); if($num>posts_page){ if($page>1){ ! echo('<a href="thread.php?id='.$thread.'&page=1">[First]</a> ... '); } ! if($page>0){ ! echo('<a href="thread.php?id='.$thread.'&page='.($page).'"><<Prev</a> '); } ! echo("Page ".($page+1)." of ".ceil($num/posts_page)); ! if($page<ceil($num/posts_page)-1){ ! echo(' <a href="thread.php?id='.$thread.'&page='.($page+2).'">Next>></a>'); } ! if($page<ceil($num/posts_page)-2){ ! echo(' ... <a href="thread.php?id='.$thread.'&page='.ceil($num/posts_page).'">[Last]</a>'); } } ! echo("</div></th></tr>"); } ! echo('</table><br /><div><a href="'.$basepath.'/forum/newpost.php?forumid='.urlencode($forum).'&replyto='.$reply.'">New Reply</a></div>'); } } --- 43,150 ---- $forum=""; ! if($thread != 0){ $query = ofirst_dbquery("SELECT * FROM ofirst_forumposts WHERE ID=".$thread); ! if(ofirst_dbnum_rows($query) != 0){ ! $msg = ofirst_dbfetch_object($query); ! $reply = $msg->ID; ! $forum = $msg->forum; ! ! $sub = $forum; ! $res = ""; ! while($sub != ""){ ! ! $res = " > ".'<a href="'.$basepath."/forum/index.php?forum=".urlencode($sub).'">'.ucfirst($sub)."</a>".$res; ! $q = ofirst_dbquery("SELECT subforum FROM ofirst_forum WHERE name='".$sub."'"); if(ofirst_dbnum_rows($q)!=0){ ! $sub = ofirst_dbfetch_object($q); ! ! $q = ofirst_dbquery("SELECT name,subforum FROM ofirst_forum WHERE ID=".$sub->subforum); ! $sub = ofirst_dbfetch_object($q); ! ! if($sub->subforum != 0){ ! $sub = $sub->name; ! } else { break; } ! } else { break; } } ! echo '<div align=left><a href="'.$basepath.'/forum">'.$title." Forums</a> $res</div>"; ! echo "<h1>$msg->Title</h1>"; ! echo "<table width=600><tr><th colspan=2>$msg->Title</th></tr>"; ! echo "<tr><td width=200 valign=top class=sub>".userdetails($msg->Author)."<div>Date: $msg->DatePosted</div></td><td valign=top>".$msg->Message."</td></tr>"; ! echo "<tr><td colspan=2 align=right class=sub>"; if(is_readable("../members/profile.php")){ ! echo "<a href=".$basepath."/members/profile.php?id=".urlencode($msg->Author).">Profile</a> | "; } ! echo '<a href="'.$basepath.'/forum/editpost.php?id='.$msg->ID.'&threadid='.$thread.'">Edit</a></td></tr></table><br />'; $query = ofirst_dbquery("SELECT * FROM ofirst_forumposts WHERE ReplyTo=$thread ORDER BY DatePosted"); $num=ofirst_dbnum_rows($query); ! ! $page = 0; if(isset($_GET["page"])){ ! if($_GET["page"] == "last"){ ! $page = ceil($num/posts_page)-1; ! } else { ! $page = $_GET["page"]-1; } } ! if($page < 0){ ! $page = 0; } ! if($num != 0){ echo("<table width=600><tr><th colspan=2>"); ! if($num == 1){ ! echo "1 Reply"; }else{ ! echo "$num Replies"; } ! echo "</th></tr>"; ! // Skip records ! for($i=0; $i < $page * posts_page; $i++){ if(!ofirst_dbfetch_object($query)){ break; } } ! for($i=0; $i < posts_page; $i++){ if($msg=ofirst_dbfetch_object($query)){ ! echo '<tr><td width=200 valign=top class=sub>'.userdetails($msg->Author)."<div>Date: $msg->DatePosted</div></td>"; ! echo "<td valign=top>"; if($msg->Title!=""){ ! echo "<p><b>$msg->Title</b></p>"; } ! echo "<div>$msg->Message</div></td></tr>"; ! echo "<tr><td colspan=2 align=right class=sub>"; if(is_readable("../members/profile.php")){ ! echo "<a href=".$basepath."/members/profile.php?id=".urlencode($msg->Author).">Profile</a> | "; } ! echo '<a href="'.$basepath.'/forum/editpost.php?id='.$msg->ID.'&threadid='.$thread.'">Edit</a></td></tr>'; }else{ break; } } ! echo '<tr><th colspan=2><div style="font-size:12px" align=right> '; if($num>posts_page){ if($page>1){ ! echo '<a href="thread.php?id='.$thread.'&page=1">[First]</a> ... '; } ! if($page > 0){ ! echo '<a href="thread.php?id='.$thread.'&page='.($page).'"><<Prev</a> '; } ! echo "Page ".($page+1)." of ".ceil($num/posts_page); ! if($page < ceil($num/posts_page) - 1){ ! echo ' <a href="thread.php?id='.$thread.'&page='.($page+2).'">Next>></a>'; } ! if($page < ceil($num/posts_page) - 2){ ! echo ' ... <a href="thread.php?id='.$thread.'&page='.ceil($num/posts_page).'">[Last]</a>'; } } ! echo "</div></th></tr>"; } ! echo '</table><br /><div><a href="'.$basepath.'/forum/newpost.php?forumid='.urlencode($forum).'&replyto='.$reply.'">New Reply</a></div>'; } } *************** *** 153,170 **** function userdetails($username){ $q = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='".$username."';"); if(ofirst_dberrno()==0){ $user = ofirst_dbfetch_object($q); ! $ret="<h4>$username</h4><div>$user->description</div>"; ! if($user->picturelocation!=""){ ! $ret.='<div><img src="'.$GLOBALS["basepath"]."/members/".$user->picturelocation.'"></div>'; } ! if($user->membertype=="administrator"){ ! $ret.="<div><i>Administrator</i></div><br>"; } ! if($user->lastname!=""||$user->firstname!=""){ ! $ret.="<div>Real name: $user->firstname $user->lastname</div>"; } ! if($user->team!=0){ ! $ret.="<div>Team $user->team</div>"; } return $ret; --- 153,171 ---- function userdetails($username){ $q = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='".$username."';"); + if(ofirst_dberrno()==0){ $user = ofirst_dbfetch_object($q); ! $ret = "<h4>$username</h4><div>$user->description</div>"; ! if($user->picturelocation != ""){ ! $ret .= '<div><img src="'.$GLOBALS["basepath"]."/members/".$user->picturelocation.'"></div>'; } ! if($user->membertype == "administrator"){ ! $ret .= "<div><i>Administrator</i></div><br>"; } ! if($user->lastname != "" || $user->firstname != ""){ ! $ret .= "<div>Real name: $user->firstname $user->lastname</div>"; } ! if($user->team != 0){ ! $ret .= "<div>Team $user->team</div>"; } return $ret; Index: newpost.php =================================================================== RCS file: /cvsroot/openfirst/forum/newpost.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** newpost.php 21 Oct 2003 23:47:42 -0000 1.3 --- newpost.php 24 Dec 2003 17:05:59 -0000 1.4 *************** *** 26,107 **** * */ ! //these HTML tags will be allowed in messages ! define("allowed_tags","<br><b><i><u><div><span><a><hr><font>"); ! ! include("../config/globals.php"); ! ! $admin=false; ! if (isset($user->membertype)){ ! $admin=($user->membertype == "administrator"); ! $author=$user->user; ! ! $forumid=""; ! if(isset($_POST["forumid"])){ ! $forumid=strtolower($_POST["forumid"]); ! } ! else { if(isset($_GET["forumid"])){ ! $forumid=strtolower($_GET["forumid"]); } } ! $errmsg=""; ! $reply=0; if(isset($_POST["replyto"])){ ! $reply=$_POST["replyto"]; ! } ! else { if(isset($_GET["replyto"])){ ! $reply=$_GET["replyto"]; } } ! if($forumid!=""){ ! $query="SELECT * FROM ofirst_forum WHERE name='$forumid'"; if(!$admin){ ! $query.=" AND hidden=0"; } $query = ofirst_dbquery($query); if(ofirst_dbnum_rows($query)!=0){ ! $cat=ofirst_dbfetch_object($query); ! if($forumid!="main"&&$cat->closed==0){ ! $message=""; ! $title=""; if(isset($_POST["post"])){ ! if($_POST["post"]==1){ ! //add to database if($reply==0){ ! if($_POST["title"]==""){ ! $errmsg="New topic must have a title"; } } ! if($errmsg==""){ ! $query=ofirst_dbquery("INSERT INTO ofirst_forumposts (forum,ReplyTo,Title,Author,Message,DatePosted) values ('$forumid','".$reply."','".$_POST["title"]."','$author','".strip_tags($_POST["message"],allowed_tags)."','".date("Y-m-d H:i:s")."');"); ! //redirect back to forum ! if($reply==0){ header("Location: index.php?forum=".$_POST["forumid"]); ! } ! else{ header("Location: thread.php?page=last&id=".$reply); } exit; } ! $message=$_POST["message"]; ! $title=$_POST["title"]; } } include($header); ! if($errmsg!=""){ echo('<br /><div style="color:red">'.$errmsg."</div><br />"); } ! if($message!=""){ echo("<br /><table><tr><th>Message Preview</th></tr><tr><td>$message</td></tr></table><br />"); } ! echo('<form id=NewPost name=NewPost action="'.$_SERVER["PHP_SELF"].'" method=post>'); ! echo('<input type=hidden name=forumid value="'.$forumid.'">'); ! echo('<input type=hidden name=replyto value="'.$reply.'">'); ! echo("<table><tr><th colspan=2>New Post in ".ucfirst($cat->name)."</th></tr>"); ?> <tr valign=top><td><label for=title><b>Title</b></label></td> --- 26,107 ---- * */ + define("allowed_tags","<br><b><i><u><div><span><a><hr><font>"); + include("../config/globals.php"); ! $admin=false; ! if (isset($user->membertype)){ ! $admin = ($user->membertype == "administrator"); ! $author = $user->user; ! ! $forumid = ""; ! if(isset($_POST["forumid"])){ ! $forumid = strtolower($_POST["forumid"]); ! } else { if(isset($_GET["forumid"])){ ! $forumid = strtolower($_GET["forumid"]); } } ! $errmsg = ""; ! $reply = 0; if(isset($_POST["replyto"])){ ! $reply = $_POST["replyto"]; ! } else { if(isset($_GET["replyto"])){ ! $reply = $_GET["replyto"]; } } ! if($forumid != ""){ ! $query = "SELECT * FROM ofirst_forum WHERE name='$forumid'"; if(!$admin){ ! $query .= " AND hidden=0"; } + $query = ofirst_dbquery($query); if(ofirst_dbnum_rows($query)!=0){ ! $cat = ofirst_dbfetch_object($query); ! if($forumid != "main"&&$cat->closed==0){ ! ! $message = ""; ! $title = ""; ! if(isset($_POST["post"])){ ! if($_POST["post"] == 1){ ! // Add to database if($reply==0){ ! if($_POST["title"] == ""){ ! $errmsg = "New topic must have a title"; } } ! if($errmsg == ""){ ! $query = ofirst_dbquery("INSERT INTO ofirst_forumposts (forum,ReplyTo,Title,Author,Message,DatePosted) values ('$forumid','".$reply."','".$_POST["title"]."','$author','".strip_tags($_POST["message"],allowed_tags)."','".date("Y-m-d H:i:s")."');"); ! ! // Redirect back to forum ! if($reply == 0){ header("Location: index.php?forum=".$_POST["forumid"]); ! } else { header("Location: thread.php?page=last&id=".$reply); } exit; } ! ! $message = $_POST["message"]; ! $title = $_POST["title"]; ! } } include($header); ! if($errmsg != ""){ echo('<br /><div style="color:red">'.$errmsg."</div><br />"); } ! if($message != ""){ echo("<br /><table><tr><th>Message Preview</th></tr><tr><td>$message</td></tr></table><br />"); } ! echo '<form id=NewPost name=NewPost action="'.$_SERVER["PHP_SELF"].'" method=post>'; ! echo '<input type=hidden name=forumid value="'.$forumid.'">'; ! echo '<input type=hidden name=replyto value="'.$reply.'">'; ! echo "<table><tr><th colspan=2>New Post in ".ucfirst($cat->name)."</th></tr>"; ?> <tr valign=top><td><label for=title><b>Title</b></label></td> *************** *** 112,146 **** $dhtml=function_exists("make_wysiwyg"); if($dhtml){ ! echo("<input type=hidden name=post value=1>"); make_wysiwyg("message", 500, 300, $message); ! } ! else{ ! echo("<textarea name=message id=message cols=40 rows=10>$message</textarea></td></tr> <tr valign=top><td><b>Action</b></td><td align=left><input type=radio name=post id=post value=1><label for=post>Post</label></input> ! <br /><input type=radio name=post id=preview value=0><label for=preview>Preview</label></input>"); ! } ! ?></td></tr> <tr><td colspan=2 align=center> <?php if($dhtml){ ! echo('<input type=button onclick="dhtmlEditorPrepareSubmit(); document.NewPost.submit();" value="Post">'); ! } ! else{ ! echo('<input type=submit value=" OK ">'); } ?> <input type=reset></td></tr> </table></form><div>The following HTML tags are allowed: <?php ! echo(htmlentities(allowed_tags)."</div>"); ! } ! else{ include($header); ! echo("<h3>This forum is locked</h3>"); } include($footer); } } ! } ! else { //not logged in: redirect to login header("Location: login.php"); --- 112,143 ---- $dhtml=function_exists("make_wysiwyg"); if($dhtml){ ! echo "<input type=hidden name=post value=1>"; make_wysiwyg("message", 500, 300, $message); ! } else { ! echo "<textarea name=message id=message cols=40 rows=10>$message</textarea></td></tr> <tr valign=top><td><b>Action</b></td><td align=left><input type=radio name=post id=post value=1><label for=post>Post</label></input> ! <br /><input type=radio name=post id=preview value=0><label for=preview>Preview</label></input>"; ! } ! ?> ! </td></tr> <tr><td colspan=2 align=center> <?php if($dhtml){ ! echo '<input type=button onclick="dhtmlEditorPrepareSubmit(); document.NewPost.submit();" value="Post">'; ! } else { ! echo '<input type=submit value=" OK ">'; } ?> <input type=reset></td></tr> </table></form><div>The following HTML tags are allowed: <?php ! echo htmlentities(allowed_tags)."</div>"; ! } else { include($header); ! echo "<h3>This forum is locked</h3>"; } include($footer); } } ! } else { //not logged in: redirect to login header("Location: login.php"); Index: login.php =================================================================== RCS file: /cvsroot/openfirst/forum/login.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** login.php 15 Oct 2003 00:50:08 -0000 1.1 --- login.php 24 Dec 2003 17:05:59 -0000 1.2 *************** *** 26,41 **** * */ - include("../config/globals.php"); include($header); ! if(isset($user->user)&&!isset($_GET["logout"])) ! { ! echo("<br /><table><tr><th>Forum Login</th></tr><tr><td>"); ! echo("<p>You are logged in as <b>$user->user</b>.</p>"); ! echo('<div align=center><a href=login.php?logout=1>Logout</a></div><br />'); ! echo("</td></tr></table><br />"); ! } ! else{ if(isset($user->user)){ logout(); --- 26,38 ---- * */ include("../config/globals.php"); include($header); ! if(isset($user->user) && ! isset($_GET["logout"])){ ! echo "<br /><table><tr><th>Forum Login</th></tr><tr><td>"; ! echo "<p>You are logged in as <b>$user->user</b>.</p>"; ! echo '<div align=center><a href=login.php?logout=1>Logout</a></div><br />'; ! echo "</td></tr></table><br />"; ! } else { if(isset($user->user)){ logout(); *************** *** 45,57 **** showlogin(); } ! if(isset($_POST['referer'])&&(!ereg("login.php",$_POST['referer']))){ ! $back=$_POST['referer']; } ! if(isset($_SERVER['HTTP_REFERER'])&&(!ereg("login.php",$_SERVER['HTTP_REFERER']))){ ! $back=$_SERVER['HTTP_REFERER']; } if(isset($back)){ ! echo('<div><a href="'.$back.'">Back to forum</a></div>'); } include($footer); ! ?> --- 42,54 ---- showlogin(); } ! if(isset($_POST['referer']) && (! ereg("login.php",$_POST['referer']))){ ! $back = $_POST['referer']; } ! if(isset($_SERVER['HTTP_REFERER']) && (! ereg("login.php",$_SERVER['HTTP_REFERER']))){ ! $back = $_SERVER['HTTP_REFERER']; } if(isset($back)){ ! echo '<div><a href="'.$back.'">Back to forum</a></div>'; } include($footer); ! ?> \ No newline at end of file Index: index.php =================================================================== RCS file: /cvsroot/openfirst/forum/index.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** index.php 29 Nov 2003 21:09:06 -0000 1.7 --- index.php 24 Dec 2003 17:05:59 -0000 1.8 *************** *** 26,109 **** * */ - - //number of threads per page define("posts_page",10); - include("../config/globals.php"); include($header); ! $admin=false; ! if (isset($user->membertype)){ ! $admin=($user->membertype == "administrator"); } ! $forum=""; if(isset($_GET["forum"])){ ! $forum=strtolower($_GET["forum"]); } ! $sub=$forum; ! $res=""; ! $uname=""; if(isset($user->user)){ ! $uname=$user->user; } ! while($sub!=""){ ! $res=" > ".'<a href="'.$basepath."/forum/index.php?forum=".urlencode($sub).'">'.ucfirst($sub)."</a>".$res; ! $q=ofirst_dbquery("SELECT subforum FROM ofirst_forum WHERE name='".$sub."'"); ! if(ofirst_dbnum_rows($q)!=0){ ! $sub=ofirst_dbfetch_object($q); ! $q=ofirst_dbquery("SELECT name,subforum FROM ofirst_forum WHERE ID=".$sub->subforum); ! $sub=ofirst_dbfetch_object($q); ! if($sub->subforum!=0){ ! $sub=$sub->name; ! } ! else { break; } ! } ! else { break; } } - echo('<div align=left><a href="'.$basepath.'/forum">'.$title." Forums</a> $res</div>"); ! if($forum==""){ ! $query="SELECT * FROM ofirst_forum WHERE subforum='0'"; ! } ! else{ ! $query="SELECT * FROM ofirst_forum WHERE name='$forum'"; } if(!$admin){ ! $query.=" AND hidden=0"; } $query = ofirst_dbquery($query); ! if(ofirst_dbnum_rows($query)!=0){ ! $cat=ofirst_dbfetch_object($query); ! if($cat->subforum==0){ ! echo('<table style="border:0px" width=600><tr><td height=350 background=header.jpg><h1> '.$title."</h1></td></tr></table>"); ! } ! else{ ! echo("<h1>$title Forums</h1>"); ! } ! echo("<table width=600><tr><th width=200><h4><i>"); ! if($cat->subforum!=0){ ! echo("Forum: ".ucfirst($cat->name)); } ! else{ ! echo("Welcome "); if(isset($user->user)){ ! echo($user->user."</i></h4>"); ! echo("<div align=right><a href=login.php>Logout</a></div>"); ! } ! else{ ! echo("</i></h4>"); ! echo("<div align=right><a href=login.php>Login</a></div>"); } } ! echo("</th><td align=right><div>"); if($cat->closed){ ! echo("<i>Closed Forum</i></div><div>"); } ! echo("<b>$cat->message</b></div><div>".date("l, j F Y")."</div></td></tr></table>"); showgroup($cat,0); --- 26,101 ---- * */ define("posts_page",10); include("../config/globals.php"); include($header); ! $admin = false; ! if(isset($user->membertype)){ ! $admin = ($user->membertype == "administrator"); } ! $forum = ""; if(isset($_GET["forum"])){ ! $forum = strtolower($_GET["forum"]); } ! $sub = $forum; ! $res = ""; ! $uname = ""; if(isset($user->user)){ ! $uname = $user->user; } ! while($sub != ""){ ! $res = " > ".'<a href="'.$basepath."/forum/index.php?forum=".urlencode($sub).'">'.ucfirst($sub)."</a>".$res; ! $q = ofirst_dbquery("SELECT subforum FROM ofirst_forum WHERE name='".$sub."'"); ! if(ofirst_dbnum_rows($q) != 0){ ! $sub = ofirst_dbfetch_object($q); ! $q = ofirst_dbquery("SELECT name,subforum FROM ofirst_forum WHERE ID=".$sub->subforum); ! $sub = ofirst_dbfetch_object($q); ! if($sub->subforum != 0){ ! $sub = $sub->name; ! } else { break; } ! } else { break; } } ! echo '<div align=left><a href="'.$basepath.'/forum">'.$title." Forums</a> $res</div>"; ! ! if($forum == ""){ ! $query = "SELECT * FROM ofirst_forum WHERE subforum='0'"; ! } else{ ! $query = "SELECT * FROM ofirst_forum WHERE name='$forum'"; } if(!$admin){ ! $query .= " AND hidden=0"; } $query = ofirst_dbquery($query); ! if(ofirst_dbnum_rows($query) != 0){ ! $cat = ofirst_dbfetch_object($query); ! if($cat->subforum == 0){ ! echo '<table style="border:0px" width=600><tr><td height=350 background=header.jpg><h1> '.$title."</h1></td></tr></table>"; ! } else{ ! echo "<h1>$title Forums</h1>"; } ! echo "<table width=600><tr><th width=200><h4><i>"; ! if($cat->subforum != 0){ ! echo "Forum: ".ucfirst($cat->name); ! } else{ ! echo "Welcome "; if(isset($user->user)){ ! echo $user->user."</i></h4>"; ! echo "<div align=right><a href=login.php>Logout</a></div>"; ! } else{ ! echo "</i></h4>"; ! echo "<div align=right><a href=login.php>Login</a></div>"; } } ! echo "</th><td align=right><div>"; if($cat->closed){ ! echo "<i>Closed Forum</i></div><div>"; } ! echo "<b>$cat->message</b></div><div>".date("l, j F Y")."</div></td></tr></table>"; showgroup($cat,0); *************** *** 113,118 **** } ! if($cat->subforum!=0){ ! $page=0; if(isset($_GET["page"])){ $page=$_GET["page"]-1; --- 105,110 ---- } ! if($cat->subforum != 0){ ! $page = 0; if(isset($_GET["page"])){ $page=$_GET["page"]-1; *************** *** 122,170 **** } $query = ofirst_dbquery("SELECT ID,Title,Author,DatePosted FROM ofirst_forumposts WHERE forum='".$forum."' AND ReplyTo=0 ORDER BY DatePosted DESC"); ! $num=ofirst_dbnum_rows($query); ! if($num!=0){ ! //skip ! for($i=0;$i<$page*posts_page;$i++){ ! if(!ofirst_dbfetch_object($query)){ break; } } ! echo("<table width=600><tr><th colspan=3>".ucfirst($cat->name)."</th></tr>"); ! echo("<tr><td class=sub width=400><b>Topic</b></td><td class=sub><b>Author</b></td><td class=sub><b>Date</b></td></tr>"); ! for($i=0;$i<posts_page;$i++){ if($post=ofirst_dbfetch_object($query)){ if(isset($user)){ ! echo("<tr><td>".getimage($_SESSION["forumvisit".$uname],$post->DatePosted).' <a href="thread.php?id='.$post->ID.'">'.$post->Title."</a></td>"); ! } ! else{ ! echo('<tr><td><img src=old.png align=absmiddle><a href="thread.php?id='.$post->ID.'">'.$post->Title."</a></td>"); } ! echo('<td><a href="../members/profile.php?id='.urlencode($post->Author).'">'.$post->Author."</a></td>"); ! echo("<td>".$post->DatePosted."</td></tr>"); ! }else{ break; } } ! if($num>posts_page){ ! echo("<tr><td class=sub colspan=3 align=right>"); ! if($page>1){ ! echo('<a href="index.php?forum='.$forum.'&page=1">[First]</a> ... '); } ! if($page>0){ ! echo('<a href="index.php?forum='.$forum.'&page='.($page).'"><<Prev</a> '); } ! echo("Page ".($page+1)." of ".ceil($num/posts_page)); ! if($page<ceil($num/posts_page)-1){ ! echo(' <a href="index.php?forum='.$forum.'&page='.($page+2).'">Next>></a>'); } if($page<ceil($num/posts_page)-2){ ! echo(' ... <a href="index.php?forum='.$forum.'&page='.ceil($num/posts_page).'">[Last]</a>'); } ! echo("</td></tr>"); } ! echo("</table><br>"); ! } ! else { ! echo("<br /><div><i>No posts have been found</i><br /><br /></div>"); } } --- 114,163 ---- } $query = ofirst_dbquery("SELECT ID,Title,Author,DatePosted FROM ofirst_forumposts WHERE forum='".$forum."' AND ReplyTo=0 ORDER BY DatePosted DESC"); ! $num = ofirst_dbnum_rows($query); ! if($num != 0){ ! // Skip records ! for($i=0; $i < $page * posts_page; $i++){ ! if(! ofirst_dbfetch_object($query)){ break; } } ! ! echo "<table width=600><tr><th colspan=3>".ucfirst($cat->name)."</th></tr>"; ! echo "<tr><td class=sub width=400><b>Topic</b></td><td class=sub><b>Author</b></td><td class=sub><b>Date</b></td></tr>"; ! ! for($i=0; $i < posts_page; $i++){ if($post=ofirst_dbfetch_object($query)){ if(isset($user)){ ! echo"<tr><td>".getimage($_SESSION["forumvisit".$uname],$post->DatePosted).' <a href="thread.php?id='.$post->ID.'">'.$post->Title."</a></td>"; ! } else { ! echo '<tr><td><img src=old.png align=absmiddle><a href="thread.php?id='.$post->ID.'">'.$post->Title."</a></td>"; } ! echo '<td><a href="../members/profile.php?id='.urlencode($post->Author).'">'.$post->Author."</a></td>"; ! echo "<td>".$post->DatePosted."</td></tr>"; ! } else { break; } } ! ! if($num > posts_page){ ! echo "<tr><td class=sub colspan=3 align=right>"; ! if($page > 1){ ! echo '<a href="index.php?forum='.$forum.'&page=1">[First]</a> ... '; } ! if($page > 0){ ! echo'<a href="index.php?forum='.$forum.'&page='.($page).'"><<Prev</a> '; } ! echo "Page ".($page+1)." of ".ceil($num/posts_page); ! if($page < ceil($num/posts_page) - 1){ ! echo ' <a href="index.php?forum='.$forum.'&page='.($page+2).'">Next>></a>'; } if($page<ceil($num/posts_page)-2){ ! echo ' ... <a href="index.php?forum='.$forum.'&page='.ceil($num/posts_page).'">[Last]</a>'; } ! echo "</td></tr>"; } ! echo "</table><br>"; ! } else { ! echo "<br /><div><i>No posts have been found</i><br /><br /></div>"; } } *************** *** 173,177 **** if(isset($cat)){ if($cat->subforum!=0&&$cat->closed==0){ ! echo('<div><a href="newpost.php?forumid='.urlencode($forum).'">New Topic</a></div>'); } } --- 166,170 ---- if(isset($cat)){ if($cat->subforum!=0&&$cat->closed==0){ ! echo '<div><a href="newpost.php?forumid='.urlencode($forum).'">New Topic</a></div>'; } } *************** *** 179,239 **** include($footer); ! function getimage($userlast,$recentdate){ if(strtotime($userlast)<strtotime($recentdate)){ return "<img src=new.png align=absmiddle>"; ! } ! else { return "<img src=old.png align=absmiddle>"; } } ! function showgroup($cat,$private=0){ $query = ofirst_dbquery("SELECT name,closed FROM ofirst_forum WHERE subforum=$cat->ID AND hidden=$private ORDER BY name"); ! if(ofirst_dbnum_rows($query)!=0){ ! echo("<table width=600><tr><th colspan=4>"); if($private==1){ ! echo("Private Forums"); ! }else{ ! echo(" "); } ! echo("</th></tr>"); ! echo("<tr><td class=sub width=350><b>Forum</b></td><td class=sub align=right><b>Posts</b></td><td class=sub align=right><b>Threads</b></td><td class=sub align=center width=100><b>Last Post</b></td></tr>"); while($sub=ofirst_dbfetch_object($query)){ echo("<tr><td>"); $q=ofirst_dbquery("SELECT Author,DatePosted FROM ofirst_forumposts WHERE forum='$sub->name' ORDER BY DatePosted DESC"); if(ofirst_dbnum_rows($q)!=0){ ! $lastposter=ofirst_dbfetch_object($q); ! $lastdate=$lastposter->DatePosted; ! $lastposter=$lastposter->Author; } ! if(!$sub->closed==1){ ! if(ofirst_dbnum_rows($q)!=0 && isset($user)){ ! echo(getimage($_SESSION["forumvisit".$uname],$lastdate).'<a href="'.$_SERVER["PHP_SELF"]."?forum=".urlencode($sub->name).'">'.ucfirst($sub->name)."</a></td>"); ! } ! else{ ! echo('<img src=old.png align=absmiddle><a href="'.$_SERVER["PHP_SELF"]."?forum=".urlencode($sub->name).'">'.ucfirst($sub->name)."</a></td>"); } } ! else{ ! echo('<img src=locked.png align=absmiddle><a href="'.$_SERVER["PHP_SELF"]."?forum=".urlencode($sub->name).'">'.ucfirst($sub->name)."</a></td>"); ! } ! echo("<td align=right>".ofirst_dbnum_rows($q)."</td>"); ! $q=ofirst_dbquery("SELECT ID FROM ofirst_forumposts WHERE forum='$sub->name' AND ReplyTo='0'"); ! echo("<td align=right>".ofirst_dbnum_rows($q)."</td>"); ! echo("<td align=right> "); if(isset($lastposter)){ echo($lastdate." by "); if(is_readable("../members/profile.php")){ ! echo('<a href="'.$GLOBALS['basepath']."/members/profile.php?id=".$lastposter.'">'); } ! echo($lastposter."</a>"); unset($lastposter); } ! else { ! echo("Never"); ! } ! echo("</td></tr>"); } ! echo("</table><br>"); } } --- 172,228 ---- include($footer); ! function getimage($userlast, $recentdate){ if(strtotime($userlast)<strtotime($recentdate)){ return "<img src=new.png align=absmiddle>"; ! } else { return "<img src=old.png align=absmiddle>"; } } ! function showgroup($cat, $private=0){ $query = ofirst_dbquery("SELECT name,closed FROM ofirst_forum WHERE subforum=$cat->ID AND hidden=$private ORDER BY name"); ! if(ofirst_dbnum_rows($query) != 0){ ! echo "<table width=600><tr><th colspan=4>" ; if($private==1){ ! echo "Private Forums" ; ! } else { ! echo " "; } ! echo "</th></tr>"; ! echo "<tr><td class=sub width=350><b>Forum</b></td><td class=sub align=right><b>Posts</b></td><td class=sub align=right><b>Threads</b></td><td class=sub align=center width=100><b>Last Post</b></td></tr>"; while($sub=ofirst_dbfetch_object($query)){ echo("<tr><td>"); $q=ofirst_dbquery("SELECT Author,DatePosted FROM ofirst_forumposts WHERE forum='$sub->name' ORDER BY DatePosted DESC"); if(ofirst_dbnum_rows($q)!=0){ ! $lastposter = ofirst_dbfetch_object($q); ! $lastdate = $lastposter->DatePosted; ! $lastposter = $lastposter->Author; } ! if(!$sub->closed == 1){ ! if(ofirst_dbnum_rows($q) != 0 && isset($user)){ ! echo getimage($_SESSION["forumvisit".$uname],$lastdate).'<a href="'.$_SERVER["PHP_SELF"]."?forum=".urlencode($sub->name).'">'.ucfirst($sub->name)."</a></td>"; ! } else { ! echo '<img src=old.png align=absmiddle><a href="'.$_SERVER["PHP_SELF"]."?forum=".urlencode($sub->name).'">'.ucfirst($sub->name)."</a></td>"; } + } else { + echo '<img src=locked.png align=absmiddle><a href="'.$_SERVER["PHP_SELF"]."?forum=".urlencode($sub->name).'">'.ucfirst($sub->name)."</a></td>"; } ! echo "<td align=right>".ofirst_dbnum_rows($q)."</td>"; ! $q = ofirst_dbquery("SELECT ID FROM ofirst_forumposts WHERE forum='$sub->name' AND ReplyTo='0'"); ! echo "<td align=right>".ofirst_dbnum_rows($q)."</td>"; ! echo "<td align=right> "; if(isset($lastposter)){ echo($lastdate." by "); if(is_readable("../members/profile.php")){ ! echo '<a href="'.$GLOBALS['basepath']."/members/profile.php?id=".$lastposter.'">'; } ! echo $lastposter."</a>"; unset($lastposter); + } else { + echo "Never"; } ! echo "</td></tr>"; } ! echo "</table><br>"; } } Index: forumvisit.php =================================================================== RCS file: /cvsroot/openfirst/forum/forumvisit.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** forumvisit.php 6 Dec 2003 20:09:25 -0000 1.3 --- forumvisit.php 24 Dec 2003 17:05:59 -0000 1.4 *************** *** 27,37 **** */ - //(include module for forum) - //This code is used to determine which messages have been viewed - if(isset($user->user)){ if(!isset($_SESSION["forumvisit".$user->user])){ $_SESSION["forumvisit".$user->user]=0; $q=ofirst_dbquery("SELECT forumvisit FROM ofirst_members WHERE user='$user->user';"); if(ofirst_dbnum_rows($q)!=0){ $visit=ofirst_dbfetch_object($q); --- 27,35 ---- */ if(isset($user->user)){ if(!isset($_SESSION["forumvisit".$user->user])){ $_SESSION["forumvisit".$user->user]=0; $q=ofirst_dbquery("SELECT forumvisit FROM ofirst_members WHERE user='$user->user';"); + if(ofirst_dbnum_rows($q)!=0){ $visit=ofirst_dbfetch_object($q); *************** *** 39,47 **** unset($visit); } unset($q); ofirst_dbquery("UPDATE ofirst_members SET forumvisit='".date("Y-m-d H:i:s")."' WHERE user='$user->user';"); } ! } ! else{ $_SESSION["forumvisit"]=date("Y-m-d H:i:s"); } --- 37,45 ---- unset($visit); } + unset($q); ofirst_dbquery("UPDATE ofirst_members SET forumvisit='".date("Y-m-d H:i:s")."' WHERE user='$user->user';"); } ! } else { $_SESSION["forumvisit"]=date("Y-m-d H:i:s"); } *************** *** 53,56 **** --- 51,55 ---- ORDER BY DatePosted DESC LIMIT $number"); + if(ofirst_dbnum_rows($query)==0){ echo("<div>No posts in forums</div>"); *************** *** 60,64 **** if($post->ReplyTo==0){ $msgid=$post->ID; ! }else{ $msgid=$post->ReplyTo; } --- 59,63 ---- if($post->ReplyTo==0){ $msgid=$post->ID; ! } else { $msgid=$post->ReplyTo; } Index: editpost.php =================================================================== RCS file: /cvsroot/openfirst/forum/editpost.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** editpost.php 21 Oct 2003 23:47:42 -0000 1.3 --- editpost.php 24 Dec 2003 17:05:59 -0000 1.4 *************** *** 26,49 **** * */ ! //these HTML tags will be allowed in messages ! define("allowed_tags","<br><b><i><u><div><span><a><hr><font>"); ! ! include("../config/globals.php"); ! ! $forumid=""; ! if(isset($_POST["forumid"])){ ! $forumid=strtolower($_POST["forumid"]); ! } ! else { ! if(isset($_GET["threadid"])){ ! $forumid=strtolower($_GET["threadid"]); } - } ! $admin=false; ! if (isset($user->membertype)){ ! $admin=($user->membertype == "administrator"); ! $author=$user->user; $errmsg=""; --- 26,45 ---- * */ + define("allowed_tags","<br><b><i><u><div><span><a><hr><font>"); + include("../config/globals.php"); ! $forumid=""; ! if(isset($_POST["forumid"])){ ! $forumid=strtolower($_POST["forumid"]); ! } else { ! if(isset($_GET["threadid"])){ ! $forumid=strtolower($_GET["threadid"]); ! } } ! $admin = false; // Set admin as false initially ! if (isset($user->membertype)){ ! $admin = ($user->membertype == "administrator"); ! $author = $user->user; $errmsg=""; *************** *** 51,56 **** if(isset($_POST["msgid"])){ $msgid=$_POST["msgid"]; ! } ! else { if(isset($_GET["id"])){ $msgid=$_GET["id"]; --- 47,51 ---- if(isset($_POST["msgid"])){ $msgid=$_POST["msgid"]; ! } else { if(isset($_GET["id"])){ $msgid=$_GET["id"]; *************** *** 59,66 **** if($msgid!=0){ ! $query="SELECT * FROM ofirst_forumposts WHERE ID='$msgid'"; if(!$admin){ $query.=" AND Author='$author'"; } $query = ofirst_dbquery($query); if(ofirst_dbnum_rows($query)!=0){ --- 54,63 ---- if($msgid!=0){ ! $query="SELECT * FROM ofirst_forumposts WHERE ID='$msgid'"; ! if(!$admin){ $query.=" AND Author='$author'"; } + $query = ofirst_dbquery($query); if(ofirst_dbnum_rows($query)!=0){ *************** *** 73,78 **** if(!$admin){ $errmsg="You can not delete this message because it is the first message in the thread"; ! } ! else{ $query=ofirst_dbquery("DELETE FROM ofirst_forumposts WHERE ReplyTo='".$msg->ID."'"); $query=ofirst_dbquery("DELETE FROM ofirst_forumposts WHERE ID='".$msg->ID."'"); --- 70,74 ---- if(!$admin){ $errmsg="You can not delete this message because it is the first message in the thread"; ! } else { $query=ofirst_dbquery("DELETE FROM ofirst_forumposts WHERE ReplyTo='".$msg->ID."'"); $query=ofirst_dbquery("DELETE FROM ofirst_forumposts WHERE ID='".$msg->ID."'"); *************** *** 80,106 **** exit; } ! } ! else{ $query=ofirst_dbquery("DELETE FROM ofirst_forumposts WHERE ID='".$msg->ID."'"); header("Location: thread.php?id=".$forumid); exit; } ! } ! else{ $msgtext=$_POST["message"]; ! //update record in database if($msg->ReplyTo==0){ if($_POST["title"]==""){ ! $errmsg="New topic must have a title"; } } if($errmsg==""){ ! if($author!=$msg->Author){ if($admin){ ! $msgtext.="<br /><i>Edited by $author on ".date("H:i:s d-m-Y")."</i>"; } } $query=ofirst_dbquery("UPDATE ofirst_forumposts SET Title='".$_POST["title"]."', Message='".strip_tags($msgtext,allowed_tags)."' WHERE ID='".$msg->ID."'"); ! //redirect back to forum header("Location: thread.php?id=".$forumid); exit; --- 76,102 ---- exit; } ! } else { $query=ofirst_dbquery("DELETE FROM ofirst_forumposts WHERE ID='".$msg->ID."'"); header("Location: thread.php?id=".$forumid); exit; } ! } else { ! $msgtext=$_POST["message"]; ! ! // Update record in database if($msg->ReplyTo==0){ if($_POST["title"]==""){ ! $errmsg = "New topic must have a title"; } } if($errmsg==""){ ! if($author != $msg->Author){ if($admin){ ! $msgtext .= "<br /><i>Edited by $author on ".date("H:i:s d-m-Y")."</i>"; } } $query=ofirst_dbquery("UPDATE ofirst_forumposts SET Title='".$_POST["title"]."', Message='".strip_tags($msgtext,allowed_tags)."' WHERE ID='".$msg->ID."'"); ! // Redirect back to forum header("Location: thread.php?id=".$forumid); exit; *************** *** 113,116 **** --- 109,113 ---- echo('<br /><div style="color:red">'.$errmsg."</div><br />"); } + echo('<form id=EditPost name=EditPost action="'.$_SERVER["PHP_SELF"].'" method=POST>'); echo("<br /><div><input type=checkbox name=delete id=delete value=1><label for=delete>Delete message?</label></input></div><br />"); *************** *** 124,136 **** <td> <?php ! $dhtml=function_exists("make_wysiwyg"); if($dhtml){ echo("<input type=hidden name=post value=1>"); make_wysiwyg("message", 500, 300, $msgtext); ! } ! else{ echo("<textarea name=message id=message cols=40 rows=10>$msgtext</textarea></td></tr>"); } echo("</td></tr><tr><td colspan=2 align=center>"); if($dhtml){ echo('<input type=button onclick="dhtmlEditorPrepareSubmit(); document.EditPost.submit();" value="Save Changes">'); --- 121,135 ---- <td> <?php ! // Show DHTML editing bar or else just a regular textarea ! $dhtml = function_exists("make_wysiwyg"); if($dhtml){ echo("<input type=hidden name=post value=1>"); make_wysiwyg("message", 500, 300, $msgtext); ! } else{ echo("<textarea name=message id=message cols=40 rows=10>$msgtext</textarea></td></tr>"); } + echo("</td></tr><tr><td colspan=2 align=center>"); + if($dhtml){ echo('<input type=button onclick="dhtmlEditorPrepareSubmit(); document.EditPost.submit();" value="Save Changes">'); *************** *** 139,148 **** echo('<input type=submit value="Save Changes">'); } ! ?> <input type=reset></td></tr> </table></form><div>The following HTML tags are allowed: <?php echo(htmlentities(allowed_tags)."</div>"); ! } ! else { include($header); echo("<h3>You cannot edit this message</h3>"); --- 138,147 ---- echo('<input type=submit value="Save Changes">'); } ! ?> ! <input type=reset></td></tr> </table></form><div>The following HTML tags are allowed: <?php echo(htmlentities(allowed_tags)."</div>"); ! } else { include($header); echo("<h3>You cannot edit this message</h3>"); *************** *** 152,159 **** include($footer); } ! } ! else { ! //not logged in: redirect to login ! header("Location: login.php"); ! } ?> --- 151,157 ---- include($footer); } ! } else { ! // Not logged in: redirect to login ! header("Location: login.php"); ! } ?> |
From: <dav...@us...> - 2003-12-24 17:05:05
|
Update of /cvsroot/openfirst/search In directory sc8-pr-cvs1:/tmp/cvs-serv3772 Modified Files: index.php Added Files: NOTES Log Message: Added NOTES file for auditing. This is a rather small module so no major updates were made except syntax. --- NEW FILE: NOTES --- openFIRST.search --- ** December 25, 2003 Release ** David Di Biase - Module approved. Tim Ginn - not yet audited Greg Inozemtsev - not yet audited Index: index.php =================================================================== RCS file: /cvsroot/openfirst/search/index.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** index.php 23 Oct 2003 14:10:46 -0000 1.5 --- index.php 24 Dec 2003 17:04:57 -0000 1.6 *************** *** 32,39 **** <tr> <th> ! <img src="search.png" alt="openFIRST" /> ! <img src="search2.png" alt="Search" /> ! </th> ! <td><form method="GET" action="<?php echo $basepath; ?>/search/"> <select name="type"> <option value="google" <?php if($_GET["type"] == "google") { echo " selected='selected'"; } ?>>Google Search</option> --- 32,40 ---- <tr> <th> ! <img src="search.png" alt="openFIRST" /> ! <img src="search2.png" alt="Search" /> ! </th> ! <td> ! <form method="GET" action="<?php echo $basepath; ?>/search/"> <select name="type"> <option value="google" <?php if($_GET["type"] == "google") { echo " selected='selected'"; } ?>>Google Search</option> |
From: <dav...@us...> - 2003-12-24 17:04:30
|
Update of /cvsroot/openfirst/sidebars In directory sc8-pr-cvs1:/tmp/cvs-serv3692 Modified Files: sidebar.php preview.php index.php Added Files: NOTES Log Message: Added NOTES file for auditing. This is a rather small module so no major updates were made except syntax. --- NEW FILE: NOTES --- openFIRST.sidebars --- ** December 25, 2003 Release ** David Di Biase - Module approved. Tim Ginn - not yet audited Greg Inozemtsev - not yet audited Index: sidebar.php =================================================================== RCS file: /cvsroot/openfirst/sidebars/sidebar.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** sidebar.php 22 Dec 2003 16:33:32 -0000 1.7 --- sidebar.php 24 Dec 2003 17:04:27 -0000 1.8 *************** *** 62,74 **** <title>Sidebar</title> <style type="text/css"> ! body { ! background-color: #ffffff; ! } ! .blue { ! color: #2998c7; ! } ! a { ! color: #ffffff; ! } </style> </head> --- 62,68 ---- <title>Sidebar</title> <style type="text/css"> ! body { background-color: #ffffff; } ! .blue { color: #2998c7; } ! a { color: #ffffff; } </style> </head> *************** *** 77,81 **** <br /><sub><a class="blue" href="<?php echo($_SERVER["REQUEST_URI"]); ?>">Reload Sidebar</a></sub></p></div> <div style="background-color: #2998c7; top: 50px; color: #ffffff;"> ! <?php if ($sidebar == "GUESTBOOK" && is_readable("../guestbook/")) { $qu = ofirst_dbquery("SELECT guest, date FROM ofirst_guestbook ORDER BY guest LIMIT 5;"); --- 71,75 ---- <br /><sub><a class="blue" href="<?php echo($_SERVER["REQUEST_URI"]); ?>">Reload Sidebar</a></sub></p></div> <div style="background-color: #2998c7; top: 50px; color: #ffffff;"> ! <?php if ($sidebar == "GUESTBOOK" && is_readable("../guestbook/")) { $qu = ofirst_dbquery("SELECT guest, date FROM ofirst_guestbook ORDER BY guest LIMIT 5;"); Index: preview.php =================================================================== RCS file: /cvsroot/openfirst/sidebars/preview.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** preview.php 23 Oct 2003 14:09:46 -0000 1.3 --- preview.php 24 Dec 2003 17:04:27 -0000 1.4 *************** *** 28,31 **** --- 28,32 ---- include_once("../config/globals.php"); include_once($header); + if(isset($_GET["sidebar"]) == false) { $_GET["sidebar"] = ""; } ?> *************** *** 38,40 **** style="width: 175px; height: 300px;" /> <?php ! include_once($footer); ?> --- 39,42 ---- style="width: 175px; height: 300px;" /> <?php ! include_once($footer); ! ?> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/sidebars/index.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** index.php 23 Oct 2003 14:09:46 -0000 1.5 --- index.php 24 Dec 2003 17:04:27 -0000 1.6 *************** *** 30,34 **** ?> <h1>Side Bars</h1> - <p>Side bars allow content from this site to be easily integrated into your web browser.<br> --- 30,33 ---- *************** *** 47,51 **** <th>Add as Active Desktop</th> </tr> ! <?php if(is_readable("../messenger/")) { ?> <tr> <td>Messenger</td> --- 46,52 ---- <th>Add as Active Desktop</th> </tr> ! <?php ! if(is_readable("../messenger/")) { ! ?> <tr> <td>Messenger</td> *************** *** 54,66 **** <td><a href="sidebar.php?sidebar=messenger&cdf=true">Add</a></td> </tr> ! <?php } ! if(is_readable("../projects/")) { ?></tr> ! <td>Projects</td> ! <td><a href="preview.php?sidebar=projects">Preview</a></td> ! <td><a href="javascript:window.sidebar.addPanel('Projects Sidebar', '<?php echo $home . $basepath . "/sidebars/"; ?>sidebar.php?sidebar=projects','')">Add</a></td> ! <td><a href="sidebar.php?sidebar=projects&cdf=true">Add</a></td> </tr> ! <?php } ! if(is_readable("../news/")) { ?> <tr> <td>News</td> --- 55,72 ---- <td><a href="sidebar.php?sidebar=messenger&cdf=true">Add</a></td> </tr> ! <?php ! } ! if(is_readable("../projects/")) { ! ?> </tr> ! <td>Projects</td> ! <td><a href="preview.php?sidebar=projects">Preview</a></td> ! <td><a href="javascript:window.sidebar.addPanel('Projects Sidebar', '<?php echo $home . $basepath . "/sidebars/"; ?>sidebar.php?sidebar=projects','')">Add</a></td> ! <td><a href="sidebar.php?sidebar=projects&cdf=true">Add</a></td> ! </tr> ! <?php ! } ! if(is_readable("../news/")) { ! ?> <tr> <td>News</td> *************** *** 69,74 **** <td><a href="sidebar.php?sidebar=news&cdf=true">Add</a></td> </tr> ! <?php } ! if(is_readable("../manual/")) { ?> <tr> <td>Manual</td> --- 75,82 ---- <td><a href="sidebar.php?sidebar=news&cdf=true">Add</a></td> </tr> ! <?php ! } ! if(is_readable("../manual/")) { ! ?> <tr> <td>Manual</td> *************** *** 77,84 **** <td><a href="sidebar.php?sidebar=manual&cdf=true">Add</a></td> </tr> ! <?php } ! if(is_readable("../emoticon/")) { ?> ! <?php } ! if(is_readable("../awards/")) { ?> <tr> <td>Awards</td> --- 85,97 ---- <td><a href="sidebar.php?sidebar=manual&cdf=true">Add</a></td> </tr> ! <?php ! } ! if(is_readable("../emoticon/")) { ! ?> ! ! <?php ! } ! if(is_readable("../awards/")) { ! ?> <tr> <td>Awards</td> *************** *** 87,93 **** <td><a href="sidebar.php?sidebar=awards&cdf=true">Add</a></td> </tr> ! <?php } ?> </table> <br> <?php ! include_once($footer); ?> --- 100,107 ---- <td><a href="sidebar.php?sidebar=awards&cdf=true">Add</a></td> </tr> ! <?php } ?> </table> <br> <?php ! include_once($footer); ! ?> \ No newline at end of file |
From: <ste...@us...> - 2003-12-24 06:29:46
|
Update of /cvsroot/openfirst/poll/setup In directory sc8-pr-cvs1:/tmp/cvs-serv9769/setup Modified Files: setup.mssql setup.mysql Log Message: Update poll module to the point of having file structure and menus properly laid out. Index: setup.mssql =================================================================== RCS file: /cvsroot/openfirst/poll/setup/setup.mssql,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** setup.mssql 26 Nov 2003 00:52:58 -0000 1.1 --- setup.mssql 24 Dec 2003 06:29:43 -0000 1.2 *************** *** 1 **** --- 1,3 ---- INSERT INTO ofirst_config SET modulename='poll',showonmenu='0',active='0',adminnavigation='<a href="$basepath/poll/admin/createpoll.php">Create Poll</a> | <a href="$basepath/poll/admin/">Edit Polls</a>', modulenavigation='<a href="$basepath/poll/">Select Poll</a>'; + UPDATE ofirst_config SET adminnavigation='<a href="$basepath/poll/admin/create.php">Create Poll</a> | <a href="$basepath/poll/admin/">Manage Polls</a>', modulenavigation='<a href="$basepath/poll/">Select Poll</a>', includes='poll.php' WHERE modulename='poll'; + Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/poll/setup/setup.mysql,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** setup.mysql 26 Nov 2003 00:52:58 -0000 1.1 --- setup.mysql 24 Dec 2003 06:29:43 -0000 1.2 *************** *** 1 **** --- 1,3 ---- INSERT INTO ofirst_config SET modulename='poll',showonmenu='0',active='0',adminnavigation='<a href="$basepath/poll/admin/createpoll.php">Create Poll</a> | <a href="$basepath/poll/admin/">Edit Polls</a>', modulenavigation='<a href="$basepath/poll/">Select Poll</a>'; + UPDATE ofirst_config SET adminnavigation='<a href="$basepath/poll/admin/create.php">Create Poll</a> | <a href="$basepath/poll/admin/">Manage Polls</a>', modulenavigation='<a href="$basepath/poll/">Select Poll</a>', includes='poll.php' WHERE modulename='poll'; + |
From: <ste...@us...> - 2003-12-24 06:29:46
|
Update of /cvsroot/openfirst/poll/admin In directory sc8-pr-cvs1:/tmp/cvs-serv9769/admin Added Files: create.php index.php Log Message: Update poll module to the point of having file structure and menus properly laid out. --- NEW FILE: create.php --- <?php /* * * openFIRST.poll - admin/create.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Stephanie Closs <ste...@ho...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ include_once("../../config/globals.php"); include_once("$header"); ?> <h1>Create Poll</h1> <?php include_once("$footer"); ?> --- NEW FILE: index.php --- <?php /* * * openFIRST.poll - admin/index.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Stephanie Closs <ste...@ho...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ include_once("../../config/globals.php"); include_once("$header"); ?> <h1>Manage Polls</h1> <?php include_once("$footer"); ?> |