Пример #1
0
        $skin_path_info[] = "skins/default/";
    }
}
list($skin_path, $skin_dir) = $skin_path_info;
uaAssign(array("SkinName" => $skin_path, "ThemeName" => $skin_path, "SkinPath" => $skin_dir, "COMPANY" => $company->info, "MEMBER" => $member->info));
$smarty->template_dir = PHPB2B_ROOT . "skins" . DS;
$smarty->flash_layout = $skin_path . "/flash";
if (!$smarty->template_exists($skin_path . "flash")) {
    setvar("SkinName", "default");
    $smarty->template_dir = PHPB2B_ROOT . "skins" . DS;
    $smarty->flash_layout = 'default/flash';
}
$smarty->setCompileDir();
$smarty->setCompileDir("skin" . DS . $skin_path . DS);
if (isset($member->info['id'])) {
    $space->setLinks($member->info['id']);
}
$space->setMenu($company->info['cache_spacename'], $space_actions);
$product_types = $pdb->CacheGetArray("SELECT *,id as typeid,name as typename FROM {$tb_prefix}producttypes WHERE company_id=" . $company->info['id']);
//set and get db cache
setvar("ProductTypes", $product_types);
$group_info = array();
$group_info['year'] = $time_tmp;
if (!empty($member->info['membergroup_id']['name'])) {
    $group_info['name'] = $_PB_CACHE['membergroup'][$member->info['membergroup_id']]['name'];
} else {
    $group_info['name'] = L("undefined_image", "tpl");
}
if (!empty($member->info['membergroup_id']['avatar'])) {
    $group_info['image'] = $absolute_uri . "images/group/" . $_PB_CACHE['membergroup'][$member->info['membergroup_id']]['avatar'];
} else {