1
0
mirror of https://github.com/php/web-php.git synced 2026-04-01 12:12:16 +02:00
Files
archived-web-php/index.php

365 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 date of this PHP file
$timestamps[] = @getlastmod();
/*
The date of prepend.inc represents the age of ALL
included files. Please touch it if you modify any
other include file (and the modification affects
the display of the index page). 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("include/pregen-events.inc");
// 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";
// Check if the client has the same page cached
if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"]) &&
($_SERVER["HTTP_IF_MODIFIED_SINCE"] == $tsstring)) {
header("HTTP/1.1 304 Not Modified");
exit();
}
// Inform the user agent what is our last modification date
else {
header("Last-Modified: " . $tsstring);
}
$_SERVER['BASE_PAGE'] = 'index.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-events.inc';
// This goes to the left sidebar of the front page
$SIDEBAR_DATA = '
<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 <a href="/tut.php">introductory tutorial</a>.
After that, check out the online <a href="/docs.php">manual</a>,
and the example archive sites and some of the other resources
available in the <a href="/links.php">links section</a>.
</p>
<p>
Ever wondered how popular PHP is? see the
<a href="/usage.php">Netcraft Survey</a>.
</p>
<p>
PHP is a project of the
<a href="http://www.apache.org/">Apache Software Foundation</a>.
</p>
<h3><a href="/thanks.php">Thanks To</a></h3>
<ul class="simple">
<li><a href="http://www.easydns.com/?V=698570efeb62a6e2">easyDNS</a></li>
<li><a href="http://www.directi.com/">Directi</a></li>
<li><a href="http://promote.pair.com/direct.pl?php.net">pair Networks</a></li>
<li><a href="http://www.ev1servers.net/">EV1Servers</a></li>
<li><a href="http://www.servercentral.net/">Server Central</a></li>
<li><a href="http://www.redundant.com/">Redundant Networks</a></li>
<li><a href="http://www.simplicato.com/?a=1007">Simplicato</a></li>
<li><a href="http://www.spry.com/">Spry VPS Hosting</a></li>
<li><a href="http://ez.no/">eZ systems</a> / <a href="http://www.hit.no/">HiT</a></li>
</ul>
<h3>Related sites</h3>
<ul class="simple">
<li><a href="http://www.apache.org/">Apache</a></li>
<li><a href="http://www.mysql.com/">MySQL</a></li>
<li><a href="http://www.postgresql.org/">PostgreSQL</a></li>
<li><a href="http://www.zend.com/">Zend Technologies</a></li>
</ul>
<h3>Community</h3>
<ul class="simple">
<li><a href="http://www.linuxfund.org/">LinuxFund.org</a></li>
<li><a href="http://www.osdn.org/">OSDN</a></li>
</ul>
<h3>Syndication</h3>
<p>
You can grab our news as an RSS feed via a daily dump in a file
named <a href="/news.rss">news.rss</a>.
</p>';
$MIRROR_IMAGE = '';
// Try to find a sponsor image in case this is an official mirror
if (is_official_mirror()) {
// Iterate through possible mirror provider logo types in priority order
$types = array("gif", "jpg", "png");
while (list(,$ext) = each($types)) {
// Check if file exists for this type
if (file_exists("backend/mirror." . $ext)) {
// Add text to rigth sidebar
$MIRROR_IMAGE = "<div align=\"center\"><h3>This mirror sponsored by:</h3>\n";
// Create image HTML code
$img = make_image(
'mirror.' . $ext,
htmlspecialchars(mirror_provider()),
FALSE,
FALSE,
'backend',
0
);
// Add size information depending on mirror type
if (is_primary_site() || is_backup_primary()) {
$img = resize_image($img, 125, 125);
} else {
$img = resize_image($img, 120, 60);
}
// End mirror specific part
$MIRROR_IMAGE .= '<a href="' . mirror_provider_url() . '">' .
$img . "</a></div><br /><hr />\n";
// We have found an image
break;
}
}
}
// Prepend mirror image to sidebar text
$RSIDEBAR_DATA = $MIRROR_IMAGE . $RSIDEBAR_DATA;
// Run the boldEvents() function on page load
$ONLOAD = "boldEvents(); searchHistory();";
// Write out common header
commonHeader("Hypertext Preprocessor");
// DO NOT REMOVE THIS COMMENT (the RSS parser is dependant on it)
?>
<h1>Second PHP Marathon announced</h1>
<p>
<span class="newsdate">[06-Apr-2004]</span>
DotGeek.org is proud to announce the <a href="http://marathon.dotgeek.org/">second
PHP Programming Marathon</a> to be held on the 24 April 2004. Instead of receiving the
problems and composing your solutions offline, it all takes place online and within
a specific timeframe. The Marathon is kindly sponsored by Zend Technologies and will
now feature a problem on PHP 5. Participation is free of charge.
</p>
<hr />
<?php news_image("/downloads.php", "php-version4.gif", "PHP 4"); ?>
<h1>PHP 4.3.6RC2 released!</h1>
<p>
<span class="newsdate">[05-Apr-2004]</span>
In the spirit of release early, release often here is the second and
hopefully the final <a href="http://qa.php.net/">release candidate of
PHP 4.3.6</a>. This release addresses 2 major bugs introduced in the
4.3.5 release. One of these bugs caused problems when loading dynamic
extensions on Windows and thread-safe (ZTS) builds and the other involves
incorrect handling of daylight savings time. A few other minor bugs
were fixed as well.
</p>
<hr />
<?php news_image("/downloads.php", "php-version4.gif", "PHP 4"); ?>
<h1>PHP 4.3.5 released!</h1>
<p>
<span class="newsdate">[26-Mar-2004]</span>
The PHP Development Team is proud to announce the release of <a href="/downloads.php">PHP 4.3.5</a>.
This is a bug fix release, without any new features or additions. It
is by far the most stable release of PHP to date and it is recommended that
all users upgrade to this release where possible.
</p>
<p>
This release resolves over a hundred various bugs and problems with previous versions.
For a full list of changes in PHP 4.3.5, see the <a href="/ChangeLog-4.php#4.3.5">ChangeLog</a>.
</p>
<hr />
<?php news_image("/downloads.php#5", "php-version5.gif", "PHP 5"); ?>
<h1>PHP 5 Release Candidate 1 Released!</h1>
<p>
<span class="newsdate">[18-Mar-2004]</span>
The <a href="/downloads.php#v5">first Release Candidate of PHP 5</a> is finally
here! The move from Beta stage to RC stage means that PHP 5 is now feature
complete, and is quite stable - stable enough for everyone to start playing
with. Note that it is still <i>not</i> recommended for mission-critical
use.
</p>
<p>Some of the key features of PHP 5 include:</p>
<ul>
<li>
The <a href="http://www.zend.com/php5/zend-engine2.php">Zend Engine II</a>
with a new object model and dozens of new features.
</li>
<li>
XML support has been completely redone in PHP 5, all extensions are now
focused around the excellent libxml2 library
(<a href="http://www.xmlsoft.org/">http://www.xmlsoft.org/</a>).
</li>
<li>
A new MySQL extension named MySQLi for developers using MySQL 4.1 and later.
This new extension includes an object-oriented interface in addition to
a traditional interface; as well as support for many of MySQL's new features,
such as prepared statements.
</li>
<li>
SQLite has been bundled with PHP. For more information on SQLite,
please visit <a href="http://www.sqlite.org/">their website</a>.
</li>
<li>
A brand new built-in SOAP extension for interoperability with Web Services.
</li>
<li>
A new SimpleXML extension for easily accessing and manipulating XML as
PHP objects. It can also interface with the DOM extension and vice-versa.
</li>
<li>
Streams have been greatly improved, including the ability to access
low-level socket operations on streams.
</li>
<li>And lots more...</li>
</ul>
<p>
For changes since Beta 4, please consult the
<a href="/ChangeLog-5.php#5.0.0RC1">ChangeLog</a>.
</p>
<hr />
<h1>Spanish PHP Mailing List Now at PHP.net</h1>
<p>
<span class="newsdate">[29-Feb-2004]</span>
The Spanish PHP mailing list was relocated to our list server. If you would like to subscribe
to the list, you can do it via our <a href="mailing-lists.php">mailing lists page</a>. To read
the archives, please see <a href="http://news.php.net/">our news server</a>.
</p>
<hr />
<?php news_image("http://www.phpconference.com/", "intcon2004spring.png", "International PHP Conference 2004 - Spring Edition"); ?>
<h1>International PHP Conference 2004 Amsterdam: Timetable and Open Source PHP projects</h1>
<p>
<span class="newsdate">[27-Feb-2004]</span>
Having the CfP over now, the organizers of the
<a href="http://www.phpconference.com/">International PHP Conference
2004 Spring Edition Amsterdam</a> have published the
<a href="http://www.phpconference.com/proxy/proxy.php?CatID=0&amp;NewsID=374">session
and workshop timetable</a>. The Conference features 32 sessions and two
power workshops. It will happen again at <a
href="http://www.phpconference.com/content/content2.php?CatID=0&amp;NewsID=356">the
RAI Conference Centre, Amsterdam</a>.
</p>
<p>
<strong>Open Source PHP projects</strong> can present themselves, like in
the last years, for free on the Conference at the exhibition area between
the commercial exhibitors. Take your chance and contact
<a href="mailto:fstepan@entwickler.com">Frank Stepan</a> from
Software &amp; Support.
</p>
<hr />
<?php news_image("http://conf.phpquebec.org/", "conference_php_quebec.gif", "Conference PHP Quebec"); ?>
<h1>Conf&eacute;rence PHP Qu&eacute;bec 2004 - (Montr&eacute;al, March 25&amp;26rst, 2004)</h1>
<p>
<span class="newsdate">[11-Feb-2004]</span>
The PHP Qu&eacute;bec Association announces the <a
href="http://conf.phpquebec.com/">Conference PHP Qu&eacute;bec 2004</a>.
The conference features 20 sessions over 2 days, in English and French.
3 tracks : PHP advanced technics, PHP professionnal and Open Source technologies.
It will take place downtown Montr&eacute;al, Qu&eacute;bec, Canada.
</p>
<p>
We are currently offering <a
href="http://conf.phpquebec.org/main.php/en/conf2004/tarif">early bird prices</a>.
Students and Small Businesses are eligible for reduced prices.
Buy your tickets early to get rebates and discount with the DVD!
</p>
<p>
Learn more about those exciting days at
<a href="http://conf.phpquebec.org/">conf.phpquebec.com</a>.
</p>
<hr />
<?php news_image("http://www.pawscon.com/", "paws_small.jpg", "PHP and Web Standards Conference - UK 2004"); ?>
<h1>PaWS Tickets Now On Sale!</h1>
<p>
<span class="newsdate">[05-Feb-2004]</span>
The <a href="http://www.pawscon.com/">PaWS Group</a> is proud to announce that
tickets are now available for the first
<a href="http://www.pawscon.com/">PHP and Web Standards Conference</a>. We are
offering Weekend tickets (Saturday 21st and Sunday 22nd only) as well as Conference
tickets (Friday 20th - Tuesday 24th) for the entire length of the event.
Additionally, we also have Daily tickets available for each day of the conference.
Tickets will also be available on the door for those that simply want to drop in.
</p>
<p>
For ticket and accommodation Prices, look over our
<a href="http://www.pawscon.com/pricing">pricing guide</a> for more information.
<a href="http://www.pawscon.com/register">Purchase your tickets</a> today for this
one of a kind conference!
</p>
<hr />
<h1>Call for Papers Reminder: O'Reilly Open Source Convention</h1>
<p>
<span class="newsdate">[03-Feb-2004]</span>
The <a href="http://conferences.oreillynet.com/os2004/">2004 O'Reilly Open
Source Convention</a> will be in Portland OR, July 26-30.
<a href="http://conferences.oreillynet.com/cs/os2004/create/e_sess">Submit</a>
your PHP-related talks and tutorials until the February 9 deadline.
</p>
<hr />
<?php news_image("http://www.phparch.com/cruise", "phpcruise.png", "php|cruise"); ?>
<h1>php|cruise deadline set for February 15th</h1>
<p>
<span class="newsdate">[16-Jan-2004]</span>
The organizers of the <a
href="http://www.phparch.com/cruise">php|cruise</a> conference (March
1st through March 5th, 2004) have announced that February 15th will be
the deadline to <a href="http://www.phparch.com/cruise/signup.php">sign
up for the event</a>. php|cruise features over 30 sessions, covering
material from beginner to advanced level, and takes place onboard a
cruise ship bound for the Bahamas islands.
</p>
<hr />
<p class="center"><a href="/news-2003.php">News Archive</a></p>
<?php commonFooter(); ?>