ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/includes/init_includes/init_file_db_names.php
Go to the documentation of this file.
00001 <?php
00009 if (!defined('IS_ADMIN_FLAG')) {
00010   die('Illegal Access');
00011 }
00019 // set the type of request (secure or not)
00020 $request_type = (((isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on' || $_SERVER['HTTPS'] == '1'))) ||
00021                  (isset($_SERVER['HTTP_X_FORWARDED_BY']) && strpos(strtoupper($_SERVER['HTTP_X_FORWARDED_BY']), 'SSL') !== false) ||
00022                  (isset($_SERVER['HTTP_X_FORWARDED_HOST']) && (strpos(strtoupper($_SERVER['HTTP_X_FORWARDED_HOST']), 'SSL') !== false || strpos(strtoupper($_SERVER['HTTP_X_FORWARDED_HOST']), str_replace('https://', '', HTTPS_SERVER)) !== false)) ||
00023                  (isset($_SERVER['SCRIPT_URI']) && strtolower(substr($_SERVER['SCRIPT_URI'], 0, 6)) == 'https:') ||
00024                  (isset($_SERVER["HTTP_SSLSESSIONID"]) && $_SERVER["HTTP_SSLSESSIONID"] != '') ||
00025                  (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443')) ? 'SSL' : 'NONSSL';
00026 
00027 // set php_self in the local scope
00028   if (!isset($PHP_SELF)) $PHP_SELF = $_SERVER['PHP_SELF'];
00029 
00030 // include the list of project filenames
00031   require(DIR_FS_CATALOG . DIR_WS_INCLUDES . 'filenames.php');
00032 
00033 // include the list of project database tables
00034   require(DIR_FS_CATALOG . DIR_WS_INCLUDES . 'database_tables.php');
00035 
00036 // include the list of compatibility issues
00037   require(DIR_FS_CATALOG . DIR_WS_FUNCTIONS . 'compatibility.php');
00038 
00039 // include the list of extra database tables and filenames
00040 $extra_datafiles_dir = DIR_WS_INCLUDES . 'extra_datafiles/';
00041 if ($dir = @dir($extra_datafiles_dir)) {
00042   while ($file = $dir->read()) {
00043     if (!is_dir($extra_datafiles_dir . $file)) {
00044       if (preg_match('/\.php$/', $file) > 0) {
00045         require($extra_datafiles_dir . $file);
00046       }
00047     }
00048   }
00049   $dir->close();
00050 }
 All Data Structures Namespaces Files Functions Variables Enumerations