+ Moved classes to includes/classes catalog
+ Deleted a few of classes + Renamed functions + Fixed bug: Changing user nick in ACP git-svn-id: https://svn.pioder.pl/uf-svn/uF@17 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
72
includes/errors.php
Normal file
72
includes/errors.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
/**
|
||||
* @package uForum
|
||||
* @file includes/errors.php
|
||||
* @version $Id: errors.php 15 2009-05-01 17:06:40Z pioder $
|
||||
* @copyright 2009(c) PioDer <pioder@wp.pl>
|
||||
* @link http://pioder.gim2przemysl.int.pl/
|
||||
* @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,GenerateHeader($lng['message_forum'], '> '.$lng['message_forum']));
|
||||
die(
|
||||
include('./skins/'.ViewSkinName().'/message_body.tpl')
|
||||
);
|
||||
}
|
||||
function admin_message_forum($text, $url)
|
||||
{
|
||||
$skin = array(
|
||||
'url'=>$url,
|
||||
'msg'=>$text,
|
||||
);
|
||||
$skin['queries'] = '';
|
||||
$skin['pa_link'] = '';
|
||||
die(
|
||||
include('./template/message_body.tpl')
|
||||
);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user