install_2-1_sqlite3.sql 125 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353
  1. #### ATTENTION: You do not need to run or use this file! The install.php script does everything for you!
  2. #### Install script for SQLite3
  3. #
  4. # Table structure for table `admin_info_files`
  5. #
  6. CREATE TABLE {$db_prefix}admin_info_files (
  7. id_file integer primary key,
  8. filename varchar(255) NOT NULL,
  9. path varchar(255) NOT NULL,
  10. parameters varchar(255) NOT NULL,
  11. data text NOT NULL,
  12. filetype varchar(255) NOT NULL
  13. );
  14. #
  15. # Indexes for table `admin_info_files`
  16. #
  17. CREATE INDEX {$db_prefix}admin_info_files_filename ON {$db_prefix}admin_info_files (filename);
  18. #
  19. # Dumping data for table `admin_info_files`
  20. #
  21. BEGIN TRANSACTION;
  22. INSERT INTO {$db_prefix}admin_info_files (id_file, filename, path, parameters, data, filetype) VALUES (1, 'current-version.js', '/smf/', 'version=%3$s', '', 'text/javascript');
  23. INSERT INTO {$db_prefix}admin_info_files (id_file, filename, path, parameters, data, filetype) VALUES (2, 'detailed-version.js', '/smf/', 'language=%1$s&version=%3$s', '', 'text/javascript');
  24. INSERT INTO {$db_prefix}admin_info_files (id_file, filename, path, parameters, data, filetype) VALUES (3, 'latest-news.js', '/smf/', 'language=%1$s&format=%2$s', '', 'text/javascript');
  25. INSERT INTO {$db_prefix}admin_info_files (id_file, filename, path, parameters, data, filetype) VALUES (4, 'latest-smileys.js', '/smf/', 'language=%1$s&version=%3$s', '', 'text/javascript');
  26. COMMIT;
  27. # --------------------------------------------------------
  28. #
  29. # Table structure for table `approval_queue`
  30. #
  31. CREATE TABLE {$db_prefix}approval_queue (
  32. id_msg int NOT NULL default '0',
  33. id_attach int NOT NULL default '0',
  34. id_event smallint NOT NULL default '0'
  35. );
  36. #
  37. # Table structure for table `attachments`
  38. #
  39. CREATE TABLE {$db_prefix}attachments (
  40. id_attach integer primary key,
  41. id_thumb int NOT NULL default '0',
  42. id_msg int NOT NULL default '0',
  43. id_member int NOT NULL default '0',
  44. id_folder smallint NOT NULL default '1',
  45. attachment_type smallint NOT NULL default '0',
  46. filename varchar(255) NOT NULL,
  47. file_hash varchar(40) NOT NULL default '',
  48. fileext varchar(8) NOT NULL default '',
  49. size int NOT NULL default '0',
  50. downloads int NOT NULL default '0',
  51. width int NOT NULL default '0',
  52. height int NOT NULL default '0',
  53. mime_type varchar(20) NOT NULL default '',
  54. approved smallint NOT NULL default '1'
  55. );
  56. #
  57. # Indexes for table `attachments`
  58. #
  59. CREATE UNIQUE INDEX {$db_prefix}attachments_id_member ON {$db_prefix}attachments (id_member, id_attach);
  60. CREATE INDEX {$db_prefix}attachments_id_msg ON {$db_prefix}attachments (id_msg);
  61. CREATE INDEX {$db_prefix}attachments_attachment_type ON {$db_prefix}attachments (attachment_type);
  62. #
  63. # Table structure for table `background_tasks`
  64. #
  65. CREATE TABLE {$db_prefix}background_tasks (
  66. id_task integer primary key,
  67. task_file varchar(255) NOT NULL default '',
  68. task_class varchar(255) NOT NULL default '',
  69. task_data text NOT NULL,
  70. claimed_time int NOT NULL default '0',
  71. PRIMARY KEY (id_task)
  72. );
  73. #
  74. # Table structure for table `ban_groups`
  75. #
  76. CREATE TABLE {$db_prefix}ban_groups (
  77. id_ban_group integer primary key,
  78. name varchar(20) NOT NULL default '',
  79. ban_time int NOT NULL default '0',
  80. expire_time int,
  81. cannot_access smallint NOT NULL default '0',
  82. cannot_register smallint NOT NULL default '0',
  83. cannot_post smallint NOT NULL default '0',
  84. cannot_login smallint NOT NULL default '0',
  85. reason varchar(255) NOT NULL,
  86. notes text NOT NULL
  87. );
  88. #
  89. # Table structure for table `ban_items`
  90. #
  91. CREATE TABLE {$db_prefix}ban_items (
  92. id_ban integer primary key,
  93. id_ban_group smallint NOT NULL default '0',
  94. ip_low1 smallint NOT NULL default '0',
  95. ip_high1 smallint NOT NULL default '0',
  96. ip_low2 smallint NOT NULL default '0',
  97. ip_high2 smallint NOT NULL default '0',
  98. ip_low3 smallint NOT NULL default '0',
  99. ip_high3 smallint NOT NULL default '0',
  100. ip_low4 smallint NOT NULL default '0',
  101. ip_high4 smallint NOT NULL default '0',
  102. ip_low5 smallint NOT NULL default '0',
  103. ip_high5 smallint NOT NULL default '0',
  104. ip_low6 smallint NOT NULL default '0',
  105. ip_high6 smallint NOT NULL default '0',
  106. ip_low7 smallint NOT NULL default '0',
  107. ip_high7 smallint NOT NULL default '0',
  108. ip_low8 smallint NOT NULL default '0',
  109. ip_high8 smallint NOT NULL default '0',
  110. hostname varchar(255) NOT NULL,
  111. email_address varchar(255) NOT NULL,
  112. id_member int NOT NULL default '0',
  113. hits int NOT NULL default '0'
  114. );
  115. #
  116. # Indexes for table `ban_items`
  117. #
  118. CREATE INDEX {$db_prefix}ban_items_id_ban_group ON {$db_prefix}ban_items (id_ban_group);
  119. #
  120. # Table structure for table `board_permissions`
  121. #
  122. CREATE TABLE {$db_prefix}board_permissions (
  123. id_group smallint NOT NULL default '0',
  124. id_profile smallint NOT NULL default '0',
  125. permission varchar(30) NOT NULL default '',
  126. add_deny smallint NOT NULL default '1',
  127. PRIMARY KEY (id_group, id_profile, permission)
  128. );
  129. #
  130. # Dumping data for table `board_permissions`
  131. #
  132. BEGIN TRANSACTION;
  133. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (-1, 1, 'poll_view');
  134. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'remove_own');
  135. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'lock_own');
  136. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'modify_own');
  137. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'poll_add_own');
  138. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'poll_edit_own');
  139. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'poll_lock_own');
  140. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'poll_post');
  141. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'poll_view');
  142. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'poll_vote');
  143. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'post_attachment');
  144. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'post_new');
  145. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'post_draft');
  146. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'post_autosave_draft');
  147. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'post_reply_any');
  148. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'post_reply_own');
  149. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'post_unapproved_topics');
  150. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'post_unapproved_replies_any');
  151. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'post_unapproved_replies_own');
  152. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'post_unapproved_attachments');
  153. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'delete_own');
  154. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'report_any');
  155. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'send_topic');
  156. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 1, 'view_attachments');
  157. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'moderate_board');
  158. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'post_new');
  159. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'post_draft');
  160. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'post_autosave_draft');
  161. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'post_reply_own');
  162. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'post_reply_any');
  163. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'post_unapproved_topics');
  164. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'post_unapproved_replies_any');
  165. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'post_unapproved_replies_own');
  166. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'post_unapproved_attachments');
  167. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'poll_post');
  168. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'poll_add_any');
  169. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'poll_remove_any');
  170. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'poll_view');
  171. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'poll_vote');
  172. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'poll_lock_any');
  173. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'poll_edit_any');
  174. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'report_any');
  175. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'lock_own');
  176. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'send_topic');
  177. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'delete_own');
  178. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'modify_own');
  179. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'make_sticky');
  180. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'lock_any');
  181. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'remove_any');
  182. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'move_any');
  183. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'merge_any');
  184. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'split_any');
  185. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'delete_any');
  186. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'modify_any');
  187. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'approve_posts');
  188. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'post_attachment');
  189. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 1, 'view_attachments');
  190. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'moderate_board');
  191. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'post_new');
  192. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'post_draft');
  193. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'post_autosave_draft');
  194. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'post_reply_own');
  195. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'post_reply_any');
  196. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'post_unapproved_topics');
  197. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'post_unapproved_replies_any');
  198. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'post_unapproved_replies_own');
  199. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'post_unapproved_attachments');
  200. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'poll_post');
  201. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'poll_add_any');
  202. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'poll_remove_any');
  203. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'poll_view');
  204. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'poll_vote');
  205. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'poll_lock_any');
  206. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'poll_edit_any');
  207. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'report_any');
  208. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'lock_own');
  209. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'send_topic');
  210. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'delete_own');
  211. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'modify_own');
  212. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'make_sticky');
  213. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'lock_any');
  214. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'remove_any');
  215. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'move_any');
  216. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'merge_any');
  217. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'split_any');
  218. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'delete_any');
  219. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'modify_any');
  220. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'approve_posts');
  221. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'post_attachment');
  222. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 1, 'view_attachments');
  223. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (-1, 2, 'poll_view');
  224. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'remove_own');
  225. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'lock_own');
  226. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'modify_own');
  227. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'poll_view');
  228. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'poll_vote');
  229. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'post_attachment');
  230. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'post_new');
  231. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'post_draft');
  232. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'post_autosave_draft');
  233. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'post_reply_any');
  234. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'post_reply_own');
  235. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'post_unapproved_topics');
  236. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'post_unapproved_replies_any');
  237. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'post_unapproved_replies_own');
  238. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'post_unapproved_attachments');
  239. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'delete_own');
  240. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'report_any');
  241. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'send_topic');
  242. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 2, 'view_attachments');
  243. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'moderate_board');
  244. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'post_new');
  245. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'post_draft');
  246. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'post_autosave_draft');
  247. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'post_reply_own');
  248. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'post_reply_any');
  249. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'post_unapproved_topics');
  250. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'post_unapproved_replies_any');
  251. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'post_unapproved_replies_own');
  252. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'post_unapproved_attachments');
  253. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'poll_post');
  254. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'poll_add_any');
  255. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'poll_remove_any');
  256. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'poll_view');
  257. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'poll_vote');
  258. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'poll_lock_any');
  259. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'poll_edit_any');
  260. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'report_any');
  261. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'lock_own');
  262. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'send_topic');
  263. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'delete_own');
  264. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'modify_own');
  265. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'make_sticky');
  266. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'lock_any');
  267. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'remove_any');
  268. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'move_any');
  269. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'merge_any');
  270. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'split_any');
  271. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'delete_any');
  272. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'modify_any');
  273. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'approve_posts');
  274. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'post_attachment');
  275. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 2, 'view_attachments');
  276. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'moderate_board');
  277. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'post_new');
  278. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'post_draft');
  279. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'post_autosave_draft');
  280. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'post_reply_own');
  281. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'post_reply_any');
  282. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'post_unapproved_topics');
  283. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'post_unapproved_replies_any');
  284. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'post_unapproved_replies_own');
  285. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'post_unapproved_attachments');
  286. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'poll_post');
  287. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'poll_add_any');
  288. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'poll_remove_any');
  289. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'poll_view');
  290. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'poll_vote');
  291. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'poll_lock_any');
  292. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'poll_edit_any');
  293. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'report_any');
  294. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'lock_own');
  295. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'send_topic');
  296. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'delete_own');
  297. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'modify_own');
  298. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'make_sticky');
  299. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'lock_any');
  300. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'remove_any');
  301. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'move_any');
  302. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'merge_any');
  303. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'split_any');
  304. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'delete_any');
  305. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'modify_any');
  306. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'approve_posts');
  307. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'post_attachment');
  308. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 2, 'view_attachments');
  309. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (-1, 3, 'poll_view');
  310. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'remove_own');
  311. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'lock_own');
  312. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'modify_own');
  313. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'poll_view');
  314. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'poll_vote');
  315. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'post_attachment');
  316. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'post_reply_any');
  317. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'post_reply_own');
  318. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'post_unapproved_replies_any');
  319. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'post_unapproved_replies_own');
  320. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'post_unapproved_attachments');
  321. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'delete_own');
  322. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'report_any');
  323. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'send_topic');
  324. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 3, 'view_attachments');
  325. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'moderate_board');
  326. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'post_new');
  327. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'post_draft');
  328. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'post_autosave_draft');
  329. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'post_reply_own');
  330. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'post_reply_any');
  331. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'post_unapproved_topics');
  332. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'post_unapproved_replies_any');
  333. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'post_unapproved_replies_own');
  334. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'post_unapproved_attachments');
  335. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'poll_post');
  336. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'poll_add_any');
  337. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'poll_remove_any');
  338. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'poll_view');
  339. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'poll_vote');
  340. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'poll_lock_any');
  341. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'poll_edit_any');
  342. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'report_any');
  343. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'lock_own');
  344. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'send_topic');
  345. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'delete_own');
  346. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'modify_own');
  347. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'make_sticky');
  348. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'lock_any');
  349. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'remove_any');
  350. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'move_any');
  351. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'merge_any');
  352. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'split_any');
  353. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'delete_any');
  354. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'modify_any');
  355. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'approve_posts');
  356. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'post_attachment');
  357. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 3, 'view_attachments');
  358. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'moderate_board');
  359. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'post_new');
  360. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'post_draft');
  361. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'post_autosave_draft');
  362. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'post_reply_own');
  363. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'post_reply_any');
  364. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'post_unapproved_topics');
  365. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'post_unapproved_replies_any');
  366. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'post_unapproved_replies_own');
  367. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'post_unapproved_attachments');
  368. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'poll_post');
  369. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'poll_add_any');
  370. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'poll_remove_any');
  371. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'poll_view');
  372. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'poll_vote');
  373. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'poll_lock_any');
  374. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'poll_edit_any');
  375. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'report_any');
  376. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'lock_own');
  377. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'send_topic');
  378. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'delete_own');
  379. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'modify_own');
  380. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'make_sticky');
  381. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'lock_any');
  382. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'remove_any');
  383. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'move_any');
  384. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'merge_any');
  385. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'split_any');
  386. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'delete_any');
  387. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'modify_any');
  388. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'approve_posts');
  389. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'post_attachment');
  390. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 3, 'view_attachments');
  391. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (-1, 4, 'poll_view');
  392. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 4, 'poll_view');
  393. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 4, 'poll_vote');
  394. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 4, 'report_any');
  395. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 4, 'send_topic');
  396. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (0, 4, 'view_attachments');
  397. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'moderate_board');
  398. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'post_new');
  399. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'post_draft');
  400. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'post_autosave_draft');
  401. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'post_reply_own');
  402. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'post_reply_any');
  403. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'post_unapproved_topics');
  404. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'post_unapproved_replies_any');
  405. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'post_unapproved_replies_own');
  406. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'post_unapproved_attachments');
  407. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'poll_post');
  408. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'poll_add_any');
  409. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'poll_remove_any');
  410. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'poll_view');
  411. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'poll_vote');
  412. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'poll_lock_any');
  413. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'poll_edit_any');
  414. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'report_any');
  415. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'lock_own');
  416. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'send_topic');
  417. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'delete_own');
  418. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'modify_own');
  419. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'make_sticky');
  420. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'lock_any');
  421. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'remove_any');
  422. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'move_any');
  423. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'merge_any');
  424. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'split_any');
  425. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'delete_any');
  426. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'modify_any');
  427. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'approve_posts');
  428. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'post_attachment');
  429. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (2, 4, 'view_attachments');
  430. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'moderate_board');
  431. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'post_new');
  432. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'post_draft');
  433. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'post_autosave_draft');
  434. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'post_reply_own');
  435. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'post_reply_any');
  436. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'post_unapproved_topics');
  437. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'post_unapproved_replies_any');
  438. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'post_unapproved_replies_own');
  439. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'post_unapproved_attachments');
  440. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'poll_post');
  441. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'poll_add_any');
  442. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'poll_remove_any');
  443. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'poll_view');
  444. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'poll_vote');
  445. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'poll_lock_any');
  446. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'poll_edit_any');
  447. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'report_any');
  448. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'lock_own');
  449. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'send_topic');
  450. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'delete_own');
  451. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'modify_own');
  452. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'make_sticky');
  453. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'lock_any');
  454. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'remove_any');
  455. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'move_any');
  456. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'merge_any');
  457. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'split_any');
  458. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'delete_any');
  459. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'modify_any');
  460. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'approve_posts');
  461. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'post_attachment');
  462. INSERT INTO {$db_prefix}board_permissions (id_group, id_profile, permission) VALUES (3, 4, 'view_attachments');
  463. COMMIT;
  464. # --------------------------------------------------------
  465. #
  466. # Table structure for table `boards`
  467. #
  468. CREATE TABLE {$db_prefix}boards (
  469. id_board integer primary key,
  470. id_cat smallint NOT NULL default '0',
  471. child_level smallint NOT NULL default '0',
  472. id_parent smallint NOT NULL default '0',
  473. board_order smallint NOT NULL default '0',
  474. id_last_msg int NOT NULL default '0',
  475. id_msg_updated int NOT NULL default '0',
  476. member_groups varchar(255) NOT NULL default '-1,0',
  477. id_profile smallint NOT NULL default '1',
  478. name varchar(255) NOT NULL,
  479. description text NOT NULL,
  480. num_topics int NOT NULL default '0',
  481. num_posts int NOT NULL default '0',
  482. count_posts smallint NOT NULL default '0',
  483. id_theme smallint NOT NULL default '0',
  484. override_theme smallint NOT NULL default '0',
  485. unapproved_posts smallint NOT NULL default '0',
  486. unapproved_topics smallint NOT NULL default '0',
  487. redirect varchar(255) NOT NULL default '',
  488. deny_member_groups varchar(255) NOT NULL default ''
  489. );
  490. #
  491. # Indexes for table `boards`
  492. #
  493. CREATE UNIQUE INDEX {$db_prefix}boards_categories ON {$db_prefix}boards (id_cat, id_board);
  494. CREATE INDEX {$db_prefix}boards_id_parent ON {$db_prefix}boards (id_parent);
  495. CREATE INDEX {$db_prefix}boards_id_msg_updated ON {$db_prefix}boards (id_msg_updated);
  496. CREATE INDEX {$db_prefix}boards_member_groups ON {$db_prefix}boards (member_groups);
  497. #
  498. # Dumping data for table `boards`
  499. #
  500. INSERT INTO {$db_prefix}boards
  501. (id_board, id_cat, board_order, id_last_msg, id_msg_updated, name, description, num_topics, num_posts, member_groups)
  502. VALUES (1, 1, 1, 1, 1, '{$default_board_name}', '{$default_board_description}', 1, 1, '-1,0,2');
  503. # --------------------------------------------------------
  504. #
  505. # Table structure for table `calendar`
  506. #
  507. CREATE TABLE {$db_prefix}calendar (
  508. id_event integer primary key,
  509. start_date date NOT NULL default '0001-01-01',
  510. end_date date NOT NULL default '0001-01-01',
  511. id_board smallint NOT NULL default '0',
  512. id_topic int NOT NULL default '0',
  513. title varchar(255) NOT NULL default '',
  514. id_member int NOT NULL default '0'
  515. );
  516. #
  517. # Indexes for table `calendar`
  518. #
  519. CREATE INDEX {$db_prefix}calendar_start_date ON {$db_prefix}calendar (start_date);
  520. CREATE INDEX {$db_prefix}calendar_end_date ON {$db_prefix}calendar (end_date);
  521. CREATE INDEX {$db_prefix}calendar_topic ON {$db_prefix}calendar (id_topic, id_member);
  522. #
  523. # Table structure for table `calendar_holidays`
  524. #
  525. CREATE TABLE {$db_prefix}calendar_holidays (
  526. id_holiday integer primary key,
  527. event_date date NOT NULL default '0001-01-01',
  528. title varchar(255) NOT NULL default ''
  529. );
  530. #
  531. # Indexes for table `calendar_holidays`
  532. #
  533. CREATE INDEX {$db_prefix}calendar_holidays_event_date ON {$db_prefix}calendar_holidays (event_date);
  534. #
  535. # Dumping data for table `calendar_holidays`
  536. #
  537. BEGIN TRANSACTION;
  538. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('New Year''s', '0004-01-01');
  539. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Christmas', '0004-12-25');
  540. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Valentine''s Day', '0004-02-14');
  541. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('St. Patrick''s Day', '0004-03-17');
  542. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('April Fools', '0004-04-01');
  543. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Earth Day', '0004-04-22');
  544. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('United Nations Day', '0004-10-24');
  545. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Halloween', '0004-10-31');
  546. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Mother''s Day', '2010-05-09');
  547. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Mother''s Day', '2011-05-08');
  548. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Mother''s Day', '2012-05-13');
  549. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Mother''s Day', '2013-05-12');
  550. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Mother''s Day', '2014-05-11');
  551. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Mother''s Day', '2015-05-10');
  552. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Mother''s Day', '2016-05-08');
  553. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Mother''s Day', '2017-05-14');
  554. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Mother''s Day', '2018-05-13');
  555. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Mother''s Day', '2019-05-12');
  556. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Mother''s Day', '2020-05-10');
  557. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Father''s Day', '2010-06-20');
  558. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Father''s Day', '2011-06-19');
  559. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Father''s Day', '2012-06-17');
  560. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Father''s Day', '2013-06-16');
  561. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Father''s Day', '2014-06-15');
  562. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Father''s Day', '2015-06-21');
  563. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Father''s Day', '2016-06-19');
  564. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Father''s Day', '2017-06-18');
  565. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Father''s Day', '2018-06-17');
  566. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Father''s Day', '2019-06-16');
  567. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Father''s Day', '2020-06-21');
  568. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Summer Solstice', '2010-06-21');
  569. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Summer Solstice', '2011-06-21');
  570. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Summer Solstice', '2012-06-20');
  571. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Summer Solstice', '2013-06-21');
  572. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Summer Solstice', '2014-06-21');
  573. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Summer Solstice', '2015-06-21');
  574. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Summer Solstice', '2016-06-20');
  575. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Summer Solstice', '2017-06-20');
  576. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Summer Solstice', '2018-06-21');
  577. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Summer Solstice', '2019-06-21');
  578. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Summer Solstice', '2020-06-20');
  579. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Vernal Equinox', '2010-03-20');
  580. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Vernal Equinox', '2011-03-20');
  581. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Vernal Equinox', '2012-03-20');
  582. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Vernal Equinox', '2013-03-20');
  583. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Vernal Equinox', '2014-03-20');
  584. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Vernal Equinox', '2015-03-20');
  585. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Vernal Equinox', '2016-03-19');
  586. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Vernal Equinox', '2017-03-20');
  587. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Vernal Equinox', '2018-03-20');
  588. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Vernal Equinox', '2019-03-20');
  589. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Vernal Equinox', '2020-03-19');
  590. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Winter Solstice', '2010-12-21');
  591. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Winter Solstice', '2011-12-22');
  592. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Winter Solstice', '2012-12-21');
  593. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Winter Solstice', '2013-12-21');
  594. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Winter Solstice', '2014-12-21');
  595. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Winter Solstice', '2015-12-21');
  596. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Winter Solstice', '2016-12-21');
  597. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Winter Solstice', '2017-12-21');
  598. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Winter Solstice', '2018-12-21');
  599. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Winter Solstice', '2019-12-21');
  600. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Winter Solstice', '2020-12-21');
  601. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Autumnal Equinox', '2010-09-22');
  602. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Autumnal Equinox', '2011-09-23');
  603. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Autumnal Equinox', '2012-09-22');
  604. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Autumnal Equinox', '2013-09-22');
  605. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Autumnal Equinox', '2014-09-22');
  606. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Autumnal Equinox', '2015-09-23');
  607. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Autumnal Equinox', '2016-09-22');
  608. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Autumnal Equinox', '2017-09-22');
  609. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Autumnal Equinox', '2018-09-22');
  610. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Autumnal Equinox', '2019-09-23');
  611. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Autumnal Equinox', '2020-09-22');
  612. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Independence Day', '0004-07-04');
  613. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Cinco de Mayo', '0004-05-05');
  614. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Flag Day', '0004-06-14');
  615. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Veterans Day', '0004-11-11');
  616. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Groundhog Day', '0004-02-02');
  617. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Thanksgiving', '2010-11-25');
  618. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Thanksgiving', '2011-11-24');
  619. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Thanksgiving', '2012-11-22');
  620. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Thanksgiving', '2013-11-28');
  621. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Thanksgiving', '2014-11-27');
  622. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Thanksgiving', '2015-11-26');
  623. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Thanksgiving', '2016-11-24');
  624. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Thanksgiving', '2017-11-23');
  625. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Thanksgiving', '2018-11-22');
  626. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Thanksgiving', '2019-11-28');
  627. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Thanksgiving', '2020-11-26');
  628. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Memorial Day', '2010-05-31');
  629. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Memorial Day', '2011-05-30');
  630. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Memorial Day', '2012-05-28');
  631. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Memorial Day', '2013-05-27');
  632. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Memorial Day', '2014-05-26');
  633. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Memorial Day', '2015-05-25');
  634. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Memorial Day', '2016-05-30');
  635. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Memorial Day', '2017-05-29');
  636. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Memorial Day', '2018-05-28');
  637. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Memorial Day', '2019-05-27');
  638. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Memorial Day', '2020-05-25');
  639. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Labor Day', '2010-09-06');
  640. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Labor Day', '2011-09-05');
  641. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Labor Day', '2012-09-03');
  642. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Labor Day', '2013-09-02');
  643. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Labor Day', '2014-09-01');
  644. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Labor Day', '2015-09-07');
  645. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Labor Day', '2016-09-05');
  646. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Labor Day', '2017-09-04');
  647. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Labor Day', '2018-09-03');
  648. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Labor Day', '2019-09-02');
  649. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('Labor Day', '2020-09-07');
  650. INSERT INTO {$db_prefix}calendar_holidays (title, event_date) VALUES ('D-Day', '0004-06-06');
  651. COMMIT;
  652. # --------------------------------------------------------
  653. #
  654. # Table structure for table `categories`
  655. #
  656. CREATE TABLE {$db_prefix}categories (
  657. id_cat integer primary key,
  658. cat_order smallint NOT NULL default '0',
  659. name varchar(255) NOT NULL,
  660. description text NOT NULL,
  661. can_collapse smallint NOT NULL default '1'
  662. );
  663. #
  664. # Dumping data for table `categories`
  665. #
  666. INSERT INTO {$db_prefix}categories
  667. VALUES (1, 0, '{$default_category_name}', 1);
  668. # --------------------------------------------------------
  669. #
  670. # Table structure for table `collapsed_categories`
  671. #
  672. CREATE TABLE {$db_prefix}collapsed_categories (
  673. id_cat smallint NOT NULL default '0',
  674. id_member int NOT NULL default '0',
  675. PRIMARY KEY (id_cat, id_member)
  676. );
  677. #
  678. # Table structure for table `custom_fields`
  679. #
  680. CREATE TABLE {$db_prefix}custom_fields (
  681. id_field integer primary key,
  682. col_name varchar(12) NOT NULL default '',
  683. field_name varchar(40) NOT NULL default '',
  684. field_desc varchar(255) NOT NULL,
  685. field_type varchar(8) NOT NULL default 'text',
  686. field_length smallint NOT NULL default '255',
  687. field_options text NOT NULL,
  688. mask varchar(255) NOT NULL,
  689. show_reg smallint NOT NULL default '0',
  690. show_display smallint NOT NULL default '0',
  691. show_profile varchar(20) NOT NULL default 'forumprofile',
  692. private smallint NOT NULL default '0',
  693. active smallint NOT NULL default '1',
  694. bbc smallint NOT NULL default '0',
  695. can_search smallint NOT NULL default '0',
  696. default_value varchar(255) NOT NULL,
  697. enclose text NOT NULL,
  698. placement smallint NOT NULL default '0'
  699. );
  700. #
  701. # Indexes for table `custom_fields`
  702. #
  703. CREATE UNIQUE INDEX {$db_prefix}custom_fields_col_name ON {$db_prefix}custom_fields (col_name);
  704. #
  705. # Table structure for table `group_moderators`
  706. #
  707. CREATE TABLE {$db_prefix}group_moderators (
  708. id_group smallint NOT NULL default '0',
  709. id_member int NOT NULL default '0',
  710. PRIMARY KEY (id_group, id_member)
  711. );
  712. #
  713. # Table structure for table `log_actions`
  714. #
  715. CREATE TABLE {$db_prefix}log_actions (
  716. id_action integer primary key,
  717. id_log smallint NOT NULL default '1',
  718. log_time int NOT NULL default '0',
  719. id_member int NOT NULL default '0',
  720. ip char(16) NOT NULL default ' ',
  721. action varchar(30) NOT NULL default '',
  722. id_board smallint NOT NULL default '0',
  723. id_topic int NOT NULL default '0',
  724. id_msg int NOT NULL default '0',
  725. extra text NOT NULL
  726. );
  727. #
  728. # Indexes for table `log_actions`
  729. #
  730. CREATE INDEX {$db_prefix}log_actions_log_time ON {$db_prefix}log_actions (log_time);
  731. CREATE INDEX {$db_prefix}log_actions_id_member ON {$db_prefix}log_actions (id_member);
  732. CREATE INDEX {$db_prefix}log_actions_id_board ON {$db_prefix}log_actions (id_board);
  733. CREATE INDEX {$db_prefix}log_actions_id_msg ON {$db_prefix}log_actions (id_msg);
  734. CREATE INDEX {$db_prefix}log_actions_id_log ON {$db_prefix}log_actions (id_log);
  735. #
  736. # Table structure for table `log_activity`
  737. #
  738. CREATE TABLE {$db_prefix}log_activity (
  739. date date NOT NULL default '0001-01-01',
  740. hits int NOT NULL default '0',
  741. topics smallint NOT NULL default '0',
  742. posts smallint NOT NULL default '0',
  743. registers smallint NOT NULL default '0',
  744. most_on smallint NOT NULL default '0',
  745. PRIMARY KEY (date)
  746. );
  747. #
  748. # Table structure for table `log_banned`
  749. #
  750. CREATE TABLE {$db_prefix}log_banned (
  751. id_ban_log integer primary key,
  752. id_member int NOT NULL default '0',
  753. ip char(16) NOT NULL default ' ',
  754. email varchar(255) NOT NULL,
  755. log_time int NOT NULL default '0'
  756. );
  757. #
  758. # Indexes for table `log_banned`
  759. #
  760. CREATE INDEX {$db_prefix}log_banned_log_time ON {$db_prefix}log_banned (log_time);
  761. #
  762. # Table structure for table `log_boards`
  763. #
  764. CREATE TABLE {$db_prefix}log_boards (
  765. id_member int NOT NULL default '0',
  766. id_board smallint NOT NULL default '0',
  767. id_msg int NOT NULL default '0',
  768. PRIMARY KEY (id_member, id_board)
  769. );
  770. #
  771. # Table structure for table `log_comments`
  772. #
  773. CREATE TABLE {$db_prefix}log_comments (
  774. id_comment integer primary key,
  775. id_member int NOT NULL default '0',
  776. member_name varchar(80) NOT NULL default '',
  777. comment_type varchar(8) NOT NULL default 'warning',
  778. id_recipient int NOT NULL default '0',
  779. recipient_name varchar(255) NOT NULL,
  780. log_time int NOT NULL default '0',
  781. id_notice int NOT NULL default '0',
  782. counter smallint NOT NULL default '0',
  783. body text NOT NULL
  784. );
  785. #
  786. # Indexes for table `log_comments`
  787. #
  788. CREATE INDEX {$db_prefix}log_comments_id_recipient ON {$db_prefix}log_comments (id_recipient);
  789. CREATE INDEX {$db_prefix}log_comments_log_time ON {$db_prefix}log_comments (log_time);
  790. CREATE INDEX {$db_prefix}log_comments_comment_type ON {$db_prefix}log_comments (comment_type);
  791. #
  792. # Table structure for table `log_digest`
  793. #
  794. CREATE TABLE {$db_prefix}log_digest (
  795. id_topic int NOT NULL,
  796. id_msg int NOT NULL,
  797. note_type varchar(10) NOT NULL default 'post',
  798. daily smallint NOT NULL default '0',
  799. exclude int NOT NULL default '0'
  800. );
  801. #
  802. # Table structure for table `log_errors`
  803. #
  804. CREATE TABLE {$db_prefix}log_errors (
  805. id_error integer primary key,
  806. log_time int NOT NULL default '0',
  807. id_member int NOT NULL default '0',
  808. ip char(16) NOT NULL default ' ',
  809. url text NOT NULL,
  810. message text NOT NULL,
  811. session char(64) NOT NULL default ' ',
  812. error_type char(15) NOT NULL default 'general',
  813. file varchar(255) NOT NULL,
  814. line int NOT NULL default '0'
  815. );
  816. #
  817. # Indexes for table `log_errors`
  818. #
  819. CREATE INDEX {$db_prefix}log_errors_log_time ON {$db_prefix}log_errors (log_time);
  820. CREATE INDEX {$db_prefix}log_errors_id_member ON {$db_prefix}log_errors (id_member);
  821. CREATE INDEX {$db_prefix}log_errors_ip ON {$db_prefix}log_errors (ip);
  822. #
  823. # Table structure for table `log_floodcontrol`
  824. #
  825. CREATE TABLE {$db_prefix}log_floodcontrol (
  826. ip char(16) NOT NULL default ' ',
  827. log_time int NOT NULL default '0',
  828. log_type varchar(8) NOT NULL default 'post',
  829. PRIMARY KEY (ip, log_type)
  830. );
  831. #
  832. # Table structure for table `log_group_requests`
  833. #
  834. CREATE TABLE {$db_prefix}log_group_requests (
  835. id_request integer primary key,
  836. id_member int NOT NULL default '0',
  837. id_group smallint NOT NULL default '0',
  838. time_applied int NOT NULL default '0',
  839. reason text NOT NULL
  840. );
  841. #
  842. # Indexes for table `log_group_requests`
  843. #
  844. CREATE UNIQUE INDEX {$db_prefix}log_group_requests_id_member ON {$db_prefix}log_group_requests (id_member, id_group);
  845. #
  846. # Table structure for table `log_karma`
  847. #
  848. CREATE TABLE {$db_prefix}log_karma (
  849. id_target int NOT NULL default '0',
  850. id_executor int NOT NULL default '0',
  851. log_time int NOT NULL default '0',
  852. action smallint NOT NULL default '0',
  853. PRIMARY KEY (id_target, id_executor)
  854. );
  855. #
  856. # Indexes for table `log_karma`
  857. #
  858. CREATE INDEX {$db_prefix}log_karma_log_time ON {$db_prefix}log_karma (log_time);
  859. #
  860. # Table structure for table `log_mark_read`
  861. #
  862. CREATE TABLE {$db_prefix}log_mark_read (
  863. id_member int NOT NULL default '0',
  864. id_board smallint NOT NULL default '0',
  865. id_msg int NOT NULL default '0',
  866. PRIMARY KEY (id_member, id_board)
  867. );
  868. #
  869. # Table structure for table `log_member_notices`
  870. #
  871. CREATE TABLE {$db_prefix}log_member_notices (
  872. id_notice integer primary key,
  873. subject varchar(255) NOT NULL,
  874. body text NOT NULL
  875. );
  876. #
  877. # Table structure for table `log_notify`
  878. #
  879. CREATE TABLE {$db_prefix}log_notify (
  880. id_member int NOT NULL default '0',
  881. id_topic int NOT NULL default '0',
  882. id_board smallint NOT NULL default '0',
  883. sent smallint NOT NULL default '0',
  884. PRIMARY KEY (id_member, id_topic, id_board)
  885. );
  886. #
  887. # Indexes for table `log_notify`
  888. #
  889. CREATE INDEX {$db_prefix}log_notify_id_topic ON {$db_prefix}log_notify (id_topic, id_member);
  890. #
  891. # Table structure for table `log_online`
  892. #
  893. CREATE TABLE {$db_prefix}log_online (
  894. session varchar(64) NOT NULL default '',
  895. log_time int(10) NOT NULL default '0',
  896. id_member int NOT NULL default '0',
  897. id_spider smallint NOT NULL default '0',
  898. ip int NOT NULL default '0',
  899. url text NOT NULL,
  900. PRIMARY KEY (session)
  901. );
  902. #
  903. # Indexes for table `log_online`
  904. #
  905. CREATE INDEX {$db_prefix}log_online_log_time ON {$db_prefix}log_online (log_time);
  906. CREATE INDEX {$db_prefix}log_online_id_member ON {$db_prefix}log_online (id_member);
  907. #
  908. # Table structure for table `log_packages`
  909. #
  910. CREATE TABLE {$db_prefix}log_packages (
  911. id_install integer primary key,
  912. filename varchar(255) NOT NULL,
  913. package_id varchar(255) NOT NULL,
  914. name varchar(255) NOT NULL,
  915. version varchar(255) NOT NULL,
  916. id_member_installed int NOT NULL default '0',
  917. member_installed varchar(255) NOT NULL,
  918. time_installed int NOT NULL default '0',
  919. id_member_removed int NOT NULL default '0',
  920. member_removed varchar(255) NOT NULL,
  921. time_removed int NOT NULL default '0',
  922. install_state smallint NOT NULL default '1',
  923. failed_steps text NOT NULL,
  924. db_changes text NOT NULL,
  925. credits varchar(255) NOT NULL,
  926. themes_installed varchar(255) NOT NULL
  927. );
  928. #
  929. # Indexes for table `log_packages`
  930. #
  931. CREATE INDEX {$db_prefix}log_packages_filename ON {$db_prefix}log_packages (filename);
  932. #
  933. # Table structure for table `log_polls`
  934. #
  935. CREATE TABLE {$db_prefix}log_polls (
  936. id_poll int NOT NULL default '0',
  937. id_member int NOT NULL default '0',
  938. id_choice smallint NOT NULL default '0'
  939. );
  940. #
  941. # Indexes for table `log_polls`
  942. #
  943. CREATE INDEX {$db_prefix}log_polls_id_poll ON {$db_prefix}log_polls (id_poll, id_member, id_choice);
  944. #
  945. # Table structure for table `log_reported`
  946. #
  947. CREATE TABLE {$db_prefix}log_reported (
  948. id_report integer primary key,
  949. id_msg int NOT NULL default '0',
  950. id_topic int NOT NULL default '0',
  951. id_board smallint NOT NULL default '0',
  952. id_member int NOT NULL default '0',
  953. membername varchar(255) NOT NULL,
  954. subject varchar(255) NOT NULL,
  955. body text NOT NULL,
  956. time_started int NOT NULL default '0',
  957. time_updated int NOT NULL default '0',
  958. num_reports int NOT NULL default '0',
  959. closed smallint NOT NULL default '0',
  960. ignore_all smallint NOT NULL default '0'
  961. );
  962. #
  963. # Indexes for table `log_reported`
  964. #
  965. CREATE INDEX {$db_prefix}log_reported_id_member ON {$db_prefix}log_reported (id_member);
  966. CREATE INDEX {$db_prefix}log_reported_id_topic ON {$db_prefix}log_reported (id_topic);
  967. CREATE INDEX {$db_prefix}log_reported_closed ON {$db_prefix}log_reported (closed);
  968. CREATE INDEX {$db_prefix}log_reported_time_started ON {$db_prefix}log_reported (time_started);
  969. CREATE INDEX {$db_prefix}log_reported_id_msg ON {$db_prefix}log_reported (id_msg);
  970. #
  971. # Table structure for table `log_reported_comments`
  972. #
  973. CREATE TABLE {$db_prefix}log_reported_comments (
  974. id_comment integer primary key,
  975. id_report int NOT NULL default '0',
  976. id_member int NOT NULL,
  977. membername varchar(255) NOT NULL,
  978. email_address varchar(255) NOT NULL,
  979. member_ip varchar(255) NOT NULL,
  980. comment varchar(255) NOT NULL,
  981. time_sent int NOT NULL
  982. );
  983. #
  984. # Indexes for table `log_reported_comments`
  985. #
  986. CREATE INDEX {$db_prefix}log_reported_comments_id_report ON {$db_prefix}log_reported_comments (id_report);
  987. CREATE INDEX {$db_prefix}log_reported_comments_id_member ON {$db_prefix}log_reported_comments (id_member);
  988. CREATE INDEX {$db_prefix}log_reported_comments_time_sent ON {$db_prefix}log_reported_comments (time_sent);
  989. #
  990. # Table structure for table `log_scheduled_tasks`
  991. #
  992. CREATE TABLE {$db_prefix}log_scheduled_tasks (
  993. id_log integer primary key,
  994. id_task smallint NOT NULL default '0',
  995. time_run int NOT NULL default '0',
  996. time_taken float NOT NULL default '0'
  997. );
  998. #
  999. # Table structure for table `log_search_messages`
  1000. #
  1001. CREATE TABLE {$db_prefix}log_search_messages (
  1002. id_search smallint NOT NULL default '0',
  1003. id_msg int NOT NULL default '0',
  1004. PRIMARY KEY (id_search, id_msg)
  1005. );
  1006. #
  1007. # Table structure for table `log_search_results`
  1008. #
  1009. CREATE TABLE {$db_prefix}log_search_results (
  1010. id_search smallint NOT NULL default '0',
  1011. id_topic int NOT NULL default '0',
  1012. id_msg int NOT NULL default '0',
  1013. relevance smallint NOT NULL default '0',
  1014. num_matches smallint NOT NULL default '0',
  1015. PRIMARY KEY (id_search, id_topic)
  1016. );
  1017. #
  1018. # Table structure for table `log_search_subjects`
  1019. #
  1020. CREATE TABLE {$db_prefix}log_search_subjects (
  1021. word varchar(20) NOT NULL default '',
  1022. id_topic int NOT NULL default '0',
  1023. PRIMARY KEY (word, id_topic)
  1024. );
  1025. #
  1026. # Indexes for table `log_search_subjects`
  1027. #
  1028. CREATE INDEX {$db_prefix}log_search_subjects_id_topic ON {$db_prefix}log_search_subjects (id_topic);
  1029. #
  1030. # Table structure for table `log_search_topics`
  1031. #
  1032. CREATE TABLE {$db_prefix}log_search_topics (
  1033. id_search smallint NOT NULL default '0',
  1034. id_topic int NOT NULL default '0',
  1035. PRIMARY KEY (id_search, id_topic)
  1036. );
  1037. #
  1038. # Table structure for table `log_spider_hits`
  1039. #
  1040. CREATE TABLE {$db_prefix}log_spider_hits (
  1041. id_hit integer primary key,
  1042. id_spider smallint NOT NULL default '0',
  1043. log_time int NOT NULL default '0',
  1044. url varchar(255) NOT NULL,
  1045. processed smallint NOT NULL default '0'
  1046. );
  1047. #
  1048. # Indexes for table `log_spider_hits`
  1049. #
  1050. CREATE INDEX {$db_prefix}log_spider_hits_id_spider ON {$db_prefix}log_spider_hits (id_spider);
  1051. CREATE INDEX {$db_prefix}log_spider_hits_log_time ON {$db_prefix}log_spider_hits (log_time);
  1052. CREATE INDEX {$db_prefix}log_spider_hits_processed ON {$db_prefix}log_spider_hits (processed);
  1053. #
  1054. # Table structure for table `log_spider_stats`
  1055. #
  1056. CREATE TABLE {$db_prefix}log_spider_stats (
  1057. id_spider smallint NOT NULL default '0',
  1058. page_hits smallint NOT NULL default '0',
  1059. last_seen int NOT NULL default '0',
  1060. stat_date date NOT NULL default '0001-01-01',
  1061. PRIMARY KEY (stat_date, id_spider)
  1062. );
  1063. #
  1064. # Table structure for table `log_subscribed`
  1065. #
  1066. CREATE TABLE {$db_prefix}log_subscribed (
  1067. id_sublog integer primary key,
  1068. id_subscribe smallint unsigned NOT NULL default '0',
  1069. id_member int NOT NULL default '0',
  1070. old_id_group int NOT NULL default '0',
  1071. start_time int NOT NULL default '0',
  1072. end_time int NOT NULL default '0',
  1073. status smallint NOT NULL default '0',
  1074. payments_pending smallint NOT NULL default '0',
  1075. pending_details text NOT NULL,
  1076. reminder_sent smallint NOT NULL default '0',
  1077. vendor_ref varchar(255) NOT NULL
  1078. );
  1079. #
  1080. # Indexes for table `log_subscribed`
  1081. #
  1082. CREATE INDEX {$db_prefix}log_subscribed_id_subscribe ON {$db_prefix}log_subscribed (id_subscribe, id_member);
  1083. CREATE INDEX {$db_prefix}log_subscribed_end_time ON {$db_prefix}log_subscribed (end_time);
  1084. CREATE INDEX {$db_prefix}log_subscribed_reminder_sent ON {$db_prefix}log_subscribed (reminder_sent);
  1085. CREATE INDEX {$db_prefix}log_subscribed_payments_pending ON {$db_prefix}log_subscribed (payments_pending);
  1086. CREATE INDEX {$db_prefix}log_subscribed_status ON {$db_prefix}log_subscribed (status);
  1087. CREATE INDEX {$db_prefix}log_subscribed_id_member ON {$db_prefix}log_subscribed (id_member);
  1088. #
  1089. # Table structure for table `log_topics`
  1090. #
  1091. CREATE TABLE {$db_prefix}log_topics (
  1092. id_member int NOT NULL default '0',
  1093. id_topic int NOT NULL default '0',
  1094. id_msg int NOT NULL default '0',
  1095. unwatched int NOT NULL default '0',
  1096. PRIMARY KEY (id_member, id_topic)
  1097. );
  1098. #
  1099. # Indexes for table `log_topics`
  1100. #
  1101. CREATE INDEX {$db_prefix}log_topics_id_topic ON {$db_prefix}log_topics (id_topic);
  1102. #
  1103. # Table structure for table `mail_queue`
  1104. #
  1105. CREATE TABLE {$db_prefix}mail_queue (
  1106. id_mail integer primary key,
  1107. time_sent int NOT NULL default '0',
  1108. recipient varchar(255) NOT NULL,
  1109. body text NOT NULL,
  1110. subject varchar(255) NOT NULL,
  1111. headers text NOT NULL,
  1112. send_html smallint NOT NULL default '0',
  1113. priority smallint NOT NULL default '1',
  1114. private smallint NOT NULL default '0'
  1115. );
  1116. #
  1117. # Indexes for table `mail_queue`
  1118. #
  1119. CREATE INDEX {$db_prefix}mail_queue_time_sent ON {$db_prefix}mail_queue (time_sent);
  1120. CREATE INDEX {$db_prefix}mail_queue_mail_priority ON {$db_prefix}mail_queue (priority, id_mail);
  1121. #
  1122. # Table structure for table `membergroups`
  1123. #
  1124. CREATE TABLE {$db_prefix}membergroups (
  1125. id_group integer primary key,
  1126. group_name varchar(80) NOT NULL default '',
  1127. description text NOT NULL,
  1128. online_color varchar(20) NOT NULL default '',
  1129. min_posts int NOT NULL default '-1',
  1130. max_messages smallint NOT NULL default '0',
  1131. icons varchar(255) NOT NULL,
  1132. group_type smallint NOT NULL default '0',
  1133. hidden smallint NOT NULL default '0',
  1134. id_parent smallint NOT NULL default '-2'
  1135. );
  1136. #
  1137. # Indexes for table `membergroups`
  1138. #
  1139. CREATE INDEX {$db_prefix}membergroups_min_posts ON {$db_prefix}membergroups (min_posts);
  1140. #
  1141. # Dumping data for table `membergroups`
  1142. #
  1143. BEGIN TRANSACTION;
  1144. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons, group_type) VALUES (1, '{$default_administrator_group}', '', '#FF0000', -1, '5#iconadmin.png', 1);
  1145. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (2, '{$default_global_moderator_group}', '', '#0000FF', -1, '5#icongmod.png');
  1146. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (3, '{$default_moderator_group}', '', '', -1, '5#iconmod.png');
  1147. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (4, '{$default_newbie_group}', '', '', 0, '1#icon.png');
  1148. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (5, '{$default_junior_group}', '', '', 50, '2#icon.png');
  1149. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (6, '{$default_full_group}', '', '', 100, '3#icon.png');
  1150. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (7, '{$default_senior_group}', '', '', 250, '4#icon.png');
  1151. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (8, '{$default_hero_group}', '', '', 500, '5#icon.png');
  1152. COMMIT;
  1153. # --------------------------------------------------------
  1154. #
  1155. # Table structure for table `members`
  1156. #
  1157. CREATE TABLE {$db_prefix}members (
  1158. id_member integer primary key,
  1159. member_name varchar(80) NOT NULL default '',
  1160. date_registered int NOT NULL default '0',
  1161. posts int NOT NULL default '0',
  1162. id_group smallint NOT NULL default '0',
  1163. lngfile varchar(255) NOT NULL,
  1164. last_login int NOT NULL default '0',
  1165. real_name varchar(255) NOT NULL,
  1166. instant_messages smallint NOT NULL default 0,
  1167. unread_messages smallint NOT NULL default 0,
  1168. new_pm smallint NOT NULL default '0',
  1169. alerts int NOT NULL default '0',
  1170. buddy_list text NOT NULL,
  1171. pm_ignore_list varchar(255) NOT NULL,
  1172. pm_prefs int NOT NULL default '0',
  1173. mod_prefs varchar(20) NOT NULL default '',
  1174. passwd varchar(64) NOT NULL default '',
  1175. openid_uri text NOT NULL,
  1176. email_address varchar(255) NOT NULL,
  1177. personal_text varchar(255) NOT NULL,
  1178. gender smallint NOT NULL default '0',
  1179. birthdate date NOT NULL default '0001-01-01',
  1180. website_title varchar(255) NOT NULL,
  1181. website_url varchar(255) NOT NULL,
  1182. location varchar(255) NOT NULL,
  1183. icq varchar(255) NOT NULL,
  1184. aim varchar(255) NOT NULL default '',
  1185. yim varchar(32) NOT NULL default '',
  1186. skype varchar(255) NOT NULL default '',
  1187. hide_email smallint NOT NULL default '0',
  1188. show_online smallint NOT NULL default '1',
  1189. time_format varchar(80) NOT NULL default '',
  1190. signature text NOT NULL,
  1191. time_offset float NOT NULL default '0',
  1192. avatar varchar(255) NOT NULL,
  1193. pm_email_notify smallint NOT NULL default '0',
  1194. karma_bad smallint NOT NULL default '0',
  1195. karma_good smallint NOT NULL default '0',
  1196. usertitle varchar(255) NOT NULL,
  1197. notify_announcements smallint NOT NULL default '1',
  1198. notify_regularity smallint NOT NULL default '1',
  1199. notify_send_body smallint NOT NULL default '0',
  1200. notify_types smallint NOT NULL default '2',
  1201. member_ip varchar(255) NOT NULL,
  1202. member_ip2 varchar(255) NOT NULL,
  1203. secret_question varchar(255) NOT NULL,
  1204. secret_answer varchar(64) NOT NULL default '',
  1205. id_theme smallint NOT NULL default '0',
  1206. is_activated smallint NOT NULL default '1',
  1207. validation_code varchar(10) NOT NULL default '',
  1208. id_msg_last_visit int NOT NULL default '0',
  1209. additional_groups varchar(255) NOT NULL,
  1210. smiley_set varchar(48) NOT NULL default '',
  1211. id_post_group smallint NOT NULL default '0',
  1212. total_time_logged_in int NOT NULL default '0',
  1213. password_salt varchar(255) NOT NULL default '',
  1214. ignore_boards text NOT NULL,
  1215. warning smallint NOT NULL default '0',
  1216. passwd_flood varchar(12) NOT NULL default '',
  1217. pm_receive_from smallint NOT NULL default '1'
  1218. );
  1219. #
  1220. # Indexes for table `members`
  1221. #
  1222. CREATE INDEX {$db_prefix}members_member_name ON {$db_prefix}members (member_name);
  1223. CREATE INDEX {$db_prefix}members_real_name ON {$db_prefix}members (real_name);
  1224. CREATE INDEX {$db_prefix}members_date_registered ON {$db_prefix}members (date_registered);
  1225. CREATE INDEX {$db_prefix}members_id_group ON {$db_prefix}members (id_group);
  1226. CREATE INDEX {$db_prefix}members_birthdate ON {$db_prefix}members (birthdate);
  1227. CREATE INDEX {$db_prefix}members_posts ON {$db_prefix}members (posts);
  1228. CREATE INDEX {$db_prefix}members_last_login ON {$db_prefix}members (last_login);
  1229. CREATE INDEX {$db_prefix}members_lngfile ON {$db_prefix}members (lngfile);
  1230. CREATE INDEX {$db_prefix}members_id_post_group ON {$db_prefix}members (id_post_group);
  1231. CREATE INDEX {$db_prefix}members_warning ON {$db_prefix}members (warning);
  1232. CREATE INDEX {$db_prefix}members_total_time_logged_in ON {$db_prefix}members (total_time_logged_in);
  1233. CREATE INDEX {$db_prefix}members_id_theme ON {$db_prefix}members (id_theme);
  1234. #
  1235. # Table structure for table `member_logins`
  1236. #
  1237. CREATE TABLE {$db_prefix}member_logins (
  1238. id_login integer primary key,
  1239. id_member int NOT NULL default '0',
  1240. time int(10) NOT NULL default '0',
  1241. ip varchar(255) NOT NULL default '0',
  1242. ip2 varchar(255) NOT NULL default '0'
  1243. );
  1244. #
  1245. # Indexes for table `member_logins`
  1246. #
  1247. CREATE INDEX {$db_prefix}member_logins_id_member ON {$db_prefix}member_logins (id_member);
  1248. CREATE INDEX {$db_prefix}member_logins_time ON {$db_prefix}member_logins (time);
  1249. #
  1250. # Table structure for table `message_icons`
  1251. #
  1252. CREATE TABLE {$db_prefix}message_icons (
  1253. id_icon integer primary key,
  1254. title varchar(80) NOT NULL default '',
  1255. filename varchar(80) NOT NULL default '',
  1256. id_board smallint NOT NULL default '0',
  1257. icon_order smallint NOT NULL default '0'
  1258. );
  1259. #
  1260. # Indexes for table `message_icons`
  1261. #
  1262. CREATE INDEX {$db_prefix}message_icons_id_board ON {$db_prefix}message_icons (id_board);
  1263. #
  1264. # Dumping data for table `message_icons`
  1265. #
  1266. # // !!! i18n
  1267. BEGIN TRANSACTION;
  1268. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('xx', 'Standard', '0');
  1269. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('thumbup', 'Thumb Up', '1');
  1270. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('thumbdown', 'Thumb Down', '2');
  1271. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('exclamation', 'Exclamation point', '3');
  1272. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('question', 'Question mark', '4');
  1273. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('lamp', 'Lamp', '5');
  1274. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('smiley', 'Smiley', '6');
  1275. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('angry', 'Angry', '7');
  1276. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('cheesy', 'Cheesy', '8');
  1277. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('grin', 'Grin', '9');
  1278. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('sad', 'Sad', '10');
  1279. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('wink', 'Wink', '11');
  1280. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('poll', 'Poll', '12');
  1281. COMMIT;
  1282. # --------------------------------------------------------
  1283. #
  1284. # Table structure for table `messages`
  1285. #
  1286. CREATE TABLE {$db_prefix}messages (
  1287. id_msg integer primary key,
  1288. id_topic int NOT NULL default '0',
  1289. id_board smallint NOT NULL default '0',
  1290. poster_time int NOT NULL default '0',
  1291. id_member int NOT NULL default '0',
  1292. id_msg_modified int NOT NULL default '0',
  1293. subject varchar(255) NOT NULL,
  1294. poster_name varchar(255) NOT NULL,
  1295. poster_email varchar(255) NOT NULL,
  1296. poster_ip varchar(255) NOT NULL,
  1297. smileys_enabled smallint NOT NULL default '1',
  1298. modified_time int NOT NULL default '0',
  1299. modified_name varchar(255) NOT NULL,
  1300. modified_reason varchar(255) NOT NULL,
  1301. body text NOT NULL,
  1302. icon varchar(16) NOT NULL default 'xx',
  1303. approved smallint NOT NULL default '1',
  1304. likes smallint NOT NULL default '0'
  1305. );
  1306. #
  1307. # Indexes for table `messages`
  1308. #
  1309. CREATE UNIQUE INDEX {$db_prefix}messages_topic ON {$db_prefix}messages (id_topic, id_msg);
  1310. CREATE UNIQUE INDEX {$db_prefix}messages_id_board ON {$db_prefix}messages (id_board, id_msg);
  1311. CREATE UNIQUE INDEX {$db_prefix}messages_id_member ON {$db_prefix}messages (id_member, id_msg);
  1312. CREATE INDEX {$db_prefix}messages_approved ON {$db_prefix}messages (approved);
  1313. CREATE INDEX {$db_prefix}messages_ip_index ON {$db_prefix}messages (poster_ip, id_topic);
  1314. CREATE INDEX {$db_prefix}messages_participation ON {$db_prefix}messages (id_member, id_topic);
  1315. CREATE INDEX {$db_prefix}messages_show_posts ON {$db_prefix}messages (id_member, id_board);
  1316. CREATE INDEX {$db_prefix}messages_id_topic ON {$db_prefix}messages (id_topic);
  1317. CREATE INDEX {$db_prefix}messages_id_member_msg ON {$db_prefix}messages (id_member, approved, id_msg);
  1318. CREATE INDEX {$db_prefix}messages_current_topic ON {$db_prefix}messages (id_topic, id_msg, id_member, approved);
  1319. CREATE INDEX {$db_prefix}messages_related_ip ON {$db_prefix}messages (id_member, poster_ip, id_msg);
  1320. #
  1321. # Dumping data for table `messages`
  1322. #
  1323. INSERT INTO {$db_prefix}messages
  1324. (id_msg, id_msg_modified, id_topic, id_board, poster_time, subject, poster_name, poster_email, poster_ip, modified_name, body, icon)
  1325. VALUES (1, 1, 1, 1, {$current_time}, '{$default_topic_subject}', 'Simple Machines', '[email protected]', '127.0.0.1', '', '{$default_topic_message}', 'xx');
  1326. # --------------------------------------------------------
  1327. #
  1328. # Table structure for table `moderators`
  1329. #
  1330. CREATE TABLE {$db_prefix}moderators (
  1331. id_board smallint NOT NULL default '0',
  1332. id_member int NOT NULL default '0',
  1333. PRIMARY KEY (id_board, id_member)
  1334. );
  1335. #
  1336. # Table structure for table `moderator_groups`
  1337. #
  1338. CREATE TABLE {$db_prefix}moderator_groups (
  1339. id_board smallint NOT NULL default '0',
  1340. id_group smallint NOT NULL default '0',
  1341. PRIMARY KEY (id_board, id_group)
  1342. );
  1343. #
  1344. # Table structure for table `openid_assoc`
  1345. #
  1346. CREATE TABLE {$db_prefix}openid_assoc (
  1347. server_url text NOT NULL,
  1348. handle varchar(255) NOT NULL,
  1349. secret text NOT NULL,
  1350. issued int NOT NULL default '0',
  1351. expires int NOT NULL default '0',
  1352. assoc_type varchar(64) NOT NULL,
  1353. PRIMARY KEY (server_url, handle)
  1354. );
  1355. #
  1356. # Indexes for table `openid_assoc`
  1357. #
  1358. CREATE INDEX {$db_prefix}openid_assoc_expires ON {$db_prefix}openid_assoc (expires);
  1359. #
  1360. # Table structure for table `package_servers`
  1361. #
  1362. CREATE TABLE {$db_prefix}package_servers (
  1363. id_server integer primary key,
  1364. name varchar(255) NOT NULL,
  1365. url varchar(255) NOT NULL
  1366. );
  1367. #
  1368. # Dumping data for table `package_servers`
  1369. #
  1370. INSERT INTO {$db_prefix}package_servers
  1371. (name, url)
  1372. VALUES ('Simple Machines Third-party Mod Site', 'http://custom.simplemachines.org/packages/mods');
  1373. # --------------------------------------------------------
  1374. #
  1375. # Table structure for table `permission_profiles`
  1376. #
  1377. CREATE TABLE {$db_prefix}permission_profiles (
  1378. id_profile integer primary key,
  1379. profile_name varchar(255) NOT NULL
  1380. );
  1381. #
  1382. # Dumping data for table `permission_profiles`
  1383. #
  1384. BEGIN TRANSACTION;
  1385. INSERT INTO {$db_prefix}permission_profiles (id_profile, profile_name) VALUES (1, 'default');
  1386. INSERT INTO {$db_prefix}permission_profiles (id_profile, profile_name) VALUES (2, 'no_polls');
  1387. INSERT INTO {$db_prefix}permission_profiles (id_profile, profile_name) VALUES (3, 'reply_only');
  1388. INSERT INTO {$db_prefix}permission_profiles (id_profile, profile_name) VALUES (4, 'read_only');
  1389. COMMIT;
  1390. # --------------------------------------------------------
  1391. #
  1392. # Table structure for table `permissions`
  1393. #
  1394. CREATE TABLE {$db_prefix}permissions (
  1395. id_group smallint NOT NULL default '0',
  1396. permission varchar(30) NOT NULL default '',
  1397. add_deny smallint NOT NULL default '1',
  1398. PRIMARY KEY (id_group, permission)
  1399. );
  1400. #
  1401. # Dumping data for table `permissions`
  1402. #
  1403. BEGIN TRANSACTION;
  1404. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (-1, 'search_posts');
  1405. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (-1, 'calendar_view');
  1406. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (-1, 'view_stats');
  1407. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'view_mlist');
  1408. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'search_posts');
  1409. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_view');
  1410. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'pm_read');
  1411. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'pm_send');
  1412. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'pm_draft');
  1413. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'pm_autosave_draft');
  1414. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'calendar_view');
  1415. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'view_stats');
  1416. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'who_view');
  1417. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_identity_own');
  1418. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_password_own');
  1419. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_blurb_own');
  1420. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_displayed_name_own');
  1421. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_signature_own');
  1422. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_other_own');
  1423. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_extra_own');
  1424. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_remove_own');
  1425. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_server_avatar');
  1426. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_upload_avatar');
  1427. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_remote_avatar');
  1428. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'send_email_to_members');
  1429. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'karma_edit');
  1430. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'view_mlist');
  1431. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'search_posts');
  1432. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_view');
  1433. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'pm_read');
  1434. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'pm_send');
  1435. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'pm_draft');
  1436. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'pm_autosave_draft');
  1437. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'calendar_view');
  1438. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'view_stats');
  1439. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'who_view');
  1440. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_identity_own');
  1441. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_password_own');
  1442. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_blurb_own');
  1443. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_displayed_name_own');
  1444. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_signature_own');
  1445. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_other_own');
  1446. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_forum_own');
  1447. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_extra_own');
  1448. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_remove_own');
  1449. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_server_avatar');
  1450. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_upload_avatar');
  1451. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_remote_avatar');
  1452. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'send_email_to_members');
  1453. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_title_own');
  1454. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'calendar_post');
  1455. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'calendar_edit_any');
  1456. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'karma_edit');
  1457. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'access_mod_center');
  1458. COMMIT;
  1459. # --------------------------------------------------------
  1460. #
  1461. # Table structure for table `personal_messages`
  1462. #
  1463. CREATE TABLE {$db_prefix}personal_messages (
  1464. id_pm integer primary key,
  1465. id_pm_head int NOT NULL default '0',
  1466. id_member_from int NOT NULL default '0',
  1467. deleted_by_sender smallint NOT NULL default '0',
  1468. from_name varchar(255) NOT NULL,
  1469. msgtime int NOT NULL default '0',
  1470. subject varchar(255) NOT NULL,
  1471. body text NOT NULL
  1472. );
  1473. #
  1474. # Indexes for table `personal_messages`
  1475. #
  1476. CREATE INDEX {$db_prefix}personal_messages_id_member ON {$db_prefix}personal_messages (id_member_from, deleted_by_sender);
  1477. CREATE INDEX {$db_prefix}personal_messages_msgtime ON {$db_prefix}personal_messages (msgtime);
  1478. CREATE INDEX {$db_prefix}personal_messages_id_pm_head ON {$db_prefix}personal_messages (id_pm_head);
  1479. #
  1480. # Table structure for table `pm_labels`
  1481. #
  1482. CREATE TABLE {$db_prefix}pm_labels (
  1483. id_label integer primary key,
  1484. id_member int NOT NULL default '0',
  1485. name varchar(30) NOT NULL,
  1486. PRIMARY KEY (id_label)
  1487. );
  1488. #
  1489. # Table structure for table `pm_labeled_messages`
  1490. #
  1491. CREATE TABLE {$db_prefix}pm_labeled_messages (
  1492. id_label int NOT NULL default '0',
  1493. id_pm int NOT NULL default '0',
  1494. PRIMARY KEY (id_label, id_pm)
  1495. );
  1496. #
  1497. # Table structure for table `pm_recipients`
  1498. #
  1499. CREATE TABLE {$db_prefix}pm_recipients (
  1500. id_pm int NOT NULL default '0',
  1501. id_member int NOT NULL default '0',
  1502. bcc smallint NOT NULL default '0',
  1503. is_read smallint NOT NULL default '0',
  1504. is_new smallint NOT NULL default '0',
  1505. deleted smallint NOT NULL default '0',
  1506. in_inbox smallint NOT NULL default '1',
  1507. PRIMARY KEY (id_pm, id_member)
  1508. );
  1509. #
  1510. # Indexes for table `pm_recipients`
  1511. #
  1512. CREATE UNIQUE INDEX {$db_prefix}pm_recipients_id_member ON {$db_prefix}pm_recipients (id_member, deleted, id_pm);
  1513. #
  1514. # Table structure for table `pm_rules`
  1515. #
  1516. CREATE TABLE {$db_prefix}pm_rules (
  1517. id_rule integer primary key,
  1518. id_member integer NOT NULL default '0',
  1519. rule_name varchar(60) NOT NULL,
  1520. criteria text NOT NULL,
  1521. actions text NOT NULL,
  1522. delete_pm smallint NOT NULL default '0',
  1523. is_or smallint NOT NULL default '0'
  1524. );
  1525. #
  1526. # Indexes for table `pm_rules`
  1527. #
  1528. CREATE INDEX {$db_prefix}pm_rules_id_member ON {$db_prefix}pm_rules (id_member);
  1529. CREATE INDEX {$db_prefix}pm_rules_delete_pm ON {$db_prefix}pm_rules (delete_pm);
  1530. #
  1531. # Table structure for table `polls`
  1532. #
  1533. CREATE TABLE {$db_prefix}polls (
  1534. id_poll integer primary key,
  1535. question varchar(255) NOT NULL,
  1536. voting_locked smallint NOT NULL default '0',
  1537. max_votes smallint NOT NULL default '1',
  1538. expire_time int NOT NULL default '0',
  1539. hide_results smallint NOT NULL default '0',
  1540. change_vote smallint NOT NULL default '0',
  1541. guest_vote smallint NOT NULL default '0',
  1542. num_guest_voters int NOT NULL default '0',
  1543. reset_poll int NOT NULL default '0',
  1544. id_member int NOT NULL default '0',
  1545. poster_name varchar(255) NOT NULL
  1546. );
  1547. #
  1548. # Table structure for table `poll_choices`
  1549. #
  1550. CREATE TABLE {$db_prefix}poll_choices (
  1551. id_poll int NOT NULL default '0',
  1552. id_choice smallint NOT NULL default '0',
  1553. label varchar(255) NOT NULL,
  1554. votes smallint NOT NULL default '0',
  1555. PRIMARY KEY (id_poll, id_choice)
  1556. );
  1557. #
  1558. # Table structure for table `qanda`
  1559. #
  1560. CREATE TABLE {$db_prefix}qanda (
  1561. id_question integer primary key,
  1562. lngfile varchar(255) NOT NULL default '',
  1563. question varchar(255) NOT NULL default '',
  1564. answers text NOT NULL
  1565. ) ENGINE=MyISAM;
  1566. #
  1567. # Indexes for table `qanda`
  1568. #
  1569. CREATE INDEX {$db_prefix}qanda_lngfile ON {$db_prefix}qanda (lngfile);
  1570. #
  1571. # Table structure for table `scheduled_tasks`
  1572. #
  1573. CREATE TABLE {$db_prefix}scheduled_tasks (
  1574. id_task integer primary key,
  1575. next_time int NOT NULL default '0',
  1576. time_offset int NOT NULL default '0',
  1577. time_regularity smallint NOT NULL default '0',
  1578. time_unit varchar(1) NOT NULL default 'h',
  1579. disabled smallint NOT NULL default '0',
  1580. task varchar(24) NOT NULL default ''
  1581. );
  1582. #
  1583. # Indexes for table `scheduled_tasks`
  1584. #
  1585. CREATE INDEX {$db_prefix}scheduled_tasks_next_time ON {$db_prefix}scheduled_tasks (next_time);
  1586. CREATE INDEX {$db_prefix}scheduled_tasks_disabled ON {$db_prefix}scheduled_tasks (disabled);
  1587. CREATE UNIQUE INDEX {$db_prefix}scheduled_tasks_task ON {$db_prefix}scheduled_tasks (task);
  1588. #
  1589. # Dumping data for table `scheduled_tasks`
  1590. #
  1591. BEGIN TRANSACTION;
  1592. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (1, 0, 0, 2, 'h', 0, 'approval_notification');
  1593. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (2, 0, 0, 7, 'd', 0, 'auto_optimize');
  1594. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (3, 0, 60, 1, 'd', 0, 'daily_maintenance');
  1595. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (5, 0, 0, 1, 'd', 0, 'daily_digest');
  1596. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (6, 0, 0, 1, 'w', 0, 'weekly_digest');
  1597. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (7, 0, {$sched_task_offset}, 1, 'd', 0, 'fetchSMfiles');
  1598. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (8, 0, 0, 1, 'd', 1, 'birthdayemails');
  1599. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (9, 0, 0, 1, 'w', 0, 'weekly_maintenance');
  1600. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (10, 0, 120, 1, 'd', 1, 'paid_subscriptions');
  1601. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (11, 0, 120, 1, 'd', 0, 'remove_temp_attachments');
  1602. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (12, 0, 180, 1, 'd', 0, 'remove_topic_redirect');
  1603. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (13, 0, 240, 1, 'd', 0, 'remove_old_drafts');
  1604. COMMIT;
  1605. # --------------------------------------------------------
  1606. #
  1607. # Table structure for table `settings`
  1608. #
  1609. CREATE TABLE {$db_prefix}settings (
  1610. variable varchar(255) NOT NULL,
  1611. value text NOT NULL,
  1612. PRIMARY KEY (variable)
  1613. );
  1614. #
  1615. # Dumping data for table `settings`
  1616. #
  1617. BEGIN TRANSACTION;
  1618. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smfVersion', '{$smf_version}');
  1619. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('news', '{$default_news}');
  1620. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('compactTopicPagesContiguous', '5');
  1621. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('compactTopicPagesEnable', '1');
  1622. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('todayMod', '1');
  1623. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaMode', '0');
  1624. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaTimeRestrictAdmins', '1');
  1625. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enablePreviousNext', '1');
  1626. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('pollMode', '1');
  1627. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableVBStyleLogin', '1');
  1628. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableCompressedOutput', '{$enableCompressedOutput}');
  1629. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaWaitTime', '1');
  1630. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaMinPosts', '0');
  1631. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaLabel', '{$default_karmaLabel}');
  1632. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaSmiteLabel', '{$default_karmaSmiteLabel}');
  1633. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaApplaudLabel', '{$default_karmaApplaudLabel}');
  1634. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentSizeLimit', '128');
  1635. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentPostLimit', '192');
  1636. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentNumPerPostLimit', '4');
  1637. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentDirSizeLimit', '10240');
  1638. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentDirFileLimit', '1000');
  1639. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentUploadDir', '{$boarddir}/attachments');
  1640. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentExtensions', 'doc,gif,jpg,mpg,pdf,png,txt,zip');
  1641. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentCheckExtensions', '0');
  1642. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentShowImages', '1');
  1643. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentEnable', '1');
  1644. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentThumbnails', '1');
  1645. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentThumbWidth', '150');
  1646. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentThumbHeight', '150');
  1647. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('use_subdirectories_for_attachments', '1');
  1648. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('censorIgnoreCase', '1');
  1649. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mostOnline', '1');
  1650. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mostOnlineToday', '1');
  1651. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mostDate', {$current_time});
  1652. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('allow_disableAnnounce', '1');
  1653. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('trackStats', '1');
  1654. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('userLanguage', '1');
  1655. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('titlesEnable', '1');
  1656. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('topicSummaryPosts', '15');
  1657. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableErrorLogging', '1');
  1658. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('log_ban_hits', '1');
  1659. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('max_image_width', '0');
  1660. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('max_image_height', '0');
  1661. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('onlineEnable', '0');
  1662. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_enabled', '0');
  1663. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_maxyear', '2020');
  1664. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_minyear', '2008');
  1665. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_daysaslink', '0');
  1666. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_defaultboard', '');
  1667. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_showholidays', '1');
  1668. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_showbdays', '1');
  1669. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_showevents', '1');
  1670. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_maxspan', '7');
  1671. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_highlight_events', '3');
  1672. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_highlight_holidays', '3');
  1673. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_highlight_birthdays', '3');
  1674. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_disable_prev_next', '0');
  1675. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_display_type', '0');
  1676. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_week_links', '2');
  1677. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_prev_next_links', '1');
  1678. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_short_days', '0');
  1679. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_short_months', '0');
  1680. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_week_numbers', '0');
  1681. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smtp_host', '');
  1682. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smtp_port', '25');
  1683. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smtp_username', '');
  1684. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smtp_password', '');
  1685. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mail_type', '0');
  1686. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('timeLoadPageEnable', '0');
  1687. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('totalMembers', '0');
  1688. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('totalTopics', '1');
  1689. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('totalMessages', '1');
  1690. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('simpleSearch', '0');
  1691. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('censor_vulgar', '');
  1692. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('censor_proper', '');
  1693. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enablePostHTML', '0');
  1694. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('theme_allow', '1');
  1695. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('theme_default', '1');
  1696. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('theme_guests', '1');
  1697. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableEmbeddedFlash', '0');
  1698. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('xmlnews_enable', '1');
  1699. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('xmlnews_maxlen', '255');
  1700. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('hotTopicPosts', '15');
  1701. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('hotTopicVeryPosts', '25');
  1702. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('registration_method', '{$registration_method}');
  1703. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('send_validation_onChange', '0');
  1704. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('send_welcomeEmail', '1');
  1705. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('allow_editDisplayName', '1');
  1706. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('allow_hideOnline', '1');
  1707. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('spamWaitTime', '5');
  1708. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('pm_spam_settings', '10,5,20');
  1709. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('reserveWord', '0');
  1710. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('reserveCase', '1');
  1711. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('reserveUser', '1');
  1712. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('reserveName', '1');
  1713. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('reserveNames', '{$default_reserved_names}');
  1714. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('autoLinkUrls', '1');
  1715. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('banLastUpdated', '0');
  1716. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smileys_dir', '{$boarddir}/Smileys');
  1717. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smileys_url', '{$boardurl}/Smileys');
  1718. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_directory', '{$boarddir}/avatars');
  1719. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_url', '{$boardurl}/avatars');
  1720. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_max_height_external', '65');
  1721. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_max_width_external', '65');
  1722. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_action_too_large', 'option_html_resize');
  1723. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_max_height_upload', '65');
  1724. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_max_width_upload', '65');
  1725. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_resize_upload', '1');
  1726. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_download_png', '1');
  1727. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('failed_login_threshold', '3');
  1728. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('oldTopicDays', '120');
  1729. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('edit_wait_time', '90');
  1730. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('edit_disable_time', '0');
  1731. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('autoFixDatabase', '1');
  1732. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('allow_guestAccess', '1');
  1733. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('time_format', '{$default_time_format}');
  1734. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('number_format', '1234.00');
  1735. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableBBC', '1');
  1736. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('max_messageLength', '20000');
  1737. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('signature_settings', '1,300,0,0,0,0,0,0:');
  1738. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('autoOptMaxOnline', '0');
  1739. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('defaultMaxMessages', '15');
  1740. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('defaultMaxTopics', '20');
  1741. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('defaultMaxMembers', '30');
  1742. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableParticipation', '1');
  1743. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('recycle_enable', '0');
  1744. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('recycle_board', '0');
  1745. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('maxMsgID', '1');
  1746. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableAllMessages', '0');
  1747. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('fixLongWords', '0');
  1748. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('knownThemes', '1');
  1749. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableThemes', '1');
  1750. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('who_enabled', '1');
  1751. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('time_offset', '0');
  1752. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cookieTime', '60');
  1753. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('lastActive', '15');
  1754. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smiley_sets_known', 'default,aaron,akyhne,fugue');
  1755. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smiley_sets_names', '{$default_smileyset_name}
  1756. {$default_aaron_smileyset_name}
  1757. {$default_akyhne_smileyset_name}
  1758. {$default_fugue_smileyset_name}');
  1759. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smiley_sets_default', 'default');
  1760. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_days_for_index', '7');
  1761. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('requireAgreement', '1');
  1762. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('unapprovedMembers', '0');
  1763. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('default_personal_text', '');
  1764. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('package_make_backups', '1');
  1765. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('databaseSession_enable', '{$databaseSession_enable}');
  1766. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('databaseSession_loose', '1');
  1767. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('databaseSession_lifetime', '2880');
  1768. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_cache_size', '50');
  1769. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_results_per_page', '30');
  1770. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_weight_frequency', '30');
  1771. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_weight_age', '25');
  1772. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_weight_length', '20');
  1773. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_weight_subject', '15');
  1774. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_weight_first_message', '10');
  1775. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_max_results', '1200');
  1776. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_floodcontrol_time', '5');
  1777. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('permission_enable_deny', '0');
  1778. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('permission_enable_postgroups', '0');
  1779. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mail_next_send', '0');
  1780. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mail_recent', '0000000000|0');
  1781. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('settings_updated', '0');
  1782. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('next_task_time', '1');
  1783. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('warning_settings', '1,20,0');
  1784. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('warning_watch', '10');
  1785. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('warning_moderate', '35');
  1786. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('warning_mute', '60');
  1787. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('last_mod_report_action', '0');
  1788. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('pruningOptions', '30,180,180,180,30,0');
  1789. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('modlog_enabled', '1');
  1790. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('adminlog_enabled', '1');
  1791. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cache_enable', '1');
  1792. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('reg_verification', '1');
  1793. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('visual_verification_type', '3');
  1794. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enable_buddylist', '1');
  1795. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('birthday_email', 'happy_birthday');
  1796. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('dont_repeat_theme_core', '1');
  1797. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('dont_repeat_smileys_20', '1');
  1798. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('dont_repeat_buddylists', '1');
  1799. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachment_image_reencode', '1');
  1800. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachment_image_paranoid', '0');
  1801. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachment_thumb_png', '1');
  1802. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_reencode', '1');
  1803. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_paranoid', '0');
  1804. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enable_unwatch', '0');
  1805. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('drafts_post_enabled', '1');
  1806. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('drafts_pm_enabled', '1');
  1807. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('drafts_autosave_enabled', '1');
  1808. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('drafts_show_saved_enabled', '1');
  1809. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('drafts_keep_days', '7');
  1810. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('topic_move_any', '0');
  1811. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mail_limit', '5');
  1812. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mail_quantity', '5');
  1813. COMMIT;
  1814. # --------------------------------------------------------
  1815. #
  1816. # Table structure for table `sessions`
  1817. #
  1818. CREATE TABLE {$db_prefix}sessions (
  1819. session_id char(64) NOT NULL,
  1820. last_update int NOT NULL,
  1821. data text NOT NULL,
  1822. PRIMARY KEY (session_id)
  1823. );
  1824. #
  1825. # Table structure for table `smileys`
  1826. #
  1827. CREATE TABLE {$db_prefix}smileys (
  1828. id_smiley integer primary key,
  1829. code varchar(30) NOT NULL default '',
  1830. filename varchar(48) NOT NULL default '',
  1831. description varchar(80) NOT NULL default '',
  1832. smiley_row smallint NOT NULL default '0',
  1833. smiley_order smallint NOT NULL default '0',
  1834. hidden smallint NOT NULL default '0'
  1835. );
  1836. #
  1837. # Dumping data for table `smileys`
  1838. #
  1839. BEGIN TRANSACTION;
  1840. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':)', 'smiley.gif', '{$default_smiley_smiley}', 0, 0);
  1841. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (';)', 'wink.gif', '{$default_wink_smiley}', 1, 0);
  1842. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':D', 'cheesy.gif', '{$default_cheesy_smiley}', 2, 0);
  1843. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (';D', 'grin.gif', '{$default_grin_smiley}', 3, 0);
  1844. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('>:(', 'angry.gif', '{$default_angry_smiley}', 4, 0);
  1845. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':(', 'sad.gif', '{$default_sad_smiley}', 5, 0);
  1846. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':o', 'shocked.gif', '{$default_shocked_smiley}', 6, 0);
  1847. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('8)', 'cool.gif', '{$default_cool_smiley}', 7, 0);
  1848. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('???', 'huh.gif', '{$default_huh_smiley}', 8, 0);
  1849. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('::)', 'rolleyes.gif', '{$default_roll_eyes_smiley}', 9, 0);
  1850. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':P', 'tongue.gif', '{$default_tongue_smiley}', 10, 0);
  1851. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':-[', 'embarrassed.gif', '{$default_embarrassed_smiley}', 11, 0);
  1852. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':-X', 'lipsrsealed.gif', '{$default_lips_sealed_smiley}', 12, 0);
  1853. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':-\', 'undecided.gif', '{$default_undecided_smiley}', 13, 0);
  1854. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':-*', 'kiss.gif', '{$default_kiss_smiley}', 14, 0);
  1855. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':''(', 'cry.gif', '{$default_cry_smiley}', 15, 0);
  1856. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('>:D', 'evil.gif', '{$default_evil_smiley}', 16, 1);
  1857. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('^-^', 'azn.gif', '{$default_azn_smiley}', 17, 1);
  1858. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('O0', 'afro.gif', '{$default_afro_smiley}', 18, 1);
  1859. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':))', 'laugh.gif', '{$default_laugh_smiley}', 19, 1);
  1860. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('C:-)', 'police.gif', '{$default_police_smiley}', 20, 1);
  1861. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('O:-)', 'angel.gif', '{$default_angel_smiley}', 21, 1);
  1862. COMMIT;
  1863. # --------------------------------------------------------
  1864. #
  1865. # Table structure for table `spiders`
  1866. #
  1867. CREATE TABLE {$db_prefix}spiders (
  1868. id_spider integer primary key,
  1869. spider_name varchar(255) NOT NULL,
  1870. user_agent varchar(255) NOT NULL,
  1871. ip_info varchar(255) NOT NULL
  1872. );
  1873. #
  1874. # Dumping data for table `spiders`
  1875. #
  1876. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (1, 'Google', 'googlebot', '');
  1877. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (2, 'Yahoo!', 'slurp', '');
  1878. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (3, 'MSN', 'msnbot', '');
  1879. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (4, 'Google (Mobile)', 'Googlebot-Mobile', '');
  1880. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (5, 'Google (Image)', 'Googlebot-Image', '');
  1881. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (6, 'Google (AdSense)', 'Mediapartners-Google', '');
  1882. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (7, 'Google (Adwords)', 'AdsBot-Google', '');
  1883. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (8, 'Yahoo! (Mobile)', 'YahooSeeker/M1A1-R2D2', '');
  1884. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (9, 'Yahoo! (Image)', 'Yahoo-MMCrawler', '');
  1885. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (10, 'MSN (Mobile)', 'MSNBOT_Mobile', '');
  1886. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (11, 'MSN (Media)', 'msnbot-media', '');
  1887. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (12, 'Cuil', 'twiceler', '');
  1888. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (13, 'Ask', 'Teoma', '');
  1889. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (14, 'Baidu', 'Baiduspider', '');
  1890. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (15, 'Gigablast', 'Gigabot', '');
  1891. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (16, 'InternetArchive', 'ia_archiver-web.archive.org', '');
  1892. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (17, 'Alexa', 'ia_archiver', '');
  1893. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (18, 'Omgili', 'omgilibot', '');
  1894. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (19, 'EntireWeb', 'Speedy Spider', '');
  1895. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (20, 'Yandex', 'yandex', '');
  1896. #
  1897. # Table structure for table `subscriptions`
  1898. #
  1899. CREATE TABLE {$db_prefix}subscriptions(
  1900. id_subscribe integer primary key,
  1901. name varchar(60) NOT NULL,
  1902. description varchar(255) NOT NULL,
  1903. cost text NOT NULL,
  1904. length varchar(6) NOT NULL,
  1905. id_group int NOT NULL default '0',
  1906. add_groups varchar(40) NOT NULL,
  1907. active smallint NOT NULL default '1',
  1908. repeatable smallint NOT NULL default '0',
  1909. allow_partial smallint NOT NULL default '0',
  1910. reminder smallint NOT NULL default '0',
  1911. email_complete text NOT NULL
  1912. );
  1913. #
  1914. # Indexes for table `subscriptions`
  1915. #
  1916. CREATE INDEX {$db_prefix}subscriptions_active ON {$db_prefix}subscriptions (active);
  1917. #
  1918. # Table structure for table `themes`
  1919. #
  1920. CREATE TABLE {$db_prefix}themes (
  1921. id_member int NOT NULL default '0',
  1922. id_theme smallint NOT NULL default '1',
  1923. variable varchar(255) NOT NULL,
  1924. value text NOT NULL,
  1925. PRIMARY KEY (id_theme, id_member, variable)
  1926. );
  1927. #
  1928. # Indexes for table `themes`
  1929. #
  1930. CREATE INDEX {$db_prefix}themes_id_member ON {$db_prefix}themes (id_member);
  1931. #
  1932. # Dumping data for table `themes`
  1933. #
  1934. BEGIN TRANSACTION;
  1935. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'name', '{$default_theme_name}');
  1936. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'theme_url', '{$boardurl}/Themes/default');
  1937. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'images_url', '{$boardurl}/Themes/default/images');
  1938. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'theme_dir', '{$boarddir}/Themes/default');
  1939. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_bbc', '1');
  1940. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_latest_member', '1');
  1941. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_modify', '1');
  1942. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_user_images', '1');
  1943. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_blurb', '1');
  1944. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_gender', '0');
  1945. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_newsfader', '0');
  1946. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'number_recent_posts', '0');
  1947. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_member_bar', '1');
  1948. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'linktree_link', '1');
  1949. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_profile_buttons', '1');
  1950. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_mark_read', '1');
  1951. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_stats_index', '1');
  1952. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'newsfader_time', '5000');
  1953. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'additional_options_collapsable', '1');
  1954. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'use_image_buttons', '1');
  1955. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'enable_news', '1');
  1956. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'forum_width', '90%');
  1957. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'drafts_autosave_enabled', '1');
  1958. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'drafts_show_saved_enabled', '1');
  1959. INSERT INTO {$db_prefix}themes (id_member, id_theme, variable, value) VALUES (-1, 1, 'display_quick_reply', '2');
  1960. INSERT INTO {$db_prefix}themes (id_member, id_theme, variable, value) VALUES (-1, 1, 'posts_apply_ignore_list', '1');
  1961. COMMIT;
  1962. # --------------------------------------------------------
  1963. #
  1964. # Table structure for table `topics`
  1965. #
  1966. CREATE TABLE {$db_prefix}topics (
  1967. id_topic integer primary key,
  1968. is_sticky smallint NOT NULL default '0',
  1969. id_board smallint NOT NULL default '0',
  1970. id_first_msg int NOT NULL default '0',
  1971. id_last_msg int NOT NULL default '0',
  1972. id_member_started int NOT NULL default '0',
  1973. id_member_updated int NOT NULL default '0',
  1974. id_poll int NOT NULL default '0',
  1975. id_previous_board smallint NOT NULL default '0',
  1976. id_previous_topic int NOT NULL default '0',
  1977. num_replies int NOT NULL default '0',
  1978. num_views int NOT NULL default '0',
  1979. locked smallint NOT NULL default '0',
  1980. redirect_expires int NOT NULL default '0',
  1981. id_redirect_topic int NOT NULL default '0',
  1982. unapproved_posts smallint NOT NULL default '0',
  1983. approved smallint NOT NULL default '1'
  1984. );
  1985. #
  1986. # Indexes for table `topics`
  1987. #
  1988. CREATE UNIQUE INDEX {$db_prefix}topics_last_message ON {$db_prefix}topics (id_last_msg, id_board);
  1989. CREATE UNIQUE INDEX {$db_prefix}topics_first_message ON {$db_prefix}topics (id_first_msg, id_board);
  1990. CREATE UNIQUE INDEX {$db_prefix}topics_poll ON {$db_prefix}topics (id_poll, id_topic);
  1991. CREATE INDEX {$db_prefix}topics_is_sticky ON {$db_prefix}topics (is_sticky);
  1992. CREATE INDEX {$db_prefix}topics_approved ON {$db_prefix}topics (approved);
  1993. CREATE INDEX {$db_prefix}topics_id_board ON {$db_prefix}topics (id_board);
  1994. CREATE INDEX {$db_prefix}topics_member_started ON {$db_prefix}topics (id_member_started, id_board);
  1995. CREATE INDEX {$db_prefix}topics_last_message_sticky ON {$db_prefix}topics (id_board, is_sticky, id_last_msg);
  1996. CREATE INDEX {$db_prefix}topics_board_news ON {$db_prefix}topics (id_board, id_first_msg);
  1997. #
  1998. # Dumping data for table `topics`
  1999. #
  2000. INSERT INTO {$db_prefix}topics
  2001. (id_topic, id_board, id_first_msg, id_last_msg, id_member_started, id_member_updated)
  2002. VALUES (1, 1, 1, 1, 0, 0);
  2003. # --------------------------------------------------------
  2004. #
  2005. # Table structure for table `user_alerts`
  2006. #
  2007. CREATE TABLE {$db_prefix}user_alerts (
  2008. id_alert int primary key,
  2009. alert_time int unsigned NOT NULL default '0',
  2010. id_member int unsigned NOT NULL default '0',
  2011. id_member_started int unsigned NOT NULL default '0',
  2012. member_name varchar(255) NOT NULL default '',
  2013. content_type varchar(255) NOT NULL default '',
  2014. content_id int unsigned NOT NULL default '0',
  2015. content_action varchar(255) NOT NULL default '',
  2016. is_read smallint unsigned NOT NULL default '0',
  2017. extra text NOT NULL,
  2018. PRIMARY KEY (id_alert)
  2019. );
  2020. #
  2021. # Indexes for table `user_alerts`
  2022. #
  2023. CREATE INDEX {$db_prefix}user_alerts_id_member ON {$db_prefix}user_alerts (id_member);
  2024. CREATE INDEX {$db_prefix}user_alerts_alert_time ON {$db_prefix}user_alerts (alert_time);
  2025. #
  2026. # Table structure for table `user_alerts_prefs`
  2027. #
  2028. CREATE TABLE {$db_prefix}user_alerts_prefs (
  2029. id_member int unsigned NOT NULL default '0',
  2030. alert_pref varchar(32) NOT NULL default '',
  2031. alert_value tinyint(3) NOT NULL default '0',
  2032. PRIMARY KEY (id_member, alert_pref)
  2033. );
  2034. #
  2035. # Dumping data for table `user_alerts_prefs`
  2036. #
  2037. INSERT INTO {$db_prefix}user_alerts_prefs (id_member, alert_pref, alert_value) VALUES (0, 'member_group_request', 1);
  2038. INSERT INTO {$db_prefix}user_alerts_prefs (id_member, alert_pref, alert_value) VALUES (0, 'member_register', 1);
  2039. INSERT INTO {$db_prefix}user_alerts_prefs (id_member, alert_pref, alert_value) VALUES (0, 'msg_like', 1);
  2040. INSERT INTO {$db_prefix}user_alerts_prefs (id_member, alert_pref, alert_value) VALUES (0, 'msg_report', 1);
  2041. INSERT INTO {$db_prefix}user_alerts_prefs (id_member, alert_pref, alert_value) VALUES (0, 'msg_report_reply', 1);
  2042. # --------------------------------------------------------
  2043. #
  2044. # Table structure for table `user_drafts`
  2045. #
  2046. CREATE TABLE {$db_prefix}user_drafts (
  2047. id_draft int primary key,
  2048. id_topic int unsigned NOT NULL default '0',
  2049. id_board smallint unsigned NOT NULL default '0',
  2050. id_reply int unsigned NOT NULL default '0',
  2051. type smallint NOT NULL default '0',
  2052. poster_time int unsigned NOT NULL default '0',
  2053. id_member int unsigned NOT NULL default '0',
  2054. subject varchar(255) NOT NULL default '',
  2055. smileys_enabled smallint NOT NULL default '1',
  2056. body text NOT NULL,
  2057. icon varchar(16) NOT NULL default 'xx',
  2058. locked smallint NOT NULL default '0',
  2059. is_sticky smallint NOT NULL default '0',
  2060. to_list varchar(255) NOT NULL default ''
  2061. );
  2062. #
  2063. # Indexes for table `user_drafts`
  2064. #
  2065. CREATE UNIQUE INDEX {$db_prefix}user_drafts_id_member ON {$db_prefix}user_drafts (id_member, id_draft, type);
  2066. #
  2067. # Table structure for table `user_likes`
  2068. #
  2069. CREATE TABLE {$db_prefix}user_likes (
  2070. id_member int NOT NULL default '0',
  2071. content_type char(6) default '',
  2072. content_id int NOT NULL default '0',
  2073. like_time int NOT NULL default '0',
  2074. PRIMARY KEY (content_id, content_type, id_member)
  2075. );
  2076. #
  2077. # Indexes for table `user_likes`
  2078. #
  2079. CREATE INDEX {$db_prefix}user_likes_content ON {$db_prefix}user_likes (content_id, content_type);
  2080. CREATE INDEX {$db_prefix}user_likes_liker ON {$db_prefix}user_likes (id_member);