index.php (811B)
1 <?php 2 header("Cache-Control: no-cache, must-revalidate, no-store"); 3 4 $check = !file_exists('core/config/connect.db.inc.php'); 5 echo $check; 6 if (!file_exists('core/config/connect.db.inc.php')) { 7 header("HTTP/1.1 301 Moved Permanently"); 8 header("Location:".$root."install/index.php"); 9 }else{ 10 if (!empty($_GET["theme"])) { 11 $theme = $_GET["theme"]; 12 header("HTTP/1.1 301 Moved Permanently"); 13 header("Location:themes/$theme"); 14 }else{ 15 if (!empty($_GET["file"])) { 16 require_once('core/config/variables.config.php'); 17 $file = $_GET["file"]; 18 header("HTTP/1.1 301 Moved Permanently"); 19 header("Location:themes/$theme/$file"); 20 }else{ 21 require_once('core/config/variables.config.php'); 22 header("HTTP/1.1 301 Moved Permanently"); 23 header("Location:themes/$theme"); 24 } 25 } 26 27 } 28 29 ?>