Latest articles
Latest articles of category




Online-Offline mode


The site can be in an online or offline mode. The variable $theMode holds the information if the site is online or offline

Example PHP Code
 
if($theMode=='1')
{
   header("location:".$root."/offline.php");
}

Returned Variables
 
0 - the site is online

1 - the site is offline

Posted on: 23/03/2011