<?php 
ob_start();
session_start();
include 'ayarlar.php'; 
global $db;
// Bakım Modu Başlanğıc
$sql = $db->query("SELECT * FROM ayarlar");
foreach ($sql as $ayar);
if ($ayar["bakim"] == "0"){				
$bakimmodu = $ayar["bakim"];
} else {
if (!isset($_SESSION["Giris"])) {
    require ("static/bakimmodu.php");
    return;
}
}
// Cache Sistem Başlanğıc
if ($ayar["cachesistem"] == "0"){
} else {
require_once('static/sCache.php');
$options = array(
	'time'   => 60, 
	'dir'    => 'sCache2', 
	'extension' => ".html", 
	);
$sCache = new sCache($options); 
}

include 'static/dilsistem.php';
include 'static/dil.php';
include 'static/extraalanlar.php';
?>

<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<?php include 'static/titlekey.php'; ?> 
<?php include 'static/jscss.php'; ?> 

</head><!-- /End head -->
<body class="has-side-panel side-panel-right fullwidth-page">
<div id="wrapper" class="clearfix">

<?php include ("static/menupc.php"); ?>
<?php include("sistem.php");?>  
<?php include ("static/footer.php"); ?>
<?php include ("static/mesajayar.php"); ?>
</div>
</body>
</html>
<?php
ob_end_flush();
?> 