Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
website.php File Reference

Go to the source code of this file.

Variables

if(!isset($_GET['website_code'])) $websiteCode = urldecode($_GET['website_code'])
 
 $rootDir = '../../../../'
 
 $websiteDir = $rootDir . 'websites/' . $websiteCode . '/'
 
 $contents = file_get_contents($rootDir . 'index.php')
 
 $websiteParam
 
 $params [\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = '$websiteCode'
 
 $params [\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'website'
 
 EOD
 
 $pattern = '`(try {.*?)(\/app\/bootstrap.*?}\n)(.*?)\$_SERVER`mis'
 
 $replacement = "$1/../..$2\n$websiteParam$3\$params"
 
 $old = umask(0)
 

Variable Documentation

◆ $contents

$contents = file_get_contents($rootDir . 'index.php')

Definition at line 14 of file website.php.

◆ $old

$old = umask(0)

Definition at line 27 of file website.php.

◆ $params [1/2]

Definition at line 18 of file website.php.

◆ $params [2/2]

Definition at line 19 of file website.php.

◆ $pattern

$pattern = '`(try {.*?)(\/app\/bootstrap.*?}\n)(.*?)\$_SERVER`mis'

Definition at line 22 of file website.php.

◆ $replacement

$replacement = "$1/../..$2\n$websiteParam$3\$params"

Definition at line 23 of file website.php.

◆ $rootDir

$rootDir = '../../../../'

Definition at line 12 of file website.php.

◆ $websiteCode

if (!isset( $_GET[ 'website_code'])) $websiteCode = urldecode($_GET['website_code'])

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Definition at line 11 of file website.php.

◆ $websiteDir

$websiteDir = $rootDir . 'websites/' . $websiteCode . '/'

Definition at line 13 of file website.php.

◆ $websiteParam

$websiteParam
Initial value:
= <<<EOD
\$params = \$_SERVER

Definition at line 16 of file website.php.

◆ EOD

EOD

Definition at line 20 of file website.php.