mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Add require_once 'prepend.inc' back in again.
That's more than a dozen files ... :(
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("PHP 4 ChangeLog");
|
||||
?>
|
||||
|
||||
|
||||
1
FAQ.php
1
FAQ.php
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Frequently Asked Questions");
|
||||
?>
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ Once you create a virtualhost which looks something like:
|
||||
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
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Anonymous CVS Access");
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("PHP Books");
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
|
||||
/* See bugs.php for the table layout of bugdb. */
|
||||
|
||||
if (strstr($MYSITE,"bugs.php.net")) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Bugs Database Dos and Don'ts");
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Generating a gdb backtrace");
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
if($save && $user && $pw) {
|
||||
SetCookie("MAGIC_COOKIE",base64_encode("$user:$pw"),time()+3600*24*12,'/');
|
||||
}
|
||||
|
||||
1
bugs.php
1
bugs.php
@@ -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,'/');
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
|
||||
if(!strstr($MYSITE,"bugs.php.net")) {
|
||||
Header("Location: http://bugs.php.net/bugstats.php");
|
||||
exit;
|
||||
|
||||
3
cfp.php
3
cfp.php
@@ -1,5 +1,6 @@
|
||||
<?
|
||||
commonHeader("Hypertext Preprocessor");
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Call For Participation");
|
||||
?>
|
||||
|
||||
<h1>Call for Participation</h1>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("PHP Credits");
|
||||
|
||||
phpcredits();
|
||||
|
||||
86
cvs-php.php
86
cvs-php.php
@@ -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 @@ And once again since people just don't seem to understand this point:
|
||||
<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 @@ patches to the PHP-dev list <b>before</b> requesting full CVS access is
|
||||
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 @@ a CVS account to learn PHP, to use PHP or to in any way do anything at all
|
||||
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 @@ you don't!
|
||||
<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 @@ three things are:
|
||||
<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 @@ mailing list.
|
||||
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(); ?>
|
||||
|
||||
23
cvsup.php
23
cvsup.php
@@ -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 @@ We will describe now how you can use CVSup.<p>
|
||||
*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(); ?>
|
||||
|
||||
1
docs.php
1
docs.php
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Documentation");
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Download PHP Logos");
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
|
||||
$current = "3.0.18";
|
||||
$win32_current = "3.0.17";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?
|
||||
commonHeader("Downloads ");
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Downloads");
|
||||
$server = ($SERVER_PORT == "81" ? $SERVER_NAME . ":81" : $SERVER_NAME);
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require_once 'prepend.inc';
|
||||
require_once 'shared-manual.inc';
|
||||
|
||||
// a tool for
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
require_once 'prepend.inc';
|
||||
|
||||
commonHeader("Hypertext Preprocessor");
|
||||
echo "\n<!--$MYSITE-->\n";
|
||||
|
||||
|
||||
10
license.html
10
license.html
@@ -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();
|
||||
?>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php // -*- C++ -*-
|
||||
|
||||
require_once 'prepend.inc';
|
||||
require_once 'manual-lookup.inc';
|
||||
|
||||
$function = strtolower($function);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Manual Notes");
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
|
||||
$mailto = 'rasmus@php.net';
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require_once 'prepend.inc';
|
||||
|
||||
$lang = $MIRRORS[$MYSITE][6];
|
||||
if (is_dir("../$lang/html")) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require_once 'prepend.inc';
|
||||
|
||||
$lang = $MIRRORS[$MYSITE][6];
|
||||
if (is_dir($lang)) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
commonHeader('PHP/FI Version 2.0 Documentation');
|
||||
?>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
if (isset($country)) {
|
||||
header("Location: http://$country.php.net/");
|
||||
}
|
||||
|
||||
1
news.php
1
news.php
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("PHP in the News");
|
||||
|
||||
function makeEntry($title,$subtitle,$url=false,$date="") {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Older PHP News");
|
||||
|
||||
function makeEntry($title,$subtitle,$url=false,$date="") {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Projects");
|
||||
|
||||
function makeEntry($project,$url,$name,$email) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
|
||||
$NUMACROSS=2;
|
||||
$d = dir("$DOCUMENT_ROOT/manual/en");
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Show Source");
|
||||
|
||||
if (!isset($url)) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Support");
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Thanks");
|
||||
|
||||
function makeEntry($heading) {
|
||||
|
||||
1
tips.php
1
tips.php
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("Cool PHP Tips");
|
||||
|
||||
function tipTitle($title,$author='',$date='') {
|
||||
|
||||
2
tut.php
2
tut.php
@@ -1,5 +1,5 @@
|
||||
<?
|
||||
|
||||
require_once 'prepend.inc';
|
||||
commonHeader('PHP Tutorial');
|
||||
|
||||
function example($text) {
|
||||
|
||||
Reference in New Issue
Block a user