forked from craftcms/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb.php
More file actions
35 lines (27 loc) · 1.08 KB
/
Copy pathweb.php
File metadata and controls
35 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* Craft web bootstrap file.
*
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
// Check for this early because Craft uses it before the requirements checker gets a chance to run.
if (!extension_loaded('mbstring') || ini_get('mbstring.func_overload') != 0) {
exit('Craft requires the <a href="https://php.net/manual/en/book.mbstring.php" rel="noopener" target="_blank">PHP multibyte string</a> extension in order to run. Please talk to your host/IT department about enabling it on your server.');
}
// PHP environment normalization
// -----------------------------------------------------------------------------
mb_detect_order('auto');
// https://github.com/craftcms/cms/issues/4239
setlocale(
LC_CTYPE,
'C.UTF-8', // libc >= 2.13
'C.utf8' // different spelling
);
// Set default timezone to UTC
date_default_timezone_set('UTC');
// Load Craft
// -----------------------------------------------------------------------------
$appType = 'web';
return require __DIR__ . '/bootstrap.php';