/*********************************** /** Site created by: Fizuli Movlamov /** Site create date: 21.02.2013 *************************************/ error_reporting(E_ALL); ini_set('display_errors', '1'); session_start(); $sid = md5("rovshan"); define('_INCLUDED_', true); // includes @include_once('config.php'); @include_once('class.php'); $class = new functions(); $id = (isset($_GET['id']))?(int) $_GET['id']:NULL; $s = (isset($_GET['s']))?(int) $_GET['s']:0; $f = (isset($_GET['f']))?(int) $_GET['f']:NULL; @include('langs/'.$lang.'.php'); $menu = (isset($_GET['menu']))?$_GET['menu']:NULL; $menus = array( 'main' => 'main.php', 'pages' => 'pages.php', 'vacancy' => 'vacancy.php', 'vacancy-form' => 'vacancy_form.php', 'partners' => 'partners.php', 'projects' => 'projects.php', 'projects-view' => 'projects-view.php', 'news' => 'news.php', 'news-view' => 'news-view.php', 'hse' => 'hse.php', 'hse-view' => 'hse-view.php', 'contact' => 'contact.php' ); //echo $menus[$menu]; if(isset($menus[$menu])) { $file = $menus[$menu]; } else { $menu = 'main'; $file = 'main.php'; } // for posts @include_once('post.php'); ?>