<?php ob_start(); session_start(); // Hatalar error_reporting(E_ALL & ~E_NOTICE); // Dosyalarımızın bulunduğu yol define('BASEPATH', dirname(__FILE__)); // Ayar Dosyamız include BASEPATH . '/config.php'; // Veritabanı bağlantısı $link = mysql_connect(DB_HOST, DB_USER, DB_PASS); mysql_select_db(DB_DATA, $link) or die(mysql_error()); mysql_query("SET NAMES 'UTF8'"); // Gereken Dosyalar include BASEPATH . '/includes/functions.php'; include BASEPATH . '/includes/php-hooks.php'; include BASEPATH . '/includes/option.php'; include BASEPATH . '/includes/plugin.php'; include BASEPATH . '/includes/menu.php'; // Aktif olan eklentileri çağırır load_active_plugins(); // Normal sistemde olan sayfaları ekleyelim.. do_action('set_menu'); add_menu('homepage', 'index.php', 'Anasayfa', $pos = 1); add_menu('plugins', 'plugins.php', 'Eklentiler', $pos = 2); add_menu('logout', 'logout.php', 'Çıkış Yap', $pos = 10);
} if (!empty($rs)) { // Check visible page if (!check_visible_page($rs['page_visible'])) { header('Location: ' . public_base_url() . get_page_url_by_id(get_configuration('error_page'))); exit; } // Background $background_data = json_decode($rs['page_theme_options'], true); $background_option = !empty($background_data['background']) && (!empty($background_data['data']['color']) || !empty($background_data['data']['image'])) ? $background_data['background'] : ''; $wrapper_background = !empty($background_data['wrapper_background']) ? $background_data['wrapper_background'] : ''; // Set info head (Title, Keyword, Description) $head_info = array('title' => get_configuration('site_name') . ' - ' . (!empty($rs['page_meta_title']) ? $rs['page_meta_title'] : ''), 'keywords' => !empty($rs['page_meta_keywords']) ? $rs['page_meta_keywords'] : get_configuration('site_meta_keywords'), 'description' => !empty($rs['page_meta_description']) ? $rs['page_meta_description'] : get_configuration('site_meta_description'), 'charset' => empty($charset) ? "utf-8" : $charset); set_head_info($head_info); load_admin_plugins(DEFAULT_PLUGIN_PATH, 'public_init'); load_active_plugins('public_init'); if (is_ajax()) { $tags = Pf::shortcode()->get_tags(); foreach ($tags as $ns => $tag) { if (!empty($_GET[$ns . '_code'])) { die(call_user_func($tag[$_GET[$ns . '_code']], $_REQUEST, null, $_GET[$ns . '_code'])); } } } // get layout $layout = array(); $layouts = get_option('layouts'); foreach ($layouts as $v) { if ($v['id'] == $rs['page_layout']) { $layout = $v; break;