<?php
							 | 
						|
								/** 
							 | 
						|
								* @package	uForum 
							 | 
						|
								* @file		includes/errors.php
							 | 
						|
								* @version	$Id: errors.php 15 2009-05-01 17:06:40Z pioder $ 
							 | 
						|
								* @copyright	2009(c) PioDer <[email protected]>
							 | 
						|
								* @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')
							 | 
						|
								   );
							 | 
						|
								}
							 | 
						|
								?>
							 |