mirror of
https://github.com/php/web-php.git
synced 2026-03-24 07:12:16 +01:00
484 lines
18 KiB
PHP
484 lines
18 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 an
|
|
another 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("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";
|
|
|
|
// Check if the client has the same page cached
|
|
if ($_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);
|
|
}
|
|
|
|
include_once 'prepend.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 ' . 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.redundant.com/", "Redundant Networks") . '<br />
|
|
' . make_link("http://www.rackspace.com/?supbid=php.net", "Rackspace") . '<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>Syndication</h3>
|
|
|
|
<p>
|
|
You can grab our news as an <img src="/images/rss10.gif" align="absmiddle" alt="XML" />
|
|
(RSS) feed via a daily dump in a file named <a href="/news.rss">news.rss</a>.
|
|
</p>
|
|
|
|
<h3>Contact</h3>
|
|
|
|
<p>
|
|
Please submit website bugs in the ' .
|
|
make_link('http://bugs.php.net/', 'bug system') . '.
|
|
</p>';
|
|
|
|
// Possible mirror provider logo
|
|
// image types in priority order
|
|
$types = array("gif", "jpg", "png");
|
|
|
|
// Go through all possible types
|
|
while (list(,$ext) = each($types)) {
|
|
|
|
// Check if file exists for this type
|
|
if (file_exists("backend/mirror." . $ext)) {
|
|
|
|
// Add text to rigth sidebar
|
|
$RSIDEBAR_DATA .= "<div align=\"center\"><h3>This mirror sponsored by:</h3>\n";
|
|
|
|
// Create image HTML code
|
|
$img = make_image('mirror.' . $ext, 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
|
|
$RSIDEBAR_DATA .= make_link(mirror_provider_url(), $img) .
|
|
'</div><br />' . hdelim();
|
|
|
|
// We have found an image
|
|
break;
|
|
}
|
|
}
|
|
|
|
// Read in events CSV file
|
|
$fp = @fopen("backend/events.csv", "r");
|
|
|
|
// If we were able to open the file
|
|
if ($fp) {
|
|
|
|
// Current month number (for delimiter additions)
|
|
$cm = 0;
|
|
|
|
// Event duplication check hash
|
|
$seen = array();
|
|
|
|
// While we can read the events file
|
|
while (!feof($fp)) {
|
|
|
|
// Get information event elements from file
|
|
list($d, $m, $y, $url, $desc, $id) = fgetcsv($fp, 8192);
|
|
|
|
// Fgetcvs() returns an array with a single null element
|
|
// for a blank line, which we need to skip
|
|
if ($d === NULL) { continue; }
|
|
|
|
// If the month number changed
|
|
if ($cm != (int) $m) {
|
|
|
|
// If we are not at the begining
|
|
if ($cm) {
|
|
$RSIDEBAR_DATA .= "<br />\n";
|
|
}
|
|
// If we are at the begining
|
|
else {
|
|
$RSIDEBAR_DATA .= '<div align="center"><h3>Upcoming Events<br /><a href="submit-event.php">[add event]</a></h3></div>';
|
|
}
|
|
|
|
// Update current month information
|
|
$cm = (int) $m;
|
|
|
|
// Add month name
|
|
$RSIDEBAR_DATA .= "<h4>" . strftime('%B', mktime(12, 0, 0, $cm, $d, $y)) . "</h4>\n";
|
|
|
|
// We have not seen any events in this month
|
|
$seen = array();
|
|
}
|
|
|
|
// There is no event with this description in this month
|
|
if (!$seen[$desc]) {
|
|
// Add event to sidebar
|
|
$RSIDEBAR_DATA .= "$d. <a href=\"cal.php?id=$id\">" . stripslashes($desc) . "</a><br />\n";
|
|
// Set seen flag
|
|
$seen[$desc] = true;
|
|
}
|
|
}
|
|
|
|
// Close file (all events displayed)
|
|
fclose($fp);
|
|
}
|
|
|
|
// Write out common header
|
|
commonHeader("Hypertext Preprocessor");
|
|
|
|
// Diagnostical echo, to see what the mirror thinks about itself
|
|
echo "\n<!--$MYSITE-->\n";
|
|
?>
|
|
|
|
<?php print_link("http://phpconf.hu/", make_image("news/hu_conf.gif", "PHPConf.hu", "right") ); ?>
|
|
|
|
<h1>First Hungarian PHP Conference</h1>
|
|
|
|
<p>
|
|
<font class="newsdate">[25-Feb-2003]</font> The members of the Hungarian PHP
|
|
community announce <a href="http://phpconf.hu/">the first Hungarian PHP
|
|
Conference</a> which will take place in Budapest, on Saturday March 29th,
|
|
sponsored by several international and local companies. The conference offers
|
|
an entirely free one-day activity with several presentations addressing basic
|
|
and advanced topics, as well, exclusively in Hungarian. Moreover, a five
|
|
kilobyte-limited PHP contest has been started to discover the most talented
|
|
PHP programmers in our country. The programme includes the first session of
|
|
the so-called PHP Division which will be established with the set purpose
|
|
of representing the community itself and promoting their interests in any
|
|
national business and official phorums.
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<h1>PHP 4.3.1 released in response to CGI vulnerability</h1>
|
|
|
|
<p>
|
|
<font class="newsdate">[17-Feb-2003]</font> The PHP Group today announced
|
|
the details of a serious <a href="release_4_3_1.php">CGI vulnerability</a> in PHP version 4.3.0.
|
|
A security update, <a href="downloads.php">PHP 4.3.1</a>, fixes the issue. Everyone running
|
|
affected version of PHP (as CGI) are encouraged to upgrade immediately.
|
|
The new 4.3.1 release does not include any other changes, so upgrading from 4.3.0 is safe and painless.
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<?php print_link("http://www.php-con.com/return.php?i=ph2", make_image("news/phpcon_logo.png", "PHPCon East 2003", "right") ); ?>
|
|
|
|
<h1>PHPCon East 2003 - (April 23-25, 2003)</h1>
|
|
<p>
|
|
<font class="newsdate">[01-Feb-2003]</font>
|
|
PHPCon announces PHPCon East 2003 in New York City. This conference
|
|
features two days of technical learning with speakers such as
|
|
Rasmus Lerdorf, Zeev Suraski, Michael Radwin, George Schlossnagle and Jeremy Zawodny. PHPCon East also
|
|
adds a third, full day of tutorials offering practical, cogent PHP
|
|
solutions and ideas including: MySQL and PHP; Building and Consuming Web
|
|
Services with SOAP; Getting Started with PHP; High Performance PHP:
|
|
Profiling and Benchmarking; and more!</p>
|
|
|
|
<p>PHPCon East has discounts for early registration, students, non-profits,
|
|
and Tutorial/Conference packages. Early Bird Deadline is March 31st. For
|
|
more program information, <a href="http://www.php-con.com/return.php?i=ph2">visit
|
|
the PHPCon website</a>.</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<h1>LinuxTag, Karlsruhe, July 10th - 13th</h1>
|
|
<p>
|
|
<font class="newsdate">[30-January-2003]</font>
|
|
LinuxTag e.V has once again put out a call for papers for this years conference event. Submit your ideas
|
|
and proposals <a href="http://www.linuxtag.org/2003/en/conferences/cfp.html">here</a>. This year's theme
|
|
looks at discussions that promote new ideas, delivers a broad overview, introduces new users to linux, or
|
|
discusses the legal, moral and other implications of linux and free software.</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<?php print_link("http://phpconf.phpquebec.org/index.php", make_image("news/conference_php_quebec.gif", "Conference PHP Quebec", "right") ); ?>
|
|
|
|
<h1>Conférence PHP Québec 2003 - (Montréal, March 20&21rst, 2003)</h1>
|
|
<p>
|
|
<font class="newsdate">[28-Jan-2003]</font>
|
|
The PHP Québec association announces the <a
|
|
href="http://phpconf.phpquebec.com/">Conférence PHP Québec 2003</a>.
|
|
The conference will take place in the École Polytechnique de Montréal,
|
|
Québec, Canada.</p>
|
|
|
|
<p>
|
|
The Conférence PHP Québec features two days of conferences, with
|
|
outstanding customer cases from Canada, and cutting edge technical
|
|
sessions, hosted by international experts. An exhibitor room will
|
|
showroom professional solutions.</p>
|
|
|
|
<p>Learn more about those exciting days at
|
|
<a href="http://phpconf.phpquebec.org/index.php">phpconf.phpquebec.com</a>.</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<?php print_link("http://www.phpconference.com/", make_image("news/international_conference_2003_spring.gif", "Int'l PHP Conference", "right") ); ?>
|
|
|
|
<h1>International PHP Conference 2003 - Spring Edition (Amsterdam, May 8-9)</h1>
|
|
<p>
|
|
<font class="newsdate">[13-Jan-2003]</font>
|
|
Software & Support Verlag announced the <a
|
|
href="http://www.phpconference.com/">International PHP Conference 2003 - Spring
|
|
Edition</a> - in Amsterdam. The dates for this event for PHP enthusiasts from
|
|
all over the world will be May 8 and 9, 2003. The conference venue is the RAI
|
|
conference center in Amsterdam.</p>
|
|
|
|
<p>Like the International PHP Conferences in Frankfurt this conference will
|
|
offer a first class program to an international audience of PHP enthusiasts.
|
|
We are happy to ask you to submit your <a
|
|
href="http://www.phpconference.com/content/content2.php?CatID=0&NewsID=354">proposals</a>
|
|
for the session program.</p>
|
|
|
|
<p>The topics are General PHP, PHP & Business, PHP & Databases, PHP
|
|
Design, PHP Extensions, PHP & XML and PHP-GTK.</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<h1>PEAR Out of Beta!</h1>
|
|
<p>
|
|
<font class="newsdate">[11-Jan-2003]</font>
|
|
The PEAR development team is proud to announce that
|
|
<a href="http://pear.php.net/">PEAR</a> is finally out of its long
|
|
beta period. As of PHP 4.3, the PEAR installer is installed by default.
|
|
Unix support is considered stable, while Windows and Darwin are still
|
|
of beta-quality.
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<h1>PHP Look Back 2002</h1>
|
|
<p>
|
|
<font class="newsdate">[31-Dec-2002]</font>
|
|
We are at the end of 2002, and it seemed appropriate to look back on the
|
|
development issues of the past year. So starts the first PHP Look Back! You can
|
|
find it in on the non-official personal website of one of the PHP Developers <a
|
|
href="http://www.derickrethans.nl/20021230.php">here</a>.
|
|
</p>
|
|
<p>
|
|
Happy New Year!
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<h1>PHP 4.3.0 Released!</h1>
|
|
<p>
|
|
<font class="newsdate">[27-Dec-2002]</font>
|
|
The PHP developers are pleased to announce the immediate availability of
|
|
<a href="downloads.php">PHP 4.3.0</a>, the latest and greatest version of this
|
|
extremely popular and widely used scripting language.
|
|
</p>
|
|
|
|
<p>
|
|
This release contains a multitude of changes, bug fixes and improvements over
|
|
the previous one, PHP 4.2.3. It further elevates PHP's standing as a serious
|
|
contender in the general purpose scripting language arena. Please see
|
|
the full <a href="release_4_3_0.php">release announcement</a>.
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<?php print_link("http://weblabor.hu/php-doc-chm", make_image("news/chmhelp.gif", "CHM", "right") ); ?>
|
|
|
|
<h1>New Release of the PHP Manual CHM Edition - Please Help Us</h1>
|
|
<p>
|
|
<font class="newsdate">[27-Dec-2002]</font>
|
|
The 11th sample of the CHM edition is available for download from today. The
|
|
sample hopefully fixed the missing page bugs forever, introduces a new
|
|
integration method (see documentation inside) and contains actual manual
|
|
text, mirrors list and user notes.
|
|
<?php print_link("http://weblabor.hu/php-doc-chm", "See the edition's page for download"); ?>.
|
|
</p>
|
|
|
|
<p>
|
|
We also would like to ask you to help out in testing our new on-the-fly
|
|
syntax highlighter, which would make the CHM significantly smaller, and
|
|
would give you more options in displaying the pages.
|
|
<?php print_link("http://weblabor.hu/php-doc-chm", "See the edition's page for more information"); ?>.
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<?php print_link("http://www.mysql.com/events/uc2003/", make_image("news/mysqluc2003.png", "MySQL Users Conference and Expo 2003", "right") ); ?>
|
|
|
|
<h1>MySQL Users Conference and Expo 2003 in San Jose</h1>
|
|
<p>
|
|
<font class="newsdate">[16-Dec-2002]</font>
|
|
MySQL AB is proud to host the world's First Annual MySQL User
|
|
Conference, to be held in the heart of Silicon Valley, April 10-12,
|
|
2003. This event promises to be the biggest gathering of MySQL database
|
|
users ever in one location. Designed for both the MySQL developer and
|
|
the corporate decision maker, this is the place to learn about the
|
|
latest in MySQL technology, discover new business opportunities, take a
|
|
pulse on industry direction and commune with like minds.
|
|
More information on <a href="http://www.mysql.com/events/uc2003/">the
|
|
event's website</a>.
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<h1>PHP news feed available</h1>
|
|
<p>
|
|
<font class="newsdate">[01-Dec-2002]</font>
|
|
The news of PHP.net is available now in RSS 1.0 format via our
|
|
new <a href="/news.rss">news.rss file</a>. You can
|
|
add this file to any news reader or portal site to get the latest
|
|
official PHP news. We strongly recommend you to cache the contents
|
|
locally on your side, as the newsfeed is updated daily. The RSS
|
|
file is available on every mirror site.
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<?php print_link("http://www.afup.org/", make_image("news/afup-logo.gif", "AFUP", "right") ); ?>
|
|
|
|
<h1>Forum PHP 2002 in Paris, France</h1>
|
|
<p>
|
|
<font class="newsdate">[21-Nov-2002]</font>
|
|
The French PHP User Group AFUP invites you to the "Forum PHP 2002" in
|
|
Paris, on December 9th and 10th. Designed to meet the needs of PHP aware
|
|
companies and all the French PHP developper's community alike, this
|
|
event will provided you with valuable and up-to-date information.
|
|
For more information (in French) see the
|
|
<a href="http://www.afup.org/article.php3?id_article=136">PHP Forum</a>
|
|
website.
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<h1>PHP Magazine - International Edition</h1>
|
|
<p>
|
|
<font class="newsdate">[17-Nov-2002]</font>
|
|
Software & Support Verlag GmbH is going to publish an International version
|
|
of the <a href="http://www.phpmag.de/">PHP Magazin</a>. This magazine was
|
|
initiated after growing interest for an English magazine after the German
|
|
version has been around for a few months.
|
|
</p>
|
|
<p>
|
|
PHP Magazine not only informs about the scripting language itself, but also about
|
|
related technologies such as the Apache Web Server, database technologies, XML
|
|
and other innovative internet technologies. Different sections within the
|
|
magazine are oriented towards the specific question areas with which a web
|
|
developer is confronted in daily practice.
|
|
</p>
|
|
<p>
|
|
The first issue will be published in December and the frequency of issues is
|
|
two months. You will be able to subscribe on the <a
|
|
href="http://www.php-mag.net/">website</a> which will open shortly.
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<h1>New Monthly PHP Magazine Launched</h1>
|
|
<p>
|
|
<font class="newsdate">[15-Nov-2002]</font>
|
|
php|architect, a new monthly magazine dedicated exclusively to PHP, has
|
|
launched <a href="http://www.phparch.com/">its website</a>. php|a is published
|
|
in PDF format and is available worldwide. It covers a variety of advanced
|
|
topics ranging from day-to-day programming to the internals of PHP. A sample
|
|
article on the creation of a web-based PDF converter is also
|
|
available on the magazine website
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<h1>PHP Search Bars available for major browsers</h1>
|
|
<p>
|
|
<font class="newsdate">[29-Oct-2002]</font>
|
|
We added a new option to access our site's content quickly. In addition to
|
|
<a href="/urlhowto.php">URL shortcuts</a>, keyboard shortcuts and
|
|
<a href="/tips.php">browser specific magic</a> you can now use our
|
|
<a href="/sidebars.php">Search Bar</a> from the major browsers. Please help
|
|
us to test this new service, and provide feedback via
|
|
<a href="http://bugs.php.net/">the bug system</a> (categorize your bug
|
|
as a PHP.net website bug please).
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<h1>PHP at the LinuxWorld Expo Oct. 29-31th in Frankfurt, Germany</h1>
|
|
<p>
|
|
<font class="newsdate">[28-Oct-2002]</font>
|
|
For the first time the Open Source projects comprising the popular LAMP
|
|
platform (Linux, Apache, MySQL and PHP) will be present at the
|
|
<a href="http://www.linuxworldexpo.de">LinuxWorld Expo</a>
|
|
with its own booth.
|
|
</p>
|
|
<p>
|
|
At the booth, which is organized by the <a href="http://www.php-ev.de">German
|
|
PHP Association</a> and the <a href="http://www.phpug.de">PHP Usergroup
|
|
Frankfurt</a>, fair visitors can experience and learn about Apache, MySQL, PHP
|
|
and related projects.
|
|
</p>
|
|
<p>
|
|
Visitors can take LAMP home, too, since there will be a CD with the necessary
|
|
software available at the booth.
|
|
</p>
|
|
|
|
<?php echo hdelim(); ?>
|
|
|
|
<p align="center"><a href="/news.php">Old News</a></p>
|
|
|
|
<?php commonFooter(); ?>
|