v70.sql 176 KB

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