A lightweight forum engine written in PHP. Repository is now obsolete and read-only. http://www.pioder.pl/uforum.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

72 lines
1.9 KiB

<?php
/**
* @package uForum
* @file includes/errors.php
* @version $Id: errors.php 15 2009-05-01 17:06:40Z pioder $
* @copyright 2007-2010 (c) PioDer <[email protected]>
* @link http://www.pioder.pl/
* @license see LICENSE.txt
**/
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">&micro;Forum v'.VERSION.' - ';
$msg .= $type;
$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://www.pioder.pl/forum/" target="_blank">http://www.pioder.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_assoc($skin,GenerateHeader($lng['message_forum'], '&gt; '.$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')
);
}
?>