db_exec("SET search_path TO ".LOGIN_DB_SCHEMA); $smarty = new SmartyML($lang); if (TARGET == 'live' || TARGET == 'remote') { // login $login->debug_output_all = DEBUG ? 1 : 0; $login->echo_output_all = 0; $login->print_output_all = DEBUG ? 1 : 0; // form $db->debug_output_all = DEBUG ? 1 : 0; $db->echo_output_all = 0; $db->print_output_all = DEBUG ? 1 : 0; } // set the template dir if (defined('LAYOUT')) { $smarty->setTemplateDir(LAYOUT.DEFAULT_TEMPLATE.TEMPLATES); $DATA['css'] = LAYOUT.DEFAULT_TEMPLATE.CSS; $DATA['js'] = LAYOUT.DEFAULT_TEMPLATE.JS; } else { $smarty->setTemplateDir(TEMPLATES.DEFAULT_TEMPLATE); $DATA['css'] = CSS.DEFAULT_TEMPLATE; $DATA['js'] = JS.DEFAULT_TEMPLATE; } // order name is _always_ order_number for the edit interface // follwing arrays do exist here: // $position ... has the positions of the array (0..max), cause in a