mirror of
https://github.com/php/web-php.git
synced 2026-04-02 04:32:16 +02:00
320 lines
13 KiB
PHP
320 lines
13 KiB
PHP
<?php
|
||
/* if you're reading this, it isn't because you've found a security hole.
|
||
this is an open source website. read and learn! */
|
||
|
||
/* ------------------------------------------------------------------------- */
|
||
|
||
/* Get the modification dates of the main PHP file */
|
||
$timestamps[] = @getlastmod();
|
||
|
||
/* The date of prepend.inc indicates the age of ALL
|
||
included files. Please touch it if you modify an
|
||
another include file. The cost of stat'ing them
|
||
all is prohibitive. Also note the file path,
|
||
we aren't using the include path here. */
|
||
$timestamps[] = @filemtime("include/prepend.inc");
|
||
|
||
/* Calendar is the only dynamic feature on this page. */
|
||
$timestamps[] = @filemtime("backend/events.csv");
|
||
|
||
/* The latest of these modification dates is our real
|
||
Last-Modified date. */
|
||
$timestamp = max($timestamps);
|
||
|
||
/* Note that this is not a RFC 822 date (the tz is always GMT) */
|
||
$tsstring = gmdate("D, d M Y H:i:s ",$timestamp)."GMT";
|
||
|
||
if ($_SERVER["HTTP_IF_MODIFIED_SINCE"] == $tsstring) {
|
||
/* The UA has the exact same page we have. */
|
||
header("HTTP/1.1 304 Not Modified");
|
||
exit();
|
||
} else {
|
||
header("Last-Modified: ".$tsstring);
|
||
}
|
||
|
||
require_once 'prepend.inc';
|
||
|
||
$SIDEBAR_DATA = '
|
||
<br>
|
||
<h3>What is PHP?</h3>
|
||
|
||
<p>
|
||
<acronym title="recursive acronym for PHP: Hypertext Preprocessor">PHP</acronym>
|
||
is a widely-used general-purpose scripting language that is
|
||
especially suited for Web development and can be embedded into HTML.
|
||
If you are new to PHP and want to get some idea
|
||
of how it works, try the ' . make_link("/tut.php", "introductory tutorial") . '.
|
||
After that, check out the online ' . make_link("/docs.php", "manual") . ',
|
||
and the example archive sites and some of the other resources
|
||
available in the ' . make_link("/links.php", "links section") . '.
|
||
</p>
|
||
|
||
<p>
|
||
Ever wondered how popular PHP is? see the ' .
|
||
make_link("/usage.php", "Netcraft Survey") . '.
|
||
</p>
|
||
|
||
<p>
|
||
PHP is a project of the ' .
|
||
make_link("http://www.apache.org/","Apache Software Foundation") . '.
|
||
</p>
|
||
|
||
<h3>' . make_link("/thanks.php", "Thanks To") . '</h3>
|
||
' . make_link("http://www.easydns.com/?V=698570efeb62a6e2", "easyDNS") . '<br>
|
||
' . make_link("http://promote.pair.com/direct.pl?php.net", "pair Networks") . '<br>
|
||
' . make_link("http://www.rackshack.net/", "RackShack") . ' <br>
|
||
' . make_link("http://www.rackspace.com/?supbid=php.net", "Rackspace") . '<br>
|
||
' . make_link("http://vasoftware.com/", "VA Software Corporation") . '<br>
|
||
<h3>Related sites</h3>
|
||
' . make_link("http://www.apache.org/", "Apache") . '<br>
|
||
' . make_link("http://www.mysql.com/", "MySQL") . '<br>
|
||
' . make_link("http://www.postgresql.org/", "PostgreSQL") . '<br>
|
||
' . make_link("http://www.zend.com/", "Zend Technologies") . '<br>
|
||
<h3>Community</h3>
|
||
' . make_link("http://www.devnetwork.net/", "PHP Developers Network") . '<br>
|
||
' . make_link("http://www.linuxfund.org/", "LinuxFund.org") . '<br>
|
||
' . make_link("http://www.osdn.org/", "OSDN") . '<br>
|
||
|
||
<h3>Contact</h3>
|
||
|
||
<p>
|
||
Please submit website bugs in the ' .
|
||
make_link('http://bugs.php.net/', 'bug system') . '.
|
||
</p>
|
||
';
|
||
|
||
// Find the type of logo provided and start the right
|
||
// sidebar with it if a mirror banner is available
|
||
$types = array("gif", "jpg", "png");
|
||
while (list(,$ext) = each($types)) {
|
||
if (file_exists("backend/mirror." . $ext)) {
|
||
$RSIDEBAR_DATA .= "<center><h3>This mirror sponsored by:</h3>\n
|
||
<a href='" . $MIRRORS[$MYSITE][3] . "'><img src='backend/mirror.$ext' ";
|
||
if ($MIRRORS[$MYSITE][4] === 2) {
|
||
$RSIDEBAR_DATA .= "width='125' height='125'";
|
||
} else {
|
||
$RSIDEBAR_DATA .= "width='120' height='60'";
|
||
}
|
||
$RSIDEBAR_DATA .=
|
||
" alt='" . $MIRRORS[$MYSITE][1] .
|
||
"' border='0' /></a></center><br />" . hdelim();
|
||
break;
|
||
}
|
||
}
|
||
|
||
// Read events CSV file, and appanend event information to right sidebar
|
||
$fp = @fopen("backend/events.csv", "r");
|
||
if ($fp) {
|
||
$cm = 0;
|
||
while (!feof($fp)) {
|
||
list($d, $m, $y, $url, $desc, $id) = fgetcsv($fp, 8192);
|
||
// fgetcvs returns an array with a single null element for a blank line
|
||
if ($d === NULL) { continue; }
|
||
if ($cm != (int) $m) {
|
||
if ($cm) {
|
||
$RSIDEBAR_DATA .= "<br />\n";
|
||
} else {
|
||
$RSIDEBAR_DATA .= '<center><h3>Upcoming Events<br /><a href="submit-event.php">[add event]</a></h3></center>';
|
||
}
|
||
$cm = (int) $m;
|
||
$RSIDEBAR_DATA .= "<h4>".strftime('%B',mktime(12,0,0,$cm,$d,$y))."</h4>\n";
|
||
unset($seen);
|
||
}
|
||
if (!$seen[$desc]) {
|
||
$RSIDEBAR_DATA .= "$d. <a href=\"cal.php?id=$id\">". stripslashes($desc)."</a><br>\n";
|
||
$seen[$desc] = true;
|
||
}
|
||
}
|
||
fclose($fp);
|
||
}
|
||
|
||
commonHeader("Hypertext Preprocessor");
|
||
echo "\n<!--$MYSITE-->\n";
|
||
?>
|
||
|
||
<h1>PHP 4.2.3 Released</h1>
|
||
<p>
|
||
<font class="newsdate">[06-Sept-2002]</font>
|
||
<a href="downloads.php">PHP 4.2.3</a> has been released with a large number of bug fixes. It is a maintenance
|
||
release, and is a recommended update for all users of PHP, and Windows users in particular. A complete
|
||
list of changes can be found in the <a href="ChangeLog-4.php">ChangeLog</a>.
|
||
</p>
|
||
|
||
<?php echo hdelim(); ?>
|
||
|
||
|
||
<?php print_link("http://www.php-conference.de/2002/index_en.php", make_image("phpconf2002.gif", "PHP Conference 2002", "right")); ?>
|
||
|
||
<h1>International PHP Conference 2002 (Frankfurt, Nov 3-6)</h1>
|
||
<p>
|
||
<font class="newsdate">[05-Sept-2002]</font>
|
||
After the big success of last year’s first International PHP Conference this
|
||
year’s show will be even bigger and better.</p>
|
||
|
||
<p>
|
||
<a href="http://www.php-conference.de/2002/index_en.php">Come to Frankfurt</a>
|
||
and meet the most excellent speakers of the PHP community on four following days
|
||
packed with <a href="http://www.php-conference.de/2002/pw_en.php">whole day
|
||
tutorials</a> on November 3 and 4 and a great variety of sessions on November
|
||
5 and 6.</p>
|
||
|
||
<p>
|
||
The topics are PHP Applications, PHP & Business, Database Topics, PHP & GTK,
|
||
PHP Internals / Extensions, PHP & XML, and others.</p>
|
||
|
||
<p><a href="https://www.entwickler.com/ssl/php2002/en/form_php2002.php">Early
|
||
bird registration</a> will end on 7th of October. Students and private
|
||
persons get special discounts.</p>
|
||
|
||
<?php echo hdelim(); ?>
|
||
|
||
<?php print_link("http://www.php-con.com/", make_image("phpcon2002.png", "PHPCon 2002", "right") ); ?>
|
||
|
||
<h1>PHPCon 2002 (California, Oct 24-25)</h1>
|
||
<p>
|
||
<font class="newsdate">[05-Sept-2002]</font>
|
||
<a href="http://www.php-con.com" title="PHPCon 2002">PHPCon 2002</a>, a
|
||
2-day technical conference devoted entirely to PHP, announced today the
|
||
launch of the PHPCon 2002 website, online registration, and a call for
|
||
participation.</p>
|
||
|
||
<p>
|
||
<a href="http://www.php-con.com/2002/register.php">Early Bird
|
||
registration</a> is now open for PHPCon 2002. Strong technical tracks on
|
||
Enterprise PHP, Application Development, and XML combined with speakers
|
||
from Rackspace, Yahoo!, Macromedia, and MySQL make this the conference a
|
||
must attend for anyone interested in expanding their PHP knowledge.</p>
|
||
|
||
<p>
|
||
Join PHPCon in delivering the PHP message with Birds of a Feather (BoFs)
|
||
and Works in Process (WiPs) sessions. Submit your BoF and WiP topics <a
|
||
href="http://www.php-con.com/2002/bof_form.php" title=" BoF - WiP
|
||
Submission ">online</a>.</p>
|
||
|
||
<p>
|
||
An idea who's time has come, don't miss this opportunity to attend the
|
||
only conference in the US is placing PHP front and center as the language
|
||
for solving web problems. PHPCon 2002, October 24 & 25, 2002, Millbrae,
|
||
California.</p>
|
||
|
||
<?php echo hdelim(); ?>
|
||
|
||
<?php print_link("http://weblabor.hu/php-doc-chm", make_image("chmhelp.gif", "CHM", "right") ); ?>
|
||
|
||
<h1>New Release of the PHP Manual CHM Edition</h1>
|
||
<p>
|
||
<font class="newsdate">[04-Sept-2002]</font> The 9th sample of the CHM edition is out now.
|
||
This sample includes a workaround for the most annoying IE6 bug we met so far,
|
||
and also simplifies the skin choosing process putting all available skins to
|
||
a dropdown list. Every designer is welcome to make their own skins and submit
|
||
them for inclusion in the standard set or distribute in our soon-to-be online
|
||
skin repository.
|
||
<?php print_link("http://weblabor.hu/php-doc-chm", "Try out the new CHM Edition"); ?>,
|
||
and please send us your feedback to our <?php print_link("mailto:php-doc-chm@lists.php.net",
|
||
"dedicated mailing list"); ?>.
|
||
</p>
|
||
|
||
<?php echo hdelim(); ?>
|
||
|
||
<h1>Printer friendly manual pages with notes</h1>
|
||
<p>
|
||
<font class="newsdate">[03-Aug-2002]</font> Starting from today, the
|
||
manual pages are not only available in their printer friendly versions,
|
||
but also in printer friendly versions with user notes included. Check
|
||
the links at the <a href="/manual">top of the manual pages</a> to go
|
||
to printer friendly manual pages, and change languages.
|
||
</p>
|
||
|
||
<?php echo hdelim(); ?>
|
||
|
||
<h1>ActiveState Awards</h1>
|
||
<p>
|
||
<font class="newsdate">[31-Jul-2002]</font> ActiveState is pleased to announce
|
||
the winners of the 2002 Active Awards, presented at the O'Reilly Open Source
|
||
Conference in San Diego, CA. The Active Awards are held annually to honor
|
||
members of the PHP, Python, Perl, Tcl, and XSLT communities, who
|
||
<em>actively</em> contribute to open languages and display excellence in
|
||
their programming efforts. Activators' Choice Award winners were chosen by
|
||
ActiveState's development team. Programmers' Choice Award winners were
|
||
nominated and chosen by the open source community, the nominees were:
|
||
Greg Allan; Stig Bakken; Bogomil Shopov; Philippe Thomassigny; and
|
||
Andrei Zmievski.
|
||
</p><p>
|
||
The Activators' Choice winners are Derick Rethans and Jani Taskinen.
|
||
Derick is heavily involved in developing processes for QA and Release
|
||
Management, and Jani has been one of the largest contributors to QA and
|
||
support of the Bug database. The Programmers' Choice winner is Greg
|
||
Allen, who was the lead developer and founding member of the PostNuke
|
||
project. More details are available at
|
||
<?print_link('http://www.ActiveState.com/ActiveAwards2002', 'http://www.ActiveState.com/ActiveAwards2002')?>
|
||
</p>
|
||
|
||
<?php echo hdelim(); ?>
|
||
|
||
<h1>PHP 4.2.2 released in response to vulnerability</h1>
|
||
|
||
<p>
|
||
<font class="newsdate">[22-Jul-2002]</font> The PHP Group today announced
|
||
the details of a serious <a href="release_4_2_2.php">vulnerability</a> in PHP versions 4.2.0 and 4.2.1.
|
||
A security update, <a href="downloads.php">PHP 4.2.2</a>, fixes the issue. Everyone running
|
||
affected versions of PHP is encouraged to upgrade immediately. The new 4.2.2
|
||
release doesn't include other changes, so upgrading from 4.2.1 is safe and painless.
|
||
</p>
|
||
|
||
<?php echo hdelim(); ?>
|
||
|
||
<h1>New comp.lang.php newsgroup started</h1>
|
||
|
||
<p>
|
||
<font class="newsdate">[09-Jul-2002]</font> comp.lang.php was created yesterday,
|
||
after a two and a half month long process started in April by Ian Fette resulted
|
||
in a <a href="http://groups.google.com/groups?q=comp.lang.php&hl=en&lr=&ie=UTF-8&sel
|
||
m=1025483879.39561%40isc.org&rnum=3">177-11 vote</a> in favor of the group.
|
||
The new group is already carried on most news servers, and should be carried
|
||
on almost all news servers in the world within the next few days.
|
||
</p>
|
||
|
||
<p>
|
||
The new group is important for a few reasons: Firstly, the old alt.* php
|
||
groups suffered from poor propagation - i.e. not all servers carried them,
|
||
and the community was split between multiple groups. This new group offers a
|
||
chance to unite the PHP-Usenet community. Secondly, most servers have longer
|
||
post-retention times for comp.* than alt.*. Finally, the creation of
|
||
comp.lang.php represents PHP's coming to acceptance and maturity. Virtually
|
||
all languages have a spot under the comp.lang.* hierarchy. Stop on by and
|
||
become a part of the community - comp.lang.php is a great place to get help
|
||
and to help others.
|
||
</p>
|
||
|
||
<?php echo hdelim(); ?>
|
||
|
||
<?php echo make_image("engine.gif", "Zend Engine 2", "right"); ?>
|
||
|
||
<h1>Alpha 2 of PHP w/ the Zend Engine 2 Now Available</h1>
|
||
<p>
|
||
<font class="newsdate">[30-Jun-2002]</font>
|
||
The second alpha release of PHP w/ Zend Engine 2 is
|
||
<?php download_link("php-4.3.0-dev-zend2-alpha2.tar.gz", "now available"); ?>.
|
||
It is based on the current PHP 4 CVS (4.3.0-dev) and includes the new
|
||
scripting engine which greatly improves the object model, adds exception
|
||
handling and provides a much better infrastructure for the integration
|
||
of external technologies like Java or .NET. For more details and
|
||
examples you can check out the <a href="ZEND_CHANGES.txt">CHANGES file</a>
|
||
and an <a href="http://www.php.net/source.php?url=/zend2_example.phps">example script</a>
|
||
which shows how some of these features can be used.</p>
|
||
|
||
<p><b>Note:</b> This is an alpha version. It should not be used in production
|
||
or even semi-production web sites. There are known bugs in it, and in
|
||
addition, some of the features may change (based on feedback). We
|
||
encourage you to download and play with it (and report bugs if you find any!),
|
||
but please don't expect it to replace your copy of PHP 4 at this stage.</p>
|
||
|
||
<p>Windows binary version is also available for
|
||
<?php download_link("php-4.3.0-dev-zend2-win32-alpha2.zip", "download"); ?>.</p>
|
||
|
||
<?php echo hdelim(); ?>
|
||
|
||
<p align="center"><a href="/news.php">Old News</a></p>
|
||
|
||
<?php commonFooter(); ?>
|