bernd
Mehr config-optionen und config via Wrapper-Funktion benutzen
bernd commited d96a86a at 2009-05-23 15:24:52
<?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 we_have_an_error()
{
global $input_error;
global $warning;
return ((count($input_error) + count($warning)) > 0);
}
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX