install_2-1_sqlite3.sql 124 KB

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