install_2-1_sqlite.sql 122 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229
  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. PRIMARY KEY (id_member, id_topic)
  1115. );
  1116. #
  1117. # Indexes for table `log_topics`
  1118. #
  1119. CREATE INDEX {$db_prefix}log_topics_id_topic ON {$db_prefix}log_topics (id_topic);
  1120. #
  1121. # Table structure for table `mail_queue`
  1122. #
  1123. CREATE TABLE {$db_prefix}mail_queue (
  1124. id_mail integer primary key,
  1125. time_sent int NOT NULL default '0',
  1126. recipient varchar(255) NOT NULL,
  1127. body text NOT NULL,
  1128. subject varchar(255) NOT NULL,
  1129. headers text NOT NULL,
  1130. send_html smallint NOT NULL default '0',
  1131. priority smallint NOT NULL default '1',
  1132. private smallint NOT NULL default '0'
  1133. );
  1134. #
  1135. # Indexes for table `mail_queue`
  1136. #
  1137. CREATE INDEX {$db_prefix}mail_queue_time_sent ON {$db_prefix}mail_queue (time_sent);
  1138. CREATE INDEX {$db_prefix}mail_queue_mail_priority ON {$db_prefix}mail_queue (priority, id_mail);
  1139. #
  1140. # Table structure for table `membergroups`
  1141. #
  1142. CREATE TABLE {$db_prefix}membergroups (
  1143. id_group integer primary key,
  1144. group_name varchar(80) NOT NULL default '',
  1145. description text NOT NULL,
  1146. online_color varchar(20) NOT NULL default '',
  1147. min_posts int NOT NULL default '-1',
  1148. max_messages smallint NOT NULL default '0',
  1149. icons varchar(255) NOT NULL,
  1150. group_type smallint NOT NULL default '0',
  1151. hidden smallint NOT NULL default '0',
  1152. id_parent smallint NOT NULL default '-2'
  1153. );
  1154. #
  1155. # Indexes for table `membergroups`
  1156. #
  1157. CREATE INDEX {$db_prefix}membergroups_min_posts ON {$db_prefix}membergroups (min_posts);
  1158. #
  1159. # Dumping data for table `membergroups`
  1160. #
  1161. BEGIN TRANSACTION;
  1162. 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);
  1163. 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');
  1164. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (3, '{$default_moderator_group}', '', '', -1, '5#iconmod.png');
  1165. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (4, '{$default_newbie_group}', '', '', 0, '1#icon.png');
  1166. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (5, '{$default_junior_group}', '', '', 50, '2#icon.png');
  1167. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (6, '{$default_full_group}', '', '', 100, '3#icon.png');
  1168. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (7, '{$default_senior_group}', '', '', 250, '4#icon.png');
  1169. INSERT INTO {$db_prefix}membergroups (id_group, group_name, description, online_color, min_posts, icons) VALUES (8, '{$default_hero_group}', '', '', 500, '5#icon.png');
  1170. COMMIT;
  1171. # --------------------------------------------------------
  1172. #
  1173. # Table structure for table `members`
  1174. #
  1175. CREATE TABLE {$db_prefix}members (
  1176. id_member integer primary key,
  1177. member_name varchar(80) NOT NULL default '',
  1178. date_registered int NOT NULL default '0',
  1179. posts int NOT NULL default '0',
  1180. id_group smallint NOT NULL default '0',
  1181. lngfile varchar(255) NOT NULL,
  1182. last_login int NOT NULL default '0',
  1183. real_name varchar(255) NOT NULL,
  1184. instant_messages smallint NOT NULL default 0,
  1185. unread_messages smallint NOT NULL default 0,
  1186. new_pm smallint NOT NULL default '0',
  1187. buddy_list text NOT NULL,
  1188. pm_ignore_list varchar(255) NOT NULL,
  1189. pm_prefs int NOT NULL default '0',
  1190. mod_prefs varchar(20) NOT NULL default '',
  1191. message_labels text NOT NULL,
  1192. passwd varchar(64) NOT NULL default '',
  1193. openid_uri text NOT NULL,
  1194. email_address varchar(255) NOT NULL,
  1195. personal_text varchar(255) NOT NULL,
  1196. gender smallint NOT NULL default '0',
  1197. birthdate date NOT NULL default '0001-01-01',
  1198. website_title varchar(255) NOT NULL,
  1199. website_url varchar(255) NOT NULL,
  1200. location varchar(255) NOT NULL,
  1201. icq varchar(255) NOT NULL,
  1202. aim varchar(255) NOT NULL default '',
  1203. yim varchar(32) NOT NULL default '',
  1204. msn varchar(255) NOT NULL,
  1205. hide_email smallint NOT NULL default '0',
  1206. show_online smallint NOT NULL default '1',
  1207. time_format varchar(80) NOT NULL default '',
  1208. signature text NOT NULL,
  1209. time_offset float NOT NULL default '0',
  1210. avatar varchar(255) NOT NULL,
  1211. pm_email_notify smallint NOT NULL default '0',
  1212. karma_bad smallint NOT NULL default '0',
  1213. karma_good smallint NOT NULL default '0',
  1214. usertitle varchar(255) NOT NULL,
  1215. notify_announcements smallint NOT NULL default '1',
  1216. notify_regularity smallint NOT NULL default '1',
  1217. notify_send_body smallint NOT NULL default '0',
  1218. notify_types smallint NOT NULL default '2',
  1219. member_ip varchar(255) NOT NULL,
  1220. member_ip2 varchar(255) NOT NULL,
  1221. secret_question varchar(255) NOT NULL,
  1222. secret_answer varchar(64) NOT NULL default '',
  1223. id_theme smallint NOT NULL default '0',
  1224. is_activated smallint NOT NULL default '1',
  1225. validation_code varchar(10) NOT NULL default '',
  1226. id_msg_last_visit int NOT NULL default '0',
  1227. additional_groups varchar(255) NOT NULL,
  1228. smiley_set varchar(48) NOT NULL default '',
  1229. id_post_group smallint NOT NULL default '0',
  1230. total_time_logged_in int NOT NULL default '0',
  1231. password_salt varchar(255) NOT NULL default '',
  1232. ignore_boards text NOT NULL,
  1233. warning smallint NOT NULL default '0',
  1234. passwd_flood varchar(12) NOT NULL default '',
  1235. pm_receive_from smallint NOT NULL default '1'
  1236. );
  1237. #
  1238. # Indexes for table `members`
  1239. #
  1240. CREATE INDEX {$db_prefix}members_member_name ON {$db_prefix}members (member_name);
  1241. CREATE INDEX {$db_prefix}members_real_name ON {$db_prefix}members (real_name);
  1242. CREATE INDEX {$db_prefix}members_date_registered ON {$db_prefix}members (date_registered);
  1243. CREATE INDEX {$db_prefix}members_id_group ON {$db_prefix}members (id_group);
  1244. CREATE INDEX {$db_prefix}members_birthdate ON {$db_prefix}members (birthdate);
  1245. CREATE INDEX {$db_prefix}members_posts ON {$db_prefix}members (posts);
  1246. CREATE INDEX {$db_prefix}members_last_login ON {$db_prefix}members (last_login);
  1247. CREATE INDEX {$db_prefix}members_lngfile ON {$db_prefix}members (lngfile);
  1248. CREATE INDEX {$db_prefix}members_id_post_group ON {$db_prefix}members (id_post_group);
  1249. CREATE INDEX {$db_prefix}members_warning ON {$db_prefix}members (warning);
  1250. CREATE INDEX {$db_prefix}members_total_time_logged_in ON {$db_prefix}members (total_time_logged_in);
  1251. CREATE INDEX {$db_prefix}members_id_theme ON {$db_prefix}members (id_theme);
  1252. #
  1253. # Table structure for table `member_logins`
  1254. #
  1255. CREATE TABLE {$db_prefix}member_logins (
  1256. id_login integer primary key,
  1257. id_member int NOT NULL default '0',
  1258. time int(10) NOT NULL default '0',
  1259. ip varchar(255) NOT NULL default '0',
  1260. ip2 varchar(255) NOT NULL default '0'
  1261. );
  1262. #
  1263. # Indexes for table `member_logins`
  1264. #
  1265. CREATE INDEX {$db_prefix}member_logins_id_member ON {$db_prefix}member_logins (id_member);
  1266. CREATE INDEX {$db_prefix}member_logins_time ON {$db_prefix}member_logins (time);
  1267. #
  1268. # Table structure for table `message_icons`
  1269. #
  1270. CREATE TABLE {$db_prefix}message_icons (
  1271. id_icon integer primary key,
  1272. title varchar(80) NOT NULL default '',
  1273. filename varchar(80) NOT NULL default '',
  1274. id_board smallint NOT NULL default '0',
  1275. icon_order smallint NOT NULL default '0'
  1276. );
  1277. #
  1278. # Indexes for table `message_icons`
  1279. #
  1280. CREATE INDEX {$db_prefix}message_icons_id_board ON {$db_prefix}message_icons (id_board);
  1281. #
  1282. # Dumping data for table `message_icons`
  1283. #
  1284. # // !!! i18n
  1285. BEGIN TRANSACTION;
  1286. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('xx', 'Standard', '0');
  1287. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('thumbup', 'Thumb Up', '1');
  1288. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('thumbdown', 'Thumb Down', '2');
  1289. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('exclamation', 'Exclamation point', '3');
  1290. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('question', 'Question mark', '4');
  1291. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('lamp', 'Lamp', '5');
  1292. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('smiley', 'Smiley', '6');
  1293. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('angry', 'Angry', '7');
  1294. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('cheesy', 'Cheesy', '8');
  1295. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('grin', 'Grin', '9');
  1296. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('sad', 'Sad', '10');
  1297. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('wink', 'Wink', '11');
  1298. INSERT INTO {$db_prefix}message_icons (filename, title, icon_order) VALUES ('poll', 'Poll', '12');
  1299. COMMIT;
  1300. # --------------------------------------------------------
  1301. #
  1302. # Table structure for table `messages`
  1303. #
  1304. CREATE TABLE {$db_prefix}messages (
  1305. id_msg integer primary key,
  1306. id_topic int NOT NULL default '0',
  1307. id_board smallint NOT NULL default '0',
  1308. poster_time int NOT NULL default '0',
  1309. id_member int NOT NULL default '0',
  1310. id_msg_modified int NOT NULL default '0',
  1311. subject varchar(255) NOT NULL,
  1312. poster_name varchar(255) NOT NULL,
  1313. poster_email varchar(255) NOT NULL,
  1314. poster_ip varchar(255) NOT NULL,
  1315. smileys_enabled smallint NOT NULL default '1',
  1316. modified_time int NOT NULL default '0',
  1317. modified_name varchar(255) NOT NULL,
  1318. body text NOT NULL,
  1319. icon varchar(16) NOT NULL default 'xx',
  1320. approved smallint NOT NULL default '1'
  1321. );
  1322. #
  1323. # Indexes for table `messages`
  1324. #
  1325. CREATE UNIQUE INDEX {$db_prefix}messages_topic ON {$db_prefix}messages (id_topic, id_msg);
  1326. CREATE UNIQUE INDEX {$db_prefix}messages_id_board ON {$db_prefix}messages (id_board, id_msg);
  1327. CREATE UNIQUE INDEX {$db_prefix}messages_id_member ON {$db_prefix}messages (id_member, id_msg);
  1328. CREATE INDEX {$db_prefix}messages_approved ON {$db_prefix}messages (approved);
  1329. CREATE INDEX {$db_prefix}messages_ip_index ON {$db_prefix}messages (poster_ip, id_topic);
  1330. CREATE INDEX {$db_prefix}messages_participation ON {$db_prefix}messages (id_member, id_topic);
  1331. CREATE INDEX {$db_prefix}messages_show_posts ON {$db_prefix}messages (id_member, id_board);
  1332. CREATE INDEX {$db_prefix}messages_id_topic ON {$db_prefix}messages (id_topic);
  1333. CREATE INDEX {$db_prefix}messages_id_member_msg ON {$db_prefix}messages (id_member, approved, id_msg);
  1334. CREATE INDEX {$db_prefix}messages_current_topic ON {$db_prefix}messages (id_topic, id_msg, id_member, approved);
  1335. CREATE INDEX {$db_prefix}messages_related_ip ON {$db_prefix}messages (id_member, poster_ip, id_msg);
  1336. #
  1337. # Dumping data for table `messages`
  1338. #
  1339. INSERT INTO {$db_prefix}messages
  1340. (id_msg, id_msg_modified, id_topic, id_board, poster_time, subject, poster_name, poster_email, poster_ip, modified_name, body, icon)
  1341. VALUES (1, 1, 1, 1, {$current_time}, '{$default_topic_subject}', 'Simple Machines', '[email protected]', '127.0.0.1', '', '{$default_topic_message}', 'xx');
  1342. # --------------------------------------------------------
  1343. #
  1344. # Table structure for table `moderators`
  1345. #
  1346. CREATE TABLE {$db_prefix}moderators (
  1347. id_board smallint NOT NULL default '0',
  1348. id_member int NOT NULL default '0',
  1349. PRIMARY KEY (id_board, id_member)
  1350. );
  1351. #
  1352. # Table structure for table `openid_assoc`
  1353. #
  1354. CREATE TABLE {$db_prefix}openid_assoc (
  1355. server_url text NOT NULL,
  1356. handle varchar(255) NOT NULL,
  1357. secret text NOT NULL,
  1358. issued int NOT NULL default '0',
  1359. expires int NOT NULL default '0',
  1360. assoc_type varchar(64) NOT NULL,
  1361. PRIMARY KEY (server_url, handle)
  1362. );
  1363. #
  1364. # Indexes for table `openid_assoc`
  1365. #
  1366. CREATE INDEX {$db_prefix}openid_assoc_expires ON {$db_prefix}openid_assoc (expires);
  1367. #
  1368. # Table structure for table `package_servers`
  1369. #
  1370. CREATE TABLE {$db_prefix}package_servers (
  1371. id_server integer primary key,
  1372. name varchar(255) NOT NULL,
  1373. url varchar(255) NOT NULL
  1374. );
  1375. #
  1376. # Dumping data for table `package_servers`
  1377. #
  1378. INSERT INTO {$db_prefix}package_servers
  1379. (name, url)
  1380. VALUES ('Simple Machines Third-party Mod Site', 'http://custom.simplemachines.org/packages/mods');
  1381. # --------------------------------------------------------
  1382. #
  1383. # Table structure for table `permission_profiles`
  1384. #
  1385. CREATE TABLE {$db_prefix}permission_profiles (
  1386. id_profile integer primary key,
  1387. profile_name varchar(255) NOT NULL
  1388. );
  1389. #
  1390. # Dumping data for table `permission_profiles`
  1391. #
  1392. BEGIN TRANSACTION;
  1393. INSERT INTO {$db_prefix}permission_profiles (id_profile, profile_name) VALUES (1, 'default');
  1394. INSERT INTO {$db_prefix}permission_profiles (id_profile, profile_name) VALUES (2, 'no_polls');
  1395. INSERT INTO {$db_prefix}permission_profiles (id_profile, profile_name) VALUES (3, 'reply_only');
  1396. INSERT INTO {$db_prefix}permission_profiles (id_profile, profile_name) VALUES (4, 'read_only');
  1397. COMMIT;
  1398. # --------------------------------------------------------
  1399. #
  1400. # Table structure for table `permissions`
  1401. #
  1402. CREATE TABLE {$db_prefix}permissions (
  1403. id_group smallint NOT NULL default '0',
  1404. permission varchar(30) NOT NULL default '',
  1405. add_deny smallint NOT NULL default '1',
  1406. PRIMARY KEY (id_group, permission)
  1407. );
  1408. #
  1409. # Dumping data for table `permissions`
  1410. #
  1411. BEGIN TRANSACTION;
  1412. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (-1, 'search_posts');
  1413. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (-1, 'calendar_view');
  1414. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (-1, 'view_stats');
  1415. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (-1, 'profile_view_any');
  1416. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'view_mlist');
  1417. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'search_posts');
  1418. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_view_own');
  1419. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_view_any');
  1420. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'pm_read');
  1421. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'pm_send');
  1422. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'pm_draft');
  1423. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'pm_autosave_draft');
  1424. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'calendar_view');
  1425. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'view_stats');
  1426. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'who_view');
  1427. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_identity_own');
  1428. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_extra_own');
  1429. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_remove_own');
  1430. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_server_avatar');
  1431. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_upload_avatar');
  1432. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'profile_remote_avatar');
  1433. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'send_email_to_members');
  1434. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (0, 'karma_edit');
  1435. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'view_mlist');
  1436. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'search_posts');
  1437. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_view_own');
  1438. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_view_any');
  1439. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'pm_read');
  1440. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'pm_send');
  1441. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'pm_draft');
  1442. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'pm_autosave_draft');
  1443. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'calendar_view');
  1444. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'view_stats');
  1445. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'who_view');
  1446. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_identity_own');
  1447. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_extra_own');
  1448. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_remove_own');
  1449. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_server_avatar');
  1450. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_upload_avatar');
  1451. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_remote_avatar');
  1452. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'send_email_to_members');
  1453. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'profile_title_own');
  1454. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'calendar_post');
  1455. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'calendar_edit_any');
  1456. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'karma_edit');
  1457. INSERT INTO {$db_prefix}permissions (id_group, permission) VALUES (2, 'access_mod_center');
  1458. COMMIT;
  1459. # --------------------------------------------------------
  1460. #
  1461. # Table structure for table `personal_messages`
  1462. #
  1463. CREATE TABLE {$db_prefix}personal_messages (
  1464. id_pm integer primary key,
  1465. id_pm_head int NOT NULL default '0',
  1466. id_member_from int NOT NULL default '0',
  1467. deleted_by_sender smallint NOT NULL default '0',
  1468. from_name varchar(255) NOT NULL,
  1469. msgtime int NOT NULL default '0',
  1470. subject varchar(255) NOT NULL,
  1471. body text NOT NULL
  1472. );
  1473. #
  1474. # Indexes for table `personal_messages`
  1475. #
  1476. CREATE INDEX {$db_prefix}personal_messages_id_member ON {$db_prefix}personal_messages (id_member_from, deleted_by_sender);
  1477. CREATE INDEX {$db_prefix}personal_messages_msgtime ON {$db_prefix}personal_messages (msgtime);
  1478. CREATE INDEX {$db_prefix}personal_messages_id_pm_head ON {$db_prefix}personal_messages (id_pm_head);
  1479. #
  1480. # Table structure for table `pm_recipients`
  1481. #
  1482. CREATE TABLE {$db_prefix}pm_recipients (
  1483. id_pm int NOT NULL default '0',
  1484. id_member int NOT NULL default '0',
  1485. labels varchar(60) NOT NULL default '-1',
  1486. bcc smallint NOT NULL default '0',
  1487. is_read smallint NOT NULL default '0',
  1488. is_new smallint NOT NULL default '0',
  1489. deleted smallint NOT NULL default '0',
  1490. PRIMARY KEY (id_pm, id_member)
  1491. );
  1492. #
  1493. # Indexes for table `pm_recipients`
  1494. #
  1495. CREATE UNIQUE INDEX {$db_prefix}pm_recipients_id_member ON {$db_prefix}pm_recipients (id_member, deleted, id_pm);
  1496. #
  1497. # Table structure for table `pm_rules`
  1498. #
  1499. CREATE TABLE {$db_prefix}pm_rules (
  1500. id_rule integer primary key,
  1501. id_member integer NOT NULL default '0',
  1502. rule_name varchar(60) NOT NULL,
  1503. criteria text NOT NULL,
  1504. actions text NOT NULL,
  1505. delete_pm smallint NOT NULL default '0',
  1506. is_or smallint NOT NULL default '0'
  1507. );
  1508. #
  1509. # Indexes for table `pm_rules`
  1510. #
  1511. CREATE INDEX {$db_prefix}pm_rules_id_member ON {$db_prefix}pm_rules (id_member);
  1512. CREATE INDEX {$db_prefix}pm_rules_delete_pm ON {$db_prefix}pm_rules (delete_pm);
  1513. #
  1514. # Table structure for table `polls`
  1515. #
  1516. CREATE TABLE {$db_prefix}polls (
  1517. id_poll integer primary key,
  1518. question varchar(255) NOT NULL,
  1519. voting_locked smallint NOT NULL default '0',
  1520. max_votes smallint NOT NULL default '1',
  1521. expire_time int NOT NULL default '0',
  1522. hide_results smallint NOT NULL default '0',
  1523. change_vote smallint NOT NULL default '0',
  1524. guest_vote smallint NOT NULL default '0',
  1525. num_guest_voters int NOT NULL default '0',
  1526. reset_poll int NOT NULL default '0',
  1527. id_member int NOT NULL default '0',
  1528. poster_name varchar(255) NOT NULL
  1529. );
  1530. #
  1531. # Table structure for table `poll_choices`
  1532. #
  1533. CREATE TABLE {$db_prefix}poll_choices (
  1534. id_poll int NOT NULL default '0',
  1535. id_choice smallint NOT NULL default '0',
  1536. label varchar(255) NOT NULL,
  1537. votes smallint NOT NULL default '0',
  1538. PRIMARY KEY (id_poll, id_choice)
  1539. );
  1540. #
  1541. # Table structure for table `scheduled_tasks`
  1542. #
  1543. CREATE TABLE {$db_prefix}scheduled_tasks (
  1544. id_task integer primary key,
  1545. next_time int NOT NULL default '0',
  1546. time_offset int NOT NULL default '0',
  1547. time_regularity smallint NOT NULL default '0',
  1548. time_unit varchar(1) NOT NULL default 'h',
  1549. disabled smallint NOT NULL default '0',
  1550. task varchar(24) NOT NULL default ''
  1551. );
  1552. #
  1553. # Indexes for table `scheduled_tasks`
  1554. #
  1555. CREATE INDEX {$db_prefix}scheduled_tasks_next_time ON {$db_prefix}scheduled_tasks (next_time);
  1556. CREATE INDEX {$db_prefix}scheduled_tasks_disabled ON {$db_prefix}scheduled_tasks (disabled);
  1557. CREATE UNIQUE INDEX {$db_prefix}scheduled_tasks_task ON {$db_prefix}scheduled_tasks (task);
  1558. #
  1559. # Dumping data for table `scheduled_tasks`
  1560. #
  1561. BEGIN TRANSACTION;
  1562. 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');
  1563. 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');
  1564. 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');
  1565. 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');
  1566. 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');
  1567. 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');
  1568. 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');
  1569. 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');
  1570. 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');
  1571. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (11, 0, 120, 1, 'd', 1, 'remove_temp_attachments');
  1572. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (12, 0, 180, 1, 'd', 1, 'remove_topic_redirect');
  1573. INSERT INTO {$db_prefix}scheduled_tasks (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (13, 0, 240, 1, 'd', 1, 'remove_old_drafts');
  1574. COMMIT;
  1575. # --------------------------------------------------------
  1576. #
  1577. # Table structure for table `settings`
  1578. #
  1579. CREATE TABLE {$db_prefix}settings (
  1580. variable varchar(255) NOT NULL,
  1581. value text NOT NULL,
  1582. PRIMARY KEY (variable)
  1583. );
  1584. #
  1585. # Dumping data for table `settings`
  1586. #
  1587. BEGIN TRANSACTION;
  1588. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smfVersion', '{$smf_version}');
  1589. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('news', '{$default_news}');
  1590. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('compactTopicPagesContiguous', '5');
  1591. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('compactTopicPagesEnable', '1');
  1592. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableStickyTopics', '1');
  1593. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('todayMod', '1');
  1594. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaMode', '0');
  1595. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaTimeRestrictAdmins', '1');
  1596. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enablePreviousNext', '1');
  1597. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('pollMode', '1');
  1598. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableVBStyleLogin', '1');
  1599. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableCompressedOutput', '{$enableCompressedOutput}');
  1600. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaWaitTime', '1');
  1601. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaMinPosts', '0');
  1602. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaLabel', '{$default_karmaLabel}');
  1603. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaSmiteLabel', '{$default_karmaSmiteLabel}');
  1604. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('karmaApplaudLabel', '{$default_karmaApplaudLabel}');
  1605. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentSizeLimit', '128');
  1606. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentPostLimit', '192');
  1607. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentNumPerPostLimit', '4');
  1608. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentDirSizeLimit', '10240');
  1609. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentUploadDir', '{$boarddir}/attachments');
  1610. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentExtensions', 'doc,gif,jpg,mpg,pdf,png,txt,zip');
  1611. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentCheckExtensions', '0');
  1612. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentShowImages', '1');
  1613. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentEnable', '1');
  1614. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentEncryptFilenames', '1');
  1615. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentThumbnails', '1');
  1616. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentThumbWidth', '150');
  1617. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachmentThumbHeight', '150');
  1618. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('use_subdirectories_for_attachments', '1');
  1619. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('censorIgnoreCase', '1');
  1620. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mostOnline', '1');
  1621. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mostOnlineToday', '1');
  1622. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mostDate', {$current_time});
  1623. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('allow_disableAnnounce', '1');
  1624. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('trackStats', '1');
  1625. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('userLanguage', '1');
  1626. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('titlesEnable', '1');
  1627. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('topicSummaryPosts', '15');
  1628. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableErrorLogging', '1');
  1629. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('max_image_width', '0');
  1630. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('max_image_height', '0');
  1631. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('onlineEnable', '0');
  1632. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_enabled', '0');
  1633. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_maxyear', '2020');
  1634. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_minyear', '2008');
  1635. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_daysaslink', '0');
  1636. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_defaultboard', '');
  1637. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_showholidays', '1');
  1638. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_showbdays', '1');
  1639. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_showevents', '1');
  1640. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_showweeknum', '0');
  1641. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_maxspan', '7');
  1642. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smtp_host', '');
  1643. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smtp_port', '25');
  1644. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smtp_username', '');
  1645. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smtp_password', '');
  1646. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mail_type', '0');
  1647. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('timeLoadPageEnable', '0');
  1648. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('totalMembers', '0');
  1649. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('totalTopics', '1');
  1650. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('totalMessages', '1');
  1651. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('simpleSearch', '0');
  1652. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('censor_vulgar', '');
  1653. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('censor_proper', '');
  1654. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enablePostHTML', '0');
  1655. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('theme_allow', '1');
  1656. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('theme_default', '1');
  1657. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('theme_guests', '1');
  1658. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableEmbeddedFlash', '0');
  1659. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('xmlnews_enable', '1');
  1660. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('xmlnews_maxlen', '255');
  1661. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('rss_limit', '5');
  1662. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('hotTopicPosts', '15');
  1663. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('hotTopicVeryPosts', '25');
  1664. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('registration_method', '0');
  1665. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('send_validation_onChange', '0');
  1666. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('send_welcomeEmail', '1');
  1667. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('allow_editDisplayName', '1');
  1668. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('allow_hideOnline', '1');
  1669. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('guest_hideContacts', '1');
  1670. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('spamWaitTime', '5');
  1671. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('pm_spam_settings', '10,5,20');
  1672. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('reserveWord', '0');
  1673. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('reserveCase', '1');
  1674. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('reserveUser', '1');
  1675. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('reserveName', '1');
  1676. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('reserveNames', '{$default_reserved_names}');
  1677. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('autoLinkUrls', '1');
  1678. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('banLastUpdated', '0');
  1679. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smileys_dir', '{$boarddir}/Smileys');
  1680. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smileys_url', '{$boardurl}/Smileys');
  1681. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_directory', '{$boarddir}/avatars');
  1682. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_url', '{$boardurl}/avatars');
  1683. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_max_height_external', '65');
  1684. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_max_width_external', '65');
  1685. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_action_too_large', 'option_html_resize');
  1686. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_max_height_upload', '65');
  1687. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_max_width_upload', '65');
  1688. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_resize_upload', '1');
  1689. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_download_png', '1');
  1690. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('failed_login_threshold', '3');
  1691. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('oldTopicDays', '120');
  1692. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('edit_wait_time', '90');
  1693. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('edit_disable_time', '0');
  1694. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('autoFixDatabase', '1');
  1695. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('allow_guestAccess', '1');
  1696. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('time_format', '{$default_time_format}');
  1697. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('number_format', '1234.00');
  1698. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableBBC', '1');
  1699. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('max_messageLength', '20000');
  1700. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('signature_settings', '1,300,0,0,0,0,0,0:');
  1701. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('autoOptMaxOnline', '0');
  1702. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('defaultMaxMessages', '15');
  1703. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('defaultMaxTopics', '20');
  1704. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('defaultMaxMembers', '30');
  1705. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableParticipation', '1');
  1706. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('recycle_enable', '0');
  1707. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('recycle_board', '0');
  1708. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('maxMsgID', '1');
  1709. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enableAllMessages', '0');
  1710. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('fixLongWords', '0');
  1711. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('knownThemes', '1,2,3');
  1712. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('who_enabled', '1');
  1713. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('time_offset', '0');
  1714. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cookieTime', '60');
  1715. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('lastActive', '15');
  1716. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smiley_sets_known', 'default,aaron,akyhne,fugue');
  1717. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smiley_sets_names', '{$default_smileyset_name}
  1718. {$default_aaron_smileyset_name}
  1719. {$default_akyhne_smileyset_name}
  1720. {$default_fugue_smileyset_name}');
  1721. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('smiley_sets_default', 'default');
  1722. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_days_for_index', '7');
  1723. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('requireAgreement', '1');
  1724. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('unapprovedMembers', '0');
  1725. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('default_personal_text', '');
  1726. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('package_make_backups', '1');
  1727. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('databaseSession_enable', '{$databaseSession_enable}');
  1728. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('databaseSession_loose', '1');
  1729. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('databaseSession_lifetime', '2880');
  1730. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_cache_size', '50');
  1731. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_results_per_page', '30');
  1732. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_weight_frequency', '30');
  1733. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_weight_age', '25');
  1734. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_weight_length', '20');
  1735. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_weight_subject', '15');
  1736. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_weight_first_message', '10');
  1737. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_max_results', '1200');
  1738. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('search_floodcontrol_time', '5');
  1739. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('permission_enable_deny', '0');
  1740. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('permission_enable_postgroups', '0');
  1741. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mail_next_send', '0');
  1742. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('mail_recent', '0000000000|0');
  1743. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('settings_updated', '0');
  1744. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('next_task_time', '1');
  1745. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('warning_settings', '1,20,0');
  1746. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('warning_watch', '10');
  1747. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('warning_moderate', '35');
  1748. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('warning_mute', '60');
  1749. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('admin_features', '');
  1750. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('last_mod_report_action', '0');
  1751. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('pruningOptions', '30,180,180,180,30,0');
  1752. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cache_enable', '1');
  1753. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('reg_verification', '1');
  1754. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('visual_verification_type', '3');
  1755. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('enable_buddylist', '1');
  1756. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('birthday_email', 'happy_birthday');
  1757. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('dont_repeat_theme_core', '1');
  1758. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('dont_repeat_smileys_20', '1');
  1759. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('dont_repeat_buddylists', '1');
  1760. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachment_image_reencode', '1');
  1761. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachment_image_paranoid', '0');
  1762. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('attachment_thumb_png', '1');
  1763. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_reencode', '1');
  1764. INSERT INTO {$db_prefix}settings (variable, value) VALUES ('avatar_paranoid', '0');
  1765. COMMIT;
  1766. # --------------------------------------------------------
  1767. #
  1768. # Table structure for table `sessions`
  1769. #
  1770. CREATE TABLE {$db_prefix}sessions (
  1771. session_id char(64) NOT NULL,
  1772. last_update int NOT NULL,
  1773. data text NOT NULL,
  1774. PRIMARY KEY (session_id)
  1775. );
  1776. #
  1777. # Table structure for table `smileys`
  1778. #
  1779. CREATE TABLE {$db_prefix}smileys (
  1780. id_smiley integer primary key,
  1781. code varchar(30) NOT NULL default '',
  1782. filename varchar(48) NOT NULL default '',
  1783. description varchar(80) NOT NULL default '',
  1784. smiley_row smallint NOT NULL default '0',
  1785. smiley_order smallint NOT NULL default '0',
  1786. hidden smallint NOT NULL default '0'
  1787. );
  1788. #
  1789. # Dumping data for table `smileys`
  1790. #
  1791. BEGIN TRANSACTION;
  1792. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':)', 'smiley.gif', '{$default_smiley_smiley}', 0, 0);
  1793. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (';)', 'wink.gif', '{$default_wink_smiley}', 1, 0);
  1794. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':D', 'cheesy.gif', '{$default_cheesy_smiley}', 2, 0);
  1795. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (';D', 'grin.gif', '{$default_grin_smiley}', 3, 0);
  1796. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('>:(', 'angry.gif', '{$default_angry_smiley}', 4, 0);
  1797. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':(', 'sad.gif', '{$default_sad_smiley}', 5, 0);
  1798. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':o', 'shocked.gif', '{$default_shocked_smiley}', 6, 0);
  1799. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('8)', 'cool.gif', '{$default_cool_smiley}', 7, 0);
  1800. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('???', 'huh.gif', '{$default_huh_smiley}', 8, 0);
  1801. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('::)', 'rolleyes.gif', '{$default_roll_eyes_smiley}', 9, 0);
  1802. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':P', 'tongue.gif', '{$default_tongue_smiley}', 10, 0);
  1803. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':-[', 'embarrassed.gif', '{$default_embarrassed_smiley}', 11, 0);
  1804. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':-X', 'lipsrsealed.gif', '{$default_lips_sealed_smiley}', 12, 0);
  1805. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':-\', 'undecided.gif', '{$default_undecided_smiley}', 13, 0);
  1806. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':-*', 'kiss.gif', '{$default_kiss_smiley}', 14, 0);
  1807. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':''(', 'cry.gif', '{$default_cry_smiley}', 15, 0);
  1808. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('>:D', 'evil.gif', '{$default_evil_smiley}', 16, 1);
  1809. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('^-^', 'azn.gif', '{$default_azn_smiley}', 17, 1);
  1810. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('O0', 'afro.gif', '{$default_afro_smiley}', 18, 1);
  1811. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES (':))', 'laugh.gif', '{$default_laugh_smiley}', 19, 1);
  1812. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('C:-)', 'police.gif', '{$default_police_smiley}', 20, 1);
  1813. INSERT INTO {$db_prefix}smileys (code, filename, description, smiley_order, hidden) VALUES ('O:-)', 'angel.gif', '{$default_angel_smiley}', 21, 1);
  1814. COMMIT;
  1815. # --------------------------------------------------------
  1816. #
  1817. # Table structure for table `spiders`
  1818. #
  1819. CREATE TABLE {$db_prefix}spiders (
  1820. id_spider integer primary key,
  1821. spider_name varchar(255) NOT NULL,
  1822. user_agent varchar(255) NOT NULL,
  1823. ip_info varchar(255) NOT NULL
  1824. );
  1825. #
  1826. # Dumping data for table `spiders`
  1827. #
  1828. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (1, 'Google', 'googlebot', '');
  1829. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (2, 'Yahoo!', 'slurp', '');
  1830. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (3, 'MSN', 'msnbot', '');
  1831. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (4, 'Google (Mobile)', 'Googlebot-Mobile', '');
  1832. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (5, 'Google (Image)', 'Googlebot-Image', '');
  1833. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (6, 'Google (AdSense)', 'Mediapartners-Google', '');
  1834. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (7, 'Google (Adwords)', 'AdsBot-Google', '');
  1835. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (8, 'Yahoo! (Mobile)', 'YahooSeeker/M1A1-R2D2', '');
  1836. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (9, 'Yahoo! (Image)', 'Yahoo-MMCrawler', '');
  1837. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (10, 'MSN (Mobile)', 'MSNBOT_Mobile', '');
  1838. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (11, 'MSN (Media)', 'msnbot-media', '');
  1839. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (12, 'Cuil', 'twiceler', '');
  1840. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (13, 'Ask', 'Teoma', '');
  1841. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (14, 'Baidu', 'Baiduspider', '');
  1842. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (15, 'Gigablast', 'Gigabot', '');
  1843. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (16, 'InternetArchive', 'ia_archiver-web.archive.org', '');
  1844. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (17, 'Alexa', 'ia_archiver', '');
  1845. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (18, 'Omgili', 'omgilibot', '');
  1846. INSERT INTO {$db_prefix}spiders (id_spider, spider_name, user_agent, ip_info) VALUES (19, 'EntireWeb', 'Speedy Spider', '');
  1847. #
  1848. # Table structure for table `subscriptions`
  1849. #
  1850. CREATE TABLE {$db_prefix}subscriptions(
  1851. id_subscribe integer primary key,
  1852. name varchar(60) NOT NULL,
  1853. description varchar(255) NOT NULL,
  1854. cost text NOT NULL,
  1855. length varchar(6) NOT NULL,
  1856. id_group int NOT NULL default '0',
  1857. add_groups varchar(40) NOT NULL,
  1858. active smallint NOT NULL default '1',
  1859. repeatable smallint NOT NULL default '0',
  1860. allow_partial smallint NOT NULL default '0',
  1861. reminder smallint NOT NULL default '0',
  1862. email_complete text NOT NULL
  1863. );
  1864. #
  1865. # Indexes for table `subscriptions`
  1866. #
  1867. CREATE INDEX {$db_prefix}subscriptions_active ON {$db_prefix}subscriptions (active);
  1868. #
  1869. # Table structure for table `themes`
  1870. #
  1871. CREATE TABLE {$db_prefix}themes (
  1872. id_member int NOT NULL default '0',
  1873. id_theme smallint NOT NULL default '1',
  1874. variable varchar(255) NOT NULL,
  1875. value text NOT NULL,
  1876. PRIMARY KEY (id_theme, id_member, variable)
  1877. );
  1878. #
  1879. # Indexes for table `themes`
  1880. #
  1881. CREATE INDEX {$db_prefix}themes_id_member ON {$db_prefix}themes (id_member);
  1882. #
  1883. # Dumping data for table `themes`
  1884. #
  1885. BEGIN TRANSACTION;
  1886. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'name', '{$default_theme_name}');
  1887. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'theme_url', '{$boardurl}/Themes/default');
  1888. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'images_url', '{$boardurl}/Themes/default/images');
  1889. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'theme_dir', '{$boarddir}/Themes/default');
  1890. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_bbc', '1');
  1891. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_latest_member', '1');
  1892. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_modify', '1');
  1893. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_user_images', '1');
  1894. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_blurb', '1');
  1895. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_gender', '0');
  1896. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_newsfader', '0');
  1897. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'number_recent_posts', '0');
  1898. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_member_bar', '1');
  1899. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'linktree_link', '1');
  1900. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_profile_buttons', '1');
  1901. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_mark_read', '1');
  1902. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_stats_index', '1');
  1903. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'show_board_desc', '1');
  1904. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'newsfader_time', '5000');
  1905. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'allow_no_censored', '0');
  1906. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'additional_options_collapsable', '1');
  1907. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'use_image_buttons', '1');
  1908. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'enable_news', '1');
  1909. INSERT INTO {$db_prefix}themes (id_theme, variable, value) VALUES (1, 'forum_width', '90%');
  1910. INSERT INTO {$db_prefix}themes (id_member, id_theme, variable, value) VALUES (-1, 1, 'display_quick_reply', '1');
  1911. INSERT INTO {$db_prefix}themes (id_member, id_theme, variable, value) VALUES (-1, 1, 'posts_apply_ignore_list', '1');
  1912. COMMIT;
  1913. # --------------------------------------------------------
  1914. #
  1915. # Table structure for table `topics`
  1916. #
  1917. CREATE TABLE {$db_prefix}topics (
  1918. id_topic integer primary key,
  1919. is_sticky smallint NOT NULL default '0',
  1920. id_board smallint NOT NULL default '0',
  1921. id_first_msg int NOT NULL default '0',
  1922. id_last_msg int NOT NULL default '0',
  1923. id_member_started int NOT NULL default '0',
  1924. id_member_updated int NOT NULL default '0',
  1925. id_poll int NOT NULL default '0',
  1926. id_previous_board smallint NOT NULL default '0',
  1927. id_previous_topic int NOT NULL default '0',
  1928. num_replies int NOT NULL default '0',
  1929. num_views int NOT NULL default '0',
  1930. locked smallint NOT NULL default '0',
  1931. redirect_expires int NOT NULL default '0',
  1932. id_redirect_topic int NOT NULL default '0',
  1933. unapproved_posts smallint NOT NULL default '0',
  1934. approved smallint NOT NULL default '1'
  1935. );
  1936. #
  1937. # Indexes for table `topics`
  1938. #
  1939. CREATE UNIQUE INDEX {$db_prefix}topics_last_message ON {$db_prefix}topics (id_last_msg, id_board);
  1940. CREATE UNIQUE INDEX {$db_prefix}topics_first_message ON {$db_prefix}topics (id_first_msg, id_board);
  1941. CREATE UNIQUE INDEX {$db_prefix}topics_poll ON {$db_prefix}topics (id_poll, id_topic);
  1942. CREATE INDEX {$db_prefix}topics_is_sticky ON {$db_prefix}topics (is_sticky);
  1943. CREATE INDEX {$db_prefix}topics_approved ON {$db_prefix}topics (approved);
  1944. CREATE INDEX {$db_prefix}topics_id_board ON {$db_prefix}topics (id_board);
  1945. CREATE INDEX {$db_prefix}topics_member_started ON {$db_prefix}topics (id_member_started, id_board);
  1946. CREATE INDEX {$db_prefix}topics_last_message_sticky ON {$db_prefix}topics (id_board, is_sticky, id_last_msg);
  1947. CREATE INDEX {$db_prefix}topics_board_news ON {$db_prefix}topics (id_board, id_first_msg);
  1948. #
  1949. # Dumping data for table `topics`
  1950. #
  1951. INSERT INTO {$db_prefix}topics
  1952. (id_topic, id_board, id_first_msg, id_last_msg, id_member_started, id_member_updated)
  1953. VALUES (1, 1, 1, 1, 0, 0);
  1954. # --------------------------------------------------------
  1955. #
  1956. # Table structure for table `user_drafts`
  1957. #
  1958. CREATE TABLE {$db_prefix}user_drafts (
  1959. id_draft int unsigned NOT NULL auto_increment,
  1960. id_topic int unsigned NOT NULL default '0',
  1961. id_board smallint unsigned NOT NULL default '0',
  1962. id_reply int unsigned NOT NULL default '0',
  1963. type smallint NOT NULL default '0',
  1964. poster_time int unsigned NOT NULL default '0',
  1965. id_member int unsigned NOT NULL default '0',
  1966. subject varchar(255) NOT NULL default '',
  1967. smileys_enabled smallint NOT NULL default '1',
  1968. body text NOT NULL,
  1969. icon varchar(16) NOT NULL default 'xx',
  1970. locked smallint NOT NULL default '0',
  1971. is_sticky smallint NOT NULL default '0',
  1972. to_list varchar(255) NOT NULL default '',
  1973. outbox smallint NOT NULL default '0',
  1974. PRIMARY KEY (id_draft)
  1975. );
  1976. #
  1977. # Indexes for table `user_drafts`
  1978. #
  1979. CREATE UNIQUE INDEX {$db_prefix}id_member ON {$db_prefix}user_drafts (id_member, id_draft, type);