} error_reporting(E_ERROR | E_PARSE); define("WCMS_BOOTSTRAP_LOADED"); // set up some options ini_set('arg_separator.output', '&'); ini_set('magic_quotes_runtime', 0); ini_set('magic_quotes_sybase', 0); ini_set('session.cache_limiter', 'none'); ini_set('session.use_only_cookies', 1); ini_set('session.use_trans_sid', 0); // Set Up PEAR Path ini_set("include_path", realpath(dirname(__FILE__)) . '/classes/pear/' . PATH_SEPARATOR . "."); $paths = array('classes' => 'classes', 'data' => 'data', 'templates' => 'templates', 'images' => 'images', 'plugins' => 'plugins'); require_once "classes/paths_class.php"; $base_paths = path::parse_paths(); path::set($base_paths['file'], $base_paths['http'], $paths); check_dirs(); require_once path::file("classes") . "vars_class.php"; include_once path::file("data") . "settings.php"; $db_prefix = $settings['db_prefix']; $cache_options = array('data_dir' => path::file("data") . "cache/", 'cache_tag' => md5(path::http("templates") . $settings['theme'] . "/theme.css" . filemtime(path::file("templates") . $settings['theme'] . "/theme.css"))); require_once path::file("classes") . "cache_handling_class.php"; $cache = new cache_handler($cache_options); // implement smarty object require_once path::file("classes") . "smarty/Smarty.class.php"; $smarty = new Smarty(); $smarty->compile_check = true; $smarty->debugging = false; $smarty->template_dir = path::file("templates"); $smarty->compile_dir = path::file("data") . "template_cache/"; // Assign some useful smarty vars