mirror of
https://github.com/php/web-php.git
synced 2026-04-28 09:23:14 +02:00
16 lines
507 B
PHP
16 lines
507 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 {
|
|
$ts = time();
|
|
// Hardcode 11am Jan.18 UTC to 5am Jan.19 UTC time window
|
|
if($ts>=1326884400 && $ts<1326949200) {
|
|
include $_SERVER['DOCUMENT_ROOT'] . '/index-sopa.php';
|
|
} else {
|
|
include $_SERVER['DOCUMENT_ROOT'] . '/index-stable.php';
|
|
}
|
|
}
|