
Untitled
By: a guest on
Jun 26th, 2012 | syntax:
None | size: 0.47 KB | hits: 10 | expires: Never
<?php
// check the maintenance mode switch - see commonfns ***************************************************
$onoff = getOnOff();
$result = maintenanceCheck();
echo "<P>parent1 result says $result";
// only show this page if maintenance switch is off
if ($onoff == 1) {
// show "undergoing maintenance" page
echo "<P>undergoing maintenance - don't hold your breath!";
}
else {
//execute the rest of this script
echo "<P>parent2 onoff says $onoff";
}