-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinclude.php
33 lines (28 loc) · 916 Bytes
/
include.php
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
<?php
IncludeModuleLangFile(__FILE__);
if(!CModule::IncludeModule('iblock')){
return false;
}
$arEventList = GetModuleEvents('obx.market', 'onBeforeModuleInclude', true);
foreach($arEventList as $arEvent) {
ExecuteModuleEventEx($arEvent, array());
}
if(!CModule::IncludeModule('obx.core')) {
$obxCorePath = $_SERVER['DOCUMENT_ROOT'].BX_ROOT.'/modules/obx.core/install/index.php';
if(!file_exists($obxCorePath) ) {
return false;
}
require_once $obxCorePath;
$obxCore = new obx_core();
$obxCore->DoInstall();
if(!CModule::IncludeModule('obx.core')) {
return false;
}
}
$arModuleClasses = require dirname(__FILE__).'/classes/.classes.php';
CModule::AddAutoloadClasses('obx.market', $arModuleClasses);
require dirname(__FILE__).'/tools.php';
$arEventList = GetModuleEvents('obx.market', 'onAfterModuleInclude', true);
foreach($arEventList as $arEvent) {
ExecuteModuleEventEx($arEvent, array());
}