Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. // check the maintenance mode switch - see commonfns ***************************************************
  4.  
  5. $onoff = getOnOff();
  6. $result = maintenanceCheck();
  7.  
  8. echo "<P>parent1 result says $result";
  9.  
  10. // only show this page if maintenance switch is off  
  11.  
  12. if ($onoff == 1) {
  13.   // show "undergoing maintenance" page
  14.   echo "<P>undergoing maintenance - don't hold your breath!";
  15. }
  16. else {
  17.   //execute the rest of this script
  18.   echo "<P>parent2 onoff says $onoff";
  19. }