/* ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); */ ob_start(); define('DATE_FORMAT', 'd.m.Y'); // this is used for date() define('DATE_FORMAT_LONG', 'd F Y'); // this is used for date() define('DATE_DAY', 'd'); // this is used for date() define('DATE_MONTH', 'M'); // this is used for date() define('DATE_MONTH_YEAR', 'm.y.'); // this is used for date() define('DATE_EVENT_SHORT', 'd F'); // this is used for date() define('DATE_EVENT_LONG', 'd F Y'); // this is used for date() include('inc/funcs.inc.php'); include('inc/db.php'); include('inc/login_funcs.php'); include('inc/experts_login_funcs.php'); $action=_UzmiVar(action); if ($action!='home' && $action!='pages' && $action!='news' && $action!='news_archive' && $action!='news_partners' && $action!='activities' && $action!='events' && $action!='events_calendar' && $action!='events_upcoming' && $action!='library' && $action!='research' && $action!='staff' && $action!='liaison_officers' && $action!='newsletters' && $action!='tenders_all' && $action!='tenders_archive' && $action!='tenders' && $action!='procurement' && $action!='vacancies' && $action!='experts' && $action!='gallery' && $action!='videos' && $action!='testimonials' && $action!='search') $action='home'; if (!$action) $action='home'; $lang=_UzmiVar(lang); if (is_numeric($lang)==false) $lang = 1; include('inc/lang/lang'.$lang.'.php'); $id=_UzmiVar(id); if (is_numeric($id)==false) $id = 0; $link_id=_UzmiVar(link_id); if (is_numeric($link_id)==false) $link_id = 0; $test=_UzmiVar(test); if (is_numeric($test)==false) $test = 0; // PROVJERA SESIJE $ac = new AuthClass(); if (!$ac->verify()) { $logiran="false"; if (isSet($_COOKIE['RESPA_USER']) && isSet($_COOKIE['RESPA_EMAIL']) && isSet($_COOKIE['RESPA_PASS'])) { include("inc/cookie_login.php"); } } else if (($_SESSION['s_logiran'] == 'true')) { $logiran = "true"; } // PROVJERA EXPERTS SESIJE $iac = new ExpertsAuthClass(); if (!$iac->i_verify()) { $i_logiran="false"; if (isSet($_COOKIE['RESPA_I_USER']) && isSet($_COOKIE['RESPA_I_USERNAME']) && isSet($_COOKIE['RESPA_I_PASS'])) { include("inc/experts_cookie_login.php"); } } else if (($_SESSION['si_logiran'] == 'true')) { $i_logiran = "true"; } if ($action=="logout") { session_destroy(); setcookie("RESPA_IP",'', time()-3600,"/"); setcookie("RESPA_USER",'', time()-3600,"/"); setcookie("RESPA_EMAIL",'', time()-3600,"/"); setcookie("RESPA_PASS",'', time()-3600,"/"); setcookie("RESPA_I_IP",'', time()-3600,"/"); setcookie("RESPA_I_USER",'', time()-3600,"/"); setcookie("RESPA_I_USERNAME",'', time()-3600,"/"); setcookie("RESPA_I_PASS",'', time()-3600,"/"); $logiran = "false"; $i_logiran = "false"; echo ""; } //POSTAVLJANJE DEAFULT OPCIJE ZA TAGOVE, DESCRIPTION I THUMBNAIL $sql="select * from home_page where id=1 and language=$lang LIMIT 0,1"; $recordset=mysqli_query($con,$sql) or die(ERROR_DB_ACCESS); while ($row = mysqli_fetch_array($recordset, MYSQLI_ASSOC)) { $pageTitle = strip_tags(stripslashes($row[title])); $pageDesc = strip_tags(stripslashes($row[content])); $pageTags = stripslashes($row[tags]); $home_content = stripslashes($row[content]); } mysqli_free_result($recordset); $pageThumb = "/media/img/base/logo.png"; ?>