install_2-1_sqlite.sql 124 KB

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