<?php
header('Cache-Control: no cache'); //no cache
session_cache_limiter('private_no_expire'); // works
//session_cache_limiter('public'); // works too
include_once 'loader.php';
//if(!$user->isLogged('frontend')) $location->redirect('login');
 $logo = "assets/img/logo.svg";
 $title = "Gökdemir Group | Project";

if(isset($_GET['project'])) {
    $proje = $db->query("SELECT logo,adi FROM " . DBPREFIX . "projeler WHERE proje_code = '" . $func->get('project') . "'");
    $logo = isset($proje->row['logo']) && !empty($proje->row['logo']) ? 'admin/'.$proje->row['logo'] : $logo;
    $title = isset($proje->row['adi']) && !empty($proje->row['adi']) ? $proje->row['adi'] : $title;
    $title = $title.' Proje Fiyat Listesi';
}
$logo
//echo '<pre>';print_r($logo);echo '</pre>'; die();
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title><?php echo $title; ?></title>

    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />

    <link rel="stylesheet" href="<?php echo SITE_ADMIN; ?>css/bootstrap.min.css">
    <link rel="stylesheet" href="<?php echo SITE_ADMIN; ?>css/plugins.css">
    <link href="<?php echo SITE; ?>assets/css/style.css?v=1.0.11" rel="stylesheet">
</head>
<body id="page-top">
<header>
    <div class="container">
        <a href="<?php echo SITE; ?>">


            <img src="<?php echo $logo; ?>" alt="Login Full Background" style="max-width: 300px" class="logo pull-left">
        </a>


        <a href="<?php echo SITE; ?>logout.php" class="pull-right">Çıkış Yap</a>
        <!--
        <a href="/" class="pull-right"><img src="assets/img/information.svg" alt="Bilgi" class=""></a>
        -->
        <a href="javascript:void(0);" onclick="location.reload()" class="pull-right"><img src="assets/img/refresh.svg" alt="Yenile" class=""></a>

        <div class="clearfix"></div>
    </div>
</header>
<div class="main">
<?php
if($error->get()){
    echo 'HATA:'.$error->get();
    $error->uset();
    }elseif($success->get()){
 //   echo 'BAŞARILI:'.$success->get();
    $success->uset();
}
?>