-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinclude.php
More file actions
37 lines (29 loc) · 1.14 KB
/
include.php
File metadata and controls
37 lines (29 loc) · 1.14 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
36
37
<?php
use Bitrix\Main\Loader;
use Bitrix\Main\LoaderException;
// Validate commerce modules exists.
try {
if (! Loader::includeModule('sale') || ! Loader::includeModule('catalog')) {
return;
}
} catch (LoaderException $e) {
return;
}
// Get version.
include 'install/version.php';
/** @var string CLIENT_NAME The client name. */
if (! defined('CLIENT_NAME')) {
define('CLIENT_NAME', '1C Bitrix');
}
/** @var string CLIENT_VERSION The client version. */
if (! defined('CLIENT_VERSION')) {
define('CLIENT_VERSION', $arModuleVersion['VERSION']);
}
unset($arModuleVersion);
// Autoload if needed.
if (! class_exists('Qiwi\Api\BillPaymentsException')) {
require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'qiwi' . DIRECTORY_SEPARATOR . 'bill-payments-php-sdk' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'BillPaymentsException.php';
}
if (! class_exists('Qiwi\Api\BillPayments')) {
require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'qiwi' . DIRECTORY_SEPARATOR . 'bill-payments-php-sdk' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'BillPayments.php';
}