BASE . LOG, 'file_id' => LOG_FILE_ID . 'EditBase', 'print_file_date' => true, 'per_class' => true, 'debug_all' => $DEBUG_ALL ?? false, 'echo_all' => $ECHO_ALL ?? false, 'print_all' => $PRINT_ALL ?? false, ]); // db connection $db = new CoreLibs\DB\IO(DB_CONFIG, $log); // login page $login = new CoreLibs\ACL\Login($db, $log, $session); // space for setting special debug flags // $login->log->setLogLevelAll('debug', true); // 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(); // init smarty and form class $edit_base = new CoreLibs\Admin\EditBase(DB_CONFIG, $log, $l10n, $locale); // creates edit pages and runs actions $edit_base->editBaseRun( BASE . INCLUDES . TEMPLATES . CONTENT_PATH, BASE . TEMPLATES_C, BASE . CACHE, ADMIN_STYLESHEET, DEFAULT_ENCODING, LAYOUT . CSS, LAYOUT . JS, ROOT, CONTENT_PATH ); // __END__