if ($id) { validate_input($id); } if ($ajax_update) { validate_input($ajax_update); } // Smarty setup $smarty = new SmartyBC(); $smarty->compile_dir = './cache/smarty'; // path to compiled templates $smarty->cache_dir = './cache/smarty'; // path to cached html $smarty->plugins_dir = array('./lib/smarty/custom', './lib/smarty/plugins'); $smarty->use_sub_dirs = 0; // restrict caching to one folder $smarty->loadFilter('output', 'trimwhitespace'); // remove whitespace from output #$smarty->setCaching(Smarty::CACHING_LIFETIME_SAVED); #$smarty->force_compile = true; #$smarty->debugging = true; $smarty->error_reporting = E_ALL & ~E_NOTICE; // added for Smarty 3 // load config load_config(); // check authentification data for multiuser if (basename($_SERVER['PHP_SELF']) != 'login.php') { auth_check(); } /** * General functions */