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.

396 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. #----------------------------------------------------
  88. #-
  89. #- Table structure for `uf_forums`
  90. #-
  91. CREATE TABLE `uf_forums` (
  92. `f_id` mediumint(8) NOT NULL default '0',
  93. `lock` tinyint(1) NOT NULL default '0',
  94. `moderate` int(11) NOT NULL default '0',
  95. `name` varchar(30) NOT NULL default '',
  96. `desc` text NOT NULL,
  97. `c_id` int(8) NOT NULL default '0',
  98. `sort` mediumint(8) NOT NULL default '0',
  99. PRIMARY KEY (`f_id`)
  100. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  101. #-
  102. #- Table structure for `uf_forums`
  103. #-
  104. INSERT INTO `uf_forums` VALUES (1, 0, 0, 'Testowe Forum', 'Pierwsze testowe forum skryptu Dynamic Script Forum.', 1, 1);
  105. #----------------------------------------------------
  106. #-
  107. #- Table structure for `uf_groups`
  108. #-
  109. CREATE TABLE `uf_groups` (
  110. `g_id` mediumint(8) NOT NULL default '0',
  111. `name` varchar(50) NOT NULL default '',
  112. `desc` varchar(255) NOT NULL default '',
  113. `m_id` mediumint(8) NOT NULL default '0',
  114. `sort` mediumint(8) NOT NULL default '0',
  115. PRIMARY KEY (`g_id`)
  116. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  117. #-
  118. #- Table structure for `uf_groups`
  119. #-
  120. #----------------------------------------------------
  121. #-
  122. #- Table structure for `uf_msg_inbox`
  123. #-
  124. CREATE TABLE `uf_msg_inbox` (
  125. `m_id` mediumint(8) NOT NULL default '0',
  126. `u_id` mediumint(8) NOT NULL default '0',
  127. `name` varchar(30) NOT NULL default '',
  128. `message` text NOT NULL,
  129. `time` varchar(40) NOT NULL default '',
  130. `u_n_id` mediumint(8) NOT NULL default '0',
  131. `read` int(1) NOT NULL default '0',
  132. PRIMARY KEY (`m_id`)
  133. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  134. #-
  135. #- Table structure for `uf_msg_inbox`
  136. #-
  137. #----------------------------------------------------
  138. #-
  139. #- Table structure for `uf_msg_sentbox`
  140. #-
  141. CREATE TABLE `uf_msg_sentbox` (
  142. `m_id` mediumint(8) NOT NULL default '0',
  143. `u_id` mediumint(8) NOT NULL default '0',
  144. `name` varchar(30) NOT NULL default '',
  145. `message` text NOT NULL,
  146. `time` varchar(40) NOT NULL default '',
  147. `u_n_id` mediumint(8) NOT NULL default '0',
  148. PRIMARY KEY (`m_id`)
  149. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  150. #-
  151. #- Table structure for `uf_msg_sentbox`
  152. #-
  153. #----------------------------------------------------
  154. #-
  155. #- Table structure for `uf_posts`
  156. #-
  157. CREATE TABLE `uf_posts` (
  158. `p_id` mediumint(8) NOT NULL default '0',
  159. `t_id` mediumint(8) NOT NULL default '0',
  160. `u_id` mediumint(8) NOT NULL default '0',
  161. `text` text NOT NULL,
  162. `user_agent` varchar(255) NOT NULL,
  163. `ptime` int(1) NOT NULL default '0',
  164. `tp_id` int(2) NOT NULL default '0',
  165. `f_id` mediumint(8) NOT NULL default '0',
  166. `moderated` int(1) NOT NULL default '0',
  167. `post_ip` varchar(30) NOT NULL default '0.0.0.0',
  168. PRIMARY KEY (`p_id`)
  169. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  170. #-
  171. #- Table structure for `uf_posts`
  172. #-
  173. INSERT INTO `uf_posts` VALUES
  174. (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');
  175. #----------------------------------------------------
  176. #-
  177. #- Table structure for `uf_sessions`
  178. #-
  179. CREATE TABLE `uf_sessions` (
  180. `s_id` mediumint(3) NOT NULL auto_increment,
  181. `session_id` varchar(50) NOT NULL default '',
  182. `u_id` int(2) NOT NULL default '0',
  183. `time` varchar(30) NOT NULL default '',
  184. PRIMARY KEY (`s_id`)
  185. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
  186. #----------------------------------------------------
  187. #-
  188. #- Table structure for `uf_shoutbox`
  189. #-
  190. CREATE TABLE `uf_shoutbox` (
  191. `m_id` mediumint(8) NOT NULL auto_increment,
  192. `u_id` mediumint(8) NOT NULL,
  193. `message` text NOT NULL,
  194. `mtime` varchar(20) NOT NULL,
  195. PRIMARY KEY (`m_id`)
  196. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  197. #-
  198. #- Table structure for `uf_skins`
  199. #-
  200. CREATE TABLE `uf_skins` (
  201. `s_id` mediumint(8) NOT NULL default '0',
  202. `name` varchar(20) NOT NULL default '',
  203. PRIMARY KEY (`s_id`)
  204. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  205. #-
  206. #- Table structure for `uf_skins`
  207. #-
  208. INSERT INTO `uf_skins` VALUES (1, 'subPurple');
  209. #----------------------------------------------------
  210. #-
  211. #- Table structure for `uf_smiles`
  212. #-
  213. CREATE TABLE `uf_smiles` (
  214. `s_id` mediumint(8) NOT NULL default '0',
  215. `smile` varchar(20) NOT NULL default '',
  216. `url` varchar(40) NOT NULL default '',
  217. PRIMARY KEY (`s_id`)
  218. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  219. #-
  220. #- Table structure for `uf_smiles`
  221. #-
  222. INSERT INTO `uf_smiles` VALUES (1, ':)', 'images/smiles/icon_smile.gif');
  223. INSERT INTO `uf_smiles` VALUES (2, ';(', 'images/smiles/icon_cry.gif');
  224. INSERT INTO `uf_smiles` VALUES (3, ':(', 'images/smiles/icon_sad.gif');
  225. INSERT INTO `uf_smiles` VALUES (4, ':/', 'images/smiles/icon_curve.gif');
  226. INSERT INTO `uf_smiles` VALUES (5, ':|', 'images/smiles/icon_neutral.gif');
  227. INSERT INTO `uf_smiles` VALUES (6, ':idea:', 'images/smiles/icon_idea.gif');
  228. INSERT INTO `uf_smiles` VALUES (7, ':lol:', 'images/smiles/icon_lol.gif');
  229. INSERT INTO `uf_smiles` VALUES (8, ';)', 'images/smiles/icon_wink.gif');
  230. INSERT INTO `uf_smiles` VALUES (9, ':?:', 'images/smiles/icon_question.gif');
  231. INSERT INTO `uf_smiles` VALUES (10, ':!:', 'images/smiles/icon_exclaim.gif');
  232. INSERT INTO `uf_smiles` VALUES (11, ':P', 'images/smiles/icon_razz.gif');
  233. INSERT INTO `uf_smiles` VALUES (12, ':roll:', 'images/smiles/icon_rolleyes.gif');
  234. INSERT INTO `uf_smiles` VALUES (13, ':>', 'images/smiles/icon_smile2.gif');
  235. INSERT INTO `uf_smiles` VALUES (14, ':evil:', 'images/smiles/icon_twisted.gif');
  236. INSERT INTO `uf_smiles` VALUES (15, ':o', 'images/smiles/icon_surprised.gif');
  237. INSERT INTO `uf_smiles` VALUES (16, ':mad:', 'images/smiles/icon_mad.gif');
  238. INSERT INTO `uf_smiles` VALUES (17, ':redface:', 'images/smiles/icon_redface.gif');
  239. #----------------------------------------------------
  240. #-
  241. #- Table structure for `uf_topics`
  242. #-
  243. CREATE TABLE `uf_topics` (
  244. `t_id` mediumint(8) NOT NULL default '0',
  245. `f_id` mediumint(8) NOT NULL default '0',
  246. `lock` int(1) NOT NULL default '0',
  247. `sticky` int(1) NOT NULL,
  248. `name` varchar(100) NOT NULL default '',
  249. `author` mediumint(8) NOT NULL default '0',
  250. `lastpost_time` int(1) NOT NULL,
  251. PRIMARY KEY (`t_id`)
  252. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  253. #-
  254. #- Table structure for `uf_topics`
  255. #-
  256. INSERT INTO `uf_topics` VALUES (1, 1, 0, 0, 'Witamy na forum uf', 1,0);
  257. #----------------------------------------------------
  258. #-
  259. #- Table structure for `uf_users`
  260. #-
  261. CREATE TABLE `uf_users` (
  262. `u_id` mediumint(8) NOT NULL default '0',
  263. `nick` varchar(25) NOT NULL default '',
  264. `pass` varchar(32) NOT NULL default '',
  265. `email` varchar(40) default NULL,
  266. `rank` int(11) NOT NULL default '0',
  267. `regdate` int(1) NOT NULL default '0',
  268. `lastvisit` int(1) NOT NULL default '0',
  269. `gg` int(7) NOT NULL default '0',
  270. `allow_gg` tinyint(1) NOT NULL default '0',
  271. `allow_email` tinyint(1) NOT NULL default '0',
  272. `allow_qr` tinyint(1) NOT NULL default '0',
  273. `view_shoutbox` int(1) NOT NULL default '1',
  274. `skin` mediumint(4) NOT NULL default '0',
  275. `lang` varchar(30) NOT NULL default '',
  276. `limit_tpid` mediumint(2) NOT NULL default '15',
  277. `limit_ftid` mediumint(2) NOT NULL default '20',
  278. `limit_users` mediumint(2) NOT NULL default '30',
  279. `sig` text NOT NULL,
  280. `avatar` varchar(100) NOT NULL default '',
  281. `active` tinyint(1) NOT NULL default '0',
  282. `posts` int(11) NOT NULL default '0',
  283. `interests` varchar(100) NOT NULL default '',
  284. PRIMARY KEY (`u_id`)
  285. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  286. #-
  287. #- Table structure for `uf_users`
  288. #-
  289. INSERT INTO `uf_users` VALUES (-1, 'Guest', 'null', NULL, 0, 0, 0, 0, 0, 0, 0, 1, 1, '', 15, 20, 30, '', '', 0, 0, '');
  290. INSERT INTO `uf_users` VALUES (1, '%login%', '%pass%', '%email%', 2, '%regdate%', 0, 0, 1, 1, 1, 1, 1, '%lang%', 15, 20, 30, '', '', 1, 1, '');
  291. #----------------------------------------------------
  292. #-
  293. #- Table structure for `uf_users_group`
  294. #-
  295. CREATE TABLE `uf_users_group` (
  296. `id` mediumint(8) NOT NULL default '0',
  297. `u_id` mediumint(8) NOT NULL default '0',
  298. `g_id` mediumint(8) NOT NULL default '0',
  299. PRIMARY KEY (`id`)
  300. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  301. #-
  302. #- Table structure for `uf_users_group`
  303. #-
  304. #----------------------------------------------------
  305. #-
  306. #- Table structure for `uf_warns`
  307. #-
  308. CREATE TABLE `uf_warns` (
  309. `w_id` mediumint(8) NOT NULL auto_increment,
  310. `u_id` mediumint(8) NOT NULL default '0',
  311. `value` varchar(10) NOT NULL default '',
  312. `motive` varchar(255) NOT NULL default '',
  313. PRIMARY KEY (`w_id`)
  314. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  315. #-
  316. #- Table structure for `uf_warns`
  317. #-