diff --git a/www/includes/edit_base.LEGACY.php b/www/includes/edit_base.LEGACY.php deleted file mode 100644 index a4bdc43b..00000000 --- a/www/includes/edit_base.LEGACY.php +++ /dev/null @@ -1,563 +0,0 @@ - BASE . LOG, - 'file_id' => LOG_FILE_ID . 'EditBase', - 'print_file_date' => true, - 'per_class' => true, - 'debug_all' => $DEBUG_ALL, - 'echo_all' => $ECHO_ALL, - 'print_all' => $PRINT_ALL, -]); -// db connection -$db = new CoreLibs\DB\IO(DB_CONFIG, $log); -// login page -$login = new CoreLibs\ACL\Login($db, $log, $session); -// lang, path, domain -// pre auto detect language after login -$locale = \CoreLibs\Language\GetLocale::setLocale(); -// set lang and pass to smarty/backend -$l10n = new \CoreLibs\Language\L10n( - $locale['locale'], - $locale['domain'], - $locale['path'], -); -// flush and start -ob_end_flush(); -// turn off set log per class -$log->setLogPer('class', false); -// create form class -$form = new CoreLibs\Output\Form\Generate(DB_CONFIG, $log, $l10n, $locale); -if ($form->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($l10n, $locale); - -// $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%'; -$ADMIN_STYLESHEET = 'edit.css'; -// define all needed smarty stuff for the general HTML/page building -$HEADER['CSS'] = CSS; -$HEADER['DEFAULT_ENCODING'] = DEFAULT_ENCODING; -/** @phpstan-ignore-next-line because ADMIN_STYLESHEET can be null */ -$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