</div> <?php } else { ?> <div class="alert error"> <p> It seems that your server failed to meet the requirements to run Shopping Cart. Please contact your server administrator or hosting company to get this resolved. </p> </div> <?php } ?> <?php if (check_settings()) { ?> <a href="step_1.php" class="button orange float_right">Next step</a> <?php } else { ?> <a href="index.php" class="button orange float_right">Try again</a> <?php } ?> </div> <!-- END .grid_12 --> <div class="clear"> </div>
ini_set('display_startup_errors', true); error_reporting(E_ALL & ~E_NOTICE); } else { // Disable PHP warnings $_GET['debug'] = 0; error_reporting(E_ERROR | E_PARSE); } // Set allowed for inclusion files list, security measure $page_sidebar_allowed = array('sidebar-left-links.inc.php', 'sidebar-left-reports.inc.php'); $page_content_allowed = array('reports.php', 'sales.php', 'stats-flow.php', 'links_page.inc.php', 'rules_page.inc.php', 'import_page.inc.php', 'support_page.inc.php', 'costs_page.inc.php', 'import_page_postback.inc.php', 'timezone_settings_page.inc.php', 'login.php', 'salesreport.php', 'pixel_page.inc.php', 'register.php', 'system-first-run.php', 'system-message-cache.php', 'notifications_page.inc.php', 'targetreport.php', 'landing_page.inc.php', 'reset_password.inc.php', 'lost_password.inc.php', 'adnets_page.inc.php'); // Include main functions require _TRACK_SHOW_COMMON_PATH . "/functions_general.php"; // Disable excess quoting for unusual hosting environments disable_magic_quotes(); // Check file with db and server settings $settings = check_settings(); if ($_REQUEST['ajax_act'] == 'create_database') { if ($settings[0] == true) { echo json_encode(array(false, 'config_found', $settings[2])); exit; } switch ($settings[1]) { case 'cache_not_writable': echo json_encode(array(false, 'cache_not_writable', $settings[2])); exit; break; case 'first_run': // Check file system // We have .htaccess files if (!file_exists(dirname(__FILE__) . '/.htaccess') or !file_exists(dirname(__FILE__) . '/../track/.htaccess')) { echo json_encode(array(false, 'htaccess_not_found'));