define('USE_AJAX', true); define('NOT_USE_AJAX', !USE_AJAX); define('IS_AJAX_PROCESSING', true); define('NOT_IS_AJAX_PROCESSING', !IS_AJAX_PROCESSING); define('DO_AJAX_VALIDATION', false); define('IS_ADMIN_FUNCTION', false); define('NOT_IS_ADMIN_FUNCTION', true); define('USE_LAYOUT_DEFINITION', FALSE_STRING_S); define('USE_SEO', false); define('NO_BOX_LAYOUT', TRUE_STRING_S); define('AJAX_DATA_ELEMENTS_TO_CHANGE', EMPTY_STRING); define('IS_LOCAL_HOST', file_exists('d:\\vb6\\C2.EXE')); $connected = false; define('MULTI_DB_SERVER', false); require_once DIR_FS_INC . 'olc_connect_and_get_config.inc.php'; olc_connect_and_get_config(array(1, 17, 19), $level); require_once DIR_WS_CLASSES . 'smarty/Smarty.class.php'; require_once DIR_FS_INC . 'olc_smarty_init.inc.php'; include_once DIR_FS_INC . 'olc_start_session.inc.php'; $language_text = 'language'; define('SESSION_LANGUAGE', $_SESSION[$language_text]); include_once DIR_WS_INCLUDES . 'filenames.php'; olc_smarty_init($smarty, $cacheid, false); if ($is_products_show) { require_once DIR_FS_INC . 'olc_get_template.inc.php'; require_once DIR_WS_CLASSES . 'split_page_results.php'; include DIR_WS_INCLUDES . 'write_customers_status.php'; define('SESSION_LANGUAGE_ID', $_SESSION[$language_text . '_id']); define('SESSION_CURRENCY', $_SESSION['currency']); define($current_template_text, olc_get_template()); define('FULL_CURRENT_TEMPLATE', TEMPLATE_PATH . CURRENT_TEMPLATE . SLASH);
case PHP: include $doc_type; break; case HTM_EXT: $html = file_get_contents($doc_type); echo $html; break; } exit; } else { //No PHP- or HTM(L)-File, so pass on 404-Error! header("HTTP/1.0 404 Not Found"); } } } olc_connect_and_get_config(array(12), ADMIN_PATH_PREFIX); $send_email = strtolower(SEND_404_EMAIL) == TRUE_STRING_S; if ($send_email) { //We need the eMail address, so we need to to get the config data $host = $_SERVER['HTTP_HOST']; $subject = 'Datei auf dem Webserver "' . $host . '" nicht gefunden'; $message = ' <html> <head> <title>Datei auf dem Webserver nicht gefunden</title> </head> <body> <p><b>Zeit </b><font color="Red">' . date('d.m.Y H:i:s') . '</font></p> <p><b>Datei </b>"' . $file_path . '" wurde auf dem <b>Webserver</b> "' . $host . '" nicht gefunden!</p> <p><b>User-Agent </b>"' . $_SERVER['HTTP_USER_AGENT'] . '"</p> <p><b>Prozessor </b>"' . $_SERVER['PROCESSOR_IDENTIFIER'] . '", Level ' . $_SERVER['PROCESSOR_LEVEL'] . ', Revision ' . $_SERVER['PROCESSOR_REVISION'] . ', Prozessoren: ' . $_SERVER['NUMBER_OF_PROCESSORS'] . '</p>
if ($is_ajax_mode) { $stand_alone = true; } else { $is_ajax_mode = USE_AJAX == true; } $vars = empty($_POST) ? $_GET : $_POST; $active_tab = isset($vars[$tab_id_text]) ? $vars[$tab_id_text] : 0; if ($stand_alone) { $level = '../../../../'; $path_includes = $level . 'includes/'; include $path_includes . 'configure.php'; require_once DIR_FS_INC . 'olc_define_global_constants.inc.php'; $connected = false; define('MULTI_DB_SERVER', false); require_once DIR_FS_INC . 'olc_connect_and_get_config.inc.php'; olc_connect_and_get_config(array(17), $level); require_once DIR_FS_INC . 'olc_get_box_code_script_path.inc.php'; require_once DIR_FS_INC . 'olc_smarty_init.inc.php'; require_once DIR_FS_CATALOG . DIR_WS_CLASSES . 'smarty/Smarty.class.php'; require_once DIR_FS_INC . 'olc_smarty_init.inc.php'; include_once DIR_FS_INC . 'olc_start_session.inc.php'; $language_text = 'language'; define('SESSION_LANGUAGE_ID', $_SESSION[$language_text . '_id']); include_once DIR_WS_INCLUDES . 'write_customers_status.php'; define($current_template_text, $vars[$current_template_text]); define('FULL_CURRENT_TEMPLATE', TEMPLATE_PATH . CURRENT_TEMPLATE . SLASH); define('CURRENT_TEMPLATE_BOXES', CURRENT_TEMPLATE . SLASH . 'boxes' . SLASH); } # check if session tab_id exist and use this. if ($active_tab == 0 && isset($_SESSION[$tab_id_text])) { $active_tab = $_SESSION[$tab_id_text];