<?php  include_once 'include/data_config.php';?>
<?php include_once  'include/ini_set.php';?>
<?php $theme = $conn->query("SELECT value FROM mini_config WHERE array_key ='systemTheme'")->fetch_assoc()["value"];  $theme = $conn->query("SELECT loc FROM theme WHERE id = '$theme'")->fetch_assoc()["loc"];if(!empty($theme)){include "themes/$theme/index.php";}else{?>
	<?php  include_once'include/webconfig.php';?>
	<?php  include_once "language/{$webConfig["LANG"]}.php";?>
	<title>
		<?php echo $webConfig["homePageTitle"];?>
			
		</title>
		<div style="border:#ff0000 solid 4px; padding:  5px" >
			<center><?php echo $LANG["failed_to_load_theme"];?>
			
		</center>
	</div><?php } ?>