| Server IP : 185.252.147.100 / Your IP : 216.73.216.196 Web Server : nginx/1.27.3 System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 User : mitr ( 1000) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/html/kanboard/ |
Upload File : |
<?php
function send_response($status, $message)
{
http_response_code($status);
header('Content-Type: application/json');
echo json_encode(['status' => $status, 'message' => $message]);
exit;
}
set_error_handler(function ($severity, $message, $file, $line) {
throw new ErrorException($message, 0, $severity, $file, $line);
});
set_exception_handler(function ($exception) {
send_response(503, $exception->getMessage());
});
require __DIR__.'/app/common.php';
$container['db']->getConnection()->query('SELECT 1');
send_response(200, 'Database connection is OK');