Publisher review:Simple Site Switch (On/Off) will display a custom message if a variable is set to Off or display your HTML code if it's set to On. This really simple bit of code will display a custom message if a variable is set to Off or display your HTML code if it's set to On./* status.php is simply a variable with On assigned as a default variable, you can change this to Off to make your site offline. Copy the code below and save it to status.php: $status = "On"; // Change to Off to make site offline ?> Before uploading this remove all the comments above */ include("/path/to/status.php"); // Include the file with the status if($status == 'Off') // If the status is Off then show this { echo "Site is currently offline"; } else { ?>
} ?>
Simple Site Switch (On/Off) is a PHP script for Snippets scripts design by snippet.
It runs on following operating system: Windows / Linux / BSD.
Operating system:Windows / Linux / BSD