openfirst-cvscommit Mailing List for openFIRST (Page 26)
Brought to you by:
xtimg
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(41) |
Jun
(210) |
Jul
(39) |
Aug
(153) |
Sep
(147) |
Oct
(173) |
Nov
(81) |
Dec
(163) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(33) |
Feb
(18) |
Mar
|
Apr
(62) |
May
|
Jun
(100) |
Jul
(38) |
Aug
(58) |
Sep
(1) |
Oct
|
Nov
(25) |
Dec
(172) |
2005 |
Jan
(31) |
Feb
(12) |
Mar
(67) |
Apr
(92) |
May
(247) |
Jun
(34) |
Jul
(36) |
Aug
(192) |
Sep
(15) |
Oct
(42) |
Nov
(92) |
Dec
(4) |
2006 |
Jan
|
Feb
(21) |
Mar
|
Apr
|
May
|
Jun
(53) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(4) |
Apr
(4) |
May
|
Jun
(15) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Tim G. <xt...@us...> - 2005-05-25 18:46:40
|
Update of /cvsroot/openfirst/www In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10734 Modified Files: updatesite.sh Log Message: Change the downloads page around to make it a bit more friendly; and to make it update automatically. There's still far too much text on that page, so, once proper user documentation is being written it should be moved there and linked to. Also remove the release notes, because they weren't maintained very well (their contents has been moved to the current downloads page). Index: updatesite.sh =================================================================== RCS file: /cvsroot/openfirst/www/updatesite.sh,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** updatesite.sh 24 May 2005 22:11:19 -0000 1.5 --- updatesite.sh 25 May 2005 18:46:27 -0000 1.6 *************** *** 7,10 **** --- 7,13 ---- php htdocs/news.php + # Update file release listing + php htdocs/files.php + # Ensure website can write session information chmod o+w,g+w tmp/ |
From: Tim G. <xt...@us...> - 2005-05-25 18:11:27
|
Update of /cvsroot/openfirst/www/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2731 Modified Files: news.php Log Message: Tweak the news fetching to be a little bit easier on SF.net (we only display 5 results anyway, may as well just fetch that many) Index: news.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/news.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** news.php 24 May 2005 22:09:45 -0000 1.1 --- news.php 25 May 2005 18:11:18 -0000 1.2 *************** *** 10,14 **** ! $inf = fopen("http://sourceforge.net/export/rss2_projnews.php?group_id=78233", "r"); mysql_query("DELETE FROM news WHERE 1;"); --- 10,14 ---- ! $inf = fopen("http://sourceforge.net/export/rss2_projnews.php?group_id=78233&rss_limit=5", "r"); mysql_query("DELETE FROM news WHERE 1;"); |
From: Tim G. <xt...@us...> - 2005-05-25 15:28:48
|
Update of /cvsroot/openfirst/www/htdocs/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2553/htdocs/doc Added Files: index.php Log Message: Make things seem a little more sane and be generally easier to use. Release Notes has been incorportated into the downloads page now. There's also now a documentation link where a link to everything that is documentation should be put (rather than it being scattered around so much like itw as before). --- NEW FILE: index.php --- <h1><img src="/image/news_subscribe.png" alt="" title=""> Documentation</h1> <p>Firstly, recognise that openFIRST is completely run by volunteers, and we all have other things to keep track of and manage too, so, while we will usually try and help you with just about anything openFIRST related circumstances may make this impossible. Sorry in advance if this is the case.</p> <p>Code and documentation patches, plus completely new documentation is welcomed. For this kind of thing, use <a href="http://bugzilla.openfirst.org/">the openFIRST Bugzilla Server</a>; or, the less-preferred method of <a href="/contact.php">contacting an individual person</a>. So, without further adieu, here's the list of documentation:</p> <h2>General</h2> <ul> <li><a href="/about.php">About openFIRST</a> (what is this thing, anyway?)</li> <li><a href="/license.php">License Information</a> (openFIRST is licensed under the GPL)</li> </ul> <h2>User Documentation</h2> <ul> <li>FAQ - Frequently Asked Questions (not yet written)</li> <li>openFIRST Manual (not yet available)</li> <li><a href="/quickstart-sambar.php">Quick Start Guide - Sambar Server</a> (for setting up and using openFIRST with the Sambar web server)</li> </ul> <h2>Developer / Volunteer</h2> <ul> <li><a href="http://www.openfirst.org/doc/tut/howto/">openFIRST Contributor's HOWTO</a></li> <li><a href="/cvs/smartcvs/">SmartCVS Tutorial for access to the openFIRST CVS repository</a> (for SmartCVS version 2)</li> <li><a href="/cvs/smartcvs3/">SmartCVS Tutorial for access to the openFIRST CVS repository</a> (for SmartCVS version 3)</li> </ul> |
From: Tim G. <xt...@us...> - 2005-05-25 15:28:47
|
Update of /cvsroot/openfirst/www/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2553/htdocs Modified Files: .htaccess contact.php downloads.php Log Message: Make things seem a little more sane and be generally easier to use. Release Notes has been incorportated into the downloads page now. There's also now a documentation link where a link to everything that is documentation should be put (rather than it being scattered around so much like itw as before). Index: downloads.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/downloads.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** downloads.php 8 Jan 2005 14:09:19 -0000 1.3 --- downloads.php 25 May 2005 15:28:37 -0000 1.4 *************** *** 42,45 **** --- 42,80 ---- debugging functionality.</p> + <hr> + + <p>Modules are currently tested with the following web servers: <br> + </p> + <p> + <center> + <p><a href="http://httpd.apache.org/"> <img style="border: 0px;" + src="/image/tested/apache.png" + alt="Apache Web Server" title="Apache + Web Server"></a> <a + href="http://www.microsoft.com/iis/"><img style="border: 0px;" + src="/image/tested/iis.png" + alt="Microsoft Internet Information + Services" title="Microsoft Internet + Information Services"></a> <a href="http://www.sambar.com"><img style="border: 0px;" + src="/image/tested/sambar.png" + alt="Sambar Web Server" title="Sambar + Web Server"></a> </p> + + <p>Read the README file included with the distributions. Each time you + download a new module, or upgrade an existing module, you should run the + Module Installer found in the config directory (example: + http://www.yoursite.com/openfirst/config/). + </p> + + <hr> + + <p>Non-developers may use our <a href="http://www.openfirst.org/nightly/">Nightly Build System</a> to retrieve the latest version of the software. + <br><b>Developers should use CVS instead</b> + <br><b>Important:</b> All users should be aware that the SourceForge releases page (<a + href="http://www.sourceforge.net/projects/openfirst/">http://www.sourceforge.net/projects/openfirst/</a> + is *not* updated with the latest system until there is an official release + prepared. This process ensures that there are stable releases available while at the same time new features may be prepared and/or tested using the CVS or nightly + build versions. <b>If you're a first time user, you probably don't want a nightly build or a version directly from CVS.</b></p> + <table> <tr><th>Module</th><th>Files [<a href="which-file-type.php">Which do I choose?</a>]</th><th>Module Support Status</th></tr> Index: .htaccess =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/.htaccess,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** .htaccess 1 Jan 2005 20:53:00 -0000 1.2 --- .htaccess 25 May 2005 15:28:37 -0000 1.3 *************** *** 39,40 **** --- 39,41 ---- Redirect Permanent /images/ http://openfirst.sourceforge.net/image/ Redirect Permanent /demo/ http://demo.openfirst.org/ + Redirect Permanent /release.php http://www.openfirst.org/downloads.php Index: contact.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/contact.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** contact.php 31 Dec 2004 07:40:35 -0000 1.4 --- contact.php 25 May 2005 15:28:37 -0000 1.5 *************** *** 4,17 **** </tr> </table> ! <p>The e-mail addresses for the active staff members are:</p> <ul> <li><a href="mailto:ja...@op...">ja...@op...</a></li> ! <li><a href="mailto:bh...@op...">bh...@op...</a></li> ! <li><a href="mailto:da...@op...">da...@op...</a></li> <li><a href="mailto:jo...@op...">jo...@op...</a></li> <!-- Dave, you're e-mail is bouncing. Either say you want openfirst.org mail forwarded to another address, or stop it from bouncing and re-add yourself here. - <li><a href="mailto:da...@op...">da...@op...</a></li> --> <li><a href="mailto:ti...@op...">ti...@op...</a></li> --- 4,16 ---- </tr> </table> ! <p>The e-mail addresses for the active staff members are below. For general inquiries or unless you know otherwise your best bet is to contact <a href="mailto:ti...@op...">ti...@op...</a>.</p> <ul> <li><a href="mailto:ja...@op...">ja...@op...</a></li> ! <li><a href="mailto:bh...@op...">bh...@op...</a></li> ! <li><a href="mailto:da...@op...">da...@op...</a></li> <li><a href="mailto:jo...@op...">jo...@op...</a></li> <!-- Dave, you're e-mail is bouncing. Either say you want openfirst.org mail forwarded to another address, or stop it from bouncing and re-add yourself here. <li><a href="mailto:da...@op...">da...@op...</a></li> --> <li><a href="mailto:ti...@op...">ti...@op...</a></li> |
From: Tim G. <xt...@us...> - 2005-05-25 15:28:47
|
Update of /cvsroot/openfirst/www/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2553/inc Modified Files: headers.php Log Message: Make things seem a little more sane and be generally easier to use. Release Notes has been incorportated into the downloads page now. There's also now a documentation link where a link to everything that is documentation should be put (rather than it being scattered around so much like itw as before). Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/www/inc/headers.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** headers.php 17 Apr 2005 21:21:59 -0000 1.12 --- headers.php 25 May 2005 15:28:38 -0000 1.13 *************** *** 73,84 **** <th id="topmenu" style="background-image: url('http://www.openfirst.org/image/back.gif');"> » <a accesskey="h" href="http://openfirst.sourceforge.net"><u>H</u>ome</a> | » <a accesskey="d" href="http://www.openfirst.org/downloads.php"><u>D</u>ownloads</a> - | » <a accesskey="r" href="http://www.openfirst.org/release.php"><u>R</u>elease Notes</a> | » <a accesskey="m" href="http://www.openfirst.org/modules.php"><u>M</u>odules</a> ! | » <a accesskey="l" href="http://www.openfirst.org/license.php"><u>L</u>icense</a> ! | » <a accesskey="b" href="http://www.openfirst.org/bugreports.php"><u>B</u>ug Reports</a> | » <a accesskey="c" href="http://www.openfirst.org/contact.php"><u>C</u>ontact Us</a> - | » <a accesskey="a" href="http://www.openfirst.org/about.php"><u>A</u>bout openFIRST</a> - | » <a accesskey="e" href="http://www.openfirst.org/developers.php">D<u>e</u>velopers</a> </th> </tr> --- 73,83 ---- <th id="topmenu" style="background-image: url('http://www.openfirst.org/image/back.gif');"> » <a accesskey="h" href="http://openfirst.sourceforge.net"><u>H</u>ome</a> + | » <a accesskey="a" href="http://www.openfirst.org/about.php"><u>A</u>bout openFIRST</a> + | » <a accesskey="o" href="http://www.openfirst.org/doc/">D<u>o</u>cumentation</a> | » <a accesskey="d" href="http://www.openfirst.org/downloads.php"><u>D</u>ownloads</a> | » <a accesskey="m" href="http://www.openfirst.org/modules.php"><u>M</u>odules</a> ! | » <a accesskey="e" href="http://www.openfirst.org/developers.php">Volunt<u>e</u>ers</a> ! | » <a accesskey="b" href="http://www.openfirst.org/bugreports.php"><u>B</u>ug Reports</a> | » <a accesskey="c" href="http://www.openfirst.org/contact.php"><u>C</u>ontact Us</a> </th> </tr> |
From: Tim G. <xt...@us...> - 2005-05-25 02:47:22
|
Update of /cvsroot/openfirst/www/htdocs/developers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19324 Modified Files: index.php Log Message: Add Jamie's hackergotchi to profile listing. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/developers/index.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** index.php 24 May 2005 22:39:01 -0000 1.7 --- index.php 25 May 2005 02:47:10 -0000 1.8 *************** *** 34,38 **** </tr> <tr> ! <td><img src="/image/hackergotchi/unknown.png" alt="[Hackergotchi]"></td> <td height="22"><a href="jamie.php">Jamie Bliss</a></td> <td>New—PHP core programmer</td> --- 34,38 ---- </tr> <tr> ! <td><img src="/image/hackergotchi/astro73.png" alt="[Hackergotchi]"></td> <td height="22"><a href="jamie.php">Jamie Bliss</a></td> <td>New—PHP core programmer</td> |
From: Tim G. <xt...@us...> - 2005-05-25 02:46:09
|
Update of /cvsroot/openfirst/www/htdocs/image/hackergotchi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19089 Added Files: astro73.png Log Message: Add Jamie's hackergotchi :-) --- NEW FILE: astro73.png --- (This appears to be a binary file; contents omitted.) |
From: Astronouth7303 <ast...@us...> - 2005-05-25 01:46:06
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9648/config Modified Files: dbase.php Added Files: db_setup.php Log Message: -Initial commit on DB maintainence class(es) -Removed last remenants of PEAR -added an escaping and some quoting functions Index: dbase.php =================================================================== RCS file: /cvsroot/openfirst/base/config/dbase.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** dbase.php 17 May 2005 01:55:57 -0000 1.26 --- dbase.php 25 May 2005 01:45:57 -0000 1.27 *************** *** 41,45 **** function ofirst_dbconnect($server = "", $username = "", $password = "", $newlink = "", $intclientflags = "") { ! global $dbasetype, $peardb, $connectdsn; if($dbasetype == "mysql") { if(function_exists("mysql_connect") == false) { --- 41,45 ---- function ofirst_dbconnect($server = "", $username = "", $password = "", $newlink = "", $intclientflags = "") { ! global $dbasetype, $connectdsn; if($dbasetype == "mysql") { if(function_exists("mysql_connect") == false) { *************** *** 72,76 **** function ofirst_select_db($databasename, $linkidentifier = "") { ! global $dbasetype, $peardb, $connectdsn; if($dbasetype == "mysql") { if(function_exists("mysql_select_db") == false) { --- 72,76 ---- function ofirst_select_db($databasename, $linkidentifier = "") { ! global $dbasetype, $connectdsn; if($dbasetype == "mysql") { if(function_exists("mysql_select_db") == false) { *************** *** 97,101 **** function ofirst_dberrno($linkidentifier = "") { ! global $dbasetype, $peardb; if($dbasetype == "mysql") { if(function_exists("mysql_errno") == false) { --- 97,101 ---- function ofirst_dberrno($linkidentifier = "") { ! global $dbasetype; if($dbasetype == "mysql") { if(function_exists("mysql_errno") == false) { *************** *** 126,130 **** function ofirst_dberror($linkidentifier = "") { ! global $dbasetype, $peardb; if($dbasetype == "mysql") { if(function_exists("mysql_error") == false) { --- 126,130 ---- function ofirst_dberror($linkidentifier = "") { ! global $dbasetype; if($dbasetype == "mysql") { if(function_exists("mysql_error") == false) { *************** *** 155,159 **** function ofirst_dbquery($string, $linkidentifier = "", $batchsize = "") { ! global $dbasetype, $peardb, $sqlconnection, $lastquery; $lastquery = "\$string = \"$string\", \$linkidentifier = \"$linkidentifier\", \$batchsize = \"$batchsize\""; --- 155,159 ---- function ofirst_dbquery($string, $linkidentifier = "", $batchsize = "") { ! global $dbasetype, $sqlconnection, $lastquery; $lastquery = "\$string = \"$string\", \$linkidentifier = \"$linkidentifier\", \$batchsize = \"$batchsize\""; *************** *** 189,193 **** function ofirst_dbfetch_object($resource, $rownumber = "") { ! global $dbasetype, $peardb; if($dbasetype == "mysql") { if(function_exists("mysql_fetch_object") == false) { --- 189,193 ---- function ofirst_dbfetch_object($resource, $rownumber = "") { ! global $dbasetype; if($dbasetype == "mysql") { if(function_exists("mysql_fetch_object") == false) { *************** *** 216,220 **** function ofirst_dbnum_rows($resource) { ! global $dbasetype, $peardb; if($dbasetype == "mysql") { if(function_exists("mysql_num_rows") == false) { --- 216,220 ---- function ofirst_dbnum_rows($resource) { ! global $dbasetype; if($dbasetype == "mysql") { if(function_exists("mysql_num_rows") == false) { *************** *** 244,248 **** function ofirst_dbname_version() { ! global $dbasetype, $peardb; if($dbasetype == "mysql") { $v = ofirst_dbfetch_object(ofirst_dbquery("SELECT VERSION() AS mysql_version")); --- 244,248 ---- function ofirst_dbname_version() { ! global $dbasetype; if($dbasetype == "mysql") { $v = ofirst_dbfetch_object(ofirst_dbquery("SELECT VERSION() AS mysql_version")); *************** *** 259,263 **** function ofirst_dbsize() { ! global $dbasetype, $peardb, $sqldatabase; if($dbasetype == "mysql") { $dbsize = 0; --- 259,263 ---- function ofirst_dbsize() { ! global $dbasetype, $sqldatabase; if($dbasetype == "mysql") { $dbsize = 0; *************** *** 278,281 **** --- 278,287 ---- function ofirst_dbcheck($linkidentifier = "") { #TODO: Write me! + global $dbasetype; + if($dbasetype == "mysql") { + } elseif($dbasetype == "mssql") { + } elseif($dbasetype == "odbc") { + } + exit(0); } *************** *** 357,360 **** return false; } ! } ?> --- 363,388 ---- return false; } ! } ! ! function ofirst_dbescape($text) { ! global $dbasetype; ! if($dbasetype == "mysql") { ! return mysql_real_escape_string($text); ! # MS SQL and ODBC don't have specific escaping functions. ! } else { ! # Lets just assume there isn't an escaping function ! return addslashes($text); ! } ! exit(0); ! } ! ! #Used for quoting field, table, and DB names ! function ofirst_dbquote_name($name) { ! return '`'.ofirst_dbescape($name).'`'; ! } ! ! #Used for quoting data ! function ofirst_dbquote_name($data) { ! return "'".ofirst_dbescape($data)."'"; ! } ?> --- NEW FILE: db_setup.php --- <?php /* * openFIRST.base - config/db_setup.php * * Copyright (C) 2005, * openFIRST Project * Original Author: Jamie Bliss <ja...@op...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Purpose: Allow easy and stable configuration of database tables. This // includes both setup and modification of said tables. require_once('dbase.php'); /** An array of valid SQL types * This won't be used for checking */ $sqlValidTypes = array( /* After each type, there may be a list of options: * length - can have the form TYPE(###) * need length - must have the form TYPE(###) * length&digits - can have the form TYPE(###, ###) * length&bits - can have the form TYPE(###, ###) * length or digits - can have the form TYPE(###) or TYPE(###, ###) * * Any options not in this list refer to literal attributes */ # These are from phpMyAdmin 'VARCHAR', #need length, national, binary 'TINYINT', #length, unsigned, zerofill 'TEXT', #length 'DATE', 'SMALLINT', #length, unsigned, zerofill 'MEDIUMINT', #length, unsigned, zerofill 'INT', #length, unsigned, zerofill 'BIGINT', #length, unsigned, zerofill 'FLOAT', #need length, unsigned, zerofill OR #length&digits, unsigned, zerofill 'DOUBLE', #length&bits, unsigned, zerofill 'DECIMAL', #length or digits, unsigned, zerofill 'DATETIME', 'TIMESTAMP', #length(14,12,8,6) 'TIME', 'YEAR', #length(2,4) 'CHAR', #need length, national, binary, ascii, unicode OR #(none) 'TINYBLOB', 'TINYTEXT', 'BLOB', #length 'MEDIUMBLOB', 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'ENUM',#list of values 'SET',#list of values # These are additional types from the MySQL manual 'BIT', #length 'BOOL', 'BOOLEAN', 'INTEGER', #length, unsigned, zerofill 'DOUBLE PRECISION', #length&digits, unsigned, zerofill 'REAL', #length&digits, unsigned, zerofill 'DEC', #length or digits, unsigned, zerofill 'NUMERIC', #length or digits, unsigned, zerofill 'FIXED', #length or digits, unsigned, zerofill 'DATE', 'BINARY', #need length 'VARBINARY', #need length ); /** Gets an array of tables. * Uses the current DB connection. The key is the name, the content * is a Table class */ function GetTables() { # } /** The class representing a table. * This is a wrapper for a SQL table. It allows access to fields, * keys, etc. Note that it does not handle records, just structure. */ class Table { var $mName; /** Constructor */ function Table($Name) { # } /** Gets an array of current fields. * The returned array contains just the field names, in order. */ function getFields() { # } /** Adds a field to the table. * @param $Name The name of the new field * @param $Type The type of the new field * @param $Options An associative array of options. Certain elements * are required under certain conditions. */ function addField($Name, $Type, $Options=array()) { # } function getFieldType($Name) { # } function getFieldOptions($Name) { # } function alterField($Name, $Type, $Options) { # } } /*** SQL Statements ***/ /* Get information on a table: DESCRIBE `{TABLE NAME}` Which returns a series of "records" with the "fields": Field - some kind of string - Name Type - a type (with length and all) - data type Null - SET('YES') - whether it can be null Key - SET('MUL','PRI','UNI') - what kind of key it is Default - the same type as the field - the default value Extra - SET('auto_increment') - */ ?> |
From: Tim G. <xt...@us...> - 2005-05-24 22:58:11
|
Update of /cvsroot/openfirst/www/htdocs/doc/tut/howto In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9826 Modified Files: index.php technology.php Log Message: Add mention of the Bugzilla caveat where new versions can render previous templates worthless, add information about Volunteer Profiles, Hackergotchies. Index: technology.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/technology.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** technology.php 1 Jan 2005 21:19:49 -0000 1.5 --- technology.php 24 May 2005 22:57:48 -0000 1.6 *************** *** 41,45 **** <p>Bugzilla (<a href="http://bugzilla.openfirst.org/">http://bugzilla.openfirst.org/</a>) keeps track of bug reports and feature requests for both source code and documentation. Issues of an administrative nature may also be posted on Bugzilla. As a contributor to the openFIRST project you should register for a Bugzilla account using your @openfirst.org e-mail address. Only e-mail addresses that are @openfirst.org show up in the bug crusher statistics on the openfirst.org site and installations of the openFIRST System. To be credited as having crushed a bug, the bug must be finished (eg marked CLOSED, FIXED, etc.) but not DUPLICATE and the bug must be assigned to you at the time it is closed.</p> ! <p>Automated bug reports are filed by openFIRST installations and are clearly marked as such. You, as one who browses Bugzilla should change the subject of Automated bug reports to better reflect their content and/or mark them as DUPLICATE if applicable. Automated bug reports are reported through <a href="http://bugzilla.openfirst.org/openfirst/">http://bugzilla.openfirst.org/openfirst/</a> and bug crusher statistics are available at <a href="http://bugzilla.openfirst.org/openfirst/bugcrushers.php">http://bugzilla.openfirst.org/openfirst/bugcrushers.php</a>. The style sheet and design information for the Bugzilla site is present within the CVS repository in the <b>htdocs/bugzilla</b> directory of the <b>www</b> module.</p> <h2><a name="updatesystem">openFIRST Update System</a></h2> --- 41,45 ---- <p>Bugzilla (<a href="http://bugzilla.openfirst.org/">http://bugzilla.openfirst.org/</a>) keeps track of bug reports and feature requests for both source code and documentation. Issues of an administrative nature may also be posted on Bugzilla. As a contributor to the openFIRST project you should register for a Bugzilla account using your @openfirst.org e-mail address. Only e-mail addresses that are @openfirst.org show up in the bug crusher statistics on the openfirst.org site and installations of the openFIRST System. To be credited as having crushed a bug, the bug must be finished (eg marked CLOSED, FIXED, etc.) but not DUPLICATE and the bug must be assigned to you at the time it is closed.</p> ! <p>Automated bug reports are filed by openFIRST installations and are clearly marked as such. You, as one who browses Bugzilla should change the subject of Automated bug reports to better reflect their content and/or mark them as DUPLICATE if applicable. Automated bug reports are reported through <a href="http://bugzilla.openfirst.org/openfirst/">http://bugzilla.openfirst.org/openfirst/</a> and bug crusher statistics are available at <a href="http://bugzilla.openfirst.org/openfirst/bugcrushers.php">http://bugzilla.openfirst.org/openfirst/bugcrushers.php</a>. The style sheet and design information for the Bugzilla site is present within the CVS repository in the <b>htdocs/bugzilla</b> directory of the <b>www</b> module. Upgrades to Bugzilla may require remaking these templates in order for the Bugzilla site to function as expected.</p> <h2><a name="updatesystem">openFIRST Update System</a></h2> *************** *** 91,94 **** <p>Important Note: the <b>config</b> module is <b>depreciated</b>. Please use the base module instead. That is to say, <b>don't use the config module</b>. The idea behind the move from <b>config</b> to <b>base</b> is that using <b>base</b> a common index page could be created, and resources such as images that are used throughout the site could be in one place (Release technicians rename base to openfirst when distributing the base package. On the webserver, modules are installed within the root of the base module [eg openfirst/guestbook or base/guestbook]. This is why some modules may <b>appear</b> to use the config module, when in fact they do not). The reason that the <b>config</b> module is still in CVS, is because very old versions of openFIRST used to use it. SourceForge doesn't allow the removal of modules; and even if it did, config is part of the history of the project. <b>config</b> remains in the CVS repository on the off chance that someone running a very old version may want to upgrade/patch their install, in which case the <b>config</b> module provides all of the patches up until the point that it became unsupported (which was after the last official release that made use of the module).</p> ! <p><center><a href="roles.php">Previous</a> | <a href="index.php">Table of Contents</a> | <a href="glossary.php">Next</a></center></p> \ No newline at end of file --- 91,103 ---- <p>Important Note: the <b>config</b> module is <b>depreciated</b>. Please use the base module instead. That is to say, <b>don't use the config module</b>. The idea behind the move from <b>config</b> to <b>base</b> is that using <b>base</b> a common index page could be created, and resources such as images that are used throughout the site could be in one place (Release technicians rename base to openfirst when distributing the base package. On the webserver, modules are installed within the root of the base module [eg openfirst/guestbook or base/guestbook]. This is why some modules may <b>appear</b> to use the config module, when in fact they do not). The reason that the <b>config</b> module is still in CVS, is because very old versions of openFIRST used to use it. SourceForge doesn't allow the removal of modules; and even if it did, config is part of the history of the project. <b>config</b> remains in the CVS repository on the off chance that someone running a very old version may want to upgrade/patch their install, in which case the <b>config</b> module provides all of the patches up until the point that it became unsupported (which was after the last official release that made use of the module).</p> ! ! <h2><a name="profiles">Volunteer Profiles</a></h2> ! <h3>Applies to: All</h3> ! <p>Those wishing to create a <a href="http://www.openfirst.org/developers/">volunteer profile</a> (previously called developer profile) must check out the www module from CVS and add their profile to the www/htdocs/developer directory then edit index.php of that directory in order to have their profile listed. Alternatively, contact a developer/administrator to have them do this on your behalf. Information about the "Hackergotchi" section of the Volunteer Profiles follows.</p> ! ! ! <h2><a name="hackergotchi">Hackergotchi</a></h2> ! <h3>Applies to: All</h3> ! <p>Those wishing to create a "Hackergotchi" character may do so. The dimensions recommended are 80 pixels by 80 pixels. To have the Hackergotchi used for news postings, etc. on the main site, using CVS add it to the www/htdocs/image/hackergotchi directory. The Hackergotchi image should be named using your SourceForge.net username and should be of type PNG, JPEG or GIF; the filename must be all lowercase letters. A tutorial on how to create Hackergotchi images is available at <a href="http://www.livejournal.com/users/wouterverhelst/21322.html">http://www.livejournal.com/users/wouterverhelst/21322.html</a>.</p> ! <p><center><a href="roles.php">Previous</a> | <a href="index.php">Table of Contents</a> | <a href="glossary.php">Next</a></center></p> \ No newline at end of file Index: index.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.php 5 Jan 2005 18:06:24 -0000 1.4 --- index.php 24 May 2005 22:57:47 -0000 1.5 *************** *** 68,71 **** --- 68,73 ---- <li><a href="technology.php#database">MySQL/Database Software</a></li> <li><a href="technology.php#cvs">CVS</a></li> + <li><a href="technology.php#profiles">Volunteer Profiles</a></li> + <li><a href="technology.php#hackergotchi">Hackergotchi</a></li> </ul> </li> |
From: Tim G. <xt...@us...> - 2005-05-24 22:39:11
|
Update of /cvsroot/openfirst/www/htdocs/developers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6136 Modified Files: index.php Log Message: Have more friendly profiles (including Hackergotchi); note, not everyone who should be listed as a volunteer is, yet. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/developers/index.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** index.php 31 Dec 2004 09:11:54 -0000 1.6 --- index.php 24 May 2005 22:39:01 -0000 1.7 *************** *** 1,54 **** <table width="100%"> <tr> ! <td><h1><img alt="" src="http://www.openfirst.org/image/misc.png"> Developers</h1></td> </tr> ! </table><p> The openFIRST project would like to salute the following developers for the excellence and knowledge during the coding, testing and release phases of the ! project.</p> ! <table width="47%" align="center"> <tr> ! <th height="22">Member</th> <th>Role</th> </tr> <tr> <td width="48%" height="22"><a href="tim.php">Tim Ginn</a></td> ! <td width="52%">Founding Member/Programmer</td> </tr> <tr> <td height="22"><a href="dave.php">David Di Biase</a></td> ! <td>Founding Member/Programmer</td> </tr> <tr> <td height="22"><a href="greg.php">Greg I.</a></td> ! <td>Team Coder</td> ! </tr> ! <tr> ! <td height="22"><font color="#666666">Stephanie Closs</font></td> ! <td>Tester/Code Auditor</td> ! </tr> ! <!-- ! Note: Nick requested to be removed from this list. ! <tr> ! <td height="22"><font color="#666666">Nick Galasso</font></td> ! <td>Tester</td> </tr> - --> <tr> ! <td height="22"><font color="#666666">Chris Pellett</font></td> ! <td>ASP coding leader</td> </tr> <tr> <td height="22"><a href="jamie.php">Jamie Bliss</a></td> <td>New—PHP core programmer</td> </tr> ! <!--tr> <td height="22">Bharat Nain</td> ! </tr--> <tr> <td height="22">Joshua May</td> </tr> <tr> <td height="22"><a href="larry.php">Larry Johnston</a></td> ! <td>Code Validator, Webmaster</td> </tr> </table> --- 1,68 ---- <table width="100%"> <tr> ! <td><h1><img alt="" src="http://www.openfirst.org/image/misc.png"> Volunteers</h1></td> </tr> ! </table><p> The openFIRST project would like to salute the following volunteers for their excellence and knowledge during the coding, testing and release phases of the ! project and the patience and dedication they've shown toward the project. Not all volunteers are ! listed; those who are not may feel free to add themselves and their profile here.</p> ! <table width="75%" align="center"> <tr> ! <th>Hackergotchi</th> ! <th>Member</th> <th>Role</th> </tr> <tr> + <td><img src="/image/hackergotchi/xtimg.png" alt="[Hackergotchi]"></td> <td width="48%" height="22"><a href="tim.php">Tim Ginn</a></td> ! <td width="52%">Founding Member/Administrator (previously Programmer)</td> </tr> <tr> + <td><img src="/image/hackergotchi/unknown.png" alt="[Hackergotchi]"></td> <td height="22"><a href="dave.php">David Di Biase</a></td> ! <td>Founding Member/Advisor (previously Programmer)</td> </tr> <tr> + <td><img src="/image/hackergotchi/unknown.png" alt="[Hackergotchi]"></td> <td height="22"><a href="greg.php">Greg I.</a></td> ! <td>Team Coder (graduated), now Advisor</td> </tr> <tr> ! <td><img src="/image/hackergotchi/unknown.png" alt="[Hackergotchi]"></td> ! <td height="22">Stephanie Closs</td> ! <td>Public Relations/Fundraising</td> </tr> <tr> + <td><img src="/image/hackergotchi/unknown.png" alt="[Hackergotchi]"></td> <td height="22"><a href="jamie.php">Jamie Bliss</a></td> <td>New—PHP core programmer</td> </tr> ! <tr> ! <td><img src="/image/hackergotchi/unknown.png" alt="[Hackergotchi]"></td> <td height="22">Bharat Nain</td> ! <td>Advisor / No defined role</td> ! </tr> <tr> + <td><img src="/image/hackergotchi/unknown.png" alt="[Hackergotchi]"></td> <td height="22">Joshua May</td> + <td>Advisor / No defined role</td> </tr> <tr> + <td><img src="/image/hackergotchi/unknown.png" alt="[Hackergotchi]"></td> <td height="22"><a href="larry.php">Larry Johnston</a></td> ! <td>Previously Code Validator, Webmaster (now Advisor)</td> ! </tr> ! <!-- ! Note: Nick requested to be removed from this list. ! <tr> ! <td><img src="/image/hackergotchi/unknown.png" alt="[Hackergotchi]"></td> ! <td height="22"><font color="#666666">Nick Galasso</font></td> ! <td>Tester</td> ! </tr> ! --> ! <tr> ! <td><img src="/image/hackergotchi/unknown.png" alt="[Hackergotchi]"></td> ! <td height="22"><font color="#666666">Chris Pellett</font></td> ! <td>ASP coding leader (graduated)</td> </tr> </table> |
From: Tim G. <xt...@us...> - 2005-05-24 22:11:50
|
Update of /cvsroot/openfirst/www In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32256 Modified Files: updatesite.sh Log Message: Update the script to update the site using the new news system. Index: updatesite.sh =================================================================== RCS file: /cvsroot/openfirst/www/updatesite.sh,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** updatesite.sh 1 Jan 2005 21:18:16 -0000 1.4 --- updatesite.sh 24 May 2005 22:11:19 -0000 1.5 *************** *** 5,11 **** # Update news ! cd htdocs ! ./news.sh ! cd .. # Ensure website can write session information --- 5,9 ---- # Update news ! php htdocs/news.php # Ensure website can write session information |
From: Tim G. <xt...@us...> - 2005-05-24 22:10:05
|
Update of /cvsroot/openfirst/www/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31967 Modified Files: index.php Added Files: news.php Removed Files: news.sh news.txt Log Message: Change the news system to use RSS rather than the HTML feed; change the style of the news postings to be much more friendly looking with Hackergotchis. --- NEW FILE: news.php --- <?php /* * This file will get the news from SF.net and update the database. * */ include_once("../inc/headers.php"); mysql_selectdb("openfirst"); $inf = fopen("http://sourceforge.net/export/rss2_projnews.php?group_id=78233", "r"); mysql_query("DELETE FROM news WHERE 1;"); $lastTitle = true; $entered = false; $title = ""; $descripton = ""; $author = ""; $link = ""; $pubDate = ""; $comments = ""; while(! feof($inf)) { $line = fgets($inf, 2048); if(strpos($line, "<title>")) { if(strpos($line, "Project News: openFIRST") || strpos($line, "SourceForge.net logo")) { $lastTitle = false; } else { $lastTitle = true; } if($lastTitle) { $title = trim(str_replace("<title>", "", str_replace("</title>", "", $line))); } } if(strpos($line, "<description>") && $lastTitle) { $description = trim(str_replace("<description>", "", str_replace("</description>", "", $line))); } if(strpos($line, "<author>") && $lastTitle) { $author = trim(str_replace("<author>", "", str_replace("</author>", "", $line))); } if(strpos($line, "<link>") && $lastTitle) { $link = trim(str_replace("<link>", "", str_replace("</link>", "", $line))); } if(strpos($line, "<pubDate>") && $lastTitle) { $pubDate = trim(str_replace("<pubDate>", "", str_replace("</pubDate>", "", $line))); mysql_query("INSERT INTO news (title, description, author, link, pubDate, comments) VALUES (\"$title\", \"$description\", \"$author\", \"$link\", \"$pubDate\", \"$comments\");") || die(mysql_error()); echo "Added new news item to database.\n"; $title = ""; $descripton = ""; $author = ""; $link = ""; $pubDate = ""; $comments = ""; } } ?> --- news.txt DELETED --- Index: index.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.php 31 Dec 2004 06:25:18 -0000 1.3 --- index.php 24 May 2005 22:09:45 -0000 1.4 *************** *** 3,8 **** src="/image/news_subscribe.png" alt="" title=""> News & Updates</h1> ! <?php ! include("news.txt"); ?> <hr> --- 3,41 ---- src="/image/news_subscribe.png" alt="" title=""> News & Updates</h1> ! <?php ! mysql_selectdb("openfirst"); ! ! $q = mysql_query("SELECT * FROM news ORDER BY id LIMIT 5;"); ! ! if(! $q) { ! echo("News is not available at the moment. Please try again later."); ! } else { ! echo "<table>"; ! ! while($n = mysql_fetch_object($q)) { ! echo "<tr>"; ! echo "<th colspan='2'>$n->title</th>"; ! echo "</tr>"; ! echo "<tr>"; ! $h = explode("@", $n->author); ! $hackergotchi = ""; ! // Hackergotchi images can be of a few different formats; and if we don't find one, we'll display a default. ! if(file_exists("image/hackergotchi/" . $h[0] . ".png")) { ! $hackergotchi = "http://www.openfirst.org/image/hackergotchi/" . $h[0] . ".png"; ! } else if(file_exists("image/hackergotchi/" . $h[0] . ".jpg")) { ! $hackergotchi = "http://www.openfirst.org/image/hackergotchi/" . $h[0] . ".jpg"; ! } else if(file_exists("image/hackergotchi/" . $h[0] . ".gif")) { ! $hackergotchi = "http://www.openfirst.org/image/hackergotchi/" . $h[0] . ".gif"; ! } else { ! $hackergotchi = "http://www.openfirst.org/image/hackergotchi/unknown.png"; ! } ! echo "<td valign='top'><img src='$hackergotchi' alt='[Hackergotchi]'><br><small>Posted: $n->pubDate by $h[0]</small></td><td valign='top'>" . str_replace("<", "<", str_replace(">", ">", str_replace(""", "\"", $n->description))) . "</td>"; ! echo "</tr>"; ! ! } ! ! echo "</table>"; ! } ! ?> <hr> --- news.sh DELETED --- |
From: Tim G. <xt...@us...> - 2005-05-24 22:08:02
|
Update of /cvsroot/openfirst/www/htdocs/image/hackergotchi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31378 Added Files: unknown.png xtimg.png Log Message: Add Hackergotchi images (my own, and a default one that's used if there's a place that wants a Hackergotchi but someone doesn't have one). --- NEW FILE: unknown.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: xtimg.png --- (This appears to be a binary file; contents omitted.) |
From: Tim G. <xt...@us...> - 2005-05-24 22:05:57
|
Update of /cvsroot/openfirst/www/htdocs/image/hackergotchi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30878/hackergotchi Log Message: Directory /cvsroot/openfirst/www/htdocs/image/hackergotchi added to the repository |
From: Astronouth7303 <ast...@us...> - 2005-05-24 20:49:39
|
Update of /cvsroot/openfirst/base/config/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16470/config/functions Modified Files: debug.php Log Message: clean up, $NO_ADD_DEBUG defaults to false Index: debug.php =================================================================== RCS file: /cvsroot/openfirst/base/config/functions/debug.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** debug.php 13 Mar 2005 01:19:58 -0000 1.11 --- debug.php 24 May 2005 20:49:25 -0000 1.12 *************** *** 31,35 **** set_error_handler("ofirst_error_handler"); ! $NO_ADD_BUG = TRUE; // Handles errors by displaying a message and contacting openFIRST --- 31,35 ---- set_error_handler("ofirst_error_handler"); ! if (!isset($NO_ADD_BUG)) $NO_ADD_BUG = false; // Handles errors by displaying a message and contacting openFIRST *************** *** 39,42 **** --- 39,43 ---- global $NO_ADD_BUG; $dberrno = ofirst_dberrno(); + $dberror = ofirst_dberror(); if(! function_exists("md5_file")) { *************** *** 53,77 **** Error Number: $errno"; ! $specifics = "PHP_SELF: " . $_SERVER["PHP_SELF"] . " ! HTTP Host: " . $_SERVER["HTTP_HOST"] . " ! HTTP Referer: " . $_SERVER["HTTP_REFERER"] . " ! Translated Path: " . $_SERVER["PATH_TRANSLATED"] . " ! User (if exists): $user->user ! User Access Level: $user->membertype ! Error Description: $error in $file on line $line" . (($dberrno != 0) ? "" : (" ! DB Error Number: $dberrno ! DB Error: " . ofirst_dberror() . " ! Last Query: $lastquery")); - #var_dump($NO_ADD_BUG); if ($NO_ADD_BUG) { ! if ($errno == 2) return; ! echo "<br /><b>Error:</b><blockquote>"; ! echo "<b>Details:</b><pre>"; echo $details; ! echo "</pre><b>Specifics:</b><pre>"; echo $specifics; ! echo "</pre></blockquote>"; } else { // Notify the appropriate local contact --- 54,81 ---- Error Number: $errno"; ! $specifics = "PHP_SELF: {$_SERVER['PHP_SELF']} ! HTTP Host: {$_SERVER['HTTP_HOST']} ! HTTP Referer: {$_SERVER['HTTP_REFERER']} ! Translated Path: {$_SERVER['PATH_TRANSLATED']} ! User (if exists): {$user->user} ! User Access Level: {$user->membertype} ! Error Description: {$error} in {$file} on line {$line}"; ! if ($dberrno != 0) { ! $specifics .= " ! DB Error Number: {$dberrno} ! DB Error: ".ofirst_dberror()." ! Last Query: {$lastquery}"; ! } if ($NO_ADD_BUG) { ! // if ($errno == 2) return; ! echo "<br /><div class=\"error\"><h2>Error:</h2><dl>"; ! echo "<dt>Details:</dt><dd><pre>"; echo $details; ! echo "</pre></dd>"; ! echo "<dt>Specifics:</dt><dd><pre>"; echo $specifics; ! echo "</pre></dd></dl></div>"; } else { // Notify the appropriate local contact |
From: Astronouth7303 <ast...@us...> - 2005-05-17 05:00:46
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1318/config Modified Files: dbase.php Log Message: return a default value Index: dbase.php =================================================================== RCS file: /cvsroot/openfirst/base/config/dbase.php,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** dbase.php 16 May 2005 22:07:28 -0000 1.23 --- dbase.php 16 May 2005 22:08:51 -0000 1.24 *************** *** 335,338 **** --- 335,339 ---- } /* End copy */ + return true; } |
From: Astronouth7303 <ast...@us...> - 2005-05-17 03:58:57
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23958/config Modified Files: first.php Log Message: Variable replacement bug Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** first.php 15 May 2005 22:21:39 -0000 1.56 --- first.php 16 May 2005 21:27:22 -0000 1.57 *************** *** 81,85 **** '%MASTERMAIL%', '%BOTMAIL%', ! '%SERVER', '%BASEPATH%', '%FBASEPATH%'); --- 81,85 ---- '%MASTERMAIL%', '%BOTMAIL%', ! '%SERVER%', '%BASEPATH%', '%FBASEPATH%'); |
From: Astronouth7303 <ast...@us...> - 2005-05-17 01:56:34
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17075/config Modified Files: auth.php dbase.php first.php footers.php globals.php headers.php install.php style.css Log Message: Dude, like, it actually works (I think) A lot of changes. More checks, more notifications of failure, etc. Will only remain logged in for one request, but will forward posts made when asked to login. Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/base/config/auth.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** auth.php 17 May 2005 00:52:23 -0000 1.17 --- auth.php 17 May 2005 01:55:57 -0000 1.18 *************** *** 28,31 **** --- 28,33 ---- // Purpose: Deal with authorization of users. + require_once('dbase.php'); + if(isset($encryption) == false) { $encryption = "crypt"; } *************** *** 58,62 **** // Show a login form for the user. ! echo("<br /><br /><form action='". $_SERVER["PHP_SELF"] . "' method='post'>"); if(isset($_SERVER["HTTP_REFERER"])){ echo("<input name='referer' type='hidden' value='".$_SERVER["HTTP_REFERER"]."'/>"); --- 60,70 ---- // Show a login form for the user. ! echo("<br /><br />"); ! ! if (isset($_POST["login"]) && !isset($user)) { ! echo '<div class="error">Invalid username or password!</div>'; ! } ! ! echo "<form action='". $_SERVER["PHP_SELF"] . "' method='post'>"; if(isset($_SERVER["HTTP_REFERER"])){ echo("<input name='referer' type='hidden' value='".$_SERVER["HTTP_REFERER"]."'/>"); *************** *** 79,89 **** echo " <br /><input type=checkbox name=savepass id=savepass value=1 checked /><label for=savepass>Save Password</label>"; } ! echo("</td></tr> <tr><td colspan='2'><a href=\"".$GLOBALS["basepath"]."/members/forgotten.php\">Forgot Password</a></td></tr> ! </table> ! </form><br /><br />"); return(0); } // Determine if the user has already logged in with this session. If // they have, set variables indicating this. If they have not, make a --- 87,106 ---- echo " <br /><input type=checkbox name=savepass id=savepass value=1 checked /><label for=savepass>Save Password</label>"; } ! echo "</td></tr> <tr><td colspan='2'><a href=\"".$GLOBALS["basepath"]."/members/forgotten.php\">Forgot Password</a></td></tr> ! </table>"; ! ! // Include anything else in the post, so it is forwarded to the actual form ! unset($_POST['login'], $_POST['password']); ! foreach($_POST as $name => $value) { ! echo '<input type="hidden" name="'.htmlentities($name).'" value="'.htmlentities($value).'" />'; ! } ! echo "</form><br /><br />"; return(0); } + + function InitUser() { + global $pass_save_disabled, $encryption, $user; // Determine if the user has already logged in with this session. If // they have, set variables indicating this. If they have not, make a *************** *** 119,123 **** $user = ofirst_dbfetch_object($query); if (ofirst_dbnum_rows($query) == 1) { ! if (cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); mt_srand(microtime() * 1000000); --- 136,140 ---- $user = ofirst_dbfetch_object($query); if (ofirst_dbnum_rows($query) == 1) { ! if (cryptpassword($_POST["password"], false, $user->password) == $user->password) { session_register("authcode"); mt_srand(microtime() * 1000000); *************** *** 131,141 **** } } ! } elseif(isset($_POST["login"]) == true && isset($_POST["password"]) == true) { ! $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';"); ! if(ofirst_dberrno() == 0) { $user = ofirst_dbfetch_object($query); ! if(ofirst_dbnum_rows($query) == 1) { ! if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); mt_srand(microtime() * 1000000); --- 148,158 ---- } } ! } elseif (isset($_POST["login"]) && isset($_POST["password"])) { ! $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='{$_POST['login']}';"); ! if (ofirst_dberrno() == 0) { $user = ofirst_dbfetch_object($query); ! if (ofirst_dbnum_rows($query) == 1) { ! if (cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); mt_srand(microtime() * 1000000); *************** *** 153,159 **** --- 170,180 ---- } } else { + # invalid password! unset($user); } } + } else { + # invalid user! + unset($user); } } *************** *** 164,166 **** --- 185,188 ---- unset($q); } + } ?> Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.59 retrieving revision 1.60 diff -C2 -d -r1.59 -r1.60 *** first.php 16 May 2005 22:58:27 -0000 1.59 --- first.php 17 May 2005 01:55:57 -0000 1.60 *************** *** 33,38 **** if(isset($_POST["login"])) { // User is attempting to login for the first time. ! die("<br /><br /><br />You have successfully logged in. <a href='index.php'>Access Administrative Configuration Options</a> (you will be prompted for your password again)</center>"); } --- 33,42 ---- if(isset($_POST["login"])) { + require_once('auth.php'); + InitUser(); // User is attempting to login for the first time. ! if (isset($user)) { ! die("<br /><br /><br />You have successfully logged in. <a href='index.php'>Access Administrative Configuration Options</a> (you will be prompted for your password again)</center>"); ! } } Index: globals.php =================================================================== RCS file: /cvsroot/openfirst/base/config/globals.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** globals.php 17 May 2005 00:52:23 -0000 1.12 --- globals.php 17 May 2005 01:55:57 -0000 1.13 *************** *** 69,73 **** die('You really should upgrade PHP, seeing as you don't even have <a href="http://us2.php.net/manual/en/function.glob.php"><code>glob()</code></a>.'); } ! // Determine what module the user is viewing $currentmodule = str_replace($basepath, '', $_SERVER['SCRIPT_NAME']); --- 69,75 ---- die('You really should upgrade PHP, seeing as you don't even have <a href="http://us2.php.net/manual/en/function.glob.php"><code>glob()</code></a>.'); } ! ! InitUser(); ! // Determine what module the user is viewing $currentmodule = str_replace($basepath, '', $_SERVER['SCRIPT_NAME']); Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/base/config/headers.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** headers.php 17 May 2005 00:52:23 -0000 1.25 --- headers.php 17 May 2005 01:55:58 -0000 1.26 *************** *** 100,104 **** ?> ! </table> <?php --- 100,104 ---- ?> ! </table><div id="content"> <?php Index: dbase.php =================================================================== RCS file: /cvsroot/openfirst/base/config/dbase.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** dbase.php 17 May 2005 00:52:23 -0000 1.25 --- dbase.php 17 May 2005 01:55:57 -0000 1.26 *************** *** 344,355 **** function ofirst_dbexec_file($filename, $linkidentifier = "") { ! $sf = fopen($filename, "r"); ! $query = ""; ! while($line = fgets($sf)) { ! if(substr($line, 0, 2) != "--" && substr($line, 0, 1) != "#" && strlen($line) > 0) { ! $q = ofirst_dbquery(trim($line)); } } - fclose($sf); } ?> --- 344,360 ---- function ofirst_dbexec_file($filename, $linkidentifier = "") { ! if (file_exists($filename) && is_readable($filename)) { ! $sf = fopen($filename, "r"); ! $query = ""; ! while($line = fgets($sf)) { ! if(substr($line, 0, 2) != "--" && substr($line, 0, 1) != "#" && strlen($line) > 0) { ! $q = ofirst_dbquery(trim($line)); ! } } + fclose($sf); + return true; + } else { + return false; } } ?> Index: footers.php =================================================================== RCS file: /cvsroot/openfirst/base/config/footers.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** footers.php 17 May 2005 00:52:23 -0000 1.13 --- footers.php 17 May 2005 01:55:57 -0000 1.14 *************** *** 3,7 **** $basepath = "http://openfirst.sourceforge.net/"; } ! ?> <div id="footer"> <hr /> --- 3,7 ---- $basepath = "http://openfirst.sourceforge.net/"; } ! ?></div> <div id="footer"> <hr /> Index: install.php =================================================================== RCS file: /cvsroot/openfirst/base/config/install.php,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** install.php 15 May 2005 22:21:39 -0000 1.23 --- install.php 17 May 2005 01:55:58 -0000 1.24 *************** *** 46,50 **** <form method="post" action="install.php"> ! <table> <colgroup> <col /> --- 46,50 ---- <form method="post" action="install.php"> ! <table id="moduleInstall"> <colgroup> <col /> *************** *** 79,84 **** foreach($Modules as $code => $info) { $dir = "$fbasepath/$code"; ! $sqlf = "$dir/setup.$dbasetype"; ! $IsInstalled = array_key_exists($code, $InstalledModules); echo '<tr><td><input type="checkbox" name="'.htmlentities($code).'" '; if ($IsInstalled) echo 'checked="checked" '; --- 79,92 ---- foreach($Modules as $code => $info) { $dir = "$fbasepath/$code"; ! $sqlf = "$dir/setup/setup.$dbasetype"; ! $WasInstalled = $IsInstalled = array_key_exists($code, $InstalledModules); ! $InstallFailed = false; ! if(isset($_POST[$code]) == true && $_POST[$code] == "on" && !$IsInstalled) { ! if (ofirst_dbexec_file($sqlf)) { ! $IsInstalled = true; ! } else { ! $InstallFailed = true; ! } ! } echo '<tr><td><input type="checkbox" name="'.htmlentities($code).'" '; if ($IsInstalled) echo 'checked="checked" '; *************** *** 86,94 **** <td>('.htmlentities($info['ver']).')'.'</td> <td>'.htmlentities($code)."</td>"; - if(isset($_POST[$code]) == true && $_POST[$code] == "on" && !$IsInstalled) { ! ofirst_dbexec_file($sqlf); ! echo('<td style="background-color: lime; color:white; font-weight:bold;">Module Installed successfully!</td></tr>'); ! } else if ($IsInstalled) { echo('<td style="background-color: green; color:white;">Module Installed</td></tr>'); } else { --- 94,103 ---- <td>('.htmlentities($info['ver']).')'.'</td> <td>'.htmlentities($code)."</td>"; ! if ($IsInstalled && !$WasInstalled) { ! echo('<td style="background-color: lime; color:black; font-weight:bold;">Module Installation succeeded!</td></tr>'); ! } else if ($InstallFailed) { ! echo('<td style="background-color: red; color:black; font-weight:bold;">Module Installation failed!</td></tr>'); ! } else if ($IsInstalled && $WasInstalled) { echo('<td style="background-color: green; color:white;">Module Installed</td></tr>'); } else { Index: style.css =================================================================== RCS file: /cvsroot/openfirst/base/config/style.css,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** style.css 17 May 2005 00:52:23 -0000 1.5 --- style.css 17 May 2005 01:55:58 -0000 1.6 *************** *** 1,2 **** --- 1,40 ---- + /* Basic elements */ + bold { + font-weight: bold; + } + + big { + font-size: large; + } + + input[type=text], select { + text-align: left; + } + + input[type=checkbox], input[type=radio] { + margin-right: .3em; + vertical-align: middle; + } + + caption { + text-align: center; + font-size: medium; + padding: .25em; + font-weight: bold; + } + + /* classes and IDs */ + #content { + padding: 1em; + text-align: center; + margin-left: auto; + margin-right: auto; + } + #content table { + margin-left: auto; + margin-right: auto; + text-align: center; + } + #adminmenu { color: white; *************** *** 220,236 **** width: 25em; } - bold { - font-weight: bold; - } - big { - font-size: large; - } - - caption { - text-align: center; - font-size: medium; - padding: .25em; - font-weight: bold; - } table.center caption { --- 258,261 ---- *************** *** 258,259 **** --- 283,287 ---- } + #moduleInstall * { + text-align: left; + } |
From: Astronouth7303 <ast...@us...> - 2005-05-17 01:50:21
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv984/config Modified Files: dbase.php Log Message: removed prints in DB setup. Index: dbase.php =================================================================== RCS file: /cvsroot/openfirst/base/config/dbase.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** dbase.php 22 Mar 2005 22:22:35 -0000 1.22 --- dbase.php 16 May 2005 22:07:28 -0000 1.23 *************** *** 275,281 **** --- 275,287 ---- } + # Check if there the connection is valid + function ofirst_dbcheck($linkidentifier = "") { + #TODO: Write me! + } + function ofirst_dbcreate($sqlserver, $sqluser, $sqlpassword, $sqldatabase) { /* Create database if it does not already exist */ ofirst_dbconnect("$sqlserver","$sqluser","$sqlpassword"); + ofirst_dbquery("CREATE DATABASE IF NOT EXISTS $sqldatabase;"); ofirst_select_db($sqldatabase); *************** *** 283,296 **** ofirst_dbquery("CREATE TABLE `ofirst_config` ( `modulename` varchar(25) NOT NULL default '', ! `showonmenu` tinyint(1) default NULL, ! `active` tinyint(1) default NULL, `adminnavigation` text, `modulenavigation` text, `includes` text, ! PRIMARY KEY (`modulename`) )"); ! /* copied from auth.php */ ! echo("<p>Members table does not exist, therefore I am creating it.</p>"); ! $query = ofirst_dbquery("CREATE TABLE ofirst_members ( UNIQUE(user), user CHAR(128), --- 289,306 ---- ofirst_dbquery("CREATE TABLE `ofirst_config` ( `modulename` varchar(25) NOT NULL default '', ! `label` VARCHAR(25), ! `version` VARCHAR(10) NOT NULL default 'CVS', ! `showonmenu` TINYINT( 1 ) NOT NULL DEFAULT '0', ! `active` TINYINT( 1 ) NOT NULL DEFAULT '0', `adminnavigation` text, `modulenavigation` text, `includes` text, ! PRIMARY KEY (`modulename`), ! UNIQUE (`modulename`) ! ) )"); ! ! /* copied from auth.php */ ! $query = ofirst_dbquery("CREATE TABLE ofirst_members ( UNIQUE(user), user CHAR(128), *************** *** 316,329 **** skills TEXT );"); ! if(ofirst_dberrno() == 0) { ! // Insert a default user 'administrator' and set them to have ! // administrative access and some password. ! ! $query = ofirst_dbquery("INSERT INTO ofirst_members (user, membertype, password) VALUES('admin', 'administrator', '" . cryptpassword("openfirst", $encryption) ."');"); ! echo("<p>Members table has been created. Please login as <b>admin</b> using the password <b>openfirst</b> to set configuration options.</p>"); } ! /* End copy */ } ?> --- 326,349 ---- skills TEXT );"); ! if (ofirst_dberrno() == 0) { ! // Insert a default user 'administrator' and set them to have ! // administrative access and some password. ! ! $query = ofirst_dbquery("INSERT INTO ofirst_members (user, membertype, password) VALUES('admin', 'administrator', '" . cryptpassword("openfirst", $encryption) ."');"); ! } ! /* End copy */ ! } ! ! function ofirst_dbexec_file($filename, $linkidentifier = "") { ! $sf = fopen($filename, "r"); ! $query = ""; ! while($line = fgets($sf)) { ! if(substr($line, 0, 2) != "--" && substr($line, 0, 1) != "#" && strlen($line) > 0) { ! $q = ofirst_dbquery(trim($line)); } ! } ! fclose($sf); } ?> |
From: Astronouth7303 <ast...@us...> - 2005-05-17 01:05:24
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31774/config Modified Files: first.php Log Message: fixed some bugs with db setup Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** first.php 16 May 2005 21:27:22 -0000 1.57 --- first.php 16 May 2005 22:01:35 -0000 1.58 *************** *** 44,52 **** $sqldatabase = $_POST["sqldatabase"]; include_once("./dbase.php"); if(function_exists("ofirst_dbconnect") == false) { die("Your version of PHP has not been compiled with MySQL support, therefore the openFIRST web portal system cannot run on this system. Please contact your system administrator to request MySQL support for your version of PHP."); } ! ofirst_dbcreate("$sqlserver","$sqluser","$sqlpassword", $sqldatabase); ! echo 'DB/tables creation error: '.ofirst_dberror(); function GetVarValue($var) { --- 44,53 ---- $sqldatabase = $_POST["sqldatabase"]; include_once("./dbase.php"); + include_once("./auth.php"); if(function_exists("ofirst_dbconnect") == false) { die("Your version of PHP has not been compiled with MySQL support, therefore the openFIRST web portal system cannot run on this system. Please contact your system administrator to request MySQL support for your version of PHP."); } ! if (!ofirst_dbcreate("$sqlserver","$sqluser","$sqlpassword", $sqldatabase)) ! echo 'DB/tables creation error: '.ofirst_dberror(); function GetVarValue($var) { |
From: Astronouth7303 <ast...@us...> - 2005-05-17 00:52:37
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6300/config Modified Files: auth.php dbase.php footers.php globals.php headers.php style.css Log Message: fixes, login still doesn't work Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/base/config/auth.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** auth.php 22 Mar 2005 22:22:35 -0000 1.16 --- auth.php 17 May 2005 00:52:23 -0000 1.17 *************** *** 33,43 **** // syntax: cryptpassword(password, encryption-type, salt); ! function cryptpassword ($password, $encryption = "md5", $salt="") { // Encrypt passwords using whatever algorithm is preferred. ! if ($encryption == "crc32") { return(crc32($password)); ! } elseif ($encryption == "sha1") { return(sha1($password)); ! } elseif ($encryption == "crypt") { return(crypt($password, $salt)); } else { --- 33,46 ---- // syntax: cryptpassword(password, encryption-type, salt); ! function cryptpassword ($password, $enctype = false, $salt="") { ! global $encryption; ! if ($enctype === false) $enctype = $encryption; ! // Encrypt passwords using whatever algorithm is preferred. ! if ($enctype == "crc32") { return(crc32($password)); ! } else if ($enctype == "sha1") { return(sha1($password)); ! } else if ($enctype == "crypt") { return(crypt($password, $salt)); } else { *************** *** 59,67 **** echo("<input name='referer' type='hidden' value='".$_SERVER["HTTP_REFERER"]."'/>"); } ! echo "<table width='200'> ! <tr> ! <th width='36%'> </th> ! <th width='64%'>Account Login</th> ! </tr> <tr> <td><div align='right'>Username:</div></td> --- 62,67 ---- echo("<input name='referer' type='hidden' value='".$_SERVER["HTTP_REFERER"]."'/>"); } ! echo "<table width='200' class='center' id='login'> ! <caption>Account Login</caption> <tr> <td><div align='right'>Username:</div></td> *************** *** 74,84 **** </tr> <tr> ! <td> </td> ! <td><input type=\"submit\" value=\"Login\" />"; ! if(!isset($GLOBALS["pass_save_disabled"])){ ! echo " <br /><input type=checkbox name=savepass id=savepass value=1 checked /><label for=savepass>Save Password</label>"; } echo("</td></tr> ! <tr><td> </td><td><a href=\"".$GLOBALS["basepath"]."/members/forgotten.php\">Forgot Password</a></td></tr> </table> </form><br /><br />"); --- 74,84 ---- </tr> <tr> ! <td colspan='2'><input type=\"submit\" value=\"Login\" />"; ! global $pass_save_disabled; ! if(!(isset($pass_save_disabled) && $pass_save_disabled)){ ! echo " <br /><input type=checkbox name=savepass id=savepass value=1 checked /><label for=savepass>Save Password</label>"; } echo("</td></tr> ! <tr><td colspan='2'><a href=\"".$GLOBALS["basepath"]."/members/forgotten.php\">Forgot Password</a></td></tr> </table> </form><br /><br />"); *************** *** 89,105 **** // they have, set variables indicating this. If they have not, make a // note of this so that components requiring them to log in are disabled. ! if((isset($_SESSION['authcode']))||(isset($_COOKIE["openFIRSTlogin"])&&!isset($pass_save_disabled))) { ! if(isset($_SESSION['authcode'])){ $authcode = $_SESSION['authcode']; ! }elseif(isset($_COOKIE["openFIRSTlogin"])&&$_COOKIE["openFIRSTlogin"]!=0){ $authcode = $_COOKIE["openFIRSTlogin"]; ! $_SESSION['authcode']=$authcode; //renew cookie ! setcookie("openFIRSTlogin",$authcode,time()+2592000,"/"); } else { ! $authcode=0; } $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE authcode='$authcode';"); ! if(ofirst_dberrno() == 0 && ofirst_dbnum_rows($query) == 1 && $authcode!=0 ) { $user = ofirst_dbfetch_object($query); } else { --- 89,110 ---- // they have, set variables indicating this. If they have not, make a // note of this so that components requiring them to log in are disabled. ! ! if ( (isset($_SESSION['authcode'])) || ! (isset($_COOKIE["openFIRSTlogin"]) && !$pass_save_disabled) ! ) { ! ! if (isset($_SESSION['authcode'])) { $authcode = $_SESSION['authcode']; ! } else if (isset($_COOKIE["openFIRSTlogin"]) && $_COOKIE["openFIRSTlogin"] != 0) { $authcode = $_COOKIE["openFIRSTlogin"]; ! $_SESSION['authcode'] = $authcode; //renew cookie ! setcookie("openFIRSTlogin", $authcode, time()+2592000, "/"); } else { ! $authcode = 0; } + $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE authcode='$authcode';"); ! if (ofirst_dberrno() == 0 && ofirst_dbnum_rows($query) == 1 && $authcode != 0 ) { $user = ofirst_dbfetch_object($query); } else { *************** *** 109,118 **** setcookie("openFIRSTlogin"," ",time()-3600,"/"); } ! if(isset($_POST["login"])){ $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';"); ! if(ofirst_dberrno() == 0) { $user = ofirst_dbfetch_object($query); ! if(ofirst_dbnum_rows($query) == 1) { ! if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); mt_srand(microtime() * 1000000); --- 114,123 ---- setcookie("openFIRSTlogin"," ",time()-3600,"/"); } ! if (isset($_POST["login"])){ $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';"); ! if (ofirst_dberrno() == 0) { $user = ofirst_dbfetch_object($query); ! if (ofirst_dbnum_rows($query) == 1) { ! if (cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); mt_srand(microtime() * 1000000); *************** *** 154,202 **** } - - if(ofirst_dberrno() != 0) { - // There was an error, check if it's because they didn't create the - // members table. - /* if(ofirst_dberrno() == 1146) { - echo("<p>Members table does not exist, therefore I am creating it.</p>"); - $query = ofirst_dbquery("CREATE TABLE ofirst_members ( - UNIQUE(user), - user CHAR(128), - firstname TINYTEXT, - lastname TINYTEXT, - lastseen TINYTEXT, - ip TINYTEXT, - password TEXT, - authcode TEXT, - membertype TINYTEXT, - division TINYTEXT, - year INTEGER, - email TEXT, - icq INTEGER, - aim TINYTEXT, - msn TINYTEXT, - yim TINYTEXT, - description TEXT, - signature TINYTEXT, - dateregistered TINYTEXT, - picturelocation TINYTEXT, - team INTEGER, - skills TEXT - );"); - if(ofirst_dberrno() == 0) { - // Insert a default user 'administrator' and set them to have - // administrative access and some password. - - $query = ofirst_dbquery("INSERT INTO ofirst_members (user, - membertype, password) VALUES('admin', 'administrator', '" . - cryptpassword("openfirst", $encryption) ."');"); - echo("<p>Members table has been created. Please login as <b>admin</b> using the password <b>openfirst</b> to set configuration options.</p>"); - showlogin(); - die(); - } else { - die(ofirst_dberror()); - } - }*/ - } if(isset($user->user)){ $query = "UPDATE ofirst_members SET lastseen='" . date("h:i:s M d, Y") . "' WHERE user='$user->user';"; --- 159,162 ---- *************** *** 204,211 **** unset($q); } - - /* This is here for legacy reasons, so as to make previous versions - * of certain modules function with the newer base modules. - */ - function membersmenu() { return(0); } ?> --- 164,166 ---- Index: globals.php =================================================================== RCS file: /cvsroot/openfirst/base/config/globals.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** globals.php 15 May 2005 22:18:21 -0000 1.11 --- globals.php 17 May 2005 00:52:23 -0000 1.12 *************** *** 57,60 **** --- 57,63 ---- require_once('dbase.php'); + require_once('auth.php'); + + require_once('sitesettings.php'); if(function_exists("ofirst_dbconnect") == false) { *************** *** 66,72 **** die('You really should upgrade PHP, seeing as you don't even have <a href="http://us2.php.net/manual/en/function.glob.php"><code>glob()</code></a>.'); } - - require_once('sitesettings.php'); - // Determine what module the user is viewing --- 69,72 ---- *************** *** 74,83 **** $currentmodule = substr($currentmodule, 1, strpos($currentmodule, '/', 2) - 1); - #FIXME: Use $fbasepath instead of getcwd() session_start(); - include('auth.php'); // Include the functions using glob(); foreach (glob("$fbasepath/config/functions/*.php") as $filename) { ! include($filename); } --- 74,81 ---- $currentmodule = substr($currentmodule, 1, strpos($currentmodule, '/', 2) - 1); session_start(); // Include the functions using glob(); foreach (glob("$fbasepath/config/functions/*.php") as $filename) { ! include_once($filename); } *************** *** 125,133 **** // Loop through the inclist and add them according to their paths foreach($inclist As $inc){ ! include("$fbasepath/$module->modulename/$inc"); } } else { // If there is only 1 include available then use this line to include it instead ! include("$fbasepath/$module->modulename/$module->includes"); } } --- 123,131 ---- // Loop through the inclist and add them according to their paths foreach($inclist As $inc){ ! include_once("$fbasepath/$module->modulename/$inc"); } } else { // If there is only 1 include available then use this line to include it instead ! include_once("$fbasepath/$module->modulename/$module->includes"); } } *************** *** 154,158 **** } ! if (!preg_match('/\A[a-zA-Z0-9]+\z/',session_id())) session_regenerate_id(); session_write_close(); --- 152,158 ---- } ! if (!preg_match('/\A[a-zA-Z0-9]+\z/',session_id())) { ! session_regenerate_id(); ! } session_write_close(); Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/base/config/headers.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** headers.php 15 May 2005 22:17:31 -0000 1.24 --- headers.php 17 May 2005 00:52:23 -0000 1.25 *************** *** 19,28 **** <table class="nav1"> ! <tr> ! <td> <img src="<?php echo htmlentities($basepath); ?>/images/openfirst.png" alt="openFIRST Portal System" /> </td> </tr> <tr> ! <th id="topmenu" style="background-image: url('<?php echo htmlentities($basepath); ?>/images/back.gif');"> <?php if(ISSET($headers)){ --- 19,29 ---- <table class="nav1"> ! <tr id="toplogo"> ! <td> ! <img src="<?php echo htmlentities($basepath); ?>/images/openfirst.png" alt="openFIRST Portal System" /> </td> </tr> <tr> ! <th id="topmenu"> <?php if(ISSET($headers)){ Index: footers.php =================================================================== RCS file: /cvsroot/openfirst/base/config/footers.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** footers.php 14 Mar 2005 00:50:00 -0000 1.12 --- footers.php 17 May 2005 00:52:23 -0000 1.13 *************** *** 4,32 **** } ?> ! <hr width="80%" size="1px" style="border:1px" noshade> ! <table class="menu" width="100%" border="0" cellspacing="0" cellpadding="6"> ! <tr> ! <td class="menu" style="background=image: url('<?php echo("$basepath/images/"); ?>back-light.gif');"> ! <div> ! <div align="center">© Copyright 2002-2003 by <?php echo $title; ?>. ! All rights reserved.<?php if(isset($user->membertype)){if($user->membertype == "administrator"){ echo "<br><br>[ <a href='$basepath/config/index.php'>Administrator Options / Configuration Area</a> ]"; }} ?></div> ! </div> ! </td> ! </tr> ! <tr> ! <td class="menu"> ! <div> ! <div align="right"><a href= ! "http://openfirst.sourceforge.net"><img src="<?php echo("$basepath"); ?>/images/poweredby-small.png" ! width="177" height="30" border="0" alt="Powered by openFIRST Software - http://openfirst.sourceforge.net"></a><a href= ! "http://validator.w3.org/check?uri=http%3A//openfirst.sourceforge.net/"> ! <img src="<?php echo("$basepath"); ?>/images/w3c401.png" alt="Valid HTML 4.01" width="88" height="31" ! border="0"></a> </div> ! </div> ! </td> ! </tr> ! </table> ! ! <p> </p> ! </body> ! </html> --- 4,24 ---- } ?> ! <div id="footer"> ! <hr /> ! <div id="copyright" class="menu center"> ! © Copyright 2002-2003 by <?php echo $title; ?>. All rights reserved. ! </div> ! <?php ! if(isset($user->membertype) && $user->membertype == "administrator"){ ! echo "<div id=\"adiminlink\">[ <a href='".htmlentities($basepath)."/config/index.php'>Administrator Options / Configuration Area</a> ]</div>"; } ! ?> ! <div class="right menu"> ! <a class="logo" href="http://openfirst.sourceforge.net"> ! <img src="<?php echo htmlentities("$basepath"); ?>/images/poweredby-small.png" alt="Powered by openFIRST" /> ! </a> ! <a class="valid" href="http://validator.w3.org/check?uri=http%3A//openfirst.sourceforge.net/"> ! <img src="<?php echo htmlentities("$basepath"); ?>/images/w3c401.png" alt="Valid HTML 4.01" /> ! </a> ! </div> ! </div> ! </body></html> Index: dbase.php =================================================================== RCS file: /cvsroot/openfirst/base/config/dbase.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** dbase.php 16 May 2005 22:08:51 -0000 1.24 --- dbase.php 17 May 2005 00:52:23 -0000 1.25 *************** *** 285,291 **** ofirst_dbquery("CREATE DATABASE IF NOT EXISTS $sqldatabase;"); ofirst_select_db($sqldatabase); ! ofirst_dbquery("CREATE TABLE `ofirst_config` ( `modulename` varchar(25) NOT NULL default '', `label` VARCHAR(25), --- 285,293 ---- ofirst_dbquery("CREATE DATABASE IF NOT EXISTS $sqldatabase;"); + if (ofirst_dberror() != 0) return false; + ofirst_select_db($sqldatabase); ! $query = ofirst_dbquery("CREATE TABLE `ofirst_config` ( `modulename` varchar(25) NOT NULL default '', `label` VARCHAR(25), *************** *** 298,303 **** PRIMARY KEY (`modulename`), UNIQUE (`modulename`) - ) )"); /* copied from auth.php */ --- 300,305 ---- PRIMARY KEY (`modulename`), UNIQUE (`modulename`) )"); + if (ofirst_dberror() != 0) return false; /* copied from auth.php */ *************** *** 326,329 **** --- 328,333 ---- skills TEXT );"); + if (ofirst_dberror() != 0) return false; + if (ofirst_dberrno() == 0) { // Insert a default user 'administrator' and set them to have *************** *** 332,336 **** $query = ofirst_dbquery("INSERT INTO ofirst_members (user, membertype, password) VALUES('admin', 'administrator', '" . ! cryptpassword("openfirst", $encryption) ."');"); } /* End copy */ --- 336,341 ---- $query = ofirst_dbquery("INSERT INTO ofirst_members (user, membertype, password) VALUES('admin', 'administrator', '" . ! cryptpassword("openfirst") ."');"); ! if (ofirst_dberror() != 0) return false; } /* End copy */ Index: style.css =================================================================== RCS file: /cvsroot/openfirst/base/config/style.css,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** style.css 15 May 2005 23:46:19 -0000 1.4 --- style.css 17 May 2005 00:52:23 -0000 1.5 *************** *** 1,195 **** ! #adminmenu { ! color: white; ! } ! #adminmenu a:link { ! color: white; ! } ! #adminmenu a:visited { ! color: white; ! } ! #adminmenu a:active { ! color: white; ! } ! #adminmenu a:hover { ! color: white; ! } ! a:link { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: underline; ! } ! a:visited { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: underline; ! } ! a:active { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: underline; ! } ! a:hover { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: underline; ! } ! #topmenu { ! text-align: left; ! } ! #topmenu a:link { ! color: #cecece; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! #topmenu a:visited { ! color: #bebebe; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! #topmenu a:active { ! color: #cecece; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! #topmenu a:hover { ! color: #bed8ff; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! .nav1 { ! width:100%; ! border: none 0px; ! margin-left: -2px; ! margin-right: -2px; ! margin-bottom: 0; ! } ! .nav1 td, .nav1 th { ! margin: 0; ! padding: 6px; ! border: none 0px; ! } ! .nav1 tr { ! margin: 0px; ! padding: 2px; ! } ! .nav2 table { ! border-left:solid #999999 1px; ! border-right:solid #999999 1px; ! border-bottom:solid #999999 1px; ! margin-left:auto; ! margin-right:auto; ! } ! ! .center { ! margin-left:auto; ! margin-right:auto; ! text-align: center; ! } ! td { ! padding: 5px; ! } ! th { ! padding: 5px; ! } ! table.menu { ! border-left:0px; ! border-right:0px; ! border-bottom:0px; ! } ! td.menu { ! border-left:0px; ! border-right:0px; ! border-bottom:0px; ! } ! body { ! color: black; ! font-weight: bolder; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration:none; ! margin: 0px; ! padding: 2px; ! } ! td { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! td.navigation { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! th { ! background-color: #999999; ! color: #333333; ! background-image: url(../images/back-light.gif); ! } ! td.sub { ! background-color: #999999; ! color: #333333; ! background-image: url(../images/back-lighter.gif); ! } ! .menu.selected { ! color: red; ! text-decoration: underline; ! } ! ! .small { ! font-size:small; ! } ! fieldset { ! margin: 1em 1.5em; ! } ! LEGEND { font-size: 1.5em; font-weight: bold;} ! ! dl.setup dd { ! margin-left: 0; ! } ! dl.setup dd label { ! clear: left; ! font-weight: bold; ! width: 12em; ! float: left; ! text-align: right; ! padding-right: 1em; ! } ! dl.setup dt { ! clear: left; ! font-size: 0.8em; ! margin-left: 10em; ! /* margin-right: 200px; */ ! margin-bottom: 2em; ! } ! .error, .warning { ! color: red; ! } ! ul.plain { ! list-style: none; ! clear: both; ! margin-left: 12em; ! } ! dl.setup input:not([type=checkbox]) { ! width: 25em; ! } ! .bold { ! font-weight: bold; ! } ! .big { ! font-size: large; ! } ! --- 1,259 ---- ! #adminmenu { ! color: white; ! } ! #adminmenu a:link { ! color: white; ! } ! #adminmenu a:visited { ! color: white; ! } ! #adminmenu a:active { ! color: white; ! } ! #adminmenu a:hover { ! color: white; ! } ! a:link { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: underline; ! } ! a:visited { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: underline; ! } ! a:active { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: underline; ! } ! a:hover { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: underline; ! } ! #topmenu, caption { ! text-align: left; ! background-image: url(../images/back.gif); ! color: #cecece; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! #topmenu a:link { ! color: #cecece; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! #topmenu a:visited { ! color: #bebebe; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! #topmenu a:active { ! color: #cecece; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! #topmenu a:hover { ! color: #bed8ff; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! #toplogo { ! text-align: left; ! } ! ! .nav1 { ! width:100%; ! border: none 0px; ! margin-left: -2px; ! margin-right: -2px; ! margin-bottom: 0; ! } ! .nav1 td, .nav1 th { ! margin: 0; ! padding: 6px; ! border: none 0px; ! } ! .nav1 tr { ! margin: 0px; ! padding: 2px; ! } ! ! .nav2 table { ! border-left:solid #999999 1px; ! border-right:solid #999999 1px; ! border-bottom:solid #999999 1px; ! margin-left:auto; ! margin-right:auto; ! } ! ! .center { ! margin-left: auto; ! margin-right: auto; ! text-align: center; ! } ! ! .right { ! margin-left: auto; ! margin-right: 0; ! text-align: right; ! } ! ! .left { ! margin-left: 0; ! margin-right: auto; ! text-align: left; ! } ! ! td { ! padding: 5px; ! } ! th { ! padding: 5px; ! } ! table.menu { ! border-left:0px; ! border-right:0px; ! border-bottom:0px; ! } ! td.menu { ! border-left:0px; ! border-right:0px; ! border-bottom:0px; ! } ! body { ! color: black; ! font-weight: bolder; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration:none; ! margin: 0px; ! padding: 2px; ! text-align: center; ! } ! td { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! td.navigation { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! th { ! background-color: #999999; ! color: #333333; ! background-image: url(../images/back-light.gif); ! } ! ! td.sub { ! background-color: #999999; ! color: #333333; ! background-image: url(../images/back-lighter.gif); ! } ! ! .menu.selected { ! color: red; ! text-decoration: underline; ! } ! ! .small { ! font-size:small; ! } ! ! fieldset { ! margin: 1em 1.5em; ! } ! ! LEGEND { ! font-size: 1.5em; ! font-weight: bold; ! } ! ! dl.setup { ! text-align: left; ! } ! dl.setup dd { ! margin-left: 0; ! } ! dl.setup dd label { ! clear: left; ! font-weight: bold; ! width: 12em; ! float: left; ! text-align: right; ! padding-right: 1em; ! } ! dl.setup dt { ! clear: left; ! font-size: 0.8em; ! margin-left: 10em; ! /* margin-right: 200px; */ ! margin-bottom: 2em; ! } ! .error, .warning { ! color: red; ! } ! ul.plain { ! list-style: none; ! clear: both; ! margin-left: 12em; ! } ! dl.setup input:not([type=checkbox]) { ! width: 25em; ! } ! bold { ! font-weight: bold; ! } ! big { ! font-size: large; ! } ! ! caption { ! text-align: center; ! font-size: medium; ! padding: .25em; ! font-weight: bold; ! } ! ! table.center caption { ! margin-left:auto; ! margin-right:auto; ! } ! ! hr { ! width: 80%; ! border: 1px; ! height: 1px; ! } ! ! #copyright { ! background=image: url(../images/back-light.gif); ! } ! ! #footer p { ! margin: 0; ! } ! ! .logo, .logo img, ! .valid, .valid img { ! border: 0; ! } |
From: Astronouth7303 <ast...@us...> - 2005-05-16 22:59:22
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14273/config Modified Files: first.php Log Message: Messages, include_once() Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** first.php 16 May 2005 22:01:35 -0000 1.58 --- first.php 16 May 2005 22:58:27 -0000 1.59 *************** *** 108,113 **** $hfile = fopen("./$ConfigFile",'w'); fwrite($hfile, $file); fclose($hfile); ! include("../config/globals.php"); ! include("$header"); echo("<h1>openFIRST Software Configured</h1> <p>If this page does not display errors elsewhere, then your openFIRST has now been successfully --- 108,113 ---- $hfile = fopen("./$ConfigFile",'w'); fwrite($hfile, $file); fclose($hfile); ! include_once("../config/globals.php"); ! include_once("$header"); echo("<h1>openFIRST Software Configured</h1> <p>If this page does not display errors elsewhere, then your openFIRST has now been successfully *************** *** 118,129 **** the password for that account has been changed, or the MySQL settings are incorrect.</p>"); showlogin(); ! die(include("$footer")); } else { echo '<p class="error"><span class="file">'.htmlentities($ConfigFile).'</span> is not writable</p> '; if(is_readable("config/headers.php")) { ! include("config/headers.php"); } else { ! include("../config/headers.php"); } echo("<h1 class=\"error\">System Configuration Error</h1> --- 118,129 ---- the password for that account has been changed, or the MySQL settings are incorrect.</p>"); showlogin(); ! die(include_once("$footer")); } else { echo '<p class="error"><span class="file">'.htmlentities($ConfigFile).'</span> is not writable</p> '; if(is_readable("config/headers.php")) { ! include_once("config/headers.php"); } else { ! include_once("../config/headers.php"); } echo("<h1 class=\"error\">System Configuration Error</h1> *************** *** 140,146 **** // Do form if(is_readable("config/headers.php")) { ! include("config/headers.php"); } else { ! include("../config/headers.php"); } --- 140,146 ---- // Do form if(is_readable("config/headers.php")) { ! include_once("config/headers.php"); } else { ! include_once("../config/headers.php"); } *************** *** 173,177 **** <div class="center"> <h1>Base Configuration</h1> ! <p class="center" style="max-width: 50em;">Congratulations on your choice of openFIRST software! Please proceed through this setup wizard to get your new openFIRST portal software set up and working quickly and painlessly. Also please make sure that before installing this script --- 173,177 ---- <div class="center"> <h1>Base Configuration</h1> ! <p class="center" style="max-width: 50em;">Congratulations for choosing openFIRST! Please proceed through this setup wizard to get your new openFIRST portal software set up and working quickly and painlessly. Also please make sure that before installing this script *************** *** 257,261 **** <dt>eg, <code class="url"><strong>http://openfirst.sourceforge.net</strong>/openfirst</code></dt> <dd> ! <label for="basepath">file system base path</label> <input type="text" name="basepath" value="<?php echo htmlentities($basepath); ?>" /> <span class="warning">Must not have a trailing slash.</span> --- 257,261 ---- <dt>eg, <code class="url"><strong>http://openfirst.sourceforge.net</strong>/openfirst</code></dt> <dd> ! <label for="basepath">URL base path</label> <input type="text" name="basepath" value="<?php echo htmlentities($basepath); ?>" /> <span class="warning">Must not have a trailing slash.</span> *************** *** 265,269 **** </dt> <dd> ! <label for="fbasepath">The file system path</label> <input type="text" name="fbasepath" value="<?php echo htmlentities($fbasepath); ?>" /> <span class="warning">Must not have a trailing slash.</span> --- 265,269 ---- </dt> <dd> ! <label for="fbasepath">File system path</label> <input type="text" name="fbasepath" value="<?php echo htmlentities($fbasepath); ?>" /> <span class="warning">Must not have a trailing slash.</span> *************** *** 323,329 **** } if(is_readable("config/footers.php")) { ! include("config/footers.php"); } else { ! include("../config/footers.php"); } ?> --- 323,329 ---- } if(is_readable("config/footers.php")) { ! include_once("config/footers.php"); } else { ! include_once("../config/footers.php"); } ?> |
From: Astronouth7303 <ast...@us...> - 2005-05-15 23:46:28
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1272/config Modified Files: style.css Log Message: formatting Index: style.css =================================================================== RCS file: /cvsroot/openfirst/base/config/style.css,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** style.css 15 May 2005 23:44:52 -0000 1.3 --- style.css 15 May 2005 23:46:19 -0000 1.4 *************** *** 97,104 **** text-align: center; } ! td { padding: 5px; } ! th { padding: 5px; } ! table.menu { border-left:0px;border-right:0px;border-bottom:0px; } ! td.menu {border-left:0px;border-right:0px;border-bottom:0px; } body { color: black; --- 97,116 ---- text-align: center; } ! td { ! padding: 5px; ! } ! th { ! padding: 5px; ! } ! table.menu { ! border-left:0px; ! border-right:0px; ! border-bottom:0px; ! } ! td.menu { ! border-left:0px; ! border-right:0px; ! border-bottom:0px; ! } body { color: black; *************** *** 137,141 **** } ! .small { font-size:small; } fieldset { margin: 1em 1.5em; --- 149,155 ---- } ! .small { ! font-size:small; ! } fieldset { margin: 1em 1.5em; |
From: Astronouth7303 <ast...@us...> - 2005-05-15 23:45:10
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1059/config Modified Files: style.css Log Message: PHP sections Index: style.css =================================================================== RCS file: /cvsroot/openfirst/base/config/style.css,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** style.css 15 May 2005 22:17:31 -0000 1.2 --- style.css 15 May 2005 23:44:52 -0000 1.3 *************** *** 110,118 **** padding: 2px; } ! td { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! td.navigation { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! th { background-color: #999999; color: #333333;background-image: url('<?php echo("$basepath/images/"); ?>back-light.gif'); } ! td.sub { background-color: #999999; color: #333333;background-image: url('<?php echo("$basepath/images/"); ?>back-lighter.gif'); } ! .menu.selected { color: red; text-decoration: underline; } .small { font-size:small; } --- 110,139 ---- padding: 2px; } ! td { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! td.navigation { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! th { ! background-color: #999999; ! color: #333333; ! background-image: url(../images/back-light.gif); ! } ! td.sub { ! background-color: #999999; ! color: #333333; ! background-image: url(../images/back-lighter.gif); ! } ! .menu.selected { ! color: red; ! text-decoration: underline; ! } .small { font-size:small; } |
From: Astronouth7303 <ast...@us...> - 2005-05-15 22:23:15
|
Update of /cvsroot/openfirst/www/htdocs/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17920/htdocs/config Modified Files: style.css Log Message: Update from /base/config Index: style.css =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/config/style.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** style.css 15 May 2005 20:27:35 -0000 1.1 --- style.css 15 May 2005 22:22:50 -0000 1.2 *************** *** 1,25 **** ! #adminmenu { color: #ffffff; } ! #adminmenu a:link { color: #ffffff; } ! #adminmenu a:visited { color: #ffffff; } ! #adminmenu a:active { color: #ffffff; } ! #adminmenu a:hover { color: #ffffff; } ! a:link { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: underline; } ! a:visited { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: underline; } ! a:active { color: #0000000; font-size: 12px; font-family: sans-serif; text-decoration: underline; } ! a:hover { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: underline; } ! #topmenu { text-align: left; } ! #topmenu a:link { color: #cecece; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! #topmenu a:visited { color: #bebebe; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! #topmenu a:active { color: #cecece; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! #topmenu a:hover { color: #bed8ff; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! table { border-left:solid #999999 1px;border-right:solid #999999 1px;border-bottom:solid #999999 1px; margin-left:auto; margin-right:auto; } td { padding: 5px; } th { padding: 5px; } table.menu { border-left:0px;border-right:0px;border-bottom:0px; } td.menu {border-left:0px;border-right:0px;border-bottom:0px; } ! body {color: black; font-weight: bolder; font-size: 12px; font-family: sans-serif; text-decoration:none; text-align: center; margin: 0px; } td { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; } td.navigation { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; } --- 1,113 ---- ! #adminmenu { ! color: white; ! } ! #adminmenu a:link { ! color: white; ! } ! #adminmenu a:visited { ! color: white; ! } ! #adminmenu a:active { ! color: white; ! } ! #adminmenu a:hover { ! color: white; ! } ! a:link { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: underline; ! } ! a:visited { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: underline; ! } ! a:active { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: underline; ! } ! a:hover { ! color: black; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: underline; ! } ! #topmenu { ! text-align: left; ! } ! #topmenu a:link { ! color: #cecece; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! #topmenu a:visited { ! color: #bebebe; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! #topmenu a:active { ! color: #cecece; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! #topmenu a:hover { ! color: #bed8ff; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration: none; ! } ! .nav1 { ! width:100%; ! border: none 0px; ! margin-left: -2px; ! margin-right: -2px; ! margin-bottom: 0; ! } ! .nav1 td, .nav1 th { ! margin: 0; ! padding: 6px; ! border: none 0px; ! } ! .nav1 tr { ! margin: 0px; ! padding: 2px; ! } ! .nav2 table { ! border-left:solid #999999 1px; ! border-right:solid #999999 1px; ! border-bottom:solid #999999 1px; ! margin-left:auto; ! margin-right:auto; ! } ! ! .center { ! margin-left:auto; ! margin-right:auto; ! text-align: center; ! } td { padding: 5px; } th { padding: 5px; } table.menu { border-left:0px;border-right:0px;border-bottom:0px; } td.menu {border-left:0px;border-right:0px;border-bottom:0px; } ! body { ! color: black; ! font-weight: bolder; ! font-size: 12px; ! font-family: sans-serif; ! text-decoration:none; ! margin: 0px; ! padding: 2px; ! } td { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; } td.navigation { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; } *************** *** 27,28 **** --- 115,160 ---- td.sub { background-color: #999999; color: #333333;background-image: url('<?php echo("$basepath/images/"); ?>back-lighter.gif'); } .menu.selected { color: red; text-decoration: underline; } + + .small { font-size:small; } + fieldset { + margin: 1em 1.5em; + } + LEGEND { font-size: 1.5em; font-weight: bold;} + + dl.setup dd { + margin-left: 0; + } + dl.setup dd label { + clear: left; + font-weight: bold; + width: 12em; + float: left; + text-align: right; + padding-right: 1em; + } + dl.setup dt { + clear: left; + font-size: 0.8em; + margin-left: 10em; + /* margin-right: 200px; */ + margin-bottom: 2em; + } + .error, .warning { + color: red; + } + ul.plain { + list-style: none; + clear: both; + margin-left: 12em; + } + dl.setup input:not([type=checkbox]) { + width: 25em; + } + .bold { + font-weight: bold; + } + .big { + font-size: large; + } + + |