times have made a small hack
Site Online / Offline
Open config.php and add to
- Code: Select all
$fop = fopen('secure/settings.dfh', 'r');
$content = fread($fop, '999');
fclose($fop);
$content = explode("|", $content);
after
- Code: Select all
$GLOBALS["SITE_ONLINE"] = true;
please change to the header.php and open
and after
- Code: Select all
require_once("./functions.inc.php");
the insert
- Code: Select all
if (!$GLOBALS["SITE_ONLINE"])
die("The site is currently not available due to maintenance work. ");
true = Online
false = Offline
sorry for my english I speak German