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.

68 lines
2.4 KiB

  1. <?php
  2. /**
  3. * @package Dynamic Script Forum
  4. * @file constans.php
  5. * @version 1.0.x, 16-04-2007, 14:35
  6. * @copyright 2008(c) PioDer <pioder@wp.pl>
  7. * @link http://pioder.gim2przemysl.int.pl/dsf.html
  8. * @license GNU GPL v3
  9. **/
  10. if (!defined('IN_uF'))
  11. {
  12. die('Hacking attempt');
  13. }
  14. //sessions constants
  15. define('SESSION_LIFETIME',129600);
  16. define('SESS_NAME','uf_auth');
  17. //maximum filesize of avatar
  18. define('AV_CATALOG','images/avatars/');
  19. //posting allowed tags HTML
  20. define('ALLOWED_TAGS','<strong><em><u><s><span><font><div><img><a><font><p><sub><sup><hr><br><li><ol><ul><h1><h2><h3><h4><h5><h6>');
  21. //tables
  22. define('BANLIST_TABLE',DB_PREFIX.'banlist');
  23. define('CATS_TABLE',DB_PREFIX.'categories');
  24. define('CENSORLIST_TABLE',DB_PREFIX.'censorlist');
  25. define('CONFIG_TABLE',DB_PREFIX.'config');
  26. define('FORUMS_TABLE',DB_PREFIX.'forums');
  27. define('GROUPS_TABLE',DB_PREFIX.'groups');
  28. define('PM_INBOX_TABLE',DB_PREFIX.'msg_inbox');
  29. define('PM_SENTBOX_TABLE',DB_PREFIX.'msg_sentbox');
  30. define('POSTS_TABLE',DB_PREFIX.'posts');
  31. define('SESSIONS_TABLE',DB_PREFIX.'sessions');
  32. define('SHOUTBOX_TABLE',DB_PREFIX.'shoutbox');
  33. define('SKINS_TABLE',DB_PREFIX.'skins');
  34. define('SMILES_TABLE',DB_PREFIX.'smiles');
  35. define('USERS_TABLE',DB_PREFIX.'users');
  36. define('USERS_GROUP_TABLE',DB_PREFIX.'users_group');
  37. define('TOPICS_TABLE',DB_PREFIX.'topics');
  38. define('WARNINGS_TABLE',DB_PREFIX.'warns');
  39. //footer forum text
  40. define('FOOTER_TEXT','<span class="copyright" >Powered by <b>&micro;Forum</b></span><span class="copyright"> &copy; 2007-2009 </span><a href="http://pioder.gim2przemysl.int.pl/dsf.html" class="copyright" target="_blank"><b>PioDer</b></a>');
  41. //hash for password
  42. define('PASSWD_HASH','bJVhVFCthvhVhKBU6GUbhUBU6VI7BiU6fV7G76Kbug6FU67VsaVYat5FJUHssaYVY5fV5GUHI76uKYTjYKKTatastYKYTYKg6ds7IRdsagI565JTrJ4NFGagGKLULygaTJHgfYDRZagGHJ65KL7iryikuuyriMYIYYUyugFTDeRnLKJNuyTDTRsERy78IJOhHCTDYjomLKBJDF5THNNBjyFCDYekjnKBUYgIHnUIbyuG6UyHNKJjnKHVut6FBYlH987g6GIUBbg76V5NNLUBH76BKLBi76FVtjN76Gi77ggYVCx3 R4SGhfGLHIH64XFGBUNLJOgfvc4Y3ScvmljmOBVc4klJKNIuBGVY6 MbvhGCRGgJLjKFHrYYJnKJGFHTfJJjnLK');
  43. function array_push_associative(&$arr)
  44. {
  45. $ret = '';
  46. $args = func_get_args();
  47. foreach ($args as $arg)
  48. {
  49. if (is_array($arg))
  50. {
  51. foreach ($arg as $key => $value)
  52. {
  53. $arr[$key] = $value;
  54. $ret++;
  55. }
  56. }
  57. else
  58. {
  59. $arr[$arg] = "";
  60. }
  61. }
  62. return $arr;
  63. }
  64. ?>