[Openfirst-cvscommit] www/htdocs files.php,NONE,1.1 downloads.php,1.4,1.5 release.php,1.3,NONE
Brought to you by:
xtimg
From: Tim G. <xt...@us...> - 2005-05-25 18:46:41
|
Update of /cvsroot/openfirst/www/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10734/htdocs Modified Files: downloads.php Added Files: files.php Removed Files: release.php 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: downloads.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/downloads.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** downloads.php 25 May 2005 15:28:37 -0000 1.4 --- downloads.php 25 May 2005 18:46:28 -0000 1.5 *************** *** 6,12 **** <p>If you encounter a problem while using the openFIRST system, please <a href='mailto: ti...@op...'>report the bug via e-mail</a> or <a href='http://bugzilla.openfirst.org/'>via Bugzilla</a>. We greatly appreciate all bug reports, and will work with you to resolve all issues you encounter while using the openFIRST system, including feature requests and information about customising/extending the system with your own custom coding.</p> ! <br> ! The following components have been created (you may <a ! href="/demo/">try them out with our LiveDemo</a>): <p><b>Note on version numbers</b>: The --- 6,51 ---- <p>If you encounter a problem while using the openFIRST system, please <a href='mailto: ti...@op...'>report the bug via e-mail</a> or <a href='http://bugzilla.openfirst.org/'>via Bugzilla</a>. We greatly appreciate all bug reports, and will work with you to resolve all issues you encounter while using the openFIRST system, including feature requests and information about customising/extending the system with your own custom coding.</p> ! <p>The modules are inter-operable with multiple versions of each other, as long as the major and minor release version is identical (<a href="#curious">how do I tell?</a>). In general, it is a good idea to use only the most current base version.</p> ! <hr> ! ! <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/). Not doing this can result in problems. ! </p> ! ! <p>Feel free to take the modules for a test drive on <a href="http://demo.openfirst.org/">the openFIRST Demo Server</a>. ! ! <?php ! mysql_selectdb("openfirst"); ! ! $q = mysql_query("SELECT * FROM files ORDER BY id LIMIT 5;"); ! ! if(! $q) { ! echo("File list is not available at the moment. Please try again later."); ! } else { ! echo "<table>"; ! ! while($n = mysql_fetch_object($q)) { ! echo "<tr>"; ! echo "<th>$n->title</th>"; ! echo "</tr>"; ! echo "<tr>"; ! echo "<td valign='top'>" . str_replace("<", "<", str_replace(">", ">", str_replace(""", "\"", $n->description))) . "<p><small>If you're not sure what package of a particular version to get, see <a href='http://www.openfirst.org/which-file-type.php'>Which File Type Do I Choose?</a></small></td>"; ! echo "</tr>"; ! ! } ! ! echo "</table>"; ! } ! ! ?> ! ! <a name="curious"> ! <p>The notes below this point are only for those who are curious.</p> ! ! <p>For Linux, there is a <a href="/installer/installer.sh">download ! shell script available</a>.</p> ! <p><b>Note on version numbers</b>: The *************** *** 18,40 **** third is the minor release.</p> - <hr> - - We encourage you to use the releases as much as possible. You <i>can</i> obtain openFIRST modules source from nightly builds or anonymous CVS. The code in CVS, or - in nighly builds is - never guaranteed to work correctly, and if something is <b>obviously</b> broken you should not complain about it, this only slows the - development process. However, if you feel a need to be more cutting-edge than necessary, or if you desire to contribute code to the openFIRST project, you should - access the CVS server, or use a <a href="/nightly/">nightly build</a>. - - <br><br>For Linux, there is a <a href="/installer/installer.sh">download - shell script available</a>. - - <hr> - - <p>It is important to note that although all of our original code is licensed under the GPL, components of some modules may not be licensed under these terms. Currently, the news module RSS scripts are under a proprietary license, see the headers of the RSS Class for more information.</p> - - <hr> - <p>The modules are inter-operable with multiple versions of each other, as long as the major release version is identical. In general, it is a good idea to - use only the most current base version.</p> - <p>Note: For those upgrading from a system released before December, 2003, it is recommended that upgrade all other modules before upgrading the --- 57,60 ---- *************** *** 44,47 **** --- 64,75 ---- <hr> + <p>It is important to note that although all of our original code is licensed under the GPL, components of some modules may not be licensed under these terms. Currently, the news module RSS scripts are under a proprietary license, see the headers of the RSS Class for more information. It is relatively straight forward to remove the RSS Class from the news module should you not agree with its license.</p> + + <hr> + We encourage you to use the releases as much as possible. You <i>can</i> obtain openFIRST modules source from nightly builds or anonymous CVS. The code in CVS, or in nighly builds is + never guaranteed to work correctly, and if something is <b>obviously</b> broken you should not complain about it, this only slows the + development process. However, if you feel a need to be more cutting-edge than necessary, or if you desire to contribute code to the openFIRST project, you should + access the CVS server, or use a <a href="/nightly/">nightly build</a>. + <p>Modules are currently tested with the following web servers: <br> </p> *************** *** 61,72 **** 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> --- 89,92 ---- *************** *** 75,107 **** 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> ! <?php ! ! foreach ($current_version as $module => $version) { ! echo("<tr> ! <td>" . ucfirst($module) . "</td> ! <td> ! <a href='http://prdownloads.sourceforge.net/openfirst/openfirst-$module-$version.tar.gz?download'>openfirst-$module-$version.tar.gz</a><br> ! <a href='http://prdownloads.sourceforge.net/openfirst/openfirst-$module-$version.tar.bz?download'>openfirst-$module-$version.tar.bz</a><br> ! <a href='http://prdownloads.sourceforge.net/openfirst/openfirst-$module-$version.zip?download'>openfirst-$module-$version.zip</a> ! </td> ! <td> ! <center><img src='$status[$module]' alt='$status[$module]'></center> ! </td> ! </tr>"); ! ! } ! ! ! ?> ! </table> ! ! <p align="center"><img alt="" src="http://www.openfirst.org/image/messagebox_warning.png"> ! = module partially supported <img alt="" src="http://www.openfirst.org/image/button_ok.png"> ! = module is fully supported<br> ! <img alt="" src="http://www.openfirst.org/image/button_cancel.png"> = module is no longer supported</p> ! <p> </p> ! --- 95,97 ---- 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> \ No newline at end of file --- release.php DELETED --- --- NEW FILE: files.php --- <?php /* * This file will get the files from SF.net and update the database. * */ include_once("../inc/headers.php"); mysql_selectdb("openfirst"); $inf = fopen("fil.rss", "r"); mysql_query("DELETE FROM files 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 File Releases: 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 files (title, description, author, link, pubDate, comments) VALUES (\"$title\", \"$description\", \"$author\", \"$link\", \"$pubDate\", \"$comments\");") || die(mysql_error()); echo "Added new files item to database.\n"; $title = ""; $descripton = ""; $author = ""; $link = ""; $pubDate = ""; $comments = ""; } } ?> |