v70.sql 169 KB

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