<?php

if ($customer_id) {
    $current_sections = cw_tabs_get_section(seller_area_letter);
    $smarty->assign('current_sections', $current_sections);
    $smarty->assign('main', 'main');
} else {
    $smarty->assign('main', 'welcome');
}
<?php

define('AREA_TYPE', 'A');
$current_area = AREA_TYPE;
$customer_id =& cw_session_register('customer_id');
# kornev, with ajax we are not need these data
cw_include('include/check_useraccount.php');
cw_include('init/lng.php');
cw_include('include/settings.php');
if ($target != 'ajax') {
    cw_include('include/area_sections.php');
    $smarty->assign('current_target', $target);
    cw_load('tabs');
    $current_sections = cw_tabs_get_section('A');
    /*
    print_r($current_sections);
    foreach($current_sections as $index => $v)
        cw_array2insert('navigation_menu', array(
            'title' => $v['title'],
            'link' => $v['link'],
            'area' => 'G',
            'orderby' => $index * 10,
            'access_level' => $v['access_level'],
            'addon' => $v['addon'],
        ));
    die;
        $smarty->assign('current_sections', $current_sections);
    */
}
$location = array();
$location[] = array(cw_get_langvar_by_name('lbl_area_admin', null, false, true), 'index.php');