<?php
require_once("inc/security.php");
function system_failure($reason)
{
include('inc/top.php');
echo '
<h3>Fehler</h3>
<div class="error">
<p>Es ist ein Fehler aufgetreten:<br /> '.filter_input_general($reason).'</p>
</div>';
include('inc/bottom.php');
die();
}
function input_error($reason)
{
global $input_error;
if (!isset($input_error))
$input_error = array();
array_push($input_error, $reason);
}
function warning($msg)
{
global $warning;
if (!isset($warning))
$warning = array();
array_push($warning, $msg);
}
function success_msg($msg)
{
global $success_msg;
if (!isset($success_msg))
$success_msg = array();
array_push($success_msg, $msg);
}
function show_messages()
{
global $input_error;
global $success_msg;
global $warning;
if (isset($input_error))
{
echo '<div class="error">
<h3>Fehler</h3>