crawl bot
<?phpclass Redirect{ private $url; public function __construct($dir){ $this -> url = $dir; } public function go(){ echo '<meta http-equiv="Refresh" content="0; url='.$this ->url.'">'; } }?>
<?php require_once('redirect_class.php'); $var = 0; // 1 - on; 0 - off // if($var == 0) { $redirection = new Redirect("offline.php"); $redirection -> go(); }elseif($var == 1) { $redirection = new Redirect("online.php");//online $redirection -> go(); }?>