system.sql 175 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513
  1. --
  2. -- Database: v 8.0
  3. --
  4. SET @sSysVersion = '8.0.0';
  5. -- --------------------------------------------------------
  6. SET NAMES 'utf8';
  7. DROP TABLE IF EXISTS `sys_categories`, `sys_keys`, `sys_objects_editor`, `sys_objects_captcha`, `sys_objects_social_sharing`, `sys_objects_categories`, `sys_objects_cmts`, `sys_cmts_images`, `sys_cmts_images_preview`, `sys_cmts_images2entries`, `sys_email_templates`, `sys_options`, sys_options_types, `sys_options_categories`, `sys_ip_list`, `sys_ip_members_visits`, `sys_localization_categories`, `sys_localization_keys`, `sys_localization_languages`, `sys_localization_string_params`, `sys_localization_strings`, `sys_acl_actions`, `sys_acl_actions_track`, `sys_acl_matrix`, `sys_acl_level_prices`, `sys_acl_levels`, `sys_sessions`, `sys_acl_levels_members`, `sys_objects_search`, `sys_stat_site`, `sys_alerts`, `sys_alerts_handlers`, `sys_injections`, `sys_injections_admin`, `sys_modules`, `sys_modules_file_tracks`, `sys_permalinks`, `sys_objects_privacy`, `sys_privacy_defaults`, `sys_privacy_groups`, `sys_tags`, `sys_objects_tag`, `sys_transactions`, `sys_objects_auths`, `sys_objects_vote`, `sys_objects_view`, `sys_cron_jobs`, `sys_dnsbl_rules`, `sys_menu_mobile`, `sys_menu_mobile_pages`, `sys_objects_storage`, `sys_objects_uploader`, `sys_storage_user_quotas`, `sys_storage_tokens`, `sys_storage_ghosts`, `sys_storage_mime_types`, `sys_objects_transcoder_images`, `sys_transcoder_images_files`, `sys_transcoder_images_filters`, `sys_accounts`, `sys_profiles`, `sys_antispam_block_log`, `sys_objects_form`, `sys_form_displays`, `sys_form_inputs`, `sys_form_display_inputs`, `sys_form_pre_lists`, `sys_form_pre_values`, `sys_menu_templates`, `sys_objects_menu`, `sys_menu_sets`, `sys_menu_items`, `sys_objects_grid`, `sys_grid_fields`, `sys_grid_actions`, `sys_objects_connection`, `sys_profiles_conn_subscriptions`, `sys_profiles_conn_friends`, `sys_objects_page`, `sys_pages_layouts`, `sys_pages_design_boxes`, `sys_pages_blocks`, `sys_images`, `sys_std_pages`, `sys_std_widgets`, `sys_std_pages_widgets`;
  8. ALTER DATABASE DEFAULT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci';
  9. -- --------------------------------------------------------
  10. CREATE TABLE `sys_categories` (
  11. `Category` varchar(32) NOT NULL default '',
  12. `ID` int(10) unsigned NOT NULL default '0',
  13. `Type` varchar(20) NOT NULL default 'photo',
  14. `Owner` int(10) unsigned NOT NULL,
  15. `Status` enum('active', 'passive') NOT NULL default 'active',
  16. `Date` timestamp NOT NULL default CURRENT_TIMESTAMP,
  17. PRIMARY KEY (`Category`, `ID`, `Type`)
  18. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  19. -- --------------------------------------------------------
  20. CREATE TABLE `sys_keys` (
  21. `key` varchar(32) NOT NULL,
  22. `data` text NOT NULL,
  23. `expire` int(11) NOT NULL,
  24. PRIMARY KEY (`key`)
  25. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  26. -- --------------------------------------------------------
  27. CREATE TABLE `sys_objects_editor` (
  28. `id` int(11) NOT NULL AUTO_INCREMENT,
  29. `object` varchar(32) NOT NULL,
  30. `title` varchar(255) NOT NULL,
  31. `skin` varchar(255) NOT NULL,
  32. `override_class_name` varchar(255) NOT NULL,
  33. `override_class_file` varchar(255) NOT NULL,
  34. PRIMARY KEY (`id`),
  35. UNIQUE KEY `object` (`object`)
  36. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  37. INSERT INTO `sys_objects_editor` (`object`, `title`, `skin`, `override_class_name`, `override_class_file`) VALUES
  38. ('sys_tinymce', 'TinyMCE', 'default', 'BxTemplEditorTinyMCE', ''),
  39. ('sys_cleditor', 'CLEditor', '', 'BxTemplEditorCLEditor', '');
  40. -- --------------------------------------------------------
  41. CREATE TABLE IF NOT EXISTS `sys_objects_social_sharing` (
  42. `id` int(11) NOT NULL AUTO_INCREMENT,
  43. `object` varchar(32) NOT NULL,
  44. `type` enum('html','service') NOT NULL,
  45. `content` text NOT NULL,
  46. `order` int(11) NOT NULL,
  47. `active` tinyint(4) NOT NULL,
  48. PRIMARY KEY (`id`)
  49. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  50. INSERT INTO `sys_objects_social_sharing` (`object`, `type`, `content`, `order`, `active`) VALUES
  51. ('facebook', 'html', '<a class="bx-btn" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u={url_encoded}"><i class="sys-icon facebook"></i><span>32</span></a>', 1, 1),
  52. ('googleplus', 'html', '<a class="bx-btn" target="_blank" href="https://plus.google.com/share?url={url_encoded}"><i class="sys-icon google-plus"></i></a>', 2, 1),
  53. ('twitter', 'html', '<a class="bx-btn" target="_blank" href="https://twitter.com/share?url={url_encoded}"><i class="sys-icon twitter"></i></a>', 3, 1),
  54. ('pinterest', 'html', '<a class="bx-btn" target="_blank" href="http://pinterest.com/pin/create/button/?url={url_encoded}&media={img_url_encoded}&description={title_encoded}" class="pin-it-button" count-layout="horizontal"><i class="sys-icon pinterest"></i></a>', 4, 1);
  55. -- --------------------------------------------------------
  56. CREATE TABLE `sys_objects_captcha` (
  57. `id` int(11) NOT NULL AUTO_INCREMENT,
  58. `object` varchar(32) NOT NULL,
  59. `title` varchar(255) NOT NULL,
  60. `override_class_name` varchar(255) NOT NULL,
  61. `override_class_file` varchar(255) NOT NULL,
  62. PRIMARY KEY (`id`)
  63. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  64. INSERT INTO `sys_objects_captcha` (`object`, `title`, `override_class_name`, `override_class_file`) VALUES
  65. ('sys_recaptcha', 'reCAPTCHA', 'BxTemplCaptchaReCAPTCHA', '');
  66. -- --------------------------------------------------------
  67. CREATE TABLE `sys_objects_auths` (
  68. `ID` int(10) unsigned NOT NULL auto_increment,
  69. `Title` varchar(128) NOT NULL,
  70. `Link` varchar(255) NOT NULL,
  71. PRIMARY KEY (`ID`)
  72. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  73. -- --------------------------------------------------------
  74. --
  75. -- Table structure for table `sys_objects_categories`
  76. --
  77. CREATE TABLE `sys_objects_categories` (
  78. `ID` int(10) unsigned NOT NULL auto_increment,
  79. `ObjectName` varchar(50) NOT NULL,
  80. `Query` text NOT NULL,
  81. `PermalinkParam` varchar(50) NOT NULL default '',
  82. `EnabledPermalink` varchar(100) NOT NULL default '',
  83. `DisabledPermalink` varchar(100) NOT NULL default '',
  84. `LangKey` varchar(100) NOT NULL default '',
  85. PRIMARY KEY (`ID`)
  86. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  87. -- --------------------------------------------------------
  88. --
  89. -- Table structure for table `sys_objects_cmts`
  90. --
  91. CREATE TABLE `sys_objects_cmts` (
  92. `ID` int(10) unsigned NOT NULL auto_increment,
  93. `Name` varchar(50) NOT NULL,
  94. `Table` varchar(50) NOT NULL,
  95. `CharsPostMin` int(10) NOT NULL,
  96. `CharsPostMax` int(10) NOT NULL,
  97. `CharsDisplayMax` int(10) NOT NULL,
  98. `Nl2br` smallint(1) NOT NULL,
  99. `PerView` smallint(6) NOT NULL,
  100. `PerViewReplies` smallint(6) NOT NULL,
  101. `BrowseType` varchar(50) NOT NULL,
  102. `IsBrowseSwitch` smallint(1) NOT NULL,
  103. `PostFormPosition` varchar(50) NOT NULL,
  104. `NumberOfLevels` smallint(6) NOT NULL,
  105. `IsDisplaySwitch` smallint(1) NOT NULL,
  106. `IsRatable` smallint(1) NOT NULL,
  107. `ViewingThreshold` smallint(6) NOT NULL,
  108. `IsOn` smallint(1) NOT NULL,
  109. `RootStylePrefix` varchar(16) NOT NULL default 'cmt',
  110. `BaseUrl` varchar(256) NOT NULL,
  111. `ObjectVote` varchar(32) NOT NULL,
  112. `TriggerTable` varchar(32) NOT NULL,
  113. `TriggerFieldId` varchar(32) NOT NULL,
  114. `TriggerFieldTitle` varchar(32) NOT NULL,
  115. `TriggerFieldComments` varchar(32) NOT NULL,
  116. `ClassName` varchar(32) NOT NULL,
  117. `ClassFile` varchar(256) NOT NULL,
  118. PRIMARY KEY (`ID`)
  119. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  120. -- --------------------------------------------------------
  121. --
  122. -- Table structure for table `sys_email_templates`
  123. --
  124. CREATE TABLE IF NOT EXISTS `sys_email_templates` (
  125. `ID` int(11) unsigned NOT NULL auto_increment,
  126. `Module` varchar(32) NOT NULL,
  127. `NameSystem` varchar(255) NOT NULL,
  128. `Name` varchar(255) NOT NULL,
  129. `Subject` varchar(255) NOT NULL,
  130. `Body` varchar(255) NOT NULL,
  131. PRIMARY KEY (`ID`)
  132. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  133. INSERT INTO `sys_email_templates` (`Module`, `NameSystem`, `Name`, `Subject`, `Body`) VALUES
  134. ('system', '_sys_et_txt_name_system_activation', 't_Activation', '_sys_et_txt_subject_activation', '_sys_et_txt_body_activation'),
  135. ('system', '_sys_et_txt_name_system_admin_email', 't_AdminEmail', '_sys_et_txt_subject_admin_email', '_sys_et_txt_body_admin_email'),
  136. ('system', '_sys_et_txt_name_system_confirmation', 't_Confirmation', '_sys_et_txt_subject_confirmation', '_sys_et_txt_body_confirmation'),
  137. ('system', '_sys_et_txt_name_system_forgot', 't_Forgot', '_sys_et_txt_subject_forgot', '_sys_et_txt_body_forgot'),
  138. ('system', '_sys_et_txt_name_system_password_reset', 't_PasswordReset', '_sys_et_txt_subject_password_reset', '_sys_et_txt_body_password_reset'),
  139. ('system', '_sys_et_txt_name_system_mem_expiration', 't_MemExpiration', '_sys_et_txt_subject_mem_expiration', '_sys_et_txt_body_mem_expiration'),
  140. ('system', '_sys_et_txt_name_system_mem_changed', 't_MemChanged', '_sys_et_txt_subject_mem_changed', '_sys_et_txt_body_mem_changed'),
  141. ('system', '_sys_et_txt_name_system_comment_replied', 't_CommentReplied', '_sys_et_txt_subject_comment_replied', '_sys_et_txt_body_comment_replied');
  142. -- --------------------------------------------------------
  143. --
  144. -- Table structure for table `sys_options`
  145. --
  146. CREATE TABLE `sys_options` (
  147. `id` int(11) unsigned NOT NULL auto_increment,
  148. `category_id` int(11) unsigned NOT NULL default '0',
  149. `name` varchar(64) NOT NULL default '',
  150. `caption` varchar(255) NOT NULL default '',
  151. `value` mediumtext NOT NULL,
  152. `type` enum('digit','text','checkbox','select','combobox','file','list') NOT NULL default 'digit',
  153. `extra` text NOT NULL default '',
  154. `check` text NOT NULL,
  155. `check_error` varchar(255) NOT NULL default '',
  156. `order` int(11) default '0',
  157. PRIMARY KEY (`id`),
  158. UNIQUE KEY `name`(`name`),
  159. KEY `category_id` (`category_id`)
  160. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  161. --
  162. -- Table structure for table `sys_options_categories`
  163. --
  164. CREATE TABLE `sys_options_categories` (
  165. `id` int(11) unsigned NOT NULL auto_increment,
  166. `type_id` int(11) unsigned NOT NULL default '0',
  167. `name` varchar(64) NOT NULL default '',
  168. `caption` varchar(64) NOT NULL default '',
  169. `hidden` tinyint(1) NOT NULL default '0',
  170. `order` int(11) default '0',
  171. PRIMARY KEY (`id`),
  172. UNIQUE KEY `name`(`name`)
  173. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  174. --
  175. -- Table structure for table `sys_options_types`
  176. --
  177. CREATE TABLE `sys_options_types` (
  178. `id` int(11) unsigned NOT NULL auto_increment,
  179. `group` varchar(64) NOT NULL default '',
  180. `name` varchar(64) NOT NULL default '',
  181. `caption` varchar(64) NOT NULL default '',
  182. `icon` varchar(64) NOT NULL default '',
  183. `order` int(11) default '0',
  184. PRIMARY KEY (`id`),
  185. UNIQUE KEY `name`(`name`)
  186. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  187. --
  188. -- Dumping data for tables `sys_options_types`
  189. --
  190. INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES ('system', 'system', '_adm_stg_cpt_type_system', 'mi-stg-system.png', 1);
  191. SET @iTypeId = LAST_INSERT_ID();
  192. --
  193. -- CATEGORY (HIDDEN): System
  194. --
  195. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'system', '_adm_stg_cpt_category_system', 1, 1);
  196. SET @iCategoryId = LAST_INSERT_ID();
  197. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  198. (@iCategoryId, 'cmdDay', '', '10', 'digit', '', '', '', 1),
  199. (@iCategoryId, 'sys_version', '', @sSysVersion, 'digit', '', '', '', 2),
  200. (@iCategoryId, 'sys_install_time', '', '0', 'digit', '', '', '', 3),
  201. (@iCategoryId, 'sys_html_fields', '', 'a:1:{s:6:"system";a:4:{i:0;s:12:"POST.message";i:1;s:15:"REQUEST.message";i:2;s:12:"POST.CmtText";i:3;s:15:"REQUEST.CmtText";}}', 'text', '', '', '', 10),
  202. (@iCategoryId, 'sys_json_fields', '', '', 'text', '', '', '', 11),
  203. (@iCategoryId, 'sys_exceptions_fields', '', '', 'text', '', '', '', 12),
  204. (@iCategoryId, 'sys_site_logo', '', '0', 'digit', '', '', '', 20),
  205. (@iCategoryId, 'sys_site_logo_alt', '_adm_dsg_txt_alt_text', '0', 'text', '', '', '', 21),
  206. (@iCategoryId, 'sys_site_icon', '', '0', 'digit', '', '', '', 22),
  207. (@iCategoryId, 'main_div_width', '', '998px', 'digit', '', '', '', 25),
  208. (@iCategoryId, 'sys_template_cache_image_enable', '', '', 'checkbox', '', '', '', 30),
  209. (@iCategoryId, 'sys_template_cache_image_max_size', '', '5', 'digit', '', '', '', 31),
  210. (@iCategoryId, 'sys_email_confirmation', '', 'on', 'checkbox', '', '', '', 40),
  211. (@iCategoryId, 'sys_redirect_after_account_added', '', 'page.php?i=create-persons-profile', 'digit', '', '', '', 50),
  212. (@iCategoryId, 'sys_editor_default', '', 'sys_tinymce', 'digit', '', '', '', 60),
  213. (@iCategoryId, 'sys_captcha_default', '', 'sys_recaptcha', 'digit', '', '', '', 61);
  214. --
  215. -- CATEGORY (HIDDEN): Languages
  216. --
  217. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'languages', '_adm_stg_cpt_category_languages', 1, 2);
  218. SET @iCategoryId = LAST_INSERT_ID();
  219. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  220. (@iCategoryId, 'lang_default', '_adm_stg_cpt_option_lang_default', '', 'select', 'PHP:bx_import(''BxDolLanguages''); $aValues = BxDolLanguages::getInstance()->getLanguages(false, true); $aResult = array(); foreach($aValues as $sKey => $sValue) $aResult[] = array(\'key\' => $sKey, \'value\' => $sValue); return $aResult;', '', '', 1),
  221. (@iCategoryId, 'sys_calendar_starts_sunday', '_adm_stg_cpt_option_sys_calendar_starts_sunday', '', 'checkbox', '', '', '', 2),
  222. (@iCategoryId, 'sys_format_date', '_adm_stg_cpt_option_sys_format_date', 'D MMM YYYY', 'digit', '', '', '', 3),
  223. (@iCategoryId, 'sys_format_time', '_adm_stg_cpt_option_sys_format_time', 'HH:mm', 'digit', '', '', '', 4),
  224. (@iCategoryId, 'sys_format_datetime', '_adm_stg_cpt_option_sys_format_datetime', 'D MMM YYYY h:mm:ss a', 'digit', '', '', '', 5),
  225. (@iCategoryId, 'sys_format_timeago', '_adm_stg_cpt_option_sys_format_timeago', 432000, 'digit', '', '', '', 6);
  226. --
  227. -- CATEGORY (HIDDEN): Templates
  228. --
  229. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'templates', '_adm_stg_cpt_category_templates', 1, 3);
  230. SET @iCategoryId = LAST_INSERT_ID();
  231. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  232. (@iCategoryId, 'template', '_adm_stg_cpt_option_template', '', 'select', 'PHP:$aValues = get_templates_array(); $aResult = array(); foreach($aValues as $sKey => $sValue) $aResult[] = array(\'key\' => $sKey, \'value\' => $sValue); return $aResult;', 'bx_import(\'BxDolModuleQuery\'); return (strlen($arg0) > 0 && BxDolModuleQuery::getInstance()->isEnabled($arg0)) ? true : false;', 'Template cannot be empty and must have a valid name.', 1),
  233. (@iCategoryId, 'enable_template', '_adm_stg_cpt_option_enable_template', 'on', 'checkbox', '', '', '', 2),
  234. (@iCategoryId, 'sys_template_page_width_min', '_adm_stg_cpt_option_sys_template_page_width_min', '774', 'digit', '', '', '', 3),
  235. (@iCategoryId, 'sys_template_page_width_max', '_adm_stg_cpt_option_sys_template_page_width_max', '1600', 'digit', '', '', '', 4);
  236. --
  237. -- CATEGORY: Cache
  238. --
  239. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'cache', '_adm_stg_cpt_category_cache', 0, 4);
  240. SET @iCategoryId = LAST_INSERT_ID();
  241. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  242. (@iCategoryId, 'sys_db_cache_enable', '_adm_stg_cpt_option_sys_db_cache_enable', '', 'checkbox', '', '', '', 1),
  243. (@iCategoryId, 'sys_db_cache_engine', '_adm_stg_cpt_option_sys_db_cache_engine', 'File', 'select', 'File,EAccelerator,Memcache,APC,XCache', '', '', 2),
  244. (@iCategoryId, 'sys_cache_memcache_host', '_adm_stg_cpt_option_sys_cache_memcache_host', '', 'digit', '', '', '', 3),
  245. (@iCategoryId, 'sys_cache_memcache_port', '_adm_stg_cpt_option_sys_cache_memcache_port', '11211', 'digit', '', '', '', 4),
  246. (@iCategoryId, 'sys_page_cache_enable', '_adm_stg_cpt_option_sys_page_cache_enable', '', 'checkbox', '', '', '', 5),
  247. (@iCategoryId, 'sys_page_cache_engine', '_adm_stg_cpt_option_sys_page_cache_engine', 'File', 'select', 'File,EAccelerator,Memcache,APC,XCache', '', '', 6),
  248. (@iCategoryId, 'sys_pb_cache_enable', '_adm_stg_cpt_option_sys_pb_cache_enable', '', 'checkbox', '', '', '', 7),
  249. (@iCategoryId, 'sys_pb_cache_engine', '_adm_stg_cpt_option_sys_pb_cache_engine', 'File', 'select', 'File,EAccelerator,Memcache,APC,XCache', '', '', 8),
  250. (@iCategoryId, 'sys_mm_cache_engine', '_adm_stg_cpt_option_sys_mm_cache_engine', 'File', 'select', 'File,EAccelerator,Memcache,APC,XCache', '', '', 9),
  251. (@iCategoryId, 'sys_template_cache_enable', '_adm_stg_cpt_option_sys_template_cache_enable', '', 'checkbox', '', '', '', 10),
  252. (@iCategoryId, 'sys_template_cache_engine', '_adm_stg_cpt_option_sys_template_cache_engine', 'FileHtml', 'select', 'FileHtml,EAccelerator,Memcache,APC,XCache', '', '', 11),
  253. (@iCategoryId, 'sys_template_cache_css_enable', '_adm_stg_cpt_option_sys_template_cache_css_enable', '', 'checkbox', '', '', '', 12),
  254. (@iCategoryId, 'sys_template_cache_js_enable', '_adm_stg_cpt_option_sys_template_cache_js_enable', '', 'checkbox', '', '', '', 13),
  255. (@iCategoryId, 'sys_template_cache_compress_enable', '_adm_stg_cpt_option_sys_template_cache_compress_enable', 'on', 'checkbox', '', '', '', 14);
  256. --
  257. -- CATEGORY: Categories
  258. --
  259. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'categories', '_adm_stg_cpt_category_categories', 0, 5);
  260. SET @iCategoryId = LAST_INSERT_ID();
  261. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  262. (@iCategoryId, 'categ_perpage_browse', '_adm_stg_cpt_option_categ_perpage_browse', '30', 'digit', '', '', '', 1),
  263. (@iCategoryId, 'categ_show_columns', '_adm_stg_cpt_option_categ_show_columns', '5', 'digit', '', '', '', 2);
  264. --
  265. -- CATEGORY: General
  266. --
  267. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'general', '_adm_stg_cpt_category_general', 0, 6);
  268. SET @iCategoryId = LAST_INSERT_ID();
  269. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  270. (@iCategoryId, 'sys_ftp_login', '_adm_stg_cpt_option_sys_ftp_login', '', 'digit', '', '', '', 1),
  271. (@iCategoryId, 'sys_ftp_password', '_adm_stg_cpt_option_sys_ftp_password', '', 'digit', '', '', '', 2),
  272. (@iCategoryId, 'sys_ftp_dir', '_adm_stg_cpt_option_sys_ftp_dir', '', 'digit', '', '', '', 3),
  273. (@iCategoryId, 'sys_oauth_key', '_adm_stg_cpt_option_sys_oauth_key', '', 'digit', '', '', '', 4),
  274. (@iCategoryId, 'sys_oauth_secret', '_adm_stg_cpt_option_sys_oauth_secret', '', 'digit', '', '', '', 5),
  275. (@iCategoryId, 'boonexAffID', '_adm_stg_cpt_option_boonex_aff_id', '', 'digit', '', '', '', 6),
  276. (@iCategoryId, 'currency_code', '_adm_stg_cpt_option_currency_code', 'USD', 'select', 'USD,EURO', 'return strlen($arg0) > 0;', 'Cannot be empty.', 7),
  277. (@iCategoryId, 'currency_sign', '_adm_stg_cpt_option_currency_sign', '&#36;', 'digit', '', 'return strlen($arg0) > 0;', 'Cannot be empty.', 8),
  278. (@iCategoryId, 'enable_gd', '_adm_stg_cpt_option_enable_gd', 'on', 'checkbox', '', '', '', 9),
  279. (@iCategoryId, 'useLikeOperator', '_adm_stg_cpt_option_use_like_operator', 'on', 'checkbox', '', '', '', 10);
  280. --
  281. -- CATEGORY: Massmailer
  282. --
  283. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'massmailer', '_adm_stg_cpt_category_massmailer', 0, 7);
  284. SET @iCategoryId = LAST_INSERT_ID();
  285. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  286. (@iCategoryId, 'msgs_per_start', '_adm_stg_cpt_option_msgs_per_start', '20', 'digit', '', '', '', 1);
  287. --
  288. -- CATEGORY: Memberships
  289. --
  290. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'memberships', '_adm_stg_cpt_category_memberships', 0, 8);
  291. SET @iCategoryId = LAST_INSERT_ID();
  292. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  293. (@iCategoryId, 'expire_notification_days', '_adm_stg_cpt_option_expire_notification_days', '1', 'digit', '', '', '', 1),
  294. (@iCategoryId, 'expire_notify_once', '_adm_stg_cpt_option_expire_notify_once', 'on', 'checkbox', '', '', '', 2);
  295. --
  296. -- CATEGORY: Permalinks
  297. --
  298. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'permalinks', '_adm_stg_cpt_category_permalinks', 0, 9);
  299. SET @iCategoryId = LAST_INSERT_ID();
  300. INSERT INTO `sys_options` (`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  301. (@iCategoryId, 'permalinks_pages', '_adm_stg_cpt_option_permalinks_pages', 'on', 'checkbox', '', '', '', 1),
  302. (@iCategoryId, 'permalinks_modules', '_adm_stg_cpt_option_permalinks_modules', 'on', 'checkbox', '', '', '', 2);
  303. --
  304. -- CATEGORY: Pruning
  305. --
  306. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'pruning', '_adm_stg_cpt_category_pruning', 0, 10);
  307. SET @iCategoryId = LAST_INSERT_ID();
  308. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  309. (@iCategoryId, 'db_clean_members_visits', 'Delete stored members IPs older than (days)', '90', 'digit', '', '', '', 1),
  310. (@iCategoryId, 'db_clean_mem_levels', 'Delete membership levels expired for (days)', '30', 'digit', '', '', '', 2);
  311. --
  312. -- CATEGORY: Security
  313. --
  314. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'security', '_adm_stg_cpt_category_security', 0, 11);
  315. SET @iCategoryId = LAST_INSERT_ID();
  316. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  317. (@iCategoryId, 'enable_member_store_ip', '_adm_stg_cpt_option_enable_member_store_ip', 'on', 'checkbox', '', '', '', 1),
  318. (@iCategoryId, 'ipBlacklistMode', '_adm_stg_cpt_option_ip_blacklist_mode', '2', 'digit', '', '', '', 2),
  319. (@iCategoryId, 'ipListGlobalType', '_adm_stg_cpt_option_ip_list_global_type', '0', 'digit', '', '', '', 3),
  320. (@iCategoryId, 'sys_security_impact_threshold_log', '_adm_stg_cpt_option_sys_security_impact_threshold_log', '-1', 'digit', '', '', '', 4),
  321. (@iCategoryId, 'sys_security_impact_threshold_block', '_adm_stg_cpt_option_sys_security_impact_threshold_block', '-1', 'digit', '', '', '', 5),
  322. (@iCategoryId, 'sys_security_form_token_enable', '_adm_stg_cpt_option_sys_security_form_token_enable', 'on', 'checkbox', '', '', '', 6),
  323. (@iCategoryId, 'sys_security_form_token_lifetime', '_adm_stg_cpt_option_sys_security_form_token_lifetime', '86400', 'digit', '', '', '', 7),
  324. (@iCategoryId, 'sys_dnsbl_enable', '_adm_stg_cpt_option_sys_dnsbl_enable', '', 'checkbox', '', '', '', 8),
  325. (@iCategoryId, 'sys_uridnsbl_enable', '_adm_stg_cpt_option_sys_uridnsbl_enable', '', 'checkbox', '', '', '', 9),
  326. (@iCategoryId, 'sys_akismet_enable', '_adm_stg_cpt_option_sys_akismet_enable', '', 'checkbox', '', '', '', 10),
  327. (@iCategoryId, 'sys_akismet_api_key', '_adm_stg_cpt_option_sys_akismet_api_key', '', 'digit', '', '', '', 11),
  328. (@iCategoryId, 'sys_antispam_block', '_adm_stg_cpt_option_sys_antispam_block', '', 'checkbox', '', '', '', 12),
  329. (@iCategoryId, 'sys_antispam_report', '_adm_stg_cpt_option_sys_antispam_report', 'on', 'checkbox', '', '', '', 13),
  330. (@iCategoryId, 'sys_recaptcha_key_public', '_adm_stg_cpt_option_sys_recaptcha_key_public', '', 'digit', '', '', '', 14),
  331. (@iCategoryId, 'sys_recaptcha_key_private', '_adm_stg_cpt_option_sys_recaptcha_key_private', '', 'digit', '', '', '', 15);
  332. --
  333. -- CATEGORY: Site Settings
  334. --
  335. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'site_settings','_adm_stg_cpt_category_site_settings', 0, 12);
  336. SET @iCategoryId = LAST_INSERT_ID();
  337. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  338. (@iCategoryId, 'site_title', '_adm_stg_cpt_option_site_title', 'Community', 'digit', '', '', '', 1),
  339. (@iCategoryId, 'site_email', '_adm_stg_cpt_option_site_email', 'xxx@gmail.com', 'digit', '', '', '', 2),
  340. (@iCategoryId, 'site_email_notify', '_adm_stg_cpt_option_site_email_notify', 'xxx2@gmail.com', 'digit', '', '', '', 3),
  341. (@iCategoryId, 'site_email_bug_report', '_adm_stg_cpt_option_site_email_bug_report', 'xxx3@gmail.com', 'digit', '', '', '', 4);
  342. --
  343. -- CATEGORY: Storage
  344. --
  345. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'storage', '_adm_stg_cpt_category_storage', 0, 13);
  346. SET @iCategoryId = LAST_INSERT_ID();
  347. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  348. (@iCategoryId, 'sys_storage_default', '_adm_stg_cpt_option_sys_storage_default', 'Local', 'select', 'Local,S3', '', '', 1),
  349. (@iCategoryId, 'sys_storage_s3_access_key', '_adm_stg_cpt_option_sys_storage_s3_access_key', '', 'digit', '', '', '', 2),
  350. (@iCategoryId, 'sys_storage_s3_secret_key', '_adm_stg_cpt_option_sys_storage_s3_secret_key', '', 'digit', '', '', '', 3),
  351. (@iCategoryId, 'sys_storage_s3_bucket', '_adm_stg_cpt_option_sys_storage_s3_bucket', '', 'digit', '', '', '', 4),
  352. (@iCategoryId, 'sys_storage_s3_domain', '_adm_stg_cpt_option_sys_storage_s3_domain', '', 'digit', '', '', '', 5);
  353. --
  354. -- CATEGORY: Tags
  355. --
  356. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'tags', '_adm_stg_cpt_category_tags', 0, 14);
  357. SET @iCategoryId = LAST_INSERT_ID();
  358. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  359. (@iCategoryId, 'tags_non_parsable', '_adm_stg_cpt_option_tags_non_parsable', 'hi, hey, hello, all, i, i''m, i''d, am, for, in, to, a, the, on, it''s, is, my, of, are, from, i''m, me, you, and, we, not, will, at, where, there', 'text', '', '', '', 1),
  360. (@iCategoryId, 'tags_perpage_browse', '_adm_stg_cpt_option_tags_perpage_browse', '30', 'digit', '', '', '', 2),
  361. (@iCategoryId, 'tags_show_limit', '_adm_stg_cpt_option_tags_show_limit', '50', 'digit', '', '', '', 3);
  362. -- --------------------------------------------------------
  363. --
  364. -- Table structure for table `sys_ip_list`
  365. --
  366. CREATE TABLE `sys_ip_list` (
  367. `ID` int(11) NOT NULL auto_increment,
  368. `From` int(10) unsigned NOT NULL,
  369. `To` int(10) unsigned NOT NULL,
  370. `Type` enum('allow','deny') NOT NULL default 'deny',
  371. `LastDT` int(11) unsigned NOT NULL,
  372. `Desc` varchar(128) NOT NULL,
  373. PRIMARY KEY (`ID`),
  374. KEY `From` (`From`),
  375. KEY `To` (`To`)
  376. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  377. -- --------------------------------------------------------
  378. --
  379. -- Table structure for table `sys_ip_members_visits`
  380. --
  381. CREATE TABLE `sys_ip_members_visits` (
  382. `ID` int(11) NOT NULL AUTO_INCREMENT,
  383. `MemberID` int(10) unsigned NOT NULL,
  384. `From` int(10) unsigned NOT NULL,
  385. `DateTime` datetime NOT NULL,
  386. PRIMARY KEY (`ID`),
  387. KEY `From` (`From`)
  388. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  389. -- --------------------------------------------------------
  390. --
  391. -- Table structure for table `sys_localization_categories`
  392. --
  393. CREATE TABLE `sys_localization_categories` (
  394. `ID` int(6) unsigned NOT NULL auto_increment,
  395. `Name` varchar(255) NOT NULL default '',
  396. PRIMARY KEY (`ID`),
  397. UNIQUE KEY `Name` (`Name`)
  398. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  399. --
  400. -- Dumping data for table `sys_localization_categories`
  401. --
  402. INSERT INTO `sys_localization_categories` VALUES
  403. (1, 'System'),
  404. (2, 'Custom');
  405. -- --------------------------------------------------------
  406. --
  407. -- Table structure for table `sys_localization_keys`
  408. --
  409. CREATE TABLE `sys_localization_keys` (
  410. `ID` int(10) unsigned NOT NULL auto_increment,
  411. `IDCategory` int(6) unsigned NOT NULL default '0',
  412. `Key` varchar(255) character set utf8 collate utf8_bin NOT NULL default '',
  413. PRIMARY KEY (`ID`),
  414. UNIQUE KEY `Key` (`Key`),
  415. FULLTEXT KEY `KeyFilter` (`Key`)
  416. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  417. -- --------------------------------------------------------
  418. --
  419. -- Table structure for table `sys_localization_languages`
  420. --
  421. CREATE TABLE `sys_localization_languages` (
  422. `ID` int(10) unsigned NOT NULL auto_increment,
  423. `Name` varchar(5) NOT NULL default '',
  424. `Flag` varchar(2) NOT NULL default '',
  425. `Title` varchar(255) NOT NULL default '',
  426. `Enabled` tinyint(1) unsigned NOT NULL default '0',
  427. PRIMARY KEY (`ID`),
  428. UNIQUE KEY `Name` (`Name`)
  429. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  430. -- --------------------------------------------------------
  431. --
  432. -- Table structure for table `sys_localization_string_params`
  433. --
  434. CREATE TABLE `sys_localization_string_params` (
  435. `IDKey` int(10) unsigned NOT NULL default '0',
  436. `IDParam` tinyint(3) unsigned NOT NULL default '0',
  437. `Description` varchar(255) NOT NULL default '',
  438. PRIMARY KEY (`IDKey`,`IDParam`)
  439. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  440. -- --------------------------------------------------------
  441. --
  442. -- Table structure for table `sys_localization_strings`
  443. --
  444. CREATE TABLE `sys_localization_strings` (
  445. `IDKey` int(10) unsigned NOT NULL default '0',
  446. `IDLanguage` int(10) unsigned NOT NULL default '0',
  447. `String` mediumtext NOT NULL,
  448. PRIMARY KEY (`IDKey`,`IDLanguage`),
  449. FULLTEXT KEY `String` (`String`)
  450. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  451. -- --------------------------------------------------------
  452. CREATE TABLE `sys_acl_actions` (
  453. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  454. `Module` varchar(32) NOT NULL,
  455. `Name` varchar(255) NOT NULL default '',
  456. `AdditionalParamName` varchar(80) default NULL,
  457. `Title` varchar(255) NOT NULL,
  458. `Desc` varchar(255) NOT NULL,
  459. `Countable` tinyint(4) NOT NULL DEFAULT '0',
  460. `DisabledForLevels` int(10) unsigned NOT NULL DEFAULT '3',
  461. PRIMARY KEY (`ID`),
  462. FULLTEXT KEY `ModuleAndName` (`Module`, `Name`)
  463. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  464. INSERT INTO `sys_acl_actions` (`ID`, `Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  465. (3, 'system', 'vote', NULL, '_sys_acl_action_vote', '', 0, 0),
  466. (6, 'system', 'comments post', NULL, '_sys_acl_action_comments_post', '', 0, 1),
  467. (8, 'system', 'comments edit own', NULL, '_sys_acl_action_comments_edit_own', '', 0, 1),
  468. (9, 'system', 'comments remove own', NULL, '_sys_acl_action_comments_remove_own', '', 0, 1),
  469. (10, 'system', 'comments edit all', NULL, '_sys_acl_action_comments_edit_all', '', 0, 1),
  470. (11, 'system', 'comments remove all', NULL, '_sys_acl_action_comments_remove_all', '', 0, 1),
  471. (12, 'system', 'create account', NULL, '_sys_acl_action_create_account', '_sys_acl_action_create_account_desc', 0, 2147483646),
  472. (13, 'system', 'delete account', NULL, '_sys_acl_action_delete_account', '_sys_acl_action_delete_account_desc', 0, 2147483646);
  473. CREATE TABLE `sys_acl_actions_track` (
  474. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  475. `IDMember` int(10) unsigned NOT NULL default '0',
  476. `ActionsLeft` int(10) unsigned NOT NULL DEFAULT '0',
  477. `ValidSince` datetime default NULL,
  478. PRIMARY KEY (`IDAction`,`IDMember`)
  479. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  480. CREATE TABLE `sys_acl_matrix` (
  481. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  482. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  483. `AllowedCount` int(10) unsigned DEFAULT NULL,
  484. `AllowedPeriodLen` int(10) unsigned DEFAULT NULL,
  485. `AllowedPeriodStart` datetime default NULL,
  486. `AllowedPeriodEnd` datetime default NULL,
  487. `AdditionalParamValue` varchar(255) default NULL,
  488. PRIMARY KEY (`IDLevel`,`IDAction`)
  489. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  490. SET @iUnauthenticated = 1;
  491. SET @iStandard = 2;
  492. SET @iUnconfirmed = 3;
  493. SET @iPending = 4;
  494. SET @iSuspended = 5;
  495. SET @iModerator = 6;
  496. SET @iAdministrator = 7;
  497. SET @iPremium = 8;
  498. INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES
  499. -- vote
  500. (@iStandard, 3),
  501. (@iModerator, 3),
  502. (@iAdministrator, 3),
  503. (@iPremium, 3),
  504. -- commets post
  505. (@iStandard, 6),
  506. (@iModerator, 6),
  507. (@iAdministrator, 6),
  508. (@iPremium, 6),
  509. -- commets vote
  510. (@iStandard, 7),
  511. (@iModerator, 7),
  512. (@iAdministrator, 7),
  513. (@iPremium, 7),
  514. -- commets edit own
  515. (@iStandard, 8),
  516. (@iModerator, 8),
  517. (@iAdministrator, 8),
  518. (@iPremium, 8),
  519. -- commets remove own
  520. (@iStandard, 9),
  521. (@iModerator, 9),
  522. (@iAdministrator, 9),
  523. (@iPremium, 9),
  524. -- commets edit all
  525. (@iModerator, 10),
  526. (@iAdministrator, 10),
  527. -- commets remove all
  528. (@iModerator, 11),
  529. (@iAdministrator, 11),
  530. -- account create
  531. (@iUnauthenticated, 12),
  532. -- account delete
  533. (@iStandard, 13),
  534. (@iUnconfirmed, 13),
  535. (@iPending, 13),
  536. (@iModerator, 13),
  537. (@iAdministrator, 13),
  538. (@iPremium, 13);
  539. CREATE TABLE `sys_acl_level_prices` (
  540. `id` int(11) NOT NULL auto_increment,
  541. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  542. `Days` int(10) unsigned NOT NULL default '1',
  543. `Price` float unsigned NOT NULL default '1',
  544. `Order` int(11) NOT NULL,
  545. PRIMARY KEY (`id`),
  546. UNIQUE KEY `type` (`IDLevel`,`Days`)
  547. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  548. CREATE TABLE `sys_acl_levels` (
  549. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  550. `Name` varchar(100) NOT NULL default '',
  551. `Icon` varchar(255) NOT NULL default '',
  552. `Description` varchar(255) NOT NULL default '',
  553. `Active` enum('yes','no') NOT NULL default 'no',
  554. `Purchasable` enum('yes','no') NOT NULL default 'yes',
  555. `Removable` enum('yes','no') NOT NULL default 'yes',
  556. `QuotaSize` int(11) NOT NULL,
  557. `QuotaNumber` int(11) NOT NULL,
  558. `QuotaMaxFileSize` int(11) NOT NULL,
  559. `Order` int(11) NOT NULL default '0',
  560. PRIMARY KEY (`ID`),
  561. UNIQUE KEY `Name` (`Name`),
  562. FULLTEXT KEY `Description` (`Description`)
  563. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  564. INSERT INTO `sys_acl_levels` (`ID`, `Name`, `Icon`, `Description`, `Active`, `Purchasable`, `Removable`, `QuotaSize`, `QuotaNumber`, `QuotaMaxFileSize`, `Order`) VALUES
  565. (1, '_adm_prm_txt_level_unauthenticated', 'acl-non-member.png', '', 'yes', 'no', 'no', 0, 0, 0, 1),
  566. (2, '_adm_prm_txt_level_standard', 'acl-standard.png', '', 'yes', 'no', 'no', 0, 0, 0, 2),
  567. (3, '_adm_prm_txt_level_unconfirmed', 'acl-unconfirmed.png', '', 'yes', 'no', 'no', 0, 0, 0, 3),
  568. (4, '_adm_prm_txt_level_pending', 'acl-pending.png', '', 'yes', 'no', 'no', 0, 0, 0, 4),
  569. (5, '_adm_prm_txt_level_suspended', 'acl-suspended.png', '', 'yes', 'no', 'no', 0, 0, 0, 5),
  570. (6, '_adm_prm_txt_level_moderator', 'acl-moderator.png', '', 'yes', 'no', 'no', 0, 0, 0, 6),
  571. (7, '_adm_prm_txt_level_administrator', 'acl-administrator.png', '', 'yes', 'no', 'no', 0, 0, 0, 7),
  572. (8, '_adm_prm_txt_level_premium', 'acl-premium.png', '', 'yes', 'yes', 'no', 0, 0, 0, 8);
  573. -- --------------------------------------------------------
  574. --
  575. -- Table structure for table `boon_sys_sessions`
  576. --
  577. CREATE TABLE IF NOT EXISTS `sys_sessions` (
  578. `id` varchar(32) NOT NULL default '',
  579. `user_id` int(10) unsigned NOT NULL default '0',
  580. `data` text collate utf8_unicode_ci,
  581. `date` int(10) unsigned NOT NULL default '0',
  582. PRIMARY KEY (`id`),
  583. KEY `user_id` (`user_id`),
  584. KEY `date` (`date`)
  585. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  586. -- --------------------------------------------------------
  587. --
  588. -- Table structure for table `sys_acl_levels_members`
  589. --
  590. CREATE TABLE `sys_acl_levels_members` (
  591. `IDMember` int(10) unsigned NOT NULL default '0',
  592. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  593. `DateStarts` datetime NOT NULL default '0000-00-00 00:00:00',
  594. `DateExpires` datetime default NULL,
  595. `TransactionID` varchar(16) NOT NULL default '',
  596. PRIMARY KEY (`IDMember`,`IDLevel`,`DateStarts`)
  597. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  598. -- --------------------------------------------------------
  599. CREATE TABLE `sys_accounts` (
  600. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  601. `profile_id` int(10) unsigned NOT NULL,
  602. `name` varchar(255) NOT NULL,
  603. `email` varchar(255) NOT NULL,
  604. `email_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  605. `receive_updates` tinyint(4) NOT NULL DEFAULT '1',
  606. `receive_news` tinyint(4) NOT NULL DEFAULT '0',
  607. `password` varchar(40) NOT NULL,
  608. `salt` varchar(10) NOT NULL,
  609. `role` tinyint(4) NOT NULL DEFAULT '1',
  610. `lang_id` int(10) unsigned NOT NULL DEFAULT '0',
  611. `added` int(11) NOT NULL DEFAULT '0',
  612. `changed` int(11) NOT NULL DEFAULT '0',
  613. `logged` int(11) NOT NULL DEFAULT '0',
  614. PRIMARY KEY (`id`),
  615. UNIQUE KEY `email` (`email`),
  616. KEY `added` (`added`)
  617. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  618. CREATE TABLE IF NOT EXISTS `sys_profiles` (
  619. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  620. `account_id` int(10) unsigned NOT NULL,
  621. `type` varchar(32) NOT NULL,
  622. `content_id` int(10) unsigned NOT NULL,
  623. `status` enum('active','pending','suspended') NOT NULL DEFAULT 'active',
  624. PRIMARY KEY (`id`),
  625. UNIQUE KEY `account_type_content` (`account_id`,`type`,`content_id`),
  626. KEY `content_type` (`content_id`,`type`)
  627. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  628. -- --------------------------------------------------------
  629. CREATE TABLE `sys_stat_site` (
  630. `ID` tinyint(4) unsigned NOT NULL auto_increment,
  631. `Name` varchar(20) NOT NULL default '',
  632. `Title` varchar(50) NOT NULL default '',
  633. `UserLink` varchar(255) NOT NULL default '',
  634. `UserQuery` varchar(255) NOT NULL default '',
  635. `AdminLink` varchar(255) NOT NULL default '',
  636. `AdminQuery` varchar(255) NOT NULL default '',
  637. `IconName` varchar(50) NOT NULL default '',
  638. `StatOrder` int(4) unsigned NOT NULL default '0',
  639. PRIMARY KEY (`ID`)
  640. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  641. -- --------------------------------------------------------
  642. --
  643. -- Table structure for table 'sys_objects_search'
  644. --
  645. CREATE TABLE `sys_objects_search` (
  646. `ID` int(10) unsigned NOT NULL auto_increment,
  647. `ObjectName` varchar(50) NOT NULL default '',
  648. `Title` varchar(50) NOT NULL default '',
  649. `ClassName` varchar(50) NOT NULL default '',
  650. `ClassPath` varchar(100) NOT NULL default '',
  651. PRIMARY KEY (`ID`)
  652. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  653. -- --------------------------------------------------------
  654. --
  655. -- Table structure for table `sys_tags`
  656. --
  657. CREATE TABLE `sys_tags` (
  658. `Tag` varchar(32) NOT NULL default '',
  659. `ObjID` int(10) unsigned NOT NULL default '0',
  660. `Type` varchar(20) NOT NULL default 'profile',
  661. `Date` timestamp NOT NULL default CURRENT_TIMESTAMP,
  662. PRIMARY KEY (`Tag`,`ObjID`,`Type`)
  663. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  664. --
  665. -- Dumping data for table `sys_tags`
  666. --
  667. -- --------------------------------------------------------
  668. --
  669. -- Table structure for table `sys_objects_tag`
  670. --
  671. CREATE TABLE `sys_objects_tag` (
  672. `ID` int(10) unsigned NOT NULL auto_increment,
  673. `ObjectName` varchar(50) NOT NULL,
  674. `Query` text NOT NULL,
  675. `PermalinkParam` varchar(50) NOT NULL default '',
  676. `EnabledPermalink` varchar(100) NOT NULL default '',
  677. `DisabledPermalink` varchar(100) NOT NULL default '',
  678. `LangKey` varchar(100) NOT NULL default '',
  679. PRIMARY KEY (`ID`)
  680. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  681. -- --------------------------------------------------------
  682. --
  683. -- Table structure for table `sys_transactions`
  684. --
  685. CREATE TABLE `sys_transactions` (
  686. `ID` bigint(20) unsigned NOT NULL auto_increment,
  687. `IDMember` int(10) unsigned NOT NULL default '0',
  688. `IDProvider` smallint(6) unsigned NOT NULL default '0',
  689. `gtwTransactionID` varchar(32) NOT NULL default '',
  690. `Date` datetime NOT NULL default '0000-00-00 00:00:00',
  691. `Amount` float unsigned NOT NULL default '0',
  692. `Currency` varchar(3) NOT NULL default 'USD',
  693. `Status` enum('pending','approved','declined') NOT NULL default 'pending',
  694. `Data` text NOT NULL,
  695. `Description` tinytext,
  696. `Note` tinytext,
  697. PRIMARY KEY (`ID`),
  698. KEY `IDMember` (`IDMember`),
  699. KEY `IDProvider` (`IDProvider`),
  700. KEY `gtwTransactionID` (`gtwTransactionID`)
  701. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  702. -- --------------------------------------------------------
  703. --
  704. -- Table structure for table `sys_objects_vote`
  705. --
  706. CREATE TABLE `sys_objects_vote` (
  707. `ID` int(11) unsigned NOT NULL auto_increment,
  708. `Name` varchar(50) NOT NULL default '',
  709. `TableMain` varchar(50) NOT NULL default '',
  710. `TableTrack` varchar(50) NOT NULL default '',
  711. `PostTimeout` int(11) NOT NULL default '0',
  712. `MinValue` tinyint(4) NOT NULL default '1',
  713. `MaxValue` tinyint(4) NOT NULL default '5',
  714. `IsUndo` tinyint(1) NOT NULL default '0',
  715. `IsOn` tinyint(1) NOT NULL default '1',
  716. `TriggerTable` varchar(32) NOT NULL default '',
  717. `TriggerFieldId` varchar(32) NOT NULL default '',
  718. `TriggerFieldRate` varchar(32) NOT NULL default '',
  719. `TriggerFieldRateCount` varchar(32) NOT NULL default '',
  720. `ClassName` varchar(32) NOT NULL default '',
  721. `ClassFile` varchar(256) NOT NULL default '',
  722. PRIMARY KEY (`ID`)
  723. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  724. -- -------------------------------------------------------
  725. CREATE TABLE `sys_modules` (
  726. `id` int(11) unsigned NOT NULL auto_increment,
  727. `type` varchar(16) NOT NULL default 'module',
  728. `name` varchar(32) NOT NULL default '',
  729. `title` varchar(255) NOT NULL default '',
  730. `vendor` varchar(64) NOT NULL default '',
  731. `version` varchar(32) NOT NULL default '',
  732. `product_url` varchar(128) NOT NULL default '',
  733. `update_url` varchar(128) NOT NULL default '',
  734. `path` varchar(255) NOT NULL default '',
  735. `uri` varchar(32) NOT NULL default '',
  736. `class_prefix` varchar(32) NOT NULL default '',
  737. `db_prefix` varchar(32) NOT NULL default '',
  738. `lang_category` varchar(64) NOT NULL default '',
  739. `dependencies` varchar(255) NOT NULL default '',
  740. `date` int(11) unsigned NOT NULL default '0',
  741. `enabled` tinyint(1) NOT NULL default '0',
  742. PRIMARY KEY (`id`),
  743. UNIQUE KEY `name` (`name`),
  744. UNIQUE KEY `path` (`path`),
  745. UNIQUE KEY `uri` (`uri`),
  746. UNIQUE KEY `class_prefix` (`class_prefix`),
  747. UNIQUE KEY `db_prefix` (`db_prefix`)
  748. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  749. INSERT INTO `sys_modules` (`type`, `name`, `title`, `vendor`, `version`, `product_url`, `update_url`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `dependencies`, `date`, `enabled`) VALUES
  750. ('module', 'system', 'System', 'BoonEx', @sSysVersion, '', '', '', 'system', 'Bx', 'sys_', 'System', '', 0, 1);
  751. CREATE TABLE `sys_modules_file_tracks` (
  752. `id` int(11) unsigned NOT NULL auto_increment,
  753. `module_id` int(11) unsigned NOT NULL default '0',
  754. `file` varchar(255) NOT NULL default '',
  755. `hash` varchar(64) NOT NULL default '',
  756. PRIMARY KEY (`id`)
  757. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  758. -- --------------------------------------------------------
  759. --
  760. -- Table structure for table `sys_images`
  761. --
  762. CREATE TABLE `sys_images` (
  763. `id` int(11) NOT NULL AUTO_INCREMENT,
  764. `profile_id` int(10) unsigned NOT NULL,
  765. `remote_id` varchar(255) NOT NULL,
  766. `path` varchar(255) NOT NULL,
  767. `file_name` varchar(255) NOT NULL,
  768. `mime_type` varchar(128) NOT NULL,
  769. `ext` varchar(32) NOT NULL,
  770. `size` int(11) NOT NULL,
  771. `added` int(11) NOT NULL,
  772. `modified` int(11) NOT NULL,
  773. `private` int(11) NOT NULL,
  774. PRIMARY KEY (`id`),
  775. UNIQUE KEY `remote_id` (`remote_id`)
  776. );
  777. -- --------------------------------------------------------
  778. --
  779. -- Table structure for table `sys_cmts_images`
  780. --
  781. CREATE TABLE IF NOT EXISTS `sys_cmts_images` (
  782. `id` int(11) NOT NULL AUTO_INCREMENT,
  783. `profile_id` int(10) unsigned NOT NULL,
  784. `remote_id` varchar(255) NOT NULL,
  785. `path` varchar(255) NOT NULL,
  786. `file_name` varchar(255) NOT NULL,
  787. `mime_type` varchar(128) NOT NULL,
  788. `ext` varchar(32) NOT NULL,
  789. `size` int(11) NOT NULL,
  790. `added` int(11) NOT NULL,
  791. `modified` int(11) NOT NULL,
  792. `private` int(11) NOT NULL,
  793. PRIMARY KEY (`id`),
  794. UNIQUE KEY `remote_id` (`remote_id`)
  795. );
  796. -- --------------------------------------------------------
  797. --
  798. -- Table structure for table `sys_cmts_images_preview`
  799. --
  800. CREATE TABLE IF NOT EXISTS `sys_cmts_images_preview` (
  801. `id` int(11) NOT NULL AUTO_INCREMENT,
  802. `profile_id` int(10) unsigned NOT NULL,
  803. `remote_id` varchar(255) NOT NULL,
  804. `path` varchar(255) NOT NULL,
  805. `file_name` varchar(255) NOT NULL,
  806. `mime_type` varchar(128) NOT NULL,
  807. `ext` varchar(32) NOT NULL,
  808. `size` int(11) NOT NULL,
  809. `added` int(11) NOT NULL,
  810. `modified` int(11) NOT NULL,
  811. `private` int(11) NOT NULL,
  812. PRIMARY KEY (`id`),
  813. UNIQUE KEY `remote_id` (`remote_id`)
  814. );
  815. -- --------------------------------------------------------
  816. --
  817. -- Table structure for table `sys_cmts_images2entries`
  818. --
  819. CREATE TABLE IF NOT EXISTS `sys_cmts_images2entries` (
  820. `id` int(11) NOT NULL AUTO_INCREMENT,
  821. `system_id` int(11) NOT NULL DEFAULT '0',
  822. `cmt_id` int(11) NOT NULL DEFAULT '0',
  823. `image_id` int(11) NOT NULL DEFAULT '0',
  824. PRIMARY KEY (`id`),
  825. UNIQUE KEY `image` (`system_id`,`cmt_id`,`image_id`)
  826. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  827. -- --------------------------------------------------------
  828. CREATE TABLE `sys_injections` (
  829. `id` int(11) unsigned NOT NULL auto_increment,
  830. `name` varchar(128) NOT NULL default '',
  831. `page_index` int(11) NOT NULL default '0',
  832. `key` varchar(128) NOT NULL default '',
  833. `type` enum('text', 'php') NOT NULL default 'text',
  834. `data` text NOT NULL default '',
  835. `replace` TINYINT NOT NULL DEFAULT '0',
  836. `active` TINYINT NOT NULL DEFAULT '1',
  837. PRIMARY KEY (`id`)
  838. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  839. -- --------------------------------------------------------
  840. CREATE TABLE `sys_injections_admin` (
  841. `id` int(11) unsigned NOT NULL auto_increment,
  842. `name` varchar(128) NOT NULL default '',
  843. `page_index` int(11) NOT NULL default '0',
  844. `key` varchar(128) NOT NULL default '',
  845. `type` enum('text','php') NOT NULL default 'text',
  846. `data` text NOT NULL,
  847. `replace` tinyint(4) NOT NULL default '0',
  848. `active` tinyint(4) NOT NULL default '1',
  849. PRIMARY KEY (`id`)
  850. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  851. -- --------------------------------------------------------
  852. CREATE TABLE `sys_permalinks` (
  853. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  854. `standard` varchar(128) NOT NULL DEFAULT '',
  855. `permalink` varchar(128) NOT NULL DEFAULT '',
  856. `check` varchar(64) NOT NULL DEFAULT '',
  857. `compare_by_prefix` tinyint(4) NOT NULL DEFAULT '0',
  858. PRIMARY KEY (`id`),
  859. UNIQUE KEY `check` (`standard`,`permalink`,`check`)
  860. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  861. INSERT INTO `sys_permalinks` (`standard`, `permalink`, `check`, `compare_by_prefix`) VALUES
  862. ('page.php?i=', 'page/', 'permalinks_pages', 1),
  863. ('modules/?r=', 'm/', 'permalinks_modules', 1);
  864. -- --------------------------------------------------------
  865. CREATE TABLE `sys_alerts_handlers` (
  866. `id` int(11) unsigned NOT NULL auto_increment,
  867. `name` varchar(128) NOT NULL default '',
  868. `class` varchar(128) NOT NULL default '',
  869. `file` varchar(255) NOT NULL default '',
  870. `eval` text NOT NULL default '',
  871. PRIMARY KEY (`id`),
  872. UNIQUE KEY `name` (`name`)
  873. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  874. CREATE TABLE `sys_alerts` (
  875. `id` int(11) unsigned NOT NULL auto_increment,
  876. `unit` varchar(128) NOT NULL default '',
  877. `action` varchar(32) NOT NULL default 'none',
  878. `handler_id` int(11) NOT NULL default '0',
  879. PRIMARY KEY (`id`),
  880. UNIQUE KEY `alert_handler` (`unit`, `action`, `handler_id`)
  881. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  882. -- --------------------------------------------------------
  883. CREATE TABLE `sys_objects_view` (
  884. `id` int(11) NOT NULL auto_increment,
  885. `name` varchar(32) NOT NULL,
  886. `table_track` varchar(32) NOT NULL,
  887. `period` int(11) NOT NULL default '86400',
  888. `is_on` tinyint(4) NOT NULL default '1',
  889. `trigger_table` varchar(32) NOT NULL,
  890. `trigger_field_id` varchar(32) NOT NULL,
  891. `trigger_field_count` varchar(32) NOT NULL,
  892. `class_name` varchar(32) NOT NULL default '',
  893. `class_file` varchar(256) NOT NULL default '',
  894. PRIMARY KEY (`id`)
  895. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  896. -- --------------------------------------------------------
  897. CREATE TABLE `sys_objects_privacy` (
  898. `id` int(11) NOT NULL auto_increment,
  899. `object` varchar(64) NOT NULL default '',
  900. `module` varchar(64) NOT NULL default '',
  901. `action` varchar(255) NOT NULL default '',
  902. `title` varchar(255) NOT NULL default '',
  903. `default_group` varchar(255) NOT NULL default '1',
  904. `table` varchar(255) NOT NULL default '',
  905. `table_field_id` varchar(255) NOT NULL default '',
  906. `table_field_author` varchar(255) NOT NULL default '',
  907. `override_class_name` varchar(255) NOT NULL default '',
  908. `override_class_file` varchar(255) NOT NULL default '',
  909. PRIMARY KEY (`id`),
  910. UNIQUE KEY `object` (`object`),
  911. UNIQUE KEY `action` (`module`, `action`)
  912. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  913. CREATE TABLE `sys_privacy_defaults` (
  914. `owner_id` int(11) NOT NULL default '0',
  915. `action_id` int(11) NOT NULL default '0',
  916. `group_id` int(11) NOT NULL default '0',
  917. PRIMARY KEY (`owner_id`, `action_id`)
  918. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  919. CREATE TABLE `sys_privacy_groups` (
  920. `id` int(11) unsigned NOT NULL auto_increment,
  921. `title` varchar(255) NOT NULL default '',
  922. `check` text NOT NULL default '',
  923. `active` tinyint(4) NOT NULL default '1',
  924. `visible` tinyint(4) NOT NULL default '1',
  925. PRIMARY KEY (`id`)
  926. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  927. INSERT INTO `sys_privacy_groups`(`id`, `title`, `check`, `active`, `visible`) VALUES
  928. ('1', '', '', 1, 0),
  929. ('2', '_sys_ps_group_title_me_only', '@me_only', 1, 1),
  930. ('3', '_sys_ps_group_title_public', '@public', 1, 1),
  931. ('4', '_sys_ps_group_title_members', '@members', 0, 0),
  932. ('5', '_sys_ps_group_title_friends', '@friends', 1, 1);
  933. -- --------------------------------------------------------
  934. --
  935. -- Table structure for table `sys_cron_jobs`
  936. --
  937. CREATE TABLE `sys_cron_jobs` (
  938. `id` int(11) unsigned NOT NULL auto_increment,
  939. `name` varchar(128) NOT NULL default '',
  940. `time` varchar(128) NOT NULL default '*',
  941. `class` varchar(128) NOT NULL default '',
  942. `file` varchar(255) NOT NULL default '',
  943. `eval` text NOT NULL default '',
  944. PRIMARY KEY (`id`)
  945. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  946. --
  947. -- Dumping data for table `sys_cron_jobs`
  948. --
  949. INSERT INTO `sys_cron_jobs` (`name`, `time`, `class`, `file`, `eval`) VALUES
  950. ('cmd', '0 0 * * *', 'BxDolCronCmd', 'inc/classes/BxDolCronCmd.php', ''),
  951. ('notifies', '*/10 * * * *', 'BxDolCronNotifies', 'inc/classes/BxDolCronNotifies.php', ''),
  952. ('video_comments', '* * * * *', 'BxDolCronVideoComments', 'flash/modules/video_comments/inc/classes/BxDolCronVideoComments.php', '');
  953. -- --------------------------------------------------------
  954. CREATE TABLE IF NOT EXISTS `sys_dnsbl_rules` (
  955. `id` int(11) NOT NULL AUTO_INCREMENT,
  956. `chain` enum('spammers','whitelist','uridns') NOT NULL,
  957. `zonedomain` varchar(255) NOT NULL,
  958. `postvresp` varchar(32) NOT NULL,
  959. `url` varchar(255) NOT NULL,
  960. `recheck` varchar(255) NOT NULL,
  961. `comment` varchar(255) NOT NULL,
  962. `added` int(11) NOT NULL,
  963. `active` tinyint(4) NOT NULL,
  964. PRIMARY KEY (`id`)
  965. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  966. INSERT INTO `sys_dnsbl_rules` (`id`, `chain`, `zonedomain`, `postvresp`, `url`, `recheck`, `comment`, `added`, `active`) VALUES
  967. (1, 'whitelist', 'au.countries.nerd.dk.', '127.0.0.2', 'http://countries.nerd.dk/', '', 'Country based zone, any ip from Australia is whitelisted', 1287642420, 0),
  968. (2, 'spammers', 'sbl.spamhaus.org.', 'any', 'http://www.spamhaus.org/sbl/', 'http://www.spamhaus.org/query/bl?ip=%s', 'Any non-failure result from sbl.spamhaus.org is a positive match', 1287642420, 1),
  969. (3, 'spammers', 'zomgbl.spameatingmonkey.net.', 'any', 'http://spameatingmonkey.com/index.html', '', 'This zone is guaranteed to block 100% of all IPs because it lists everything (0.0.0.0/0). This list should never be used in production but exists to verify overall functionality of the blacklist servers.', 1287642420, 0),
  970. (4, 'spammers', 'cn.countries.nerd.dk.', '127.0.0.2', 'http://countries.nerd.dk/', '', 'Country based zone, any ip from China is blocked', 1287642420, 0),
  971. (5, 'uridns', 'multi.surbl.org.', 'any', 'http://www.surbl.org/', 'http://george.surbl.org/lookup.html', 'SURBLs are lists of web sites that have appeared in unsolicited messages. Unlike most lists, SURBLs are not lists of message senders.', 1287642420, 1);
  972. CREATE TABLE IF NOT EXISTS `sys_antispam_block_log` (
  973. `ip` int(10) unsigned NOT NULL,
  974. `member_id` int(10) unsigned NOT NULL,
  975. `type` varchar(32) NOT NULL,
  976. `extra` text NOT NULL,
  977. `added` int(11) NOT NULL,
  978. KEY `ip` (`ip`),
  979. KEY `member_id` (`member_id`)
  980. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  981. CREATE TABLE IF NOT EXISTS `sys_dnsbluri_zones` (
  982. `level` tinyint(4) NOT NULL,
  983. `zone` varchar(64) NOT NULL
  984. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  985. -- --------------------------------------------------------
  986. CREATE TABLE IF NOT EXISTS `sys_menu_mobile_pages` (
  987. `id` int(11) NOT NULL AUTO_INCREMENT,
  988. `page` varchar(32) NOT NULL,
  989. `title` varchar(255) NOT NULL,
  990. `order` int(11) NOT NULL,
  991. PRIMARY KEY (`id`),
  992. UNIQUE KEY `page` (`page`)
  993. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  994. INSERT INTO `sys_menu_mobile_pages` (`id`, `page`, `title`, `order`) VALUES
  995. (1, 'homepage', '_adm_mobile_page_homepage', 1),
  996. (2, 'profile', '_adm_mobile_page_profile', 2);
  997. CREATE TABLE IF NOT EXISTS `sys_menu_mobile` (
  998. `id` int(11) NOT NULL AUTO_INCREMENT,
  999. `type` varchar(32) NOT NULL,
  1000. `page` varchar(32) NOT NULL,
  1001. `title` varchar(255) NOT NULL,
  1002. `icon` varchar(255) NOT NULL,
  1003. `action` int(11) NOT NULL,
  1004. `action_data` varchar(255) NOT NULL,
  1005. `eval_bubble` text NOT NULL,
  1006. `eval_hidden` text NOT NULL,
  1007. `order` int(11) NOT NULL,
  1008. `active` int(11) NOT NULL,
  1009. PRIMARY KEY (`id`)
  1010. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1011. INSERT INTO `sys_menu_mobile` (`type`, `page`, `title`, `icon`, `action`, `action_data`, `eval_bubble`, `eval_hidden`, `order`, `active`) VALUES
  1012. ('system', 'homepage', '_sys_mobile_status', 'home_status.png', 1, '', '', '', 1, 1),
  1013. ('system', 'homepage', '_sys_mobile_mail', 'home_messages.png', 3, '', 'return getNewLettersNum({member_id});', '', 2, 1),
  1014. ('system', 'homepage', '_sys_mobile_friends', 'home_friends.png', 4, '', 'return getFriendRequests({member_id});', '', 3, 1),
  1015. ('system', 'homepage', '_sys_mobile_info', 'home_info.png', 5, '', '', '', 4, 1),
  1016. ('system', 'homepage', '_sys_mobile_search', 'home_search.png', 6, '', '', '', 5, 1),
  1017. ('system', 'profile', '_sys_mobile_profile_info', '', 5, '', '', '', 1, 1),
  1018. ('system', 'profile', '_sys_mobile_profile_contact', '', 3, '', '', '', 2, 1),
  1019. ('system', 'profile', '_sys_mobile_profile_friends', '', 4, '', 'return getFriendNumber(''{profile_id}'');', '', 3, 1);
  1020. -- --------------------------------------------------------
  1021. CREATE TABLE IF NOT EXISTS `sys_objects_storage` (
  1022. `id` int(11) NOT NULL AUTO_INCREMENT,
  1023. `object` varchar(32) NOT NULL,
  1024. `engine` varchar(32) NOT NULL,
  1025. `params` text NOT NULL,
  1026. `token_life` int(11) NOT NULL,
  1027. `cache_control` int(11) NOT NULL,
  1028. `levels` tinyint(4) NOT NULL,
  1029. `table_files` varchar(64) NOT NULL,
  1030. `ext_mode` enum('allow-deny','deny-allow') NOT NULL,
  1031. `ext_allow` text NOT NULL,
  1032. `ext_deny` text NOT NULL,
  1033. `quota_size` int(11) NOT NULL,
  1034. `current_size` int(11) NOT NULL,
  1035. `quota_number` int(11) NOT NULL,
  1036. `current_number` int(11) NOT NULL,
  1037. `max_file_size` int(11) NOT NULL,
  1038. `ts` int(11) NOT NULL,
  1039. PRIMARY KEY (`id`),
  1040. UNIQUE KEY `object` (`object`)
  1041. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1042. INSERT INTO `sys_objects_storage` (`object`, `engine`, `params`, `token_life`, `cache_control`, `levels`, `table_files`, `ext_mode`, `ext_allow`, `ext_deny`, `quota_size`, `current_size`, `quota_number`, `current_number`, `max_file_size`, `ts`) VALUES
  1043. ('sys_images', 'Local', '', 360, 2592000, 0, 'sys_images', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1044. ('sys_cmts_images', 'Local', '', 360, 2592000, 3, 'sys_cmts_images', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1045. ('sys_cmts_images_preview', 'Local', '', 360, 2592000, 3, 'sys_cmts_images_preview', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0);
  1046. CREATE TABLE IF NOT EXISTS `sys_storage_user_quotas` (
  1047. `profile_id` int(11) NOT NULL,
  1048. `current_size` int(11) NOT NULL,
  1049. `current_number` int(11) NOT NULL,
  1050. `ts` int(11) NOT NULL,
  1051. PRIMARY KEY (`profile_id`)
  1052. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1053. CREATE TABLE IF NOT EXISTS `sys_storage_tokens` (
  1054. `id` int(11) NOT NULL,
  1055. `object` varchar(32) NOT NULL,
  1056. `hash` varchar(32) NOT NULL,
  1057. `created` int(10) unsigned NOT NULL,
  1058. UNIQUE KEY `id` (`id`,`object`,`hash`),
  1059. KEY `created` (`created`)
  1060. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1061. CREATE TABLE IF NOT EXISTS `sys_storage_ghosts` (
  1062. `id` int(11) NOT NULL,
  1063. `profile_id` int(10) unsigned NOT NULL,
  1064. `object` varchar(32) NOT NULL,
  1065. `content_id` int(11) NOT NULL,
  1066. `created` int(10) unsigned NOT NULL,
  1067. UNIQUE KEY `id` (`id`,`object`),
  1068. KEY `created` (`created`),
  1069. KEY `profile_object_content` (`profile_id`,`object`,`content_id`)
  1070. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1071. CREATE TABLE IF NOT EXISTS `sys_storage_mime_types` (
  1072. `ext` varchar(32) NOT NULL,
  1073. `mime_type` varchar(128) NOT NULL,
  1074. `icon` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  1075. PRIMARY KEY (`ext`)
  1076. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1077. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`) VALUES
  1078. ('ez', 'application/andrew-inset', ''),
  1079. ('aw', 'application/applixware', ''),
  1080. ('atom', 'application/atom+xml', ''),
  1081. ('atomcat', 'application/atomcat+xml', ''),
  1082. ('atomsvc', 'application/atomsvc+xml', ''),
  1083. ('ccxml', 'application/ccxml+xml', ''),
  1084. ('cdmia', 'application/cdmi-capability', ''),
  1085. ('cdmic', 'application/cdmi-container', ''),
  1086. ('cdmid', 'application/cdmi-domain', ''),
  1087. ('cdmio', 'application/cdmi-object', ''),
  1088. ('cdmiq', 'application/cdmi-queue', ''),
  1089. ('cu', 'application/cu-seeme', ''),
  1090. ('davmount', 'application/davmount+xml', ''),
  1091. ('dssc', 'application/dssc+der', ''),
  1092. ('xdssc', 'application/dssc+xml', ''),
  1093. ('ecma', 'application/ecmascript', ''),
  1094. ('emma', 'application/emma+xml', ''),
  1095. ('epub', 'application/epub+zip', ''),
  1096. ('exi', 'application/exi', ''),
  1097. ('pfr', 'application/font-tdpfr', ''),
  1098. ('stk', 'application/hyperstudio', ''),
  1099. ('ipfix', 'application/ipfix', ''),
  1100. ('jar', 'application/java-archive', ''),
  1101. ('ser', 'application/java-serialized-object', ''),
  1102. ('class', 'application/java-vm', ''),
  1103. ('js', 'application/javascript', ''),
  1104. ('json', 'application/json', ''),
  1105. ('lostxml', 'application/lost+xml', ''),
  1106. ('hqx', 'application/mac-binhex40', ''),
  1107. ('cpt', 'application/mac-compactpro', ''),
  1108. ('mads', 'application/mads+xml', ''),
  1109. ('mrc', 'application/marc', ''),
  1110. ('mrcx', 'application/marcxml+xml', ''),
  1111. ('ma', 'application/mathematica', ''),
  1112. ('nb', 'application/mathematica', ''),
  1113. ('mb', 'application/mathematica', ''),
  1114. ('mathml', 'application/mathml+xml', ''),
  1115. ('mbox', 'application/mbox', ''),
  1116. ('mscml', 'application/mediaservercontrol+xml', ''),
  1117. ('meta4', 'application/metalink4+xml', ''),
  1118. ('mets', 'application/mets+xml', ''),
  1119. ('mods', 'application/mods+xml', ''),
  1120. ('m21', 'application/mp21', ''),
  1121. ('mp21', 'application/mp21', ''),
  1122. ('mp4s', 'application/mp4', ''),
  1123. ('doc', 'application/msword', 'mime-type-document.png'),
  1124. ('dot', 'application/msword', ''),
  1125. ('mxf', 'application/mxf', ''),
  1126. ('bin', 'application/octet-stream', ''),
  1127. ('dms', 'application/octet-stream', ''),
  1128. ('lha', 'application/octet-stream', ''),
  1129. ('lrf', 'application/octet-stream', ''),
  1130. ('lzh', 'application/octet-stream', ''),
  1131. ('so', 'application/octet-stream', ''),
  1132. ('iso', 'application/octet-stream', ''),
  1133. ('dmg', 'application/octet-stream', ''),
  1134. ('dist', 'application/octet-stream', ''),
  1135. ('distz', 'application/octet-stream', ''),
  1136. ('pkg', 'application/octet-stream', ''),
  1137. ('bpk', 'application/octet-stream', ''),
  1138. ('dump', 'application/octet-stream', ''),
  1139. ('elc', 'application/octet-stream', ''),
  1140. ('deploy', 'application/octet-stream', ''),
  1141. ('mobipocket-ebook', 'application/octet-stream', ''),
  1142. ('oda', 'application/oda', ''),
  1143. ('opf', 'application/oebps-package+xml', ''),
  1144. ('ogx', 'application/ogg', ''),
  1145. ('onetoc', 'application/onenote', ''),
  1146. ('onetoc2', 'application/onenote', ''),
  1147. ('onetmp', 'application/onenote', ''),
  1148. ('onepkg', 'application/onenote', ''),
  1149. ('xer', 'application/patch-ops-error+xml', ''),
  1150. ('pdf', 'application/pdf', 'mime-type-document.png'),
  1151. ('pgp', 'application/pgp-encrypted', ''),
  1152. ('asc', 'application/pgp-signature', ''),
  1153. ('sig', 'application/pgp-signature', ''),
  1154. ('prf', 'application/pics-rules', ''),
  1155. ('p10', 'application/pkcs10', 'mime-type-vector.png'),
  1156. ('p7m', 'application/pkcs7-mime', ''),
  1157. ('p7c', 'application/pkcs7-mime', ''),
  1158. ('p7s', 'application/pkcs7-signature', ''),
  1159. ('p8', 'application/pkcs8', ''),
  1160. ('ac', 'application/pkix-attr-cert', ''),
  1161. ('cer', 'application/pkix-cert', ''),
  1162. ('crl', 'application/pkix-crl', ''),
  1163. ('pkipath', 'application/pkix-pkipath', ''),
  1164. ('pki', 'application/pkixcmp', ''),
  1165. ('pls', 'application/pls+xml', ''),
  1166. ('ai', 'application/postscript', 'mime-type-vector.png'),
  1167. ('eps', 'application/postscript', ''),
  1168. ('ps', 'application/postscript', 'mime-type-vector.png'),
  1169. ('cww', 'application/prs.cww', ''),
  1170. ('pskcxml', 'application/pskc+xml', ''),
  1171. ('rdf', 'application/rdf+xml', ''),
  1172. ('rif', 'application/reginfo+xml', ''),
  1173. ('rnc', 'application/relax-ng-compact-syntax', ''),
  1174. ('rl', 'application/resource-lists+xml', ''),
  1175. ('rld', 'application/resource-lists-diff+xml', ''),
  1176. ('rs', 'application/rls-services+xml', ''),
  1177. ('rsd', 'application/rsd+xml', ''),
  1178. ('rss', 'application/rss+xml', ''),
  1179. ('rtf', 'application/rtf', 'mime-type-document.png'),
  1180. ('sbml', 'application/sbml+xml', ''),
  1181. ('scq', 'application/scvp-cv-request', ''),
  1182. ('scs', 'application/scvp-cv-response', ''),
  1183. ('spq', 'application/scvp-vp-request', ''),
  1184. ('spp', 'application/scvp-vp-response', ''),
  1185. ('sdp', 'application/sdp', 'mime-type-presentation.png'),
  1186. ('setpay', 'application/set-payment-initiation', ''),
  1187. ('setreg', 'application/set-registration-initiation', ''),
  1188. ('shf', 'application/shf+xml', ''),
  1189. ('smi', 'application/smil+xml', ''),
  1190. ('smil', 'application/smil+xml', ''),
  1191. ('rq', 'application/sparql-query', ''),
  1192. ('srx', 'application/sparql-results+xml', ''),
  1193. ('gram', 'application/srgs', ''),
  1194. ('grxml', 'application/srgs+xml', ''),
  1195. ('sru', 'application/sru+xml', ''),
  1196. ('ssml', 'application/ssml+xml', ''),
  1197. ('tei', 'application/tei+xml', ''),
  1198. ('teicorpus', 'application/tei+xml', ''),
  1199. ('tfi', 'application/thraud+xml', ''),
  1200. ('tsd', 'application/timestamped-data', ''),
  1201. ('plb', 'application/vnd.3gpp.pic-bw-large', ''),
  1202. ('psb', 'application/vnd.3gpp.pic-bw-small', ''),
  1203. ('pvb', 'application/vnd.3gpp.pic-bw-var', ''),
  1204. ('tcap', 'application/vnd.3gpp2.tcap', ''),
  1205. ('pwn', 'application/vnd.3m.post-it-notes', ''),
  1206. ('aso', 'application/vnd.accpac.simply.aso', ''),
  1207. ('imp', 'application/vnd.accpac.simply.imp', ''),
  1208. ('acu', 'application/vnd.acucobol', ''),
  1209. ('atc', 'application/vnd.acucorp', ''),
  1210. ('acutc', 'application/vnd.acucorp', ''),
  1211. ('air', 'application/vnd.adobe.air-application-installer-package+zip', ''),
  1212. ('fxp', 'application/vnd.adobe.fxp', ''),
  1213. ('fxpl', 'application/vnd.adobe.fxp', ''),
  1214. ('xdp', 'application/vnd.adobe.xdp+xml', ''),
  1215. ('xfdf', 'application/vnd.adobe.xfdf', ''),
  1216. ('ahead', 'application/vnd.ahead.space', ''),
  1217. ('azf', 'application/vnd.airzip.filesecure.azf', ''),
  1218. ('azs', 'application/vnd.airzip.filesecure.azs', ''),
  1219. ('azw', 'application/vnd.amazon.ebook', ''),
  1220. ('acc', 'application/vnd.americandynamics.acc', ''),
  1221. ('ami', 'application/vnd.amiga.ami', ''),
  1222. ('apk', 'application/vnd.android.package-archive', ''),
  1223. ('cii', 'application/vnd.anser-web-certificate-issue-initiation', ''),
  1224. ('fti', 'application/vnd.anser-web-funds-transfer-initiation', ''),
  1225. ('atx', 'application/vnd.antix.game-component', ''),
  1226. ('mpkg', 'application/vnd.apple.installer+xml', ''),
  1227. ('m3u8', 'application/vnd.apple.mpegurl', ''),
  1228. ('swi', 'application/vnd.aristanetworks.swi', ''),
  1229. ('aep', 'application/vnd.audiograph', ''),
  1230. ('mpm', 'application/vnd.blueice.multipass', ''),
  1231. ('bmi', 'application/vnd.bmi', ''),
  1232. ('rep', 'application/vnd.businessobjects', ''),
  1233. ('cdxml', 'application/vnd.chemdraw+xml', ''),
  1234. ('mmd', 'application/vnd.chipnuts.karaoke-mmd', ''),
  1235. ('cdy', 'application/vnd.cinderella', ''),
  1236. ('cla', 'application/vnd.claymore', ''),
  1237. ('rp9', 'application/vnd.cloanto.rp9', ''),
  1238. ('c4g', 'application/vnd.clonk.c4group', ''),
  1239. ('c4d', 'application/vnd.clonk.c4group', ''),
  1240. ('c4f', 'application/vnd.clonk.c4group', ''),
  1241. ('c4p', 'application/vnd.clonk.c4group', ''),
  1242. ('c4u', 'application/vnd.clonk.c4group', ''),
  1243. ('c11amc', 'application/vnd.cluetrust.cartomobile-config', ''),
  1244. ('c11amz', 'application/vnd.cluetrust.cartomobile-config-pkg', ''),
  1245. ('csp', 'application/vnd.commonspace', ''),
  1246. ('cdbcmsg', 'application/vnd.contact.cmsg', ''),
  1247. ('cmc', 'application/vnd.cosmocaller', ''),
  1248. ('clkx', 'application/vnd.crick.clicker', ''),
  1249. ('clkk', 'application/vnd.crick.clicker.keyboard', ''),
  1250. ('clkp', 'application/vnd.crick.clicker.palette', ''),
  1251. ('clkt', 'application/vnd.crick.clicker.template', ''),
  1252. ('clkw', 'application/vnd.crick.clicker.wordbank', ''),
  1253. ('wbs', 'application/vnd.criticaltools.wbs+xml', ''),
  1254. ('pml', 'application/vnd.ctc-posml', ''),
  1255. ('ppd', 'application/vnd.cups-ppd', ''),
  1256. ('car', 'application/vnd.curl.car', ''),
  1257. ('pcurl', 'application/vnd.curl.pcurl', ''),
  1258. ('rdz', 'application/vnd.data-vision.rdz', ''),
  1259. ('uvf', 'application/vnd.dece.data', ''),
  1260. ('uvvf', 'application/vnd.dece.data', ''),
  1261. ('uvd', 'application/vnd.dece.data', ''),
  1262. ('uvvd', 'application/vnd.dece.data', ''),
  1263. ('uvt', 'application/vnd.dece.ttml+xml', ''),
  1264. ('uvvt', 'application/vnd.dece.ttml+xml', ''),
  1265. ('uvx', 'application/vnd.dece.unspecified', ''),
  1266. ('uvvx', 'application/vnd.dece.unspecified', ''),
  1267. ('fe_launch', 'application/vnd.denovo.fcselayout-link', ''),
  1268. ('dna', 'application/vnd.dna', ''),
  1269. ('mlp', 'application/vnd.dolby.mlp', ''),
  1270. ('dpg', 'application/vnd.dpgraph', ''),
  1271. ('dfac', 'application/vnd.dreamfactory', ''),
  1272. ('ait', 'application/vnd.dvb.ait', 'mime-type-vector.png'),
  1273. ('svc', 'application/vnd.dvb.service', ''),
  1274. ('geo', 'application/vnd.dynageo', ''),
  1275. ('mag', 'application/vnd.ecowin.chart', ''),
  1276. ('nml', 'application/vnd.enliven', ''),
  1277. ('esf', 'application/vnd.epson.esf', ''),
  1278. ('msf', 'application/vnd.epson.msf', ''),
  1279. ('qam', 'application/vnd.epson.quickanime', ''),
  1280. ('slt', 'application/vnd.epson.salt', ''),
  1281. ('ssf', 'application/vnd.epson.ssf', ''),
  1282. ('es3', 'application/vnd.eszigno3+xml', ''),
  1283. ('et3', 'application/vnd.eszigno3+xml', ''),
  1284. ('ez2', 'application/vnd.ezpix-album', ''),
  1285. ('ez3', 'application/vnd.ezpix-package', ''),
  1286. ('fdf', 'application/vnd.fdf', ''),
  1287. ('mseed', 'application/vnd.fdsn.mseed', ''),
  1288. ('seed', 'application/vnd.fdsn.seed', ''),
  1289. ('dataless', 'application/vnd.fdsn.seed', ''),
  1290. ('gph', 'application/vnd.flographit', ''),
  1291. ('ftc', 'application/vnd.fluxtime.clip', ''),
  1292. ('fm', 'application/vnd.framemaker', ''),
  1293. ('frame', 'application/vnd.framemaker', ''),
  1294. ('maker', 'application/vnd.framemaker', ''),
  1295. ('book', 'application/vnd.framemaker', ''),
  1296. ('fnc', 'application/vnd.frogans.fnc', ''),
  1297. ('ltf', 'application/vnd.frogans.ltf', ''),
  1298. ('fsc', 'application/vnd.fsc.weblaunch', ''),
  1299. ('oas', 'application/vnd.fujitsu.oasys', ''),
  1300. ('oa2', 'application/vnd.fujitsu.oasys2', ''),
  1301. ('oa3', 'application/vnd.fujitsu.oasys3', ''),
  1302. ('fg5', 'application/vnd.fujitsu.oasysgp', ''),
  1303. ('bh2', 'application/vnd.fujitsu.oasysprs', ''),
  1304. ('ddd', 'application/vnd.fujixerox.ddd', ''),
  1305. ('xdw', 'application/vnd.fujixerox.docuworks', ''),
  1306. ('xbd', 'application/vnd.fujixerox.docuworks.binder', ''),
  1307. ('fzs', 'application/vnd.fuzzysheet', ''),
  1308. ('txd', 'application/vnd.genomatix.tuxedo', ''),
  1309. ('ggb', 'application/vnd.geogebra.file', ''),
  1310. ('ggt', 'application/vnd.geogebra.tool', ''),
  1311. ('gex', 'application/vnd.geometry-explorer', ''),
  1312. ('gre', 'application/vnd.geometry-explorer', ''),
  1313. ('gxt', 'application/vnd.geonext', ''),
  1314. ('g2w', 'application/vnd.geoplan', ''),
  1315. ('g3w', 'application/vnd.geospace', ''),
  1316. ('gmx', 'application/vnd.gmx', ''),
  1317. ('kml', 'application/vnd.google-earth.kml+xml', ''),
  1318. ('kmz', 'application/vnd.google-earth.kmz', ''),
  1319. ('gqf', 'application/vnd.grafeq', ''),
  1320. ('gqs', 'application/vnd.grafeq', ''),
  1321. ('gac', 'application/vnd.groove-account', ''),
  1322. ('ghf', 'application/vnd.groove-help', ''),
  1323. ('gim', 'application/vnd.groove-identity-message', ''),
  1324. ('grv', 'application/vnd.groove-injector', ''),
  1325. ('gtm', 'application/vnd.groove-tool-message', ''),
  1326. ('tpl', 'application/vnd.groove-tool-template', ''),
  1327. ('vcg', 'application/vnd.groove-vcard', ''),
  1328. ('hal', 'application/vnd.hal+xml', ''),
  1329. ('zmm', 'application/vnd.handheld-entertainment+xml', ''),
  1330. ('hbci', 'application/vnd.hbci', ''),
  1331. ('les', 'application/vnd.hhe.lesson-player', ''),
  1332. ('hpgl', 'application/vnd.hp-hpgl', 'mime-type-vector.png'),
  1333. ('hpid', 'application/vnd.hp-hpid', ''),
  1334. ('hps', 'application/vnd.hp-hps', ''),
  1335. ('jlt', 'application/vnd.hp-jlyt', ''),
  1336. ('pcl', 'application/vnd.hp-pcl', ''),
  1337. ('pclxl', 'application/vnd.hp-pclxl', ''),
  1338. ('sfd-hdstx', 'application/vnd.hydrostatix.sof-data', ''),
  1339. ('x3d', 'application/vnd.hzn-3d-crossword', ''),
  1340. ('mpy', 'application/vnd.ibm.minipay', ''),
  1341. ('afp', 'application/vnd.ibm.modcap', ''),
  1342. ('listafp', 'application/vnd.ibm.modcap', ''),
  1343. ('list3820', 'application/vnd.ibm.modcap', ''),
  1344. ('irm', 'application/vnd.ibm.rights-management', ''),
  1345. ('sc', 'application/vnd.ibm.secure-container', ''),
  1346. ('icc', 'application/vnd.iccprofile', ''),
  1347. ('icm', 'application/vnd.iccprofile', ''),
  1348. ('igl', 'application/vnd.igloader', ''),
  1349. ('ivp', 'application/vnd.immervision-ivp', ''),
  1350. ('ivu', 'application/vnd.immervision-ivu', ''),
  1351. ('igm', 'application/vnd.insors.igm', ''),
  1352. ('xpw', 'application/vnd.intercon.formnet', ''),
  1353. ('xpx', 'application/vnd.intercon.formnet', ''),
  1354. ('i2g', 'application/vnd.intergeo', ''),
  1355. ('qbo', 'application/vnd.intu.qbo', ''),
  1356. ('qfx', 'application/vnd.intu.qfx', ''),
  1357. ('rcprofile', 'application/vnd.ipunplugged.rcprofile', ''),
  1358. ('irp', 'application/vnd.irepository.package+xml', ''),
  1359. ('xpr', 'application/vnd.is-xpr', ''),
  1360. ('fcs', 'application/vnd.isac.fcs', ''),
  1361. ('jam', 'application/vnd.jam', ''),
  1362. ('rms', 'application/vnd.jcp.javame.midlet-rms', ''),
  1363. ('jisp', 'application/vnd.jisp', ''),
  1364. ('joda', 'application/vnd.joost.joda-archive', ''),
  1365. ('ktz', 'application/vnd.kahootz', ''),
  1366. ('ktr', 'application/vnd.kahootz', ''),
  1367. ('karbon', 'application/vnd.kde.karbon', ''),
  1368. ('chrt', 'application/vnd.kde.kchart', ''),
  1369. ('kfo', 'application/vnd.kde.kformula', ''),
  1370. ('flw', 'application/vnd.kde.kivio', ''),
  1371. ('kon', 'application/vnd.kde.kontour', ''),
  1372. ('kpr', 'application/vnd.kde.kpresenter', ''),
  1373. ('kpt', 'application/vnd.kde.kpresenter', ''),
  1374. ('ksp', 'application/vnd.kde.kspread', ''),
  1375. ('kwd', 'application/vnd.kde.kword', ''),
  1376. ('kwt', 'application/vnd.kde.kword', ''),
  1377. ('htke', 'application/vnd.kenameaapp', ''),
  1378. ('kia', 'application/vnd.kidspiration', ''),
  1379. ('kne', 'application/vnd.kinar', ''),
  1380. ('knp', 'application/vnd.kinar', ''),
  1381. ('skp', 'application/vnd.koan', ''),
  1382. ('skd', 'application/vnd.koan', ''),
  1383. ('skt', 'application/vnd.koan', ''),
  1384. ('skm', 'application/vnd.koan', ''),
  1385. ('sse', 'application/vnd.kodak-descriptor', ''),
  1386. ('lasxml', 'application/vnd.las.las+xml', ''),
  1387. ('lbd', 'application/vnd.llamagraphics.life-balance.desktop', ''),
  1388. ('lbe', 'application/vnd.llamagraphics.life-balance.exchange+xml', ''),
  1389. ('123', 'application/vnd.lotus-1-2-3', ''),
  1390. ('apr', 'application/vnd.lotus-approach', ''),
  1391. ('pre', 'application/vnd.lotus-freelance', ''),
  1392. ('nsf', 'application/vnd.lotus-notes', ''),
  1393. ('org', 'application/vnd.lotus-organizer', ''),
  1394. ('scm', 'application/vnd.lotus-screencam', ''),
  1395. ('lwp', 'application/vnd.lotus-wordpro', ''),
  1396. ('portpkg', 'application/vnd.macports.portpkg', ''),
  1397. ('mcd', 'application/vnd.mcd', ''),
  1398. ('mc1', 'application/vnd.medcalcdata', ''),
  1399. ('cdkey', 'application/vnd.mediastation.cdkey', ''),
  1400. ('mwf', 'application/vnd.mfer', ''),
  1401. ('mfm', 'application/vnd.mfmp', ''),
  1402. ('flo', 'application/vnd.micrografx.flo', ''),
  1403. ('igx', 'application/vnd.micrografx.igx', ''),
  1404. ('mif', 'application/vnd.mif', ''),
  1405. ('daf', 'application/vnd.mobius.daf', ''),
  1406. ('dis', 'application/vnd.mobius.dis', ''),
  1407. ('mbk', 'application/vnd.mobius.mbk', ''),
  1408. ('mqy', 'application/vnd.mobius.mqy', ''),
  1409. ('msl', 'application/vnd.mobius.msl', ''),
  1410. ('plc', 'application/vnd.mobius.plc', ''),
  1411. ('txf', 'application/vnd.mobius.txf', ''),
  1412. ('mpn', 'application/vnd.mophun.application', ''),
  1413. ('mpc', 'application/vnd.mophun.certificate', ''),
  1414. ('xul', 'application/vnd.mozilla.xul+xml', ''),
  1415. ('cil', 'application/vnd.ms-artgalry', 'mime-type-vector.png'),
  1416. ('cab', 'application/vnd.ms-cab-compressed', 'mime-type-archive.png'),
  1417. ('xls', 'application/vnd.ms-excel', 'mime-type-spreadsheet.png'),
  1418. ('xlm', 'application/vnd.ms-excel', ''),
  1419. ('xla', 'application/vnd.ms-excel', ''),
  1420. ('xlc', 'application/vnd.ms-excel', ''),
  1421. ('xlt', 'application/vnd.ms-excel', 'mime-type-spreadsheet.png'),
  1422. ('xlw', 'application/vnd.ms-excel', ''),
  1423. ('xlam', 'application/vnd.ms-excel.addin.macroenabled.12', ''),
  1424. ('xlsb', 'application/vnd.ms-excel.sheet.binary.macroenabled.12', ''),
  1425. ('xlsm', 'application/vnd.ms-excel.sheet.macroenabled.12', ''),
  1426. ('xltm', 'application/vnd.ms-excel.template.macroenabled.12', ''),
  1427. ('eot', 'application/vnd.ms-fontobject', ''),
  1428. ('chm', 'application/vnd.ms-htmlhelp', ''),
  1429. ('ims', 'application/vnd.ms-ims', ''),
  1430. ('lrm', 'application/vnd.ms-lrm', ''),
  1431. ('thmx', 'application/vnd.ms-officetheme', ''),
  1432. ('cat', 'application/vnd.ms-pki.seccat', ''),
  1433. ('stl', 'application/vnd.ms-pki.stl', ''),
  1434. ('ppt', 'application/vnd.ms-powerpoint', 'mime-type-presentation.png'),
  1435. ('pps', 'application/vnd.ms-powerpoint', ''),
  1436. ('pot', 'application/vnd.ms-powerpoint', ''),
  1437. ('ppam', 'application/vnd.ms-powerpoint.addin.macroenabled.12', ''),
  1438. ('pptm', 'application/vnd.ms-powerpoint.presentation.macroenabled.12', ''),
  1439. ('sldm', 'application/vnd.ms-powerpoint.slide.macroenabled.12', ''),
  1440. ('ppsm', 'application/vnd.ms-powerpoint.slideshow.macroenabled.12', ''),
  1441. ('potm', 'application/vnd.ms-powerpoint.template.macroenabled.12', ''),
  1442. ('mpp', 'application/vnd.ms-project', ''),
  1443. ('mpt', 'application/vnd.ms-project', ''),
  1444. ('docm', 'application/vnd.ms-word.document.macroenabled.12', ''),
  1445. ('dotm', 'application/vnd.ms-word.template.macroenabled.12', ''),
  1446. ('wps', 'application/vnd.ms-works', ''),
  1447. ('wks', 'application/vnd.ms-works', ''),
  1448. ('wcm', 'application/vnd.ms-works', ''),
  1449. ('wdb', 'application/vnd.ms-works', ''),
  1450. ('wpl', 'application/vnd.ms-wpl', ''),
  1451. ('xps', 'application/vnd.ms-xpsdocument', ''),
  1452. ('mseq', 'application/vnd.mseq', ''),
  1453. ('mus', 'application/vnd.musician', ''),
  1454. ('msty', 'application/vnd.muvee.style', ''),
  1455. ('nlu', 'application/vnd.neurolanguage.nlu', ''),
  1456. ('nnd', 'application/vnd.noblenet-directory', ''),
  1457. ('nns', 'application/vnd.noblenet-sealer', ''),
  1458. ('nnw', 'application/vnd.noblenet-web', ''),
  1459. ('ngdat', 'application/vnd.nokia.n-gage.data', ''),
  1460. ('n-gage', 'application/vnd.nokia.n-gage.symbian.install', ''),
  1461. ('rpst', 'application/vnd.nokia.radio-preset', ''),
  1462. ('rpss', 'application/vnd.nokia.radio-presets', ''),
  1463. ('edm', 'application/vnd.novadigm.edm', ''),
  1464. ('edx', 'application/vnd.novadigm.edx', ''),
  1465. ('ext', 'application/vnd.novadigm.ext', ''),
  1466. ('odc', 'application/vnd.oasis.opendocument.chart', ''),
  1467. ('otc', 'application/vnd.oasis.opendocument.chart-template', ''),
  1468. ('odb', 'application/vnd.oasis.opendocument.database', ''),
  1469. ('odf', 'application/vnd.oasis.opendocument.formula', ''),
  1470. ('odft', 'application/vnd.oasis.opendocument.formula-template', ''),
  1471. ('odg', 'application/vnd.oasis.opendocument.graphics', 'mime-type-vector.png'),
  1472. ('otg', 'application/vnd.oasis.opendocument.graphics-template', ''),
  1473. ('odi', 'application/vnd.oasis.opendocument.image', ''),
  1474. ('oti', 'application/vnd.oasis.opendocument.image-template', ''),
  1475. ('odp', 'application/vnd.oasis.opendocument.presentation', 'mime-type-presentation.png'),
  1476. ('otp', 'application/vnd.oasis.opendocument.presentation-template', ''),
  1477. ('ods', 'application/vnd.oasis.opendocument.spreadsheet', 'mime-type-spreadsheet.png'),
  1478. ('ots', 'application/vnd.oasis.opendocument.spreadsheet-template', 'mime-type-spreadsheet.png'),
  1479. ('odt', 'application/vnd.oasis.opendocument.text', 'mime-type-document.png'),
  1480. ('odm', 'application/vnd.oasis.opendocument.text-master', ''),
  1481. ('ott', 'application/vnd.oasis.opendocument.text-template', 'mime-type-document.png'),
  1482. ('oth', 'application/vnd.oasis.opendocument.text-web', ''),
  1483. ('xo', 'application/vnd.olpc-sugar', ''),
  1484. ('dd2', 'application/vnd.oma.dd2+xml', ''),
  1485. ('oxt', 'application/vnd.openofficeorg.extension', ''),
  1486. ('pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'mime-type-presentation.png'),
  1487. ('sldx', 'application/vnd.openxmlformats-officedocument.presentationml.slide', ''),
  1488. ('ppsx', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', ''),
  1489. ('potx', 'application/vnd.openxmlformats-officedocument.presentationml.template', ''),
  1490. ('xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'mime-type-spreadsheet.png'),
  1491. ('xltx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', ''),
  1492. ('docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'mime-type-document.png'),
  1493. ('dotx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', ''),
  1494. ('mgp', 'application/vnd.osgeo.mapguide.package', ''),
  1495. ('dp', 'application/vnd.osgi.dp', ''),
  1496. ('pdb', 'application/vnd.palm', 'mime-type-document.png'),
  1497. ('pqa', 'application/vnd.palm', ''),
  1498. ('oprc', 'application/vnd.palm', ''),
  1499. ('paw', 'application/vnd.pawaafile', ''),
  1500. ('str', 'application/vnd.pg.format', ''),
  1501. ('ei6', 'application/vnd.pg.osasli', ''),
  1502. ('efif', 'application/vnd.picsel', ''),
  1503. ('wg', 'application/vnd.pmi.widget', ''),
  1504. ('plf', 'application/vnd.pocketlearn', ''),
  1505. ('pbd', 'application/vnd.powerbuilder6', ''),
  1506. ('box', 'application/vnd.previewsystems.box', ''),
  1507. ('mgz', 'application/vnd.proteus.magazine', ''),
  1508. ('qps', 'application/vnd.publishare-delta-tree', ''),
  1509. ('ptid', 'application/vnd.pvi.ptid1', ''),
  1510. ('qxd', 'application/vnd.quark.quarkxpress', ''),
  1511. ('qxt', 'application/vnd.quark.quarkxpress', ''),
  1512. ('qwd', 'application/vnd.quark.quarkxpress', ''),
  1513. ('qwt', 'application/vnd.quark.quarkxpress', ''),
  1514. ('qxl', 'application/vnd.quark.quarkxpress', ''),
  1515. ('qxb', 'application/vnd.quark.quarkxpress', ''),
  1516. ('bed', 'application/vnd.realvnc.bed', ''),
  1517. ('mxl', 'application/vnd.recordare.musicxml', ''),
  1518. ('musicxml', 'application/vnd.recordare.musicxml+xml', ''),
  1519. ('cryptonote', 'application/vnd.rig.cryptonote', ''),
  1520. ('cod', 'application/vnd.rim.cod', ''),
  1521. ('rm', 'application/vnd.rn-realmedia', ''),
  1522. ('link66', 'application/vnd.route66.link66+xml', ''),
  1523. ('st', 'application/vnd.sailingtracker.track', ''),
  1524. ('see', 'application/vnd.seemail', ''),
  1525. ('sema', 'application/vnd.sema', ''),
  1526. ('semd', 'application/vnd.semd', ''),
  1527. ('semf', 'application/vnd.semf', ''),
  1528. ('ifm', 'application/vnd.shana.informed.formdata', ''),
  1529. ('itp', 'application/vnd.shana.informed.formtemplate', ''),
  1530. ('iif', 'application/vnd.shana.informed.interchange', ''),
  1531. ('ipk', 'application/vnd.shana.informed.package', ''),
  1532. ('twd', 'application/vnd.simtech-mindmapper', ''),
  1533. ('twds', 'application/vnd.simtech-mindmapper', ''),
  1534. ('mmf', 'application/vnd.smaf', ''),
  1535. ('teacher', 'application/vnd.smart.teacher', ''),
  1536. ('sdkm', 'application/vnd.solent.sdkm+xml', ''),
  1537. ('sdkd', 'application/vnd.solent.sdkm+xml', ''),
  1538. ('dxp', 'application/vnd.spotfire.dxp', ''),
  1539. ('sfs', 'application/vnd.spotfire.sfs', ''),
  1540. ('sdc', 'application/vnd.stardivision.calc', 'mime-type-spreadsheet.png'),
  1541. ('sda', 'application/vnd.stardivision.draw', ''),
  1542. ('sdd', 'application/vnd.stardivision.impress', 'mime-type-presentation.png'),
  1543. ('smf', 'application/vnd.stardivision.math', ''),
  1544. ('sdw', 'application/vnd.stardivision.writer', 'mime-type-document.png'),
  1545. ('vor', 'application/vnd.stardivision.writer', ''),
  1546. ('sgl', 'application/vnd.stardivision.writer-global', ''),
  1547. ('sm', 'application/vnd.stepmania.stepchart', ''),
  1548. ('sxc', 'application/vnd.sun.xml.calc', 'mime-type-spreadsheet.png'),
  1549. ('stc', 'application/vnd.sun.xml.calc.template', 'mime-type-spreadsheet.png'),
  1550. ('sxd', 'application/vnd.sun.xml.draw', 'mime-type-vector.png'),
  1551. ('std', 'application/vnd.sun.xml.draw.template', ''),
  1552. ('sxi', 'application/vnd.sun.xml.impress', 'mime-type-presentation.png'),
  1553. ('sti', 'application/vnd.sun.xml.impress.template', 'mime-type-presentation.png'),
  1554. ('sxm', 'application/vnd.sun.xml.math', ''),
  1555. ('sxw', 'application/vnd.sun.xml.writer', 'mime-type-document.png'),
  1556. ('sxg', 'application/vnd.sun.xml.writer.global', ''),
  1557. ('stw', 'application/vnd.sun.xml.writer.template', 'mime-type-document.png'),
  1558. ('sus', 'application/vnd.sus-calendar', ''),
  1559. ('susp', 'application/vnd.sus-calendar', ''),
  1560. ('svd', 'application/vnd.svd', ''),
  1561. ('sis', 'application/vnd.symbian.install', ''),
  1562. ('sisx', 'application/vnd.symbian.install', ''),
  1563. ('xsm', 'application/vnd.syncml+xml', ''),
  1564. ('bdm', 'application/vnd.syncml.dm+wbxml', ''),
  1565. ('xdm', 'application/vnd.syncml.dm+xml', ''),
  1566. ('tao', 'application/vnd.tao.intent-module-archive', ''),
  1567. ('tmo', 'application/vnd.tmobile-livetv', ''),
  1568. ('tpt', 'application/vnd.trid.tpt', ''),
  1569. ('mxs', 'application/vnd.triscape.mxs', ''),
  1570. ('tra', 'application/vnd.trueapp', ''),
  1571. ('ufd', 'application/vnd.ufdl', ''),
  1572. ('ufdl', 'application/vnd.ufdl', ''),
  1573. ('utz', 'application/vnd.uiq.theme', ''),
  1574. ('umj', 'application/vnd.umajin', ''),
  1575. ('unityweb', 'application/vnd.unity', ''),
  1576. ('uoml', 'application/vnd.uoml+xml', ''),
  1577. ('vcx', 'application/vnd.vcx', ''),
  1578. ('vsd', 'application/vnd.visio', ''),
  1579. ('vst', 'application/vnd.visio', ''),
  1580. ('vss', 'application/vnd.visio', 'mime-type-vector.png'),
  1581. ('vsw', 'application/vnd.visio', ''),
  1582. ('vis', 'application/vnd.visionary', ''),
  1583. ('vsf', 'application/vnd.vsf', ''),
  1584. ('wbxml', 'application/vnd.wap.wbxml', ''),
  1585. ('wmlc', 'application/vnd.wap.wmlc', ''),
  1586. ('wmlsc', 'application/vnd.wap.wmlscriptc', ''),
  1587. ('wtb', 'application/vnd.webturbo', ''),
  1588. ('nbp', 'application/vnd.wolfram.player', ''),
  1589. ('wpd', 'application/vnd.wordperfect', ''),
  1590. ('wqd', 'application/vnd.wqd', ''),
  1591. ('stf', 'application/vnd.wt.stf', ''),
  1592. ('xar', 'application/vnd.xara', ''),
  1593. ('xfdl', 'application/vnd.xfdl', ''),
  1594. ('hvd', 'application/vnd.yamaha.hv-dic', ''),
  1595. ('hvs', 'application/vnd.yamaha.hv-script', ''),
  1596. ('hvp', 'application/vnd.yamaha.hv-voice', ''),
  1597. ('osf', 'application/vnd.yamaha.openscoreformat', ''),
  1598. ('osfpvg', 'application/vnd.yamaha.openscoreformat.osfpvg+xml', ''),
  1599. ('saf', 'application/vnd.yamaha.smaf-audio', ''),
  1600. ('spf', 'application/vnd.yamaha.smaf-phrase', ''),
  1601. ('cmp', 'application/vnd.yellowriver-custom-menu', ''),
  1602. ('zir', 'application/vnd.zul', ''),
  1603. ('zirz', 'application/vnd.zul', ''),
  1604. ('zaz', 'application/vnd.zzazz.deck+xml', ''),
  1605. ('vxml', 'application/voicexml+xml', ''),
  1606. ('wgt', 'application/widget', ''),
  1607. ('hlp', 'application/winhlp', ''),
  1608. ('wsdl', 'application/wsdl+xml', ''),
  1609. ('wspolicy', 'application/wspolicy+xml', ''),
  1610. ('7z', 'application/x-7z-compressed', 'mime-type-archive.png'),
  1611. ('abw', 'application/x-abiword', ''),
  1612. ('ace', 'application/x-ace-compressed', 'mime-type-archive.png'),
  1613. ('aab', 'application/x-authorware-bin', ''),
  1614. ('x32', 'application/x-authorware-bin', ''),
  1615. ('u32', 'application/x-authorware-bin', ''),
  1616. ('vox', 'application/x-authorware-bin', ''),
  1617. ('aam', 'application/x-authorware-map', ''),
  1618. ('aas', 'application/x-authorware-seg', ''),
  1619. ('bcpio', 'application/x-bcpio', ''),
  1620. ('torrent', 'application/x-bittorrent', ''),
  1621. ('bz', 'application/x-bzip', ''),
  1622. ('bz2', 'application/x-bzip2', 'mime-type-archive.png'),
  1623. ('boz', 'application/x-bzip2', ''),
  1624. ('vcd', 'application/x-cdlink', ''),
  1625. ('chat', 'application/x-chat', ''),
  1626. ('pgn', 'application/x-chess-pgn', ''),
  1627. ('cpio', 'application/x-cpio', ''),
  1628. ('csh', 'application/x-csh', ''),
  1629. ('deb', 'application/x-debian-package', ''),
  1630. ('udeb', 'application/x-debian-package', ''),
  1631. ('dir', 'application/x-director', ''),
  1632. ('dcr', 'application/x-director', ''),
  1633. ('dxr', 'application/x-director', ''),
  1634. ('cst', 'application/x-director', ''),
  1635. ('cct', 'application/x-director', ''),
  1636. ('cxt', 'application/x-director', ''),
  1637. ('w3d', 'application/x-director', ''),
  1638. ('fgd', 'application/x-director', ''),
  1639. ('swa', 'application/x-director', ''),
  1640. ('wad', 'application/x-doom', ''),
  1641. ('ncx', 'application/x-dtbncx+xml', ''),
  1642. ('dtb', 'application/x-dtbook+xml', ''),
  1643. ('res', 'application/x-dtbresource+xml', ''),
  1644. ('dvi', 'application/x-dvi', ''),
  1645. ('bdf', 'application/x-font-bdf', ''),
  1646. ('gsf', 'application/x-font-ghostscript', ''),
  1647. ('psf', 'application/x-font-linux-psf', ''),
  1648. ('otf', 'application/x-font-otf', ''),
  1649. ('pcf', 'application/x-font-pcf', ''),
  1650. ('snf', 'application/x-font-snf', ''),
  1651. ('ttf', 'application/x-font-ttf', ''),
  1652. ('ttc', 'application/x-font-ttf', ''),
  1653. ('pfa', 'application/x-font-type1', ''),
  1654. ('pfb', 'application/x-font-type1', ''),
  1655. ('pfm', 'application/x-font-type1', ''),
  1656. ('afm', 'application/x-font-type1', ''),
  1657. ('woff', 'application/x-font-woff', ''),
  1658. ('spl', 'application/x-futuresplash', ''),
  1659. ('gnumeric', 'application/x-gnumeric', ''),
  1660. ('gtar', 'application/x-gtar', ''),
  1661. ('hdf', 'application/x-hdf', ''),
  1662. ('jnlp', 'application/x-java-jnlp-file', ''),
  1663. ('latex', 'application/x-latex', ''),
  1664. ('prc', 'application/x-mobipocket-ebook', ''),
  1665. ('mobi', 'application/x-mobipocket-ebook', ''),
  1666. ('application', 'application/x-ms-application', ''),
  1667. ('wmd', 'application/x-ms-wmd', ''),
  1668. ('wmz', 'application/x-ms-wmz', ''),
  1669. ('xbap', 'application/x-ms-xbap', ''),
  1670. ('mdb', 'application/x-msaccess', ''),
  1671. ('obd', 'application/x-msbinder', ''),
  1672. ('crd', 'application/x-mscardfile', ''),
  1673. ('clp', 'application/x-msclip', ''),
  1674. ('exe', 'application/x-msdownload', ''),
  1675. ('dll', 'application/x-msdownload', ''),
  1676. ('com', 'application/x-msdownload', ''),
  1677. ('bat', 'application/x-msdownload', ''),
  1678. ('msi', 'application/x-msdownload', ''),
  1679. ('mvb', 'application/x-msmediaview', ''),
  1680. ('m13', 'application/x-msmediaview', ''),
  1681. ('m14', 'application/x-msmediaview', ''),
  1682. ('wmf', 'application/x-msmetafile', ''),
  1683. ('mny', 'application/x-msmoney', ''),
  1684. ('pub', 'application/x-mspublisher', ''),
  1685. ('scd', 'application/x-msschedule', ''),
  1686. ('trm', 'application/x-msterminal', ''),
  1687. ('wri', 'application/x-mswrite', ''),
  1688. ('nc', 'application/x-netcdf', ''),
  1689. ('cdf', 'application/x-netcdf', ''),
  1690. ('p12', 'application/x-pkcs12', ''),
  1691. ('pfx', 'application/x-pkcs12', ''),
  1692. ('p7b', 'application/x-pkcs7-certificates', ''),
  1693. ('spc', 'application/x-pkcs7-certificates', ''),
  1694. ('p7r', 'application/x-pkcs7-certreqresp', ''),
  1695. ('rar', 'application/x-rar-compressed', 'mime-type-archive.png'),
  1696. ('sh', 'application/x-sh', ''),
  1697. ('shar', 'application/x-shar', ''),
  1698. ('swf', 'application/x-shockwave-flash', ''),
  1699. ('xap', 'application/x-silverlight-app', ''),
  1700. ('sit', 'application/x-stuffit', ''),
  1701. ('sitx', 'application/x-stuffitx', ''),
  1702. ('sv4cpio', 'application/x-sv4cpio', ''),
  1703. ('sv4crc', 'application/x-sv4crc', ''),
  1704. ('tar', 'application/x-tar', 'mime-type-archive.png'),
  1705. ('tcl', 'application/x-tcl', ''),
  1706. ('tex', 'application/x-tex', ''),
  1707. ('tfm', 'application/x-tex-tfm', ''),
  1708. ('texinfo', 'application/x-texinfo', ''),
  1709. ('texi', 'application/x-texinfo', ''),
  1710. ('ustar', 'application/x-ustar', ''),
  1711. ('src', 'application/x-wais-source', ''),
  1712. ('der', 'application/x-x509-ca-cert', ''),
  1713. ('crt', 'application/x-x509-ca-cert', ''),
  1714. ('fig', 'application/x-xfig', ''),
  1715. ('xpi', 'application/x-xpinstall', ''),
  1716. ('xdf', 'application/xcap-diff+xml', ''),
  1717. ('xenc', 'application/xenc+xml', ''),
  1718. ('xhtml', 'application/xhtml+xml', ''),
  1719. ('xht', 'application/xhtml+xml', ''),
  1720. ('xml', 'application/xml', ''),
  1721. ('xsl', 'application/xml', ''),
  1722. ('dtd', 'application/xml-dtd', ''),
  1723. ('xop', 'application/xop+xml', ''),
  1724. ('xslt', 'application/xslt+xml', ''),
  1725. ('xspf', 'application/xspf+xml', ''),
  1726. ('mxml', 'application/xv+xml', ''),
  1727. ('xhvml', 'application/xv+xml', ''),
  1728. ('xvml', 'application/xv+xml', ''),
  1729. ('xvm', 'application/xv+xml', ''),
  1730. ('yang', 'application/yang', ''),
  1731. ('yin', 'application/yin+xml', ''),
  1732. ('zip', 'application/zip', 'mime-type-archive.png'),
  1733. ('adp', 'audio/adpcm', 'mime-type-audio.png'),
  1734. ('au', 'audio/basic', 'mime-type-audio.png'),
  1735. ('snd', 'audio/basic', 'mime-type-audio.png'),
  1736. ('mid', 'audio/midi', 'mime-type-audio.png'),
  1737. ('midi', 'audio/midi', 'mime-type-audio.png'),
  1738. ('kar', 'audio/midi', 'mime-type-audio.png'),
  1739. ('rmi', 'audio/midi', 'mime-type-audio.png'),
  1740. ('mp4a', 'audio/mp4', 'mime-type-audio.png'),
  1741. ('m4a', 'audio/mp4a-latm', 'mime-type-audio.png'),
  1742. ('m4p', 'audio/mp4a-latm', 'mime-type-audio.png'),
  1743. ('mpga', 'audio/mpeg', 'mime-type-audio.png'),
  1744. ('mp2', 'audio/mpeg', 'mime-type-audio.png'),
  1745. ('mp2a', 'audio/mpeg', 'mime-type-audio.png'),
  1746. ('mp3', 'audio/mpeg', 'mime-type-audio.png'),
  1747. ('m2a', 'audio/mpeg', 'mime-type-audio.png'),
  1748. ('m3a', 'audio/mpeg', 'mime-type-audio.png'),
  1749. ('oga', 'audio/ogg', 'mime-type-audio.png'),
  1750. ('ogg', 'audio/ogg', 'mime-type-audio.png'),
  1751. ('spx', 'audio/ogg', 'mime-type-audio.png'),
  1752. ('uva', 'audio/vnd.dece.audio', 'mime-type-audio.png'),
  1753. ('uvva', 'audio/vnd.dece.audio', 'mime-type-audio.png'),
  1754. ('eol', 'audio/vnd.digital-winds', 'mime-type-audio.png'),
  1755. ('dra', 'audio/vnd.dra', 'mime-type-audio.png'),
  1756. ('dts', 'audio/vnd.dts', 'mime-type-audio.png'),
  1757. ('dtshd', 'audio/vnd.dts.hd', 'mime-type-audio.png'),
  1758. ('lvp', 'audio/vnd.lucent.voice', 'mime-type-audio.png'),
  1759. ('pya', 'audio/vnd.ms-playready.media.pya', 'mime-type-audio.png'),
  1760. ('ecelp4800', 'audio/vnd.nuera.ecelp4800', 'mime-type-audio.png'),
  1761. ('ecelp7470', 'audio/vnd.nuera.ecelp7470', 'mime-type-audio.png'),
  1762. ('ecelp9600', 'audio/vnd.nuera.ecelp9600', 'mime-type-audio.png'),
  1763. ('rip', 'audio/vnd.rip', 'mime-type-audio.png'),
  1764. ('weba', 'audio/webm', 'mime-type-audio.png'),
  1765. ('aac', 'audio/x-aac', 'mime-type-audio.png'),
  1766. ('aif', 'audio/x-aiff', 'mime-type-audio.png'),
  1767. ('aiff', 'audio/x-aiff', 'mime-type-audio.png'),
  1768. ('aifc', 'audio/x-aiff', 'mime-type-audio.png'),
  1769. ('m3u', 'audio/x-mpegurl', 'mime-type-audio.png'),
  1770. ('wax', 'audio/x-ms-wax', 'mime-type-audio.png'),
  1771. ('wma', 'audio/x-ms-wma', 'mime-type-audio.png'),
  1772. ('ram', 'audio/x-pn-realaudio', 'mime-type-audio.png'),
  1773. ('ra', 'audio/x-pn-realaudio', 'mime-type-audio.png'),
  1774. ('rmp', 'audio/x-pn-realaudio-plugin', 'mime-type-audio.png'),
  1775. ('wav', 'audio/x-wav', 'mime-type-audio.png'),
  1776. ('cdx', 'chemical/x-cdx', 'mime-type-vector.png'),
  1777. ('cif', 'chemical/x-cif', ''),
  1778. ('cmdf', 'chemical/x-cmdf', ''),
  1779. ('cml', 'chemical/x-cml', ''),
  1780. ('csml', 'chemical/x-csml', ''),
  1781. ('xyz', 'chemical/x-xyz', ''),
  1782. ('bmp', 'image/bmp', 'mime-type-image.png'),
  1783. ('cgm', 'image/cgm', 'mime-type-image.png'),
  1784. ('g3', 'image/g3fax', 'mime-type-image.png'),
  1785. ('gif', 'image/gif', 'mime-type-image.png'),
  1786. ('ief', 'image/ief', 'mime-type-image.png'),
  1787. ('jp2', 'image/jp2', 'mime-type-image.png'),
  1788. ('jpeg', 'image/jpeg', 'mime-type-image.png'),
  1789. ('jpg', 'image/jpeg', 'mime-type-image.png'),
  1790. ('jpe', 'image/jpeg', 'mime-type-image.png'),
  1791. ('ktx', 'image/ktx', 'mime-type-image.png'),
  1792. ('pict', 'image/pict', 'mime-type-image.png'),
  1793. ('pic', 'image/pict', 'mime-type-image.png'),
  1794. ('pct', 'image/pict', 'mime-type-image.png'),
  1795. ('png', 'image/png', 'mime-type-png.png'),
  1796. ('btif', 'image/prs.btif', 'mime-type-image.png'),
  1797. ('svg', 'image/svg+xml', 'mime-type-image.png'),
  1798. ('svgz', 'image/svg+xml', 'mime-type-image.png'),
  1799. ('tiff', 'image/tiff', 'mime-type-image.png'),
  1800. ('tif', 'image/tiff', 'mime-type-image.png'),
  1801. ('psd', 'image/vnd.adobe.photoshop', 'mime-type-psd.png'),
  1802. ('uvi', 'image/vnd.dece.graphic', 'mime-type-image.png'),
  1803. ('uvvi', 'image/vnd.dece.graphic', 'mime-type-image.png'),
  1804. ('uvg', 'image/vnd.dece.graphic', 'mime-type-image.png'),
  1805. ('uvvg', 'image/vnd.dece.graphic', 'mime-type-image.png'),
  1806. ('sub', 'image/vnd.dvb.subtitle', 'mime-type-image.png'),
  1807. ('djvu', 'image/vnd.djvu', 'mime-type-image.png'),
  1808. ('djv', 'image/vnd.djvu', 'mime-type-image.png'),
  1809. ('dwg', 'image/vnd.dwg', 'mime-type-image.png'),
  1810. ('dxf', 'image/vnd.dxf', 'mime-type-image.png'),
  1811. ('fbs', 'image/vnd.fastbidsheet', 'mime-type-image.png'),
  1812. ('fpx', 'image/vnd.fpx', 'mime-type-image.png'),
  1813. ('fst', 'image/vnd.fst', 'mime-type-image.png'),
  1814. ('mmr', 'image/vnd.fujixerox.edmics-mmr', 'mime-type-image.png'),
  1815. ('rlc', 'image/vnd.fujixerox.edmics-rlc', 'mime-type-image.png'),
  1816. ('mdi', 'image/vnd.ms-modi', 'mime-type-image.png'),
  1817. ('npx', 'image/vnd.net-fpx', 'mime-type-image.png'),
  1818. ('wbmp', 'image/vnd.wap.wbmp', 'mime-type-image.png'),
  1819. ('xif', 'image/vnd.xiff', 'mime-type-image.png'),
  1820. ('webp', 'image/webp', 'mime-type-image.png'),
  1821. ('ras', 'image/x-cmu-raster', 'mime-type-image.png'),
  1822. ('cmx', 'image/x-cmx', 'mime-type-image.png'),
  1823. ('fh', 'image/x-freehand', 'mime-type-image.png'),
  1824. ('fhc', 'image/x-freehand', 'mime-type-image.png'),
  1825. ('fh4', 'image/x-freehand', 'mime-type-image.png'),
  1826. ('fh5', 'image/x-freehand', 'mime-type-image.png'),
  1827. ('fh7', 'image/x-freehand', 'mime-type-image.png'),
  1828. ('ico', 'image/x-icon', 'mime-type-image.png'),
  1829. ('pntg', 'image/x-macpaint', 'mime-type-image.png'),
  1830. ('pnt', 'image/x-macpaint', 'mime-type-image.png'),
  1831. ('mac', 'image/x-macpaint', 'mime-type-image.png'),
  1832. ('pcx', 'image/x-pcx', 'mime-type-image.png'),
  1833. ('pnm', 'image/x-portable-anymap', 'mime-type-image.png'),
  1834. ('pbm', 'image/x-portable-bitmap', 'mime-type-image.png'),
  1835. ('pgm', 'image/x-portable-graymap', 'mime-type-image.png'),
  1836. ('ppm', 'image/x-portable-pixmap', 'mime-type-image.png'),
  1837. ('qtif', 'image/x-quicktime', 'mime-type-image.png'),
  1838. ('qti', 'image/x-quicktime', 'mime-type-image.png'),
  1839. ('rgb', 'image/x-rgb', 'mime-type-image.png'),
  1840. ('xbm', 'image/x-xbitmap', 'mime-type-image.png'),
  1841. ('xpm', 'image/x-xpixmap', 'mime-type-image.png'),
  1842. ('xwd', 'image/x-xwindowdump', 'mime-type-image.png'),
  1843. ('eml', 'message/rfc822', ''),
  1844. ('mime', 'message/rfc822', ''),
  1845. ('igs', 'model/iges', ''),
  1846. ('iges', 'model/iges', ''),
  1847. ('msh', 'model/mesh', ''),
  1848. ('mesh', 'model/mesh', ''),
  1849. ('silo', 'model/mesh', ''),
  1850. ('dae', 'model/vnd.collada+xml', ''),
  1851. ('dwf', 'model/vnd.dwf', ''),
  1852. ('gdl', 'model/vnd.gdl', ''),
  1853. ('gtw', 'model/vnd.gtw', ''),
  1854. ('mts', 'model/vnd.mts', ''),
  1855. ('vtu', 'model/vnd.vtu', ''),
  1856. ('wrl', 'model/vrml', ''),
  1857. ('vrml', 'model/vrml', ''),
  1858. ('manifest', 'text/cache-manifest', ''),
  1859. ('ics', 'text/calendar', ''),
  1860. ('ifb', 'text/calendar', ''),
  1861. ('css', 'text/css', ''),
  1862. ('csv', 'text/csv', 'mime-type-spreadsheet.png'),
  1863. ('html', 'text/html', ''),
  1864. ('htm', 'text/html', ''),
  1865. ('n3', 'text/n3', ''),
  1866. ('txt', 'text/plain', 'mime-type-document.png'),
  1867. ('text', 'text/plain', ''),
  1868. ('conf', 'text/plain', ''),
  1869. ('def', 'text/plain', ''),
  1870. ('list', 'text/plain', ''),
  1871. ('log', 'text/plain', ''),
  1872. ('in', 'text/plain', ''),
  1873. ('dsc', 'text/prs.lines.tag', ''),
  1874. ('rtx', 'text/richtext', ''),
  1875. ('sgml', 'text/sgml', ''),
  1876. ('sgm', 'text/sgml', ''),
  1877. ('tsv', 'text/tab-separated-values', ''),
  1878. ('t', 'text/troff', ''),
  1879. ('tr', 'text/troff', ''),
  1880. ('roff', 'text/troff', ''),
  1881. ('man', 'text/troff', ''),
  1882. ('me', 'text/troff', ''),
  1883. ('ms', 'text/troff', ''),
  1884. ('ttl', 'text/turtle', ''),
  1885. ('uri', 'text/uri-list', ''),
  1886. ('uris', 'text/uri-list', ''),
  1887. ('urls', 'text/uri-list', ''),
  1888. ('curl', 'text/vnd.curl', ''),
  1889. ('dcurl', 'text/vnd.curl.dcurl', ''),
  1890. ('scurl', 'text/vnd.curl.scurl', ''),
  1891. ('mcurl', 'text/vnd.curl.mcurl', ''),
  1892. ('fly', 'text/vnd.fly', ''),
  1893. ('flx', 'text/vnd.fmi.flexstor', ''),
  1894. ('gv', 'text/vnd.graphviz', ''),
  1895. ('3dml', 'text/vnd.in3d.3dml', ''),
  1896. ('spot', 'text/vnd.in3d.spot', ''),
  1897. ('jad', 'text/vnd.sun.j2me.app-descriptor', ''),
  1898. ('wml', 'text/vnd.wap.wml', ''),
  1899. ('wmls', 'text/vnd.wap.wmlscript', ''),
  1900. ('s', 'text/x-asm', ''),
  1901. ('asm', 'text/x-asm', ''),
  1902. ('c', 'text/x-c', ''),
  1903. ('cc', 'text/x-c', ''),
  1904. ('cxx', 'text/x-c', ''),
  1905. ('cpp', 'text/x-c', ''),
  1906. ('h', 'text/x-c', ''),
  1907. ('hh', 'text/x-c', ''),
  1908. ('dic', 'text/x-c', ''),
  1909. ('f', 'text/x-fortran', ''),
  1910. ('for', 'text/x-fortran', ''),
  1911. ('f77', 'text/x-fortran', ''),
  1912. ('f90', 'text/x-fortran', ''),
  1913. ('p', 'text/x-pascal', ''),
  1914. ('pas', 'text/x-pascal', ''),
  1915. ('java', 'text/x-java-source', ''),
  1916. ('etx', 'text/x-setext', ''),
  1917. ('uu', 'text/x-uuencode', ''),
  1918. ('vcs', 'text/x-vcalendar', ''),
  1919. ('vcf', 'text/x-vcard', ''),
  1920. ('3gp', 'video/3gpp', 'mime-type-video.png'),
  1921. ('3g2', 'video/3gpp2', 'mime-type-video.png'),
  1922. ('h261', 'video/h261', 'mime-type-video.png'),
  1923. ('h263', 'video/h263', 'mime-type-video.png'),
  1924. ('h264', 'video/h264', 'mime-type-video.png'),
  1925. ('jpgv', 'video/jpeg', 'mime-type-video.png'),
  1926. ('jpm', 'video/jpm', 'mime-type-video.png'),
  1927. ('jpgm', 'video/jpm', 'mime-type-video.png'),
  1928. ('mj2', 'video/mj2', 'mime-type-video.png'),
  1929. ('mjp2', 'video/mj2', 'mime-type-video.png'),
  1930. ('ts', 'video/mp2t', 'mime-type-video.png'),
  1931. ('mp4', 'video/mp4', 'mime-type-video.png'),
  1932. ('mp4v', 'video/mp4', 'mime-type-video.png'),
  1933. ('mpg4', 'video/mp4', 'mime-type-video.png'),
  1934. ('m4v', 'video/mp4', 'mime-type-video.png'),
  1935. ('mpeg', 'video/mpeg', 'mime-type-video.png'),
  1936. ('mpg', 'video/mpeg', 'mime-type-video.png'),
  1937. ('mpe', 'video/mpeg', 'mime-type-video.png'),
  1938. ('m1v', 'video/mpeg', 'mime-type-video.png'),
  1939. ('m2v', 'video/mpeg', 'mime-type-video.png'),
  1940. ('ogv', 'video/ogg', 'mime-type-video.png'),
  1941. ('qt', 'video/quicktime', 'mime-type-video.png'),
  1942. ('mov', 'video/quicktime', 'mime-type-video.png'),
  1943. ('uvh', 'video/vnd.dece.hd', 'mime-type-video.png'),
  1944. ('uvvh', 'video/vnd.dece.hd', 'mime-type-video.png'),
  1945. ('uvm', 'video/vnd.dece.mobile', 'mime-type-video.png'),
  1946. ('uvvm', 'video/vnd.dece.mobile', 'mime-type-video.png'),
  1947. ('uvp', 'video/vnd.dece.pd', 'mime-type-video.png'),
  1948. ('uvvp', 'video/vnd.dece.pd', 'mime-type-video.png'),
  1949. ('uvs', 'video/vnd.dece.sd', 'mime-type-video.png'),
  1950. ('uvvs', 'video/vnd.dece.sd', 'mime-type-video.png'),
  1951. ('uvv', 'video/vnd.dece.video', 'mime-type-video.png'),
  1952. ('uvvv', 'video/vnd.dece.video', 'mime-type-video.png'),
  1953. ('fvt', 'video/vnd.fvt', 'mime-type-video.png'),
  1954. ('mxu', 'video/vnd.mpegurl', 'mime-type-video.png'),
  1955. ('m4u', 'video/vnd.mpegurl', 'mime-type-video.png'),
  1956. ('pyv', 'video/vnd.ms-playready.media.pyv', 'mime-type-video.png'),
  1957. ('uvu', 'video/vnd.uvvu.mp4', 'mime-type-video.png'),
  1958. ('uvvu', 'video/vnd.uvvu.mp4', 'mime-type-video.png'),
  1959. ('viv', 'video/vnd.vivo', 'mime-type-video.png'),
  1960. ('dv', 'video/x-dv', 'mime-type-video.png'),
  1961. ('dif', 'video/x-dv', 'mime-type-video.png'),
  1962. ('webm', 'video/webm', 'mime-type-video.png'),
  1963. ('f4v', 'video/x-f4v', 'mime-type-video.png'),
  1964. ('fli', 'video/x-fli', 'mime-type-video.png'),
  1965. ('flv', 'video/x-flv', 'mime-type-video.png'),
  1966. ('asf', 'video/x-ms-asf', 'mime-type-video.png'),
  1967. ('asx', 'video/x-ms-asf', 'mime-type-video.png'),
  1968. ('wm', 'video/x-ms-wm', 'mime-type-video.png'),
  1969. ('wmv', 'video/x-ms-wmv', 'mime-type-video.png'),
  1970. ('wmx', 'video/x-ms-wmx', 'mime-type-video.png'),
  1971. ('wvx', 'video/x-ms-wvx', 'mime-type-video.png'),
  1972. ('avi', 'video/x-msvideo', 'mime-type-video.png'),
  1973. ('movie', 'video/x-sgi-movie', 'mime-type-video.png'),
  1974. ('ice', 'x-conference/x-cooltalk', '');
  1975. -- --------------------------------------------------------
  1976. CREATE TABLE IF NOT EXISTS `sys_objects_uploader` (
  1977. `id` int(11) NOT NULL AUTO_INCREMENT,
  1978. `object` varchar(32) NOT NULL,
  1979. `active` tinyint(4) NOT NULL,
  1980. `override_class_name` varchar(255) NOT NULL,
  1981. `override_class_file` varchar(255) NOT NULL,
  1982. PRIMARY KEY (`id`),
  1983. UNIQUE KEY `object` (`object`)
  1984. ) ENGINE=MyISAM;
  1985. INSERT INTO `sys_objects_uploader` (`object`, `active`, `override_class_name`, `override_class_file`) VALUES
  1986. ('sys_simple', 1, 'BxTemplUploaderSimple', ''),
  1987. ('sys_html5', 1, 'BxTemplUploaderHTML5', ''),
  1988. ('sys_cmts_simple', 1, 'BxTemplCmtsUploaderSimple', '');
  1989. -- --------------------------------------------------------
  1990. CREATE TABLE IF NOT EXISTS `sys_objects_form` (
  1991. `id` int(11) NOT NULL AUTO_INCREMENT,
  1992. `object` varchar(32) NOT NULL,
  1993. `module` varchar(32) NOT NULL,
  1994. `title` varchar(255) NOT NULL,
  1995. `action` varchar(255) NOT NULL,
  1996. `form_attrs` text NOT NULL,
  1997. `submit_name` varchar(255) NOT NULL,
  1998. `table` varchar(255) NOT NULL,
  1999. `key` varchar(255) NOT NULL,
  2000. `uri` varchar(255) NOT NULL,
  2001. `uri_title` varchar(255) NOT NULL,
  2002. `params` text NOT NULL,
  2003. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2004. `active` tinyint(4) NOT NULL DEFAULT '0',
  2005. `override_class_name` varchar(255) NOT NULL,
  2006. `override_class_file` varchar(255) NOT NULL,
  2007. PRIMARY KEY (`id`),
  2008. UNIQUE KEY `object` (`object`)
  2009. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2010. INSERT INTO `sys_objects_form` (`object`, `module`, `title`, `action`, `form_attrs`, `submit_name`, `table`, `key`, `uri`, `uri_title`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  2011. ('sys_login', 'system', '_sys_form_login', 'member.php', 'a:3:{s:2:"id";s:14:"sys-form-login";s:6:"action";s:10:"member.php";s:8:"onsubmit";s:38:"validateLoginForm(this); return false;";}', 'role', '', '', '', '', '', 0, 1, 'BxTemplFormLogin', ''),
  2012. ('sys_account', 'system', '_sys_form_account', '', '', 'do_submit', 'sys_accounts', 'id', '', '', 'a:1:{s:14:"checker_helper";s:26:"BxFormAccountCheckerHelper";}', 0, 1, 'BxTemplFormAccount', ''),
  2013. ('sys_forgot_password', 'system', '_sys_form_forgot_password', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:33:"BxFormForgotPasswordCheckerHelper";}', 0, 1, 'BxTemplFormForgotPassword', ''),
  2014. ('sys_confirm_email', 'system', '_sys_form_confirm_email', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:31:"BxFormConfirmEmailCheckerHelper";}', 0, 1, 'BxTemplFormConfirmEmail', ''),
  2015. ('sys_unsubscribe', 'system', '_sys_form_unsubscribe', '', '', 'do_submit', 'sys_accounts', 'id', '', '', '', 0, 1, 'BxTemplFormAccount', ''),
  2016. ('sys_comment', 'system', '_sys_form_comment', 'cmts.php', 'a:3:{s:2:"id";s:17:"cmt-%s-form-%s-%d";s:4:"name";s:17:"cmt-%s-form-%s-%d";s:5:"class";s:14:"cmt-post-reply";}', 'cmt_submit', '', 'cmt_id', '', '', '', 0, 1, '', '');
  2017. CREATE TABLE IF NOT EXISTS `sys_form_displays` (
  2018. `id` int(11) NOT NULL AUTO_INCREMENT,
  2019. `display_name` varchar(32) NOT NULL,
  2020. `module` varchar(32) NOT NULL,
  2021. `object` varchar(32) NOT NULL,
  2022. `title` varchar(255) NOT NULL,
  2023. `view_mode` tinyint(4) NOT NULL DEFAULT '0',
  2024. PRIMARY KEY (`id`),
  2025. UNIQUE KEY `object_display_name` (`object`,`display_name`)
  2026. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2027. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  2028. ('sys_login', 'system', 'sys_login', '_sys_form_display_login', 0),
  2029. ('sys_account_create', 'system', 'sys_account', '_sys_form_display_account_create', 0),
  2030. ('sys_account_settings_email', 'system', 'sys_account', '_sys_form_display_account_settings_email', 0),
  2031. ('sys_account_settings_pwd', 'system', 'sys_account', '_sys_form_display_account_settings_password', 0),
  2032. ('sys_account_settings_info', 'system', 'sys_account', '_sys_form_display_account_settings_info', 0),
  2033. ('sys_account_settings_del_account', 'system', 'sys_account', '_sys_form_display_account_settings_delete', 0),
  2034. ('sys_forgot_password', 'system', 'sys_forgot_password', '_sys_form_display_forgot_password', 0),
  2035. ('sys_confirm_email', 'system', 'sys_confirm_email', '_sys_form_display_confirm_email', 0),
  2036. ('sys_unsubscribe_updates', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_updates', 0),
  2037. ('sys_unsubscribe_news', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_news', 0),
  2038. ('sys_comment_post', 'system', 'sys_comment', '_sys_form_display_comment_post', 0),
  2039. ('sys_comment_edit', 'system', 'sys_comment', '_sys_form_display_comment_edit', 0);
  2040. CREATE TABLE IF NOT EXISTS `sys_form_inputs` (
  2041. `id` int(11) NOT NULL AUTO_INCREMENT,
  2042. `object` varchar(32) NOT NULL,
  2043. `module` varchar(32) NOT NULL,
  2044. `name` varchar(255) NOT NULL,
  2045. `value` varchar(255) NOT NULL,
  2046. `values` text NOT NULL,
  2047. `checked` tinyint(4) NOT NULL DEFAULT '0',
  2048. `type` varchar(32) NOT NULL,
  2049. `caption_system` varchar(255) NOT NULL,
  2050. `caption` varchar(255) NOT NULL,
  2051. `info` varchar(255) NOT NULL,
  2052. `required` tinyint(4) NOT NULL DEFAULT '0',
  2053. `collapsed` tinyint(4) NOT NULL DEFAULT '0',
  2054. `html` tinyint(4) NOT NULL DEFAULT '0',
  2055. `attrs` text NOT NULL,
  2056. `attrs_tr` text NOT NULL,
  2057. `attrs_wrapper` text NOT NULL,
  2058. `checker_func` varchar(32) NOT NULL,
  2059. `checker_params` text NOT NULL,
  2060. `checker_error` varchar(255) NOT NULL,
  2061. `db_pass` varchar(32) NOT NULL,
  2062. `db_params` text NOT NULL,
  2063. `editable` tinyint(4) NOT NULL DEFAULT '1',
  2064. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2065. PRIMARY KEY (`id`),
  2066. UNIQUE KEY `display_name` (`object`,`name`)
  2067. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2068. INSERT INTO `sys_form_inputs` (`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
  2069. ('sys_login', 'system', 'role', '1', '', 0, 'hidden', '_sys_form_login_input_caption_system_role', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2070. ('sys_login', 'system', 'relocate', '', '', 0, 'hidden', '_sys_form_login_input_caption_system_relocate', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2071. ('sys_login', 'system', 'ID', '', '', 0, 'text', '_sys_form_login_input_caption_system_id', '_sys_form_login_input_email', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2072. ('sys_login', 'system', 'Password', '', '', 0, 'password', '_sys_form_login_input_caption_system_password', '_sys_form_login_input_password', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2073. ('sys_login', 'system', 'rememberMe', '1', '', 0, 'switcher', '_sys_form_login_input_caption_system_remember_me', '_sys_form_login_input_remember_me', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2074. ('sys_login', 'system', 'submit_block', '', 'login,submit_text', 0, 'input_set', '_sys_form_login_input_caption_system_submit_block', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2075. ('sys_login', 'system', 'login', '_sys_form_login_input_submit', '', 0, 'submit', '_sys_form_login_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2076. ('sys_login', 'system', 'submit_text', '', '', 0, 'custom', '_sys_form_login_input_caption_system_submit_text', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2077. ('sys_account', 'system', 'email', '', '', 0, 'text', '_sys_form_login_input_caption_system_email', '_sys_form_account_input_email', '', 1, 0, 0, '', '', '', 'EmailUniq', '', '_sys_form_account_input_email_error', 'Xss', '', 0, 0),
  2078. ('sys_account', 'system', 'password', '', '', 0, 'password', '_sys_form_login_input_caption_system_password', '_sys_form_account_input_password', '', 1, 0, 0, '', '', '', 'Length', 'a:2:{s:3:"min";i:6;s:3:"max";i:1024;}', '_sys_form_account_input_password_error', '', '', 0, 0),
  2079. ('sys_account', 'system', 'password_confirm', '', '', 0, 'password', '_sys_form_login_input_caption_system_password_confirm', '_sys_form_account_input_password_confirm', '', 1, 0, 0, '', '', '', 'PasswordConfirm', '', '_sys_form_account_input_password_confirm_error', '', '', 0, 0),
  2080. ('sys_account', 'system', 'do_submit', '_sys_form_account_input_submit', '', 0, 'submit', '_sys_form_login_input_caption_system_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2081. ('sys_account', 'system', 'name', '', '', 0, 'text', '_sys_form_login_input_caption_system_name', '_sys_form_account_input_name', '', 1, 0, 0, '', '', '', 'Avail', '', '_sys_form_account_input_name_error', 'Xss', '', 0, 0),
  2082. ('sys_account', 'system', 'captcha', '', '', 0, 'captcha', '_sys_form_login_input_caption_system_captcha', '_sys_form_account_input_captcha', '', 1, 0, 0, '', '', '', 'Captcha', '', '_sys_form_account_input_captcha_error', '', '', 0, 0),
  2083. ('sys_account', 'system', 'password_current', '', '', 0, 'password', '_sys_form_login_input_caption_system_password_current', '_sys_form_account_input_password_current', '', 1, 0, 0, '', '', '', 'PasswordCurrent', '', '_sys_form_account_input_password_current_error', '', '', 0, 0),
  2084. ('sys_account', 'system', 'delete_confirm', '1', '', 0, 'checkbox', '_sys_form_login_input_caption_system_delete_confirm', '_sys_form_account_input_delete_confirm', '_sys_form_account_input_delete_confirm_info', 1, 0, 0, '', '', '', 'Avail', '', '_sys_form_account_input_delete_confirm_error', '', '', 0, 0),
  2085. ('sys_account', 'system', 'receive_updates', '1', '', 1, 'switcher', '_sys_form_login_input_caption_system_receive_updates', '_sys_form_account_input_receive_updates', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2086. ('sys_account', 'system', 'receive_news', '1', '', 0, 'switcher', '_sys_form_login_input_caption_system_receive_news', '_sys_form_account_input_receive_news', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2087. ('sys_forgot_password', 'system', 'email', '', '', 0, 'text', '_sys_form_forgot_password_input_caption_system_email', '_sys_form_forgot_password_input_email', '', 1, 0, 0, '', '', '', 'EmailExist', '', '_sys_form_account_input_email_error', 'Xss', '', 0, 0),
  2088. ('sys_forgot_password', 'system', 'captcha', '', '', 0, 'captcha', '_sys_form_login_input_caption_system_captcha', '_sys_form_account_input_captcha', '', 1, 0, 0, '', '', '', 'Captcha', '', '_sys_form_account_input_captcha_error', '', '', 0, 0),
  2089. ('sys_forgot_password', 'system', 'do_submit', '_sys_form_forgot_password_input_submit', '', 0, 'submit', '_sys_form_forgot_password_input_caption_system_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2090. ('sys_confirm_email', 'system', 'code', '', '', 0, 'text', '_sys_form_confirm_email_input_caption_system_code', '_sys_form_confirm_email_input_code', '', 1, 0, 0, '', '', '', 'CodeExist', '', '_sys_form_confirm_email_input_code_error', 'Xss', '', 0, 0),
  2091. ('sys_confirm_email', 'system', 'do_submit', '_sys_form_confirm_email_input_submit', '', 0, 'submit', '_sys_form_confirm_email_input_caption_system_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2092. ('sys_unsubscribe', 'system', 'id', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2093. ('sys_unsubscribe', 'system', 'code', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_code', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2094. ('sys_unsubscribe', 'system', 'receive_updates', '1', '', 0, 'switcher', '_sys_form_unsubscribe_input_caption_system_receive_updates', '_sys_form_unsubscribe_input_receive_updates', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2095. ('sys_unsubscribe', 'system', 'receive_news', '1', '', 0, 'switcher', '_sys_form_unsubscribe_input_caption_system_receive_news', '_sys_form_unsubscribe_input_receive_news', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2096. ('sys_unsubscribe', 'system', 'do_submit', '_sys_form_unsubscribe_input_submit', '', 0, 'submit', '_sys_form_unsubscribe_input_caption_system_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2097. ('sys_comment', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2098. ('sys_comment', 'system', 'id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2099. ('sys_comment', 'system', 'action', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2100. ('sys_comment', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2101. ('sys_comment', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2102. ('sys_comment', 'system', 'cmt_text', '', '', 0, 'textarea', '_sys_form_comment_input_caption_system_cmt_text', '', '', 0, 0, 0, '', '', '', 'Length', 'a:2:{s:3:"min";i:1;s:3:"max";i:5000;}', '_Please enter n1-n2 characters', 'Xss', '', 1, 0),
  2103. ('sys_comment', 'system', 'cmt_image', '', '', 0, 'files', '_sys_form_comment_input_caption_system_cmt_image', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2104. ('sys_comment', 'system', 'cmt_submit', '_sys_form_comment_input_submit', '', 0, 'submit', '_sys_form_comment_input_caption_system_cmt_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0);
  2105. CREATE TABLE IF NOT EXISTS `sys_form_display_inputs` (
  2106. `id` int(11) NOT NULL AUTO_INCREMENT,
  2107. `display_name` varchar(32) NOT NULL,
  2108. `input_name` varchar(32) NOT NULL,
  2109. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  2110. `active` tinyint(4) NOT NULL DEFAULT '0',
  2111. `order` int(11) NOT NULL,
  2112. PRIMARY KEY (`id`),
  2113. UNIQUE KEY `display_input` (`display_name`,`input_name`)
  2114. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2115. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  2116. ('sys_login', 'role', 2147483647, 1, 1),
  2117. ('sys_login', 'relocate', 2147483647, 1, 2),
  2118. ('sys_login', 'ID', 2147483647, 1, 3),
  2119. ('sys_login', 'Password', 2147483647, 1, 4),
  2120. ('sys_login', 'rememberMe', 2147483647, 1, 5),
  2121. ('sys_login', 'submit_block', 2147483647, 1, 6),
  2122. ('sys_login', 'login', 2147483647, 1, 7),
  2123. ('sys_login', 'submit_text', 2147483647, 1, 8),
  2124. ('sys_account_create', 'name', 2147483647, 1, 1),
  2125. ('sys_account_create', 'email', 2147483647, 1, 2),
  2126. ('sys_account_create', 'receive_news', 2147483647, 1, 3),
  2127. ('sys_account_create', 'password', 2147483647, 1, 4),
  2128. ('sys_account_create', 'password_confirm', 2147483647, 1, 5),
  2129. ('sys_account_create', 'captcha', 2147483647, 1, 6),
  2130. ('sys_account_create', 'do_submit', 2147483647, 1, 7),
  2131. ('sys_account_settings_email', 'email', 2147483647, 1, 1),
  2132. ('sys_account_settings_email', 'password_current', 2147483647, 1, 2),
  2133. ('sys_account_settings_email', 'receive_updates', 2147483647, 1, 3),
  2134. ('sys_account_settings_email', 'receive_news', 2147483647, 1, 4),
  2135. ('sys_account_settings_email', 'do_submit', 2147483647, 1, 5),
  2136. ('sys_account_settings_pwd', 'password_current', 2147483647, 1, 1),
  2137. ('sys_account_settings_pwd', 'password', 2147483647, 1, 2),
  2138. ('sys_account_settings_pwd', 'password_confirm', 2147483647, 1, 3),
  2139. ('sys_account_settings_pwd', 'do_submit', 2147483647, 1, 4),
  2140. ('sys_account_settings_del_account', 'delete_confirm', 2147483647, 1, 1),
  2141. ('sys_account_settings_del_account', 'password_current', 2147483647, 1, 2),
  2142. ('sys_account_settings_del_account', 'do_submit', 2147483647, 1, 3),
  2143. ('sys_account_settings_info', 'name', 2147483647, 1, 1),
  2144. ('sys_account_settings_info', 'do_submit', 2147483647, 1, 2),
  2145. ('sys_forgot_password', 'email', 2147483647, 1, 1),
  2146. ('sys_forgot_password', 'captcha', 2147483647, 1, 2),
  2147. ('sys_forgot_password', 'do_submit', 2147483647, 1, 3),
  2148. ('sys_confirm_email', 'code', 2147483647, 1, 1),
  2149. ('sys_confirm_email', 'do_submit', 2147483647, 1, 2),
  2150. ('sys_unsubscribe_updates', 'id', 2147483647, 1, 1),
  2151. ('sys_unsubscribe_updates', 'code', 2147483647, 1, 2),
  2152. ('sys_unsubscribe_updates', 'receive_updates', 2147483647, 1, 3),
  2153. ('sys_unsubscribe_updates', 'do_submit', 2147483647, 1, 4),
  2154. ('sys_unsubscribe_news', 'id', 2147483647, 1, 1),
  2155. ('sys_unsubscribe_news', 'code', 2147483647, 1, 2),
  2156. ('sys_unsubscribe_news', 'receive_news', 2147483647, 1, 3),
  2157. ('sys_unsubscribe_news', 'do_submit', 2147483647, 1, 4),
  2158. ('sys_comment_post', 'sys', 2147483647, 1, 1),
  2159. ('sys_comment_post', 'id', 2147483647, 1, 2),
  2160. ('sys_comment_post', 'action', 2147483647, 1, 3),
  2161. ('sys_comment_post', 'cmt_id', 2147483647, 0, 4),
  2162. ('sys_comment_post', 'cmt_parent_id', 2147483647, 1, 5),
  2163. ('sys_comment_post', 'cmt_text', 2147483647, 1, 6),
  2164. ('sys_comment_post', 'cmt_image', 2147483647, 1, 7),
  2165. ('sys_comment_post', 'cmt_submit', 2147483647, 1, 8),
  2166. ('sys_comment_edit', 'sys', 2147483647, 1, 1),
  2167. ('sys_comment_edit', 'id', 2147483647, 1, 2),
  2168. ('sys_comment_edit', 'action', 2147483647, 1, 3),
  2169. ('sys_comment_edit', 'cmt_id', 2147483647, 1, 4),
  2170. ('sys_comment_edit', 'cmt_parent_id', 2147483647, 1, 5),
  2171. ('sys_comment_edit', 'cmt_text', 2147483647, 1, 6),
  2172. ('sys_comment_edit', 'cmt_image', 2147483647, 0, 7),
  2173. ('sys_comment_edit', 'cmt_submit', 2147483647, 1, 8);
  2174. CREATE TABLE `sys_form_pre_lists` (
  2175. `id` int(11) NOT NULL AUTO_INCREMENT,
  2176. `module` varchar(32) NOT NULL default '',
  2177. `key` varchar(255) NOT NULL default '',
  2178. `title` varchar(255) NOT NULL default '',
  2179. `use_for_sets` tinyint(4) unsigned NOT NULL default '1',
  2180. PRIMARY KEY (`id`),
  2181. UNIQUE KEY `key` (`key`),
  2182. FULLTEXT KEY `ModuleAndKey` (`module`, `key`)
  2183. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2184. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  2185. ('Country', '_adm_form_txt_pre_lists_country', 'system', '0'),
  2186. ('Sex', '_adm_form_txt_pre_lists_sex', 'system', '1'),
  2187. ('Language', '_adm_form_txt_pre_lists_language', 'system', '0');
  2188. CREATE TABLE `sys_form_pre_values` (
  2189. `id` int(11) NOT NULL AUTO_INCREMENT,
  2190. `Key` varchar(255) NOT NULL default '',
  2191. `Value` varchar(255) NOT NULL default '',
  2192. `Order` int(10) unsigned NOT NULL default '0',
  2193. `LKey` varchar(255) NOT NULL default '',
  2194. `LKey2` varchar(255) NOT NULL default '',
  2195. PRIMARY KEY (`id`),
  2196. FULLTEXT KEY `KeyAndValue` (`Key`, `Value`)
  2197. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2198. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2199. ('Country', 'AF', 1, '__Afghanistan', ''),
  2200. ('Country', 'AX', 2, '__Aland_Islands', ''),
  2201. ('Country', 'AL', 3, '__Albania', ''),
  2202. ('Country', 'DZ', 4, '__Algeria', ''),
  2203. ('Country', 'AS', 5, '__American Samoa', ''),
  2204. ('Country', 'AD', 6, '__Andorra', ''),
  2205. ('Country', 'AO', 7, '__Angola', ''),
  2206. ('Country', 'AI', 8, '__Anguilla', ''),
  2207. ('Country', 'AQ', 9, '__Antarctica', ''),
  2208. ('Country', 'AG', 10, '__Antigua and Barbuda', ''),
  2209. ('Country', 'AR', 11, '__Argentina', ''),
  2210. ('Country', 'AM', 12, '__Armenia', ''),
  2211. ('Country', 'AW', 13, '__Aruba', ''),
  2212. ('Country', 'AU', 14, '__Australia', ''),
  2213. ('Country', 'AT', 15, '__Austria', ''),
  2214. ('Country', 'AZ', 16, '__Azerbaijan', ''),
  2215. ('Country', 'BH', 17, '__Bahrain', ''),
  2216. ('Country', 'BD', 18, '__Bangladesh', ''),
  2217. ('Country', 'BB', 19, '__Barbados', ''),
  2218. ('Country', 'BY', 20, '__Belarus', ''),
  2219. ('Country', 'BE', 21, '__Belgium', ''),
  2220. ('Country', 'BZ', 22, '__Belize', ''),
  2221. ('Country', 'BJ', 23, '__Benin', ''),
  2222. ('Country', 'BM', 24, '__Bermuda', ''),
  2223. ('Country', 'BT', 25, '__Bhutan', ''),
  2224. ('Country', 'BO', 26, '__Bolivia', ''),
  2225. ('Country', 'BA', 27, '__Bosnia and Herzegovina', ''),
  2226. ('Country', 'BW', 28, '__Botswana', ''),
  2227. ('Country', 'BV', 29, '__Bouvet Island', ''),
  2228. ('Country', 'BR', 30, '__Brazil', ''),
  2229. ('Country', 'IO', 31, '__British Indian Ocean Territory', ''),
  2230. ('Country', 'VG', 32, '__British Virgin Islands', ''),
  2231. ('Country', 'BN', 33, '__Brunei Darussalam', ''),
  2232. ('Country', 'BG', 34, '__Bulgaria', ''),
  2233. ('Country', 'BF', 35, '__Burkina Faso', ''),
  2234. ('Country', 'MM', 36, '__Burma', ''),
  2235. ('Country', 'BI', 37, '__Burundi', ''),
  2236. ('Country', 'KH', 38, '__Cambodia', ''),
  2237. ('Country', 'CM', 39, '__Cameroon', ''),
  2238. ('Country', 'CA', 40, '__Canada', ''),
  2239. ('Country', 'CV', 41, '__Cape Verde', ''),
  2240. ('Country', 'KY', 42, '__Cayman Islands', ''),
  2241. ('Country', 'CF', 43, '__Central African Republic', ''),
  2242. ('Country', 'TD', 44, '__Chad', ''),
  2243. ('Country', 'CL', 45, '__Chile', ''),
  2244. ('Country', 'CN', 46, '__China', ''),
  2245. ('Country', 'CX', 47, '__Christmas Island', ''),
  2246. ('Country', 'CC', 48, '__Cocos (Keeling) Islands', ''),
  2247. ('Country', 'CO', 49, '__Colombia', ''),
  2248. ('Country', 'KM', 50, '__Comoros', ''),
  2249. ('Country', 'CD', 51, '__Congo, Democratic Republic of the', ''),
  2250. ('Country', 'CG', 52, '__Congo, Republic of the', ''),
  2251. ('Country', 'CK', 53, '__Cook Islands', ''),
  2252. ('Country', 'CR', 54, '__Costa Rica', ''),
  2253. ('Country', 'CI', 55, '__Cote d''Ivoire', ''),
  2254. ('Country', 'HR', 56, '__Croatia', ''),
  2255. ('Country', 'CU', 57, '__Cuba', ''),
  2256. ('Country', 'CY', 58, '__Cyprus', ''),
  2257. ('Country', 'CZ', 59, '__Czech Republic', ''),
  2258. ('Country', 'DK', 60, '__Denmark', ''),
  2259. ('Country', 'DJ', 61, '__Djibouti', ''),
  2260. ('Country', 'DM', 62, '__Dominica', ''),
  2261. ('Country', 'DO', 63, '__Dominican Republic', ''),
  2262. ('Country', 'TL', 64, '__East Timor', ''),
  2263. ('Country', 'EC', 65, '__Ecuador', ''),
  2264. ('Country', 'EG', 66, '__Egypt', ''),
  2265. ('Country', 'SV', 67, '__El Salvador', ''),
  2266. ('Country', 'GQ', 68, '__Equatorial Guinea', ''),
  2267. ('Country', 'ER', 69, '__Eritrea', ''),
  2268. ('Country', 'EE', 70, '__Estonia', ''),
  2269. ('Country', 'ET', 71, '__Ethiopia', ''),
  2270. ('Country', 'FK', 72, '__Falkland Islands (Islas Malvinas)', ''),
  2271. ('Country', 'FO', 73, '__Faroe Islands', ''),
  2272. ('Country', 'FJ', 74, '__Fiji', ''),
  2273. ('Country', 'FI', 75, '__Finland', ''),
  2274. ('Country', 'FR', 76, '__France', ''),
  2275. ('Country', 'GF', 77, '__French Guiana', ''),
  2276. ('Country', 'PF', 78, '__French Polynesia', ''),
  2277. ('Country', 'TF', 79, '__French Southern and Antarctic Lands', ''),
  2278. ('Country', 'GA', 80, '__Gabon', ''),
  2279. ('Country', 'GE', 81, '__Georgia', ''),
  2280. ('Country', 'DE', 82, '__Germany', ''),
  2281. ('Country', 'GH', 83, '__Ghana', ''),
  2282. ('Country', 'GI', 84, '__Gibraltar', ''),
  2283. ('Country', 'GR', 85, '__Greece', ''),
  2284. ('Country', 'GL', 86, '__Greenland', ''),
  2285. ('Country', 'GD', 87, '__Grenada', ''),
  2286. ('Country', 'GP', 88, '__Guadeloupe', ''),
  2287. ('Country', 'GU', 89, '__Guam', ''),
  2288. ('Country', 'GT', 90, '__Guatemala', ''),
  2289. ('Country', 'GG', 91, '__Guernsey', ''),
  2290. ('Country', 'GN', 92, '__Guinea', ''),
  2291. ('Country', 'GW', 93, '__Guinea-Bissau', ''),
  2292. ('Country', 'GY', 94, '__Guyana', ''),
  2293. ('Country', 'HT', 95, '__Haiti', ''),
  2294. ('Country', 'HM', 96, '__Heard Island and McDonald Islands', ''),
  2295. ('Country', 'VA', 97, '__Holy See (Vatican City)', ''),
  2296. ('Country', 'HN', 98, '__Honduras', ''),
  2297. ('Country', 'HK', 99, '__Hong Kong (SAR)', ''),
  2298. ('Country', 'HU', 100, '__Hungary', ''),
  2299. ('Country', 'IS', 101, '__Iceland', ''),
  2300. ('Country', 'IN', 102, '__India', ''),
  2301. ('Country', 'ID', 103, '__Indonesia', ''),
  2302. ('Country', 'IR', 104, '__Iran', ''),
  2303. ('Country', 'IQ', 105, '__Iraq', ''),
  2304. ('Country', 'IE', 106, '__Ireland', ''),
  2305. ('Country', 'IM', 107, '__Isle_of_Man', ''),
  2306. ('Country', 'IL', 108, '__Israel', ''),
  2307. ('Country', 'IT', 109, '__Italy', ''),
  2308. ('Country', 'JM', 110, '__Jamaica', ''),
  2309. ('Country', 'JP', 111, '__Japan', ''),
  2310. ('Country', 'JE', 112, '__Jersey', ''),
  2311. ('Country', 'JO', 113, '__Jordan', ''),
  2312. ('Country', 'KZ', 114, '__Kazakhstan', ''),
  2313. ('Country', 'KE', 115, '__Kenya', ''),
  2314. ('Country', 'KI', 116, '__Kiribati', ''),
  2315. ('Country', 'KP', 117, '__Korea, North', ''),
  2316. ('Country', 'KR', 118, '__Korea, South', ''),
  2317. ('Country', 'KW', 119, '__Kuwait', ''),
  2318. ('Country', 'KG', 120, '__Kyrgyzstan', ''),
  2319. ('Country', 'LA', 121, '__Laos', ''),
  2320. ('Country', 'LV', 122, '__Latvia', ''),
  2321. ('Country', 'LB', 123, '__Lebanon', ''),
  2322. ('Country', 'LS', 124, '__Lesotho', ''),
  2323. ('Country', 'LR', 125, '__Liberia', ''),
  2324. ('Country', 'LY', 126, '__Libya', ''),
  2325. ('Country', 'LI', 127, '__Liechtenstein', ''),
  2326. ('Country', 'LT', 128, '__Lithuania', ''),
  2327. ('Country', 'LU', 129, '__Luxembourg', ''),
  2328. ('Country', 'MO', 130, '__Macao', ''),
  2329. ('Country', 'MK', 131, '__Macedonia, The Former Yugoslav Republic of', ''),
  2330. ('Country', 'MG', 132, '__Madagascar', ''),
  2331. ('Country', 'MW', 133, '__Malawi', ''),
  2332. ('Country', 'MY', 134, '__Malaysia', ''),
  2333. ('Country', 'MV', 135, '__Maldives', ''),
  2334. ('Country', 'ML', 136, '__Mali', ''),
  2335. ('Country', 'MT', 137, '__Malta', ''),
  2336. ('Country', 'MH', 138, '__Marshall Islands', ''),
  2337. ('Country', 'MQ', 139, '__Martinique', ''),
  2338. ('Country', 'MR', 140, '__Mauritania', ''),
  2339. ('Country', 'MU', 141, '__Mauritius', ''),
  2340. ('Country', 'YT', 142, '__Mayotte', ''),
  2341. ('Country', 'MX', 143, '__Mexico', ''),
  2342. ('Country', 'FM', 144, '__Micronesia, Federated States of', ''),
  2343. ('Country', 'MD', 145, '__Moldova', ''),
  2344. ('Country', 'MC', 146, '__Monaco', ''),
  2345. ('Country', 'MN', 147, '__Mongolia', ''),
  2346. ('Country', 'ME', 148, '__Montenegro', ''),
  2347. ('Country', 'MS', 149, '__Montserrat', ''),
  2348. ('Country', 'MA', 150, '__Morocco', ''),
  2349. ('Country', 'MZ', 151, '__Mozambique', ''),
  2350. ('Country', 'NA', 152, '__Namibia', ''),
  2351. ('Country', 'NR', 153, '__Nauru', ''),
  2352. ('Country', 'NP', 154, '__Nepal', ''),
  2353. ('Country', 'NL', 155, '__Netherlands', ''),
  2354. ('Country', 'AN', 156, '__Netherlands Antilles', ''),
  2355. ('Country', 'NC', 157, '__New Caledonia', ''),
  2356. ('Country', 'NZ', 158, '__New Zealand', ''),
  2357. ('Country', 'NI', 159, '__Nicaragua', ''),
  2358. ('Country', 'NE', 160, '__Niger', ''),
  2359. ('Country', 'NG', 161, '__Nigeria', ''),
  2360. ('Country', 'NU', 162, '__Niue', ''),
  2361. ('Country', 'NF', 163, '__Norfolk Island', ''),
  2362. ('Country', 'MP', 164, '__Northern Mariana Islands', ''),
  2363. ('Country', 'NO', 165, '__Norway', ''),
  2364. ('Country', 'OM', 166, '__Oman', ''),
  2365. ('Country', 'PK', 167, '__Pakistan', ''),
  2366. ('Country', 'PW', 168, '__Palau', ''),
  2367. ('Country', 'PS', 169, '__Palestinian Territory, Occupied', ''),
  2368. ('Country', 'PA', 170, '__Panama', ''),
  2369. ('Country', 'PG', 171, '__Papua New Guinea', ''),
  2370. ('Country', 'PY', 172, '__Paraguay', ''),
  2371. ('Country', 'PE', 173, '__Peru', ''),
  2372. ('Country', 'PH', 174, '__Philippines', ''),
  2373. ('Country', 'PN', 175, '__Pitcairn Islands', ''),
  2374. ('Country', 'PL', 176, '__Poland', ''),
  2375. ('Country', 'PT', 177, '__Portugal', ''),
  2376. ('Country', 'PR', 178, '__Puerto Rico', ''),
  2377. ('Country', 'QA', 179, '__Qatar', ''),
  2378. ('Country', 'RE', 180, '__Reunion', ''),
  2379. ('Country', 'RO', 181, '__Romania', ''),
  2380. ('Country', 'RU', 182, '__Russia', ''),
  2381. ('Country', 'RW', 183, '__Rwanda', ''),
  2382. ('Country', 'SH', 184, '__Saint Helena', ''),
  2383. ('Country', 'KN', 185, '__Saint Kitts and Nevis', ''),
  2384. ('Country', 'LC', 186, '__Saint Lucia', ''),
  2385. ('Country', 'PM', 187, '__Saint Pierre and Miquelon', ''),
  2386. ('Country', 'VC', 188, '__Saint Vincent and the Grenadines', ''),
  2387. ('Country', 'BL', 189, '__Saint_Barthelemy', ''),
  2388. ('Country', 'MF', 190, '__Saint_Martin_French_part', ''),
  2389. ('Country', 'WS', 191, '__Samoa', ''),
  2390. ('Country', 'SM', 192, '__San Marino', ''),
  2391. ('Country', 'ST', 193, '__Sao Tome and Principe', ''),
  2392. ('Country', 'SA', 194, '__Saudi Arabia', ''),
  2393. ('Country', 'SN', 195, '__Senegal', ''),
  2394. ('Country', 'RS', 196, '__Serbia', ''),
  2395. ('Country', 'SC', 197, '__Seychelles', ''),
  2396. ('Country', 'SL', 198, '__Sierra Leone', ''),
  2397. ('Country', 'SG', 199, '__Singapore', ''),
  2398. ('Country', 'SK', 200, '__Slovakia', ''),
  2399. ('Country', 'SI', 201, '__Slovenia', ''),
  2400. ('Country', 'SB', 202, '__Solomon Islands', ''),
  2401. ('Country', 'SO', 203, '__Somalia', ''),
  2402. ('Country', 'ZA', 204, '__South Africa', ''),
  2403. ('Country', 'GS', 205, '__South Georgia and the South Sandwich Islands', ''),
  2404. ('Country', 'ES', 206, '__Spain', ''),
  2405. ('Country', 'LK', 207, '__Sri Lanka', ''),
  2406. ('Country', 'SD', 208, '__Sudan', ''),
  2407. ('Country', 'SR', 209, '__Suriname', ''),
  2408. ('Country', 'SJ', 210, '__Svalbard', ''),
  2409. ('Country', 'SZ', 211, '__Swaziland', ''),
  2410. ('Country', 'SE', 212, '__Sweden', ''),
  2411. ('Country', 'CH', 213, '__Switzerland', ''),
  2412. ('Country', 'SY', 214, '__Syria', ''),
  2413. ('Country', 'TW', 215, '__Taiwan', ''),
  2414. ('Country', 'TJ', 216, '__Tajikistan', ''),
  2415. ('Country', 'TZ', 217, '__Tanzania', ''),
  2416. ('Country', 'TH', 218, '__Thailand', ''),
  2417. ('Country', 'BS', 219, '__The Bahamas', ''),
  2418. ('Country', 'GM', 220, '__The Gambia', ''),
  2419. ('Country', 'TG', 221, '__Togo', ''),
  2420. ('Country', 'TK', 222, '__Tokelau', ''),
  2421. ('Country', 'TO', 223, '__Tonga', ''),
  2422. ('Country', 'TT', 224, '__Trinidad and Tobago', ''),
  2423. ('Country', 'TN', 225, '__Tunisia', ''),
  2424. ('Country', 'TR', 226, '__Turkey', ''),
  2425. ('Country', 'TM', 227, '__Turkmenistan', ''),
  2426. ('Country', 'TC', 228, '__Turks and Caicos Islands', ''),
  2427. ('Country', 'TV', 229, '__Tuvalu', ''),
  2428. ('Country', 'UG', 230, '__Uganda', ''),
  2429. ('Country', 'UA', 231, '__Ukraine', ''),
  2430. ('Country', 'AE', 232, '__United Arab Emirates', ''),
  2431. ('Country', 'GB', 233, '__United Kingdom', ''),
  2432. ('Country', 'US', 234, '__United States', ''),
  2433. ('Country', 'UM', 235, '__United States Minor Outlying Islands', ''),
  2434. ('Country', 'UY', 236, '__Uruguay', ''),
  2435. ('Country', 'UZ', 237, '__Uzbekistan', ''),
  2436. ('Country', 'VU', 238, '__Vanuatu', ''),
  2437. ('Country', 'VE', 239, '__Venezuela', ''),
  2438. ('Country', 'VN', 240, '__Vietnam', ''),
  2439. ('Country', 'VI', 241, '__Virgin Islands', ''),
  2440. ('Country', 'WF', 242, '__Wallis and Futuna', ''),
  2441. ('Country', 'EH', 243, '__Western Sahara', ''),
  2442. ('Country', 'YE', 244, '__Yemen', ''),
  2443. ('Country', 'ZM', 245, '__Zambia', ''),
  2444. ('Country', 'ZW', 246, '__Zimbabwe', '');
  2445. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2446. ('Sex', '1', 0, '_Male', '_LookinMale'),
  2447. ('Sex', '2', 1, '_Female', '_LookinFemale');
  2448. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2449. ('Language', '0', 0, '__English', ''),
  2450. ('Language', '1', 1, '__Afrikaans', ''),
  2451. ('Language', '2', 2, '__Arabic', ''),
  2452. ('Language', '3', 3, '__Bulgarian', ''),
  2453. ('Language', '4', 4, '__Burmese', ''),
  2454. ('Language', '5', 5, '__Cantonese', ''),
  2455. ('Language', '6', 6, '__Croatian', ''),
  2456. ('Language', '7', 7, '__Danish', ''),
  2457. ('Language', '8', 8, '__Dutch', ''),
  2458. ('Language', '9', 9, '__Esperanto', ''),
  2459. ('Language', '10', 10, '__Estonian', ''),
  2460. ('Language', '11', 11, '__Finnish', ''),
  2461. ('Language', '12', 12, '__French', ''),
  2462. ('Language', '13', 13, '__German', ''),
  2463. ('Language', '14', 14, '__Greek', ''),
  2464. ('Language', '15', 15, '__Gujrati', ''),
  2465. ('Language', '16', 16, '__Hebrew', ''),
  2466. ('Language', '17', 17, '__Hindi', ''),
  2467. ('Language', '18', 18, '__Hungarian', ''),
  2468. ('Language', '19', 19, '__Icelandic', ''),
  2469. ('Language', '20', 20, '__Indian', ''),
  2470. ('Language', '21', 21, '__Indonesian', ''),
  2471. ('Language', '22', 22, '__Italian', ''),
  2472. ('Language', '23', 23, '__Japanese', ''),
  2473. ('Language', '24', 24, '__Korean', ''),
  2474. ('Language', '25', 25, '__Latvian', ''),
  2475. ('Language', '26', 26, '__Lithuanian', ''),
  2476. ('Language', '27', 27, '__Malay', ''),
  2477. ('Language', '28', 28, '__Mandarin', ''),
  2478. ('Language', '29', 29, '__Marathi', ''),
  2479. ('Language', '30', 30, '__Moldovian', ''),
  2480. ('Language', '31', 31, '__Nepalese', ''),
  2481. ('Language', '32', 32, '__Norwegian', ''),
  2482. ('Language', '33', 33, '__Persian', ''),
  2483. ('Language', '34', 34, '__Polish', ''),
  2484. ('Language', '35', 35, '__Portuguese', ''),
  2485. ('Language', '36', 36, '__Punjabi', ''),
  2486. ('Language', '37', 37, '__Romanian', ''),
  2487. ('Language', '38', 38, '__Russian', ''),
  2488. ('Language', '39', 39, '__Serbian', ''),
  2489. ('Language', '40', 40, '__Spanish', ''),
  2490. ('Language', '41', 41, '__Swedish', ''),
  2491. ('Language', '42', 42, '__Tagalog', ''),
  2492. ('Language', '43', 43, '__Taiwanese', ''),
  2493. ('Language', '44', 44, '__Tamil', ''),
  2494. ('Language', '45', 45, '__Telugu', ''),
  2495. ('Language', '46', 46, '__Thai', ''),
  2496. ('Language', '47', 47, '__Tongan', ''),
  2497. ('Language', '48', 48, '__Turkish', ''),
  2498. ('Language', '49', 49, '__Ukrainian', ''),
  2499. ('Language', '50', 50, '__Urdu', ''),
  2500. ('Language', '51', 51, '__Vietnamese', ''),
  2501. ('Language', '52', 52, '__Visayan', '');
  2502. -- --------------------------------------------------------
  2503. CREATE TABLE IF NOT EXISTS `sys_menu_templates` (
  2504. `id` int(11) NOT NULL AUTO_INCREMENT,
  2505. `template` varchar(255) NOT NULL,
  2506. `title` varchar(255) NOT NULL,
  2507. PRIMARY KEY (`id`)
  2508. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2509. INSERT INTO `sys_menu_templates` (`id`, `template`, `title`) VALUES
  2510. (1, 'menu_main.html', '_sys_menu_template_title_main'),
  2511. (2, 'menu_footer.html', '_sys_menu_template_title_footer'),
  2512. (3, 'menu_horizontal.html', '_sys_menu_template_title_hor'),
  2513. (4, 'menu_vertical_lite.html', '_sys_menu_template_title_ver_lite'),
  2514. (5, 'menu_toolbar.html', '_sys_menu_template_title_toolbar'),
  2515. (6, 'menu_vertical.html', '_sys_menu_template_title_ver'),
  2516. (7, 'menu_floating_blocks.html', '_sys_menu_template_title_floating_blocks'),
  2517. (8, 'menu_main_submenu.html', '_sys_menu_template_title_main_submenu'),
  2518. (9, 'menu_buttons_hor.html', '_sys_menu_template_title_buttons_hor'),
  2519. (10, 'menu_inline.html', '_sys_menu_template_title_inline'),
  2520. (11, 'menu_interactive_vertical.html', '_sys_menu_template_title_interactive_vertical');
  2521. CREATE TABLE IF NOT EXISTS `sys_objects_menu` (
  2522. `id` int(11) NOT NULL AUTO_INCREMENT,
  2523. `object` varchar(32) NOT NULL,
  2524. `title` varchar(255) NOT NULL,
  2525. `set_name` varchar(32) NOT NULL,
  2526. `module` varchar(32) NOT NULL,
  2527. `template_id` int(11) NOT NULL,
  2528. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2529. `active` tinyint(4) NOT NULL DEFAULT '0',
  2530. `override_class_name` varchar(255) NOT NULL,
  2531. `override_class_file` varchar(255) NOT NULL,
  2532. PRIMARY KEY (`id`),
  2533. UNIQUE KEY `object` (`object`)
  2534. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2535. INSERT INTO `sys_objects_menu` (`object`, `title`, `set_name`, `module`, `template_id`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  2536. ('sys_site', '_sys_menu_title_main', 'sys_site', 'system', 7, 0, 1, '', ''),
  2537. ('sys_site_submenu', '_sys_menu_title_submenu', 'sys_site', 'system', 1, 0, 1, 'BxTemplMenuSubmenu', ''),
  2538. ('sys_site_submenu_main', '_sys_menu_title_submenu_main', 'sys_site', 'system', 8, 0, 1, '', ''),
  2539. ('sys_footer', '_sys_menu_title_footer', 'sys_footer', 'system', 2, 0, 1, '', ''),
  2540. ('sys_toolbar_site', '_sys_menu_title_toolbar_site', 'sys_toolbar_site', 'system', 5, 0, 1, '', ''),
  2541. ('sys_toolbar_member', '_sys_menu_title_toolbar_member', 'sys_toolbar_member', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  2542. ('sys_account', '_sys_menu_title_account', 'sys_account_links', 'system', 4, 0, 1, '', ''),
  2543. ('sys_add_content', '_sys_menu_title_add_content', 'sys_add_content_links', 'system', 4, 0, 1, '', ''),
  2544. ('sys_account_settings', '_sys_menu_title_account_settings', 'sys_account_settings', 'system', 6, 0, 1, '', ''),
  2545. ('sys_profiles_create', '_sys_menu_title_profiles_create', 'sys_profiles_create', 'system', 4, 0, 1, '', ''),
  2546. ('sys_cmts_item_manage', '_sys_menu_title_cmts_item_manage', 'sys_cmts_item_manage', 'system', 6, 0, 1, 'BxTemplCmtsMenu', ''),
  2547. ('sys_cmts_item_actions', '_sys_menu_title_cmts_item_actions', 'sys_cmts_item_actions', 'system', 10, 0, 1, 'BxTemplCmtsMenu', '');
  2548. CREATE TABLE IF NOT EXISTS `sys_menu_sets` (
  2549. `set_name` varchar(32) NOT NULL,
  2550. `module` varchar(32) NOT NULL,
  2551. `title` varchar(255) NOT NULL,
  2552. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2553. PRIMARY KEY (`set_name`)
  2554. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2555. INSERT INTO `sys_menu_sets` (`set_name`, `module`, `title`, `deletable`) VALUES
  2556. ('sys_site', 'system', '_sys_menu_set_title_site', 0),
  2557. ('sys_footer', 'system', '_sys_menu_set_title_footer', 0),
  2558. ('sys_toolbar_site', 'system', '_sys_menu_set_title_toolbar_site', 0),
  2559. ('sys_toolbar_member', 'system', '_sys_menu_set_title_toolbar_member', 0),
  2560. ('sys_account_links', 'system', '_sys_menu_set_title_account', 0),
  2561. ('sys_add_content_links', 'system', '_sys_menu_set_title_add_content', 0),
  2562. ('sys_account_settings', 'system', '_sys_menu_set_title_account_settings', 0),
  2563. ('sys_profiles_create', 'system', '_sys_menu_set_title_profile_create_links', 0),
  2564. ('sys_cmts_item_manage', 'system', '_sys_menu_set_title_cmts_item_manage', 0),
  2565. ('sys_cmts_item_actions', 'system', '_sys_menu_set_title_cmts_item_actions', 0);
  2566. CREATE TABLE IF NOT EXISTS `sys_menu_items` (
  2567. `id` int(11) NOT NULL AUTO_INCREMENT,
  2568. `set_name` varchar(32) NOT NULL,
  2569. `module` varchar(32) NOT NULL,
  2570. `name` varchar(255) NOT NULL,
  2571. `title_system` varchar(255) NOT NULL,
  2572. `title` varchar(255) NOT NULL,
  2573. `link` varchar(255) NOT NULL,
  2574. `onclick` varchar(255) NOT NULL,
  2575. `target` varchar(255) NOT NULL,
  2576. `icon` varchar(255) NOT NULL,
  2577. `addon` text NOT NULL,
  2578. `submenu_object` varchar(32) NOT NULL,
  2579. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  2580. `active` tinyint(4) NOT NULL DEFAULT '1',
  2581. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  2582. `order` int(11) NOT NULL,
  2583. PRIMARY KEY (`id`)
  2584. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2585. -- site menu
  2586. INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `submenu_object`, `visible_for_levels`, `active`, `copyable`, `order`) VALUES
  2587. ('sys_site', 'system', 'home', '_sys_menu_item_title_system_home', '_sys_menu_item_title_home', 'index.php', '', '', 'home col-gray-dark', '', 2147483647, 1, 1, 1),
  2588. ('sys_site', 'system', 'about', '_sys_menu_item_title_system_about', '_sys_menu_item_title_about', 'page.php?i=about', '', '', 'info-circle col-blue3-dark', '', 2147483647, 1, 1, 2);
  2589. -- footer menu
  2590. INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `submenu_object`, `visible_for_levels`, `active`, `copyable`, `order`) VALUES
  2591. ('sys_footer', 'system', 'about', '_sys_menu_item_title_system_about', '_sys_menu_item_title_about', 'page.php?i=about', '', '', '', '', 2147483647, 1, 1, 1);
  2592. -- site toolbar menu
  2593. INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `submenu_object`, `visible_for_levels`, `active`, `copyable`, `order`) VALUES
  2594. ('sys_toolbar_site', 'system', 'main-menu', '_sys_menu_item_title_system_main_menu', '', 'javascript:void(0);', 'bx_menu_popup(''sys_site'', this, {pointer:{align:''left''}});', '', 'reorder', '', 2147483647, 1, 1, 1);
  2595. -- member toolbar menu
  2596. INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `submenu_object`, `visible_for_levels`, `active`, `copyable`, `order`) VALUES
  2597. ('sys_toolbar_member', 'system', 'account', '_sys_menu_item_title_system_account_menu', '_sys_menu_item_title_account_menu', 'javascript:void(0);', 'bx_menu_popup(''sys_account'', this);', '', 'user', 'sys_account', 510, 1, 0, 1),
  2598. ('sys_toolbar_member', 'system', 'login', '_sys_menu_item_title_system_login', '', 'page.php?i=login', '', '', 'user', '', 1, 1, 0, 2);
  2599. -- add content menu
  2600. INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `submenu_object`, `visible_for_levels`, `active`, `copyable`, `order`) VALUES
  2601. ('sys_account_links', 'system', 'account', '_sys_menu_item_title_system_account', '_sys_menu_item_title_account', 'member.php', '', '', '', '', 2147483646, 1, 1, 1),
  2602. ('sys_account_links', 'system', 'logout', '_sys_menu_item_title_system_logout', '_sys_menu_item_title_logout', 'logout.php', '', '', '', '', 2147483646, 1, 1, 3);
  2603. -- account settings menu
  2604. INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `submenu_object`, `visible_for_levels`, `active`, `copyable`, `order`) VALUES
  2605. ('sys_account_settings', 'system', 'account-settings-profile-context', '_sys_menu_item_title_system_account_profile_context', '_sys_menu_item_title_account_profile_context', 'page.php?i=account-profile-switcher#top', '', '', 'user', '', 2147483646, 1, 1, 1),
  2606. ('sys_account_settings', 'system', 'account-settings-info', '_sys_menu_item_title_system_account_settings_info', '_sys_menu_item_title_account_settings_info', 'page.php?i=account-settings-info#top', '', '', 'info-circle', '', 2147483646, 1, 1, 2),
  2607. ('sys_account_settings', 'system', 'account-settings-email', '_sys_menu_item_title_system_account_settings_email', '_sys_menu_item_title_account_settings_email', 'page.php?i=account-settings-email#top', '', '', 'envelope', '', 2147483646, 1, 1, 3),
  2608. ('sys_account_settings', 'system', 'account-settings-password', '_sys_menu_item_title_system_account_settings_pwd', '_sys_menu_item_title_account_settings_pwd', 'page.php?i=account-settings-password#top', '', '', 'key', '', 2147483646, 1, 1, 4),
  2609. ('sys_account_settings', 'system', 'account-settings-delete', '_sys_menu_item_title_system_account_settings_delete', '_sys_menu_item_title_account_settings_delete', 'page.php?i=account-settings-delete#top', '', '', 'remove', '', 2147483646, 1, 1, 5);
  2610. -- comment manage menu
  2611. INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `submenu_object`, `visible_for_levels`, `active`, `copyable`, `order`) VALUES
  2612. ('sys_cmts_item_manage', 'system', 'item-edit', '_sys_menu_item_title_system_cmts_item_edit', '_sys_menu_item_title_cmts_item_edit', 'javascript:void(0)', 'javascript:{js_object}.cmtEdit(this, {content_id})', '_self', 'pencil', '', 2147483647, 1, 0, 0),
  2613. ('sys_cmts_item_manage', 'system', 'item-delete', '_sys_menu_item_title_system_cmts_item_delete', '_sys_menu_item_title_cmts_item_delete', 'javascript:void(0)', 'javascript:{js_object}.cmtRemove(this, {content_id})', '_self', 'remove', '', 2147483647, 1, 0, 0);
  2614. -- comment actions menu
  2615. INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `visible_for_levels`, `active`, `copyable`, `order`) VALUES
  2616. ('sys_cmts_item_actions', 'system', 'item-vote', '_sys_menu_item_title_system_cmts_item_vote', '_sys_menu_item_title_cmts_item_vote', 'javascript:void(0)', 'javascript:{vote_onclick}', '_self', 'plus', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:24:"get_menu_item_addon_vote";s:6:"params";a:3:{i:0;s:12:"{cmt_system}";i:1;s:8:"{cmt_id}";i:2;s:12:"{content_id}";}s:5:"class";s:17:"TemplCmtsServices";}', '', 2147483647, 1, 0, 1),
  2617. ('sys_cmts_item_actions', 'system', 'item-reply', '_sys_menu_item_title_system_cmts_item_reply', '_sys_menu_item_title_cmts_item_reply', 'javascript:void(0)', 'javascript:{reply_onclick}', '_self', 'reply', '', '', 2147483647, 1, 0, 2);
  2618. -- --------------------------------------------------------
  2619. CREATE TABLE IF NOT EXISTS `sys_objects_grid` (
  2620. `id` int(11) NOT NULL AUTO_INCREMENT,
  2621. `object` varchar(32) NOT NULL,
  2622. `source_type` enum('Array','Sql') NOT NULL,
  2623. `source` text NOT NULL,
  2624. `table` varchar(255) NOT NULL,
  2625. `field_id` varchar(255) NOT NULL,
  2626. `field_order` varchar(255) NOT NULL,
  2627. `field_active` varchar(255) NOT NULL,
  2628. `paginate_url` varchar(255) NOT NULL,
  2629. `paginate_per_page` int(11) NOT NULL DEFAULT '10',
  2630. `paginate_simple` varchar(255) DEFAULT NULL,
  2631. `paginate_get_start` varchar(255) NOT NULL,
  2632. `paginate_get_per_page` varchar(255) NOT NULL,
  2633. `filter_fields` text NOT NULL,
  2634. `filter_fields_translatable` text NOT NULL,
  2635. `filter_mode` enum('like','fulltext','auto') NOT NULL DEFAULT 'auto',
  2636. `sorting_fields` text NOT NULL,
  2637. `sorting_fields_translatable` text NOT NULL,
  2638. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  2639. `override_class_name` varchar(255) NOT NULL,
  2640. `override_class_file` varchar(255) NOT NULL,
  2641. PRIMARY KEY (`id`),
  2642. UNIQUE KEY `object` (`object`)
  2643. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2644. INSERT INTO `sys_objects_grid` (`object`, `source_type`, `source`, `table`, `field_id`, `field_order`, `field_active`, `paginate_url`, `paginate_per_page`, `paginate_simple`, `paginate_get_start`, `paginate_get_per_page`, `filter_fields`, `filter_fields_translatable`, `filter_mode`, `sorting_fields`, `sorting_fields_translatable`, `override_class_name`, `override_class_file`) VALUES
  2645. ('sys_studio_lang_keys', 'Sql', 'SELECT `tlk`.`ID` AS `id`, `tlk`.`Key` AS `key`, `tlc`.`Name` AS `module`, `tls`.`String` AS `string` FROM `sys_localization_keys` AS `tlk` LEFT JOIN `sys_localization_categories` AS `tlc` ON `tlk`.`IDCategory`=`tlc`.`ID` LEFT JOIN `sys_localization_strings` AS `tls` ON `tlk`.`ID`=`tls`.`IDKey` WHERE `tls`.`IDLanguage`=\'%d\'', 'sys_localization_keys', 'id', '', '', '', 20, NULL, 'start', '', 'key,string', '', 'like', 'key,module,string', '', 'BxTemplStudioPolyglotKeys', ''),
  2646. ('sys_studio_lang_etemplates', 'Sql', 'SELECT * FROM `sys_email_templates` WHERE 1 ', 'sys_email_templates', 'ID', '', '', '', 20, NULL, 'start', '', 'Module', 'NameSystem,Subject,Body', 'auto', 'Module', 'NameSystem', 'BxTemplStudioPolyglotEtemplates', ''),
  2647. ('sys_studio_acl', 'Sql', 'SELECT * FROM `sys_acl_levels` WHERE 1 ', 'sys_acl_levels', 'ID', 'Order', 'Active', '', 100, NULL, 'start', '', 'Description', 'Name', 'auto', '', '', 'BxTemplStudioPermissionsLevels', ''),
  2648. ('sys_studio_acl_actions', 'Sql', 'SELECT *, ''0'' AS `Active` FROM `sys_acl_actions` WHERE 1 ', 'sys_acl_actions', 'ID', '', 'Active', '', 20, NULL, 'start', '', 'Module,Name', 'Title,Desc', 'auto', 'Module,Name', 'Title,Desc', 'BxTemplStudioPermissionsActions', ''),
  2649. ('sys_studio_nav_menus', 'Sql', 'SELECT `tm`.*, `tms`.`title` AS `set_title`, `tmt`.`title` AS `template_title` FROM `sys_objects_menu` AS `tm` LEFT JOIN `sys_menu_sets` AS `tms` ON `tm`.`set_name`=`tms`.`set_name` LEFT JOIN `sys_menu_templates` AS `tmt` ON `tm`.`template_id`=`tmt`.`id` WHERE 1 ', 'sys_objects_menu', 'id', '', 'active', '', 100, NULL, 'start', '', '', 'tm`.`title,tms`.`title,tmt`.`title', 'auto', '', '', 'BxTemplStudioNavigationMenus', ''),
  2650. ('sys_studio_nav_sets', 'Sql', 'SELECT * FROM `sys_menu_sets` WHERE 1 ', 'sys_menu_sets', 'set_name', '', '', '', 100, NULL, 'start', '', '', 'title', 'auto', '', '', 'BxTemplStudioNavigationSets', ''),
  2651. ('sys_studio_nav_items', 'Sql', 'SELECT * FROM `sys_menu_items` WHERE 1 ', 'sys_menu_items', 'id', 'order', 'active', '', 100, NULL, 'start_it', '', 'link', 'title_system', 'like', '', '', 'BxTemplStudioNavigationItems', ''),
  2652. ('sys_studio_nav_import', 'Sql', 'SELECT * FROM `sys_menu_items` WHERE 1 AND `copyable`=\'1\' ', 'sys_menu_items', 'id', '', '', '', 5, NULL, 'start_im', '', 'link', 'title_system', 'like', '', '', 'BxTemplStudioNavigationImport', ''),
  2653. ('sys_studio_forms', 'Sql', 'SELECT * FROM `sys_objects_form` WHERE 1 ', 'sys_objects_form', 'id', 'module,title', 'active', '', 100, NULL, 'start', '', 'module', 'title', 'like', 'module', 'title', 'BxTemplStudioFormsForms', ''),
  2654. ('sys_studio_forms_displays', 'Sql', 'SELECT `td`.`id` AS `id`, `td`.`object` AS `object`, `td`.`display_name` AS `display_name`, `td`.`title` AS `display_title`, `td`.`module` AS `module`, `tf`.`title` AS `form_title` FROM `sys_form_displays` AS `td` LEFT JOIN `sys_objects_form` AS `tf` ON `td`.`object`=`tf`.`object` WHERE 1 ', 'sys_form_displays', 'id', 'module,object,display_title', '', '', 100, NULL, 'start', '', 'td`.`module', 'td`.`title', 'like', 'module', 'display_title,form_title', 'BxTemplStudioFormsDisplays', ''),
  2655. ('sys_studio_forms_fields', 'Sql', 'SELECT `tdi`.`id` AS `id`, `ti`.`caption_system` AS `caption_system`, `ti`.`type` AS `type`, `ti`.`module` AS `module`, `tdi`.`visible_for_levels` AS `visible_for_levels`, `tdi`.`active` AS `active`, `ti`.`editable` AS `editable`, `ti`.`deletable` AS `deletable`, `tdi`.`order` AS `order` FROM `sys_form_display_inputs` AS `tdi` LEFT JOIN `sys_form_inputs` AS `ti` ON `tdi`.`input_name`=`ti`.`name` AND `ti`.`object`=? WHERE 1 AND `tdi`.`display_name`=?', 'sys_form_display_inputs', 'id', 'order', 'active', '', 100, NULL, 'start', '', 'ti`.`type', 'ti`.`caption_system', 'like', '', '', 'BxTemplStudioFormsFields', ''),
  2656. ('sys_studio_forms_pre_lists', 'Sql', 'SELECT * FROM `sys_form_pre_lists` WHERE 1 ', 'sys_form_pre_lists', 'id', '', '', '', 100, NULL, 'start', '', 'module,key', 'title', 'auto', 'module', 'title', 'BxTemplStudioFormsPreLists', ''),
  2657. ('sys_studio_forms_pre_values', 'Sql', 'SELECT * FROM `sys_form_pre_values` WHERE 1 ', 'sys_form_pre_values', 'id', 'Order', '', '', 1000, NULL, 'start', '', 'Key,Value', 'LKey,LKey2', 'auto', '', '', 'BxTemplStudioFormsPreValues', '');
  2658. CREATE TABLE IF NOT EXISTS `sys_grid_fields` (
  2659. `object` varchar(32) NOT NULL,
  2660. `name` varchar(255) NOT NULL,
  2661. `title` varchar(255) NOT NULL,
  2662. `width` varchar(16) NOT NULL,
  2663. `translatable` tinyint(4) NOT NULL DEFAULT '0',
  2664. `chars_limit` int(11) NOT NULL DEFAULT '0',
  2665. `params` text NOT NULL,
  2666. `order` int(11) NOT NULL,
  2667. UNIQUE KEY `object_name` (`object`,`name`)
  2668. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2669. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  2670. ('sys_studio_lang_keys', 'checkbox', 'Select', '1%', 0, '', '', 1),
  2671. ('sys_studio_lang_keys', 'key', '_adm_pgt_txt_key', '24%', 0, '20', '', 2),
  2672. ('sys_studio_lang_keys', 'module', '_adm_pgt_txt_module', '15%', 0, '12', '', 3),
  2673. ('sys_studio_lang_keys', 'string', '_adm_pgt_txt_text', '32%', 0, '30', '', 4),
  2674. ('sys_studio_lang_keys', 'languages', '_adm_pgt_txt_languages', '10%', 0, '', '', 5),
  2675. ('sys_studio_lang_keys', 'actions', '', '20%', 0, '', '', 6),
  2676. ('sys_studio_lang_etemplates', 'NameSystem', '_adm_pgt_txt_etemplates_gl_name_system', '60%', 1, '58', '', 1),
  2677. ('sys_studio_lang_etemplates', 'Module', '_adm_pgt_txt_etemplates_gl_module', '20%', 0, '18', '', 2),
  2678. ('sys_studio_lang_etemplates', 'actions', '', '20%', 0, '', '', 3),
  2679. ('sys_studio_acl', 'Order', '', '1%', 0, '', '', 1),
  2680. ('sys_studio_acl', 'switcher', '_adm_prm_txt_enable', '5%', 0, '', '', 2),
  2681. ('sys_studio_acl', 'Icon', '_adm_prm_txt_icon', '5%', 0, '', '', 3),
  2682. ('sys_studio_acl', 'Name', '_adm_prm_txt_title', '29%', 1, '15', '', 4),
  2683. ('sys_studio_acl', 'ActionsList', '_adm_prm_txt_actions', '10%', 0, '', '', 5),
  2684. ('sys_studio_acl', 'QuotaSize', '_adm_prm_txt_storage', '10%', 0, '', '', 6),
  2685. ('sys_studio_acl', 'QuotaMaxFileSize', '_adm_prm_txt_max_file_size', '10%', 0, '', '', 7),
  2686. ('sys_studio_acl', 'QuotaNumber', '_adm_prm_txt_max_files', '10%', 0, '', '', 8),
  2687. ('sys_studio_acl', 'actions', '', '20%', 0, '', '', 9),
  2688. ('sys_studio_acl_actions', 'switcher', '_adm_prm_txt_enable', '10%', 0, '', '', 1),
  2689. ('sys_studio_acl_actions', 'Title', '_adm_prm_txt_title', '25%', 1, '25', '', 2),
  2690. ('sys_studio_acl_actions', 'Module', '_adm_prm_txt_module', '20%', 0, '18', '', 3),
  2691. ('sys_studio_acl_actions', 'Desc', '_adm_prm_txt_description', '25%', 0, '25', '', 4),
  2692. ('sys_studio_acl_actions', 'actions', '', '20%', 0, '', '', 5),
  2693. ('sys_studio_nav_menus', 'switcher', '', '10%', 0, '', '', 1),
  2694. ('sys_studio_nav_menus', 'title', '_adm_nav_txt_menus_gl_title', '17%', 0, '15', '', 2),
  2695. ('sys_studio_nav_menus', 'set_title', '_adm_nav_txt_menus_gl_set_title', '17%', 1, '15', '', 3),
  2696. ('sys_studio_nav_menus', 'items', '_adm_nav_txt_menus_gl_items', '10%', 0, '8', '', 4),
  2697. ('sys_studio_nav_menus', 'template_title', '_adm_nav_txt_menus_gl_template_title', '17%', 1, '15', '', 5),
  2698. ('sys_studio_nav_menus', 'module', '_adm_nav_txt_menus_gl_module', '12%', 0, '10', '', 6),
  2699. ('sys_studio_nav_menus', 'actions', '', '17%', 0, '', '', 7),
  2700. ('sys_studio_nav_sets', 'title', '_adm_nav_txt_sets_gl_title', '50%', 1, '48', '', 1),
  2701. ('sys_studio_nav_sets', 'module', '_adm_nav_txt_sets_gl_module', '15%', 0, '13', '', 2),
  2702. ('sys_studio_nav_sets', 'items', '_adm_nav_txt_sets_gl_items', '15%', 0, '13', '', 3),
  2703. ('sys_studio_nav_sets', 'actions', '', '20%', 0, '', '', 4),
  2704. ('sys_studio_nav_items', 'order', '', '1%', 0, '', '', 1),
  2705. ('sys_studio_nav_items', 'switcher', '', '9%', 0, '', '', 2),
  2706. ('sys_studio_nav_items', 'icon', '_adm_nav_txt_items_gl_icon', '5%', 0, '', '', 3),
  2707. ('sys_studio_nav_items', 'title_system', '_adm_nav_txt_items_gl_title_system', '23%', 1, '23', '', 4),
  2708. ('sys_studio_nav_items', 'link', '_adm_nav_txt_items_gl_link', '23%', 0, '23', '', 5),
  2709. ('sys_studio_nav_items', 'module', '_adm_nav_txt_items_gl_module', '12%', 0, '12', '', 6),
  2710. ('sys_studio_nav_items', 'visible_for_levels', '_adm_nav_txt_items_gl_visible', '10%', 0, '10', '', 7),
  2711. ('sys_studio_nav_items', 'actions', '', '17%', 0, '', '', 8),
  2712. ('sys_studio_nav_import', 'icon', '_adm_nav_txt_items_gl_icon', '10%', 0, '', '', 1),
  2713. ('sys_studio_nav_import', 'title_system', '_adm_nav_txt_items_gl_title_system', '30%', 1, '28', '', 2),
  2714. ('sys_studio_nav_import', 'link', '_adm_nav_txt_items_gl_link', '25%', 0, '23', '', 3),
  2715. ('sys_studio_nav_import', 'module', '_adm_nav_txt_items_gl_module', '15%', 0, '13', '', 4),
  2716. ('sys_studio_nav_import', 'actions', '', '20%', 0, '', '', 5),
  2717. ('sys_studio_forms', 'switcher', '', '10%', 0, '', '', 1),
  2718. ('sys_studio_forms', 'title', '_adm_form_txt_forms_gl_title', '40%', 1, '38', '', 2),
  2719. ('sys_studio_forms', 'module', '_adm_form_txt_forms_gl_module', '15%', 0, '13', '', 3),
  2720. ('sys_studio_forms', 'displays', '_adm_form_txt_forms_gl_displays', '15%', 0, '13', '', 4),
  2721. ('sys_studio_forms', 'actions', '', '20%', 0, '', '', 5),
  2722. ('sys_studio_forms_displays', 'display_title', '_adm_form_txt_displays_gl_title', '30%', 1, '48', '', 1),
  2723. ('sys_studio_forms_displays', 'module', '_adm_form_txt_displays_gl_module', '13%', 0, '11', '', 2),
  2724. ('sys_studio_forms_displays', 'form_title', '_adm_form_txt_displays_gl_form', '24%', 1, '22', '', 3),
  2725. ('sys_studio_forms_displays', 'fields', '_adm_form_txt_displays_gl_fields', '13%', 0, '11', '', 4),
  2726. ('sys_studio_forms_displays', 'actions', '', '20%', 0, '', '', 5),
  2727. ('sys_studio_forms_fields', 'order', '', '1%', 0, '', '', 1),
  2728. ('sys_studio_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  2729. ('sys_studio_forms_fields', 'type', '_adm_form_txt_fields_type', '5%', 0, '', '', 3),
  2730. ('sys_studio_forms_fields', 'caption_system', '_adm_form_txt_fields_caption_system', '40%', 1, '38', '', 4),
  2731. ('sys_studio_forms_fields', 'module', '_adm_form_txt_fields_module', '15%', 0, '13', '', 5),
  2732. ('sys_studio_forms_fields', 'visible_for_levels', '_adm_form_txt_fields_visible', '10%', 0, '10', '', 6),
  2733. ('sys_studio_forms_fields', 'actions', '', '20%', 0, '', '', 7),
  2734. ('sys_studio_forms_pre_lists', 'title', '_adm_form_txt_pre_lists_gl_title', '45%', 1, '50', '', 1),
  2735. ('sys_studio_forms_pre_lists', 'values', '_adm_form_txt_pre_lists_gl_values', '12%', 0, '10', '', 2),
  2736. ('sys_studio_forms_pre_lists', 'module', '_adm_form_txt_pre_lists_gl_module', '13%', 0, '11', '', 3),
  2737. ('sys_studio_forms_pre_lists', 'use_for_sets', '_adm_form_txt_pre_lists_gl_use_for_sets', '10%', 0, '8', '', 4),
  2738. ('sys_studio_forms_pre_lists', 'actions', '', '20%', 0, '', '', 5),
  2739. ('sys_studio_forms_pre_values', 'order', '', '1%', 0, '', '', 1),
  2740. ('sys_studio_forms_pre_values', 'LKey', '_adm_form_txt_pre_values_gl_lkey', '79%', 1, '75', '', 2),
  2741. ('sys_studio_forms_pre_values', 'actions', '', '20%', 0, '', '', 3);
  2742. CREATE TABLE IF NOT EXISTS `sys_grid_actions` (
  2743. `object` varchar(32) NOT NULL,
  2744. `type` enum('bulk','single','independent') NOT NULL,
  2745. `name` varchar(255) NOT NULL,
  2746. `title` varchar(255) NOT NULL,
  2747. `icon` varchar(255) NOT NULL,
  2748. `confirm` tinyint(4) NOT NULL DEFAULT '1',
  2749. `order` int(11) NOT NULL,
  2750. UNIQUE KEY `object_name_type` (`object`,`type`,`name`)
  2751. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2752. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`) VALUES
  2753. ('sys_studio_lang_keys', 'bulk', 'delete', '_adm_pgt_btn_delete', '', 1, 1),
  2754. ('sys_studio_lang_keys', 'single', 'edit', '', 'pencil', 0, 1),
  2755. ('sys_studio_lang_keys', 'single', 'delete', '', 'remove', 1, 2),
  2756. ('sys_studio_lang_keys', 'independent', 'add', '_adm_pgt_btn_add_new_key', '', 0, 1),
  2757. ('sys_studio_lang_etemplates', 'single', 'edit', '', 'pencil', 0, 1),
  2758. ('sys_studio_acl', 'independent', 'add', '_adm_prm_btn_add_level', '', 0, 1),
  2759. ('sys_studio_acl', 'single', 'edit', '', 'pencil', 0, 1),
  2760. ('sys_studio_acl', 'single', 'delete', '', 'remove', 1, 2),
  2761. ('sys_studio_acl_actions', 'single', 'options', '', 'cog', 0, 1),
  2762. ('sys_studio_nav_menus', 'independent', 'add', '_adm_nav_btn_menus_create', '', 0, 1),
  2763. ('sys_studio_nav_menus', 'single', 'edit', '', 'pencil', 0, 1),
  2764. ('sys_studio_nav_menus', 'single', 'delete', '', 'remove', 1, 2),
  2765. ('sys_studio_nav_sets', 'independent', 'add', '_adm_nav_btn_sets_create', '', 0, 1),
  2766. ('sys_studio_nav_sets', 'single', 'edit', '', 'pencil', 0, 1),
  2767. ('sys_studio_nav_sets', 'single', 'delete', '', 'remove', 1, 2),
  2768. ('sys_studio_nav_items', 'independent', 'import', '_adm_nav_btn_items_gl_import', '', 0, 1),
  2769. ('sys_studio_nav_items', 'independent', 'add', '_adm_nav_btn_items_gl_create', '', 0, 2),
  2770. ('sys_studio_nav_items', 'single', 'edit', '', 'pencil', 0, 1),
  2771. ('sys_studio_nav_items', 'single', 'delete', '', 'remove', 1, 2),
  2772. ('sys_studio_nav_items', 'single', 'show_to', '_adm_nav_btn_items_gl_visible', '', 0, 3),
  2773. ('sys_studio_nav_import', 'single', 'import', '', 'plus', 0, 1),
  2774. ('sys_studio_nav_import', 'bulk', 'done', '_adm_nav_btn_items_done', '', 0, 1),
  2775. ('sys_studio_forms', 'single', 'edit', '', 'pencil', 0, 1),
  2776. ('sys_studio_forms_displays', 'single', 'edit', '', 'pencil', 0, 1),
  2777. ('sys_studio_forms_fields', 'single', 'edit', '', 'pencil', 0, 1),
  2778. ('sys_studio_forms_fields', 'single', 'delete', '', 'remove', 1, 2),
  2779. ('sys_studio_forms_fields', 'single', 'show_to', '_adm_form_btn_fields_visible', '', 0, 3),
  2780. ('sys_studio_forms_fields', 'independent', 'add', '_adm_form_btn_fields_create', '', 0, 1),
  2781. ('sys_studio_forms_pre_lists', 'independent', 'add', '_adm_form_btn_pre_lists_create', '', 0, 1),
  2782. ('sys_studio_forms_pre_lists', 'single', 'edit', '', 'pencil', 0, 1),
  2783. ('sys_studio_forms_pre_lists', 'single', 'delete', '', 'remove', 1, 2),
  2784. ('sys_studio_forms_pre_values', 'independent', 'add', '_adm_form_btn_pre_values_create', '', 0, 1),
  2785. ('sys_studio_forms_pre_values', 'single', 'edit', '', 'pencil', 0, 1),
  2786. ('sys_studio_forms_pre_values', 'single', 'delete', '', 'remove', 1, 2);
  2787. -- --------------------------------------------------------
  2788. CREATE TABLE IF NOT EXISTS `sys_objects_connection` (
  2789. `id` int(11) NOT NULL AUTO_INCREMENT,
  2790. `object` varchar(32) NOT NULL,
  2791. `table` varchar(255) NOT NULL,
  2792. `type` enum('one-way','mutual') NOT NULL,
  2793. `override_class_name` varchar(255) NOT NULL,
  2794. `override_class_file` varchar(255) NOT NULL,
  2795. PRIMARY KEY (`id`),
  2796. UNIQUE KEY `object` (`object`)
  2797. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2798. INSERT INTO `sys_objects_connection` (`object`, `table`, `type`, `override_class_name`, `override_class_file`) VALUES
  2799. ('sys_profiles_friends', 'sys_profiles_conn_friends', 'mutual', '', ''),
  2800. ('sys_profiles_subscriptions', 'sys_profiles_conn_subscriptions', 'one-way', '', '');
  2801. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_subscriptions` (
  2802. `id` int(11) NOT NULL AUTO_INCREMENT,
  2803. `initiator` int(11) NOT NULL,
  2804. `content` int(11) NOT NULL,
  2805. `added` int(10) unsigned NOT NULL,
  2806. PRIMARY KEY (`id`),
  2807. UNIQUE KEY `initiator` (`initiator`,`content`),
  2808. KEY `content` (`content`)
  2809. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2810. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_friends` (
  2811. `id` int(11) NOT NULL AUTO_INCREMENT,
  2812. `initiator` int(11) NOT NULL,
  2813. `content` int(11) NOT NULL,
  2814. `mutual` tinyint(4) NOT NULL,
  2815. `added` int(10) unsigned NOT NULL,
  2816. PRIMARY KEY (`id`),
  2817. UNIQUE KEY `initiator` (`initiator`,`content`),
  2818. KEY `content` (`content`)
  2819. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2820. -- --------------------------------------------------------
  2821. CREATE TABLE IF NOT EXISTS `sys_objects_transcoder_images` (
  2822. `id` int(11) NOT NULL AUTO_INCREMENT,
  2823. `object` varchar(32) NOT NULL,
  2824. `storage_object` varchar(32) NOT NULL,
  2825. `source_type` enum('Folder','Storage') NOT NULL,
  2826. `source_params` text NOT NULL,
  2827. `private` enum('auto','yes','no') NOT NULL,
  2828. `atime_tracking` int(11) NOT NULL,
  2829. `atime_pruning` int(11) NOT NULL,
  2830. `ts` int(11) NOT NULL DEFAULT '0',
  2831. PRIMARY KEY (`id`),
  2832. UNIQUE KEY `object` (`object`)
  2833. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2834. INSERT INTO `sys_objects_transcoder_images` (`object`, `storage_object`, `source_type`, `source_params`, `private`, `atime_tracking`, `atime_pruning`, `ts`) VALUES
  2835. ('sys_icon_apple', 'sys_images', 'Storage', 'a:2:{s:6:"object";s:10:"sys_images";s:14:"disable_retina";b:1;}', 'no', '0', '0', '0'),
  2836. ('sys_icon_facebook', 'sys_images', 'Storage', 'a:2:{s:6:"object";s:10:"sys_images";s:14:"disable_retina";b:1;}', 'no', '0', '0', '0'),
  2837. ('sys_icon_favicon', 'sys_images', 'Storage', 'a:2:{s:6:"object";s:10:"sys_images";s:14:"disable_retina";b:1;}', 'no', '0', '0', '0'),
  2838. ('sys_cmts_images_preview', 'sys_cmts_images_preview', 'Storage', 'a:1:{s:6:"object";s:15:"sys_cmts_images";}', 'no', '1', '2592000', '0');
  2839. CREATE TABLE IF NOT EXISTS `sys_transcoder_images_files` (
  2840. `transcoder_object` varchar(32) NOT NULL,
  2841. `file_id` int(11) NOT NULL,
  2842. `handler` varchar(255) NOT NULL,
  2843. `atime` int(11) NOT NULL,
  2844. UNIQUE KEY `transcoder_object` (`transcoder_object`,`handler`),
  2845. KEY `atime` (`atime`),
  2846. KEY `file_id` (`file_id`)
  2847. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2848. CREATE TABLE IF NOT EXISTS `sys_transcoder_images_filters` (
  2849. `transcoder_object` varchar(32) NOT NULL,
  2850. `filter` varchar(32) NOT NULL,
  2851. `filter_params` text NOT NULL,
  2852. `order` int(11) NOT NULL DEFAULT '0'
  2853. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2854. INSERT INTO `sys_transcoder_images_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
  2855. ('sys_icon_apple', 'Resize', 'a:4:{s:1:"w";s:3:"152";s:1:"h";s:3:"152";s:13:"square_resize";s:1:"1";s:10:"force_type";s:3:"png";}', '0'),
  2856. ('sys_icon_facebook', 'Resize', 'a:4:{s:1:"w";s:3:"100";s:1:"h";s:3:"100";s:13:"square_resize";s:1:"1";s:10:"force_type";s:3:"png";}', '0'),
  2857. ('sys_icon_favicon', 'Resize', 'a:4:{s:1:"w";s:2:"16";s:1:"h";s:2:"16";s:13:"square_resize";s:1:"1";s:10:"force_type";s:3:"png";}', '0'),
  2858. ('sys_cmts_images_preview', 'Resize', 'a:4:{s:1:"w";s:3:"100";s:1:"h";s:3:"100";s:13:"square_resize";s:1:"1";s:10:"force_type";s:3:"jpg";}', '0');
  2859. -- --------------------------------------------------------
  2860. CREATE TABLE IF NOT EXISTS `sys_objects_page` (
  2861. `id` int(11) NOT NULL AUTO_INCREMENT,
  2862. `object` varchar(32) NOT NULL,
  2863. `uri` varchar(255) NOT NULL,
  2864. `title_system` varchar(255) NOT NULL,
  2865. `title` varchar(255) NOT NULL,
  2866. `module` varchar(32) NOT NULL,
  2867. `layout_id` int(11) NOT NULL,
  2868. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  2869. `visible_for_levels_editable` tinyint(4) NOT NULL DEFAULT '1',
  2870. `url` varchar(255) NOT NULL,
  2871. `meta_description` text NOT NULL,
  2872. `meta_keywords` text NOT NULL,
  2873. `meta_robots` varchar(255) NOT NULL,
  2874. `cache_lifetime` int(11) NOT NULL DEFAULT '0',
  2875. `cache_editable` tinyint(4) NOT NULL DEFAULT '1',
  2876. `deletable` tinyint(1) NOT NULL,
  2877. `override_class_name` varchar(255) NOT NULL,
  2878. `override_class_file` varchar(255) NOT NULL,
  2879. PRIMARY KEY (`id`),
  2880. UNIQUE KEY `object` (`object`),
  2881. UNIQUE KEY `uri` (`uri`)
  2882. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2883. INSERT INTO `sys_objects_page` (`object`, `uri`, `title_system`, `title`, `module`, `layout_id`, `visible_for_levels`, `visible_for_levels_editable`, `url`, `meta_description`, `meta_keywords`, `meta_robots`, `cache_lifetime`, `cache_editable`, `deletable`, `override_class_name`, `override_class_file`) VALUES
  2884. ('sys_home', 'home', '_sys_page_title_system_home', '_sys_page_title_home', 'system', 5, 2147483647, 1, '', '', '', '', 0, 1, 0, 'BxTemplPageHome', ''),
  2885. ('sys_about', 'about', '_sys_page_title_system_about', '_sys_page_title_about', 'system', 5, 2147483647, 1, 'page.php?i=about', '', '', '', 0, 1, 0, '', ''),
  2886. ('sys_create_account', 'create-account', '_sys_page_title_system_create_account', '_sys_page_title_create_account', 'system', 5, 2147483647, 1, 'page.php?i=create-account', '', '', '', 0, 1, 0, '', ''),
  2887. ('sys_login', 'login', '_sys_page_title_system_login', '_sys_page_title_login', 'system', 5, 2147483647, 1, 'page.php?i=login', '', '', '', 0, 1, 0, '', ''),
  2888. ('sys_forgot_password', 'forgot-password', '_sys_page_title_system_forgot_password', '_sys_page_title_forgot_password', 'system', 5, 2147483647, 1, 'page.php?i=forgot-password', '', '', '', 0, 1, 0, '', ''),
  2889. ('sys_confirm_email', 'confirm-email', '_sys_page_title_system_confirm_email', '_sys_page_title_confirm_email', 'system', 5, 2147483647, 1, 'page.php?i=confirm-email', '', '', '', 0, 1, 0, '', ''),
  2890. ('sys_account_settings_email', 'account-settings-email', '_sys_page_title_system_account_settings_email', '_sys_page_title_account_settings_email', 'system', 1, 2147483647, 1, 'member.php', '', '', '', 0, 1, 0, 'BxTemplPageAccount', ''),
  2891. ('sys_account_settings_pwd', 'account-settings-password', '_sys_page_title_system_account_settings_pwd', '_sys_page_title_account_settings_pwd', 'system', 1, 2147483647, 1, 'page.php?i=account-settings-pwd', '', '', '', 0, 1, 0, 'BxTemplPageAccount', ''),
  2892. ('sys_account_settings_info', 'account-settings-info', '_sys_page_title_system_account_settings_info', '_sys_page_title_account_settings_info', 'system', 1, 2147483647, 1, 'page.php?i=account-settings-info', '', '', '', 0, 1, 0, 'BxTemplPageAccount', ''),
  2893. ('sys_account_settings_delete', 'account-settings-delete', '_sys_page_title_system_account_settings_delete', '_sys_page_title_account_settings_delete', 'system', 1, 2147483647, 1, 'page.php?i=account-settings-delete', '', '', '', 0, 1, 0, 'BxTemplPageAccount', ''),
  2894. ('sys_account_profile_switcher', 'account-profile-switcher', '_sys_page_title_system_account_profile_switcher', '_sys_page_title_account_profile_switcher', 'system', 1, 2147483647, 1, 'page.php?i=account-profile-switcher', '', '', '', 0, 1, 0, 'BxTemplPageAccount', ''),
  2895. ('sys_unsubscribe_notifications', 'unsubscribe-notifications', '_sys_page_title_system_unsubscribe_notifications', '_sys_page_title_unsubscribe_notifications', 'system', 5, 2147483647, 1, 'page.php?i=unsubscribe-notifications', '', '', '', 0, 1, 0, '', ''),
  2896. ('sys_unsubscribe_news', 'unsubscribe-news', '_sys_page_title_system_unsubscribe_news', '_sys_page_title_unsubscribe_news', 'system', 5, 2147483647, 1, 'page.php?i=unsubscribe-news', '', '', '', 0, 1, 0, '', '');
  2897. CREATE TABLE IF NOT EXISTS `sys_pages_layouts` (
  2898. `id` int(11) NOT NULL AUTO_INCREMENT,
  2899. `name` varchar(32) NOT NULL,
  2900. `icon` varchar(255) NOT NULL,
  2901. `title` varchar(255) NOT NULL,
  2902. `template` varchar(255) NOT NULL,
  2903. `cells_number` int(11) NOT NULL,
  2904. PRIMARY KEY (`id`),
  2905. UNIQUE KEY `name` (`name`)
  2906. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2907. INSERT INTO `sys_pages_layouts` (`id`, `name`, `icon`, `title`, `template`, `cells_number`) VALUES
  2908. (1, 'bar_left', 'layout_bar_left.png', '_sys_layout_bar_left', 'layout_bar_left.html', 2),
  2909. (2, 'bar_right', 'layout_bar_right.png', '_sys_layout_bar_right', 'layout_bar_right.html', 2),
  2910. (3, '3_columns', 'layout_3_columns.png', '_sys_layout_3_columns', 'layout_3_columns.html', 3),
  2911. (4, '2_columns', 'layout_2_columns.png', '_sys_layout_2_columns', 'layout_2_columns.html', 2),
  2912. (5, '1_column', 'layout_1_column.png', '_sys_layout_1_column', 'layout_1_column.html', 1),
  2913. (6, 'top_area_bar_left', 'layout_top_area_bar_left.png', '_sys_layout_top_area_bar_left', 'layout_top_area_bar_left.html', 3),
  2914. (7, 'top_area_bar_right', 'layout_top_area_bar_right.png', '_sys_layout_top_area_bar_right', 'layout_top_area_bar_right.html', 3),
  2915. (8, 'top_area_3_columns', 'layout_top_area_3_columns.png', '_sys_layout_top_area_3_columns', 'layout_top_area_3_columns.html', 4),
  2916. (9, 'top_area_2_columns', 'layout_top_area_2_columns.png', '_sys_layout_top_area_2_columns', 'layout_top_area_2_columns.html', 3),
  2917. (10, 'topbottom_area_2_columns', 'layout_topbottom_area_2_columns.png', '_sys_layout_topbottom_area_2_columns', 'layout_topbottom_area_2_columns.html', 4),
  2918. (11, 'bottom_area_2_columns', 'layout_bottom_area_2_columns.png', '_sys_layout_bottom_area_2_columns', 'layout_bottom_area_2_columns.html', 3);
  2919. CREATE TABLE IF NOT EXISTS `sys_pages_design_boxes` (
  2920. `id` int(11) NOT NULL,
  2921. `title` varchar(255) NOT NULL,
  2922. `template` varchar(255) NOT NULL,
  2923. `order` int(11) NOT NULL,
  2924. PRIMARY KEY (`id`)
  2925. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2926. INSERT INTO `sys_pages_design_boxes` (`id`, `title`, `template`, `order`) VALUES
  2927. (0, '_sys_designbox_0', 'designbox_0.html', '2'),
  2928. (1, '_sys_designbox_1', 'designbox_1.html', '6'),
  2929. (2, '_sys_designbox_2', 'designbox_2.html', '1'),
  2930. (3, '_sys_designbox_3', 'designbox_3.html', '4'),
  2931. (10, '_sys_designbox_10', 'designbox_10.html', '3'),
  2932. (11, '_sys_designbox_11', 'designbox_11.html', '7'),
  2933. (13, '_sys_designbox_13', 'designbox_13.html', '5');
  2934. CREATE TABLE IF NOT EXISTS `sys_pages_blocks` (
  2935. `id` int(11) NOT NULL AUTO_INCREMENT,
  2936. `object` varchar(32) NOT NULL,
  2937. `cell_id` int(11) NOT NULL DEFAULT '1',
  2938. `module` varchar(32) NOT NULL,
  2939. `title` varchar(255) NOT NULL,
  2940. `designbox_id` int(11) NOT NULL DEFAULT '11',
  2941. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  2942. `type` enum('raw','html','lang','image','rss','menu','service') NOT NULL DEFAULT 'raw',
  2943. `content` text NOT NULL,
  2944. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2945. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  2946. `active` tinyint(4) NOT NULL DEFAULT '1',
  2947. `order` int(11) NOT NULL,
  2948. PRIMARY KEY (`id`)
  2949. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2950. -- skeleton blocks
  2951. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  2952. ('', 0, 'skeletons', '_sys_block_type_raw', 11, 2147483647, 'raw', '', 0, 1, 1, 0),
  2953. ('', 0, 'skeletons', '_sys_block_type_html', 11, 2147483647, 'html', '', 0, 1, 1, 0),
  2954. ('', 0, 'skeletons', '_sys_block_type_rss', 11, 2147483647, 'rss', '', 0, 1, 1, 0),
  2955. ('', 0, 'skeletons', '_sys_block_type_image', 11, 2147483647, 'image', '', 0, 1, 1, 0),
  2956. ('', 0, 'skeletons', '_sys_block_type_lang', 11, 2147483647, 'lang', '', 0, 1, 1, 0),
  2957. ('', 0, 'skeletons', '_sys_block_type_menu', 11, 2147483647, 'menu', '', 0, 1, 1, 0),
  2958. ('', 0, 'skeletons', '_sys_block_type_service', 11, 2147483647, 'service', '', 0, 0, 1, 0);
  2959. -- content blocks
  2960. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `order`) VALUES
  2961. ('sys_home', 1, 'system', '_sys_page_block_title_login', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:10:"login_form";s:6:"params";a:1:{i:0;s:12:"no_join_text";}s:5:"class";s:17:"TemplServiceLogin";}', 0, 1, 1),
  2962. ('sys_about', 1, 'system', '_sys_page_block_title_about', 11, 2147483647, 'lang', '_sys_page_lang_block_about', 0, 1, 1),
  2963. ('sys_create_account', 1, 'system', '_sys_page_block_title_create_account', 11, 2147483647, 'service', 'a:4:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:19:\"create_account_form\";s:6:\"params\";a:0:{}s:5:\"class\";s:19:\"TemplServiceAccount\";}', 0, 1, 1),
  2964. ('sys_login', 1, 'system', '_sys_page_block_title_login', 11, 2147483647, 'service', 'a:3:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:10:\"login_form\";s:5:\"class\";s:17:\"TemplServiceLogin\";}', 0, 1, 1),
  2965. ('sys_forgot_password', 1, 'system', '_sys_page_block_title_forgot_password', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:15:"forgot_password";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1),
  2966. ('sys_confirm_email', 1, 'system', '_sys_page_block_title_confirm_email', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:18:"email_confirmation";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1),
  2967. ('sys_account_settings_email', 2, 'system', '_sys_page_block_title_account_settings_email', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:22:"account_settings_email";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1),
  2968. ('sys_account_settings_email', 1, 'system', '_sys_page_block_title_account_settings_menu', 13, 2147483647, 'menu', 'sys_account_settings', 0, 1, 1),
  2969. ('sys_account_settings_pwd', 2, 'system', '_sys_page_block_title_account_settings_pwd', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:25:"account_settings_password";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1),
  2970. ('sys_account_settings_pwd', 1, 'system', '_sys_page_block_title_account_settings_menu', 13, 2147483647, 'menu', 'sys_account_settings', 0, 1, 1),
  2971. ('sys_account_settings_info', 2, 'system', '_sys_page_block_title_account_settings_info', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:21:"account_settings_info";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1),
  2972. ('sys_account_settings_info', 1, 'system', '_sys_page_block_title_account_settings_menu', 13, 2147483647, 'menu', 'sys_account_settings', 0, 1, 1),
  2973. ('sys_account_settings_delete', 2, 'system', '_sys_page_block_title_account_settings_delete', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:28:"account_settings_del_account";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1),
  2974. ('sys_account_settings_delete', 1, 'system', '_sys_page_block_title_account_settings_menu', 13, 2147483647, 'menu', 'sys_account_settings', 0, 1, 1),
  2975. ('sys_account_profile_switcher', 1, 'system', '_sys_page_block_title_account_settings_menu', 13, 2147483647, 'menu', 'sys_account_settings', 1, 1, 1),
  2976. ('sys_account_profile_switcher', 2, 'system', '_sys_page_block_title_account_profile_switcher', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:24:"account_profile_switcher";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1),
  2977. ('sys_unsubscribe_notifications', 1, 'system', '_sys_page_block_title_unsubscribe_notifications', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:25:"unsubscribe_notifications";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1),
  2978. ('sys_unsubscribe_news', 1, 'system', '_sys_page_block_title_unsubscribe_news', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"unsubscribe_news";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1);
  2979. -- --------------------------------------------------------
  2980. --
  2981. -- Table structure for table `sys_std_pages`
  2982. --
  2983. CREATE TABLE `sys_std_pages` (
  2984. `id` int(11) unsigned NOT NULL auto_increment,
  2985. `index` int(11) unsigned NOT NULL default '0',
  2986. `name` varchar(64) NOT NULL default '',
  2987. `header` varchar(255) NOT NULL default '',
  2988. `caption` varchar(255) NOT NULL default '',
  2989. `icon` varchar(255) NOT NULL default '',
  2990. PRIMARY KEY (`id`),
  2991. UNIQUE KEY `name` (`name`)
  2992. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2993. -- --------------------------------------------------------
  2994. --
  2995. -- Table structure for table `sys_std_widgets`
  2996. --
  2997. CREATE TABLE `sys_std_widgets` (
  2998. `id` int(11) unsigned NOT NULL auto_increment,
  2999. `page_id` varchar(255) NOT NULL default '',
  3000. `module` varchar(32) NOT NULL default '',
  3001. `url` varchar(255) NOT NULL default '',
  3002. `click` text NOT NULL default '',
  3003. `icon` varchar(255) NOT NULL default '',
  3004. `caption` varchar(255) NOT NULL default '',
  3005. `cnt_notices` text NOT NULL default '',
  3006. `cnt_actions` text NOT NULL default '',
  3007. `bookmark` tinyint(4) unsigned NOT NULL default '0',
  3008. PRIMARY KEY (`ID`),
  3009. UNIQUE KEY `widget-page` (`id`, `page_id`)
  3010. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3011. -- --------------------------------------------------------
  3012. --
  3013. -- Table structure for table `sys_std_pages_widgets`
  3014. --
  3015. CREATE TABLE `sys_std_pages_widgets` (
  3016. `id` int(11) unsigned NOT NULL auto_increment,
  3017. `page_id` int(11) unsigned NOT NULL default '0',
  3018. `widget_id` int(11) unsigned NOT NULL default '0',
  3019. `order` int(11) unsigned NOT NULL default '0',
  3020. PRIMARY KEY (`id`),
  3021. UNIQUE KEY `wid_pag` (`widget_id`, `page_id`)
  3022. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3023. --
  3024. -- Dumping data for table `sys_std_pages`
  3025. --
  3026. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3027. (0, 'home', '_adm_page_cpt_home', '_adm_page_cpt_home', '');
  3028. SET @iIdHome = LAST_INSERT_ID();
  3029. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3030. (4, 'dashboard', '_adm_page_cpt_dashboard', '_adm_page_cpt_dashboard', 'pi-dashboard.png');
  3031. SET @iIdDashboard = LAST_INSERT_ID();
  3032. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3033. (3, 'settings', '_adm_page_cpt_settings', '_adm_page_cpt_settings', 'pi-settings.png');
  3034. SET @iIdSettings = LAST_INSERT_ID();
  3035. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3036. (3, 'store', '_adm_page_cpt_store', '_adm_page_cpt_store', 'pi-store.png');
  3037. SET @iIdStore = LAST_INSERT_ID();
  3038. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3039. (3, 'designer', '_adm_page_cpt_designer', '_adm_page_cpt_designer', 'pi-designer.png');
  3040. SET @iIdDesigner = LAST_INSERT_ID();
  3041. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3042. (3, 'polyglot', '_adm_page_cpt_polyglot', '_adm_page_cpt_polyglot', 'pi-polyglot.png');
  3043. SET @iIdPolyglot = LAST_INSERT_ID();
  3044. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3045. (3, 'builder_pages', '_adm_page_cpt_builder_pages', '_adm_page_cpt_builder_pages', 'pi-builder-pages.png');
  3046. SET @iIdBuilderPages = LAST_INSERT_ID();
  3047. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3048. (3, 'builder_menus', '_adm_page_cpt_builder_menus', '_adm_page_cpt_builder_menus', 'pi-builder-menus.png');
  3049. SET @iIdBuilderMenus = LAST_INSERT_ID();
  3050. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3051. (3, 'builder_forms', '_adm_page_cpt_builder_forms', '_adm_page_cpt_builder_forms', 'pi-builder-forms.png');
  3052. SET @iIdBuilderForms = LAST_INSERT_ID();
  3053. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3054. (3, 'builder_permissions', '_adm_page_cpt_builder_permissions', '_adm_page_cpt_builder_permissions', 'pi-builder-permissions.png');
  3055. SET @iIdBuilderPermissions = LAST_INSERT_ID();
  3056. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3057. (3, 'builder_mobile', '_adm_page_cpt_builder_mobile', '_adm_page_cpt_builder_mobile', 'pi-builder-mobile.png');
  3058. SET @iIdBuilderMobile = LAST_INSERT_ID();
  3059. --
  3060. -- Dumping data for table `sys_std_widgets` and `sys_std_pages_widgets`
  3061. -- Home Page
  3062. --
  3063. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3064. (@iIdSettings, 'system', '{url_studio}settings.php', '', 'wi-settings.png', '_adm_wgt_cpt_settings', '', '');
  3065. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  3066. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3067. (@iIdStore, 'system', '{url_studio}store.php', '', 'wi-store.png', '_adm_wgt_cpt_store', '', '');
  3068. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 2);
  3069. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3070. (@iIdDashboard, 'system', '{url_studio}dashboard.php', '', 'wi-dashboard.png', '_adm_wgt_cpt_dashboard', '', '');
  3071. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 3);
  3072. --
  3073. -- Templates Page
  3074. --
  3075. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3076. (@iIdDesigner, 'system', '{url_studio}designer.php', '', 'wi-templ-designer.png', '_adm_wgt_cpt_designer', '', '');
  3077. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  3078. --
  3079. -- Languages Page
  3080. --
  3081. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3082. (@iIdPolyglot, 'system', '{url_studio}polyglot.php', '', 'wi-lang-polyglot.png', '_adm_wgt_cpt_polyglot', '', '');
  3083. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  3084. --
  3085. -- Builders Page
  3086. --
  3087. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3088. (@iIdBuilderPages, 'system', '{url_studio}builder_page.php', '', 'wi-bld-pages.png', '_adm_wgt_cpt_builder_pages', '', '');
  3089. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  3090. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3091. (@iIdBuilderMenus, 'system', '{url_studio}builder_menu.php', '', 'wi-bld-navigation.png', '_adm_wgt_cpt_builder_menus', '', '');
  3092. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 2);
  3093. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3094. (@iIdBuilderForms, 'system', '{url_studio}builder_forms.php', '', 'wi-bld-forms.png', '_adm_wgt_cpt_builder_forms', '', '');
  3095. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 3);
  3096. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3097. (@iIdBuilderPermissions, 'system', '{url_studio}builder_permissions.php', '', 'wi-bld-permissions.png', '_adm_wgt_cpt_builder_permissions', '', '');
  3098. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 4);