BUG 9814 Proposal pivot skin: UNDER CONSTRUCTION

PROBLEM  There is not a page to show up if PM is under updating.
SOLUTION Add a page to be displayed only if PM is updating.
This commit is contained in:
Ralph Asendeteufrer
2012-10-16 10:17:25 -04:00
parent e8e6b94d3b
commit 011b9f7445
4 changed files with 37 additions and 15 deletions

View File

@@ -258,11 +258,6 @@
if ( DEBUG_TIME_LOG ) G::logTimeByPage(); //log this page
die;
break;
case 'update':
header ("location: /update/updating.php");
if ( DEBUG_TIME_LOG ) G::logTimeByPage();
die;
break;
default :
if (substr($realPath, 0, 12) == 'rest-service') {
$isRestRequest = true;
@@ -278,13 +273,13 @@
// the request correspond to valid php page, now parse the URI
G::parseURI(getenv("REQUEST_URI"), $isRestRequest);
if(isset($_SERVER['Updating']) && $_SERVER['Updating'] == true)
//if(isset($_SERVER['Updating']) && $_SERVER['Updating'] == true)
if(G::isPMUnderUpdating())
{
header("location: /update/updating.php");
if ( DEBUG_TIME_LOG ) G::logTimeByPage();
die;
}
// verify if index.html exists
if (!file_exists(PATH_HTML . 'index.html')) { // if not, create it from template