* @link http://pioder.gim2przemysl.int.pl/dsf.html
* @license GNU GPL v3
**/
if ( !defined('IN_uF') )
{
die('Hacking attempt');
}
function message_die($type, $msm, $sql)
{
$msg ='';
$msg = '
DSF v'.VERSION.' - ';
$msg .= ($type='CRITICAL') ? 'CRITICAL ERROR' : 'GENERAL ERROR' ;
$msg .= '
|
';
$msg = $msg.$msm.'
|
';
if ($sql !='')
{
$msg = $msg.''.$sql.'';
}
$msg = $msg.' |
Problems? Questions? Visit:
http://pioder.gim2przemysl.int.pl/forum |
';
die($msg);
}
function message_forum($text, $url, $interval = 1.8)
{
global $lng;
global $forum_config;
$skin = array(
'url' => $url,
'msg' => $text,
'queries' => '',
'pa_link' => '',
);
$skin = array_push_associative($skin,Over::generate_header($lng['message_forum'], '> '.$lng['message_forum']));
die(
include('./skins/'.Over::ViewSkinName().'/message_body.tpl')
);
}
function admin_message_forum($text, $url)
{
$skin = array(
'url'=>$url,
'msg'=>$text,
);
$skin['queries'] = '';
$skin['pa_link'] = '';
die(
include('./../skins/'.Admin_Over::ViewSkinName().'/admin/message_body.tpl')
);
}
?>