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.

402 lines
12 KiB

  1. #uF tables for uForum - not actual for this time
  2. #----------------------------------------------------
  3. #-
  4. #- Table structure for `uf_banlist`
  5. #-
  6. CREATE TABLE `uf_banlist` (
  7. `b_id` mediumint(8) NOT NULL auto_increment,
  8. `u_id` varchar(8) NOT NULL default '-2',
  9. `IP` varchar(15) NOT NULL default '0.0.0.0',
  10. `motive` varchar(40) NOT NULL default '',
  11. PRIMARY KEY (`b_id`)
  12. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  13. #-
  14. #- Table structure for `uf_banlist`
  15. #-
  16. #----------------------------------------------------
  17. #-
  18. #- Table structure for `uf_categories`
  19. #-
  20. CREATE TABLE `uf_categories` (
  21. `c_id` mediumint(8) NOT NULL default '0',
  22. `name` varchar(30) NOT NULL default '',
  23. `sort` mediumint(8) NOT NULL default '0',
  24. PRIMARY KEY (`c_id`)
  25. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  26. #-
  27. #- Table structure for `uf_categories`
  28. #-
  29. INSERT INTO `uf_categories` VALUES (1, 'Testowa Kategoria', 1);
  30. #----------------------------------------------------
  31. #-
  32. #- Table structure for `uf_censorlist`
  33. #-
  34. CREATE TABLE `uf_censorlist` (
  35. `w_id` mediumint(8) NOT NULL default '0',
  36. `word` varchar(45) NOT NULL default '',
  37. PRIMARY KEY (`w_id`)
  38. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  39. #-
  40. #- Table structure for `uf_censorlist`
  41. #-
  42. #----------------------------------------------------
  43. #-
  44. #- Table structure for `uf_config`
  45. #-
  46. CREATE TABLE `uf_config` (
  47. `name` varchar(255) NOT NULL default '',
  48. `value` text NOT NULL,
  49. PRIMARY KEY (`name`)
  50. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  51. #-
  52. #- Table structure for `uf_config`
  53. #-
  54. INSERT INTO `uf_config` VALUES ('forumname', 'Forum Test');
  55. INSERT INTO `uf_config` VALUES ('forumpatch', '');
  56. INSERT INTO `uf_config` VALUES ('meta_keywords', '');
  57. INSERT INTO `uf_config` VALUES ('meta_description', '');
  58. INSERT INTO `uf_config` VALUES ('defaultlang', 'Polish');
  59. INSERT INTO `uf_config` VALUES ('defaultskin', '1');
  60. INSERT INTO `uf_config` VALUES ('show_time_generation', '1');
  61. INSERT INTO `uf_config` VALUES ('disable_forum', '');
  62. INSERT INTO `uf_config` VALUES ('date_install', '1162663995');
  63. INSERT INTO `uf_config` VALUES ('use_censorlist', '1');
  64. INSERT INTO `uf_config` VALUES ('allow_warns', '1');
  65. INSERT INTO `uf_config` VALUES ('warns_in_topic', '1');
  66. INSERT INTO `uf_config` VALUES ('enable_confirms', '1');
  67. INSERT INTO `uf_config` VALUES ('allow_send_email', '1');
  68. INSERT INTO `uf_config` VALUES ('forum_counter','0');
  69. INSERT INTO `uf_config` VALUES ('limit_tpid', '20');
  70. INSERT INTO `uf_config` VALUES ('limit_ftid', '20');
  71. INSERT INTO `uf_config` VALUES ('limit_users', '30');
  72. INSERT INTO `uf_config` VALUES ('shoutbox_max_time', '14400');
  73. INSERT INTO `uf_config` VALUES ('shoutbox_max', '50');
  74. INSERT INTO `uf_config` VALUES ('view_shoutbox', '1');
  75. INSERT INTO `uf_config` VALUES ('allow_upload_avatars', '1');
  76. INSERT INTO `uf_config` VALUES ('forumdesc', 'Tu wpisz swój opis forum');
  77. INSERT INTO `uf_config` VALUES ('ip_post_for_mod', '1');
  78. INSERT INTO `uf_config` VALUES ('color_mod', 'green');
  79. INSERT INTO `uf_config` VALUES ('color_admin', 'red');
  80. INSERT INTO `uf_config` VALUES ('max_av_x', '150');
  81. INSERT INTO `uf_config` VALUES ('max_av_y', '150');
  82. INSERT INTO `uf_config` VALUES ('max_av_filesize', '102400');
  83. INSERT INTO `uf_config` VALUES ('sig_len', '300');
  84. INSERT INTO `uf_config` VALUES ('time_antiflood', '30');
  85. INSERT INTO `uf_config` VALUES ('tables_width', '900');
  86. INSERT INTO `uf_config` VALUES ('newpasswd_len', '6');
  87. INSERT INTO `uf_config` VALUES ('posts', '1');
  88. INSERT INTO `uf_config` VALUES ('pm_inbox_max', '10');
  89. INSERT INTO `uf_config` VALUES ('pm_sentbox_max', '10');
  90. #----------------------------------------------------
  91. #-
  92. #- Table structure for `uf_forums`
  93. #-
  94. CREATE TABLE `uf_forums` (
  95. `f_id` mediumint(8) NOT NULL default '0',
  96. `lock` tinyint(1) NOT NULL default '0',
  97. `moderate` int(11) NOT NULL default '0',
  98. `name` varchar(30) NOT NULL default '',
  99. `desc` text NOT NULL,
  100. `posts` mediumint(8) NOT NULL,
  101. `lastpost` varchar(255) NOT NULL,
  102. `c_id` int(8) NOT NULL default '0',
  103. `sort` mediumint(8) NOT NULL default '0',
  104. PRIMARY KEY (`f_id`)
  105. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  106. #-
  107. #- Table structure for `uf_forums`
  108. #-
  109. INSERT INTO `uf_forums` VALUES (1, 0, 0, 'Testowe Forum', 'Pierwsze testowe forum skryptu Dynamic Script Forum.', 1, '1:1:1:1181666444:2:Admin', 1, 1);
  110. #----------------------------------------------------
  111. #-
  112. #- Table structure for `uf_groups`
  113. #-
  114. CREATE TABLE `uf_groups` (
  115. `g_id` mediumint(8) NOT NULL default '0',
  116. `name` varchar(50) NOT NULL default '',
  117. `desc` varchar(255) NOT NULL default '',
  118. `m_id` mediumint(8) NOT NULL default '0',
  119. `sort` mediumint(8) NOT NULL default '0',
  120. PRIMARY KEY (`g_id`)
  121. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  122. #-
  123. #- Table structure for `uf_groups`
  124. #-
  125. #----------------------------------------------------
  126. #-
  127. #- Table structure for `uf_msg_inbox`
  128. #-
  129. CREATE TABLE `uf_msg_inbox` (
  130. `m_id` mediumint(8) NOT NULL default '0',
  131. `u_id` mediumint(8) NOT NULL default '0',
  132. `name` varchar(30) NOT NULL default '',
  133. `message` text NOT NULL,
  134. `time` varchar(40) NOT NULL default '',
  135. `u_n_id` mediumint(8) NOT NULL default '0',
  136. `read` int(1) NOT NULL default '0',
  137. PRIMARY KEY (`m_id`)
  138. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  139. #-
  140. #- Table structure for `uf_msg_inbox`
  141. #-
  142. #----------------------------------------------------
  143. #-
  144. #- Table structure for `uf_msg_sentbox`
  145. #-
  146. CREATE TABLE `uf_msg_sentbox` (
  147. `m_id` mediumint(8) NOT NULL default '0',
  148. `u_id` mediumint(8) NOT NULL default '0',
  149. `name` varchar(30) NOT NULL default '',
  150. `message` text NOT NULL,
  151. `time` varchar(40) NOT NULL default '',
  152. `u_n_id` mediumint(8) NOT NULL default '0',
  153. PRIMARY KEY (`m_id`)
  154. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  155. #-
  156. #- Table structure for `uf_msg_sentbox`
  157. #-
  158. #----------------------------------------------------
  159. #-
  160. #- Table structure for `uf_posts`
  161. #-
  162. CREATE TABLE `uf_posts` (
  163. `p_id` mediumint(8) NOT NULL default '0',
  164. `t_id` mediumint(8) NOT NULL default '0',
  165. `u_id` mediumint(8) NOT NULL default '0',
  166. `text` text NOT NULL,
  167. `user_agent` varchar(255) NOT NULL,
  168. `ptime` int(1) NOT NULL default '0',
  169. `tp_id` int(2) NOT NULL default '0',
  170. `f_id` mediumint(8) NOT NULL default '0',
  171. `moderated` int(1) NOT NULL default '0',
  172. `post_ip` varchar(30) NOT NULL default '0.0.0.0',
  173. PRIMARY KEY (`p_id`)
  174. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  175. #-
  176. #- Table structure for `uf_posts`
  177. #-
  178. INSERT INTO `uf_posts` VALUES
  179. (1, 1, 1, '<b>Witamy</b> na forum opartym na skrypcie uf(Dynamic Script Forum). Miłego korzystania z niego ;)<br>W razie pytań, pisz:<br> <a href="http://pioder.gim2przemysl.int.pl/forum/">uf Forum</a>', '', 1181666444, 1, 1, 0, '127.0.0.1');
  180. #----------------------------------------------------
  181. #-
  182. #- Table structure for `uf_sessions`
  183. #-
  184. CREATE TABLE `uf_sessions` (
  185. `s_id` mediumint(3) NOT NULL auto_increment,
  186. `session_id` varchar(50) NOT NULL default '',
  187. `u_id` int(2) NOT NULL default '0',
  188. `time` varchar(30) NOT NULL default '',
  189. PRIMARY KEY (`s_id`)
  190. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
  191. #----------------------------------------------------
  192. #-
  193. #- Table structure for `uf_shoutbox`
  194. #-
  195. CREATE TABLE `uf_shoutbox` (
  196. `m_id` mediumint(8) NOT NULL auto_increment,
  197. `u_id` mediumint(8) NOT NULL,
  198. `message` text NOT NULL,
  199. `mtime` varchar(20) NOT NULL,
  200. PRIMARY KEY (`m_id`)
  201. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  202. #-
  203. #- Table structure for `uf_skins`
  204. #-
  205. CREATE TABLE `uf_skins` (
  206. `s_id` mediumint(8) NOT NULL default '0',
  207. `name` varchar(20) NOT NULL default '',
  208. PRIMARY KEY (`s_id`)
  209. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  210. #-
  211. #- Table structure for `uf_skins`
  212. #-
  213. INSERT INTO `uf_skins` VALUES (1, 'subPurple');
  214. #----------------------------------------------------
  215. #-
  216. #- Table structure for `uf_smiles`
  217. #-
  218. CREATE TABLE `uf_smiles` (
  219. `s_id` mediumint(8) NOT NULL default '0',
  220. `smile` varchar(20) NOT NULL default '',
  221. `url` varchar(40) NOT NULL default '',
  222. PRIMARY KEY (`s_id`)
  223. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  224. #-
  225. #- Table structure for `uf_smiles`
  226. #-
  227. INSERT INTO `uf_smiles` VALUES (1, ':)', 'images/smiles/icon_smile.gif');
  228. INSERT INTO `uf_smiles` VALUES (2, ';(', 'images/smiles/icon_cry.gif');
  229. INSERT INTO `uf_smiles` VALUES (3, ':(', 'images/smiles/icon_sad.gif');
  230. INSERT INTO `uf_smiles` VALUES (4, ':/', 'images/smiles/icon_curve.gif');
  231. INSERT INTO `uf_smiles` VALUES (5, ':|', 'images/smiles/icon_neutral.gif');
  232. INSERT INTO `uf_smiles` VALUES (6, ':idea:', 'images/smiles/icon_idea.gif');
  233. INSERT INTO `uf_smiles` VALUES (7, ':lol:', 'images/smiles/icon_lol.gif');
  234. INSERT INTO `uf_smiles` VALUES (8, ';)', 'images/smiles/icon_wink.gif');
  235. INSERT INTO `uf_smiles` VALUES (9, ':?:', 'images/smiles/icon_question.gif');
  236. INSERT INTO `uf_smiles` VALUES (10, ':!:', 'images/smiles/icon_exclaim.gif');
  237. INSERT INTO `uf_smiles` VALUES (11, ':P', 'images/smiles/icon_razz.gif');
  238. INSERT INTO `uf_smiles` VALUES (12, ':roll:', 'images/smiles/icon_rolleyes.gif');
  239. INSERT INTO `uf_smiles` VALUES (13, ':>', 'images/smiles/icon_smile2.gif');
  240. INSERT INTO `uf_smiles` VALUES (14, ':evil:', 'images/smiles/icon_twisted.gif');
  241. INSERT INTO `uf_smiles` VALUES (15, ':o', 'images/smiles/icon_surprised.gif');
  242. INSERT INTO `uf_smiles` VALUES (16, ':mad:', 'images/smiles/icon_mad.gif');
  243. INSERT INTO `uf_smiles` VALUES (17, ':redface:', 'images/smiles/icon_redface.gif');
  244. #----------------------------------------------------
  245. #-
  246. #- Table structure for `uf_topics`
  247. #-
  248. CREATE TABLE `uf_topics` (
  249. `t_id` mediumint(8) NOT NULL default '0',
  250. `f_id` mediumint(8) NOT NULL default '0',
  251. `lock` int(1) NOT NULL default '0',
  252. `sticky` int(1) NOT NULL,
  253. `name` varchar(100) NOT NULL default '',
  254. `author` mediumint(8) NOT NULL default '0',
  255. `lastpost_time` int(1) NOT NULL,
  256. `posts` mediumint(8) NOT NULL,
  257. `lastpost` varchar(255) NOT NULL,
  258. PRIMARY KEY (`t_id`)
  259. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  260. #-
  261. #- Table structure for `uf_topics`
  262. #-
  263. INSERT INTO `uf_topics` VALUES (1, 1, 0, 0, 'Witamy na forum uf', 1, 0, 2, '1:1:0:2:Admin');
  264. #----------------------------------------------------
  265. #-
  266. #- Table structure for `uf_users`
  267. #-
  268. CREATE TABLE `uf_users` (
  269. `u_id` mediumint(8) NOT NULL default '0',
  270. `nick` varchar(25) NOT NULL default '',
  271. `pass` varchar(32) NOT NULL default '',
  272. `email` varchar(40) default NULL,
  273. `rank` int(11) NOT NULL default '0',
  274. `regdate` int(1) NOT NULL default '0',
  275. `lastvisit` int(1) NOT NULL default '0',
  276. `gg` int(7) NOT NULL default '0',
  277. `allow_gg` tinyint(1) NOT NULL default '0',
  278. `allow_email` tinyint(1) NOT NULL default '0',
  279. `allow_qr` tinyint(1) NOT NULL default '0',
  280. `view_shoutbox` int(1) NOT NULL default '1',
  281. `skin` mediumint(4) NOT NULL default '0',
  282. `lang` varchar(30) NOT NULL default '',
  283. `limit_tpid` mediumint(2) NOT NULL default '15',
  284. `limit_ftid` mediumint(2) NOT NULL default '20',
  285. `limit_users` mediumint(2) NOT NULL default '30',
  286. `sig` text NOT NULL,
  287. `avatar` varchar(100) NOT NULL default '',
  288. `active` tinyint(1) NOT NULL default '0',
  289. `posts` int(11) NOT NULL default '0',
  290. `interests` varchar(100) NOT NULL default '',
  291. PRIMARY KEY (`u_id`)
  292. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  293. #-
  294. #- Table structure for `uf_users`
  295. #-
  296. INSERT INTO `uf_users` VALUES (-1, 'Guest', 'null', NULL, 0, 0, 0, 0, 0, 0, 0, 1, 1, '', 15, 20, 30, '', '', 0, 0, '');
  297. INSERT INTO `uf_users` VALUES (1, '%login%', '%pass%', '%email%', 2, '%regdate%', 0, 0, 1, 1, 1, 1, 1, '%lang%', 15, 20, 30, '', '', 1, 1, '');
  298. #----------------------------------------------------
  299. #-
  300. #- Table structure for `uf_users_group`
  301. #-
  302. CREATE TABLE `uf_users_group` (
  303. `id` mediumint(8) NOT NULL default '0',
  304. `u_id` mediumint(8) NOT NULL default '0',
  305. `g_id` mediumint(8) NOT NULL default '0',
  306. PRIMARY KEY (`id`)
  307. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  308. #-
  309. #- Table structure for `uf_users_group`
  310. #-
  311. #----------------------------------------------------
  312. #-
  313. #- Table structure for `uf_warns`
  314. #-
  315. CREATE TABLE `uf_warns` (
  316. `w_id` mediumint(8) NOT NULL auto_increment,
  317. `u_id` mediumint(8) NOT NULL default '0',
  318. `value` varchar(10) NOT NULL default '',
  319. `motive` varchar(255) NOT NULL default '',
  320. PRIMARY KEY (`w_id`)
  321. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  322. #-
  323. #- Table structure for `uf_warns`
  324. #-