<?php 
ob_start();
session_start();
include 'ayarlar.php'; 
global $db;
	$sql = $db->query("SELECT * FROM ayarlar");
	foreach ($sql as $a);
if ($a[bakim] == "0"){						
$bakimmodu = $a["bakim"];
} else {
	require ("sistem/bakimmodu.php");
	die;
}
array_map('guvenlik', $_GET);
if ( isset($_GET['bosalt']) ){
foreach ( $_COOKIE['dilata'] as $key => $val ){
setcookie('dilata['.$key.']', $key, time() - 86400);
}
header('Location:'.$_SERVER['HTTP_REFERER']);
}
if ( isset($_GET['dilsecildi']) ){
$id = $_GET['dilsecildi'];
setcookie('dilata['.$id.']', time() + (86450));
header('Location:'.$_SERVER['HTTP_REFERER']);
}
?>
<?php 
foreach ( $_COOKIE['dilata'] as $kod => $val );
$degisken = $kod; ?>
<?php include 'sistem/dil.php'; ?>

<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<?php include 'sistem/titlekey.php'; ?> 
<?php include 'sistem/jscss.php'; ?> 

</head><!-- /End head -->
<body>
<!-- To top Button
======================================================================== -->
<a href="#" class="btn-gfort-top"><i class="fa fa-angle-up"></i></a>
<!-- Main Wrapper
======================================================================== -->
<div id="main-wrapper">
<?php include 'sistem/menupc.php'; ?>
<?php  include("ofisimo.php");?>  
<?php include 'sistem/footer.php'; ?>
 </div><!-- /End Main Wrapper -->
</body>
</html>
  <?php
ob_end_flush();
?> 