v70.sql 170 KB

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