mobile_phone) { echo "I am sorry, but this page cannot be viewed by a mobile phone"; exit; } // smarty template engine (extended Translation version) $smarty = new CoreLibs\Template\SmartyExtend($lang); // $form->debug('POST', $form->printAr($_POST)); 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 $form->debug_output_all = DEBUG ? 1 : 0; $form->echo_output_all = 0; $form->print_output_all = DEBUG ? 1 : 0; } // space for setting special debug flags $login->debug_output_all = 1; // set smarty arrays $HEADER = array(); $DATA = array(); $DEBUG_DATA = array(); // set the template dir // WARNING: this has a special check for the mailing tool layout (old layout) if (defined('LAYOUT')) { $smarty->setTemplateDir(BASE.INCLUDES.TEMPLATES.CONTENT_PATH); $DATA['css'] = LAYOUT.CSS; $DATA['js'] = LAYOUT.JS; } else { $smarty->setTemplateDir(TEMPLATES); $DATA['css'] = CSS; $DATA['js'] = JS; } // set table width $table_width = '100%'; // define all needed smarty stuff for the general HTML/page building $HEADER['CSS'] = CSS; $HEADER['DEFAULT_ENCODING'] = DEFAULT_ENCODING; $HEADER['STYLESHEET'] = isset($ADMIN_STYLESHEET) ? $ADMIN_STYLESHEET : ADMIN_STYLESHEET; if ($form->my_page_name == 'edit_order') { // get is for "table_name" and "where" only $table_name = isset($_GET['table_name']) ? $_GET['table_name'] : ''; // $where = isset($_GET['where']) ? $_GET['where'] : ''; // 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