* See the file "copy_notice.txt" for the licence notice */ $lang_tables = array('stdpass.php'); define('LANG_FILE', 'specials.php'); //$local_user='******'; define('NO_2LEVEL_CHK', 1); require_once $root_path . 'include/inc_front_chain_lang.php'; $breakfile = 'config_options.php' . URL_APPEND; $thisfile = basename($_SERVER['PHP_SELF']); if (isset($mode) && $mode == 'save') { // Save to user config table $config_new['template_smarty'] = $template_smarty; include_once $root_path . 'include/care_api_classes/class_userconfig.php'; $user = new UserConfig(); if ($user->getConfig($_COOKIE['ck_config'])) { $config =& $user->getConfigData(); $config = array_merge($config, $config_new); if ($user->saveConfig($_COOKIE['ck_config'], $config)) { header('location:' . basename(__FILE__) . URL_REDIRECT_APPEND . '&saved=1'); exit; } } } elseif (!isset($cfg['template_smarty']) || empty($cfg['template_smarty'])) { if (!isset($GLOBAL_CONFIG)) { $GLOBAL_CONFIG = array(); } include_once $root_path . 'include/care_api_classes/class_globalconfig.php'; $gc = new GlobalConfig($GLOBAL_CONFIG); $gc->getConfig('template_smarty'); if (!empty($GLOBAL_CONFIG['template_smarty'])) { $cfg['template_smarty'] = $GLOBAL_CONFIG['template_smarty'];