$v) { if (is_array($v)) { strip_slashes_from_user_data($array[$k]); continue; } $array[$k] = stripslashes($v); } } if (get_magic_quotes_gpc()) { strip_slashes_from_user_data($_GET); strip_slashes_from_user_data($_POST); strip_slashes_from_user_data($_COOKIE); } require_once dirname(__FILE__) . '/class.vendus.php'; require_once dirname(__FILE__) . '/templatelite/class.template.php'; $vendus = new Vendus; $tpl = new Template_Lite; $tpl->cache = false; $tpl->cache_lifetime = 3600; $tpl->cache_dir = dirname(__FILE__) . '/cache'; $tpl->compile_dir = dirname(__FILE__) . '/cache/compiled'; $tpl->template_dir = dirname(__FILE__) . '/templates'; function get_critere_name($id) { return @$GLOBALS['criteres'][$id]; } function auto_url($str) { if (preg_match('§^http://§', $str)) return ''.$str.''; } $tpl->register_modifier('get_critere_name', 'get_critere_name'); $tpl->register_modifier('auto_url', 'auto_url'); $tpl->assign_by_ref('criteres', $criteres); ?>