-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
24 lines (21 loc) · 845 Bytes
/
index.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
<?php
/**
* PrestaShop diagnostic tool.
*
* @author Maksim T. <[email protected]>
* @copyright 2018 Maksim T.
* @license Open Software License (OSL 3.0)
* @link https://github.com/zapalm/psdiag GitHub
* @link https://prestashop.modulez.ru/en/tools-scripts/50-prestashop-diagnostic-tool.html Homepage
*
* This is the script, that diagnose a site on PrestaShop and prints a report.
*/
$configPath = __DIR__ . '/../config/config.inc.php';
if (false === file_exists($configPath)) {
exit('The directory of the tool is placed incorrectly. You should place the directory of the tool to the root of your PrestaShop installation directory.' . PHP_EOL);
}
require_once $configPath;
require_once __DIR__ . '/vendor/autoload.php';
$psDiag = new \zapalm\PsDiag();
$report = $psDiag->diagnose();
$psDiag->printReport($report);