1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
start.php
См. документацию.
1
<?php
2
9
10
error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_PARSE);
11
12
define(
"START_EXEC_TIME"
, microtime(
true
));
13
14
if
(!defined(
'B_PROLOG_INCLUDED'
))
15
{
16
define(
"B_PROLOG_INCLUDED"
,
true
);
17
}
18
19
require_once __DIR__ .
'/bx_root.php'
;
20
require_once __DIR__ .
'/lib/loader.php'
;
21
require_once __DIR__ .
'/include/autoload.php'
;
22
require_once __DIR__ .
'/classes/general/version.php'
;
23
24
// global functions
25
require_once __DIR__ .
'/tools.php'
;
26
30
FormDecode
();
31
32
$application
=
\Bitrix\Main\HttpApplication::getInstance
();
33
34
// Defined in dbconn.php
35
global
$DBType
,
$DBDebug
,
$DBDebugToFile
,
$DBHost
,
$DBName
,
$DBLogin
,
$DBPassword
;
36
37
// read various parameters
38
require_once
$_SERVER
[
"DOCUMENT_ROOT"
] .
getLocalPath
(
'php_interface/dbconn.php'
, BX_PERSONAL_ROOT);
39
40
// not used anymore
41
$DBType
=
'mysql'
;
42
$DBHost
=
''
;
43
$DBLogin
=
''
;
44
$DBPassword
=
''
;
45
$DBName
=
''
;
46
47
// need to be after dbconn.php
48
require_once __DIR__ .
'/include/constants.php'
;
49
50
// Database-dependent classes
51
CAllDatabase::registerAutoload
();
52
53
// From here global variable $DB is available (CDatabase class)
54
$GLOBALS
[
'DB'
] =
new
CDatabase();
55
56
$GLOBALS
[
'DB'
]->debug =
$DBDebug
;
57
if
(
$DBDebugToFile
)
58
{
59
$GLOBALS
[
'DB'
]->DebugToFile =
true
;
60
$application
->getConnection()->startTracker()->startFileLog(
$_SERVER
[
'DOCUMENT_ROOT'
] .
'/mysql_debug.sql'
);
61
}
62
63
//magic parameters: show sql queries statistics
64
$show_sql_stat
=
''
;
65
if
(isset($_GET[
'show_sql_stat'
]))
66
{
67
$show_sql_stat
= ($_GET[
'show_sql_stat'
] ==
'Y'
?
'Y'
:
''
);
68
setcookie(
'show_sql_stat'
,
$show_sql_stat
,
false
,
'/'
);
69
}
70
elseif
(isset($_COOKIE[
'show_sql_stat'
]) && $_COOKIE[
'show_sql_stat'
] ==
'Y'
)
71
{
72
$show_sql_stat
=
'Y'
;
73
}
74
if
(
$show_sql_stat
==
'Y'
)
75
{
76
$GLOBALS
[
'DB'
]->ShowSqlStat =
true
;
77
$application
->getConnection()->startTracker();
78
}
79
84
define(
'LICENSE_KEY'
,
$application
->getLicense()->getKey());
85
87
$GLOBALS
[
'CACHE_STAT_BYTES'
] = 0;
88
$GLOBALS
[
'CACHE_MANAGER'
] =
new
CCacheManager
;
89
$GLOBALS
[
'stackCacheManager'
] =
new
CStackCacheManager
();
90
91
if
(file_exists(($fname = __DIR__ .
'/classes/general/update_db_updater.php'
)))
92
{
93
$US_HOST_PROCESS_MAIN =
true
;
94
include $fname;
95
}
Bitrix\Main\Application\getInstance
static getInstance()
Определения
application.php:98
CAllDatabase\registerAutoload
static registerAutoload(?string $connectionType=null)
Определения
database.php:952
CCacheManager
Определения
cache_manager.php:15
CStackCacheManager
Определения
stack_cache.php:11
$_SERVER
$_SERVER["DOCUMENT_ROOT"]
Определения
cron_frame.php:9
$application
$application
Определения
bitrix.php:23
$DBDebugToFile
global $DBDebugToFile
Определения
start.php:35
$DBHost
global $DBHost
Определения
start.php:35
$DBName
global $DBName
Определения
start.php:35
$show_sql_stat
if($DBDebugToFile) $show_sql_stat
Определения
start.php:64
$DBDebug
global $DBDebug
Определения
start.php:35
$DBPassword
global $DBPassword
Определения
start.php:35
$DBType
global $DBType
Определения
start.php:35
$DBLogin
global $DBLogin
Определения
start.php:35
FormDecode
FormDecode()
Определения
tools.php:4212
getLocalPath
getLocalPath($path, $baseFolder="/bitrix")
Определения
tools.php:5092
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
$GLOBALS
$GLOBALS['_____370096793']
Определения
update_client.php:1
bitrix
modules
main
start.php
Создано системой
1.14.0