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(); // $form->log->debug('POST', $form->log->prAr($_POST)); if (TARGET == 'live' || TARGET == 'remote') { // login $login->log->setLogLevelAll('debug', DEBUG ? true : false); $login->log->setLogLevelAll('echo', false); $login->log->setLogLevelAll('print', DEBUG ? true : false); // form $form->log->setLogLevelAll('debug', DEBUG ? true : false); $form->log->setLogLevelAll('echo', false); $form->log->setLogLevelAll('print', DEBUG ? true : false); } // space for setting special debug flags $login->log->setLogLevelAll('debug', true); // set smarty arrays $HEADER = []; $DATA = []; $DEBUG_DATA = []; // 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'] = $ADMIN_STYLESHEET ?? ADMIN_STYLESHEET; if ($form->my_page_name == 'edit_order') { // get is for "table_name" and "where" only $table_name = $_GET['table_name'] ?? ''; // $where = $_GET['where'] ?? ''; // order name is _always_ order_number for the edit interface // follwing arrays do exist here: // $position ... has the positions of the [0..max], cause in a