mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-25 21:34:12 +01:00
- new Jenkinsfile and .jenkins removal to launch phpunit/behat tests triggered on both iTop build and push. - N°3053 - Check XML conversion methods - N°3057 - New build recipe - N°3059 - Automatically set the documentation URLs - N°3052 - Check community modules XML version against latest version - N°3054 - Check community modules version against major version - N°3062 - setup.css file integrity test - N°3060 - Check consistency between the list of modules and installation.xml - Add exclusion group for CI - N°3061 - Automatically check the installation.xml consistency
26 lines
784 B
PHP
26 lines
784 B
PHP
<?php
|
|
|
|
//Include status functions
|
|
require_once(__DIR__.'/../../sources/application/status/status.inc.php');
|
|
//Do check Status
|
|
try
|
|
{
|
|
\Combodo\iTop\Application\Status\StatusStartup();
|
|
$aResult = array('status' => STATUS_RUNNING, 'code' => \RestResult::OK, 'message' => '');
|
|
}
|
|
catch (\Exception $e)
|
|
{
|
|
$iCode = (defined('\RestResult::INTERNAL_ERROR')) ? \RestResult::INTERNAL_ERROR : 100;
|
|
$aResult = array('status' => STATUS_ERROR, 'code' => $iCode, 'message' => $e->getMessage());
|
|
http_response_code(500);
|
|
}
|
|
|
|
//Set headers, based on webservices/rest.php
|
|
$sContentType = 'application/json';
|
|
header('Content-type: ' . $sContentType);
|
|
header('Access-Control-Allow-Origin: *');
|
|
|
|
//Output result
|
|
$sResponse = json_encode($aResult);
|
|
echo $sResponse;
|