cvs: phpweb(NEW_LOOK_2001) / .htaccess ChangeLog-4.php FAQ.php README.mirror anoncvs.php books.php bug-pwd-finder.php bugs-dos-and-donts.php
bugs-generating-backtrace.php bugs-php3.php bugs.php bugstats.php cfp.php credits.php cvs-php.php cvsup.php docs.php download-logos.php
download-php3.php downloads.php get-user-notes.php index.php license.html links.php manual-lookup.php mirrors.php news.php oldnews.php projects.php
quickref.php search.php sites.php source.php support.php thanks.php tips.php tut.php usage.php /include prepend.inc shared.inc /manual
about-notes.php add-note.php admin-notes.php browse-errata.php index.php phpfi2.php set-magic-cookie.php /manual/html index.php
| From: | Colin Viebrock | Date: | Tue, 06 Feb 2001 22:19:04 +0000 |
| Subject: | cvs: phpweb(NEW_LOOK_2001) / .htaccess ChangeLog-4.php FAQ.php README.mirror anoncvs.php books.php bug-pwd-finder.php bugs-dos-and-donts.php bugs-generating-backtrace.php bugs-php3.php bugs.php bugstats.php cfp.php credits.php cvs-php.php cvsup.php docs.php download-logos.php download-php3.php downloads.php get-user-notes.php index.php license.html links.php manual-lookup.php mirrors.php news.php oldnews.php projects.php quickref.php search.php sites.php source.php support.php thanks.php tips.php tut.php usage.php /include prepend.inc shared.inc /manual about-notes.php add-note.php admin-notes.php browse-errata.php index.php phpfi2.php set-magic-cookie.php /manual/html index.php |
||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-3805@lists.php.net to get a copy of this message | ||
cmv Tue Feb 6 14:19:04 2001 EDT
Added files: (Branch: NEW_LOOK_2001)
/phpweb/include prepend.inc
Removed files:
/phpweb/include shared.inc
Modified files:
/phpweb .htaccess ChangeLog-4.php FAQ.php README.mirror anoncvs.php
books.php bug-pwd-finder.php bugs-dos-and-donts.php
bugs-generating-backtrace.php bugs-php3.php bugs.php
bugstats.php cfp.php credits.php cvs-php.php cvsup.php
docs.php download-logos.php download-php3.php downloads.php
get-user-notes.php index.php license.html links.php
manual-lookup.php mirrors.php news.php oldnews.php
projects.php quickref.php search.php sites.php source.php
support.php thanks.php tips.php tut.php usage.php
/phpweb/manual about-notes.php add-note.php admin-notes.php
browse-errata.php index.php phpfi2.php
set-magic-cookie.php
/phpweb/manual/html index.php
Log:
Add require_once 'prepend.inc' back in again.
That's more than a dozen files ... :(
Index: phpweb/.htaccess diff -u phpweb/.htaccess:1.10.2.1 phpweb/.htaccess:1.10.2.2 --- phpweb/.htaccess:1.10.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/.htaccess Tue Feb 6 14:19:01 2001 @@ -1,6 +1,5 @@ <IfModule mod_php4.c> php_value include_path .:./include:../include:../../include -php_value auto_prepend_file shared.inc php_flag short_open_tag on </IfModule> DirectoryIndex index.php Index: phpweb/ChangeLog-4.php diff -u phpweb/ChangeLog-4.php:1.6.2.1 phpweb/ChangeLog-4.php:1.6.2.2 --- phpweb/ChangeLog-4.php:1.6.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/ChangeLog-4.php Tue Feb 6 14:19:01 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; commonHeader("PHP 4 ChangeLog"); ?> Index: phpweb/FAQ.php diff -u phpweb/FAQ.php:1.1.2.2 phpweb/FAQ.php:1.1.2.3 --- phpweb/FAQ.php:1.1.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/FAQ.php Tue Feb 6 14:19:01 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Frequently Asked Questions"); ?> Index: phpweb/README.mirror diff -u phpweb/README.mirror:1.33.2.1 phpweb/README.mirror:1.33.2.2 --- phpweb/README.mirror:1.33.2.1 Tue Feb 6 12:44:54 2001 +++ phpweb/README.mirror Tue Feb 6 14:19:01 2001 @@ -23,7 +23,6 @@ ServerAdmin yourname@yourdomain.com DocumentRoot /www/htdocs/phpweb php_value include_path .:/www/htdocs/phpweb/include - php_value auto_prepend_file shared.inc php_flag short_open_tag on ErrorLog logs/error_log TransferLog logs/access_log Index: phpweb/anoncvs.php diff -u phpweb/anoncvs.php:1.3.2.1 phpweb/anoncvs.php:1.3.2.2 --- phpweb/anoncvs.php:1.3.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/anoncvs.php Tue Feb 6 14:19:01 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Anonymous CVS Access"); ?> Index: phpweb/books.php diff -u phpweb/books.php:1.84.2.2 phpweb/books.php:1.84.2.3 --- phpweb/books.php:1.84.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/books.php Tue Feb 6 14:19:01 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; commonHeader("PHP Books"); ?> Index: phpweb/bug-pwd-finder.php diff -u phpweb/bug-pwd-finder.php:1.3.2.1 phpweb/bug-pwd-finder.php:1.3.2.2 --- phpweb/bug-pwd-finder.php:1.3.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/bug-pwd-finder.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,6 @@ <? +require_once 'prepend.inc'; + /* See bugs.php for the table layout of bugdb. */ if (strstr($MYSITE,"bugs.php.net")) { Index: phpweb/bugs-dos-and-donts.php diff -u phpweb/bugs-dos-and-donts.php:1.2.2.1 phpweb/bugs-dos-and-donts.php:1.2.2.2 --- phpweb/bugs-dos-and-donts.php:1.2.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/bugs-dos-and-donts.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Bugs Database Dos and Don'ts"); ?> Index: phpweb/bugs-generating-backtrace.php diff -u phpweb/bugs-generating-backtrace.php:1.3.2.1 phpweb/bugs-generating-backtrace.php:1.3.2.2 --- phpweb/bugs-generating-backtrace.php:1.3.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/bugs-generating-backtrace.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Generating a gdb backtrace"); ?> Index: phpweb/bugs-php3.php diff -u phpweb/bugs-php3.php:1.13.2.1 phpweb/bugs-php3.php:1.13.2.2 --- phpweb/bugs-php3.php:1.13.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/bugs-php3.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; if($save && $user && $pw) { SetCookie("MAGIC_COOKIE",base64_encode("$user:$pw"),time()+3600*24*12,'/'); } Index: phpweb/bugs.php diff -u phpweb/bugs.php:1.79.2.2 phpweb/bugs.php:1.79.2.3 --- phpweb/bugs.php:1.79.2.2 Tue Feb 6 11:03:12 2001 +++ phpweb/bugs.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; if(isset($save) && isset($user) && isset($pw)) { SetCookie("MAGIC_COOKIE",base64_encode("$user:$pw"),time()+3600*24*12,'/'); Index: phpweb/bugstats.php diff -u phpweb/bugstats.php:1.15.2.1 phpweb/bugstats.php:1.15.2.2 --- phpweb/bugstats.php:1.15.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/bugstats.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,6 @@ <? +require_once 'prepend.inc'; + if(!strstr($MYSITE,"bugs.php.net")) { Header("Location: http://bugs.php.net/bugstats.php"); exit; Index: phpweb/cfp.php diff -u phpweb/cfp.php:1.1.2.1 phpweb/cfp.php:1.1.2.2 --- phpweb/cfp.php:1.1.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/cfp.php Tue Feb 6 14:19:02 2001 @@ -1,5 +1,6 @@ <? -commonHeader("Hypertext Preprocessor"); +require_once 'prepend.inc'; +commonHeader("Call For Participation"); ?> <h1>Call for Participation</h1> Index: phpweb/credits.php diff -u phpweb/credits.php:1.1.2.1 phpweb/credits.php:1.1.2.2 --- phpweb/credits.php:1.1.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/credits.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("PHP Credits"); phpcredits(); Index: phpweb/cvs-php.php diff -u phpweb/cvs-php.php:1.4.2.1 phpweb/cvs-php.php:1.4.2.2 --- phpweb/cvs-php.php:1.4.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/cvs-php.php Tue Feb 6 14:19:02 2001 @@ -1,20 +1,28 @@ <?php +require_once 'prepend.inc'; commonHeader("Using CVS for PHP Development"); ?> -<h3>Using CVS for PHP Development</h3> +<h1> +Using CVS for PHP Development +</h1> + <?php if(empty($fullname)){ ?> +<p> All PHP development is done through a distributed revision control system called CVS. This helps us track changes and it makes it possible for people located in all corners of the world to collaborate on a project without having to worry about stepping on each others' toes. -<P> +</p> +<p> Please note that you do <b>not</b> need a CVS account to <b>access</b> the CVS tree. See <a href="http://cvs.php.net">cvs.php.net</a> for details. You only need your own CVS account if you will be regularly committing things to the CVS tree. -<P> +</p> +<p> And once again since people just don't seem to understand this point: -<P> +</p> +<p> <table> <tr><td><b>Does <u>Not</u> Require CVS Account</b></td> <td> </td><td><b>Requires CVS Account</b></td></tr> <tr><td>Learning PHP</td> <td> </td><td>Coding PHP source in C</td></tr> @@ -26,9 +34,10 @@ <tr><td>One-time patch contributions</td> <td> </td><td> </td></tr> <tr><td>Adding notes to documentation</td> <td> </td><td>Authoring PHP documentation</td></tr> <tr><td>Writing web pages with PHP</td> <td> </td><td>Authoring www.php.net web pages</td></tr> - </table> -<P> +</p> + +<p> If you are contributing a patch, a small fix, or another minor change you are not required to obtain a CVS account before submitting it. If you are subscribed to <a href="mailto: php-dev@lists.php.net">php-dev@lists.php.net</a>, @@ -37,20 +46,23 @@ suggested, so the PHP development team can develop a working relationship with you and your code. It is suggested that all PHP developers subscribe to this list. -<P> +</p> +<p> Ok, if you are still reading, I assume you may actually need a CVS account. If you are not previously known to the PHP Development Team, then this is not an automatic process. Your best bet is to send mail to <a href="mailto: group@php.net"> group@php.net</a> and explain what you have in mind and perhaps give a bit of background on yourself. If you were told by a PHP developer to come here and fill out this form, you can skip sending the email to group@php.net. -<P> +</p> +<p> If, you have already established yourself in the above manner you can submit a CVS account request here: (only the encrypted version of the password is sent) In the purpose field, put a couple of words describing what you want to work on. This is mostly to jog our memories and allow us to match the account request with whatever previous correspondence that may taken place. -<P> +</p> +<p> Please note:<br> <b> You do <i>NOT</i> need a CVS account to study PHP. You do <i>NOT</i> need @@ -58,7 +70,8 @@ with PHP. If you are sitting there wondering if you need a CVS account, then you don't! </b> -<P> +</p> +<p> <form action="cvs-php.php" method="POST"> <table> <tr><th>Full Name: </th><td><input type=text size=50 name=fullname></td></tr> @@ -70,18 +83,30 @@ <tr><th> </th><td><input type=submit value="Send It"></td></tr> </table> </form> -<?php } elseif ($fullname && $email && $password && $purpose && $checkread) { -mail("rasmus@lerdorf.on.ca","CVS Account Request","Full name: $fullname\nEmail: $email\nID: $id\nPassword: ".crypt($password)."\nPurpose: $purpose"); -mail("php-dev@lists.php.net","CVS Account Request","Full name: $fullname\nEmail: $email\nID: $id\nPurpose: $purpose"); +</p> +<?php +} elseif ($fullname && $email && $password && $purpose && $checkread) { + mail("rasmus@lerdorf.on.ca","CVS Account Request","Full name: $fullname\nEmail: $email\nID: $id\nPassword: ".crypt($password)."\nPurpose: $purpose"); + mail("php-dev@lists.php.net","CVS Account Request","Full name: $fullname\nEmail: $email\nID: $id\nPurpose: $purpose"); ?> +<p> Thank you. Your request has been sent. -<?php } -elseif ($fullname && $email && $password && $purpose && !$checkread) { ?> +</p> +<?php +} elseif ($fullname && $email && $password && $purpose && !$checkread) { +?> +<p> <blink><H1><font color="#ff0000">PLEASE, read our comments about applying for CVS accounts.</font></H1></blink> -<?php } -else { ?> +</p> +<?php +} else { +?> +<p> <blink><H1><font color="#ff0000">INCOMPLETE FORM. GO BACK AND RESUBMIT.</font></H1></blink> -<?php } ?> +</p> +<?php +} +?> <P> The CVS account, once granted and activated, gives you access to a number of things. First, and most important it gives you access to modify the PHP CVS tree. It also allows you to comment on and close bugs in the PHP bugs interface @@ -92,18 +117,23 @@ <li><a href="http://bugs.php.net/">PHP Bugs Database</a> <li><a href="http://www.php.net/manual/admin-notes.php">Manual Errata Administration</a> </ul> - +</p> +<p> If you are not familiar with CVS, you should have a look at the various documentation resources available at <a href="http://www.cvshome.org/">CVShome.org</a>. This is also where to get the most recent version -of the CVS client.<P> - +of the CVS client. +</p> +<p> All CVS commit messages get sent to the php-cvs mailing list. You should subscribe yourself to this mailing list. Instructions for subscribing are on the <a href="/support.php">Support</a> page. -<P> +</p> +<p> CVS itself is quite easy to use. Follow the steps listed on the <a href="anoncvs.php">anonymous CVS</a> page for checking out your tree. Substitute your own user name and password for the cvsread/phpfi combination listed there. You will not be able to do this until you receive confirmation of your account having been created. -<P> +</p> + +<p> Next, once you have your CVS tree you need to know the following commands. They should all be executed from within the checked out tree. eg. cd php4 <dl> @@ -117,11 +147,17 @@ describe the changes you made. Please provide a good description here as it may help people in the future when looking at your code changes. </dl> -<P> +</p> + +<p> It would probably be a good idea to put the following in your ~/.cvsrc file: <pre>diff -u cvs -z4 update -d -P checkout -P</pre> -<P>Your CVS account also translates into a foo@php.net email address where <b>foo</b> is your CVS user id. +</p> +<p> +Your CVS account also translates into a foo@php.net email address where <b>foo</b> is your CVS user id. +</p> + <?php commonFooter(); ?> Index: phpweb/cvsup.php diff -u phpweb/cvsup.php:1.1.2.1 phpweb/cvsup.php:1.1.2.2 --- phpweb/cvsup.php:1.1.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/cvsup.php Tue Feb 6 14:19:02 2001 @@ -1,19 +1,25 @@ <? +require_once 'prepend.inc'; commonHeader("Using CVSup to maintain local CVS repository"); ?> -<h3>Using CVSup to maintain local CVS repository</h3> +<h1> +Using CVSup To Maintain A Local CVS Repository +</h1> +<p> In addition to anonymous CVS, we also provide read-only access to our CVS repository by using CVSup. While CVSup is faster at updating large trees, it is not as widely available as the standard cvs client. -We will describe now how you can use CVSup.<p> +We will describe now how you can use CVSup. +</p> +<p> <ol> <li>Download the appropiate binary distribution from <a href="http://www.polstra.com/projects/freeware/CVSup/" >the CVSup homepage</a>. <li>Follow the instructions in the Install file of the binary distribution -<li>Create a php.cvsup file containing the following content:<p> +<li>Create a php.cvsup file containing the following content: <pre> *default host=CVSup.php.net *default base=/usr/src/php @@ -23,15 +29,16 @@ *default delete use-rel-suffix php3 php4 -</pre><p> +</pre> This will cause the php3 and php4 trees to be stored in /usr/src/php (you need to create that directory manually). -<li>At a command prompt, simply type:<p> -<code>cvsup php.cvsup</code> -<li>If you are behind a firewall, you might need to use:<p> -<code>cvsup -P - php.cvsup</code> +<li>At a command prompt, simply type: +<pre>cvsup php.cvsup</pre> +<li>If you are behind a firewall, you might need to use: +<pre>cvsup -P - php.cvsup</pre> <li>To build PHP, you need to install a few utilities (GNU autoconf, libtool, bison). Cd into php3 or php4 and run <code>./buildconf</code>. </ol> +</p> <? commonFooter(); ?> Index: phpweb/docs.php diff -u phpweb/docs.php:1.44.2.2 phpweb/docs.php:1.44.2.3 --- phpweb/docs.php:1.44.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/docs.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; commonHeader("Documentation"); ?> Index: phpweb/download-logos.php diff -u phpweb/download-logos.php:1.5.2.1 phpweb/download-logos.php:1.5.2.2 --- phpweb/download-logos.php:1.5.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/download-logos.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Download PHP Logos"); ?> Index: phpweb/download-php3.php diff -u phpweb/download-php3.php:1.4.2.1 phpweb/download-php3.php:1.4.2.2 --- phpweb/download-php3.php:1.4.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/download-php3.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; $current = "3.0.18"; $win32_current = "3.0.17"; Index: phpweb/downloads.php diff -u phpweb/downloads.php:1.37.2.2 phpweb/downloads.php:1.37.2.3 --- phpweb/downloads.php:1.37.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/downloads.php Tue Feb 6 14:19:02 2001 @@ -1,5 +1,6 @@ <? -commonHeader("Downloads "); +require_once 'prepend.inc'; +commonHeader("Downloads"); $server = ($SERVER_PORT == "81" ? $SERVER_NAME . ":81" : $SERVER_NAME); ?> Index: phpweb/get-user-notes.php diff -u phpweb/get-user-notes.php:1.2.2.1 phpweb/get-user-notes.php:1.2.2.2 --- phpweb/get-user-notes.php:1.2.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/get-user-notes.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; require_once 'shared-manual.inc'; // a tool for Index: phpweb/index.php diff -u phpweb/index.php:1.31.2.3 phpweb/index.php:1.31.2.4 --- phpweb/index.php:1.31.2.3 Tue Feb 6 13:41:07 2001 +++ phpweb/index.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,6 @@ <?php +require_once 'prepend.inc'; + commonHeader("Hypertext Preprocessor"); echo "\n<!--$MYSITE-->\n"; Index: phpweb/license.html diff -u phpweb/license.html:1.3 phpweb/license.html:1.3.2.1 --- phpweb/license.html:1.3 Sat May 20 14:49:31 2000 +++ phpweb/license.html Tue Feb 6 14:19:02 2001 @@ -1,5 +1,7 @@ -<HTML><HEAD><TITLE>PHP 3 License</TITLE></HEAD> -<BODY> +<? +require_once 'prepend.inc'; +commonHeader('PHP License'); +?> <PRE> -------------------------------------------------------------------- Copyright (c) 2000 The PHP Development Team. All rights reserved. @@ -57,4 +59,6 @@ For more information on the PHP Development Team and the PHP project, please see <a href="http://www.php.net">www.php.net</a>. </PRE> -</BODY></HTML> +<? +commonFooter(); +?> Index: phpweb/links.php diff -u phpweb/links.php:1.12.2.2 phpweb/links.php:1.12.2.3 --- phpweb/links.php:1.12.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/links.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Links"); ?> Index: phpweb/manual-lookup.php diff -u phpweb/manual-lookup.php:1.9.2.1 phpweb/manual-lookup.php:1.9.2.2 --- phpweb/manual-lookup.php:1.9.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/manual-lookup.php Tue Feb 6 14:19:02 2001 @@ -1,5 +1,6 @@ <?php // -*- C++ -*- +require_once 'prepend.inc'; require_once 'manual-lookup.inc'; $function = strtolower($function); Index: phpweb/mirrors.php diff -u phpweb/mirrors.php:1.2.2.3 phpweb/mirrors.php:1.2.2.4 --- phpweb/mirrors.php:1.2.2.3 Tue Feb 6 13:41:07 2001 +++ phpweb/mirrors.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; if (isset($country)) { header("Location: http://$country.php.net/"); } Index: phpweb/news.php diff -u phpweb/news.php:1.15.2.2 phpweb/news.php:1.15.2.3 --- phpweb/news.php:1.15.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/news.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("PHP in the News"); function makeEntry($title,$subtitle,$url=false,$date="") { Index: phpweb/oldnews.php diff -u phpweb/oldnews.php:1.1.2.1 phpweb/oldnews.php:1.1.2.2 --- phpweb/oldnews.php:1.1.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/oldnews.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Older PHP News"); function makeEntry($title,$subtitle,$url=false,$date="") { Index: phpweb/projects.php diff -u phpweb/projects.php:1.15.2.1 phpweb/projects.php:1.15.2.2 --- phpweb/projects.php:1.15.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/projects.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Projects"); function makeEntry($project,$url,$name,$email) { Index: phpweb/quickref.php diff -u phpweb/quickref.php:1.3.2.1 phpweb/quickref.php:1.3.2.2 --- phpweb/quickref.php:1.3.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/quickref.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; $NUMACROSS=2; $d = dir("$DOCUMENT_ROOT/manual/en"); Index: phpweb/search.php diff -u phpweb/search.php:1.4.2.3 phpweb/search.php:1.4.2.4 --- phpweb/search.php:1.4.2.3 Tue Feb 6 13:41:07 2001 +++ phpweb/search.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,6 @@ <? +require_once 'prepend.inc'; + /* You need to grab http://www.php.net/Mirrors-htdig.tgz and follow the directions in there if you want to run the search engine on your Index: phpweb/sites.php diff -u phpweb/sites.php:1.19.2.1 phpweb/sites.php:1.19.2.2 --- phpweb/sites.php:1.19.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/sites.php Tue Feb 6 14:19:02 2001 @@ -1,5 +1,6 @@ <? - commonHeader("High-Profile sites running PHP"); +require_once 'prepend.inc'; +commonHeader("High-Profile sites running PHP"); function site($name,$domain=false) { if ($domain) { Index: phpweb/source.php diff -u phpweb/source.php:1.1.2.3 phpweb/source.php:1.1.2.4 --- phpweb/source.php:1.1.2.3 Tue Feb 6 13:41:07 2001 +++ phpweb/source.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; commonHeader("Show Source"); if (!isset($url)) { Index: phpweb/support.php diff -u phpweb/support.php:1.22.2.2 phpweb/support.php:1.22.2.3 --- phpweb/support.php:1.22.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/support.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; commonHeader("Support"); ?> Index: phpweb/thanks.php diff -u phpweb/thanks.php:1.1.2.1 phpweb/thanks.php:1.1.2.2 --- phpweb/thanks.php:1.1.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/thanks.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Thanks"); function makeEntry($heading) { Index: phpweb/tips.php diff -u phpweb/tips.php:1.6.2.1 phpweb/tips.php:1.6.2.2 --- phpweb/tips.php:1.6.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/tips.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; commonHeader("Cool PHP Tips"); function tipTitle($title,$author='',$date='') { Index: phpweb/tut.php diff -u phpweb/tut.php:1.2.2.1 phpweb/tut.php:1.2.2.2 --- phpweb/tut.php:1.2.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/tut.php Tue Feb 6 14:19:02 2001 @@ -1,5 +1,5 @@ <? - +require_once 'prepend.inc'; commonHeader('PHP Tutorial'); function example($text) { Index: phpweb/usage.php diff -u phpweb/usage.php:1.10.2.1 phpweb/usage.php:1.10.2.2 --- phpweb/usage.php:1.10.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/usage.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("PHP Usage Stats"); ?> Jan 2001: PHP: 5104536 Domains, 832457 IP Addresses<br> Index: phpweb/manual/about-notes.php diff -u phpweb/manual/about-notes.php:1.1.2.1 phpweb/manual/about-notes.php:1.1.2.2 --- phpweb/manual/about-notes.php:1.1.2.1 Tue Feb 6 11:03:13 2001 +++ phpweb/manual/about-notes.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Manual Notes"); ?> Index: phpweb/manual/add-note.php diff -u phpweb/manual/add-note.php:1.12.2.1 phpweb/manual/add-note.php:1.12.2.2 --- phpweb/manual/add-note.php:1.12.2.1 Tue Feb 6 11:03:13 2001 +++ phpweb/manual/add-note.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; $mailto = 'rasmus@php.net'; Index: phpweb/manual/admin-notes.php diff -u phpweb/manual/admin-notes.php:1.34.2.1 phpweb/manual/admin-notes.php:1.34.2.2 --- phpweb/manual/admin-notes.php:1.34.2.1 Tue Feb 6 11:03:13 2001 +++ phpweb/manual/admin-notes.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; $mailto = 'qa@lists.php.net'; $num_entries_per_page = 50; Index: phpweb/manual/browse-errata.php diff -u phpweb/manual/browse-errata.php:1.5.2.1 phpweb/manual/browse-errata.php:1.5.2.2 --- phpweb/manual/browse-errata.php:1.5.2.1 Tue Feb 6 11:03:13 2001 +++ phpweb/manual/browse-errata.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; $mailto = 'phpdoc@lists.php.net'; Index: phpweb/manual/index.php diff -u phpweb/manual/index.php:1.1.2.1 phpweb/manual/index.php:1.1.2.2 --- phpweb/manual/index.php:1.1.2.1 Tue Feb 6 11:03:13 2001 +++ phpweb/manual/index.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; $lang = $MIRRORS[$MYSITE][6]; if (is_dir($lang)) { Index: phpweb/manual/phpfi2.php diff -u phpweb/manual/phpfi2.php:1.1.2.1 phpweb/manual/phpfi2.php:1.1.2.2 --- phpweb/manual/phpfi2.php:1.1.2.1 Tue Feb 6 12:38:26 2001 +++ phpweb/manual/phpfi2.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader('PHP/FI Version 2.0 Documentation'); ?> Index: phpweb/manual/set-magic-cookie.php diff -u phpweb/manual/set-magic-cookie.php:1.1 phpweb/manual/set-magic-cookie.php:1.1.2.1 --- phpweb/manual/set-magic-cookie.php:1.1 Thu Jul 27 23:32:30 2000 +++ phpweb/manual/set-magic-cookie.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,6 @@ <? +require_once 'prepend.inc'; + if (isset($user) && isset($pass)) { $MAGIC_COOKIE = base64_encode("$user:$pass"); # we set a cookie good for five years Index: phpweb/manual/html/index.php diff -u phpweb/manual/html/index.php:1.1.2.1 phpweb/manual/html/index.php:1.1.2.2 --- phpweb/manual/html/index.php:1.1.2.1 Tue Feb 6 11:03:14 2001 +++ phpweb/manual/html/index.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; $lang = $MIRRORS[$MYSITE][6]; if (is_dir("../$lang/html")) { Index: phpweb/include/prepend.inc +++ phpweb/include/prepend.inc
Index: phpweb/.htaccess diff -u phpweb/.htaccess:1.10.2.1 phpweb/.htaccess:1.10.2.2 --- phpweb/.htaccess:1.10.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/.htaccess Tue Feb 6 14:19:01 2001 @@ -1,6 +1,5 @@ <IfModule mod_php4.c> php_value include_path .:./include:../include:../../include -php_value auto_prepend_file shared.inc php_flag short_open_tag on </IfModule> DirectoryIndex index.php Index: phpweb/ChangeLog-4.php diff -u phpweb/ChangeLog-4.php:1.6.2.1 phpweb/ChangeLog-4.php:1.6.2.2 --- phpweb/ChangeLog-4.php:1.6.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/ChangeLog-4.php Tue Feb 6 14:19:01 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; commonHeader("PHP 4 ChangeLog"); ?> Index: phpweb/FAQ.php diff -u phpweb/FAQ.php:1.1.2.2 phpweb/FAQ.php:1.1.2.3 --- phpweb/FAQ.php:1.1.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/FAQ.php Tue Feb 6 14:19:01 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Frequently Asked Questions"); ?> Index: phpweb/README.mirror diff -u phpweb/README.mirror:1.33.2.1 phpweb/README.mirror:1.33.2.2 --- phpweb/README.mirror:1.33.2.1 Tue Feb 6 12:44:54 2001 +++ phpweb/README.mirror Tue Feb 6 14:19:01 2001 @@ -23,7 +23,6 @@ ServerAdmin yourname@yourdomain.com DocumentRoot /www/htdocs/phpweb php_value include_path .:/www/htdocs/phpweb/include - php_value auto_prepend_file shared.inc php_flag short_open_tag on ErrorLog logs/error_log TransferLog logs/access_log Index: phpweb/anoncvs.php diff -u phpweb/anoncvs.php:1.3.2.1 phpweb/anoncvs.php:1.3.2.2 --- phpweb/anoncvs.php:1.3.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/anoncvs.php Tue Feb 6 14:19:01 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Anonymous CVS Access"); ?> Index: phpweb/books.php diff -u phpweb/books.php:1.84.2.2 phpweb/books.php:1.84.2.3 --- phpweb/books.php:1.84.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/books.php Tue Feb 6 14:19:01 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; commonHeader("PHP Books"); ?> Index: phpweb/bug-pwd-finder.php diff -u phpweb/bug-pwd-finder.php:1.3.2.1 phpweb/bug-pwd-finder.php:1.3.2.2 --- phpweb/bug-pwd-finder.php:1.3.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/bug-pwd-finder.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,6 @@ <? +require_once 'prepend.inc'; + /* See bugs.php for the table layout of bugdb. */ if (strstr($MYSITE,"bugs.php.net")) { Index: phpweb/bugs-dos-and-donts.php diff -u phpweb/bugs-dos-and-donts.php:1.2.2.1 phpweb/bugs-dos-and-donts.php:1.2.2.2 --- phpweb/bugs-dos-and-donts.php:1.2.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/bugs-dos-and-donts.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Bugs Database Dos and Don'ts"); ?> Index: phpweb/bugs-generating-backtrace.php diff -u phpweb/bugs-generating-backtrace.php:1.3.2.1 phpweb/bugs-generating-backtrace.php:1.3.2.2 --- phpweb/bugs-generating-backtrace.php:1.3.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/bugs-generating-backtrace.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Generating a gdb backtrace"); ?> Index: phpweb/bugs-php3.php diff -u phpweb/bugs-php3.php:1.13.2.1 phpweb/bugs-php3.php:1.13.2.2 --- phpweb/bugs-php3.php:1.13.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/bugs-php3.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; if($save && $user && $pw) { SetCookie("MAGIC_COOKIE",base64_encode("$user:$pw"),time()+3600*24*12,'/'); } Index: phpweb/bugs.php diff -u phpweb/bugs.php:1.79.2.2 phpweb/bugs.php:1.79.2.3 --- phpweb/bugs.php:1.79.2.2 Tue Feb 6 11:03:12 2001 +++ phpweb/bugs.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; if(isset($save) && isset($user) && isset($pw)) { SetCookie("MAGIC_COOKIE",base64_encode("$user:$pw"),time()+3600*24*12,'/'); Index: phpweb/bugstats.php diff -u phpweb/bugstats.php:1.15.2.1 phpweb/bugstats.php:1.15.2.2 --- phpweb/bugstats.php:1.15.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/bugstats.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,6 @@ <? +require_once 'prepend.inc'; + if(!strstr($MYSITE,"bugs.php.net")) { Header("Location: http://bugs.php.net/bugstats.php"); exit; Index: phpweb/cfp.php diff -u phpweb/cfp.php:1.1.2.1 phpweb/cfp.php:1.1.2.2 --- phpweb/cfp.php:1.1.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/cfp.php Tue Feb 6 14:19:02 2001 @@ -1,5 +1,6 @@ <? -commonHeader("Hypertext Preprocessor"); +require_once 'prepend.inc'; +commonHeader("Call For Participation"); ?> <h1>Call for Participation</h1> Index: phpweb/credits.php diff -u phpweb/credits.php:1.1.2.1 phpweb/credits.php:1.1.2.2 --- phpweb/credits.php:1.1.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/credits.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("PHP Credits"); phpcredits(); Index: phpweb/cvs-php.php diff -u phpweb/cvs-php.php:1.4.2.1 phpweb/cvs-php.php:1.4.2.2 --- phpweb/cvs-php.php:1.4.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/cvs-php.php Tue Feb 6 14:19:02 2001 @@ -1,20 +1,28 @@ <?php +require_once 'prepend.inc'; commonHeader("Using CVS for PHP Development"); ?> -<h3>Using CVS for PHP Development</h3> +<h1> +Using CVS for PHP Development +</h1> + <?php if(empty($fullname)){ ?> +<p> All PHP development is done through a distributed revision control system called CVS. This helps us track changes and it makes it possible for people located in all corners of the world to collaborate on a project without having to worry about stepping on each others' toes. -<P> +</p> +<p> Please note that you do <b>not</b> need a CVS account to <b>access</b> the CVS tree. See <a href="http://cvs.php.net">cvs.php.net</a> for details. You only need your own CVS account if you will be regularly committing things to the CVS tree. -<P> +</p> +<p> And once again since people just don't seem to understand this point: -<P> +</p> +<p> <table> <tr><td><b>Does <u>Not</u> Require CVS Account</b></td> <td> </td><td><b>Requires CVS Account</b></td></tr> <tr><td>Learning PHP</td> <td> </td><td>Coding PHP source in C</td></tr> @@ -26,9 +34,10 @@ <tr><td>One-time patch contributions</td> <td> </td><td> </td></tr> <tr><td>Adding notes to documentation</td> <td> </td><td>Authoring PHP documentation</td></tr> <tr><td>Writing web pages with PHP</td> <td> </td><td>Authoring www.php.net web pages</td></tr> - </table> -<P> +</p> + +<p> If you are contributing a patch, a small fix, or another minor change you are not required to obtain a CVS account before submitting it. If you are subscribed to <a href="mailto: php-dev@lists.php.net">php-dev@lists.php.net</a>, @@ -37,20 +46,23 @@ suggested, so the PHP development team can develop a working relationship with you and your code. It is suggested that all PHP developers subscribe to this list. -<P> +</p> +<p> Ok, if you are still reading, I assume you may actually need a CVS account. If you are not previously known to the PHP Development Team, then this is not an automatic process. Your best bet is to send mail to <a href="mailto: group@php.net"> group@php.net</a> and explain what you have in mind and perhaps give a bit of background on yourself. If you were told by a PHP developer to come here and fill out this form, you can skip sending the email to group@php.net. -<P> +</p> +<p> If, you have already established yourself in the above manner you can submit a CVS account request here: (only the encrypted version of the password is sent) In the purpose field, put a couple of words describing what you want to work on. This is mostly to jog our memories and allow us to match the account request with whatever previous correspondence that may taken place. -<P> +</p> +<p> Please note:<br> <b> You do <i>NOT</i> need a CVS account to study PHP. You do <i>NOT</i> need @@ -58,7 +70,8 @@ with PHP. If you are sitting there wondering if you need a CVS account, then you don't! </b> -<P> +</p> +<p> <form action="cvs-php.php" method="POST"> <table> <tr><th>Full Name: </th><td><input type=text size=50 name=fullname></td></tr> @@ -70,18 +83,30 @@ <tr><th> </th><td><input type=submit value="Send It"></td></tr> </table> </form> -<?php } elseif ($fullname && $email && $password && $purpose && $checkread) { -mail("rasmus@lerdorf.on.ca","CVS Account Request","Full name: $fullname\nEmail: $email\nID: $id\nPassword: ".crypt($password)."\nPurpose: $purpose"); -mail("php-dev@lists.php.net","CVS Account Request","Full name: $fullname\nEmail: $email\nID: $id\nPurpose: $purpose"); +</p> +<?php +} elseif ($fullname && $email && $password && $purpose && $checkread) { + mail("rasmus@lerdorf.on.ca","CVS Account Request","Full name: $fullname\nEmail: $email\nID: $id\nPassword: ".crypt($password)."\nPurpose: $purpose"); + mail("php-dev@lists.php.net","CVS Account Request","Full name: $fullname\nEmail: $email\nID: $id\nPurpose: $purpose"); ?> +<p> Thank you. Your request has been sent. -<?php } -elseif ($fullname && $email && $password && $purpose && !$checkread) { ?> +</p> +<?php +} elseif ($fullname && $email && $password && $purpose && !$checkread) { +?> +<p> <blink><H1><font color="#ff0000">PLEASE, read our comments about applying for CVS accounts.</font></H1></blink> -<?php } -else { ?> +</p> +<?php +} else { +?> +<p> <blink><H1><font color="#ff0000">INCOMPLETE FORM. GO BACK AND RESUBMIT.</font></H1></blink> -<?php } ?> +</p> +<?php +} +?> <P> The CVS account, once granted and activated, gives you access to a number of things. First, and most important it gives you access to modify the PHP CVS tree. It also allows you to comment on and close bugs in the PHP bugs interface @@ -92,18 +117,23 @@ <li><a href="http://bugs.php.net/">PHP Bugs Database</a> <li><a href="http://www.php.net/manual/admin-notes.php">Manual Errata Administration</a> </ul> - +</p> +<p> If you are not familiar with CVS, you should have a look at the various documentation resources available at <a href="http://www.cvshome.org/">CVShome.org</a>. This is also where to get the most recent version -of the CVS client.<P> - +of the CVS client. +</p> +<p> All CVS commit messages get sent to the php-cvs mailing list. You should subscribe yourself to this mailing list. Instructions for subscribing are on the <a href="/support.php">Support</a> page. -<P> +</p> +<p> CVS itself is quite easy to use. Follow the steps listed on the <a href="anoncvs.php">anonymous CVS</a> page for checking out your tree. Substitute your own user name and password for the cvsread/phpfi combination listed there. You will not be able to do this until you receive confirmation of your account having been created. -<P> +</p> + +<p> Next, once you have your CVS tree you need to know the following commands. They should all be executed from within the checked out tree. eg. cd php4 <dl> @@ -117,11 +147,17 @@ describe the changes you made. Please provide a good description here as it may help people in the future when looking at your code changes. </dl> -<P> +</p> + +<p> It would probably be a good idea to put the following in your ~/.cvsrc file: <pre>diff -u cvs -z4 update -d -P checkout -P</pre> -<P>Your CVS account also translates into a foo@php.net email address where <b>foo</b> is your CVS user id. +</p> +<p> +Your CVS account also translates into a foo@php.net email address where <b>foo</b> is your CVS user id. +</p> + <?php commonFooter(); ?> Index: phpweb/cvsup.php diff -u phpweb/cvsup.php:1.1.2.1 phpweb/cvsup.php:1.1.2.2 --- phpweb/cvsup.php:1.1.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/cvsup.php Tue Feb 6 14:19:02 2001 @@ -1,19 +1,25 @@ <? +require_once 'prepend.inc'; commonHeader("Using CVSup to maintain local CVS repository"); ?> -<h3>Using CVSup to maintain local CVS repository</h3> +<h1> +Using CVSup To Maintain A Local CVS Repository +</h1> +<p> In addition to anonymous CVS, we also provide read-only access to our CVS repository by using CVSup. While CVSup is faster at updating large trees, it is not as widely available as the standard cvs client. -We will describe now how you can use CVSup.<p> +We will describe now how you can use CVSup. +</p> +<p> <ol> <li>Download the appropiate binary distribution from <a href="http://www.polstra.com/projects/freeware/CVSup/" >the CVSup homepage</a>. <li>Follow the instructions in the Install file of the binary distribution -<li>Create a php.cvsup file containing the following content:<p> +<li>Create a php.cvsup file containing the following content: <pre> *default host=CVSup.php.net *default base=/usr/src/php @@ -23,15 +29,16 @@ *default delete use-rel-suffix php3 php4 -</pre><p> +</pre> This will cause the php3 and php4 trees to be stored in /usr/src/php (you need to create that directory manually). -<li>At a command prompt, simply type:<p> -<code>cvsup php.cvsup</code> -<li>If you are behind a firewall, you might need to use:<p> -<code>cvsup -P - php.cvsup</code> +<li>At a command prompt, simply type: +<pre>cvsup php.cvsup</pre> +<li>If you are behind a firewall, you might need to use: +<pre>cvsup -P - php.cvsup</pre> <li>To build PHP, you need to install a few utilities (GNU autoconf, libtool, bison). Cd into php3 or php4 and run <code>./buildconf</code>. </ol> +</p> <? commonFooter(); ?> Index: phpweb/docs.php diff -u phpweb/docs.php:1.44.2.2 phpweb/docs.php:1.44.2.3 --- phpweb/docs.php:1.44.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/docs.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; commonHeader("Documentation"); ?> Index: phpweb/download-logos.php diff -u phpweb/download-logos.php:1.5.2.1 phpweb/download-logos.php:1.5.2.2 --- phpweb/download-logos.php:1.5.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/download-logos.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Download PHP Logos"); ?> Index: phpweb/download-php3.php diff -u phpweb/download-php3.php:1.4.2.1 phpweb/download-php3.php:1.4.2.2 --- phpweb/download-php3.php:1.4.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/download-php3.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; $current = "3.0.18"; $win32_current = "3.0.17"; Index: phpweb/downloads.php diff -u phpweb/downloads.php:1.37.2.2 phpweb/downloads.php:1.37.2.3 --- phpweb/downloads.php:1.37.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/downloads.php Tue Feb 6 14:19:02 2001 @@ -1,5 +1,6 @@ <? -commonHeader("Downloads "); +require_once 'prepend.inc'; +commonHeader("Downloads"); $server = ($SERVER_PORT == "81" ? $SERVER_NAME . ":81" : $SERVER_NAME); ?> Index: phpweb/get-user-notes.php diff -u phpweb/get-user-notes.php:1.2.2.1 phpweb/get-user-notes.php:1.2.2.2 --- phpweb/get-user-notes.php:1.2.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/get-user-notes.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; require_once 'shared-manual.inc'; // a tool for Index: phpweb/index.php diff -u phpweb/index.php:1.31.2.3 phpweb/index.php:1.31.2.4 --- phpweb/index.php:1.31.2.3 Tue Feb 6 13:41:07 2001 +++ phpweb/index.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,6 @@ <?php +require_once 'prepend.inc'; + commonHeader("Hypertext Preprocessor"); echo "\n<!--$MYSITE-->\n"; Index: phpweb/license.html diff -u phpweb/license.html:1.3 phpweb/license.html:1.3.2.1 --- phpweb/license.html:1.3 Sat May 20 14:49:31 2000 +++ phpweb/license.html Tue Feb 6 14:19:02 2001 @@ -1,5 +1,7 @@ -<HTML><HEAD><TITLE>PHP 3 License</TITLE></HEAD> -<BODY> +<? +require_once 'prepend.inc'; +commonHeader('PHP License'); +?> <PRE> -------------------------------------------------------------------- Copyright (c) 2000 The PHP Development Team. All rights reserved. @@ -57,4 +59,6 @@ For more information on the PHP Development Team and the PHP project, please see <a href="http://www.php.net">www.php.net</a>. </PRE> -</BODY></HTML> +<? +commonFooter(); +?> Index: phpweb/links.php diff -u phpweb/links.php:1.12.2.2 phpweb/links.php:1.12.2.3 --- phpweb/links.php:1.12.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/links.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Links"); ?> Index: phpweb/manual-lookup.php diff -u phpweb/manual-lookup.php:1.9.2.1 phpweb/manual-lookup.php:1.9.2.2 --- phpweb/manual-lookup.php:1.9.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/manual-lookup.php Tue Feb 6 14:19:02 2001 @@ -1,5 +1,6 @@ <?php // -*- C++ -*- +require_once 'prepend.inc'; require_once 'manual-lookup.inc'; $function = strtolower($function); Index: phpweb/mirrors.php diff -u phpweb/mirrors.php:1.2.2.3 phpweb/mirrors.php:1.2.2.4 --- phpweb/mirrors.php:1.2.2.3 Tue Feb 6 13:41:07 2001 +++ phpweb/mirrors.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; if (isset($country)) { header("Location: http://$country.php.net/"); } Index: phpweb/news.php diff -u phpweb/news.php:1.15.2.2 phpweb/news.php:1.15.2.3 --- phpweb/news.php:1.15.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/news.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("PHP in the News"); function makeEntry($title,$subtitle,$url=false,$date="") { Index: phpweb/oldnews.php diff -u phpweb/oldnews.php:1.1.2.1 phpweb/oldnews.php:1.1.2.2 --- phpweb/oldnews.php:1.1.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/oldnews.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Older PHP News"); function makeEntry($title,$subtitle,$url=false,$date="") { Index: phpweb/projects.php diff -u phpweb/projects.php:1.15.2.1 phpweb/projects.php:1.15.2.2 --- phpweb/projects.php:1.15.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/projects.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Projects"); function makeEntry($project,$url,$name,$email) { Index: phpweb/quickref.php diff -u phpweb/quickref.php:1.3.2.1 phpweb/quickref.php:1.3.2.2 --- phpweb/quickref.php:1.3.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/quickref.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; $NUMACROSS=2; $d = dir("$DOCUMENT_ROOT/manual/en"); Index: phpweb/search.php diff -u phpweb/search.php:1.4.2.3 phpweb/search.php:1.4.2.4 --- phpweb/search.php:1.4.2.3 Tue Feb 6 13:41:07 2001 +++ phpweb/search.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,6 @@ <? +require_once 'prepend.inc'; + /* You need to grab http://www.php.net/Mirrors-htdig.tgz and follow the directions in there if you want to run the search engine on your Index: phpweb/sites.php diff -u phpweb/sites.php:1.19.2.1 phpweb/sites.php:1.19.2.2 --- phpweb/sites.php:1.19.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/sites.php Tue Feb 6 14:19:02 2001 @@ -1,5 +1,6 @@ <? - commonHeader("High-Profile sites running PHP"); +require_once 'prepend.inc'; +commonHeader("High-Profile sites running PHP"); function site($name,$domain=false) { if ($domain) { Index: phpweb/source.php diff -u phpweb/source.php:1.1.2.3 phpweb/source.php:1.1.2.4 --- phpweb/source.php:1.1.2.3 Tue Feb 6 13:41:07 2001 +++ phpweb/source.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; commonHeader("Show Source"); if (!isset($url)) { Index: phpweb/support.php diff -u phpweb/support.php:1.22.2.2 phpweb/support.php:1.22.2.3 --- phpweb/support.php:1.22.2.2 Tue Feb 6 13:41:07 2001 +++ phpweb/support.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; commonHeader("Support"); ?> Index: phpweb/thanks.php diff -u phpweb/thanks.php:1.1.2.1 phpweb/thanks.php:1.1.2.2 --- phpweb/thanks.php:1.1.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/thanks.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Thanks"); function makeEntry($heading) { Index: phpweb/tips.php diff -u phpweb/tips.php:1.6.2.1 phpweb/tips.php:1.6.2.2 --- phpweb/tips.php:1.6.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/tips.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; commonHeader("Cool PHP Tips"); function tipTitle($title,$author='',$date='') { Index: phpweb/tut.php diff -u phpweb/tut.php:1.2.2.1 phpweb/tut.php:1.2.2.2 --- phpweb/tut.php:1.2.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/tut.php Tue Feb 6 14:19:02 2001 @@ -1,5 +1,5 @@ <? - +require_once 'prepend.inc'; commonHeader('PHP Tutorial'); function example($text) { Index: phpweb/usage.php diff -u phpweb/usage.php:1.10.2.1 phpweb/usage.php:1.10.2.2 --- phpweb/usage.php:1.10.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/usage.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("PHP Usage Stats"); ?> Jan 2001: PHP: 5104536 Domains, 832457 IP Addresses<br> Index: phpweb/manual/about-notes.php diff -u phpweb/manual/about-notes.php:1.1.2.1 phpweb/manual/about-notes.php:1.1.2.2 --- phpweb/manual/about-notes.php:1.1.2.1 Tue Feb 6 11:03:13 2001 +++ phpweb/manual/about-notes.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader("Manual Notes"); ?> Index: phpweb/manual/add-note.php diff -u phpweb/manual/add-note.php:1.12.2.1 phpweb/manual/add-note.php:1.12.2.2 --- phpweb/manual/add-note.php:1.12.2.1 Tue Feb 6 11:03:13 2001 +++ phpweb/manual/add-note.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; $mailto = 'rasmus@php.net'; Index: phpweb/manual/admin-notes.php diff -u phpweb/manual/admin-notes.php:1.34.2.1 phpweb/manual/admin-notes.php:1.34.2.2 --- phpweb/manual/admin-notes.php:1.34.2.1 Tue Feb 6 11:03:13 2001 +++ phpweb/manual/admin-notes.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; $mailto = 'qa@lists.php.net'; $num_entries_per_page = 50; Index: phpweb/manual/browse-errata.php diff -u phpweb/manual/browse-errata.php:1.5.2.1 phpweb/manual/browse-errata.php:1.5.2.2 --- phpweb/manual/browse-errata.php:1.5.2.1 Tue Feb 6 11:03:13 2001 +++ phpweb/manual/browse-errata.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; $mailto = 'phpdoc@lists.php.net'; Index: phpweb/manual/index.php diff -u phpweb/manual/index.php:1.1.2.1 phpweb/manual/index.php:1.1.2.2 --- phpweb/manual/index.php:1.1.2.1 Tue Feb 6 11:03:13 2001 +++ phpweb/manual/index.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; $lang = $MIRRORS[$MYSITE][6]; if (is_dir($lang)) { Index: phpweb/manual/phpfi2.php diff -u phpweb/manual/phpfi2.php:1.1.2.1 phpweb/manual/phpfi2.php:1.1.2.2 --- phpweb/manual/phpfi2.php:1.1.2.1 Tue Feb 6 12:38:26 2001 +++ phpweb/manual/phpfi2.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <? +require_once 'prepend.inc'; commonHeader('PHP/FI Version 2.0 Documentation'); ?> Index: phpweb/manual/set-magic-cookie.php diff -u phpweb/manual/set-magic-cookie.php:1.1 phpweb/manual/set-magic-cookie.php:1.1.2.1 --- phpweb/manual/set-magic-cookie.php:1.1 Thu Jul 27 23:32:30 2000 +++ phpweb/manual/set-magic-cookie.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,6 @@ <? +require_once 'prepend.inc'; + if (isset($user) && isset($pass)) { $MAGIC_COOKIE = base64_encode("$user:$pass"); # we set a cookie good for five years Index: phpweb/manual/html/index.php diff -u phpweb/manual/html/index.php:1.1.2.1 phpweb/manual/html/index.php:1.1.2.2 --- phpweb/manual/html/index.php:1.1.2.1 Tue Feb 6 11:03:14 2001 +++ phpweb/manual/html/index.php Tue Feb 6 14:19:02 2001 @@ -1,4 +1,5 @@ <?php +require_once 'prepend.inc'; $lang = $MIRRORS[$MYSITE][6]; if (is_dir("../$lang/html")) { Index: phpweb/include/prepend.inc +++ phpweb/include/prepend.inc