system.sql 174 KB

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