mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-02 23:54:12 +01:00
30 lines
703 B
PHP
30 lines
703 B
PHP
<?php
|
|
/**
|
|
* @copyright Copyright (C) 2010-2021 Combodo SARL
|
|
* @license http://opensource.org/licenses/AGPL-3.0
|
|
*/
|
|
|
|
use Combodo\iTop\DBTools\Service\DBAnalyzerUtils;
|
|
|
|
@include_once('../approot.inc.php');
|
|
@include_once('../../approot.inc.php');
|
|
@include_once('../../../approot.inc.php');
|
|
|
|
require_once(APPROOT.'application/startup.inc.php');
|
|
|
|
require_once('../db_analyzer.class.inc.php');
|
|
require_once('../src/Service/DBAnalyzerUtils.php');
|
|
|
|
$oDBAnalyzer = new DatabaseAnalyzer(0);
|
|
$aResults = $oDBAnalyzer->CheckIntegrity([]);
|
|
|
|
if (empty($aResults))
|
|
{
|
|
echo "Database OK\n";
|
|
exit(0);
|
|
}
|
|
|
|
$sReportFile = DBAnalyzerUtils::GenerateReport($aResults);
|
|
|
|
echo "Report generated: {$sReportFile}.log\n";
|