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

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 0.43 KB  |  hits: 7  |  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. // check the maintenance mode switch - see commonfns ***************************************************
  2.  
  3. maintenanceCheck ();
  4.  
  5. echo "<P>parent1 result says $result";
  6.  
  7. // only show this page if maintenance switch is off    
  8.  
  9. if ($onoff == 1) {
  10.         // show "undergoing maintenance" page
  11.         echo "<P>undergoing maintenance - don't hold your breath!";
  12. } else {
  13.         //execute the rest of this script
  14.         echo "<P>parent2 onoff says $onoff";
  15. }