bernd
VMail-Quota-Zeug
bernd commited 8d843ef at 2011-06-20 17:46:18
<?php
require_once("inc/security.php");
function system_failure($reason)
{
input_error($reason);
show_page();
die();
}
function input_error($reason)
{
global $input_error;
if (!isset($input_error))
$input_error = array();
array_push($input_error, $reason);
}
function warning($msg)
{
if (!isset($_SESSION['warning']))
$_SESSION['warning'] = array();
array_push($_SESSION['warning'], $msg);
}
function success_msg($msg)
{
if (!isset($_SESSION['success_msg']))
$_SESSION['success_msg'] = array();
array_push($_SESSION['success_msg'], $msg);
}
function we_have_an_error()
{
global $input_error;
return (count($input_error) > 0);
}
function get_messages()
{
$messages = '';
global $input_error;
if (isset($input_error))
{
$messages .= '<div class="error">
<h3>Fehler</h3>
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX