pandorafms/pandora_console/general/error_screen.php

37 lines
1.3 KiB
PHP
Raw Normal View History

<?php
2023-06-08 13:19:01 +02:00
// Pandora FMS - https://pandorafms.com
// ==================================================
2023-06-08 11:53:13 +02:00
// Copyright (c) 2005-2023 Pandora FMS
2023-06-08 13:19:01 +02:00
// Please see https://pandorafms.com/community/ for full contribution list
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; version 2
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
2021-06-25 11:05:26 +02:00
require_once __DIR__.'/../include/functions.php';
require_once __DIR__.'/../include/functions_html.php';
require_once __DIR__.'/../include/functions_ui.php';
require_once __DIR__.'/../include/functions_io.php';
require_once __DIR__.'/../include/functions_extensions.php';
global $config;
$config['homedir'] = realpath(__DIR__.'/../');
echo '<html>';
ob_start('ui_process_page_head');
echo '<link rel="stylesheet" href="include/styles/pandora.css" type="text/css">';
echo '</head>'."\n";
2021-06-25 11:05:26 +02:00
require_once __DIR__.'/../include/functions_themes.php';
ob_start('ui_process_page_body');
2021-06-25 11:05:26 +02:00
// At this point, $login_screen is set with the error type desired.
require __DIR__.'/login_page.php';
?>
</body>
</html>