v70.sql 177 KB

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