From: <vb...@us...> - 2002-09-08 12:31:48
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv10217 Modified Files: changelog.php credits.php install.php roadmap.php side_menu.php Added Files: cvs_api.php Log Message: - Added cvs_api.php - Used cvs_api to load the credits, install, roadmap, and changelog pages from CVS directly. - Minor fix in side menu. --- NEW FILE: cvs_api.php --- <?php # phpWebNotes - a php based note addition system # Copyright (C) 2000 Victor Boctor - vb...@us... # 2002 Webnotes Team - web...@so... # This program is distributed under the terms and conditions of the GPL # See the files README and LICENSE for details # -------------------------------------------------------- # $Id: cvs_api.php,v 1.1 2002/09/08 12:31:44 vboctor Exp $ # -------------------------------------------------------- function cvs_get_file( $p_project, $p_module, $p_file , $p_rev='HEAD' ) { $t_url = "http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/$p_project/$p_module$p_file?rev=$p_rev&content-type=text/vnd.viewcvs-markup"; $fp = @fopen( $t_url, 'r'); if (!$fp) { return false; } $t_contents = fread( $fp, 1000000 ); fclose($fp); # Use <pre> and </pre> as separators, so replace </pre> with <pre> # to have one separator to send to explode() $t_contents = str_replace( '</pre>', '<pre>', $t_contents ); # Divide the file into segments separated by <pre> $t_contents = explode('<pre>', $t_contents); # Get the 4th segment. The file is structure as header(0), the commit # comments inside pre (1), and then some separators (2), then the file (3) $t_contents = $t_contents[3]; return $t_contents; } function cvs_echo_file( $p_project, $p_module, $p_file, $p_rev='HEAD' ) { $t_contents = cvs_get_file( $p_project, $p_module, $p_file, $p_rev ); if ( false === $t_contents ) { return false; } echo '<pre>' . $t_contents . '</pre>'; return true; } function cvs_echo_source( $p_project, $p_module, $p_file, $p_rev='HEAD' ) { $t_contents = cvs_get_file( $p_project, $p_module, $p_file, $p_rev ); if ( false === $t_contents ) { return false; } $t_contents = highlight_file( $t_contents, true ); echo $t_contents; return true; } ?> Index: changelog.php =================================================================== RCS file: /cvsroot/webnotes/web/changelog.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- changelog.php 8 Sep 2002 01:06:41 -0000 1.1 +++ changelog.php 8 Sep 2002 12:31:44 -0000 1.2 @@ -1,10 +1,12 @@ -<?php include('header.php') ?> +<?php + include('header.php'); + require_once('cvs_api.php'); +?> <span class="page_title">Change Log</span> <hr size="1" noshade="noshade" width="100%"> -<pre> -<?php include($g_webnotes_path . 'doc/ChangeLog') ?> -</pre> - -<?php include('footer.php') ?> +<?php + cvs_echo_file( 'webnotes', 'webnotes', '/doc/ChangeLog' ); + include('footer.php'); +?> Index: credits.php =================================================================== RCS file: /cvsroot/webnotes/web/credits.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- credits.php 8 Sep 2002 06:12:53 -0000 1.4 +++ credits.php 8 Sep 2002 12:31:44 -0000 1.5 @@ -1,20 +1,12 @@ -<?php include('header.php') ?> +<?php + include('header.php'); + require_once('cvs_api.php'); +?> + <span class="page_title">Credits</span> <hr size="1" noshade="noshade" width="100%"> -Administrators: -<ul> - <li><a href="mailto:ke...@30...">Kenzaburo Ito</a> - Admin / Developer - <li><a href="mailto:vb...@us...">Victor Boctor</a> - Admin / Developer -</ul> -<br /> -Developers: -<ul> - <li><a href="mailto:rm...@us...">Remon Metira</a> - Developer -</ul> -<br /> -Translations: -<ul> - <li>Luca Pscatore</li> - <li>Dat-Son Nguyen</li> -</ul> -<?php include('footer.php') ?> \ No newline at end of file + +<?php + cvs_echo_file( 'webnotes', 'webnotes', '/doc/CREDITS' ); + include('footer.php'); +?> Index: install.php =================================================================== RCS file: /cvsroot/webnotes/web/install.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- install.php 8 Sep 2002 06:12:53 -0000 1.2 +++ install.php 8 Sep 2002 12:31:44 -0000 1.3 @@ -1,10 +1,12 @@ -<?php include('header.php') ?> +<?php + include('header.php'); + require_once('cvs_api.php'); +?> <span class="page_title">Install</span> <hr size="1" noshade="noshade" width="100%"> -<pre> -<?php include($g_webnotes_path . 'doc/Install') ?> -</pre> - -<?php include('footer.php') ?> +<?php + cvs_echo_file( 'webnotes', 'webnotes', '/doc/INSTALL' ); + include('footer.php'); +?> Index: roadmap.php =================================================================== RCS file: /cvsroot/webnotes/web/roadmap.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- roadmap.php 8 Sep 2002 06:12:53 -0000 1.3 +++ roadmap.php 8 Sep 2002 12:31:44 -0000 1.4 @@ -1,20 +1,14 @@ -<?php include('header.php') ?> +<?php + include('header.php'); + require_once('cvs_api.php'); +?> <span class="page_title">Roadmap</span> <hr size="1" noshade="noshade" width="100%"> -<pre> -<?php include($g_webnotes_path . 'doc/ROADMAP') ?> -</pre> - <p>This is the phpWebNotes feature roadmap. It lists most of the currently planned features and details the schedule for release. These are not hard deadlines and things are subject to change. Please feel free to suggest features, contribute, or comment.</p> -<ul> -<li>Email notification to admins</li> -<li>Allow certain HTML tags</li> -<li>Multiple authentication modes</li> -<li>User authentication</li> -<li>Templates</li> -</ul> - -<?php include('footer.php') ?> +<?php + cvs_echo_file( 'webnotes', 'webnotes', '/doc/ROADMAP' ); + include('footer.php'); +?> Index: side_menu.php =================================================================== RCS file: /cvsroot/webnotes/web/side_menu.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- side_menu.php 8 Sep 2002 01:06:41 -0000 1.5 +++ side_menu.php 8 Sep 2002 12:31:44 -0000 1.6 @@ -13,17 +13,13 @@ <a class="big" href="download.php">Download</a><br /> <a class="big" href="screenshots.php">Screenshots</a><br /> <a class="big" href="me.php">Author</a><br /> - </td> - </tr> - <tr> - <td class="menu_items"> <a class="big" href="credits.php">Credits</a><br /> - <a href="requirements.php">Requirements</a><br /> + <a class="big" href="requirements.php">Requirements</a><br /> <a class="big" href="release.php">Release Notes</a><br /> - <a href="install.php">Installation</a><br /> - <a href="upgrading.php">Upgrading</a><br /> - <a href="changelog.php">ChangeLog</a><br /> - <a href="links.php">Links</a><br /> + <a class="big" href="install.php">Installation</a><br /> + <a class="big" href="upgrading.php">Upgrading</a><br /> + <a class="big" href="changelog.php">ChangeLog</a><br /> + <a class="big" href="links.php">Links</a><br /> </td> </tr> <tr> |