1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
Files
archived-web-php/index.php
Stewart Lord 6c31e4deaa Modified index.php to switch between the current stable home page and the
beta home page according to the result of myphpnet_beta().

This will allow us to modify the content of the home page without influencing
the current stable site.

Added index-beta.php and index-stable.php which are exact copies of the
previous index.php.
2011-01-06 04:07:39 +00:00

10 lines
297 B
PHP

<?php // vim: et
// show beta home page if user has requested the beta site.
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
if (myphpnet_beta()) {
include $_SERVER['DOCUMENT_ROOT'] . '/index-beta.php';
} else {
include $_SERVER['DOCUMENT_ROOT'] . '/index-stable.php';
}