You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(240) |
Oct
(66) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(9) |
Sep
(7) |
Oct
|
Nov
|
Dec
|
From: <vb...@us...> - 2002-09-08 22:28:21
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv23501 Modified Files: side_menu.php Added Files: links.php Log Message: Added links page. --- NEW FILE: links.php --- <?php include('header.php') ?> <span class="page_title">Users' Links</span> <hr size="1" noshade="noshade" width="100%"> <ul> <li><a href="http://www.php.net">http://www.php.net</a> - PHP website</li> <li><a href="http://www.mysql.com">http://www.mysql.com</a> - MySQL Server</li> <li><a href="http://phpMyAdmin.sf.net">http://phpMyAdmin.sf.net</a> - Administration tool for MySQL.</li> <li><a href="http://www.apache.org">http://www.apache.org</a> - Apache Webserver</li> </ul> <span class="page_title">Developers' Links</span> <hr size="1" noshade="noshade" width="100%"> <ul> <li><a href="http://www.cvsgui.org">http://www.cvsgui.org</a> - WinCVS website for Windows users.</li> <li><a href="http://filezilla.sf.net">http://filezilla.sf.net</a> - FileZilla for accessing SourceForge webservers (SFTP).</li> <li><a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">http://www.chiark.greenend.org.uk/~sgtatham/putty</a> - PuTTY</li> </ul> <?php include('footer.php') ?> Index: side_menu.php =================================================================== RCS file: /cvsroot/webnotes/web/side_menu.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- side_menu.php 8 Sep 2002 22:06:43 -0000 1.7 +++ side_menu.php 8 Sep 2002 22:28:18 -0000 1.8 @@ -19,7 +19,7 @@ <a class="big" href="install.php">Installation</a><br /> Upgrading<br /> <a class="big" href="changelog.php">ChangeLog</a><br /> - Links<br /> + <a class="big" href="links.php">Links</a><br /> </td> </tr> <tr> |
From: <vb...@us...> - 2002-09-08 22:06:46
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv19246 Modified Files: database.php side_menu.php Log Message: - Added the database schema page. (links to sql/db_generate.sql) - Change the side_menu to disable the links to the pages which are not yet implemented. Index: database.php =================================================================== RCS file: /cvsroot/webnotes/web/database.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- database.php 8 Sep 2002 06:12:53 -0000 1.3 +++ database.php 8 Sep 2002 22:06:43 -0000 1.4 @@ -1,9 +1,17 @@ <?php include('header.php') ?> +<?php + include('header.php'); + require_once('cvs_api.php'); +?> + <span class="page_title">Database Schema</span> <hr size="1" noshade="noshade" width="100%"> -<p>The database schema will be posted soon.</p> +<?php + cvs_echo_file( 'webnotes', 'webnotes', '/sql/db_generate.sql' ); + include('footer.php'); +?> <!-- This is a basic view of the database schema used in phpWebNotes. In my defense it was my first try at a decently sized project and the project has grown out of its original design. It should and will be re-normalized 'soon'. The schemas are a bit rough right now. I should add indicators for index, primary keys, 'foreign keys' (mysql doesn't support these, you have to fake them), unique fields, and relationships (1 to 1, 1 to many, etc). Index: side_menu.php =================================================================== RCS file: /cvsroot/webnotes/web/side_menu.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- side_menu.php 8 Sep 2002 12:31:44 -0000 1.6 +++ side_menu.php 8 Sep 2002 22:06:43 -0000 1.7 @@ -9,17 +9,17 @@ <a class="big" href="index.php">Home</a><br /> <a class="big" href="demo.php">Demo</a><br /> <a class="big" href="tour.php">Admin Tour</a><br /> - <a class="big" href="about.php">About</a><br /> + About<br /> <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 /> + Screenshots<br /> + Author<br /> <a class="big" href="credits.php">Credits</a><br /> - <a class="big" href="requirements.php">Requirements</a><br /> + Requirements<br /> <a class="big" href="release.php">Release Notes</a><br /> <a class="big" href="install.php">Installation</a><br /> - <a class="big" href="upgrading.php">Upgrading</a><br /> + Upgrading<br /> <a class="big" href="changelog.php">ChangeLog</a><br /> - <a class="big" href="links.php">Links</a><br /> + Links<br /> </td> </tr> <tr> @@ -29,7 +29,7 @@ </tr> <tr> <td class="menu_items"> - <a href="irc.php">IRC</a><br /> + IRC<br /> <a href="forums.php">Forums</a><br /> <a href="mailinglists.php">Mailing Lists</a><br /> </td> @@ -41,10 +41,7 @@ </tr> <tr> <td class="menu_items"> - <a href="general_development.php">General Information</a><br /> <a href="guidelines.php">Coding Guidelines</a><br /> - <a href="devnotes.php">Dev Notes</a><br /> - <a href="api.php">API</a><br /> <a href="cvs.php">CVS</a><br /> <a href="roadmap.php">Roadmap</a><br /> <a href="database.php">Database</a><br /> |
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> |
From: <vb...@us...> - 2002-09-08 06:12:57
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv5027 Modified Files: bugtracker.php credits.php cvs.php database.php demo.php download.php forums.php guidelines.php index.php install.php localization.php mailinglists.php release.php roadmap.php security.php tour.php Log Message: - Replace all h3 headers with page_title style. - Linked in Roadmap from webnotes doc. Index: bugtracker.php =================================================================== RCS file: /cvsroot/webnotes/web/bugtracker.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- bugtracker.php 7 Sep 2002 14:41:08 -0000 1.2 +++ bugtracker.php 8 Sep 2002 06:12:53 -0000 1.3 @@ -1,5 +1,6 @@ <?php include('header.php') ?> -<h3>Bugtracker</h3> +<span class="page_title">Bugtracker</span> +<hr size="1" noshade="noshade" width="100%"> phpWebNotes uses Mantis Bugtracker to track bugs and feature requests. Login to http://webnotes.sf.net/mantis to report bugs and feature requests. <?php include('footer.php') ?> Index: credits.php =================================================================== RCS file: /cvsroot/webnotes/web/credits.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- credits.php 7 Sep 2002 14:41:08 -0000 1.3 +++ credits.php 8 Sep 2002 06:12:53 -0000 1.4 @@ -1,6 +1,6 @@ <?php include('header.php') ?> -<h3>Credits</h3> -<br /> +<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 Index: cvs.php =================================================================== RCS file: /cvsroot/webnotes/web/cvs.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- cvs.php 7 Sep 2002 23:52:30 -0000 1.2 +++ cvs.php 8 Sep 2002 06:12:53 -0000 1.3 @@ -1,6 +1,7 @@ <?php include('header.php') ?> -<h3>CVS</font></h3> +<span class="page_title">CVS</span> +<hr size="1" noshade="noshade" width="100%"> <p>phpWebNotes uses <a href="http://www.cyclic.com/">CVS</a> to store and control its source code. Anonymous cvs access allows anyone to download the most current snapshot of the code. Be warned: the latest build may not always function correctly.</p> <p>Follow the link and follow the commands there. The module name you want to use is <em>webnotes</em>.</p> <p align="center"><a href="http://sourceforge.net/cvs/?group_id=15381"><strong>phpWebNotes CVS</strong></a></p> Index: database.php =================================================================== RCS file: /cvsroot/webnotes/web/database.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- database.php 7 Sep 2002 23:52:30 -0000 1.2 +++ database.php 8 Sep 2002 06:12:53 -0000 1.3 @@ -1,6 +1,7 @@ <?php include('header.php') ?> -<h3>Database Schema</h3> +<span class="page_title">Database Schema</span> +<hr size="1" noshade="noshade" width="100%"> <p>The database schema will be posted soon.</p> Index: demo.php =================================================================== RCS file: /cvsroot/webnotes/web/demo.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- demo.php 7 Sep 2002 23:52:30 -0000 1.2 +++ demo.php 8 Sep 2002 06:12:53 -0000 1.3 @@ -1,6 +1,7 @@ <?php include('header.php') ?> -<h3><font size=+1>Demo phpWebNotes</h3> +<span class="page_title">Demo</span> +<hr size="1" noshade="noshade" width="100%"> <p>Go to the demo to see how it is used. For the demo I've disabled the queueing mechanism. This will allow for instantaneous feedback. To see an example of what you could do with this, checkout <a href="http://www.php.net/manual/en/">php.net</a> (Note: php.net does not use phpWebNotes, they have their own system).</p> <p align="center"><a href="http://webnotes.sourceforge.net/webnotes/demo/"><strong>Demo phpWebNotes</strong></a></p> <p>If you have questions or feeback please discuss it in the <strong><a href="forums.php">Forums</a></strong>.</p> Index: download.php =================================================================== RCS file: /cvsroot/webnotes/web/download.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- download.php 7 Sep 2002 23:52:30 -0000 1.2 +++ download.php 8 Sep 2002 06:12:53 -0000 1.3 @@ -1,12 +1,15 @@ <?php include('header.php') ?> -<h3>Download</h3> +<span class="page_title">Download</span> +<hr size="1" noshade="noshade" width="100%"> + <p>Use the link to get to the download site for phpWebNotes. The package is kept in .tar.gz which any reasonable (unix systems, WInzip, Stuffit) decompression program can handle.</p> <p align="center"><a href="http://sourceforge.net/project/showfiles.php?group_id=15381"><strong>Download phpWebNotes</strong></a></p> <p>Please check out the <a href="release.php">Release Notes</a> for important notices and information.</p> -<h3>Mirroring</h3> +<span class="page_title">Mirroring</span> +<hr size="1" noshade="noshade" width="100%"> <p>I would prefer that you sign up on the announcements <a href="mailinglists.php">mailing list</a> if you wish to mirror the software. You should also have a link back to this page if you offer phpWebNotes for download.</p> <?php include('footer.php') ?> Index: forums.php =================================================================== RCS file: /cvsroot/webnotes/web/forums.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- forums.php 7 Sep 2002 23:52:30 -0000 1.2 +++ forums.php 8 Sep 2002 06:12:53 -0000 1.3 @@ -1,5 +1,7 @@ <?php include('header.php') ?> -<h3>Forums</h3> +<span class="page_title">Forums</span> +<hr size="1" noshade="noshade" width="100%"> + <p>The following forums are hosted at Sourceforge. You can post anonymously.</p> <ul> <li>Open Discussion Index: guidelines.php =================================================================== RCS file: /cvsroot/webnotes/web/guidelines.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- guidelines.php 7 Sep 2002 23:52:30 -0000 1.2 +++ guidelines.php 8 Sep 2002 06:12:53 -0000 1.3 @@ -1,6 +1,7 @@ <?php include('header.php') ?> -<h3>phpWebNotes Coding Conventions</h3> +<span class="page_title">Coding Conventions</span> +<hr size="1" noshade="noshade" width="100%"> <p>This is the phpWebNotes coding conventions document. It lists all the basic conventions that I have followed in order to make the code easy to read and maintain. ANyone working on the code, adding features, or wanting to send in a patch should take a quick look through this document. Currently the code is very flat and procedure based. A future version may switch to objects at which point some of these conventions may change or be added to.</p> Index: index.php =================================================================== RCS file: /cvsroot/webnotes/web/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- index.php 7 Sep 2002 23:52:30 -0000 1.2 +++ index.php 8 Sep 2002 06:12:53 -0000 1.3 @@ -1,14 +1,19 @@ <?php include('header.php') ?> -<h3>What is it?</h3> + +<span class="page_title">What is it?</span> +<hr size="1" noshade="noshade" width="100%"> + <p>phpWebNotes is a php based solution to letting users add their own comments to a document.</p> <p>This project was originally conceived to help people who maintain technical help docs and how-tos. It's more direct than searching through a forum and less involving for the users than signing up for a mailing list. Of course, it adapts to other uses extremely easily.</p> <p>Updating documents is tedious and documents all to example lack the real world examples and experience to make them truly useful. The best help sites I've ever found had not only detailed documentation but lots and lots of examples and problems and quirks that appear in real life. Unfortunately this rules out almost all man pages (unix help docs). Allowing user comments lets the doc maintainer do less work. Whenever the maintainer needs to update the doc they can just roll in a lot of the user feedback instead of recreating the info. This sort of automation cuts down on email and mailing list traffic as well.</p> <p>The release numbering convention I'm using is major.minor.micro. Major indicates a large change in the core package, minor a significant amount of feature addition/modification, micro for mostly bug fixes. I am leaning towards releasing a new version for a significant bugfix as often as daily.</p> -<h3>Goals</h3> +<span class="page_title">Goals</span> +<hr size="1" noshade="noshade" width="100%"> <p>A simple way to add user note/footnote capability to any document. I'd like to see this used in particular for HOW-TO, help files, and online documentation (see <a href="http://www.php.net/">php.net</a> for an excellent example).</p> -<h3>Requirements</h3> +<span class="page_title">Requirements</span> +<hr size="1" noshade="noshade" width="100%"> <ul> <li><a href="http://www.php.net/">php</a> 4.0.6 and higher</li> <li><a href="http://www.mysql.com/">MySQL database</a> (more support is planned)</li> @@ -18,7 +23,8 @@ <p>It also helps a great deal to at least be able to tinker with php scripts (when there's a little bug or you want to tweak something). Of course, knowing HTML is essential to do any custom formatting. Along the lines of appearance, I have tried to use my best judgement in colors, layout, and feel. Eventually I hope to be able to customize the look and feel from a single CSS file.</p> <p>I highly recommend using <a href="http://www.phpwizard.net">phpMyAdmin</a> to administer your mysql database.</p> -<h3>Features and Benefits</h3> +<span class="page_title">Features and Benefits</span> +<hr size="1" noshade="noshade" width="100%"> <ul> <li>Web based and platform independent</li> <li>Supports PHP3 and PHP4</li> @@ -27,14 +33,17 @@ <li>Takes two lines of php to add notes to a file</li> </ul> -<h3>Upcoming Features</h3> +<span class="page_title">Upcoming Features</span> +<hr size="1" noshade="noshade" width="100%"> <p>Check the <a href="roadmap.php">Roadmap</a> for a more detailed and up to date list of items.</p> -<h3>Versioning</h3> -<p>The release numbering convention I'm using is major.minor.micro. Major indicates a very large change in the core package, minor a significant amount of feature addition/modification, micro for mostly bug fixes. I will release a new version for a significant bugfix as often as daily.</h3> -<p>Version 1.0.0 will be used when I consider phpWebNotes to be production quality. This basically means that I would not hesitate to recommend it for most uses.</h3> +<span class="page_title">Versioning</span> +<hr size="1" noshade="noshade" width="100%"> +<p>The release numbering convention I'm using is major.minor.micro. Major indicates a very large change in the core package, minor a significant amount of feature addition/modification, micro for mostly bug fixes. I will release a new version for a significant bugfix as often as daily.</p> +<p>Version 1.0.0 will be used when I consider phpWebNotes to be production quality. This basically means that I would not hesitate to recommend it for most uses.</p> -<h3>How to Help</h3> +<span class="page_title">How to help?</span> +<hr size="1" noshade="noshade" width="100%"> <ul> <li>Report any bugs at the <a href="bugtracker.php">Bugtracker</a></li> <li>Suggest (reasonable) features</li> Index: install.php =================================================================== RCS file: /cvsroot/webnotes/web/install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- install.php 8 Sep 2002 01:06:41 -0000 1.1 +++ install.php 8 Sep 2002 06:12:53 -0000 1.2 @@ -1,6 +1,6 @@ <?php include('header.php') ?> -<span class="page_title">INSTALL</span> +<span class="page_title">Install</span> <hr size="1" noshade="noshade" width="100%"> <pre> Index: localization.php =================================================================== RCS file: /cvsroot/webnotes/web/localization.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- localization.php 7 Sep 2002 14:41:08 -0000 1.2 +++ localization.php 8 Sep 2002 06:12:53 -0000 1.3 @@ -25,7 +25,8 @@ PRINT "</tr>"; } ?> -<h3>Localization</h3> +<span class="page_title">Localization</span> +<hr size="1" noshade="noshade" width="100%"> <p>Here you can see the latest localization files. Currently we only have English.</p> <p>What to do if you see some errors? Just <a href="mailto:ke...@30...">send me an email</a> with the corrected strings.</p> @@ -54,7 +55,8 @@ </div> -<h3>Translating</h3> +<span class="page_title">Translating</span> +<hr size="1" noshade="noshade" width="100%"> <p>Don't see your language? Translate one of the files! It's really quite simple. Just take the strings file and convert away. Then <a href="mailto:ke...@30...">submit it</a> back to me. Also, you can update them when new strings make it in. The file won't change drastically so it shouldn't be too much work to keep the files updated.</p> <p>Currently some strings are hard-coded into the database tables or the code. This will be fixed soon.</p> <?php include('footer.php') ?> Index: mailinglists.php =================================================================== RCS file: /cvsroot/webnotes/web/mailinglists.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- mailinglists.php 7 Sep 2002 23:52:30 -0000 1.3 +++ mailinglists.php 8 Sep 2002 06:12:53 -0000 1.4 @@ -1,5 +1,7 @@ <?php include('header.php') ?> -<h3>Mailing Lists</h3> +<span class="page_title">Mailing Lists</span> +<hr size="1" noshade="noshade" width="100%"> + <p>There is a mailing list for announcements. Announcements will be posted to it after each release. Please use the <a href="forums.php">Discussion Forums</a> if you need help.</p> <p align="center"><strong><a href="http://sourceforge.net/mail/?group_id=15381">SourceForge Mailing List</a></strong></p> <?php include('footer.php') ?> Index: release.php =================================================================== RCS file: /cvsroot/webnotes/web/release.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- release.php 8 Sep 2002 00:07:40 -0000 1.3 +++ release.php 8 Sep 2002 06:12:53 -0000 1.4 @@ -63,7 +63,9 @@ } ?> <?php include('header.php') ?> -<h3>Release Notes</h3> + +<span class="page_title">Release Notes</span> +<hr size="1" noshade="noshade" width="100%"> <p>This is a preliminary draft of the release notes.</p> Index: roadmap.php =================================================================== RCS file: /cvsroot/webnotes/web/roadmap.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- roadmap.php 7 Sep 2002 23:52:30 -0000 1.2 +++ roadmap.php 8 Sep 2002 06:12:53 -0000 1.3 @@ -1,10 +1,14 @@ <?php include('header.php') ?> -<h3>Feature and Version Timetable</h3> +<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> -<h3>Future plans</h3> <ul> <li>Email notification to admins</li> <li>Allow certain HTML tags</li> Index: security.php =================================================================== RCS file: /cvsroot/webnotes/web/security.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- security.php 7 Sep 2002 23:52:30 -0000 1.2 +++ security.php 8 Sep 2002 06:12:53 -0000 1.3 @@ -1,6 +1,7 @@ <?php include('header.php') ?> -<h3>Security</h3> +<span class="page_title">Security</span> +<hr size="1" noshade="noshade" width="100%"> <p><strong>Passwords</strong> - Information</p> <p>Currently the passwords are run through the crypt() function before being stored. crypt() is a one way function; this means that you cannot obtain the original password from the crypt()ed password. This ensures that the user passwords are not readable should the database be cracked into (Note: this doesn't mean they are uncrackable, enough time and processing power and brute force will reveal most passwords). However, your username and password are most likely being transmitted in clear text. You will have to use a ssl (https) connection to protect transmission.</p> Index: tour.php =================================================================== RCS file: /cvsroot/webnotes/web/tour.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- tour.php 7 Sep 2002 14:41:08 -0000 1.3 +++ tour.php 8 Sep 2002 06:12:53 -0000 1.4 @@ -1,4 +1,8 @@ <?php include('header.php') ?> + +<span class="page_title">Administration Tour</span> +<hr size="1" noshade="noshade" width="100%"> + The Admin Tour will be up soon. <!-- <p> |
From: <vb...@us...> - 2002-09-08 01:06:44
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv11931 Modified Files: header.php side_menu.php Added Files: .cvsignore changelog.php install.php Log Message: - Linked the webnotes web to webnotes to re-use the contents of the doc files. - Added the install and changelog pages. - Added cvs ignore to ignore webnotesweb_config_inc.php which is used to define the path for webnotes. --- NEW FILE: .cvsignore --- webnotesweb_config_inc.php --- NEW FILE: changelog.php --- <?php include('header.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') ?> --- NEW FILE: install.php --- <?php include('header.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') ?> Index: header.php =================================================================== RCS file: /cvsroot/webnotes/web/header.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- header.php 7 Sep 2002 23:52:30 -0000 1.2 +++ header.php 8 Sep 2002 01:06:41 -0000 1.3 @@ -1,4 +1,13 @@ -<? #countpage( $REQUEST_URI, $REQUEST_URI ); ?> +<?php + #countpage( $REQUEST_URI, $REQUEST_URI ); + + $g_webnotes_path = "webnotes/"; + $g_webnotes_url = "webnotes/"; + + if ( file_exists( dirname(__FILE__) . "/webnotesweb_config_inc.php" ) ) { + require_once ( dirname(__FILE__) . "/webnotesweb_config_inc.php"); + } +?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> Index: side_menu.php =================================================================== RCS file: /cvsroot/webnotes/web/side_menu.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- side_menu.php 7 Sep 2002 23:52:30 -0000 1.4 +++ side_menu.php 8 Sep 2002 01:06:41 -0000 1.5 @@ -20,7 +20,7 @@ <a class="big" href="credits.php">Credits</a><br /> <a href="requirements.php">Requirements</a><br /> <a class="big" href="release.php">Release Notes</a><br /> - <a href="installation.php">Installation</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 /> |
From: <vb...@us...> - 2002-09-08 00:07:42
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv1723 Modified Files: release.php Log Message: Fixed 0000029: Undefined variable: DOCUMENT_ROOT in release notes page Index: release.php =================================================================== RCS file: /cvsroot/webnotes/web/release.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- release.php 7 Sep 2002 14:41:08 -0000 1.2 +++ release.php 8 Sep 2002 00:07:40 -0000 1.3 @@ -69,7 +69,7 @@ <!-- BEGIN 1.0.0 --------------------------------------------- --> <? print_release("1.0.0","March 16, 2001", - "This is the 1.0.0 release. It is fully functional and should work with just a little tweaking of the config settings. One potential problem comes from the various ways $DOCUMENT_ROOT is set. <a href=\"mailto:ke...@30...\">Let me know</a> if there are any problems. 0.9.0 is obsoleted; there is no upgrade path." + "This is the 1.0.0 release. It is fully functional and should work with just a little tweaking of the config settings. One potential problem comes from the various ways \$DOCUMENT_ROOT is set. <a href=\"mailto:ke...@30...\">Let me know</a> if there are any problems. 0.9.0 is obsoleted; there is no upgrade path." ); ?> <!-- GLOBALS ------------------- --> |
From: <vb...@us...> - 2002-09-07 23:52:33
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv31231 Modified Files: cvs.php database.php demo.php download.php forums.php guidelines.php header.php index.php mailinglists.php roadmap.php security.php side_menu.php Log Message: - Modified all pages to use a header and a footer. - Got rid of the old side menu and replaced it with the new one. - Some html improvements. Index: cvs.php =================================================================== RCS file: /cvsroot/webnotes/web/cvs.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- cvs.php 7 Sep 2002 11:40:07 -0000 1.1.1.1 +++ cvs.php 7 Sep 2002 23:52:30 -0000 1.2 @@ -1,45 +1,8 @@ -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body bgcolor=#ffffff> - -<p> -<div align=center> -<h2>phpWebNotes</h2> -</div> - -<p> -<div align=center> - -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -<td> -<b><font size=+1>CVS</font></b> -<p> -phpWebNotes uses <a href="http://www.cyclic.com/">CVS</a> to store and control its source code. Anonymous cvs access allows anyone to download the most current snapshot of the code. Be warned: the latest build may not always function correctly. -<p> -Follow the link and follow the commands there. The module name you want to use is <i>webnotes</i>. -<p> -<div align=center> -<b><a href="http://sourceforge.net/cvs/?group_id=15381">phpWebNotes CVS</a></b> -</div> - -</td> -</tr> -</table> - +<?php include('header.php') ?> -<p> -<div align=right> -<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> -</div> +<h3>CVS</font></h3> +<p>phpWebNotes uses <a href="http://www.cyclic.com/">CVS</a> to store and control its source code. Anonymous cvs access allows anyone to download the most current snapshot of the code. Be warned: the latest build may not always function correctly.</p> +<p>Follow the link and follow the commands there. The module name you want to use is <em>webnotes</em>.</p> +<p align="center"><a href="http://sourceforge.net/cvs/?group_id=15381"><strong>phpWebNotes CVS</strong></a></p> -</body> -</html> +<?php include('footer.php') ?> Index: database.php =================================================================== RCS file: /cvsroot/webnotes/web/database.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- database.php 7 Sep 2002 11:40:07 -0000 1.1.1.1 +++ database.php 7 Sep 2002 23:52:30 -0000 1.2 @@ -1,32 +1,9 @@ -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body> - -<p> -<div align=center> - <h2>phpWebNotes</h2> - Last modified: <? echo date( "M d, Y - H:m", getlastmod() )?> -</div> +<?php include('header.php') ?> -<p> -<div align=center> +<h3>Database Schema</h3> -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -<td> -<p> -<b><font size=+1>Database Schema</font></b> -<p> +<p>The database schema will be posted soon.</p> -The database schema will be posted soon. <!-- This is a basic view of the database schema used in phpWebNotes. In my defense it was my first try at a decently sized project and the project has grown out of its original design. It should and will be re-normalized 'soon'. The schemas are a bit rough right now. I should add indicators for index, primary keys, 'foreign keys' (mysql doesn't support these, you have to fake them), unique fields, and relationships (1 to 1, 1 to many, etc). <p> @@ -66,12 +43,4 @@ </td> --> -</tr> -</table> - -<p> -<div align=right> -<a href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> -</div> -</body> -</html> +<?php include('footer.php') ?> Index: demo.php =================================================================== RCS file: /cvsroot/webnotes/web/demo.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- demo.php 7 Sep 2002 11:40:07 -0000 1.1.1.1 +++ demo.php 7 Sep 2002 23:52:30 -0000 1.2 @@ -1,45 +1,8 @@ -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body> - -<p> -<div align=center> -<h2>phpWebNotes</h2> -</div> - -<p> -<div align=center> - -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -<td> -<p> -<b><font size=+1>Demo phpWebNotes</font></b> -<p> -<p> -Go to the demo to see how it is used. For the demo I've disabled the queueing mechanism. This will allow for instantaneous feedback. To see an example of what you could do with this, checkout <a href="http://www.php.net/manual/en/">php.net</a> (Note: php.net does not use phpWebNotes, they have their own system). -<p> -<div align=center> - <a href="http://webnotes.sourceforge.net/webnotes/demo/"><b>Demo phpWebNotes</b></a> -</div> -<p> -If you have questions or feeback please discuss it in the <b><a href="forums.php">Forums</a></b>. -</td> -</tr> -</table> +<?php include('header.php') ?> -<p> -<div align=right> -<a href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> -</div> +<h3><font size=+1>Demo phpWebNotes</h3> +<p>Go to the demo to see how it is used. For the demo I've disabled the queueing mechanism. This will allow for instantaneous feedback. To see an example of what you could do with this, checkout <a href="http://www.php.net/manual/en/">php.net</a> (Note: php.net does not use phpWebNotes, they have their own system).</p> +<p align="center"><a href="http://webnotes.sourceforge.net/webnotes/demo/"><strong>Demo phpWebNotes</strong></a></p> +<p>If you have questions or feeback please discuss it in the <strong><a href="forums.php">Forums</a></strong>.</p> -</body> -</html> +<?php include('footer.php') ?> Index: download.php =================================================================== RCS file: /cvsroot/webnotes/web/download.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- download.php 7 Sep 2002 11:40:07 -0000 1.1.1.1 +++ download.php 7 Sep 2002 23:52:30 -0000 1.2 @@ -1,51 +1,12 @@ -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body> - -<p> -<div align=center> - <h2>phpWebNotes</h2> - Last modified: <? echo date( "M d, Y - H:m", getlastmod() )?> -</div> - -<p> -<div align=center> - -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -<td> -<p> -<b><font size=+1>Download</font></b> -<p> -Use the link to get to the download site for phpWebNotes. The package is kept in .tar.gz which any reasonable (unix systems, WInzip, Stuffit) decompression program can handle. -<p> -<div align=center> - <a href="http://sourceforge.net/project/showfiles.php?group_id=15381"><b>Download phpWebNotes</b></a> -</div> +<?php include('header.php') ?> -<p> -Please check out the <a href="release.php">Release Notes</a> for important notices and information. +<h3>Download</h3> +<p>Use the link to get to the download site for phpWebNotes. The package is kept in .tar.gz which any reasonable (unix systems, WInzip, Stuffit) decompression program can handle.</p> +<p align="center"><a href="http://sourceforge.net/project/showfiles.php?group_id=15381"><strong>Download phpWebNotes</strong></a></p> -<p> -<b><font size=+1>Mirroring</font></b> -<p> -I would prefer that you sign up on the announcements <a href="mailinglists.php">mailing list</a> if you wish to mirror the software. You should also have a link back to this page if you offer phpWebNotes for download. -</td> -</tr> -</table> +<p>Please check out the <a href="release.php">Release Notes</a> for important notices and information.</p> -<p> -<div align=right> -<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> -</div> +<h3>Mirroring</h3> +<p>I would prefer that you sign up on the announcements <a href="mailinglists.php">mailing list</a> if you wish to mirror the software. You should also have a link back to this page if you offer phpWebNotes for download.</p> -</body> -</html> +<?php include('footer.php') ?> Index: forums.php =================================================================== RCS file: /cvsroot/webnotes/web/forums.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- forums.php 7 Sep 2002 11:40:07 -0000 1.1.1.1 +++ forums.php 7 Sep 2002 23:52:30 -0000 1.2 @@ -1,42 +1,9 @@ -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body bgcolor=#ffffff> - -<p> -<div align=center> -<h2>phpWebNotes</h2> -</div> - -<p> -<div align=center> - -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -<td> -<b><font size=+1>Forums</font></b> -<p> -The following forums are hosted at Sourceforge. You can post anonymously. -<p> +<?php include('header.php') ?> +<h3>Forums</h3> +<p>The following forums are hosted at Sourceforge. You can post anonymously.</p> +<ul> <li>Open Discussion <li>Help -<p> -<a href="http://sourceforge.net/forum/?group_id=15381">SourceForge Forum</a><br> -</td> -</tr> -</table> - -<p> -<div align=right> -<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> -</div> - -</body> -</html> +</ul> +<p><a href="http://sourceforge.net/forum/?group_id=15381">SourceForge Forum</a><br></p> +<?php include('footer.php') ?> Index: guidelines.php =================================================================== RCS file: /cvsroot/webnotes/web/guidelines.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- guidelines.php 7 Sep 2002 11:40:07 -0000 1.1.1.1 +++ guidelines.php 7 Sep 2002 23:52:30 -0000 1.2 @@ -1,98 +1,45 @@ -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body bgcolor=#ffffff> - -<p> -<div align=center> - <h2>phpWebNotes</h2> - Last modified: <? echo date( "M d, Y - H:m", getlastmod() )?> -</div> - -<p> -<div align=center> - -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -</td> -<td> - <h3>phpWebNotes Coding Conventions</h3> - - <p> - This is the phpWebNotes coding conventions document. It lists all the basic conventions that I have followed in order to make the code easy to read and maintain. ANyone working on the code, adding features, or wanting to send in a patch should take a quick look through this document. Currently the code is very flat and procedure based. A future version may switch to objects at which point some of these conventions may change or be added to. - - <p> - - <h3>Naming</h3> - <ul> - <li>Use descriptive names (except loop variables) - <li>Use _ to separate words - <li>Always use lowercase - <li>Use .php for all file extensions. Do not use .inc - <li>Form variables are prefixed with f_ - <li>User variables are prefixed with u_ - <li>Temporary variables are prefixed with t_ - <li>Function parameters should be prefixed with p_ - <li>Global varialbes should be prefixed with g_ - <li>Use the v_ prefix for primary purpose variables in a page - <li>$query and $result should be used for SQL query text and results respectively. - <li>Included files should be suffixed by _inc.php - <li>Count variables should follow the format $<what>_count. eg $bug_count. - <li>functions that print should be prefixed with print_. - </ul> - - <h3>Formatting</h3> - <ul> - <li>Use TABS with a size of 4 to make the code easily readable while not wasting too much space - <li>Follow the table formatting of existing pages - <li>Break up SQL queries to be easy to read - </ul> - - <h3>Page Guidelines</h3> - <ul> - <li>The first item should be the copyright notice - <li>The next line should be a cookie check to see if the user is logged in - <li>Next should be the majority of the SQL queries for a page - <li>Next will be the various html print_ functions. - <li>The main body of the page will follow - <li>At the bottom will be the footer information and closing print_ functions. - </ul> +<?php include('header.php') ?> - <a href="http://utvikler.start.no/code/php_coding_standard.html">PHP Coding Standard</a> has _excellent_ guidelines for php programming style. For the most part I seem to have followed it (except for TABS vs spaces). If something is ambiguous consult this link or email me. - Above all, write code that is easy to read and maintain. Code that is not will be rewritten or deleted. Comment blocks of code and functions at all times. Get onto me if I fail to adhere to my own words. +<h3>phpWebNotes Coding Conventions</h3> - <!-- ---------------------------------------------------------------------- --> - <p> - <hr size=1> - <p> +<p>This is the phpWebNotes coding conventions document. It lists all the basic conventions that I have followed in order to make the code easy to read and maintain. ANyone working on the code, adding features, or wanting to send in a patch should take a quick look through this document. Currently the code is very flat and procedure based. A future version may switch to objects at which point some of these conventions may change or be added to.</p> - <font size=-1> - <b>ChangeLog</b> - <p> +<h3>Naming</h3> +<ul> +<li>Use descriptive names (except loop variables)</li> +<li>Use _ to separate words</li> +<li>Always use lowercase</li> +<li>Use .php for all file extensions. Do not use .inc</li> +<li>Form variables are prefixed with f_</li> +<li>User variables are prefixed with u_</li> +<li>Temporary variables are prefixed with t_M</li> +<li>Function parameters should be prefixed with p_</li> +<li>Global varialbes should be prefixed with g_</li> +<li>Use the v_ prefix for primary purpose variables in a page</li> +<li>$query and $result should be used for SQL query text and results respectively.</li> +<li>Included files should be suffixed by _inc.php</li> +<li>Count variables should follow the format $<what>_count. eg $bug_count.</li> +<li>functions that print should be prefixed with print_.</li> +</ul> - <li>version 1.1 Fedbruary 10, 2000 - Kenzaburo Ito (ke...@30...)<br> - <i>Added PHP Coding Standard document link</i> - <li>version 1.0 December 23, 2000 - Kenzaburo Ito (ke...@30...)<br> - <i>Initial creation</i> +<h3>Formatting</h3> +<ul> +<li>Use TABS with a size of 4 to make the code easily readable while not wasting too much space</li> +<li>Follow the table formatting of existing pages</li> +<li>Break up SQL queries to be easy to read</li> +</ul> - </font> - <p> - <hr size=1> -</td> -</tr> -</table> +<h3>Page Guidelines</h3> +<ul> +<li>The first item should be the copyright notice.</li> +<li>The next line should be a cookie check to see if the user is logged in.</li> +<li>Next should be the majority of the SQL queries for a page.</li> +<li>Next will be the various html print_ functions.</li> +<li>The main body of the page will follow.</li> +<li>At the bottom will be the footer information and closing print_ functions.</li> +</ul> -<p> -<div align=right> -<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> -</div> +<p><a href="http://utvikler.start.no/code/php_coding_standard.html">PHP Coding Standard</a> has _excellent_ guidelines for php programming style. For the most part I seem to have followed it (except for TABS vs spaces). If something is ambiguous consult this link or email me.</p> +<p>Above all, write code that is easy to read and maintain. Code that is not will be rewritten or deleted. Comment blocks of code and functions at all times. Get onto me if I fail to adhere to my own words.</p> -</body> -</html> +<?php include('footer.php') ?> Index: header.php =================================================================== RCS file: /cvsroot/webnotes/web/header.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- header.php 7 Sep 2002 14:41:08 -0000 1.1 +++ header.php 7 Sep 2002 23:52:30 -0000 1.2 @@ -8,7 +8,7 @@ </head> <body> -<table class="outisde" cellpadding="0" cellspacing="0"> +<table class="outside" cellpadding="0" cellspacing="0"> <tr class="top"> <td class="top_left"> Index: index.php =================================================================== RCS file: /cvsroot/webnotes/web/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- index.php 7 Sep 2002 11:40:07 -0000 1.1.1.1 +++ index.php 7 Sep 2002 23:52:30 -0000 1.2 @@ -1,93 +1,46 @@ -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body bgcolor=#ffffff> - -<p> -<div align=center> - <h2>phpWebNotes</h2> - Last modified: <? echo date( "M d, Y - H:m", getlastmod() )?> -</div> - -<p> -<div align=center> - -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -<td> -<b><font size=+1>What is it?</font></b> -<p> -phpWebNotes is a php based solution to letting users add their own comments to a document. -<p> -This project was originally conceived to help people who maintain technical help docs and how-tos. It's more direct than searching through a forum and less involving for the users than signing up for a mailing list. Of course, it adapts to other uses extremely easily. -<p> -Updating documents is tedious and documents all to example lack the real world examples and experience to make them truly useful. The best help sites I've ever found had not only detailed documentation but lots and lots of examples and problems and quirks that appear in real life. Unfortunately this rules out almost all man pages (unix help docs). Allowing user comments lets the doc maintainer do less work. Whenever the maintainer needs to update the doc they can just roll in a lot of the user feedback instead of recreating the info. This sort of automation cuts down on email and mailing list traffic as well. -<p> -The release numbering convention I'm using is major.minor.micro. Major indicates a large change in the core package, minor a significant amount of feature addition/modification, micro for mostly bug fixes. I am leaning towards releasing a new version for a significant bugfix as often as daily. +<?php include('header.php') ?> +<h3>What is it?</h3> +<p>phpWebNotes is a php based solution to letting users add their own comments to a document.</p> +<p>This project was originally conceived to help people who maintain technical help docs and how-tos. It's more direct than searching through a forum and less involving for the users than signing up for a mailing list. Of course, it adapts to other uses extremely easily.</p> +<p>Updating documents is tedious and documents all to example lack the real world examples and experience to make them truly useful. The best help sites I've ever found had not only detailed documentation but lots and lots of examples and problems and quirks that appear in real life. Unfortunately this rules out almost all man pages (unix help docs). Allowing user comments lets the doc maintainer do less work. Whenever the maintainer needs to update the doc they can just roll in a lot of the user feedback instead of recreating the info. This sort of automation cuts down on email and mailing list traffic as well.</p> +<p>The release numbering convention I'm using is major.minor.micro. Major indicates a large change in the core package, minor a significant amount of feature addition/modification, micro for mostly bug fixes. I am leaning towards releasing a new version for a significant bugfix as often as daily.</p> -<p> -<b><font size=+1>Goals</font></b> -<p> -A simple way to add user note/footnote capability to any document. I'd like to see this used in particular for HOW-TO, help files, and online documentation (see <a href="http://www.php.net/">php.net</a> for an excellent example). +<h3>Goals</h3> +<p>A simple way to add user note/footnote capability to any document. I'd like to see this used in particular for HOW-TO, help files, and online documentation (see <a href="http://www.php.net/">php.net</a> for an excellent example).</p> -<p> -<b><font size=+1>Requirements</font></b> -<p> -<li><a href="http://www.php.net/">php</a> 3.0.7 and higher -<li><a href="http://www.mysql.com/">MySQL database</a> (more support is planned) -<li>Web server (<a href="http://www.apache.org/">apache</a>, IIS, etc.) -<p> -Additionally you will need to know basic administration of MySQL (login, create new database, run a SQL query). The webserver needs to be configured to handle php files at a minimum. -<p> -It also helps a great deal to at least be able to tinker with php scripts (when there's a little bug or you want to tweak something). Of course, knowing HTML is essential to do any custom formatting. Along the lines of appearance, I have tried to use my best judgement in colors, layout, and feel. Eventually I hope to be able to customize the look and feel from a single CSS file. -<p> -I highly recommend using <a href="http://www.phpwizard.net">phpMyAdmin</a> to administer your mysql database. +<h3>Requirements</h3> +<ul> +<li><a href="http://www.php.net/">php</a> 4.0.6 and higher</li> +<li><a href="http://www.mysql.com/">MySQL database</a> (more support is planned)</li> +<li>Web server (<a href="http://www.apache.org/">apache</a>, IIS, etc.)</li> +</ul> +<p>Additionally you will need to know basic administration of MySQL (login, create new database, run a SQL query). The webserver needs to be configured to handle php files at a minimum.</p> +<p>It also helps a great deal to at least be able to tinker with php scripts (when there's a little bug or you want to tweak something). Of course, knowing HTML is essential to do any custom formatting. Along the lines of appearance, I have tried to use my best judgement in colors, layout, and feel. Eventually I hope to be able to customize the look and feel from a single CSS file.</p> +<p>I highly recommend using <a href="http://www.phpwizard.net">phpMyAdmin</a> to administer your mysql database.</p> -<p> -<b><font size=+1>Features and Benefits</font></b> -<p> +<h3>Features and Benefits</h3> <ul> -<li>Web based and platform independent -<li>Supports PHP3 and PHP4 -<li>Configuration files allow for site-wide control -<li>Automatic indexing of files -<li>Takes two lines of php to add notes to a file +<li>Web based and platform independent</li> +<li>Supports PHP3 and PHP4</li> +<li>Configuration files allow for site-wide control</li> +<li>Automatic indexing of files</li> +<li>Takes two lines of php to add notes to a file</li> </ul> -<p> -<b><font size=+1>Upcoming Features</font></b> -<p> -Check the <a href="roadmap.php">Roadmap</a> for a more detailed and up to date list of items. +<h3>Upcoming Features</h3> +<p>Check the <a href="roadmap.php">Roadmap</a> for a more detailed and up to date list of items.</p> -<p> -<b><font size=+1>Versioning</font></b> -<p> -The release numbering convention I'm using is major.minor.micro. Major indicates a very large change in the core package, minor a significant amount of feature addition/modification, micro for mostly bug fixes. I will release a new version for a significant bugfix as often as daily. -<p> -Version 1.0.0 will be used when I consider phpWebNotes to be production quality. This basically means that I would not hesitate to recommend it for most uses. -<p> -<b><font size=+1>How to Help</font></b> -<p> -<li>Report any bugs at the <a href="bugtracker.php">Bugtracker</a> -<li>Suggest (reasonable) features -<li>Contribute code or tell me where to look -<li><b>Let me know if you use it and find it useful</b>. -I won't publish the information without permission, but I would appreciate the feedback. This, more than any one thing, keeps me motivated. -</td> -</tr> -</table> +<h3>Versioning</h3> +<p>The release numbering convention I'm using is major.minor.micro. Major indicates a very large change in the core package, minor a significant amount of feature addition/modification, micro for mostly bug fixes. I will release a new version for a significant bugfix as often as daily.</h3> +<p>Version 1.0.0 will be used when I consider phpWebNotes to be production quality. This basically means that I would not hesitate to recommend it for most uses.</h3> -<p> -<div align=right> -<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> -</div> +<h3>How to Help</h3> +<ul> +<li>Report any bugs at the <a href="bugtracker.php">Bugtracker</a></li> +<li>Suggest (reasonable) features</li> +<li>Contribute code or tell me where to look</li> +<li><strong>Let me know if you use it and find it useful</strong>.</li> +</ul> +<p>I won't publish the information without permission, but I would appreciate the feedback. This, more than any one thing, keeps me motivated.</p> -</body> -</html> +<?php include('footer.php') ?> Index: mailinglists.php =================================================================== RCS file: /cvsroot/webnotes/web/mailinglists.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mailinglists.php 7 Sep 2002 14:41:08 -0000 1.2 +++ mailinglists.php 7 Sep 2002 23:52:30 -0000 1.3 @@ -1,7 +1,5 @@ <?php include('header.php') ?> <h3>Mailing Lists</h3> <p>There is a mailing list for announcements. Announcements will be posted to it after each release. Please use the <a href="forums.php">Discussion Forums</a> if you need help.</p> -<div align=center> -<p><strong><a href="http://sourceforge.net/mail/?group_id=15381">SourceForge Mailing List</a></strong></p> -</div> +<p align="center"><strong><a href="http://sourceforge.net/mail/?group_id=15381">SourceForge Mailing List</a></strong></p> <?php include('footer.php') ?> Index: roadmap.php =================================================================== RCS file: /cvsroot/webnotes/web/roadmap.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- roadmap.php 7 Sep 2002 11:40:08 -0000 1.1.1.1 +++ roadmap.php 7 Sep 2002 23:52:30 -0000 1.2 @@ -1,44 +1,16 @@ -<html> -<head> -<title>phpWebNotes Roadmap</title> -<style> -body { background-color:<? echo $g_white_color ?>; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -</head> -<body> - -<div align=center> - <h2>phpWebNotes Roadmap</h2> - Last modified: <? echo date( "M d, Y - H:m", getlastmod() )?> -</div> +<?php include('header.php') ?> -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -<td> <h3>Feature and Version Timetable</h3> -<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> +<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> <h3>Future plans</h3> <ul> -<li>Email notification to admins -<li>Allow certain HTML tags -<li>Multiple authentication modes -<li>User authentication -<li>Templates +<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> -</font> -<p> -<hr size=1> -</td> -</tr> -</table> - -</body> -</html> +<?php include('footer.php') ?> Index: security.php =================================================================== RCS file: /cvsroot/webnotes/web/security.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- security.php 7 Sep 2002 11:40:08 -0000 1.1.1.1 +++ security.php 7 Sep 2002 23:52:30 -0000 1.2 @@ -1,42 +1,8 @@ -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body> - -<p> -<div align=center> - <h2>phpWebNotes</h2> - Last modified: <? echo date( "M d, Y - H:m", getlastmod() )?> -</div> - -<p> -<div align=center> - -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -<td> -<p> -<b><font size=+1>Security</font></b> +<?php include('header.php') ?> -<p> -<b>Passwords</b> - Information -<p> -Currently the passwords are run through the crypt() function before being stored. crypt() is a one way function; this means that you cannot obtain the original password from the crypt()ed password. This ensures that the user passwords are not readable should the database be cracked into (Note: this doesn't mean they are uncrackable, enough time and processing power and brute force will reveal most passwords). However, your username and password are most likely being transmitted in clear text. You will have to use a ssl (https) connection to protect transmission. -</td> -</tr> -</table> +<h3>Security</h3> -<p> -<div align=right> -<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> -</div> +<p><strong>Passwords</strong> - Information</p> +<p>Currently the passwords are run through the crypt() function before being stored. crypt() is a one way function; this means that you cannot obtain the original password from the crypt()ed password. This ensures that the user passwords are not readable should the database be cracked into (Note: this doesn't mean they are uncrackable, enough time and processing power and brute force will reveal most passwords). However, your username and password are most likely being transmitted in clear text. You will have to use a ssl (https) connection to protect transmission.</p> -</body> -</html> +<?php include('footer.php') ?> \ No newline at end of file Index: side_menu.php =================================================================== RCS file: /cvsroot/webnotes/web/side_menu.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- side_menu.php 7 Sep 2002 14:41:08 -0000 1.3 +++ side_menu.php 7 Sep 2002 23:52:30 -0000 1.4 @@ -8,6 +8,7 @@ <td class="menu_items"> <a class="big" href="index.php">Home</a><br /> <a class="big" href="demo.php">Demo</a><br /> + <a class="big" href="tour.php">Admin Tour</a><br /> <a class="big" href="about.php">About</a><br /> <a class="big" href="download.php">Download</a><br /> <a class="big" href="screenshots.php">Screenshots</a><br /> @@ -17,11 +18,11 @@ <tr> <td class="menu_items"> <a class="big" href="credits.php">Credits</a><br /> - <a href="notes.php3">Notes</a><br /> + <a href="requirements.php">Requirements</a><br /> + <a class="big" href="release.php">Release Notes</a><br /> <a href="installation.php">Installation</a><br /> <a href="upgrading.php">Upgrading</a><br /> <a href="changelog.php">ChangeLog</a><br /> - <a href="requirements.php">Requirements</a><br /> <a href="links.php">Links</a><br /> </td> </tr> @@ -52,6 +53,7 @@ <a href="roadmap.php">Roadmap</a><br /> <a href="database.php">Database</a><br /> <a href="localization.php">Localization</a><br /> + <a href="security.php">Security</a><br /> </td> </tr> <tr> @@ -62,58 +64,3 @@ </td> </tr> </table> - -<td align=center width="240"> - <table bgcolor="#dddddd"> - <tr> - <td> - <table cellpadding="4" cellspacing="1" bgcolor="#ffffff"> - <tr> - <td> - <a href="index.php">phpWebNotes</a><br /> - <a href="credits.php">Credits</a><br /> - </td> - </tr> - <tr> - <td> - <a href="demo.php">Demo</a><br /> - <a href="tour.php">Admin Tour</a><br /> - </td> - </tr> - <tr> - <td> - <a href="download.php">Download</a><br /> - <a href="release.php">Release Notes</a><br /> - <a href="localization.php">Localization</a><br /> - <a href="security.php">Security</a><br /> - </td> - </tr> - <tr> - <td> - Documentation<br /> - <a href="webnotes/INSTALL">Installation</a><br /> - <a href="webnotes/ChangeLog">ChangeLog</a><br /> - </td> - </tr> - <tr> - <td> - Development<br /> - <a href="roadmap.php">Roadmap</a><br /> - <a href="guidelines.php">Coding Guidelines</a><br /> - <a href="database.php">Database</a><br /> - </td> - </tr> - <tr> - <td> - <a href="http://sourceforge.net/projects/webnotes/"> <img src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="phpWebNotes @ SourceForge"></a><br /> - <a href="mailinglists.php">Mailing List</a><br /> - <a href="forums.php">Forum</a><br /> - <a href="cvs.php">CVS</a><br /> - </td> - </tr> - </table> - </td> - </td> - </tr> - </table> -</td> |
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv28216a Modified Files: bugtracker.php credits.php localization.php mailinglists.php release.php side_menu.php tour.php Added Files: footer.php header.php webnotes.css Log Message: - Imported some files from Mantis website to provide the same look'n'feel. - Modified some files to use the new style. (this is work-in-progress) --- NEW FILE: footer.php --- </td> </tr> <tr> <td class="menu_bot_left" colspan="3"> <table width="100%"> <tr> <td class="bar"> <img src="images/space.gif" alt="" /> </td> </tr> </table> <address> Last modified: <?php echo date( "M d, Y - H:m T", getlastmod() )?></address> <address> Copyright (C) 2000-2002</address> <address> <a href="mailto:vb...@us...">vb...@us...</a></address> </td> </tr> </table> </body> </html> --- NEW FILE: header.php --- <? #countpage( $REQUEST_URI, $REQUEST_URI ); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <title>phpWebNotes</title> <? include( "webnotes.css" ) ?> </head> <body> <table class="outisde" cellpadding="0" cellspacing="0"> <tr class="top"> <td class="top_left"> </td> <td class="top_right"> <a href="http://webnotes.sourceforge.net/"><img border="0" src="images/banner.gif" alt="" /></a> </td> <td class="right"> <a href="http://www.google.com/"><img border="0" src="images/google.gif" alt="" /></a> </td> </tr> <tr class="top"> <td class="middle" colspan="3"> <form method="GET" action="http://www.google.com/custom"> <!-- Search Google --> <input class="small" type="text" name="q" size="16" maxlength="255" value="" /> <input class="small" type="submit" name="sa" value="Search" /> <input class="small" type="hidden" name="cof" value="L:http://mantisbt.sourceforge.net/images/banner.gif;AH:center;AWFID:124d3521c6d75a4f;" /> <input class="small" type="hidden" name="domains" value="mantisbt.sourceforge.net" /> <input class="small" type="hidden" name="sitesearch" value="mantisbt.sourceforge.net" checked="checked" /> <!-- Search Google --> </form> </td> </tr> <tr valign="top" bgcolor="#ffffff"> <td class="menu_left"> <? include( "side_menu.php" ); ?> </td> <td class="main" colspan=2> --- NEW FILE: webnotes.css --- <style type="text/css"> body { background-color: #ffffff; font-family:Verdana, Arial; font-size: 10pt; margin: 0 } address { font-family:Verdana, Arial, Times, sans-serif; font-size: 8pt } form {display: inline;} p { font-family:Verdana, Arial, Times, sans-serif; font-size: 10pt; line-height: 1.2; } p.center { text-align: center } span { font-family: Verdana, Arial, Times, sans-serif } span.required { font-size: 10pt; color: #aa0000 } span.bugnotedelete { font-size: 8pt } span.small { font-size: 8pt } span.smallcaption { font-size: 8pt } span.big { font-weight: bold; font-size: 10pt; } span.section { font-weight: bold; font-size: 10pt; } span.page_title { font-weight: bold; font-size: 13pt; } span.center_link { font-weight: bold; font-size: 10pt; text-align: center } span.news_date { font-size: 8pt; font-style: italic } table.outside { width: 100%; } table.menu { width: 150px; background-color: #ffffff; } table.devlog { width: 100%; } tr.top { vertical-align: top; padding: 0 } td { font-family: Verdana, Arial, Times, sans-serif; font-size: 10pt; text-align: left } td.top_left { background-color: #b8b8ff; height: 50px; font-size: 2pt; line-height: 1.2; text-align: center; vertical-align: middle; font-weight: bold; border-left: 1px solid #000000; border-right: 0px solid #000000 } td.top_right { background-color: #b8b8ff; height: 50px; font-size: 2pt; line-height: 1.2; text-align: left; vertical-align: middle; font-weight: bold } td.right { background-color: #b8b8ff; height: 1px; font-size: 2pt; line-height: 1.2; text-align: right; vertical-align: bottom; font-weight: bold; padding: 4px } td.dev_section { background-color: #b8b8ff; line-height: 1.2; font-weight: bold; padding: 4px } td.dev_right { background-color: #b8b8ff; line-height: 1.2; text-align: right; font-weight: bold; padding: 4px } td.devheadline { background-color: #f0f0ff; line-height: 1.2; padding: 4px; border-top: 1px solid #4477aa; } td.devpost { background-color: #ffffff; line-height: 1.2; padding: 4px; border-bottom: 1px solid #4477aa; } td.middle { background-color: #8888e8; height: 5px; font-size: 2pt; border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 0px solid #000000; text-align: right } td.menu_top { background-color: #d8d8ff; font-size: 10pt; line-height: 1.0; text-align: left; border-top: 0px solid #000000; border-bottom: 1px solid #000000; padding: 2; padding-top: 4 } td.menu_head { background-color: #d8d8ff; font-size: 10pt; line-height: 1.0; text-align: left; border-top: 0px solid #000000; border-bottom: 1px solid #000000; padding: 2; padding-top: 4 } td.menu_sf { background-color: #d8d8ff; font-size: 10pt; line-height: 1.0; text-align: center; border-top: 1px solid #000000; border-bottom: 1px solid #000000; padding: 6 } td.menu_items { background-color: #ffffff; font-size: 10pt; line-height: 1.2; text-align: left; padding: 2; padding-bottom: 6; width: 99%; padding-left: 8px } td.menu_left { background-color: #ffffff; border-left: 1px solid #000000; border-right: 1px dotted #000000 } td.menu_bot_left{ background-color: #ffffff; border-left: 1px solid #000000; border-bottom: 1px solid #000000; padding: 2; padding-bottom: 12px; text-align: left } td.main { background-color: #ffffff; font-size: 10pt; line-height: 1.1; text-align: left; padding: 12px; width: 100% } td.indicator { font-family: courier new; background-color: #ffffff; font-size: 10pt; line-height: 1.1; text-align: right; width: 1% } td.bar { background-color: #a8a8ff; font-size: 1pt; text-align: left; width: 100%; border-top: 1px solid #999999 } td.caption { background-color: #ddddff; font-size: 10pt; text-align: center; width: 33%; border-top: 1px solid #000000; border-bottom: 0px solid #000000 } td.screenshot { background-color: #ffffff; font-size: 1pt; text-align: center; width: 33% } td.poll_date { background-color: #ffffff; font-size: 8pt; text-align: center; width: 20%; border-right: 1px solid #000000 } td.poll_question{ background-color: #ffffff; font-size: 10pt; text-align: left; width: 60%; border-right: 1px solid #000000 } td.poll_results { background-color: #ffffff; font-size: 10pt; text-align: center; width: 20% } td.poll_header { background-color: #e0e0ff; font-size: 8pt; text-align: center; width: 100% } td.poll { background-color: #ffffff; font-size: 10pt; text-align: left; width: 100% } td.survey { background-color: #e0e0ff; font-size: 8pt; text-align: center; width: 100% } td.welcome { background-color: #ffffff; font-size: 10pt; text-align: left; width: 100%; padding: 6px } td.headline { background-color: #c8c8e8; font-size: 10pt; text-align: left; width: 100%; border-left: 0px solid #444444; border-right: 1px solid #7878e8; border-top: 0px solid #000000; border-bottom: 2px solid #7878e8 } td.body { background-color: #ffffff; font-size: 10pt; text-align: left; width: 100%; border-left: 0px solid #000000; border-right: 0px solid #000000; border-bottom: 0px solid #000000; padding: 12px; padding-bottom: 20px } a { font-family: Verdana, Arial, Times, sans-serif; font-size: 10pt } a.bold { font-weight: bold } a.small { font-size: 8pt } a.small_bold { font-weight: bold; font-size: 8pt } a.center { text-align: center } ol { list-style-type: decimal } pre { font-family: courier new; background-color: #e6e6e6; font-size: 10pt; line-height: 1.1; text-align: left; padding: 8 } input.small { font-size: 8pt; font-family: verdana,arial,helvetica,sans-serif; vertical-align: middle } </style> Index: bugtracker.php =================================================================== RCS file: /cvsroot/webnotes/web/bugtracker.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- bugtracker.php 7 Sep 2002 11:40:07 -0000 1.1.1.1 +++ bugtracker.php 7 Sep 2002 14:41:08 -0000 1.2 @@ -1,56 +1,5 @@ -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body> - -<p> -<div align=center> -<h2>phpWebNotes</h2> -</div> - -<p> -<div align=center> - -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -<td> -<p> -<b><font size=+1>Bugtracker</font></b> -<p> -The bugtracker will be up soon. -<!-- -Here you can login to report actual bugs in phpWebNotes. You may also log feature requests as well. Finally, just use it to play around and see if it meets your needs. -<p> -Login as: -<ul> -<li>viewer / viewer - most limited access -<li>reporter / reporter - you can report bugs and add bugnotes -<li>rep / rep - same -<li>updater / updater - you can edit bugs -<li>Sign up for your own account! <b>You will need a <font color=#ff000>valid</font> email address.</b> If you know your email address works but never get emailed then please <a href="mailto:ke...@30...">contact me</a>. -</ul> -<p> -Again, feel free to explore but please, <font color=#ff0000><b>do not play with any valid bug entries</b></font>. There is a "Test Project" that you can play around with all you like. I will periodically be cleaning out any test bugs. -<p> -<div align=center> - <a href="http://webnotes.sourceforge.net/webnotes/"><b>phpWebNotes Bugtracker</b></a> -</div> ---> -</td> -</tr> -</table> - -<p> -<div align=right> -<a href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> -</div> - -</body> -</html> +<?php include('header.php') ?> +<h3>Bugtracker</h3> +phpWebNotes uses Mantis Bugtracker to track bugs and feature requests. Login to http://webnotes.sf.net/mantis to +report bugs and feature requests. +<?php include('footer.php') ?> Index: credits.php =================================================================== RCS file: /cvsroot/webnotes/web/credits.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- credits.php 7 Sep 2002 11:55:22 -0000 1.2 +++ credits.php 7 Sep 2002 14:41:08 -0000 1.3 @@ -1,26 +1,4 @@ -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body bgcolor="#ffffff"> - -<br /> -<div align="center"> -<h2>phpWebNotes</h2> -</div> - -<br /> -<div align="center"> - -<table width="100%"> -<tr valign="top"> - <? include("side_menu.php") ?> -<td> +<?php include('header.php') ?> <h3>Credits</h3> <br /> Administrators: @@ -39,14 +17,4 @@ <li>Luca Pscatore</li> <li>Dat-Son Nguyen</li> </ul> -</td> -</tr> -</table> - -<br /> -<div align="right"> -<a href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="WebNotes @ SourceForge" /></a> -</div> - -</body> -</html> \ No newline at end of file +<?php include('footer.php') ?> \ No newline at end of file Index: localization.php =================================================================== RCS file: /cvsroot/webnotes/web/localization.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- localization.php 7 Sep 2002 11:40:08 -0000 1.1.1.1 +++ localization.php 7 Sep 2002 14:41:08 -0000 1.2 @@ -1,4 +1,5 @@ -<? +<?php include('header.php') ?> +<?php function print_lang( $p_language, $p_version, $p_state ) { $t_file_name = "webnotes/strings_".strtolower( $p_language ).".txt"; @@ -24,54 +25,27 @@ PRINT "</tr>"; } ?> -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body> - -<p> -<div align=center> -<h2>phpWebNotes</h2> -</div> - -<p> -<div align=center> - -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -<td> -<p> -<b><font size=+1>Localization</font></b> -<p> -Here you can see the latest localization files. Currently we only have English. -<p> -What to do if you see some errors? Just <a href="mailto:ke...@30...">send me an email</a> with the corrected strings. -<p> +<h3>Localization</h3> +<p>Here you can see the latest localization files. Currently we only have English.</p> +<p>What to do if you see some errors? Just <a href="mailto:ke...@30...">send me an email</a> with the corrected strings.</p> -<div align=center> -<table width=100% cellpadding=5 cellspacing=1 bgcolor=#ffffff> -<tr bgcolor=#ffffff> +<div align="center"> +<table width="100%" cellpadding="5" cellspacing="1" bgcolor="#ffffff"> +<tr bgcolor="#ffffff"> <td> - <b>Language</b> + <strong>Language</strong> </td> <td> - <b>Version</b> + <strong>Version</strong> </td> <td> - <b>Date Updated</b> + <strong>Date Updated</strong> </td> <td> </td> </tr> -<? +<?php print_lang( "English", "latest", "active" ); print_lang( "French", "latest", "active" ); print_lang( "Italian", "latest", "active" ); @@ -80,20 +54,7 @@ </div> -<p> -<b><font size=+1>Translating</font></b> -<p> -Don't see your language? Translate one of the files! It's really quite simple. Just take the strings file and convert away. Then <a href="mailto:ke...@30...">submit it</a> back to me. Also, you can update them when new strings make it in. The file won't change drastically so it shouldn't be too much work to keep the files updated. -<p> -Currently some strings are hard-coded into the database tables or the code. This will be fixed soon. -</td> -</tr> -</table> - -<p> -<div align=right> -<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> -</div> - -</body> -</html> +<h3>Translating</h3> +<p>Don't see your language? Translate one of the files! It's really quite simple. Just take the strings file and convert away. Then <a href="mailto:ke...@30...">submit it</a> back to me. Also, you can update them when new strings make it in. The file won't change drastically so it shouldn't be too much work to keep the files updated.</p> +<p>Currently some strings are hard-coded into the database tables or the code. This will be fixed soon.</p> +<?php include('footer.php') ?> Index: mailinglists.php =================================================================== RCS file: /cvsroot/webnotes/web/mailinglists.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- mailinglists.php 7 Sep 2002 11:40:08 -0000 1.1.1.1 +++ mailinglists.php 7 Sep 2002 14:41:08 -0000 1.2 @@ -1,42 +1,7 @@ -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body bgcolor=#ffffff> - -<p> -<div align=center> -<h2>phpWebNotes</h2> -</div> - -<p> -<div align=center> - -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -<td> -<b><font size=+1>Mailing Lists</font></b> -<p> -There is a mailing list for announcements. Announcements will be posted to it after each release. Please use the <a href="forums.php">Discussion Forums</a> if you need help. -<p> +<?php include('header.php') ?> +<h3>Mailing Lists</h3> +<p>There is a mailing list for announcements. Announcements will be posted to it after each release. Please use the <a href="forums.php">Discussion Forums</a> if you need help.</p> <div align=center> -<b><a href="http://sourceforge.net/mail/?group_id=15381">SourceForge Mailing List</a></b> -</div> - -</td> -</tr> -</table> - -<p> -<div align=right> -<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> +<p><strong><a href="http://sourceforge.net/mail/?group_id=15381">SourceForge Mailing List</a></strong></p> </div> - -</body> -</html> +<?php include('footer.php') ?> Index: release.php =================================================================== RCS file: /cvsroot/webnotes/web/release.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- release.php 7 Sep 2002 11:40:08 -0000 1.1.1.1 +++ release.php 7 Sep 2002 14:41:08 -0000 1.2 @@ -1,4 +1,4 @@ -<? +<?php function print_item($type,$old,$new,$notes) { PRINT "<tr>"; PRINT "<td>"; @@ -62,36 +62,10 @@ PRINT "</table>"; } ?> -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body> - -<p> -<div align=center> - <h2>phpWebNotes</h2> - Last modified: <? echo date( "M d, Y - H:m", getlastmod() )?> -</div> - -<p> -<div align=center> - -<table width=100%> -<tr valign=top> - <? include("side_menu.php") ?> -<td> -<p> -<b><font size=+1>Release Notes</font></b> +<?php include('header.php') ?> +<h3>Release Notes</h3> -<p> -This is a preliminary draft of the release notes. -<p> +<p>This is a preliminary draft of the release notes.</p> <!-- BEGIN 1.0.0 --------------------------------------------- --> <? print_release("1.0.0","March 16, 2001", @@ -116,17 +90,6 @@ <!-- MODIFIED FILES ------------------- --> <? print_modified("Released") ?> - <hr> <!-- END 1.0.0 --------------------------------------------- --> -</td> -</tr> -</table> - -<p> -<div align=right> -<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> -</div> - -</body> -</html> +<?php include('footer.php') ?> Index: side_menu.php =================================================================== RCS file: /cvsroot/webnotes/web/side_menu.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- side_menu.php 7 Sep 2002 11:55:22 -0000 1.2 +++ side_menu.php 7 Sep 2002 14:41:08 -0000 1.3 @@ -1,3 +1,68 @@ + <table class="menu" cellspacing="0"> + <tr> + <td class="menu_top"> + <span class="big">General</span><br /> + </td> + </tr> + <tr> + <td class="menu_items"> + <a class="big" href="index.php">Home</a><br /> + <a class="big" href="demo.php">Demo</a><br /> + <a class="big" href="about.php">About</a><br /> + <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="notes.php3">Notes</a><br /> + <a href="installation.php">Installation</a><br /> + <a href="upgrading.php">Upgrading</a><br /> + <a href="changelog.php">ChangeLog</a><br /> + <a href="requirements.php">Requirements</a><br /> + <a href="links.php">Links</a><br /> + </td> + </tr> + <tr> + <td class="menu_head"> + <span class="big">Support</span><br /> + </td> + </tr> + <tr> + <td class="menu_items"> + <a href="irc.php">IRC</a><br /> + <a href="forums.php">Forums</a><br /> + <a href="mailinglists.php">Mailing Lists</a><br /> + </td> + </tr> + <tr> + <td class="menu_head"> + <span class="big">Development</span><br /> + </td> + </tr> + <tr> + <td class="menu_items"> + <a href="general_development.php">General Information</a><br /> + <a href="guidelines.php">Coding Guidelines</a><br /> + <a href="devnotes.php">Dev Notes</a><br /> + <a href="api.php">API</a><br /> + <a href="cvs.php">CVS</a><br /> + <a href="roadmap.php">Roadmap</a><br /> + <a href="database.php">Database</a><br /> + <a href="localization.php">Localization</a><br /> + </td> + </tr> + <tr> + <td class="menu_sf"> + <br /> + <a href="http://sourceforge.net/projects/webnotes/"> <img src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="phpWebNotes @ SourceForge"></a><br /> + <br /> + </td> + </tr> + </table> + <td align=center width="240"> <table bgcolor="#dddddd"> <tr> Index: tour.php =================================================================== RCS file: /cvsroot/webnotes/web/tour.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- tour.php 7 Sep 2002 11:55:22 -0000 1.2 +++ tour.php 7 Sep 2002 14:41:08 -0000 1.3 @@ -1,27 +1,4 @@ -<html> -<head> -<style> -body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt } -td { font-family:Verdana, Arial; font-size=10pt } -p { font-family:Verdana, Arial; font-size=10pt } -</style> -<title>phpWebNotes</title> -</head> -<body bgcolor="#ffffff"> -<br /> -<div align="center"> -<h2>phpWebNotes</h2> -</div> - -<br /> -<div align="center"> - -<table width="100%"> -<tr valign="top"> - <? include("side_menu.php") ?> -<td> - <h3>phpWebNotes Tour</h3> - +<?php include('header.php') ?> The Admin Tour will be up soon. <!-- <p> @@ -52,14 +29,4 @@ <p> This is the basic edit news screen. --> -</td> -</tr> -</table> - -<br /> -<div align="right"> -<a href="http://sourceforge.net/projects/webnotes"><img src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="WebNotes @ SourceForge" /></a> -</div> - -</body> -</html> \ No newline at end of file +<?php include('footer.php') ?> |
From: <vb...@us...> - 2002-09-07 11:55:25
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv26714 Modified Files: credits.php side_menu.php tour.php Log Message: - Some cleanup towards XHTML - Updating credits. Index: credits.php =================================================================== RCS file: /cvsroot/webnotes/web/credits.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- credits.php 7 Sep 2002 11:40:07 -0000 1.1.1.1 +++ credits.php 7 Sep 2002 11:55:22 -0000 1.2 @@ -7,39 +7,46 @@ </style> <title>phpWebNotes</title> </head> -<body bgcolor=#ffffff> +<body bgcolor="#ffffff"> -<p> -<div align=center> +<br /> +<div align="center"> <h2>phpWebNotes</h2> </div> -<p> -<div align=center> +<br /> +<div align="center"> -<table width=100%> -<tr valign=top> +<table width="100%"> +<tr valign="top"> <? include("side_menu.php") ?> <td> -<b><font size=+1>Credits</font></b> -<p> +<h3>Credits</h3> +<br /> +Administrators: <ul> - <li><a href="mailto:ke...@30...">Kenzaburo Ito</a> - programming + <li><a href="mailto:ke...@30...">Kenzaburo Ito</a> - Admin / Developer + <li><a href="mailto:vb...@us...">Victor Boctor</a> - Admin / Developer </ul> -<p> +<br /> +Developers: +<ul> + <li><a href="mailto:rm...@us...">Remon Metira</a> - Developer +</ul> +<br /> Translations: <ul> - <li>Luca Pscatore - <li>Dat-Son Nguyen + <li>Luca Pscatore</li> + <li>Dat-Son Nguyen</li> </ul> </td> </tr> </table> -<p> -<div align=right> -<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> +<br /> +<div align="right"> +<a href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="WebNotes @ SourceForge" /></a> </div> </body> -</html> +</html> \ No newline at end of file Index: side_menu.php =================================================================== RCS file: /cvsroot/webnotes/web/side_menu.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- side_menu.php 7 Sep 2002 11:40:08 -0000 1.1.1.1 +++ side_menu.php 7 Sep 2002 11:55:22 -0000 1.2 @@ -1,49 +1,49 @@ -<td align=center width=240> - <table bgcolor=#dddddd> +<td align=center width="240"> + <table bgcolor="#dddddd"> <tr> <td> - <table cellpadding=4 cellspacing=1 bgcolor=#ffffff> + <table cellpadding="4" cellspacing="1" bgcolor="#ffffff"> <tr> <td> - <a href="index.php">phpWebNotes</a><br> - <a href="credits.php">Credits</a><br> + <a href="index.php">phpWebNotes</a><br /> + <a href="credits.php">Credits</a><br /> </td> </tr> <tr> <td> - <a href="demo.php">Demo</a><br> - <a href="tour.php">Admin Tour</a><br> + <a href="demo.php">Demo</a><br /> + <a href="tour.php">Admin Tour</a><br /> </td> </tr> <tr> <td> - <a href="download.php">Download</a><br> - <a href="release.php">Release Notes</a><br> - <a href="localization.php">Localization</a><br> - <a href="security.php">Security</a><br> + <a href="download.php">Download</a><br /> + <a href="release.php">Release Notes</a><br /> + <a href="localization.php">Localization</a><br /> + <a href="security.php">Security</a><br /> </td> </tr> <tr> <td> - Documentation<br> - <a href="webnotes/INSTALL">Installation</a><br> - <a href="webnotes/ChangeLog">ChangeLog</a><br> + Documentation<br /> + <a href="webnotes/INSTALL">Installation</a><br /> + <a href="webnotes/ChangeLog">ChangeLog</a><br /> </td> </tr> <tr> <td> - Development<br> - <a href="roadmap.php">Roadmap</a><br> - <a href="guidelines.php">Coding Guidelines</a><br> - <a href="database.php">Database</a><br> + Development<br /> + <a href="roadmap.php">Roadmap</a><br /> + <a href="guidelines.php">Coding Guidelines</a><br /> + <a href="database.php">Database</a><br /> </td> </tr> <tr> <td> - <A href="http://sourceforge.net/projects/webnotes/"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A><br> - <a href="mailinglists.php">Mailing List</a><br> - <a href="forums.php">Forum</a><br> - <a href="cvs.php">CVS</a><br> + <a href="http://sourceforge.net/projects/webnotes/"> <img src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="phpWebNotes @ SourceForge"></a><br /> + <a href="mailinglists.php">Mailing List</a><br /> + <a href="forums.php">Forum</a><br /> + <a href="cvs.php">CVS</a><br /> </td> </tr> </table> Index: tour.php =================================================================== RCS file: /cvsroot/webnotes/web/tour.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- tour.php 7 Sep 2002 11:40:08 -0000 1.1.1.1 +++ tour.php 7 Sep 2002 11:55:22 -0000 1.2 @@ -7,18 +7,17 @@ </style> <title>phpWebNotes</title> </head> -<body bgcolor=#ffffff> - -<p> -<div align=center> +<body bgcolor="#ffffff"> +<br /> +<div align="center"> <h2>phpWebNotes</h2> </div> -<p> -<div align=center> +<br /> +<div align="center"> -<table width=100%> -<tr valign=top> +<table width="100%"> +<tr valign="top"> <? include("side_menu.php") ?> <td> <h3>phpWebNotes Tour</h3> @@ -57,10 +56,10 @@ </tr> </table> -<p> -<div align=right> -<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="SourceForge Logo"></A> +<br /> +<div align="right"> +<a href="http://sourceforge.net/projects/webnotes"><img src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="WebNotes @ SourceForge" /></a> </div> </body> -</html> +</html> \ No newline at end of file |
From: <vb...@us...> - 2002-09-06 17:03:44
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv1513 Modified Files: .cvsignore admin.php admin_view_queue.php Added Files: action.php admin_pending.php Removed Files: css_inc.php Log Message: - Some items were moved from the ROADMAP to webnotes.sf.net/mantis - Added action.php page to allow executing actions through links. - Added link_api.php to easily construct the links to trigger such actions. - Implemented admin_pending.php to allow the moderator to view all notes (grouped by page), and be able to accept/reject in any order. - Change the admin.php to link to admin_pending.php, this is much better for accepting / rejecting, but this causes the loss of the edit functionality (for now). - Moved css_inc.php to core/ - Added some strings to English language - Modified .cvsignore files to ignore PHPEdit temporary files. --- NEW FILE: action.php --- <?php # phpWebNotes - a php based note addition system # Copyright (C) 2002 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: action.php,v 1.1 2002/09/06 17:03:35 vboctor Exp $ # -------------------------------------------------------- require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' ); login_cookie_check(); if ( !isset( $f_action ) ) { echo 'f_action not defined<br />'; exit; } if ( !isset( $f_url ) ) { echo 'f_url not defined<br />'; exit; } else { $c_url = urldecode( $f_url ); } # @@@@ add handling for confirm? if ( !isset( $f_note_id )) { echo 'f_note_id not defined<br />'; exit; } if ( 'accept' === $f_action ) { note_accept( $f_note_id ); } else if ( 'reject' === $f_action ) { note_decline( $f_note_id ); } else if ( 'archive' === $f_action ) { note_archive( $f_note_id ); } else if ( 'delete' === $f_action ) { note_delete( $f_note_id ); } if ( isset( $f_wait ) ) { print_html_top(); print_head_top(); print_title( $g_window_title ); print_css( $g_css_inc_file ); print_head_bottom(); print_body_top(); print_header( $g_page_title ); print_top_page( $g_top_page_inc ); print_admin_menu(); echo "<br /><div align=\"center\">Operation Successful<br /><a href=\"$c_url\">[ Click here to proceed ]</a></div><br />"; print_footer( __FILE__ ); print_bottom_page( $g_bottom_page_inc ); print_body_bottom(); print_html_bottom(); } else { util_header_redirect( $c_url ); } ?> --- NEW FILE: admin_pending.php --- <?php # phpWebNotes - a php based note addition system # Copyright (C) 2002 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: admin_pending.php,v 1.1 2002/09/06 17:03:35 vboctor Exp $ # -------------------------------------------------------- require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' ); login_cookie_check(); print_html_top(); print_head_top(); print_title( $g_window_title ); print_css( $g_css_inc_file ); print_head_bottom(); print_body_top(); print_header( $g_page_title ); print_top_page( $g_top_page_inc ); print_admin_menu(); $result = note_queue( false ); echo '<br />'; $t_last_page = ''; $t_count = 0; while( $row = db_fetch_array( $result ) ) { extract( $row, EXTR_PREFIX_ALL, 'v' ); if ( $t_last_page != $v_page ) { if ( $t_count > 0 ) { echo '</table><br />'; $t_count = 0; } echo '<table width="100%" border="0" cellspacing="0">'; echo "<tr><td colspan=\"2\" bgcolor=\"$g_header_color\"><br /><strong>$v_page</strong><br /><br /></td></tr>"; $t_last_page = $v_page; } $t_color = util_alternate_colors( $t_count ); $v_note = db_unprepare_string( $v_note ); $v_note = nl2br( string_preserve_spaces( $v_note ) ); $t_accept = link_note_action( $v_note_id, 'accept', $PHP_SELF ); $t_reject = link_note_action( $v_note_id, 'reject', $PHP_SELF ); $t_edit = link_note_action( $v_note_id, 'edit', $PHP_SELF ); $t_archive = link_note_action( $v_note_id, 'archive', $PHP_SELF ); echo "<tr valign=\"top\" bgcolor=\"$t_color\"><td width=\"70%\"><em><a href=\"mailto:$v_email\">$v_email</a></em><br /><pre>$v_note</pre></td><td width=\"30%\" align=\"right\">$t_accept $t_reject $t_edit $t_archive</td></tr>"; $t_count++; }; if ( $t_count > 0 ) { echo '</table>'; } echo '</div>'; echo '<br />'; print_footer( __FILE__ ); print_bottom_page( $g_bottom_page_inc ); print_body_bottom(); print_html_bottom(); ?> Index: .cvsignore =================================================================== RCS file: /cvsroot/webnotes/webnotes/.cvsignore,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- .cvsignore 2 Sep 2002 22:55:46 -0000 1.2 +++ .cvsignore 6 Sep 2002 17:03:35 -0000 1.3 @@ -0,0 +1 @@ +*.PHPEdit* \ No newline at end of file Index: admin.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- admin.php 5 Sep 2002 06:25:19 -0000 1.12 +++ admin.php 6 Sep 2002 17:03:35 -0000 1.13 @@ -34,7 +34,7 @@ </tr> <tr bgcolor="$g_primary_light_color" align="center" valign="middle" height="50"> <td width="33%"><a href="$g_admin_index_files">$s_index_files</a></td> - <td width="34%"><a href="$g_admin_view_queue">$s_view_queue</a> [$queue_count]</td> + <td width="34%"><a href="$g_admin_pending">$s_view_queue</a> [$queue_count]</td> <td width="33%"><a href="$g_admin_change_password">$s_change_password</a></td> </tr> </table> Index: admin_view_queue.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_view_queue.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- admin_view_queue.php 5 Sep 2002 14:12:58 -0000 1.12 +++ admin_view_queue.php 6 Sep 2002 17:03:35 -0000 1.13 @@ -25,7 +25,8 @@ note_decline( $f_id ); } - $row = select_queued_notes_arr(); + $result = note_queue(); + $row = db_fetch_array( $result ); if ( $row ) { extract( $row, EXTR_PREFIX_ALL, "v" ); $v_note = string_edit( $v_note ); --- css_inc.php DELETED --- |
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv1513/core Modified Files: .cvsignore api.php config_inc.php note_api.php util_api.php Added Files: css_inc.php link_api.php Log Message: - Some items were moved from the ROADMAP to webnotes.sf.net/mantis - Added action.php page to allow executing actions through links. - Added link_api.php to easily construct the links to trigger such actions. - Implemented admin_pending.php to allow the moderator to view all notes (grouped by page), and be able to accept/reject in any order. - Change the admin.php to link to admin_pending.php, this is much better for accepting / rejecting, but this causes the loss of the edit functionality (for now). - Moved css_inc.php to core/ - Added some strings to English language - Modified .cvsignore files to ignore PHPEdit temporary files. --- NEW FILE: css_inc.php --- <? # phpWebNotes - a php based note addition system # Copyright (C) 2000 Kenzaburo Ito - ke...@30... # 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: css_inc.php,v 1.1 2002/09/06 17:03:37 vboctor Exp $ # -------------------------------------------------------- ?> <style type="text/css"> body { background-color: #ffffff; font-family:Verdana, Arial; font-size: 10pt } td { font-family:Verdana, Arial; font-size: 10pt } p { font-family:Verdana, Arial; font-size: 10pt } h3 { font-family:Verdana, Arial; font-size: 13pt; font-weight: bold; text-align: center } address { font-family:Verdana, Arial; font-size: 8pt } </style> --- NEW FILE: link_api.php --- <?php # phpWebNotes - a php based note addition system # Copyright (C) 2002 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: link_api.php,v 1.1 2002/09/06 17:03:37 vboctor Exp $ # -------------------------------------------------------- ########################################################################### # Link API ########################################################################### ### -------------------- function link_note_action( $p_note_id, $p_action, $p_url ) { $t_caption = lang_get( 'action_' . $p_action ); $c_note_id = db_prepare_int( $p_note_id ); $c_action = urlencode( $p_action ); $c_url = urlencode( $p_url ); $t_action = config_get( 'web_directory') . 'action.php'; return "[ <a href=\"$t_action?f_action=$c_action&f_note_id=$c_note_id&f_url=$c_url\">$t_caption</a> ]"; } ?> Index: .cvsignore =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/.cvsignore,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- .cvsignore 2 Sep 2002 22:55:46 -0000 1.1 +++ .cvsignore 6 Sep 2002 17:03:36 -0000 1.2 @@ -1 +1,2 @@ -custom_config_inc.php \ No newline at end of file +custom_config_inc.php +*.PHPEdit* \ No newline at end of file Index: api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/api.php,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- api.php 5 Sep 2002 17:30:29 -0000 1.15 +++ api.php 6 Sep 2002 17:03:36 -0000 1.16 @@ -41,6 +41,7 @@ require_once( $t_path_core . 'page_api.php' ); require_once( $t_path_core . 'html_api.php' ); require_once( $t_path_core . 'user_api.php' ); + require_once( $t_path_core . 'link_api.php' ); require_once( $t_path_core . 'util_api.php' ); require_once( $t_path_main . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $g_theme . DIRECTORY_SEPARATOR . 'theme_api.php' ); Index: config_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_inc.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- config_inc.php 5 Sep 2002 17:30:29 -0000 1.7 +++ config_inc.php 6 Sep 2002 17:03:37 -0000 1.8 @@ -98,10 +98,13 @@ $g_admin_index_files = $g_web_directory . 'admin_index_files' . $g_ext; $g_admin_manage_notes = $g_web_directory . 'admin_manage_notes' . $g_ext; $g_admin_view_queue = $g_web_directory . 'admin_view_queue' . $g_ext; + $g_admin_pending = $g_web_directory . 'admin_pending' . $g_ext; $g_admin_change_password = $g_web_directory . 'admin_change_password' . $g_ext; - $g_css_inc_file = $g_absolute_directory . 'css_inc' . $g_ext; + $g_css_inc_file = $g_absolute_directory . 'core' . DIRECTORY_SEPARATOR . 'css_inc' . $g_ext; $g_note_add_page = $g_web_directory . 'note_add_page' . $g_ext; $g_note_add = $g_web_directory . 'note_add' . $g_ext; + + $g_use_iis = OFF; ?> Index: note_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/note_api.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- note_api.php 5 Sep 2002 17:30:29 -0000 1.4 +++ note_api.php 6 Sep 2002 17:03:37 -0000 1.5 @@ -77,6 +77,9 @@ $result = db_query( $query ); } ### -------------------- + function note_archive( $p_id ) { + } + ### -------------------- function note_print_all( $p_page_name ) { global $g_phpWN_note_table, $g_phpWN_page_table, $g_note_order; @@ -103,15 +106,20 @@ } } ### -------------------- - function select_queued_notes_arr() { + function note_queue( $p_only_one = true ) { global $g_phpWN_note_table, $g_phpWN_page_table; - $query = "SELECT n.*, p.page + $query = "SELECT n.id as note_id, n.*, p.page FROM $g_phpWN_note_table n, $g_phpWN_page_table p - WHERE n.visible='0' AND n.page_id=p.id - LIMIT 1"; - $result = db_query( $query ); - return db_fetch_array( $result ); + WHERE n.visible='0' AND n.page_id=p.id"; + + if ( $p_only_one ) { + $query .= ' LIMIT 1'; + } else { + $query .= ' ORDER BY p.page, n.date_submitted'; + } + + return db_query( $query ); } ### -------------------- function print_manage_notes( $p_page_id, $p_url ) { Index: util_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/util_api.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- util_api.php 5 Sep 2002 22:44:34 -0000 1.1 +++ util_api.php 6 Sep 2002 17:03:37 -0000 1.2 @@ -22,5 +22,39 @@ substr( $p_timeString, 6, 2 ), substr( $p_timeString, 0, 4 ) ); } + # -------------------- + # alternate color function + function util_alternate_colors( $p_num, $p_color1='', $p_color2='' ) { + if ( empty( $p_color1 ) ) { + $p_color1 = config_get( 'primary_dark_color' ); + } + if ( empty( $p_color2 ) ) { + $p_color2 = config_get( 'primary_light_color' ); + } + + if ( 1 == $p_num % 2 ) { + return $p_color1; + } else { + return $p_color2; + } + } + # -------------------- + function util_header_redirect( $p_url ) { + $t_use_iis = config_get( 'use_iis'); + if ( OFF == $t_use_iis ) { + header( 'Status: 302' ); + } + + header( 'Content-Type: text/html' ); + header( 'Pragma: no-cache' ); + header( 'Expires: Fri, 01 Jan 1999 00:00:00 GMT' ); + header( 'Cache-control: no-cache, no-cache="Set-Cookie", private' ); + if ( ON == $t_use_iis ) { + header( "Refresh: 0;url=$p_url" ); + } else { + header( "Location: $p_url" ); + } + die; # additional output can cause problems so let's just stop output here + } ### -------------------- ?> |
From: <vb...@us...> - 2002-09-06 17:03:43
|
Update of /cvsroot/webnotes/webnotes/lang In directory usw-pr-cvs1:/tmp/cvs-serv1513/lang Modified Files: strings_english.php Log Message: - Some items were moved from the ROADMAP to webnotes.sf.net/mantis - Added action.php page to allow executing actions through links. - Added link_api.php to easily construct the links to trigger such actions. - Implemented admin_pending.php to allow the moderator to view all notes (grouped by page), and be able to accept/reject in any order. - Change the admin.php to link to admin_pending.php, this is much better for accepting / rejecting, but this causes the loss of the edit functionality (for now). - Moved css_inc.php to core/ - Added some strings to English language - Modified .cvsignore files to ignore PHPEdit temporary files. Index: strings_english.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/lang/strings_english.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- strings_english.php 4 Sep 2002 13:36:58 -0000 1.3 +++ strings_english.php 6 Sep 2002 17:03:38 -0000 1.4 @@ -92,4 +92,11 @@ $s_email = "Email"; $s_note = "Note"; $s_add_note_link = "Add Note"; + + ### link_api.php + $s_action_accept = 'Accept'; + $s_action_reject = 'Reject'; + $s_action_delete = 'Delete'; + $s_action_archive = 'Archive'; + $s_action_edit = 'Edit'; ?> |
From: <vb...@us...> - 2002-09-06 17:03:43
|
Update of /cvsroot/webnotes/webnotes/doc In directory usw-pr-cvs1:/tmp/cvs-serv1513/doc Modified Files: ROADMAP Log Message: - Some items were moved from the ROADMAP to webnotes.sf.net/mantis - Added action.php page to allow executing actions through links. - Added link_api.php to easily construct the links to trigger such actions. - Implemented admin_pending.php to allow the moderator to view all notes (grouped by page), and be able to accept/reject in any order. - Change the admin.php to link to admin_pending.php, this is much better for accepting / rejecting, but this causes the loss of the edit functionality (for now). - Moved css_inc.php to core/ - Added some strings to English language - Modified .cvsignore files to ignore PHPEdit temporary files. Index: ROADMAP =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ROADMAP,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- ROADMAP 6 Sep 2002 05:17:00 -0000 1.7 +++ ROADMAP 6 Sep 2002 17:03:37 -0000 1.8 @@ -8,29 +8,20 @@ 2.0.0 * General cleanup of the code / rewrite. + * A new administrator interface + * Introduce moderation interface * XHTML compliance - * Support compression / output buffering * Support for themes with a php.net theme * Support MD5 password encryption (by default) * LDAP Support * Support direct links to specific notes * Database schema modifications - * Revise the directory structure - * Indexing - * Support indexing of one file - * Support indexing of a directory without recursing into sub-directories. - * Support using a mask to match against (this should work with the one file, - one dir, and recursive). + * Indexing page * Add a link next to each file to open it for viewing. * Differentiate between newly submitted notes, and notes that are hidden by the admin. * Explorer look'n'feel. - * Queue - * List all message in the queue grouped by page. - * The moderator can accept them in any order. - * The moderator can accept / reject / or keep in queue. * Infrastructure: * A new website with demo for all available themes + admin demo - * Install Mantis Bugtracker under http://webnotes.sf.net/mantis (http://mantisbt.sf.net) * API mode for plugability into existing systems. * Add note on how to parse HTML files through the PHP interpreter. * Add IP/IP range blocking. @@ -56,8 +47,6 @@ * Be able to reverse the display order (vb: them may already be supported) * Support for user supplied CSS. (vb: value to be confirmed) * Consider re-using some APIs like config_api.php / lang_api.php / database_api.php / php_api.php / gpc_api.php from mantisbt. - * Revisit code to match Mantis standards. For example, change all ? to ?php. * Add access_api.php - note_accept() / decline() / update() / delete() should check the access level. * Support displaying queued notes on the page in case of moderators. There should be an accept/reject links on the note and it should be in a different color. - * Create a classic theme which looks exactly like phpWebnotes 1.0.0. * Consider supporting html only pages. This can be done by a php loader page + some other tricks (output buffering?) |
From: <pre...@us...> - 2002-09-06 05:17:04
|
Update of /cvsroot/webnotes/webnotes/doc In directory usw-pr-cvs1:/tmp/cvs-serv10950 Modified Files: ROADMAP Log Message: added ideas for 2.0.0 Index: ROADMAP =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ROADMAP,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ROADMAP 5 Sep 2002 17:30:30 -0000 1.6 +++ ROADMAP 6 Sep 2002 05:17:00 -0000 1.7 @@ -11,7 +11,7 @@ * XHTML compliance * Support compression / output buffering * Support for themes with a php.net theme - * Support MD5 password encryption + * Support MD5 password encryption (by default) * LDAP Support * Support direct links to specific notes * Database schema modifications @@ -31,6 +31,9 @@ * Infrastructure: * A new website with demo for all available themes + admin demo * Install Mantis Bugtracker under http://webnotes.sf.net/mantis (http://mantisbt.sf.net) + * API mode for plugability into existing systems. + * Add note on how to parse HTML files through the PHP interpreter. + * Add IP/IP range blocking. 2.0.1 * Language Localisation (English, French, Italian, German) |
From: <vb...@us...> - 2002-09-05 22:44:37
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv17588 Added Files: user_api.php util_api.php Log Message: Added user_api.php / util_api.php which were missing from the last commit. --- NEW FILE: user_api.php --- <?php # phpWebNotes - a php based note addition system # Copyright (C) 2000 Kenzaburo Ito - ke...@30... # 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: user_api.php,v 1.1 2002/09/05 22:44:33 vboctor Exp $ # -------------------------------------------------------- ########################################################################### ### USER API ### ########################################################################### ### -------------------- function get_user_info_arr( $p_string_cookie_val ) { global $g_phpWN_user_table; $c_string_cookie_val = db_prepare_string( $p_string_cookie_val ); $query = "SELECT * FROM $g_phpWN_user_table WHERE cookie_string='$c_string_cookie_val'"; $result = db_query( $query ); return db_fetch_array( $result ); } ?> --- NEW FILE: util_api.php --- <?php # phpWebNotes - a php based note addition system # Copyright (C) 2000 Kenzaburo Ito - ke...@30... # 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: util_api.php,v 1.1 2002/09/05 22:44:34 vboctor Exp $ # -------------------------------------------------------- ########################################################################### # Utilities API ########################################################################### ### -------------------- function sql_to_unix_time( $p_timeString ) { return mktime( substr( $p_timeString, 8, 2 ), substr( $p_timeString, 10, 2 ), substr( $p_timeString, 12, 2 ), substr( $p_timeString, 4, 2 ), substr( $p_timeString, 6, 2 ), substr( $p_timeString, 0, 4 ) ); } ### -------------------- ?> |
From: <vb...@us...> - 2002-09-05 17:30:33
|
Update of /cvsroot/webnotes/webnotes/themes/classic In directory usw-pr-cvs1:/tmp/cvs-serv29848/themes/classic Added Files: theme_api.php Log Message: - Set the PHP minimum requirement to 4.0.6 - Removed the definition of DIRECTORY_SEPARATOR - Partial support for themes ... still need to support the add form. - All functions are now moved out of api.php. - Some to do work was moved out of the roadmap and into http://webnotes.sf.net/mantis (bug tracker). --- NEW FILE: theme_api.php --- <? # phpWebNotes - a php based note addition system # Copyright (C) 2000 Kenzaburo Ito - ke...@30... # 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: theme_api.php,v 1.1 2002/09/05 17:30:30 vboctor Exp $ # -------------------------------------------------------- ######################################################################### # This is an empty template to be used to create new themes. # To create a new theme, please follow the following steps: # - Create a directory under the themes directory with the theme name. # - Make a copy of this file under the new theme directory # - Assign $g_theme to the theme name (not the full path) in # core/custom_config_inc.php ######################################################################### # The path to the api.php is calculated assume this file resides in a sub-directory # under themes. For example, themes/phpnet/. require_once ( dirname( dirname( dirname( __FILE__ ) ) ) . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'api.php' ); # Identifies the version of the theme. This will allow the phpWebNotes # engine in the future to support themes that are designed for older # versions of phpWebNotes. function theme_version() { return (1); } # This function is called before printing any notes to the page. function theme_notes_start( $p_page ) { global $g_table_border_color, $g_header_color, $g_white_color, $s_user_notes; echo <<<EOT <div align="center"> <table bgcolor="$g_table_border_color" width="640" cellspacing="1" border="0" cellpadding="3"> <tr bgcolor="$g_header_color"> <td align="center"> <strong>$s_user_notes</strong> </td> </tr> <tr bgcolor="$g_white_color" height="2"> <td></td> </tr> EOT; } # This function is called for every note. The note information # are all included in the associative array that is passed to the # function. The theme should check that a field is defined in # the array before using it. function theme_notes_echo( $p_page, $p_note_info_array ) { global $g_primary_dark_color, $g_primary_light_color, $g_white_color; if ( isset( $p_note_info_array['email'] ) ) { $t_email = $p_note_info_array['email']; } else { $t_email = ''; } if ( isset( $p_note_info_array['date'] ) ) { $t_date = $p_note_info_array['date']; } else { $t_date = ''; } if ( isset( $p_note_info_array['note'] ) ) { $t_note = $p_note_info_array['note']; } else { $t_note = ''; } echo <<<EOT <tr bgcolor="$g_primary_dark_color"> <td> <em><a href="mailto:$t_email">$t_email</a></em> - $t_date</td> </tr> <tr bgcolor="$g_primary_light_color"> <td><pre>$t_note</pre></td> </tr> <tr bgcolor="$g_white_color" height="2"> <td></td> </tr> EOT; } # This function is called after all notes are echo'ed. function theme_notes_end( $p_page ) { global $g_primary_dark_color, $g_note_add_page, $g_admin_manage_notes, $g_admin_page, $s_add_note_link, $s_manage, $s_admin; $c_url = urlencode( $p_page ); $t_page_id = get_page_id( $p_page ); echo <<<EOT <tr bgcolor="$g_primary_dark_color"> <td align="right"> <a href="$g_note_add_page?f_page_id=$t_page_id&f_url=$c_url">$s_add_note_link</a> EOT; if ( is_moderator() ) { echo <<<EOT | <a href="$g_admin_manage_notes?f_page_id=$t_page_id&f_url=$c_url">$s_manage</a> | <a href="$g_admin_page">$s_admin</a> EOT; } echo <<<EOT </td> </tr> </table> </div> EOT; } # This function is called if the current page has no notes associated # with it. In this case theme_notes_start() and theme_notes_end() # APIs are not called. function theme_notes_none( $p_page ) { theme_notes_start( $p_page ); theme_notes_end( $p_page ); } # This function is called if the current page was not indexed function theme_not_indexed( $p_page ) { global $g_administrator_email, $s_not_indexed_part1, $s_administrator, $s_not_indexed_part2; echo <<<EOT <div> $s_not_indexed_part1 <a href="mailto:$g_administrator_email">$s_administrator</a> $s_not_indexed_part2 </div> EOT; } ?> |
From: <vb...@us...> - 2002-09-05 17:30:33
|
Update of /cvsroot/webnotes/webnotes/themes In directory usw-pr-cvs1:/tmp/cvs-serv29848/themes Modified Files: theme_api.php Log Message: - Set the PHP minimum requirement to 4.0.6 - Removed the definition of DIRECTORY_SEPARATOR - Partial support for themes ... still need to support the add form. - All functions are now moved out of api.php. - Some to do work was moved out of the roadmap and into http://webnotes.sf.net/mantis (bug tracker). Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/theme_api.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- theme_api.php 5 Sep 2002 06:25:20 -0000 1.2 +++ theme_api.php 5 Sep 2002 17:30:30 -0000 1.3 @@ -20,7 +20,8 @@ # The path to the api.php is calculated assume this file resides in a sub-directory # under themes. For example, themes/phpnet/. - require_once ( dirname( dirname( dirname( __FILE__ ) ) ) . DIRECTORY_SEPARATOR . 'api.php' ); + require_once ( dirname( dirname( dirname( __FILE__ ) ) ) . DIRECTORY_SEPARATOR . + 'core' . DIRECTORY_SEPARATOR . 'api.php' ); # Identifies the version of the theme. This will allow the phpWebNotes # engine in the future to support themes that are designed for older |
From: <vb...@us...> - 2002-09-05 17:30:32
|
Update of /cvsroot/webnotes/webnotes/doc In directory usw-pr-cvs1:/tmp/cvs-serv29848/doc Modified Files: ROADMAP Log Message: - Set the PHP minimum requirement to 4.0.6 - Removed the definition of DIRECTORY_SEPARATOR - Partial support for themes ... still need to support the add form. - All functions are now moved out of api.php. - Some to do work was moved out of the roadmap and into http://webnotes.sf.net/mantis (bug tracker). Index: ROADMAP =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ROADMAP,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- ROADMAP 5 Sep 2002 14:13:00 -0000 1.5 +++ ROADMAP 5 Sep 2002 17:30:30 -0000 1.6 @@ -13,7 +13,6 @@ * Support for themes with a php.net theme * Support MD5 password encryption * LDAP Support - * Support for cross-reference from one note to the other * Support direct links to specific notes * Database schema modifications * Revise the directory structure @@ -23,8 +22,6 @@ * Support using a mask to match against (this should work with the one file, one dir, and recursive). * Add a link next to each file to open it for viewing. - * Support un-indexing a page... this will cause all notes for it to be lost. - * Support deleting notes (to be used after they are valid notes are integrated into the main document) * Differentiate between newly submitted notes, and notes that are hidden by the admin. * Explorer look'n'feel. * Queue @@ -60,3 +57,4 @@ * Add access_api.php - note_accept() / decline() / update() / delete() should check the access level. * Support displaying queued notes on the page in case of moderators. There should be an accept/reject links on the note and it should be in a different color. * Create a classic theme which looks exactly like phpWebnotes 1.0.0. + * Consider supporting html only pages. This can be done by a php loader page + some other tricks (output buffering?) |
From: <vb...@us...> - 2002-09-05 17:30:32
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv29848/core Modified Files: api.php config_inc.php note_api.php php_api.php Log Message: - Set the PHP minimum requirement to 4.0.6 - Removed the definition of DIRECTORY_SEPARATOR - Partial support for themes ... still need to support the add form. - All functions are now moved out of api.php. - Some to do work was moved out of the roadmap and into http://webnotes.sf.net/mantis (bug tracker). Index: api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/api.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- api.php 5 Sep 2002 06:25:19 -0000 1.14 +++ api.php 5 Sep 2002 17:30:29 -0000 1.15 @@ -1,4 +1,4 @@ -<? +<?php # phpWebNotes - a php based note addition system # Copyright (C) 2000 Kenzaburo Ito - ke...@30... # 2002 Webnotes Team - web...@so... @@ -13,14 +13,6 @@ ### INCLUDES ### ########################################################################### - if ( !defined( 'DIRECTORY_SEPARATOR' ) ) { - if (substr(php_uname(), 0, 7) == 'Windows') { - define('DIRECTORY_SEPARATOR', '\\'); - } else { - define('DIRECTORY_SEPARATOR', '/'); - } - } - $t_path_main = dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR; $t_path_core = $t_path_main . 'core' . DIRECTORY_SEPARATOR; @@ -48,173 +40,10 @@ require_once( $t_path_core . 'access_api.php' ); require_once( $t_path_core . 'page_api.php' ); require_once( $t_path_core . 'html_api.php' ); - - ########################################################################### - ### FUNCTIONS ### - ########################################################################### - - ########################################################################### - # Print API - ########################################################################### - ### -------------------- - function print_web_notes( $p_file, $p_url ) { - global $g_hostname, $g_db_username, $g_db_password, $g_database_name, - $g_note_add_page, $g_admin_manage_notes, - $g_table_border_color, $g_primary_dark_color, $g_white_color, - $g_header_color, $g_admin_page, - $g_phpWN_note_table, $g_phpWN_page_table, - $s_user_notes, $s_add_note_link, - $s_manage, $s_admin; - - PRINT "<br />"; - PRINT "<div align=\"center\">"; - - $t_page_id = get_page_id( $p_file ); - if ( $t_page_id === '' ) { - PRINT "$s_not_indexed_part1 <a href=\"mailto:$g_administrator_email\">$s_administrator</a> $s_not_indexed_part2"; - } else { - $c_url = urlencode( $p_url ); - - PRINT "<table bgcolor=\"$g_table_border_color\" width=\"640\" cellspacing=\"1\" border=\"0\" cellpadding=\"3\">"; - PRINT "<tr bgcolor=\"$g_header_color\">"; - PRINT "<td align=\"center\">"; - PRINT "<strong>$s_user_notes</strong>"; - PRINT "</td>"; - PRINT "</tr>"; - PRINT "<tr bgcolor=\"$g_white_color\" height=\"2\">"; - PRINT "<td>"; - PRINT "</td>"; - PRINT "</tr>"; - note_print_all( $p_file ); - PRINT "<tr bgcolor=\"$g_primary_dark_color\">"; - PRINT "<td align=\"right\">"; - PRINT "<a href=\"$g_note_add_page?f_page_id=$t_page_id&f_url=$c_url\">$s_add_note_link</a>"; - if ( is_moderator() ) { - PRINT " | <a href=\"$g_admin_manage_notes?f_page_id=$t_page_id&f_url=$c_url\">$s_manage</a>"; - PRINT " | <a href=\"$g_admin_page\">$s_admin</a>"; - } - PRINT "</td>"; - PRINT "</tr>"; - PRINT "</table>"; - } - PRINT "</div>"; - } - ### -------------------- - ########################################################################### - # Date API - ########################################################################### - ### -------------------- - function sql_to_unix_time( $p_timeString ) { - return mktime( substr( $p_timeString, 8, 2 ), - substr( $p_timeString, 10, 2 ), - substr( $p_timeString, 12, 2 ), - substr( $p_timeString, 4, 2 ), - substr( $p_timeString, 6, 2 ), - substr( $p_timeString, 0, 4 ) ); - } - ### -------------------- - ########################################################################### - ### Function API ### - ########################################################################### - ### -------------------- - function get_user_info_arr( $p_string_cookie_val ) { - global $g_phpWN_user_table; - - $c_string_cookie_val = db_prepare_string( $p_string_cookie_val ); - - $query = "SELECT * - FROM $g_phpWN_user_table - WHERE cookie_string='$c_string_cookie_val'"; - $result = db_query( $query ); - return db_fetch_array( $result ); - } - ### -------------------- - function print_manage_notes($p_page_id, $p_url) { - global $g_primary_light_color, $g_primary_dark_color, - $g_white_color, $g_header_color, - $g_admin_manage_notes, - $g_phpWN_note_table, - $s_date, $s_email, $s_ip, $s_note, - $s_delete_button, $s_update_button; - - $c_page_id = db_prepare_int( $p_page_id ); - - $query = "SELECT * - FROM $g_phpWN_note_table - WHERE page_id='$c_page_id' - ORDER BY date_submitted"; - $result = db_query( $query ); - $num_notes = db_num_rows( $result ); - - for ( $i = 0; $i < $num_notes; $i++ ) { - $row = db_fetch_array( $result ); - extract( $row, EXTR_PREFIX_ALL, "v" ); - $v_note = string_edit( $v_note ); - - # @@@@ The HTML below has some problems... revise later - echo <<<EOT - <form method="post" action="$g_admin_manage_notes"> - <input type="hidden" name="f_action" value="update" /> - <input type="hidden" name="f_id" value="$v_id" /> - <input type="hidden" name="f_page_id" value="$p_page_id" /> - <input type="hidden" name="f_url" value="$p_url" /> - <tr bgcolor="$g_white_color" height="4"> - <td colspan="2"></td> - </tr> - <tr bgcolor="$g_primary_light_color"> - <td>$s_date</td> - <td>$v_date_submitted</td> - </tr> - <tr bgcolor="$g_primary_dark_color"> - <td>$s_email</td> - <td><input type="text" name="f_email" size="64" maxlength="64" value="$v_email" /></td> - </tr> - <tr bgcolor="$g_primary_light_color"> - <td>$s_ip</td> - <td>$v_ip</td> - </tr> - <tr bgcolor="$g_primary_dark_color"> - <td>$s_note</td> - <td><textarea name="f_note" cols="72" rows="16">$v_note</textarea></td> - </tr> - <tr bgcolor="$g_white_color"> - <td colspan="2"> - <table width="100%"> - <tr> - <td> - <td width="50%" align="center"> - <input type="submit" value="$s_update_button" /> - </td> - </form> - <td width="50%" align="center"> - <form method="post" action="$g_admin_manage_notes"> - <input type="hidden" name="f_action" value="delete" /> - <input type="hidden" name="f_id" value="$v_id" /> - <input type="hidden" name="f_page_id" value="$p_page_id" /> - <input type="hidden" name="f_url" value="$p_url" /> - <input type="submit" value="$s_delete_button" /> - </form> - </td> - </tr> - </table> - </td> - </tr> - - -EOT; - } - } - ### -------------------- - function select_queued_notes_arr() { - global $g_phpWN_note_table, $g_phpWN_page_table; - - $query = "SELECT n.*, p.page - FROM $g_phpWN_note_table n, $g_phpWN_page_table p - WHERE n.visible='0' AND n.page_id=p.id - LIMIT 1"; - $result = db_query( $query ); - return db_fetch_array( $result ); - } + require_once( $t_path_core . 'user_api.php' ); + require_once( $t_path_core . 'util_api.php' ); + require_once( $t_path_main . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $g_theme . + DIRECTORY_SEPARATOR . 'theme_api.php' ); ########################################################################### ### END ### Index: config_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_inc.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- config_inc.php 5 Sep 2002 14:13:00 -0000 1.6 +++ config_inc.php 5 Sep 2002 17:30:29 -0000 1.7 @@ -60,6 +60,9 @@ ### change to language you want... choices are: ### english $g_language = 'english'; + + ### Theme to be used + $g_theme = 'classic'; ### Customize this file for the add message page $g_note_add_include = 'note_add_msg_inc.php'; Index: note_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/note_api.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- note_api.php 4 Sep 2002 15:03:50 -0000 1.3 +++ note_api.php 5 Sep 2002 17:30:29 -0000 1.4 @@ -78,10 +78,7 @@ } ### -------------------- function note_print_all( $p_page_name ) { - global $g_hostname, $g_db_username, $g_db_password, $g_database_name, - $g_table_border_color, $g_primary_dark_color, - $g_primary_light_color, $g_white_color, - $g_phpWN_note_table, $g_phpWN_page_table, + global $g_phpWN_note_table, $g_phpWN_page_table, $g_note_order; $c_page_name = db_prepare_string( $p_page_name ); @@ -94,28 +91,115 @@ $result = db_query( $query ); $entry_count = db_num_rows( $result ); - if ( $entry_count>0 ) { - for ( $i = 0; $i < $entry_count; $i++ ) { - $row = db_fetch_array( $result ); - extract( $row, EXTR_PREFIX_ALL, "v" ); + for ( $i = 0; $i < $entry_count; $i++ ) { + $row = db_fetch_array( $result ); + extract( $row, EXTR_PREFIX_ALL, 'v' ); - $v_email = db_unprepare_string( $v_email ); - $v_note = nl2br( string_preserve_spaces ( db_unprepare_string( $v_note ) ) ); - $date = date( "M, d Y H:i", sql_to_unix_time( $v_date_submitted ) ); + $info['email'] = db_unprepare_string( $v_email ); + $info['note'] = nl2br( string_preserve_spaces ( db_unprepare_string( $v_note ) ) ); + $info['date'] = date( 'M, d Y H:i', sql_to_unix_time( $v_date_submitted ) ); + + theme_notes_echo( $p_page_name, $info ); + } + } + ### -------------------- + function select_queued_notes_arr() { + global $g_phpWN_note_table, $g_phpWN_page_table; + + $query = "SELECT n.*, p.page + FROM $g_phpWN_note_table n, $g_phpWN_page_table p + WHERE n.visible='0' AND n.page_id=p.id + LIMIT 1"; + $result = db_query( $query ); + return db_fetch_array( $result ); + } + ### -------------------- + function print_manage_notes( $p_page_id, $p_url ) { + global $g_primary_light_color, $g_primary_dark_color, + $g_white_color, $g_header_color, + $g_admin_manage_notes, + $g_phpWN_note_table, + $s_date, $s_email, $s_ip, $s_note, + $s_delete_button, $s_update_button; + + $c_page_id = db_prepare_int( $p_page_id ); + + $query = "SELECT * + FROM $g_phpWN_note_table + WHERE page_id='$c_page_id' + ORDER BY date_submitted"; + $result = db_query( $query ); + $num_notes = db_num_rows( $result ); + + for ( $i = 0; $i < $num_notes; $i++ ) { + $row = db_fetch_array( $result ); + extract( $row, EXTR_PREFIX_ALL, "v" ); + $v_note = string_edit( $v_note ); + + # @@@@ The HTML below has some problems... revise later + echo <<<EOT + <form method="post" action="$g_admin_manage_notes"> + <input type="hidden" name="f_action" value="update" /> + <input type="hidden" name="f_id" value="$v_id" /> + <input type="hidden" name="f_page_id" value="$p_page_id" /> + <input type="hidden" name="f_url" value="$p_url" /> + <tr bgcolor="$g_white_color" height="4"> + <td colspan="2"></td> + </tr> + <tr bgcolor="$g_primary_light_color"> + <td>$s_date</td> + <td>$v_date_submitted</td> + </tr> + <tr bgcolor="$g_primary_dark_color"> + <td>$s_email</td> + <td><input type="text" name="f_email" size="64" maxlength="64" value="$v_email" /></td> + </tr> + <tr bgcolor="$g_primary_light_color"> + <td>$s_ip</td> + <td>$v_ip</td> + </tr> + <tr bgcolor="$g_primary_dark_color"> + <td>$s_note</td> + <td><textarea name="f_note" cols="72" rows="16">$v_note</textarea></td> + </tr> + <tr bgcolor="$g_white_color"> + <td colspan="2"> + <table width="100%"> + <tr> + <td> + <td width="50%" align="center"> + <input type="submit" value="$s_update_button" /> + </td> + </form> + <td width="50%" align="center"> + <form method="post" action="$g_admin_manage_notes"> + <input type="hidden" name="f_action" value="delete" /> + <input type="hidden" name="f_id" value="$v_id" /> + <input type="hidden" name="f_page_id" value="$p_page_id" /> + <input type="hidden" name="f_url" value="$p_url" /> + <input type="submit" value="$s_delete_button" /> + </form> + </td> + </tr> + </table> + </td> + </tr> - echo <<<EOT - <tr bgcolor="$g_primary_dark_color"> - <td> <em><a href="mailto:$v_email">$v_email</a></em> - $v_date_submitted</td> - </tr> - <tr bgcolor="$g_primary_light_color"> - <td><pre>$v_note</pre></td> - </tr> - <tr bgcolor="$g_white_color" height="2"> - <td></td> - </tr> EOT; - } + } + } + ### -------------------- + function print_web_notes( $p_file, $p_url ) { + echo '<br />'; + + $t_page_id = get_page_id( $p_file ); + if ( $t_page_id === '' ) { + theme_not_indexed( $p_page ); + } else { + theme_notes_start( $p_file ); + note_print_all( $p_file ); + theme_notes_end( $p_file ); } } ### -------------------- Index: php_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/php_api.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- php_api.php 3 Sep 2002 22:30:07 -0000 1.3 +++ php_api.php 5 Sep 2002 17:30:29 -0000 1.4 @@ -17,7 +17,7 @@ ########################################################################### # Constant for our minimum required PHP version - define( 'PHP_MIN_VERSION', '4.0.3' ); + define( 'PHP_MIN_VERSION', '4.0.6' ); # -------------------- # Returns true if the current PHP version is higher than the one @@ -42,7 +42,7 @@ # Enforce our minimum requirements if ( ! php_version_at_least( PHP_MIN_VERSION ) ) { ob_end_clean(); - echo '<b>Your version of PHP is too old. Webnotes requires PHP version ' . PHP_MIN_VERSION . ' or newer</b>'; + echo '<strong>Your version of PHP is too old. Webnotes requires PHP version ' . PHP_MIN_VERSION . ' or newer</strong><br />'; phpinfo(); die(); } @@ -75,18 +75,5 @@ if ( false == ini_get( 'register_globals' ) ) { extract( $_REQUEST ); extract( $_SERVER ); - } - - ######################## - # PHP Constants - ######################## - - # Directory separator was introduced in PHP 4.0.6 - if ( !defined( 'DIRECTORY_SEPARATOR' ) ) { - if (substr(php_uname(), 0, 7) == 'Windows') { - define('DIRECTORY_SEPARATOR', '\\'); - } else { - define('DIRECTORY_SEPARATOR', '/'); - } } ?> |
From: <vb...@us...> - 2002-09-05 17:28:02
|
Update of /cvsroot/webnotes/webnotes/themes/classic In directory usw-pr-cvs1:/tmp/cvs-serv29021/classic Log Message: Directory /cvsroot/webnotes/webnotes/themes/classic added to the repository |
From: <vb...@us...> - 2002-09-05 14:13:35
|
Update of /cvsroot/webnotes/webnotes/doc In directory usw-pr-cvs1:/tmp/cvs-serv19006/doc Modified Files: ROADMAP Log Message: - Added $g_table_title_color which was missing from config_inc.php - Cleanup of page_api.php - Additions to roadmap. - Cleanup of admin_view_queue.php - Fixed two undefined variables in logout.php. Index: ROADMAP =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ROADMAP,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ROADMAP 5 Sep 2002 06:25:19 -0000 1.4 +++ ROADMAP 5 Sep 2002 14:13:00 -0000 1.5 @@ -51,6 +51,7 @@ To-Do list: + * Index pages by url rather than path, this way hyperlinks to the pages goes through Web/PHP servers rather than directly. * Be able to require user logins (vb: currently login check is disabled) * Be able to reverse the display order (vb: them may already be supported) * Support for user supplied CSS. (vb: value to be confirmed) |
From: <vb...@us...> - 2002-09-05 14:13:04
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv19006/core Modified Files: config_inc.php page_api.php Log Message: - Added $g_table_title_color which was missing from config_inc.php - Cleanup of page_api.php - Additions to roadmap. - Cleanup of admin_view_queue.php - Fixed two undefined variables in logout.php. Index: config_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_inc.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- config_inc.php 5 Sep 2002 06:25:19 -0000 1.5 +++ config_inc.php 5 Sep 2002 14:13:00 -0000 1.6 @@ -71,6 +71,7 @@ ### Colors $g_table_border_color = '#aaaaaa'; + $g_table_title_color = '#cccccc'; # temporary color, should be changed $g_primary_dark_color = '#d8d8d8'; $g_primary_light_color = '#e8e8e8'; $g_white_color = '#ffffff'; Index: page_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/page_api.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- page_api.php 4 Sep 2002 13:36:58 -0000 1.2 +++ page_api.php 5 Sep 2002 14:13:00 -0000 1.3 @@ -11,39 +11,39 @@ ### -------------------- function get_page_id( $p_file ) { - global $g_hostname, $g_db_username, $g_db_password, $g_database_name, - $g_phpWN_page_table; + global $g_phpWN_page_table; - $c_file = string_safe ( $p_file ); + $c_file = db_prepare_string( $p_file ); $query = "SELECT id FROM $g_phpWN_page_table - WHERE page='$c_file'"; + WHERE page='$c_file' + LIMIT 1"; + $result = db_query( $query ); if ( db_num_rows( $result) > 0 ) { return db_result( $result, 0, 0 ); } - else { - return ''; - } + + return false; } ### -------------------- function get_page_name( $p_id ) { - global $g_hostname, $g_db_username, $g_db_password, $g_database_name, - $g_phpWN_page_table; + global $g_phpWN_page_table; - $c_id = (integer)$p_id; + $c_id = db_prepare_int( $p_id ); $query = "SELECT page FROM $g_phpWN_page_table - WHERE id='$c_id'"; + WHERE id='$c_id' + LIMIT 1"; + $result = db_query( $query ); if ( db_num_rows( $result) > 0 ) { return db_result( $result, 0, 0 ); } - else { - return ''; - } + + return false; } ### -------------------- ### Allows for path navigation to choose base dir @@ -66,39 +66,35 @@ } ### -------------------- function add_file( $p_page_name ) { + if ( get_page_id( $p_page_name ) === false ) { + return 0; + } + global $g_phpWN_page_table; - $c_page_name = string_safe( $p_page_name ); - - $query = "SELECT COUNT(*) - FROM $g_phpWN_page_table - WHERE page='$c_page_name'"; - $result = db_query( $query ); - $count = db_result( $result, 0, 0 ); - if ( $count == 1 ) { - return 0; - } + $c_page_name = db_prepare_string( $p_page_name ); $query = "INSERT INTO $g_phpWN_page_table ( id, date_indexed, page ) VALUES - (null, NOW(), '$c_page_name' )"; + ( null, NOW(), '$c_page_name' )"; $result = db_query( $query ); + return $result; } ### -------------------- - function index_files( $path='' ) { + function index_files( $p_path='', $p_recursive=true ) { $dirs = array(); $files = array(); - $handle = opendir( $path ); + $handle = opendir( $p_path ); while ( $file = readdir( $handle ) ) { if ( ( $file == '.' ) || ( $file == '..' ) ) { continue; } - if ( is_dir( $path . $file ) ) { + if ( is_dir( $p_path . $file ) ) { $dirs[] = $file; } else { $files[] = $file; @@ -109,13 +105,19 @@ sort( $files ); foreach ( $files as $file ) { - if ( add_file( $path . $file ) ) { - echo "$path$file<br />"; + $t_filename = $p_path . $file; + if ( add_file( $t_filename ) ) { + echo "$t_filename<br />"; } } + # if not recursive return before processing sub-directories + if ( !$p_recursive ) { + return; + } + foreach ( $dirs as $dir ) { - index_files( $path . $dir . DIRECTORY_SEPARATOR ); + index_files( $p_path . $dir . DIRECTORY_SEPARATOR ); } } ### -------------------- |
From: <vb...@us...> - 2002-09-05 14:13:03
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv19006 Modified Files: admin_index_files.php admin_view_queue.php logout.php Log Message: - Added $g_table_title_color which was missing from config_inc.php - Cleanup of page_api.php - Additions to roadmap. - Cleanup of admin_view_queue.php - Fixed two undefined variables in logout.php. Index: admin_index_files.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_index_files.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- admin_index_files.php 4 Sep 2002 13:36:57 -0000 1.12 +++ admin_index_files.php 5 Sep 2002 14:12:57 -0000 1.13 @@ -46,13 +46,24 @@ </td> </tr> <? - if ( isset( $f_action ) && ( $f_action == "index" ) ) { + if ( isset( $f_action_index ) ) { ?> <tr bgcolor="<? echo $g_white_color ?>"> <td> <? echo $s_indexed_following_files ?>: <br /> - <? index_files( $f_dir ) ?> + <? index_files( $f_dir, false ) ?> + </td> +</tr> +<? } ?> +<? + if ( isset( $f_action_index_tree ) ) { +?> +<tr bgcolor="<? echo $g_white_color ?>"> + <td> + <? echo $s_indexed_following_files ?>: + <br /> + <? index_files( $f_dir, true ) ?> </td> </tr> <? } ?> @@ -65,12 +76,12 @@ </tr> <tr bgcolor="<? echo $g_white_color ?>" align="center"> <form method="post" action="<? echo $g_admin_index_files ?>"> - <input type="hidden" name="f_action" value="index" /> <input type="hidden" name="f_dir" value="<? echo $f_dir?>" /> <td> <? echo $s_index_msg ?> <br /> - <input type="submit" value="<? echo $s_index_files_link ?>" /> + <input type="submit" name="f_action_index" value="Index Current Dir" /> + <input type="submit" name="f_action_index_tree" value="<? echo $s_index_files_link ?>" /> </td> </form> </tr> Index: admin_view_queue.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_view_queue.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- admin_view_queue.php 4 Sep 2002 15:03:49 -0000 1.11 +++ admin_view_queue.php 5 Sep 2002 14:12:58 -0000 1.12 @@ -1,4 +1,4 @@ -<? +<?php # phpWebNotes - a php based note addition system # Copyright (C) 2000 Kenzaburo Ito - ke...@30... # 2002 Webnotes Team - web...@so... @@ -8,19 +8,20 @@ # -------------------------------------------------------- # $Id$ # -------------------------------------------------------- -?> -<? include( "core" . DIRECTORY_SEPARATOR . "api.php" ) ?> -<? login_cookie_check() ?> -<? + + require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' ); + + login_cookie_check(); + if ( !isset ( $f_action ) ) { - $f_action = "none"; + $f_action = 'none'; } - if ( $f_action=="accept" ) { + if ( $f_action == 'accept' ) { note_accept( $f_id ); } - if ( $f_action=="decline" ) { + if ( $f_action == 'decline' ) { note_decline( $f_id ); } @@ -31,91 +32,94 @@ } $queue_count = note_queue_count(); -?> -<? print_html_top() ?> -<? print_head_top() ?> -<? print_title( $g_window_title ) ?> -<? print_css( $g_css_inc_file ) ?> -<? print_head_bottom() ?> -<? print_body_top() ?> -<? print_header( $g_page_title ) ?> -<? print_top_page( $g_top_page_inc ) ?> -<? print_admin_menu() ?> + print_html_top(); + print_head_top(); + print_title( $g_window_title ); + print_css( $g_css_inc_file ); + print_head_bottom(); + print_body_top(); + print_header( $g_page_title ); + print_top_page( $g_top_page_inc ); -<table bgcolor="<? echo $g_table_border_color ?>" width="75%" cellspacing="1" border="0"> -<tr bgcolor="<? echo $g_header_color ?>"> - <td colspan="2"> - <strong><? echo $s_view_queue_title ?></strong> - </td> -</tr> -<tr bgcolor="<? echo $g_white_color ?>"> - <td colspan="2" align="right"> - [<strong><? echo $queue_count ?></strong>] <? echo $s_items_in_queue ?> - </td> -</tr> -<? if ( $queue_count > 0 ) { ?> -<tr bgcolor="<? echo $g_primary_dark_color ?>"> - <td width="15%" align="center"> - <? $s_page ?> - </td> - <td width="85%"> - <a href="<? echo string_get_url( $v_page ) ?>"><? echo basename( $v_page ) ?></a> - </td> -</tr> -<tr bgcolor="<? echo $g_primary_light_color ?>"> - <td align="center"> - <? echo $s_date ?> - </td> - <td> - <? echo $v_date_submitted ?> - </td> -</tr> -<tr bgcolor="<? echo $g_primary_dark_color ?>"> - <td align=center> - <? echo $s_email ?> - </td> - <td> - <? echo $v_email ?> - </td> -</tr> -<tr bgcolor="<? echo $g_primary_light_color ?>"> - <td align=center> - <? echo $s_ip ?> - </td> - <td> - <? echo $v_ip ?> - </td> -</tr> -<tr bgcolor="<? echo $g_primary_dark_color ?>"> - <td align="center"> - <? echo $s_note ?> - </td> - <form method="post" action="<? echo $g_admin_view_queue ?>"> - <input type="hidden" name="f_action" value="accept" /> - <input type="hidden" name="f_id" value="<? echo $v_id ?>" /> - <td> - <textarea type="text" name="f_note" rows="16" cols="72"><? echo $v_note ?></textarea> - </td> -</tr> -<tr bgcolor="<? echo $g_white_color ?>"> - <td> - </td> - <td> - <table width="100%"> - <tr> - <td width="50%" align="center"> - <input type="submit" value="<? echo $s_accept_link ?>" /> - </td> - </form> - <form method="post" action="<? echo $g_admin_view_queue ?>" /> - <input type="hidden" name="f_action" value="decline" /> - <input type="hidden" name="f_id" value="<? echo $v_id ?>" /> - <td width="50%" align="center"> - <input type="submit" value="<? echo $s_decline_link ?>" /> - </td> - </form> - </tr> + print_admin_menu(); + + # @@@@ The HTML below needs cleanup +?> + <br /> + <table bgcolor="<? echo $g_table_border_color ?>" width="75%" cellspacing="1" border="0"> + <tr bgcolor="<? echo $g_header_color ?>"> + <td colspan="2"> + <strong><? echo $s_view_queue_title ?></strong> + </td> + </tr> + <tr bgcolor="<? echo $g_white_color ?>"> + <td colspan="2" align="right"> + [<strong><? echo $queue_count ?></strong>] <? echo $s_items_in_queue ?> + </td> + </tr> + <? if ( $queue_count > 0 ) { ?> + <tr bgcolor="<? echo $g_primary_dark_color ?>"> + <td width="15%" align="center"> + <? $s_page ?> + </td> + <td width="85%"> + <a href="<? echo string_get_url( $v_page ) ?>"><? echo basename( $v_page ) ?></a> + </td> + </tr> + <tr bgcolor="<? echo $g_primary_light_color ?>"> + <td align="center"> + <? echo $s_date ?> + </td> + <td> + <? echo $v_date_submitted ?> + </td> + </tr> + <tr bgcolor="<? echo $g_primary_dark_color ?>"> + <td align="center"> + <? echo $s_email ?> + </td> + <td> + <? echo $v_email ?> + </td> + </tr> + <tr bgcolor="<? echo $g_primary_light_color ?>"> + <td align=center> + <? echo $s_ip ?> + </td> + <td> + <? echo $v_ip ?> + </td> + </tr> + <tr bgcolor="<? echo $g_primary_dark_color ?>"> + <td align="center"> + <? echo $s_note ?> + </td> + <form method="post" action="<? echo $g_admin_view_queue ?>"> + <input type="hidden" name="f_action" value="accept" /> + <input type="hidden" name="f_id" value="<? echo $v_id ?>" /> + <td> + <textarea type="text" name="f_note" rows="16" cols="72"><? echo $v_note ?></textarea> + </td> + </tr> + <tr bgcolor="<? echo $g_white_color ?>"> + <td> + </td> + <td> + <table width="100%"> + <tr> + <td width="50%" align="center"> + <input type="submit" value="<? echo $s_accept_link ?>" /> + </td> + </form> + <form method="post" action="<? echo $g_admin_view_queue ?>" /> + <input type="hidden" name="f_action" value="decline" /> + <input type="hidden" name="f_id" value="<? echo $v_id ?>" /> + <td width="50%" align="center"> + <input type="submit" value="<? echo $s_decline_link ?>" /> + </td> + </form> + </tr> </table> </td> </tr> @@ -123,7 +127,9 @@ </table> </div> -<? print_footer( __FILE__ ) ?> -<? print_bottom_page( $g_bottom_page_inc ) ?> -<? print_body_bottom() ?> -<? print_html_bottom() ?> \ No newline at end of file +<?php + print_footer( __FILE__ ); + print_bottom_page( $g_bottom_page_inc ); + print_body_bottom(); + print_html_bottom(); +?> \ No newline at end of file Index: logout.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/logout.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- logout.php 5 Sep 2002 06:25:19 -0000 1.10 +++ logout.php 5 Sep 2002 14:12:58 -0000 1.11 @@ -32,7 +32,7 @@ <td bgcolor="$g_table_title_color"><strong>$s_logged_out_msg</strong></td> </tr> <tr bgcolor="$g_white_color"> - <td align="right" bgcolor="$g_primary_color_dark"> + <td align="right" bgcolor="$g_primary_dark_color"> <strong>$s_logout_redirect_msg <a href="$g_logout_redirect_page">Here</a></strong> </td> </tr> |
From: <vb...@us...> - 2002-09-05 06:25:24
|
Update of /cvsroot/webnotes/webnotes/sample In directory usw-pr-cvs1:/tmp/cvs-serv26048/sample Modified Files: webservices.php xml.php Log Message: - Fixed a problem with the default value for $g_absolute_directory - Enhanced the themes template. - Cleanup of admin.php - Did cleaning of parameters before injecting them into SQL in api.php - Updated the roadmap. - Cleanup of logout.php - Cleanup of login_page.php - Cleanup of login.php - Cleanup of note_add.php - Cleanup of note_add_page.php (still more work). - Cleanup of xml.php - Cleanup of webservices.php - Cleanup of index.html Index: webservices.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/webservices.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- webservices.php 4 Sep 2002 13:36:58 -0000 1.1 +++ webservices.php 5 Sep 2002 06:25:20 -0000 1.2 @@ -1,24 +1,24 @@ <html> -<head> -<title>Web services (from Webopedia)</title> -</head> -<body> -<h1>Web services</h1> + <head> + <title>Web services (from Webopedia)</title> + </head> + <body> + <h1>Web services</h1> -<p>The term Web services describes a standardized way of integrating Web-based applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol backbone. XML is used to tag the data, SOAP is used to transfer the data, WSDL is used for describing the services available and UDDI is used for listing what services are available. Used primarily as a means for businesses to communicate with each other and with clients, Web services allow organizations to communicate data without intimate knowledge of each other's IT systems behind the firewall.</p> -<p>Unlike traditional client/server models, such as a Web server/Web page system, Web services do not provide the user with a GUI. Web services instead share business logic, data and processes through a programmatic interface across a network. The applications interface, not the users. Developers can then add the Web service to a GUI (such as a Web page or an executable program) to offer specific functionality to users.</p> + <p>The term Web services describes a standardized way of integrating Web-based applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol backbone. XML is used to tag the data, SOAP is used to transfer the data, WSDL is used for describing the services available and UDDI is used for listing what services are available. Used primarily as a means for businesses to communicate with each other and with clients, Web services allow organizations to communicate data without intimate knowledge of each other's IT systems behind the firewall.</p> + <p>Unlike traditional client/server models, such as a Web server/Web page system, Web services do not provide the user with a GUI. Web services instead share business logic, data and processes through a programmatic interface across a network. The applications interface, not the users. Developers can then add the Web service to a GUI (such as a Web page or an executable program) to offer specific functionality to users.</p> -<p>Web services allow different applications from different sources to communicate with each other without time-consuming custom coding, and because all communication is in XML, Web services are not tied to any one operating system or programming language. For example, Java can talk with Perl, Windows applications can talk with UNIX applications.</p> + <p>Web services allow different applications from different sources to communicate with each other without time-consuming custom coding, and because all communication is in XML, Web services are not tied to any one operating system or programming language. For example, Java can talk with Perl, Windows applications can talk with UNIX applications.</p> -<p>Web services do not require the use of browsers or HTML.</p> + <p>Web services do not require the use of browsers or HTML.</p> -<p>Web services are sometimes called application services.</p> + <p>Web services are sometimes called application services.</p> -<p>The above definition was copied from <a href="http://www.webopedia.com">Webopedia</a>.</p> + <p>The above definition was copied from <a href="http://www.webopedia.com">Webopedia</a>.</p> -<?php - include("../core/api.php"); # replace with actual path - print_web_notes( __FILE__, $PHP_SELF ); -?> -</body> + <?php + include("../core/api.php"); # replace with actual path + print_web_notes( __FILE__, $PHP_SELF ); + ?> + </body> </html> Index: xml.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/xml.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- xml.php 4 Sep 2002 13:36:58 -0000 1.1 +++ xml.php 5 Sep 2002 06:25:20 -0000 1.2 @@ -1,17 +1,17 @@ <html> -<head> -<title>XML (from Webopedia)</title> -</head> -<body> -<h1>XML</h1> + <head> + <title>XML (from Webopedia)</title> + </head> + <body> + <h1>XML</h1> -<p>Short for Extensible Markup Language, a specification developed by the W3C. XML is a pared-down version of SGML, designed especially for Web documents. It allows designers to create their own customized tags, enabling the definition, transmission, validation, and interpretation of data between applications and between organizations.</p> + <p>Short for Extensible Markup Language, a specification developed by the W3C. XML is a pared-down version of SGML, designed especially for Web documents. It allows designers to create their own customized tags, enabling the definition, transmission, validation, and interpretation of data between applications and between organizations.</p> -<p>The above definition was copied from <a href="http://www.webopedia.com">Webopedia</a>.</p> + <p>The above definition was copied from <a href="http://www.webopedia.com">Webopedia</a>.</p> -<?php - include("../core/api.php"); # replace with actual path - print_web_notes( __FILE__, $PHP_SELF ); -?> -</body> + <?php + include("../core/api.php"); # replace with actual path + print_web_notes( __FILE__, $PHP_SELF ); + ?> + </body> </html> |
From: <vb...@us...> - 2002-09-05 06:25:24
|
Update of /cvsroot/webnotes/webnotes/doc In directory usw-pr-cvs1:/tmp/cvs-serv26048/doc Modified Files: ROADMAP Log Message: - Fixed a problem with the default value for $g_absolute_directory - Enhanced the themes template. - Cleanup of admin.php - Did cleaning of parameters before injecting them into SQL in api.php - Updated the roadmap. - Cleanup of logout.php - Cleanup of login_page.php - Cleanup of login.php - Cleanup of note_add.php - Cleanup of note_add_page.php (still more work). - Cleanup of xml.php - Cleanup of webservices.php - Cleanup of index.html Index: ROADMAP =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ROADMAP,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ROADMAP 4 Sep 2002 13:36:58 -0000 1.3 +++ ROADMAP 5 Sep 2002 06:25:19 -0000 1.4 @@ -17,16 +17,26 @@ * Support direct links to specific notes * Database schema modifications * Revise the directory structure - * Language Localisation * Indexing * Support indexing of one file * Support indexing of a directory without recursing into sub-directories. + * Support using a mask to match against (this should work with the one file, + one dir, and recursive). + * Add a link next to each file to open it for viewing. + * Support un-indexing a page... this will cause all notes for it to be lost. + * Support deleting notes (to be used after they are valid notes are integrated into the main document) + * Differentiate between newly submitted notes, and notes that are hidden by the admin. * Explorer look'n'feel. + * Queue + * List all message in the queue grouped by page. + * The moderator can accept them in any order. + * The moderator can accept / reject / or keep in queue. * Infrastructure: * A new website with demo for all available themes + admin demo - * Install Mantis Bugtracker (http://mantisbt.sf.net) - * Setup webnotes-devel news group - * Setup webnotes-cvs news group + * Install Mantis Bugtracker under http://webnotes.sf.net/mantis (http://mantisbt.sf.net) + +2.0.1 + * Language Localisation (English, French, Italian, German) 2.1.0 * New Manual @@ -42,11 +52,10 @@ To-Do list: * Be able to require user logins (vb: currently login check is disabled) - * Be able to reverse the display order + * Be able to reverse the display order (vb: them may already be supported) * Support for user supplied CSS. (vb: value to be confirmed) - * Consider re-using some APIs like config_api.php / lang_api.php / - database_api.php / php_api.php / gpc_api.php from mantisbt. + * Consider re-using some APIs like config_api.php / lang_api.php / database_api.php / php_api.php / gpc_api.php from mantisbt. * Revisit code to match Mantis standards. For example, change all ? to ?php. - * Define ON / OFF for configs - * Add note_api.php and rename methods to note_add(), note_update(), note_delete(), note_accept(), note_decline(), ... * Add access_api.php - note_accept() / decline() / update() / delete() should check the access level. + * Support displaying queued notes on the page in case of moderators. There should be an accept/reject links on the note and it should be in a different color. + * Create a classic theme which looks exactly like phpWebnotes 1.0.0. |