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
2.0 KiB

  1. <?php
  2. /**
  3. * @package uForum
  4. * @file includes/errors.php
  5. * @version $Id: errors.php 15 2009-05-01 17:06:40Z pioder $
  6. * @copyright 2009(c) PioDer <pioder@wp.pl>
  7. * @link http://pioder.gim2przemysl.int.pl/
  8. * @license GNU GPL v3
  9. **/
  10. if ( !defined('IN_uF') )
  11. {
  12. die('Hacking attempt');
  13. }
  14. function message_die($type, $msm, $sql)
  15. {
  16. $msg ='';
  17. $msg = '
  18. <body bgcolor="">
  19. <table align="left" border="1" style="border-collapse: collapse; border-color: grey" width="500">
  20. <tr>
  21. <td bgcolor="" align="left">
  22. <font face="Verdana" style="font-size: 18pt; font-weight: bold" color="red">&micro;Forum v'.VERSION.' - ';
  23. $msg .= $type;
  24. $msg .= '</font>
  25. </td>
  26. </tr>
  27. <tr>
  28. <td bgcolor="#FEC876" align="center">
  29. <font face="Verdana" style="font-size: 13pt; font-weight: bold">';
  30. $msg = $msg.$msm.'
  31. </font>
  32. </td>
  33. </tr>
  34. <tr>
  35. <td align="left" bgcolor="white">';
  36. if ($sql !='')
  37. {
  38. $msg = $msg.'<font face="Verdana" style="font-size: 11pt"><i>'.$sql.'</i></font>';
  39. }
  40. $msg = $msg.'</td></tr><tr><td bgcolor="white"><center><font face="Verdana" style="font-size: 10pt">Problems? Questions? Visit:
  41. <a href="http://pioder.gim2przemysl.int.pl/forum/" target="_blank">http://pioder.gim2przemysl.int.pl/forum</a></font></td></tr></table></center></body>';
  42. die($msg);
  43. }
  44. function message_forum($text, $url, $interval = 1.8)
  45. {
  46. global $lng;
  47. global $forum_config;
  48. $skin = array(
  49. 'url' => $url,
  50. 'msg' => $text,
  51. 'queries' => '',
  52. 'pa_link' => '',
  53. );
  54. $skin = array_push_assoc($skin,GenerateHeader($lng['message_forum'], '&gt; '.$lng['message_forum']));
  55. die(
  56. include('./skins/'.ViewSkinName().'/message_body.tpl')
  57. );
  58. }
  59. function admin_message_forum($text, $url)
  60. {
  61. $skin = array(
  62. 'url'=>$url,
  63. 'msg'=>$text,
  64. );
  65. $skin['queries'] = '';
  66. $skin['pa_link'] = '';
  67. die(
  68. include('./template/message_body.tpl')
  69. );
  70. }
  71. ?>