-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
35 lines (29 loc) · 1.07 KB
/
Copy pathindex.php
File metadata and controls
35 lines (29 loc) · 1.07 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
$errors = array();
if (version_compare(PHP_VERSION, '7.4.0', '<')) {
$errors[] = 'PHP Version 7.4.0 or above is required';
}
if (!extension_loaded('ionCube Loader')) {
$errors[] = 'You are missing the ionCube Loader';
}
if (function_exists('ioncube_loader_version')) {
if (version_compare(ioncube_loader_version(), '11.0', '<')) {
$errors[] = 'You are using an old version of the ionCube Loader';
}
}
if ((isset($_REQUEST['missingExtension']) && $_REQUEST['missingExtension'] == true) || (count($errors) > 0)) {
$requiredExtensions = ['pdo_mysql', 'mysqli', 'curl', 'mbstring', 'json', 'SimpleXML', 'iconv', 'soap'];
$missingExtensions = [];
foreach ($requiredExtensions as $extension) {
if (!extension_loaded($extension)) {
$missingExtensions[] = $extension;
}
}
if (count($missingExtensions) > 0 || count($errors) > 0) {
include 'templates/default/views/home/indexpublic/dependencyerrors.phtml';
die();
} else {
header('Location: index.php');
}
}
require 'library/front.php';