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.

73 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 2007-2010 (c) PioDer <pioder@wp.pl>
  7. * @link http://www.pioder.pl/
  8. * @license see LICENSE.txt
  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://www.pioder.pl/forum/" target="_blank">http://www.pioder.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. global $userdata;
  49. $skin = array(
  50. 'url' => $url,
  51. 'msg' => $text,
  52. 'queries' => '',
  53. 'pa_link' => '',
  54. );
  55. $skin = array_push_assoc($skin,GenerateHeader($lng['message_forum'], '<span class="navigator">'.$lng['message_forum'].'</span>'));
  56. die(
  57. require('./skins/'.ViewSkinName().'/message_body.tpl')
  58. );
  59. }
  60. function admin_message_forum($text, $url)
  61. {
  62. $skin = array(
  63. 'url'=>$url,
  64. 'msg'=>$text,
  65. );
  66. $skin['queries'] = '';
  67. $skin['pa_link'] = '';
  68. die(
  69. require('./template/message_body.tpl')
  70. );
  71. }
  72. ?>