dnsphpadmin/includes/fatal.php
Petr Bena 7f4dd64e7c
Roles (#4)
* roles
2019-01-21 16:46:07 +01:00

30 lines
919 B
PHP

<?php
// 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, either version 3 of the License, or
// (at your option) any later version.
// 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.
// Security check
if (!defined('G_DNSTOOL_ENTRY_POINT'))
die("Not a valid entry point");
require_once("psf/psf.php");
require_once("config.php");
function Error($msg)
{
global $g_debug;
$web = new HtmlPage("Error");
bootstrap_init($web);
$web->AppendObject(new BS_Alert("ERROR: " . $msg, "danger"));
$web->PrintHtml();
if ($g_debug)
psf_print_debug_as_html();
die(1);
}