19 lines
795 B
PHP
Executable File
19 lines
795 B
PHP
Executable File
<?php
|
|
/**
|
|
* set some top level domain variables
|
|
* see {@link http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details.
|
|
*
|
|
* @package initSystem
|
|
* @copyright Copyright 2003-2005 Zen Cart Development Team
|
|
* @copyright Portions Copyright 2003 osCommerce
|
|
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
|
|
* @version $Id: init_tlds.php 2753 2005-12-31 19:17:17Z wilt $
|
|
*/
|
|
if (!defined('IS_ADMIN_FLAG')) {
|
|
die('Illegal Access');
|
|
}
|
|
$http_domain = zen_get_top_level_domain(HTTP_SERVER);
|
|
$https_domain = zen_get_top_level_domain(HTTPS_SERVER);
|
|
$current_domain = (($request_type == 'NONSSL') ? $http_domain : $https_domain);
|
|
if (SESSION_USE_FQDN == 'False') $current_domain = '.' . $current_domain;
|
|
?>
|