Added files - test
git-svn-id: https://svn.pioder.pl/uf-svn/uF@11 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
72
includes/class_error.php
Normal file
72
includes/class_error.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Dynamic Script Forum
|
||||
* @file includes/class_error.php
|
||||
* @version 1.0.x, 05-07-2008, 13:50
|
||||
* @copyright 2008(c) PioDer <pioder@wp.pl>
|
||||
* @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 = '
|
||||
<body bgcolor="">
|
||||
<table align="left" border="1" style="border-collapse: collapse; border-color: grey" width="500">
|
||||
<tr>
|
||||
<td bgcolor="" align="left">
|
||||
<font face="Verdana" style="font-size: 18pt; font-weight: bold" color="red">DSF v'.VERSION.' - ';
|
||||
$msg .= ($type='CRITICAL') ? 'CRITICAL ERROR' : 'GENERAL ERROR' ;
|
||||
$msg .= '</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#FEC876" align="center">
|
||||
<font face="Verdana" style="font-size: 13pt; font-weight: bold">';
|
||||
$msg = $msg.$msm.'
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" bgcolor="white">';
|
||||
if ($sql !='')
|
||||
{
|
||||
$msg = $msg.'<font face="Verdana" style="font-size: 11pt"><i>'.$sql.'</i></font>';
|
||||
}
|
||||
$msg = $msg.'</td></tr><tr><td bgcolor="white"><center><font face="Verdana" style="font-size: 10pt">Problems? Questions? Visit:
|
||||
<a href="http://pioder.gim2przemysl.int.pl/forum/" target="_blank">http://pioder.gim2przemysl.int.pl/forum</a></font></td></tr></table></center></body>';
|
||||
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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user