system.sql 246 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994
  1. --
  2. -- Database: v 9.0
  3. --
  4. -- --------------------------------------------------------
  5. SET NAMES 'utf8';
  6. DROP TABLE IF EXISTS `sys_keys`, `sys_objects_editor`, `sys_objects_file_handlers`, `sys_objects_captcha`, `sys_objects_cmts`, `sys_cmts_images`, `sys_cmts_images_preview`, `sys_cmts_images2entries`, `sys_cmts_ids`, `sys_cmts_meta_keywords`, `sys_cmts_votes`, `sys_cmts_votes_track`, `sys_email_templates`, `sys_options`, sys_options_types, `sys_options_categories`, `sys_options_mixes`, `sys_options_mixes2options`, `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_report`, `sys_objects_view`, `sys_objects_favorite`, `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`, `sys_transcoder_images_files`, `sys_transcoder_videos_files`, `sys_transcoder_filters`, `sys_transcoder_queue`, `sys_transcoder_queue_files`, `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_category`, `sys_objects_live_updates`, `sys_objects_payments`, `sys_files`, `sys_images`, `sys_images_custom`, `sys_images_resized`, `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_file_handlers` (
  30. `id` int(11) NOT NULL AUTO_INCREMENT,
  31. `object` varchar(64) NOT NULL,
  32. `title` varchar(255) NOT NULL,
  33. `preg_ext` text NOT NULL,
  34. `active` tinyint(4) NOT NULL,
  35. `order` int(11) NOT NULL,
  36. `override_class_name` varchar(255) NOT NULL,
  37. `override_class_file` varchar(255) NOT NULL,
  38. PRIMARY KEY (`id`),
  39. UNIQUE KEY `object` (`object`)
  40. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  41. INSERT INTO `sys_objects_file_handlers` (`object`, `title`, `preg_ext`, `active`, `order`, `override_class_name`, `override_class_file`) VALUES
  42. ('sys_ms_viewer', '_sys_file_handlers_ms_viewer', '/\\.(doc|docx|xls|xlsx|ppt|pptx)$/i', 1, 1, 'BxTemplFileHandlerMsViewer', ''),
  43. ('sys_google_viewer', '_sys_file_handlers_google_viewer', '/\\.(pdf|doc|docx|xls|xlsx|ppt|pptx|ai|svg|ps|tif|tiff)$/i', 1, 2, 'BxTemplFileHandlerGoogleViewer', ''),
  44. ('sys_images_viewer', '_sys_file_handlers_images_viewer', '/\\.(jpg|jpeg|png|gif|webp)$/i', 1, 3, 'BxTemplFileHandlerImagesViewer', ''),
  45. ('sys_code_viewer', '_sys_file_handlers_code_viewer', '/\\.(1st|aspx|asp|json|js|jsp|java|php|xml|html|htm|rdf|xsd|xsl|xslt|sax|rss|cfm|js|asm|pl|prl|bas|b|vbs|fs|src|cs|ws|cgi|bat|py|c|cpp|cc|cp|h|hh|cxx|hxx|c++|m|lua|swift|sh|as|cob|tpl|lsp|x|cmd|rb|cbl|pas|pp|vb|f|perl|jl|lol|bal|pli|css|less|sass|saas|bcc|coffee|jade|j|tea|c#|sas|diff|pro|for|sh|bsh|bash|twig|csh|lisp|lsp|cobol|pl|d|git|rb|hrl|cr|inp|a|go|as3|m|sql|md|txt|csv)$/i', 1, 4, 'BxTemplFileHandlerCodeViewer', '');
  46. -- --------------------------------------------------------
  47. CREATE TABLE `sys_objects_captcha` (
  48. `id` int(11) NOT NULL AUTO_INCREMENT,
  49. `object` varchar(64) NOT NULL,
  50. `title` varchar(255) NOT NULL,
  51. `override_class_name` varchar(255) NOT NULL,
  52. `override_class_file` varchar(255) NOT NULL,
  53. PRIMARY KEY (`id`)
  54. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  55. INSERT INTO `sys_objects_captcha` (`object`, `title`, `override_class_name`, `override_class_file`) VALUES
  56. ('sys_recaptcha', 'reCAPTCHA', 'BxTemplCaptchaReCAPTCHA', ''),
  57. ('sys_recaptcha_new', 'reCAPTCHA New', 'BxTemplCaptchaReCAPTCHANew', '');
  58. -- --------------------------------------------------------
  59. CREATE TABLE `sys_objects_auths` (
  60. `ID` int(10) unsigned NOT NULL auto_increment,
  61. `Name` varchar(64) NOT NULL,
  62. `Title` varchar(128) NOT NULL,
  63. `Link` varchar(255) NOT NULL,
  64. `OnClick` varchar(255) NOT NULL,
  65. `Icon` varchar(64) NOT NULL,
  66. PRIMARY KEY (`ID`)
  67. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  68. -- --------------------------------------------------------
  69. --
  70. -- Table structure for table `sys_objects_cmts`
  71. --
  72. CREATE TABLE `sys_objects_cmts` (
  73. `ID` int(10) unsigned NOT NULL auto_increment,
  74. `Name` varchar(64) NOT NULL,
  75. `Table` varchar(50) NOT NULL,
  76. `CharsPostMin` int(10) NOT NULL,
  77. `CharsPostMax` int(10) NOT NULL,
  78. `CharsDisplayMax` int(10) NOT NULL,
  79. `Nl2br` smallint(1) NOT NULL,
  80. `PerView` smallint(6) NOT NULL,
  81. `PerViewReplies` smallint(6) NOT NULL,
  82. `BrowseType` varchar(50) NOT NULL,
  83. `IsBrowseSwitch` smallint(1) NOT NULL,
  84. `PostFormPosition` varchar(50) NOT NULL,
  85. `NumberOfLevels` smallint(6) NOT NULL,
  86. `IsDisplaySwitch` smallint(1) NOT NULL,
  87. `IsRatable` smallint(1) NOT NULL,
  88. `ViewingThreshold` smallint(6) NOT NULL,
  89. `IsOn` smallint(1) NOT NULL,
  90. `RootStylePrefix` varchar(16) NOT NULL default 'cmt',
  91. `BaseUrl` varchar(256) NOT NULL,
  92. `ObjectVote` varchar(64) NOT NULL,
  93. `TriggerTable` varchar(32) NOT NULL,
  94. `TriggerFieldId` varchar(32) NOT NULL,
  95. `TriggerFieldAuthor` varchar(32) NOT NULL,
  96. `TriggerFieldTitle` varchar(32) NOT NULL,
  97. `TriggerFieldComments` varchar(32) NOT NULL,
  98. `ClassName` varchar(32) NOT NULL,
  99. `ClassFile` varchar(256) NOT NULL,
  100. PRIMARY KEY (`ID`)
  101. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  102. -- --------------------------------------------------------
  103. CREATE TABLE IF NOT EXISTS `sys_email_templates` (
  104. `ID` int(11) unsigned NOT NULL auto_increment,
  105. `Module` varchar(32) NOT NULL,
  106. `NameSystem` varchar(255) NOT NULL,
  107. `Name` varchar(255) NOT NULL,
  108. `Subject` varchar(255) NOT NULL,
  109. `Body` varchar(255) NOT NULL,
  110. PRIMARY KEY (`ID`)
  111. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  112. INSERT INTO `sys_email_templates` (`Module`, `NameSystem`, `Name`, `Subject`, `Body`) VALUES
  113. ('system', '_sys_et_txt_name_system_admin_email', 't_AdminEmail', '_sys_et_txt_subject_admin_email', '_sys_et_txt_body_admin_email'),
  114. ('system', '_sys_et_txt_name_system_confirmation', 't_Confirmation', '_sys_et_txt_subject_confirmation', '_sys_et_txt_body_confirmation'),
  115. ('system', '_sys_et_txt_name_system_forgot', 't_Forgot', '_sys_et_txt_subject_forgot', '_sys_et_txt_body_forgot'),
  116. ('system', '_sys_et_txt_name_system_password_reset', 't_PasswordReset', '_sys_et_txt_subject_password_reset', '_sys_et_txt_body_password_reset'),
  117. ('system', '_sys_et_txt_name_system_mem_expiration', 't_MemExpiration', '_sys_et_txt_subject_mem_expiration', '_sys_et_txt_body_mem_expiration'),
  118. ('system', '_sys_et_txt_name_system_mem_changed', 't_MemChanged', '_sys_et_txt_subject_mem_changed', '_sys_et_txt_body_mem_changed'),
  119. ('system', '_sys_et_txt_name_system_comment_replied', 't_CommentReplied', '_sys_et_txt_subject_comment_replied', '_sys_et_txt_body_comment_replied'),
  120. ('system', '_sys_et_txt_name_system_reported', 't_Reported', '_sys_et_txt_subject_system_reported', '_sys_et_txt_body_system_reported'),
  121. ('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'),
  122. ('system', '_sys_et_txt_name_system_account', 't_Account', '_sys_et_txt_subject_account', '_sys_et_txt_body_account'),
  123. ('system', '_sys_et_txt_name_system_pruning', 't_Pruning', '_sys_et_txt_subject_pruning', '_sys_et_txt_body_pruning'),
  124. ('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'),
  125. ('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'),
  126. ('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'),
  127. ('system', '_sys_et_txt_name_upgrade_failed', 't_UpgradeFailed', '_sys_et_txt_subject_upgrade_failed', '_sys_et_txt_body_upgrade_failed'),
  128. ('system', '_sys_et_txt_name_upgrade_modules_failed', 't_UpgradeModulesFailed', '_sys_et_txt_subject_upgrade_modules_failed', '_sys_et_txt_body_upgrade_modules_failed'),
  129. ('system', '_sys_et_txt_name_upgrade_success', 't_UpgradeSuccess', '_sys_et_txt_subject_upgrade_success', '_sys_et_txt_body_upgrade_success'),
  130. ('system', '_sys_et_txt_name_upgrade_modules_success', 't_UpgradeModulesSuccess', '_sys_et_txt_subject_upgrade_modules_success', '_sys_et_txt_body_upgrade_modules_success'),
  131. ('system', '_sys_et_txt_name_bg_operation_failed', 't_BgOperationFailed', '_sys_et_txt_subject_bg_operation_failed', '_sys_et_txt_body_bg_operation_failed');
  132. -- --------------------------------------------------------
  133. --
  134. -- Table structure for table `sys_options`
  135. --
  136. CREATE TABLE `sys_options` (
  137. `id` int(11) unsigned NOT NULL auto_increment,
  138. `category_id` int(11) unsigned NOT NULL default '0',
  139. `name` varchar(64) NOT NULL default '',
  140. `caption` varchar(255) NOT NULL default '',
  141. `value` mediumtext NOT NULL,
  142. `type` enum('value','digit','text','checkbox','select','combobox','file','image','list','rlist','rgb','rgba') NOT NULL default 'digit',
  143. `extra` text NOT NULL default '',
  144. `check` varchar(32) NOT NULL,
  145. `check_params` text NOT NULL,
  146. `check_error` varchar(255) NOT NULL default '',
  147. `order` int(11) default '0',
  148. PRIMARY KEY (`id`),
  149. UNIQUE KEY `name`(`name`),
  150. KEY `category_id` (`category_id`)
  151. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  152. --
  153. -- Table structure for table `sys_options_categories`
  154. --
  155. CREATE TABLE `sys_options_categories` (
  156. `id` int(11) unsigned NOT NULL auto_increment,
  157. `type_id` int(11) unsigned NOT NULL default '0',
  158. `name` varchar(64) NOT NULL default '',
  159. `caption` varchar(64) NOT NULL default '',
  160. `hidden` tinyint(1) NOT NULL default '0',
  161. `order` int(11) default '0',
  162. PRIMARY KEY (`id`),
  163. UNIQUE KEY `name`(`name`)
  164. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  165. --
  166. -- Table structure for table `sys_options_types`
  167. --
  168. CREATE TABLE `sys_options_types` (
  169. `id` int(11) unsigned NOT NULL auto_increment,
  170. `group` varchar(64) NOT NULL default '',
  171. `name` varchar(64) NOT NULL default '',
  172. `caption` varchar(64) NOT NULL default '',
  173. `icon` varchar(255) NOT NULL default '',
  174. `order` int(11) default '0',
  175. PRIMARY KEY (`id`),
  176. UNIQUE KEY `name`(`name`)
  177. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  178. --
  179. -- Dumping data for tables `sys_options_types`
  180. --
  181. INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES ('system', 'system', '_adm_stg_cpt_type_system', 'cogs', 1);
  182. SET @iTypeId = LAST_INSERT_ID();
  183. --
  184. -- CATEGORY (HIDDEN): Hidden
  185. --
  186. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'hidden', '_adm_stg_cpt_category_hidden', 1, 0);
  187. SET @iCategoryId = LAST_INSERT_ID();
  188. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  189. (@iCategoryId, 'sys_install_time', '_adm_stg_cpt_option_sys_install_time', '0', 'digit', '', '', '', 3),
  190. (@iCategoryId, 'sys_ftp_login', '_adm_stg_cpt_option_sys_ftp_login', '', 'digit', '', '', '', 10),
  191. (@iCategoryId, 'sys_ftp_password', '_adm_stg_cpt_option_sys_ftp_password', '', 'digit', '', '', '', 11),
  192. (@iCategoryId, 'sys_ftp_dir', '_adm_stg_cpt_option_sys_ftp_dir', '', 'digit', '', '', '', 12),
  193. (@iCategoryId, 'sys_template_cache_image_enable', '_adm_stg_cpt_option_sys_template_cache_image_enable', '', 'checkbox', '', '', '', 20),
  194. (@iCategoryId, 'sys_template_cache_image_max_size', '_adm_stg_cpt_option_sys_template_cache_image_max_size', '5', 'digit', '', '', '', 21),
  195. (@iCategoryId, 'sys_email_confirmation', '_adm_stg_cpt_option_sys_email_confirmation', 'on', 'checkbox', '', '', '', 30),
  196. (@iCategoryId, 'sys_email_attachable_email_templates', '_adm_stg_cpt_option_sys_email_attachable_email_templates', '', 'digit', '', '', '', 31),
  197. (@iCategoryId, 'sys_redirect_after_account_added', '_adm_stg_cpt_option_sys_redirect_after_account_added', 'page.php?i=account-profile-switcher', 'digit', '', '', '', 40),
  198. (@iCategoryId, 'sys_editor_default', '_adm_stg_cpt_option_sys_editor_default', 'sys_tinymce', 'digit', '', '', '', 50),
  199. (@iCategoryId, 'sys_captcha_default', '_adm_stg_cpt_option_sys_captcha_default', 'sys_recaptcha', 'digit', '', '', '', 51),
  200. (@iCategoryId, 'sys_live_updates_interval', '_adm_stg_cpt_option_sys_live_updates_interval', '10000', 'digit', '', '', '', 60);
  201. --
  202. -- CATEGORY (HIDDEN): System
  203. --
  204. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'system', '_adm_stg_cpt_category_system', 1, 1);
  205. SET @iCategoryId = LAST_INSERT_ID();
  206. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  207. (@iCategoryId, 'site_email_html_template_header', '_adm_stg_cpt_option_site_email_html_template_header', '<html>\r\n <head></head>\r\n <body bgcolor="#eee" style="margin:0; padding:0;">\r\n <div style="padding:20px; background-color:#eee;">\r\n <table width="600" border="0" cellspacing="0" cellpadding="0" align="center">\r\n <tr><td valign="top">\r\n <div style="color:#333; padding:20px; border:1px solid #999; background-color:#fff; font:14px Helvetica, Arial, sans-serif;">\r\n <div style="border-bottom:2px solid #eee; padding-bottom:10px; margin-bottom:20px; font-weight:bold; font-size:22px; color:#999;">{site_name}</div>', 'text', '', '', '', 1),
  208. (@iCategoryId, 'site_email_html_template_footer', '_adm_stg_cpt_option_site_email_html_template_footer', '\r\n </div>\r\n </td></tr>\r\n <tr><td valign="top">\r\n <div style="margin-top:5px; text-align:center; color:#999; font:11px Helvetica, Arial, sans-serif;">{about_us}&nbsp;&nbsp;&nbsp;{unsubscribe}</div>\r\n </td></tr>\r\n </table>\r\n </div>\r\n </body>\r\n</html>', 'text', '', '', '', 2),
  209. (@iCategoryId, 'sys_site_logo', '', '0', 'digit', '', '', '', 20),
  210. (@iCategoryId, 'sys_site_logo_alt', '_adm_dsg_txt_alt_text', '0', 'text', '', '', '', 21),
  211. (@iCategoryId, 'sys_site_icon', '', '0', 'digit', '', '', '', 22),
  212. (@iCategoryId, 'sys_site_logo_width', '_adm_stg_cpt_option_sys_site_logo_width', '240', 'digit', '', '', '', 23),
  213. (@iCategoryId, 'sys_site_logo_height', '_adm_stg_cpt_option_sys_site_logo_height', '48', 'digit', '', '', '', 24),
  214. (@iCategoryId, 'sys_site_splash_code', '', '<style>\r\n /*--- General ---*/\r\n \r\n @media (max-width:1024px) {\r\n #bx-footer-wrapper,\r\n #bx-menu-main-bar-wrapper,\r\n #bx-toolbar {\r\n display:none;\r\n }\r\n html #bx-content-wrapper {\r\n border:none;\r\n padding-bottom:0;\r\n }\r\n }\r\n\r\n #bx-content-wrapper {\r\n padding-top: 0px;\r\n padding-bottom: 4rem;\r\n }\r\n\r\n .bx-page-wrapper,\r\n #bx-content-container,\r\n #bx-content-main {\r\n width: 100%;\r\n margin: 0px;\r\n padding: 0px;\r\n }\r\n\r\n /*--- Splash ---*/\r\n\r\n .bx-splash {\r\n position: relative;\r\n }\r\n\r\n .bx-spl-preload {\r\n position: absolute;\r\n\r\n top: 0px;\r\n left: 0px;\r\n width: 1px;\r\n height: 1px;\r\n\r\n overflow: hidden;\r\n }\r\n\r\n .bx-spl-slide {\r\n position: relative;\r\n display: block;\r\n\r\n overflow: hidden;\r\n }\r\n\r\n .bx-spl-bg {\r\n position: relative;\r\n\r\n width: 100%;\r\n height: 100%;\r\n }\r\n\r\n .bx-spl-container {\r\n position: relative;\r\n\r\n top: 0px;\r\n left: 0px;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n\r\n .bx-spl-content {\r\n position: relative;\r\n width:100%;\r\n }\r\n\r\n .bx-spl-slide .bx-spl-content h1 {\r\n font-size: 2.25rem;\r\n }\r\n\r\n .bx-spl-slide .bx-spl-content h3 {\r\n font-size: 1.5rem;\r\n }\r\n\r\n .bx-spl-white-text-all * {\r\n color: #fff;\r\n }\r\n\r\n /*--- Join button ---*/\r\n\r\n .bx-spl-join,\r\n .bx-spl-join {\r\n display: inline-block;\r\n border-color: #fff;\r\n }\r\n .bx-spl-join a,\r\n .bx-spl-join a {\r\n display: block;\r\n padding-left: 3.75rem;\r\n padding-right: 3.75rem;\r\n text-decoration: none;\r\n }\r\n\r\n /*--- Slides ---*/\r\n\r\n #bx-spl-slide01 .bx-spl-container,\r\n #bx-spl-slide03 .bx-spl-container {\r\n position: absolute;\r\n display: -webkit-flex;\r\n display: flex;\r\n -webkit-align-items: center;\r\n align-items: center;\r\n }\r\n #bx-spl-slide01 .bx-spl-content,\r\n #bx-spl-slide03 .bx-spl-content {\r\n text-align: center;\r\n text-shadow: 0px 0px 0.25rem #000;\r\n }\r\n #bx-spl-slide02 .bx-spl-content h3,\r\n #bx-spl-slide04 .bx-spl-content h3 {\r\n text-align: center;\r\n }\r\n\r\n /*--- Slide 1 ---*/\r\n\r\n #bx-spl-slide01 {\r\n width:100%;\r\n height:100vh;\r\n }\r\n #bx-spl-slide01 .bx-spl-bg {\r\n background-position: center center;\r\n background-repeat: no-repeat;\r\n background-size: cover;\r\n }\r\n #bx-spl-slide01 .bx-spl-slide-video {\r\n object-fit: cover;\r\n\r\n width: 100%;\r\n height: 100vh;\r\n }\r\n\r\n /*--- Slide 2 ---*/\r\n\r\n #bx-spl-slide02 .bx-spl-bg {\r\n background-color: #fff;\r\n height: 35vw;\r\n max-height:400px;\r\n }\r\n #bx-spl-slide02 .bx-spl-image {\r\n position: absolute;\r\n width: 60%;\r\n height: 100%;\r\n background-position: center bottom;\r\n background-repeat: no-repeat;\r\n background-size: contain;\r\n }\r\n #bx-spl-slide02 .bx-spl-content {\r\n position: absolute;\r\n display: -webkit-flex;\r\n -webkit-align-items: center;\r\n -webkit-justify-content: center;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n\r\n top: 0px;\r\n right: 0px;\r\n width: 40%;\r\n height: 100%;\r\n }\r\n @media (max-width:720px) {\r\n #bx-spl-slide02.bx-spl-slide .bx-spl-content h3 {\r\n font-size: 0.8rem;\r\n }\r\n }\r\n\r\n /*--- Slide 3 ---*/\r\n\r\n #bx-spl-slide03 {\r\n width:100%;\r\n height:150vh;\r\n }\r\n #bx-spl-slide03 .bx-spl-bg {\r\n background-position: center center;\r\n background-repeat: repeat;\r\n background-attachment: fixed;\r\n background-size:100%;\r\n }\r\n\r\n /*--- Slide 4 ---*/\r\n\r\n #bx-spl-slide04 {\r\n width:100%;\r\n height:100vh;\r\n }\r\n #bx-spl-slide04 .bx-spl-bg {\r\n background-color:#fff;\r\n }\r\n #bx-spl-slide04 .bx-spl-container {\r\n display: -webkit-flex;\r\n -webkit-align-items: center;\r\n -webkit-justify-content: center;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n #bx-spl-slide04 .bx-spl-content {\r\n width: 50%;\r\n }\r\n @media (max-width:720px) {\r\n #bx-spl-slide04 .bx-spl-content {\r\n width: 90%;\r\n }\r\n }\r\n #bx-spl-slide04 .bx-spl-content h3 {\r\n margin-top: 0px;\r\n margin-bottom: 2rem;\r\n }\r\n</style>\r\n<div id="skrollr-body" class="bx-splash bx-def-color-bg-page">\r\n <div id="bx-spl-preload" class="bx-spl-preload">\r\n <img src="<bx_image_url:cover01.jpg />">\r\n <img src="<bx_image_url:cover02.jpg />">\r\n <img src="<bx_image_url:cover03.jpg />">\r\n </div>\r\n\r\n <div id="bx-spl-slide01" class="bx-spl-slide">\r\n <div class="bx-spl-bg" style="background-image:url(<bx_image_url:cover01.jpg />);">\r\n <video class="bx-spl-slide-video bx-def-media-phone-hide bx-def-media-tablet-hide" poster="<bx_image_url:cover01.jpg />" loop autoplay muted>\r\n <source src="<bx_image_url:cover01.mp4 />" type="video/mp4">\r\n <source src="<bx_image_url:cover01.webm />" type="video/webm">\r\n </video>\r\n </div>\r\n <div class="bx-spl-container">\r\n <div class="bx-spl-content bx-spl-white-text-all" data-anchor-target="#bx-spl-slide01 .bx-spl-bg" data-top="opacity:1" data-top-center="opacity:0">\r\n <h1 class="bx-def-font-semibold"><bx_text:_sys_txt_splash_slide01_title /></h1>\r\n <h3 class="bx-def-font-normal"><bx_text:_sys_txt_splash_slide01_desc /></h3>\r\n <div class="bx-spl-join bx-def-margin-topbottom bx-def-border bx-def-round-corners">\r\n <a class="bx-def-padding-sec-topbottom bx-def-font-h3 bx-def-font-normal" href="__join_link__"><bx_text:_sys_txt_splash_btn_join /></a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div id="bx-spl-slide02" class="bx-spl-slide">\r\n <div class="bx-spl-bg">\r\n <div class="bx-spl-container">\r\n <div class="bx-spl-image" style="background-image:url(<bx_image_url:cover02.jpg />);" data-bottom-top="bottom:-100%;" data-100-center-center="bottom:0%;"></div>\r\n <div class="bx-spl-content" data-bottom-top="right:-50%;" data-100-center-center="right:0%;">\r\n <h3 class="bx-def-font-normal"><bx_text:_sys_txt_splash_slide02_txt /></h3>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div id="bx-spl-slide03" class="bx-spl-slide">\r\n <div class="bx-spl-bg" style="background-image:url(<bx_image_url:cover03.jpg />)"></div>\r\n <div class="bx-spl-container">\r\n <div class="bx-spl-content bx-spl-white-text-all">\r\n <h3 class="bx-def-font-normal"><bx_text:_sys_txt_splash_slide03_txt /></h3>\r\n <div class="bx-spl-join bx-def-margin-topbottom bx-def-border bx-def-round-corners">\r\n <a class="bx-def-padding-sec-topbottom bx-def-font-h3 bx-def-font-normal" href="__join_link__"><bx_text:_sys_txt_splash_btn_join /></a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div id="bx-spl-slide04" class="bx-spl-slide">\r\n <div class="bx-spl-bg">\r\n <div class="bx-spl-container" data-anchor-target="#bx-spl-slide03 .bx-spl-bg" data-100-center-bottom="opacity:0; transform:scale(0.7,0.7);" data-200-end="opacity:1; transform:scale(1,1);">\r\n <div class="bx-spl-content">\r\n <h3 class="bx-def-font-normal"><bx_text:_sys_txt_splash_slide04_txt /></h3>\r\n <div class="bx-spl-login">__login_form__</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <script type="text/javascript">\r\n $(document).ready(function () {\r\n\r\n // workaround for iOS 7 \r\n if (!!navigator.userAgent.match(/i(Pad|Phone|Pod).+(Version\\/7\\.\\d+ Mobile)/i)) {\r\n var aSelVh = {\r\n ''1'': ''#bx-spl-slide01, #bx-spl-slide01 .bx-spl-slide-video, #bx-spl-slide04'',\r\n ''1.5'': ''#bx-spl-slide03''\r\n };\r\n var aSelVw = {\r\n ''0.35'': ''#bx-spl-slide02 .bx-spl-bg''\r\n };\r\n function fixMobileSafariViewport() {\r\n $.each(aSelVh, function (sVal, sSel) {\r\n $(sSel).css(''height'', window.innerHeight * parseFloat(sVal));\r\n });\r\n $.each(aSelVw, function (sVal, sSel) {\r\n $(sSel).css(''height'', window.innerWidth * parseFloat(sVal));\r\n }); \r\n }\r\n // listen to portrait/landscape changes\r\n window.addEventListener(''orientationchange'', fixMobileSafariViewport, true);\r\n fixMobileSafariViewport();\r\n }\r\n\r\n skrollr.init();\r\n });\r\n </script>\r\n</div>', 'text', '', '', '', 25),
  215. (@iCategoryId, 'sys_site_splash_enabled', '', '', 'checkbox', '', '', '', 26),
  216. (@iCategoryId, 'sys_site_cover_common', '', '0', 'digit', '', '', '', 27);
  217. --
  218. -- CATEGORY (HIDDEN): Languages
  219. --
  220. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'languages', '_adm_stg_cpt_category_languages', 1, 2);
  221. SET @iCategoryId = LAST_INSERT_ID();
  222. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  223. (@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),
  224. (@iCategoryId, 'lang_subst_from_en', '_adm_stg_cpt_option_lang_subst_from_en', 'on', 'checkbox', '', '', '', 2),
  225. (@iCategoryId, 'sys_format_date', '_adm_stg_cpt_option_sys_format_date', 'D MMM YYYY', 'digit', '', '', '', 3),
  226. (@iCategoryId, 'sys_format_time', '_adm_stg_cpt_option_sys_format_time', 'HH:mm', 'digit', '', '', '', 4),
  227. (@iCategoryId, 'sys_format_datetime', '_adm_stg_cpt_option_sys_format_datetime', 'D MMM YYYY h:mm:ss a', 'digit', '', '', '', 5),
  228. (@iCategoryId, 'sys_format_timeago', '_adm_stg_cpt_option_sys_format_timeago', 432000, 'digit', '', '', '', 6);
  229. --
  230. -- CATEGORY (HIDDEN): Templates
  231. --
  232. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'templates', '_adm_stg_cpt_category_templates', 1, 3);
  233. SET @iCategoryId = LAST_INSERT_ID();
  234. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  235. (@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);
  236. --
  237. -- CATEGORY: Cache
  238. --
  239. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'cache', '_adm_stg_cpt_category_cache', 0, 4);
  240. SET @iCategoryId = LAST_INSERT_ID();
  241. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  242. (@iCategoryId, 'sys_db_cache_enable', '_adm_stg_cpt_option_sys_db_cache_enable', 'on', 'checkbox', '', '', '', 10),
  243. (@iCategoryId, 'sys_db_cache_engine', '_adm_stg_cpt_option_sys_db_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 11),
  244. (@iCategoryId, 'sys_cache_memcache_host', '_adm_stg_cpt_option_sys_cache_memcache_host', '', 'digit', '', '', '', 20),
  245. (@iCategoryId, 'sys_cache_memcache_port', '_adm_stg_cpt_option_sys_cache_memcache_port', '11211', 'digit', '', '', '', 21),
  246. (@iCategoryId, 'sys_page_cache_enable', '_adm_stg_cpt_option_sys_page_cache_enable', 'on', 'checkbox', '', '', '', 30),
  247. (@iCategoryId, 'sys_page_cache_engine', '_adm_stg_cpt_option_sys_page_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 31),
  248. (@iCategoryId, 'sys_pb_cache_enable', '_adm_stg_cpt_option_sys_pb_cache_enable', 'on', 'checkbox', '', '', '', 40),
  249. (@iCategoryId, 'sys_pb_cache_engine', '_adm_stg_cpt_option_sys_pb_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 41),
  250. (@iCategoryId, 'sys_template_cache_enable', '_adm_stg_cpt_option_sys_template_cache_enable', 'on', 'checkbox', '', '', '', 50),
  251. (@iCategoryId, 'sys_template_cache_engine', '_adm_stg_cpt_option_sys_template_cache_engine', 'FileHtml', 'select', 'FileHtml,Memcache,APC,XCache', '', '', 51),
  252. (@iCategoryId, 'sys_template_cache_css_enable', '_adm_stg_cpt_option_sys_template_cache_css_enable', 'on', 'checkbox', '', '', '', 55),
  253. (@iCategoryId, 'sys_template_cache_js_enable', '_adm_stg_cpt_option_sys_template_cache_js_enable', 'on', 'checkbox', '', '', '', 56),
  254. (@iCategoryId, 'sys_template_cache_minify_css_enable', '_adm_stg_cpt_option_sys_template_cache_minify_css_enable', 'on', 'checkbox', '', '', '', 57),
  255. (@iCategoryId, 'sys_template_cache_minify_js_enable', '_adm_stg_cpt_option_sys_template_cache_minify_js_enable', 'on', 'checkbox', '', '', '', 58),
  256. (@iCategoryId, 'sys_template_cache_compress_enable', '_adm_stg_cpt_option_sys_template_cache_compress_enable', 'on', 'checkbox', '', '', '', 59);
  257. --
  258. -- CATEGORY: General
  259. --
  260. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'general', '_adm_stg_cpt_category_general', 0, 6);
  261. SET @iCategoryId = LAST_INSERT_ID();
  262. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  263. (@iCategoryId, 'sys_oauth_key', '_adm_stg_cpt_option_sys_oauth_key', '', 'digit', '', '', '', 20),
  264. (@iCategoryId, 'sys_oauth_secret', '_adm_stg_cpt_option_sys_oauth_secret', '', 'digit', '', '', '', 21),
  265. (@iCategoryId, 'currency_code', '_adm_stg_cpt_option_currency_code', 'USD', 'select', 'USD,EURO', 'Avail', '_adm_stg_err_option_currency_code', 30),
  266. (@iCategoryId, 'currency_sign', '_adm_stg_cpt_option_currency_sign', '&#36;', 'digit', '', 'Avail', '_adm_stg_err_option_currency_sign', 31),
  267. (@iCategoryId, 'enable_gd', '_adm_stg_cpt_option_enable_gd', 'on', 'checkbox', '', '', '', 40),
  268. (@iCategoryId, 'useLikeOperator', '_adm_stg_cpt_option_use_like_operator', 'on', 'checkbox', '', '', '', 45),
  269. (@iCategoryId, 'sys_transcoder_queue_storage', '_adm_stg_cpt_option_sys_transcoder_queue_storage', '', 'checkbox', '', '', '', 50),
  270. (@iCategoryId, 'sys_default_payment', '_adm_stg_cpt_option_sys_default_payment', '', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:12:"get_payments";s:5:"class";s:21:"TemplPaymentsServices";}', '', '', 60),
  271. (@iCategoryId, 'sys_maps_api_key', '_adm_stg_cpt_option_sys_maps_api_key', '', 'digit', '', '', '', 70),
  272. (@iCategoryId, 'sys_embedly_api_key', '_adm_stg_cpt_option_sys_embedly_api_key', '', 'digit', '', '', '', 80),
  273. (@iCategoryId, 'sys_embedly_api_pattern', '_adm_stg_cpt_option_sys_embedly_api_pattern', '/((https?:\\/\\/(.*yfrog\\..*\\/.*|www\\.flickr\\.com\\/photos\\/.*|flic\\.kr\\/.*|twitpic\\.com\\/.*|www\\.twitpic\\.com\\/.*|twitpic\\.com\\/photos\\/.*|www\\.twitpic\\.com\\/photos\\/.*|.*imgur\\.com\\/.*|twitgoo\\.com\\/.*|i.*\\.photobucket\\.com\\/albums\\/.*|s.*\\.photobucket\\.com\\/albums\\/.*|media\\.photobucket\\.com\\/image\\/.*|www\\.mobypicture\\.com\\/user\\/.*\\/view\\/.*|moby\\.to\\/.*|xkcd\\.com\\/.*|www\\.xkcd\\.com\\/.*|imgs\\.xkcd\\.com\\/.*|www\\.asofterworld\\.com\\/index\\.php\\?id=.*|www\\.asofterworld\\.com\\/.*\\.jpg|asofterworld\\.com\\/.*\\.jpg|www\\.qwantz\\.com\\/index\\.php\\?comic=.*|23hq\\.com\\/.*\\/photo\\/.*|www\\.23hq\\.com\\/.*\\/photo\\/.*|.*dribbble\\.com\\/shots\\/.*|drbl\\.in\\/.*|.*\\.smugmug\\.com\\/.*|.*\\.smugmug\\.com\\/.*#.*|picasaweb\\.google\\.com.*\\/.*\\/.*#.*|picasaweb\\.google\\.com.*\\/lh\\/photo\\/.*|picasaweb\\.google\\.com.*\\/.*\\/.*|img\\.ly\\/.*|www\\.tinypic\\.com\\/view\\.php.*|tinypic\\.com\\/view\\.php.*|www\\.tinypic\\.com\\/player\\.php.*|tinypic\\.com\\/player\\.php.*|www\\.tinypic\\.com\\/r\\/.*\\/.*|tinypic\\.com\\/r\\/.*\\/.*|.*\\.tinypic\\.com\\/.*\\.jpg|.*\\.tinypic\\.com\\/.*\\.png|meadd\\.com\\/.*\\/.*|meadd\\.com\\/.*|.*\\.deviantart\\.com\\/art\\/.*|.*\\.deviantart\\.com\\/gallery\\/.*|.*\\.deviantart\\.com\\/#\\/.*|fav\\.me\\/.*|.*\\.deviantart\\.com|.*\\.deviantart\\.com\\/gallery|.*\\.deviantart\\.com\\/.*\\/.*\\.jpg|.*\\.deviantart\\.com\\/.*\\/.*\\.gif|.*\\.deviantart\\.net\\/.*\\/.*\\.jpg|.*\\.deviantart\\.net\\/.*\\/.*\\.gif|www\\.fotopedia\\.com\\/.*\\/.*|fotopedia\\.com\\/.*\\/.*|photozou\\.jp\\/photo\\/show\\/.*\\/.*|photozou\\.jp\\/photo\\/photo_only\\/.*\\/.*|instagr\\.am\\/p\\/.*|instagram\\.com\\/p\\/.*|skitch\\.com\\/.*\\/.*\\/.*|img\\.skitch\\.com\\/.*|www\\.questionablecontent\\.net\\/|questionablecontent\\.net\\/|www\\.questionablecontent\\.net\\/view\\.php.*|questionablecontent\\.net\\/view\\.php.*|questionablecontent\\.net\\/comics\\/.*\\.png|www\\.questionablecontent\\.net\\/comics\\/.*\\.png|twitrpix\\.com\\/.*|.*\\.twitrpix\\.com\\/.*|www\\.someecards\\.com\\/.*\\/.*|someecards\\.com\\/.*\\/.*|some\\.ly\\/.*|www\\.some\\.ly\\/.*|pikchur\\.com\\/.*|achewood\\.com\\/.*|www\\.achewood\\.com\\/.*|achewood\\.com\\/index\\.php.*|www\\.achewood\\.com\\/index\\.php.*|www\\.whosay\\.com\\/.*\\/content\\/.*|www\\.whosay\\.com\\/.*\\/photos\\/.*|www\\.whosay\\.com\\/.*\\/videos\\/.*|say\\.ly\\/.*|ow\\.ly\\/i\\/.*|mlkshk\\.com\\/p\\/.*|lockerz\\.com\\/s\\/.*|pics\\.lockerz\\.com\\/s\\/.*|d\\.pr\\/i\\/.*|www\\.eyeem\\.com\\/p\\/.*|www\\.eyeem\\.com\\/a\\/.*|www\\.eyeem\\.com\\/u\\/.*|giphy\\.com\\/gifs\\/.*|gph\\.is\\/.*|frontback\\.me\\/p\\/.*|www\\.fotokritik\\.com\\/.*\\/.*|fotokritik\\.com\\/.*\\/.*|vid\\.me\\/.*|galeri\\.uludagsozluk\\.com\\/.*|gfycat\\.com\\/.*|tochka\\.net\\/.*|.*\\.tochka\\.net\\/.*|4cook\\.net\\/recipe\\/.*|.*youtube\\.com\\/watch.*|.*\\.youtube\\.com\\/v\\/.*|youtu\\.be\\/.*|.*\\.youtube\\.com\\/user\\/.*|.*\\.youtube\\.com\\/.*#.*\\/.*|m\\.youtube\\.com\\/watch.*|m\\.youtube\\.com\\/index.*|.*\\.youtube\\.com\\/profile.*|.*\\.youtube\\.com\\/view_play_list.*|.*\\.youtube\\.com\\/playlist.*|www\\.youtube\\.com\\/embed\\/.*|youtube\\.com\\/gif.*|www\\.youtube\\.com\\/gif.*|.*twitch\\.tv\\/.*|.*twitch\\.tv\\/.*\\/b\\/.*|www\\.ustream\\.tv\\/recorded\\/.*|www\\.ustream\\.tv\\/channel\\/.*|www\\.ustream\\.tv\\/.*|ustre\\.am\\/.*|qik\\.com\\/video\\/.*|qik\\.com\\/.*|qik\\.ly\\/.*|.*revision3\\.com\\/.*|.*\\.dailymotion\\.com\\/video\\/.*|.*\\.dailymotion\\.com\\/.*\\/video\\/.*|collegehumor\\.com\\/video:.*|collegehumor\\.com\\/video\\/.*|www\\.collegehumor\\.com\\/video:.*|www\\.collegehumor\\.com\\/video\\/.*|telly\\.com\\/.*|www\\.telly\\.com\\/.*|break\\.com\\/.*\\/.*|www\\.break\\.com\\/.*\\/.*|vids\\.myspace\\.com\\/index\\.cfm\\?fuseaction=vids\\.individual&videoid.*|www\\.myspace\\.com\\/index\\.cfm\\?fuseaction=.*&videoid.*|www\\.metacafe\\.com\\/watch\\/.*|www\\.metacafe\\.com\\/w\\/.*|blip\\.tv\\/.*\\/.*|.*\\.blip\\.tv\\/.*\\/.*|video\\.google\\.com\\/videoplay\\?.*|.*viddler\\.com\\/v\\/.*|liveleak\\.com\\/view\\?.*|www\\.liveleak\\.com\\/view\\?.*|animoto\\.com\\/play\\/.*|video214\\.com\\/play\\/.*|dotsub\\.com\\/view\\/.*|www\\.overstream\\.net\\/view\\.php\\?oid=.*|www\\.livestream\\.com\\/.*|new\\.livestream\\.com\\/.*|www\\.worldstarhiphop\\.com\\/videos\\/video.*\\.php\\?v=.*|worldstarhiphop\\.com\\/videos\\/video.*\\.php\\?v=.*|bambuser\\.com\\/v\\/.*|bambuser\\.com\\/channel\\/.*|bambuser\\.com\\/channel\\/.*\\/broadcast\\/.*|www\\.schooltube\\.com\\/video\\/.*\\/.*|bigthink\\.com\\/ideas\\/.*|bigthink\\.com\\/series\\/.*|sendables\\.jibjab\\.com\\/view\\/.*|sendables\\.jibjab\\.com\\/originals\\/.*|jibjab\\.com\\/view\\/.*|www\\.xtranormal\\.com\\/watch\\/.*|socialcam\\.com\\/v\\/.*|www\\.socialcam\\.com\\/v\\/.*|v\\.youku\\.com\\/v_show\\/.*|v\\.youku\\.com\\/v_playlist\\/.*|www\\.snotr\\.com\\/video\\/.*|snotr\\.com\\/video\\/.*|www\\.clipfish\\.de\\/.*\\/.*\\/video\\/.*|www\\.myvideo\\.de\\/watch\\/.*|www\\.vzaar\\.com\\/videos\\/.*|vzaar\\.com\\/videos\\/.*|www\\.vzaar\\.tv\\/.*|vzaar\\.tv\\/.*|vzaar\\.me\\/.*|.*\\.vzaar\\.me\\/.*|coub\\.com\\/view\\/.*|coub\\.com\\/embed\\/.*|www\\.streamio\\.com\\/api\\/v1\\/.*|streamio\\.com\\/api\\/v1\\/.*|vine\\.co\\/v\\/.*|www\\.vine\\.co\\/v\\/.*|www\\.viddy\\.com\\/video\\/.*|www\\.viddy\\.com\\/.*\\/v\\/.*|www\\.tudou\\.com\\/programs\\/view\\/.*|tudou\\.com\\/programs\\/view\\/.*|sproutvideo\\.com\\/videos\\/.*|embed\\.minoto-video\\.com\\/.*|iframe\\.minoto-video\\.com\\/.*|play\\.minoto-video\\.com\\/.*|dashboard\\.minoto-video\\.com\\/main\\/video\\/details\\/.*|api\\.minoto-video\\.com\\/publishers\\/.*\\/videos\\/.*|www\\.brainshark\\.com\\/.*\\/.*|brainshark\\.com\\/.*\\/.*|23video\\.com\\/.*|.*\\.23video\\.com\\/.*|goanimate\\.com\\/videos\\/.*|brainsonic\\.com\\/.*|.*\\.brainsonic\\.com\\/.*|lustich\\.de\\/videos\\/.*|web\\.tv\\/.*|.*\\.web\\.tv\\/.*|mynet\\.com\\/video\\/.*|www\\.mynet\\.com\\/video\\/|izlesene\\.com\\/video\\/.*|www\\.izlesene\\.com\\/video\\/|alkislarlayasiyorum\\.com\\/.*|www\\.alkislarlayasiyorum\\.com\\/.*|59saniye\\.com\\/.*|www\\.59saniye\\.com\\/.*|zie\\.nl\\/video\\/.*|www\\.zie\\.nl\\/video\\/.*|app\\.ustudio\\.com\\/embed\\/.*\\/.*|bale\\.io\\/.*|www\\.allego\\.com\\/.*|clipter\\.com\\/c\\/.*|sendvid\\.com\\/.*|www\\.snappytv\\.com\\/.*|snappytv\\.com\\/.*|frankly\\.me\\/.*|streamable\\.com\\/.*|ticker\\.tv\\/v\\/.*|videobio\\.com\\/playerjs\\/.*|clippituser\\.tv\\/.*|www\\.clippituser\\.tv\\/.*|www\\.whitehouse\\.gov\\/photos-and-video\\/video\\/.*|www\\.whitehouse\\.gov\\/video\\/.*|wh\\.gov\\/photos-and-video\\/video\\/.*|wh\\.gov\\/video\\/.*|www\\.hulu\\.com\\/watch.*|www\\.hulu\\.com\\/w\\/.*|www\\.hulu\\.com\\/embed\\/.*|hulu\\.com\\/watch.*|hulu\\.com\\/w\\/.*|.*crackle\\.com\\/c\\/.*|www\\.funnyordie\\.com\\/videos\\/.*|www\\.funnyordie\\.com\\/m\\/.*|funnyordie\\.com\\/videos\\/.*|funnyordie\\.com\\/m\\/.*|www\\.vimeo\\.com\\/groups\\/.*\\/videos\\/.*|www\\.vimeo\\.com\\/.*|vimeo\\.com\\/groups\\/.*\\/videos\\/.*|vimeo\\.com\\/.*|vimeo\\.com\\/m\\/#\\/.*|player\\.vimeo\\.com\\/.*|www\\.ted\\.com\\/talks\\/.*\\.html.*|www\\.ted\\.com\\/talks\\/lang\\/.*\\/.*\\.html.*|www\\.ted\\.com\\/index\\.php\\/talks\\/.*\\.html.*|www\\.ted\\.com\\/index\\.php\\/talks\\/lang\\/.*\\/.*\\.html.*|www\\.ted\\.com\\/talks\\/|.*nfb\\.ca\\/film\\/.*|thedailyshow\\.cc\\.com\\/videos\\/.*|www\\.thedailyshow\\.com\\/watch\\/.*|www\\.thedailyshow\\.com\\/full-episodes\\/.*|www\\.thedailyshow\\.com\\/collection\\/.*\\/.*\\/.*|yahoo\\.com\\/movies\\/.*|.*\\.yahoo\\.com\\/movies\\/.*|thecolbertreport\\.cc\\.com\\/videos\\/.*|www\\.colbertnation\\.com\\/the-colbert-report-collections\\/.*|www\\.colbertnation\\.com\\/full-episodes\\/.*|www\\.colbertnation\\.com\\/the-colbert-report-videos\\/.*|www\\.comedycentral\\.com\\/videos\\/index\\.jhtml\\?.*|www\\.theonion\\.com\\/video\\/.*|theonion\\.com\\/video\\/.*|wordpress\\.tv\\/.*\\/.*\\/.*\\/.*\\/|www\\.traileraddict\\.com\\/trailer\\/.*|www\\.traileraddict\\.com\\/clip\\/.*|www\\.traileraddict\\.com\\/poster\\/.*|www\\.trailerspy\\.com\\/trailer\\/.*\\/.*|www\\.trailerspy\\.com\\/trailer\\/.*|www\\.trailerspy\\.com\\/view_video\\.php.*|fora\\.tv\\/.*\\/.*\\/.*\\/.*|www\\.spike\\.com\\/video\\/.*|www\\.gametrailers\\.com\\/video.*|gametrailers\\.com\\/video.*|www\\.koldcast\\.tv\\/video\\/.*|www\\.koldcast\\.tv\\/#video:.*|mixergy\\.com\\/.*|video\\.pbs\\.org\\/video\\/.*|www\\.zapiks\\.com\\/.*|www\\.trutv\\.com\\/video\\/.*|www\\.nzonscreen\\.com\\/title\\/.*|nzonscreen\\.com\\/title\\/.*|app\\.wistia\\.com\\/embed\\/medias\\/.*|wistia\\.com\\/.*|.*\\.wistia\\.com\\/.*|.*\\.wi\\.st\\/.*|wi\\.st\\/.*|confreaks\\.net\\/videos\\/.*|www\\.confreaks\\.net\\/videos\\/.*|confreaks\\.com\\/videos\\/.*|www\\.confreaks\\.com\\/videos\\/.*|video\\.allthingsd\\.com\\/video\\/.*|videos\\.nymag\\.com\\/.*|aniboom\\.com\\/animation-video\\/.*|www\\.aniboom\\.com\\/animation-video\\/.*|grindtv\\.com\\/.*\\/video\\/.*|www\\.grindtv\\.com\\/.*\\/video\\/.*|ifood\\.tv\\/recipe\\/.*|ifood\\.tv\\/video\\/.*|ifood\\.tv\\/channel\\/user\\/.*|www\\.ifood\\.tv\\/recipe\\/.*|www\\.ifood\\.tv\\/video\\/.*|www\\.ifood\\.tv\\/channel\\/user\\/.*|logotv\\.com\\/video\\/.*|www\\.logotv\\.com\\/video\\/.*|lonelyplanet\\.com\\/Clip\\.aspx\\?.*|www\\.lonelyplanet\\.com\\/Clip\\.aspx\\?.*|streetfire\\.net\\/video\\/.*\\.htm.*|www\\.streetfire\\.net\\/video\\/.*\\.htm.*|sciencestage\\.com\\/v\\/.*\\.html|sciencestage\\.com\\/a\\/.*\\.html|www\\.sciencestage\\.com\\/v\\/.*\\.html|www\\.sciencestage\\.com\\/a\\/.*\\.html|link\\.brightcove\\.com\\/services\\/player\\/bcpid.*|bcove\\.me\\/.*|wirewax\\.com\\/.*|www\\.wirewax\\.com\\/.*|canalplus\\.fr\\/.*|www\\.canalplus\\.fr\\/.*|www\\.vevo\\.com\\/watch\\/.*|www\\.vevo\\.com\\/video\\/.*|pixorial\\.com\\/watch\\/.*|www\\.pixorial\\.com\\/watch\\/.*|spreecast\\.com\\/events\\/.*|www\\.spreecast\\.com\\/events\\/.*|showme\\.com\\/sh\\/.*|www\\.showme\\.com\\/sh\\/.*|.*\\.looplogic\\.com\\/.*|on\\.aol\\.com\\/video\\/.*|on\\.aol\\.com\\/playlist\\/.*|videodetective\\.com\\/.*\\/.*|www\\.videodetective\\.com\\/.*\\/.*|khanacademy\\.org\\/.*|www\\.khanacademy\\.org\\/.*|.*vidyard\\.com\\/.*|www\\.veoh\\.com\\/watch\\/.*|veoh\\.com\\/watch\\/.*|.*\\.univision\\.com\\/.*\\/video\\/.*|.*\\.vidcaster\\.com\\/.*|muzu\\.tv\\/.*|www\\.muzu\\.tv\\/.*|vube\\.com\\/.*\\/.*|www\\.vube\\.com\\/.*\\/.*|.*boxofficebuz\\.com\\/video\\/.*|www\\.godtube\\.com\\/featured\\/video\\/.*|godtube\\.com\\/featured\\/video\\/.*|www\\.godtube\\.com\\/watch\\/.*|godtube\\.com\\/watch\\/.*|mediamatters\\.org\\/mmtv\\/.*|www\\.clikthrough\\.com\\/theater\\/video\\/.*|www\\.clipsyndicate\\.com\\/video\\/playlist\\/.*\\/.*|www\\.srf\\.ch\\/play\\/.*\\/.*\\/.*\\/.*\\?id=.*|www\\.mpora\\.com\\/videos\\/.*|mpora\\.com\\/videos\\/.*|vice\\.com\\/.*|www\\.vice\\.com\\/.*|videodonor\\.com\\/video\\/.*|api\\.lovelive\\.tv\\/v1\\/.*|www\\.hurriyettv\\.com\\/.*|www\\.hurriyettv\\.com\\/.*|video\\.uludagsozluk\\.com\\/.*|www\\.ign\\.com\\/videos\\/.*|ign\\.com\\/videos\\/.*|www\\.askmen\\.com\\/video\\/.*|askmen\\.com\\/video\\/.*|video\\.esri\\.com\\/.*|www\\.zapkolik\\.com\\/video\\/.*|.*\\.iplayerhd\\.com\\/playerframe\\/.*|.*\\.iplayerhd\\.com\\/player\\/video\\/.*|plays\\.tv\\/video\\/.*|espn\\.go\\.com\\/video\\/clip.*|espn\\.go\\.com\\/.*\\/story.*|abcnews\\.com\\/.*\\/video\\/.*|abcnews\\.com\\/video\\/playerIndex.*|abcnews\\.go\\.com\\/.*\\/video\\/.*|abcnews\\.go\\.com\\/video\\/playerIndex.*|washingtonpost\\.com\\/wp-dyn\\/.*\\/video\\/.*\\/.*\\/.*\\/.*|www\\.washingtonpost\\.com\\/wp-dyn\\/.*\\/video\\/.*\\/.*\\/.*\\/.*|www\\.boston\\.com\\/video.*|boston\\.com\\/video.*|www\\.boston\\.com\\/.*video.*|boston\\.com\\/.*video.*|www\\.facebook\\.com\\/photo\\.php.*|www\\.facebook\\.com\\/video\\.php.*|www\\.facebook\\.com\\/.*\\/posts\\/.*|fb\\.me\\/.*|www\\.facebook\\.com\\/.*\\/photos\\/.*|www\\.facebook\\.com\\/.*\\/videos\\/.*|cnbc\\.com\\/id\\/.*\\?.*video.*|www\\.cnbc\\.com\\/id\\/.*\\?.*video.*|cnbc\\.com\\/id\\/.*\\/play\\/1\\/video\\/.*|www\\.cnbc\\.com\\/id\\/.*\\/play\\/1\\/video\\/.*|cbsnews\\.com\\/video\\/watch\\/.*|plus\\.google\\.com\\/.*|www\\.google\\.com\\/profiles\\/.*|google\\.com\\/profiles\\/.*|www\\.cnn\\.com\\/video\\/.*|edition\\.cnn\\.com\\/video\\/.*|money\\.cnn\\.com\\/video\\/.*|today\\.msnbc\\.msn\\.com\\/id\\/.*\\/vp\\/.*|www\\.msnbc\\.msn\\.com\\/id\\/.*\\/vp\\/.*|www\\.msnbc\\.msn\\.com\\/id\\/.*\\/ns\\/.*|today\\.msnbc\\.msn\\.com\\/id\\/.*\\/ns\\/.*|msnbc\\.msn\\.com\\/.*\\/watch\\/.*|www\\.msnbc\\.msn\\.com\\/.*\\/watch\\/.*|nbcnews\\.com\\/.*|www\\.nbcnews\\.com\\/.*|multimedia\\.foxsports\\.com\\/m\\/video\\/.*\\/.*|msn\\.foxsports\\.com\\/video.*|www\\.globalpost\\.com\\/video\\/.*|www\\.globalpost\\.com\\/dispatch\\/.*|theguardian\\.com\\/.*\\/video\\/.*\\/.*\\/.*\\/.*|www\\.theguardian\\.com\\/.*\\/video\\/.*\\/.*\\/.*\\/.*|guardian\\.co\\.uk\\/.*\\/video\\/.*\\/.*\\/.*\\/.*|www\\.guardian\\.co\\.uk\\/.*\\/video\\/.*\\/.*\\/.*\\/.*|bravotv\\.com\\/.*\\/.*\\/videos\\/.*|www\\.bravotv\\.com\\/.*\\/.*\\/videos\\/.*|dsc\\.discovery\\.com\\/videos\\/.*|animal\\.discovery\\.com\\/videos\\/.*|health\\.discovery\\.com\\/videos\\/.*|investigation\\.discovery\\.com\\/videos\\/.*|military\\.discovery\\.com\\/videos\\/.*|planetgreen\\.discovery\\.com\\/videos\\/.*|science\\.discovery\\.com\\/videos\\/.*|tlc\\.discovery\\.com\\/videos\\/.*|video\\.forbes\\.com\\/fvn\\/.*|distrify\\.com\\/film\\/.*|muvi\\.es\\/.*|video\\.foxnews\\.com\\/v\\/.*|video\\.foxbusiness\\.com\\/v\\/.*|www\\.reuters\\.com\\/video\\/.*|reuters\\.com\\/video\\/.*|live\\.huffingtonpost\\.com\\/r\\/segment\\/.*\\/.*|video\\.nytimes\\.com\\/video\\/.*|www\\.nytimes\\.com\\/video\\/.*\\/.*|nyti\\.ms\\/.*|www\\.vol\\.at\\/video\\/.*|vol\\.at\\/video\\/.*|www\\.spiegel\\.de\\/video\\/.*|spiegel\\.de\\/video\\/.*|www\\.zeit\\.de\\/video\\/.*|zeit\\.de\\/video\\/.*|www\\.rts\\.ch\\/play\\/tv\\/.*|soundcloud\\.com\\/.*|soundcloud\\.com\\/.*\\/.*|soundcloud\\.com\\/.*\\/sets\\/.*|soundcloud\\.com\\/groups\\/.*|snd\\.sc\\/.*|open\\.spotify\\.com\\/.*|spoti\\.fi\\/.*|play\\.spotify\\.com\\/.*|www\\.last\\.fm\\/music\\/.*|www\\.last\\.fm\\/music\\/+videos\\/.*|www\\.last\\.fm\\/music\\/+images\\/.*|www\\.last\\.fm\\/music\\/.*\\/_\\/.*|www\\.last\\.fm\\/music\\/.*\\/.*|www\\.mixcloud\\.com\\/.*\\/.*\\/|www\\.radionomy\\.com\\/.*\\/radio\\/.*|radionomy\\.com\\/.*\\/radio\\/.*|www\\.hark\\.com\\/clips\\/.*|www\\.rdio\\.com\\/#\\/artist\\/.*\\/album\\/.*|www\\.rdio\\.com\\/artist\\/.*\\/album\\/.*|www\\.zero-inch\\.com\\/.*|.*\\.bandcamp\\.com\\/|.*\\.bandcamp\\.com\\/track\\/.*|.*\\.bandcamp\\.com\\/album\\/.*|freemusicarchive\\.org\\/music\\/.*|www\\.freemusicarchive\\.org\\/music\\/.*|freemusicarchive\\.org\\/curator\\/.*|www\\.freemusicarchive\\.org\\/curator\\/.*|www\\.npr\\.org\\/.*\\/.*\\/.*\\/.*\\/.*|www\\.npr\\.org\\/.*\\/.*\\/.*\\/.*\\/.*\\/.*|www\\.npr\\.org\\/.*\\/.*\\/.*\\/.*\\/.*\\/.*\\/.*|www\\.npr\\.org\\/templates\\/story\\/story\\.php.*|huffduffer\\.com\\/.*\\/.*|www\\.audioboom\\.com\\/boos\\/.*|audioboom\\.com\\/boos\\/.*|boo\\.fm\\/b.*|www\\.xiami\\.com\\/song\\/.*|xiami\\.com\\/song\\/.*|www\\.saynow\\.com\\/playMsg\\.html.*|www\\.saynow\\.com\\/playMsg\\.html.*|grooveshark\\.com\\/.*|radioreddit\\.com\\/songs.*|www\\.radioreddit\\.com\\/songs.*|radioreddit\\.com\\/\\?q=songs.*|www\\.radioreddit\\.com\\/\\?q=songs.*|www\\.gogoyoko\\.com\\/song\\/.*|hypem\\.com\\/premiere\\/.*|bop\\.fm\\/s\\/.*\\/.*|clyp\\.it\\/.*|www\\.dnbradio\\.com\\/.*|dnbradio\\.com\\/.*))|(https:\\/\\/(picasaweb\\.google\\.com.*\\/.*\\/.*#.*|picasaweb\\.google\\.com.*\\/lh\\/photo\\/.*|picasaweb\\.google\\.com.*\\/.*\\/.*|skitch\\.com\\/.*\\/.*\\/.*|img\\.skitch\\.com\\/.*|vidd\\.me\\/.*|vid\\.me\\/.*|gfycat\\.com\\/.*|.*youtube\\.com\\/watch.*|.*\\.youtube\\.com\\/v\\/.*|youtu\\.be\\/.*|.*\\.youtube\\.com\\/playlist.*|www\\.youtube\\.com\\/embed\\/.*|youtube\\.com\\/gif.*|www\\.youtube\\.com\\/gif.*|screen\\.yahoo\\.com\\/.*\\/.*|animoto\\.com\\/play\\/.*|video214\\.com\\/play\\/.*|www\\.streamio\\.com\\/api\\/v1\\/.*|streamio\\.com\\/api\\/v1\\/.*|vine\\.co\\/v\\/.*|www\\.vine\\.co\\/v\\/.*|mixbit\\.com\\/v\\/.*|www\\.brainshark\\.com\\/.*\\/.*|brainshark\\.com\\/.*\\/.*|23video\\.com\\/.*|.*\\.23video\\.com\\/.*|brainsonic\\.com\\/.*|.*\\.brainsonic\\.com\\/.*|www\\.reelhouse\\.org\\/.*|reelhouse\\.org\\/.*|www\\.allego\\.com\\/.*|clipter\\.com\\/c\\/.*|app\\.devhv\\.com\\/oembed\\/.*|sendvid\\.com\\/.*|clipmine\\.com\\/video\\/.*|clipmine\\.com\\/embed\\/.*|clippituser\\.tv\\/.*|www\\.clippituser\\.tv\\/.*|www\\.vimeo\\.com\\/.*|vimeo\\.com\\/.*|player\\.vimeo\\.com\\/.*|yahoo\\.com\\/movies\\/.*|.*\\.yahoo\\.com\\/movies\\/.*|app\\.wistia\\.com\\/embed\\/medias\\/.*|wistia\\.com\\/.*|.*\\.wistia\\.com\\/.*|.*\\.wi\\.st\\/.*|wi\\.st\\/.*|.*\\.looplogic\\.com\\/.*|khanacademy\\.org\\/.*|www\\.khanacademy\\.org\\/.*|.*vidyard\\.com\\/.*|.*\\.stream\\.co\\.jp\\/apiservice\\/.*|.*\\.stream\\.ne\\.jp\\/apiservice\\/.*|api\\.lovelive\\.tv\\/v1\\/.*|video\\.esri\\.com\\/.*|mix\\.office\\.com\\/watch\\/.*|mix\\.office\\.com\\/mix\\/.*|mix\\.office\\.com\\/embed\\/.*|mix\\.office\\.com\\/MyMixes\\/Details\\/.*|.*\\.iplayerhd\\.com\\/playerframe\\/.*|.*\\.iplayerhd\\.com\\/player\\/video\\/.*|plays\\.tv\\/video\\/.*|www\\.facebook\\.com\\/photo\\.php.*|www\\.facebook\\.com\\/video\\.php.*|www\\.facebook\\.com\\/.*\\/posts\\/.*|fb\\.me\\/.*|www\\.facebook\\.com\\/.*\\/photos\\/.*|www\\.facebook\\.com\\/.*\\/videos\\/.*|plus\\.google\\.com\\/.*|soundcloud\\.com\\/.*|soundcloud\\.com\\/.*\\/.*|soundcloud\\.com\\/.*\\/sets\\/.*|soundcloud\\.com\\/groups\\/.*|open\\.spotify\\.com\\/.*|play\\.spotify\\.com\\/.*|bop\\.fm\\/s\\/.*\\/.*|bop\\.fm\\/p\\/.*|bop\\.fm\\/a\\/.*|clyp\\.it\\/.*|sfx\\.io\\/.*)))/i', 'text', '', '', '', 81);
  274. --
  275. -- CATEGORY: Permalinks
  276. --
  277. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'permalinks', '_adm_stg_cpt_category_permalinks', 0, 9);
  278. SET @iCategoryId = LAST_INSERT_ID();
  279. INSERT INTO `sys_options` (`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  280. (@iCategoryId, 'permalinks_pages', '_adm_stg_cpt_option_permalinks_pages', 'on', 'checkbox', '', '', '', 1),
  281. (@iCategoryId, 'permalinks_modules', '_adm_stg_cpt_option_permalinks_modules', 'on', 'checkbox', '', '', '', 2),
  282. (@iCategoryId, 'permalinks_storage', '_adm_stg_cpt_option_permalinks_storage', 'on', 'checkbox', '', '', '', 3);
  283. --
  284. -- CATEGORY: Security
  285. --
  286. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'security', '_adm_stg_cpt_category_security', 0, 11);
  287. SET @iCategoryId = LAST_INSERT_ID();
  288. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  289. (@iCategoryId, 'sys_security_form_token_enable', '_adm_stg_cpt_option_sys_security_form_token_enable', 'on', 'checkbox', '', '', '', 10),
  290. (@iCategoryId, 'sys_security_form_token_lifetime', '_adm_stg_cpt_option_sys_security_form_token_lifetime', '86400', 'digit', '', '', '', 11),
  291. (@iCategoryId, 'sys_recaptcha_key_public', '_adm_stg_cpt_option_sys_recaptcha_key_public', '', 'digit', '', '', '', 20),
  292. (@iCategoryId, 'sys_recaptcha_key_private', '_adm_stg_cpt_option_sys_recaptcha_key_private', '', 'digit', '', '', '', 21),
  293. (@iCategoryId, 'sys_add_nofollow', '_adm_stg_cpt_option_sys_add_nofollow', 'on', 'checkbox', '', '', '', 30);
  294. --
  295. -- CATEGORY: Site Settings
  296. --
  297. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'site_settings','_adm_stg_cpt_category_site_settings', 0, 12);
  298. SET @iCategoryId = LAST_INSERT_ID();
  299. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  300. (@iCategoryId, 'site_title', '_adm_stg_cpt_option_site_title', 'Community', 'digit', '', '', '', 1),
  301. (@iCategoryId, 'site_email', '_adm_stg_cpt_option_site_email', 'admin@example.com', 'digit', '', '', '', 2),
  302. (@iCategoryId, 'site_email_notify', '_adm_stg_cpt_option_site_email_notify', 'admin@example.com', 'digit', '', '', '', 3),
  303. (@iCategoryId, 'site_tour_home', '_adm_stg_cpt_option_site_tour_home', 'on', 'checkbox', '', '', '', 6),
  304. (@iCategoryId, 'site_tour_studio', '_adm_stg_cpt_option_site_tour_studio', 'on', 'checkbox', '', '', '', 7),
  305. (@iCategoryId, 'sys_autoupdate_system', '_adm_stg_cpt_option_sys_autoupdate_system', 'on', 'checkbox', '', '', '', 10),
  306. (@iCategoryId, 'sys_autoupdate_modules', '_adm_stg_cpt_option_sys_autoupdate_modules', 'on', 'checkbox', '', '', '', 11),
  307. (@iCategoryId, 'sys_autoupdate_force_modified_files', '_adm_stg_cpt_option_sys_autoupdate_force_modified_files', '', 'checkbox', '', '', '', 12);
  308. --
  309. -- CATEGORY: Storage
  310. --
  311. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'storage', '_adm_stg_cpt_category_storage', 0, 13);
  312. SET @iCategoryId = LAST_INSERT_ID();
  313. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  314. (@iCategoryId, 'sys_storage_default', '_adm_stg_cpt_option_sys_storage_default', 'Local', 'select', 'Local,S3', '', '', 1),
  315. (@iCategoryId, 'sys_storage_s3_access_key', '_adm_stg_cpt_option_sys_storage_s3_access_key', '', 'digit', '', '', '', 2),
  316. (@iCategoryId, 'sys_storage_s3_secret_key', '_adm_stg_cpt_option_sys_storage_s3_secret_key', '', 'digit', '', '', '', 3),
  317. (@iCategoryId, 'sys_storage_s3_bucket', '_adm_stg_cpt_option_sys_storage_s3_bucket', '', 'digit', '', '', '', 4),
  318. (@iCategoryId, 'sys_storage_s3_domain', '_adm_stg_cpt_option_sys_storage_s3_domain', '', 'digit', '', '', '', 5);
  319. --
  320. -- CATEGORY: Account
  321. --
  322. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'account', '_adm_stg_cpt_category_account', 0, 14);
  323. SET @iCategoryId = LAST_INSERT_ID();
  324. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  325. (@iCategoryId, 'sys_account_online_time', '_adm_stg_cpt_option_sys_account_online_time', '5', 'digit', '', 'Avail', '_adm_stg_err_option_sys_account_online_time', 1),
  326. (@iCategoryId, 'sys_account_autoapproval', '_adm_stg_cpt_option_sys_account_autoapproval', 'on', 'checkbox', '', '', '', 10),
  327. (@iCategoryId, 'sys_account_activation_letter', '_adm_stg_cpt_option_sys_account_activation_letter', '', 'checkbox', '', '', '', 11),
  328. (@iCategoryId, 'sys_account_limit_profiles_number', '_adm_stg_cpt_option_sys_account_limit_profiles_number', '0', 'digit', '', '', '', 20);
  329. --
  330. -- CATEGORY: ACL
  331. --
  332. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'acl', '_adm_stg_cpt_category_acl', 0, 15);
  333. SET @iCategoryId = LAST_INSERT_ID();
  334. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  335. (@iCategoryId, 'sys_acl_expire_notification_days', '_adm_stg_cpt_option_sys_acl_expire_notification_days', '1', 'digit', '', '', '', 1),
  336. (@iCategoryId, 'sys_acl_expire_notify_once', '_adm_stg_cpt_option_sys_acl_expire_notify_once', 'on', 'checkbox', '', '', '', 2);
  337. --
  338. -- CATEGORY: Notifications
  339. --
  340. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'notifications', '_adm_stg_cpt_category_notifications', 0, 16);
  341. SET @iCategoryId = LAST_INSERT_ID();
  342. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  343. (@iCategoryId, 'enable_notification_pruning', '_adm_stg_cpt_option_enable_notification_pruning', 'on', 'checkbox', '', '', '', 1),
  344. (@iCategoryId, 'enable_notification_account', '_adm_stg_cpt_option_enable_notification_account', 'on', 'checkbox', '', '', '', 2);
  345. --
  346. -- Table structure for table `sys_options_mixes`
  347. --
  348. CREATE TABLE `sys_options_mixes` (
  349. `id` int(11) unsigned NOT NULL auto_increment,
  350. `type` varchar(64) NOT NULL default '',
  351. `category` varchar(64) NOT NULL default '',
  352. `name` varchar(64) NOT NULL default '',
  353. `title` varchar(64) NOT NULL default '',
  354. `active` tinyint(1) NOT NULL default '0',
  355. `editable` tinyint(1) NOT NULL default '1',
  356. PRIMARY KEY (`id`),
  357. UNIQUE KEY `name`(`name`)
  358. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  359. --
  360. -- Table structure for table `sys_options_mixes2options`
  361. --
  362. CREATE TABLE `sys_options_mixes2options` (
  363. `option` varchar(64) NOT NULL default '',
  364. `mix_id` int(11) unsigned NOT NULL default '0',
  365. `value` mediumtext NOT NULL,
  366. UNIQUE KEY `value`(`option`, `mix_id`)
  367. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  368. -- --------------------------------------------------------
  369. CREATE TABLE `sys_localization_categories` (
  370. `ID` int(6) unsigned NOT NULL auto_increment,
  371. `Name` varchar(255) NOT NULL default '',
  372. PRIMARY KEY (`ID`),
  373. UNIQUE KEY `Name` (`Name`)
  374. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  375. INSERT INTO `sys_localization_categories` VALUES
  376. (1, 'System'),
  377. (2, 'Custom');
  378. CREATE TABLE `sys_localization_keys` (
  379. `ID` int(10) unsigned NOT NULL auto_increment,
  380. `IDCategory` int(6) unsigned NOT NULL default '0',
  381. `Key` varchar(255) character set utf8 collate utf8_bin NOT NULL default '',
  382. PRIMARY KEY (`ID`),
  383. UNIQUE KEY `Key` (`Key`),
  384. FULLTEXT KEY `KeyFilter` (`Key`)
  385. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  386. CREATE TABLE `sys_localization_languages` (
  387. `ID` int(10) unsigned NOT NULL auto_increment,
  388. `Name` varchar(5) NOT NULL default '',
  389. `Flag` varchar(2) NOT NULL default '',
  390. `Title` varchar(255) NOT NULL default '',
  391. `Enabled` tinyint(1) unsigned NOT NULL default '0',
  392. PRIMARY KEY (`ID`),
  393. UNIQUE KEY `Name` (`Name`)
  394. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  395. CREATE TABLE `sys_localization_strings` (
  396. `IDKey` int(10) unsigned NOT NULL default '0',
  397. `IDLanguage` int(10) unsigned NOT NULL default '0',
  398. `String` mediumtext NOT NULL,
  399. PRIMARY KEY (`IDKey`,`IDLanguage`),
  400. FULLTEXT KEY `String` (`String`)
  401. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  402. -- --------------------------------------------------------
  403. CREATE TABLE `sys_acl_actions` (
  404. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  405. `Module` varchar(32) NOT NULL,
  406. `Name` varchar(255) NOT NULL default '',
  407. `AdditionalParamName` varchar(80) default NULL,
  408. `Title` varchar(255) NOT NULL,
  409. `Desc` varchar(255) NOT NULL,
  410. `Countable` tinyint(4) NOT NULL DEFAULT '0',
  411. `DisabledForLevels` int(10) unsigned NOT NULL DEFAULT '3',
  412. PRIMARY KEY (`ID`),
  413. FULLTEXT KEY `ModuleAndName` (`Module`, `Name`)
  414. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  415. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  416. ('system', 'vote', NULL, '_sys_acl_action_vote', '', 0, 0);
  417. SET @iIdActionVote = LAST_INSERT_ID();
  418. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  419. ('system', 'report', NULL, '_sys_acl_action_report', '', 0, 0);
  420. SET @iIdActionReport = LAST_INSERT_ID();
  421. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  422. ('system', 'report_view', NULL, '_sys_acl_action_report_view', '', 0, 0);
  423. SET @iIdActionReportView = LAST_INSERT_ID();
  424. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  425. ('system', 'favorite', NULL, '_sys_acl_action_favorite', '', 0, 0);
  426. SET @iIdActionFavorite = LAST_INSERT_ID();
  427. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  428. ('system', 'favorite_view', NULL, '_sys_acl_action_favorite_view', '', 0, 0);
  429. SET @iIdActionFavoriteView = LAST_INSERT_ID();
  430. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  431. ('system', 'view_view', NULL, '_sys_acl_action_view_view', '', 0, 0);
  432. SET @iIdActionViewView = LAST_INSERT_ID();
  433. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  434. ('system', 'view_view_viewers', NULL, '_sys_acl_action_view_view_viewers', '', 0, 0);
  435. SET @iIdActionViewViewViewers = LAST_INSERT_ID();
  436. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  437. ('system', 'comments post', NULL, '_sys_acl_action_comments_post', '', 0, 3);
  438. SET @iIdActionCmtPost = LAST_INSERT_ID();
  439. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  440. ('system', 'comments edit own', NULL, '_sys_acl_action_comments_edit_own', '', 0, 3);
  441. SET @iIdActionCmtEditOwn = LAST_INSERT_ID();
  442. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  443. ('system', 'comments remove own', NULL, '_sys_acl_action_comments_remove_own', '', 0, 3);
  444. SET @iIdActionCmtRemoveOwn = LAST_INSERT_ID();
  445. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  446. ('system', 'comments edit all', NULL, '_sys_acl_action_comments_edit_all', '', 0, 3);
  447. SET @iIdActionCmtEditAll = LAST_INSERT_ID();
  448. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  449. ('system', 'comments remove all', NULL, '_sys_acl_action_comments_remove_all', '', 0, 3);
  450. SET @iIdActionCmtRemoveAll = LAST_INSERT_ID();
  451. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  452. ('system', 'create account', NULL, '_sys_acl_action_create_account', '_sys_acl_action_create_account_desc', 0, 2147483646);
  453. SET @iIdActionAccountCreate = LAST_INSERT_ID();
  454. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  455. ('system', 'delete account', NULL, '_sys_acl_action_delete_account', '_sys_acl_action_delete_account_desc', 0, 1);
  456. SET @iIdActionAccountDelete = LAST_INSERT_ID();
  457. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  458. ('system', 'set acl level', NULL, '_sys_acl_action_set_acl_level', '_sys_acl_action_set_acl_level_desc', 0, 3);
  459. SET @iIdActionSetAclLevel = LAST_INSERT_ID();
  460. CREATE TABLE `sys_acl_actions_track` (
  461. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  462. `IDMember` int(10) unsigned NOT NULL default '0',
  463. `ActionsLeft` int(10) unsigned NOT NULL DEFAULT '0',
  464. `ValidSince` datetime default NULL,
  465. PRIMARY KEY (`IDAction`,`IDMember`)
  466. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  467. CREATE TABLE `sys_acl_matrix` (
  468. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  469. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  470. `AllowedCount` int(10) unsigned DEFAULT NULL,
  471. `AllowedPeriodLen` int(10) unsigned DEFAULT NULL,
  472. `AllowedPeriodStart` datetime default NULL,
  473. `AllowedPeriodEnd` datetime default NULL,
  474. `AdditionalParamValue` varchar(255) default NULL,
  475. PRIMARY KEY (`IDLevel`,`IDAction`)
  476. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  477. SET @iUnauthenticated = 1;
  478. SET @iAccount = 2;
  479. SET @iStandard = 3;
  480. SET @iUnconfirmed = 4;
  481. SET @iPending = 5;
  482. SET @iSuspended = 6;
  483. SET @iModerator = 7;
  484. SET @iAdministrator = 8;
  485. SET @iPremium = 9;
  486. INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES
  487. -- vote
  488. (@iStandard, @iIdActionVote),
  489. (@iModerator, @iIdActionVote),
  490. (@iAdministrator, @iIdActionVote),
  491. (@iPremium, @iIdActionVote),
  492. -- report
  493. (@iStandard, @iIdActionReport),
  494. (@iModerator, @iIdActionReport),
  495. (@iAdministrator, @iIdActionReport),
  496. (@iPremium, @iIdActionReport),
  497. -- report view
  498. (@iModerator, @iIdActionReportView),
  499. (@iAdministrator, @iIdActionReportView),
  500. -- favorite
  501. (@iStandard, @iIdActionFavorite),
  502. (@iModerator, @iIdActionFavorite),
  503. (@iAdministrator, @iIdActionFavorite),
  504. (@iPremium, @iIdActionFavorite),
  505. -- favorite view
  506. (@iUnauthenticated, @iIdActionFavoriteView),
  507. (@iAccount, @iIdActionFavoriteView),
  508. (@iStandard, @iIdActionFavoriteView),
  509. (@iUnconfirmed, @iIdActionFavoriteView),
  510. (@iPending, @iIdActionFavoriteView),
  511. (@iModerator, @iIdActionFavoriteView),
  512. (@iAdministrator, @iIdActionFavoriteView),
  513. (@iPremium, @iIdActionFavoriteView),
  514. -- view view
  515. (@iUnauthenticated, @iIdActionViewView),
  516. (@iAccount, @iIdActionViewView),
  517. (@iStandard, @iIdActionViewView),
  518. (@iUnconfirmed, @iIdActionViewView),
  519. (@iPending, @iIdActionViewView),
  520. (@iModerator, @iIdActionViewView),
  521. (@iAdministrator, @iIdActionViewView),
  522. (@iPremium, @iIdActionViewView),
  523. -- view view viewers
  524. (@iModerator, @iIdActionViewViewViewers),
  525. (@iAdministrator, @iIdActionViewViewViewers),
  526. -- comments post
  527. (@iStandard, @iIdActionCmtPost),
  528. (@iModerator, @iIdActionCmtPost),
  529. (@iAdministrator, @iIdActionCmtPost),
  530. (@iPremium, @iIdActionCmtPost),
  531. -- comments edit own
  532. (@iStandard, @iIdActionCmtEditOwn),
  533. (@iModerator, @iIdActionCmtEditOwn),
  534. (@iAdministrator, @iIdActionCmtEditOwn),
  535. (@iPremium, @iIdActionCmtEditOwn),
  536. -- comments remove own
  537. (@iStandard, @iIdActionCmtRemoveOwn),
  538. (@iModerator, @iIdActionCmtRemoveOwn),
  539. (@iAdministrator, @iIdActionCmtRemoveOwn),
  540. (@iPremium, @iIdActionCmtRemoveOwn),
  541. -- comments edit all
  542. (@iModerator, @iIdActionCmtEditAll),
  543. (@iAdministrator, @iIdActionCmtEditAll),
  544. -- comments remove all
  545. (@iModerator, @iIdActionCmtRemoveAll),
  546. (@iAdministrator, @iIdActionCmtRemoveAll),
  547. -- account create
  548. (@iUnauthenticated, @iIdActionAccountCreate),
  549. -- account delete
  550. (@iAccount, @iIdActionAccountDelete),
  551. (@iStandard, @iIdActionAccountDelete),
  552. (@iUnconfirmed, @iIdActionAccountDelete),
  553. (@iPending, @iIdActionAccountDelete),
  554. (@iModerator, @iIdActionAccountDelete),
  555. (@iAdministrator, @iIdActionAccountDelete),
  556. (@iPremium, @iIdActionAccountDelete),
  557. -- set acl level
  558. (@iAdministrator, @iIdActionSetAclLevel);
  559. CREATE TABLE `sys_acl_levels` (
  560. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  561. `Name` varchar(100) NOT NULL default '',
  562. `Icon` varchar(255) NOT NULL default '',
  563. `Description` varchar(255) NOT NULL default '',
  564. `Active` enum('yes','no') NOT NULL default 'no',
  565. `Purchasable` enum('yes','no') NOT NULL default 'yes',
  566. `Removable` enum('yes','no') NOT NULL default 'yes',
  567. `QuotaSize` int(11) NOT NULL,
  568. `QuotaNumber` int(11) NOT NULL,
  569. `QuotaMaxFileSize` int(11) NOT NULL,
  570. `Order` int(11) NOT NULL default '0',
  571. PRIMARY KEY (`ID`),
  572. UNIQUE KEY `Name` (`Name`),
  573. FULLTEXT KEY `Description` (`Description`)
  574. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  575. INSERT INTO `sys_acl_levels` (`ID`, `Name`, `Icon`, `Description`, `Active`, `Purchasable`, `Removable`, `QuotaSize`, `QuotaNumber`, `QuotaMaxFileSize`, `Order`) VALUES
  576. (1, '_adm_prm_txt_level_unauthenticated', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 1),
  577. (2, '_adm_prm_txt_level_account', 'user col-green1', '', 'yes', 'no', 'no', 0, 0, 0, 2),
  578. (3, '_adm_prm_txt_level_standard', 'user col-red1', '', 'yes', 'no', 'no', 0, 0, 0, 3),
  579. (4, '_adm_prm_txt_level_unconfirmed', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 4),
  580. (5, '_adm_prm_txt_level_pending', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 5),
  581. (6, '_adm_prm_txt_level_suspended', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 6),
  582. (7, '_adm_prm_txt_level_moderator', 'user-secret bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 7),
  583. (8, '_adm_prm_txt_level_administrator', 'user-secret bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 8),
  584. (9, '_adm_prm_txt_level_premium', 'user col-red3', '', 'yes', 'yes', 'no', 0, 0, 0, 9);
  585. -- --------------------------------------------------------
  586. --
  587. -- Table structure for table `boon_sys_sessions`
  588. --
  589. CREATE TABLE IF NOT EXISTS `sys_sessions` (
  590. `id` varchar(32) NOT NULL default '',
  591. `user_id` int(10) unsigned NOT NULL default '0',
  592. `data` text collate utf8_unicode_ci,
  593. `date` int(10) unsigned NOT NULL default '0',
  594. PRIMARY KEY (`id`),
  595. KEY `user_id` (`user_id`),
  596. KEY `date` (`date`)
  597. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  598. -- --------------------------------------------------------
  599. --
  600. -- Table structure for table `sys_acl_levels_members`
  601. --
  602. CREATE TABLE `sys_acl_levels_members` (
  603. `IDMember` int(10) unsigned NOT NULL default '0',
  604. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  605. `DateStarts` datetime NOT NULL default '0000-00-00 00:00:00',
  606. `DateExpires` datetime default NULL,
  607. `TransactionID` varchar(16) NOT NULL default '',
  608. PRIMARY KEY (`IDMember`,`IDLevel`,`DateStarts`)
  609. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  610. -- --------------------------------------------------------
  611. CREATE TABLE `sys_accounts` (
  612. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  613. `profile_id` int(10) unsigned NOT NULL,
  614. `name` varchar(255) NOT NULL,
  615. `email` varchar(255) NOT NULL,
  616. `email_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  617. `receive_updates` tinyint(4) NOT NULL DEFAULT '1',
  618. `receive_news` tinyint(4) NOT NULL DEFAULT '0',
  619. `password` varchar(40) NOT NULL,
  620. `salt` varchar(10) NOT NULL,
  621. `role` tinyint(4) NOT NULL DEFAULT '1',
  622. `lang_id` int(10) unsigned NOT NULL DEFAULT '0',
  623. `added` int(11) NOT NULL DEFAULT '0',
  624. `changed` int(11) NOT NULL DEFAULT '0',
  625. `logged` int(11) NOT NULL DEFAULT '0',
  626. PRIMARY KEY (`id`),
  627. UNIQUE KEY `email` (`email`),
  628. KEY `added` (`added`)
  629. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  630. CREATE TABLE IF NOT EXISTS `sys_profiles` (
  631. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  632. `account_id` int(10) unsigned NOT NULL,
  633. `type` varchar(32) NOT NULL,
  634. `content_id` int(10) unsigned NOT NULL,
  635. `status` enum('active','pending','suspended') NOT NULL DEFAULT 'active',
  636. PRIMARY KEY (`id`),
  637. UNIQUE KEY `account_type_content` (`account_id`,`type`,`content_id`),
  638. KEY `content_type` (`content_id`,`type`)
  639. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  640. -- --------------------------------------------------------
  641. CREATE TABLE `sys_stat_site` (
  642. `ID` tinyint(4) unsigned NOT NULL auto_increment,
  643. `Name` varchar(20) NOT NULL default '',
  644. `Title` varchar(50) NOT NULL default '',
  645. `UserLink` varchar(255) NOT NULL default '',
  646. `UserQuery` varchar(255) NOT NULL default '',
  647. `AdminLink` varchar(255) NOT NULL default '',
  648. `AdminQuery` varchar(255) NOT NULL default '',
  649. `IconName` varchar(50) NOT NULL default '',
  650. `StatOrder` int(4) unsigned NOT NULL default '0',
  651. PRIMARY KEY (`ID`)
  652. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  653. -- --------------------------------------------------------
  654. --
  655. -- Table structure for table 'sys_objects_rss'
  656. --
  657. CREATE TABLE `sys_objects_rss` (
  658. `id` int(11) NOT NULL auto_increment,
  659. `object` varchar(64) NOT NULL,
  660. `class_name` varchar(32) NOT NULL default '',
  661. `class_file` varchar(256) NOT NULL default '',
  662. PRIMARY KEY (`id`)
  663. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  664. INSERT INTO `sys_objects_rss` (`object`, `class_name`, `class_file`) VALUES
  665. ('sys_boonex', 'BxDolRssBoonEx', ''),
  666. ('sys_page_block', 'BxDolRssPageBlock', ''),
  667. ('sys_studio_page_help', 'BxDolStudioRssPageHelp', ''),
  668. ('sys_studio_module_help', 'BxDolStudioRssModuleHelp', '');
  669. -- --------------------------------------------------------
  670. --
  671. -- Table structure for table 'sys_objects_search'
  672. --
  673. CREATE TABLE `sys_objects_search` (
  674. `ID` int(10) unsigned NOT NULL auto_increment,
  675. `ObjectName` varchar(64) NOT NULL default '',
  676. `Title` varchar(50) NOT NULL default '',
  677. `Order` int(11) NOT NULL,
  678. `GlobalSearch` tinyint(4) NOT NULL DEFAULT '1',
  679. `ClassName` varchar(50) NOT NULL default '',
  680. `ClassPath` varchar(100) NOT NULL default '',
  681. PRIMARY KEY (`ID`)
  682. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  683. -- --------------------------------------------------------
  684. --
  685. -- Table structure for table `sys_objects_vote`
  686. --
  687. CREATE TABLE `sys_objects_vote` (
  688. `ID` int(11) unsigned NOT NULL auto_increment,
  689. `Name` varchar(50) NOT NULL default '',
  690. `TableMain` varchar(50) NOT NULL default '',
  691. `TableTrack` varchar(50) NOT NULL default '',
  692. `PostTimeout` int(11) NOT NULL default '0',
  693. `MinValue` tinyint(4) NOT NULL default '1',
  694. `MaxValue` tinyint(4) NOT NULL default '5',
  695. `IsUndo` tinyint(1) NOT NULL default '0',
  696. `IsOn` tinyint(1) NOT NULL default '1',
  697. `TriggerTable` varchar(32) NOT NULL default '',
  698. `TriggerFieldId` varchar(32) NOT NULL default '',
  699. `TriggerFieldAuthor` varchar(32) NOT NULL default '',
  700. `TriggerFieldRate` varchar(32) NOT NULL default '',
  701. `TriggerFieldRateCount` varchar(32) NOT NULL default '',
  702. `ClassName` varchar(32) NOT NULL default '',
  703. `ClassFile` varchar(256) NOT NULL default '',
  704. PRIMARY KEY (`ID`)
  705. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  706. INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
  707. ('sys_cmts', 'sys_cmts_votes', 'sys_cmts_votes_track', '604800', '1', '1', '0', '1', 'sys_cmts_ids', 'id', '', 'rate', 'votes', '', '');
  708. -- -------------------------------------------------------
  709. CREATE TABLE `sys_modules` (
  710. `id` int(11) unsigned NOT NULL auto_increment,
  711. `type` varchar(16) NOT NULL default 'module',
  712. `name` varchar(32) NOT NULL default '',
  713. `title` varchar(255) NOT NULL default '',
  714. `vendor` varchar(64) NOT NULL default '',
  715. `version` varchar(32) NOT NULL default '',
  716. `help_url` varchar(128) NOT NULL default '',
  717. `path` varchar(255) NOT NULL default '',
  718. `uri` varchar(32) NOT NULL default '',
  719. `class_prefix` varchar(32) NOT NULL default '',
  720. `db_prefix` varchar(32) NOT NULL default '',
  721. `lang_category` varchar(64) NOT NULL default '',
  722. `dependencies` varchar(255) NOT NULL default '',
  723. `date` int(11) unsigned NOT NULL default '0',
  724. `enabled` tinyint(1) NOT NULL default '0',
  725. `pending_uninstall` tinyint(4) NOT NULL,
  726. `hash` varchar(32) NOT NULL default '',
  727. PRIMARY KEY (`id`),
  728. UNIQUE KEY `name` (`name`),
  729. UNIQUE KEY `path` (`path`),
  730. UNIQUE KEY `uri` (`uri`),
  731. UNIQUE KEY `class_prefix` (`class_prefix`),
  732. UNIQUE KEY `db_prefix` (`db_prefix`)
  733. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  734. INSERT INTO `sys_modules` (`type`, `name`, `title`, `vendor`, `version`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `dependencies`, `date`, `enabled`) VALUES
  735. ('module', 'system', 'System', 'UNA, Inc', '9', '', 'system', 'Bx', 'sys_', 'System', '', 0, 1);
  736. CREATE TABLE `sys_modules_file_tracks` (
  737. `id` int(11) unsigned NOT NULL auto_increment,
  738. `module_id` int(11) unsigned NOT NULL default '0',
  739. `file` varchar(255) NOT NULL default '',
  740. `hash` varchar(64) NOT NULL default '',
  741. PRIMARY KEY (`id`)
  742. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  743. CREATE TABLE `sys_modules_relations` (
  744. `id` int(11) unsigned NOT NULL auto_increment,
  745. `module` varchar(32) NOT NULL default '',
  746. `on_install` varchar(255) NOT NULL default '',
  747. `on_uninstall` varchar(255) NOT NULL default '',
  748. `on_enable` varchar(255) NOT NULL default '',
  749. `on_disable` varchar(255) NOT NULL default '',
  750. PRIMARY KEY (`id`)
  751. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  752. -- --------------------------------------------------------
  753. CREATE TABLE IF NOT EXISTS `sys_files` (
  754. `id` int(11) NOT NULL AUTO_INCREMENT,
  755. `profile_id` int(10) unsigned NOT NULL,
  756. `remote_id` varchar(128) NOT NULL,
  757. `path` varchar(255) NOT NULL,
  758. `file_name` varchar(255) NOT NULL,
  759. `mime_type` varchar(128) NOT NULL,
  760. `ext` varchar(32) NOT NULL,
  761. `size` int(11) NOT NULL,
  762. `added` int(11) NOT NULL,
  763. `modified` int(11) NOT NULL,
  764. `private` int(11) NOT NULL,
  765. PRIMARY KEY (`id`),
  766. UNIQUE KEY `remote_id` (`remote_id`)
  767. );
  768. CREATE TABLE `sys_images` (
  769. `id` int(11) NOT NULL AUTO_INCREMENT,
  770. `profile_id` int(10) unsigned NOT NULL,
  771. `remote_id` varchar(128) NOT NULL,
  772. `path` varchar(255) NOT NULL,
  773. `file_name` varchar(255) NOT NULL,
  774. `mime_type` varchar(128) NOT NULL,
  775. `ext` varchar(32) NOT NULL,
  776. `size` int(11) NOT NULL,
  777. `added` int(11) NOT NULL,
  778. `modified` int(11) NOT NULL,
  779. `private` int(11) NOT NULL,
  780. PRIMARY KEY (`id`),
  781. UNIQUE KEY `remote_id` (`remote_id`)
  782. );
  783. CREATE TABLE `sys_images_custom` (
  784. `id` int(11) NOT NULL AUTO_INCREMENT,
  785. `profile_id` int(10) unsigned NOT NULL,
  786. `remote_id` varchar(128) NOT NULL,
  787. `path` varchar(255) NOT NULL,
  788. `file_name` varchar(255) NOT NULL,
  789. `mime_type` varchar(128) NOT NULL,
  790. `ext` varchar(32) NOT NULL,
  791. `size` int(11) NOT NULL,
  792. `added` int(11) NOT NULL,
  793. `modified` int(11) NOT NULL,
  794. `private` int(11) NOT NULL,
  795. PRIMARY KEY (`id`),
  796. UNIQUE KEY `remote_id` (`remote_id`)
  797. );
  798. CREATE TABLE `sys_images_resized` (
  799. `id` int(11) NOT NULL AUTO_INCREMENT,
  800. `profile_id` int(10) unsigned NOT NULL,
  801. `remote_id` varchar(128) NOT NULL,
  802. `path` varchar(255) NOT NULL,
  803. `file_name` varchar(255) NOT NULL,
  804. `mime_type` varchar(128) NOT NULL,
  805. `ext` varchar(32) NOT NULL,
  806. `size` int(11) NOT NULL,
  807. `added` int(11) NOT NULL,
  808. `modified` int(11) NOT NULL,
  809. `private` int(11) NOT NULL,
  810. PRIMARY KEY (`id`),
  811. UNIQUE KEY `remote_id` (`remote_id`)
  812. );
  813. -- --------------------------------------------------------
  814. CREATE TABLE IF NOT EXISTS `sys_cmts_images` (
  815. `id` int(11) NOT NULL AUTO_INCREMENT,
  816. `profile_id` int(10) unsigned NOT NULL,
  817. `remote_id` varchar(128) NOT NULL,
  818. `path` varchar(255) NOT NULL,
  819. `file_name` varchar(255) NOT NULL,
  820. `mime_type` varchar(128) NOT NULL,
  821. `ext` varchar(32) NOT NULL,
  822. `size` int(11) NOT NULL,
  823. `added` int(11) NOT NULL,
  824. `modified` int(11) NOT NULL,
  825. `private` int(11) NOT NULL,
  826. PRIMARY KEY (`id`),
  827. UNIQUE KEY `remote_id` (`remote_id`)
  828. );
  829. CREATE TABLE IF NOT EXISTS `sys_cmts_images_preview` (
  830. `id` int(11) NOT NULL AUTO_INCREMENT,
  831. `profile_id` int(10) unsigned NOT NULL,
  832. `remote_id` varchar(128) NOT NULL,
  833. `path` varchar(255) NOT NULL,
  834. `file_name` varchar(255) NOT NULL,
  835. `mime_type` varchar(128) NOT NULL,
  836. `ext` varchar(32) NOT NULL,
  837. `size` int(11) NOT NULL,
  838. `added` int(11) NOT NULL,
  839. `modified` int(11) NOT NULL,
  840. `private` int(11) NOT NULL,
  841. PRIMARY KEY (`id`),
  842. UNIQUE KEY `remote_id` (`remote_id`)
  843. );
  844. CREATE TABLE IF NOT EXISTS `sys_cmts_images2entries` (
  845. `id` int(11) NOT NULL AUTO_INCREMENT,
  846. `system_id` int(11) NOT NULL DEFAULT '0',
  847. `cmt_id` int(11) NOT NULL DEFAULT '0',
  848. `image_id` int(11) NOT NULL DEFAULT '0',
  849. PRIMARY KEY (`id`),
  850. UNIQUE KEY `image` (`system_id`,`cmt_id`,`image_id`)
  851. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  852. CREATE TABLE IF NOT EXISTS `sys_cmts_ids` (
  853. `id` int(11) NOT NULL AUTO_INCREMENT,
  854. `system_id` int(11) NOT NULL DEFAULT '0',
  855. `cmt_id` int(11) NOT NULL DEFAULT '0',
  856. `rate` float NOT NULL default '0',
  857. `votes` int(11) NOT NULL default '0',
  858. PRIMARY KEY (`id`),
  859. UNIQUE KEY `system_cmt_id` (`system_id`,`cmt_id`)
  860. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  861. CREATE TABLE IF NOT EXISTS `sys_cmts_meta_keywords` (
  862. `object_id` int(10) unsigned NOT NULL,
  863. `keyword` varchar(255) NOT NULL,
  864. KEY `object_id` (`object_id`),
  865. KEY `keyword` (`keyword`)
  866. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  867. CREATE TABLE IF NOT EXISTS `sys_cmts_votes` (
  868. `object_id` int(11) NOT NULL default '0',
  869. `count` int(11) NOT NULL default '0',
  870. `sum` int(11) NOT NULL default '0',
  871. UNIQUE KEY `object_id` (`object_id`)
  872. ) ENGINE=MYISAM DEFAULT CHARSET=utf8;
  873. CREATE TABLE IF NOT EXISTS `sys_cmts_votes_track` (
  874. `id` int(11) NOT NULL AUTO_INCREMENT,
  875. `object_id` int(11) NOT NULL default '0',
  876. `author_id` int(11) NOT NULL default '0',
  877. `author_nip` int(11) unsigned NOT NULL default '0',
  878. `value` tinyint(4) NOT NULL default '0',
  879. `date` int(11) NOT NULL default '0',
  880. PRIMARY KEY (`id`),
  881. KEY `vote` (`object_id`, `author_nip`)
  882. ) ENGINE=MYISAM DEFAULT CHARSET=utf8;
  883. -- --------------------------------------------------------
  884. CREATE TABLE `sys_injections` (
  885. `id` int(11) unsigned NOT NULL auto_increment,
  886. `name` varchar(128) NOT NULL default '',
  887. `page_index` int(11) NOT NULL default '0',
  888. `key` varchar(128) NOT NULL default '',
  889. `type` enum('text', 'service') NOT NULL default 'text',
  890. `data` text NOT NULL default '',
  891. `replace` TINYINT NOT NULL DEFAULT '0',
  892. `active` TINYINT NOT NULL DEFAULT '1',
  893. PRIMARY KEY (`id`)
  894. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  895. INSERT INTO `sys_injections`(`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
  896. ('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),
  897. ('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),
  898. ('sys_head', 0, 'injection_head', 'text', '', 0, 1),
  899. ('sys_body', 0, 'injection_footer', 'text', '', 0, 1);
  900. -- --------------------------------------------------------
  901. CREATE TABLE `sys_injections_admin` (
  902. `id` int(11) unsigned NOT NULL auto_increment,
  903. `name` varchar(128) NOT NULL default '',
  904. `page_index` int(11) NOT NULL default '0',
  905. `key` varchar(128) NOT NULL default '',
  906. `type` enum('text','service') NOT NULL default 'text',
  907. `data` text NOT NULL,
  908. `replace` tinyint(4) NOT NULL default '0',
  909. `active` tinyint(4) NOT NULL default '1',
  910. PRIMARY KEY (`id`)
  911. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  912. -- --------------------------------------------------------
  913. CREATE TABLE `sys_permalinks` (
  914. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  915. `standard` varchar(128) NOT NULL DEFAULT '',
  916. `permalink` varchar(128) NOT NULL DEFAULT '',
  917. `check` varchar(64) NOT NULL DEFAULT '',
  918. `compare_by_prefix` tinyint(4) NOT NULL DEFAULT '0',
  919. PRIMARY KEY (`id`),
  920. UNIQUE KEY `check` (`standard`,`permalink`,`check`)
  921. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  922. INSERT INTO `sys_permalinks` (`standard`, `permalink`, `check`, `compare_by_prefix`) VALUES
  923. ('page.php?i=', 'page/', 'permalinks_pages', 1),
  924. ('modules/?r=', 'm/', 'permalinks_modules', 1),
  925. ('storage.php?o=', 's/', 'permalinks_storage', 1);
  926. -- --------------------------------------------------------
  927. CREATE TABLE `sys_alerts_handlers` (
  928. `id` int(11) unsigned NOT NULL auto_increment,
  929. `name` varchar(128) NOT NULL default '',
  930. `class` varchar(128) NOT NULL default '',
  931. `file` varchar(255) NOT NULL default '',
  932. `service_call` text NOT NULL default '',
  933. PRIMARY KEY (`id`),
  934. UNIQUE KEY `name` (`name`)
  935. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  936. CREATE TABLE `sys_alerts` (
  937. `id` int(11) unsigned NOT NULL auto_increment,
  938. `unit` varchar(128) NOT NULL default '',
  939. `action` varchar(32) NOT NULL default 'none',
  940. `handler_id` int(11) NOT NULL default '0',
  941. PRIMARY KEY (`id`),
  942. UNIQUE KEY `alert_handler` (`unit`, `action`, `handler_id`)
  943. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  944. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  945. ('sys_studio_settings_save_design', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:28:"alert_response_settings_save";s:6:"params";a:0:{}s:5:"class";s:25:"TemplStudioDesignServices";}');
  946. SET @iIdHandler = LAST_INSERT_ID();
  947. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  948. ('system', 'save_setting', @iIdHandler);
  949. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  950. ('sys_settings_sys_images_custom_file_deleted', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:45:"alert_response_sys_images_custom_file_deleted";s:6:"params";a:0:{}s:5:"class";s:27:"TemplStudioSettingsServices";}');
  951. SET @iIdHandler = LAST_INSERT_ID();
  952. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  953. ('sys_images_custom', 'file_deleted', @iIdHandler);
  954. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  955. ('sys_settings_storage_change', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:37:"alert_response_process_storage_change";s:5:"class";s:13:"TemplServices";}');
  956. SET @iHandler = LAST_INSERT_ID();
  957. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  958. ('system', 'save_setting', @iHandler);
  959. -- --------------------------------------------------------
  960. CREATE TABLE `sys_objects_report` (
  961. `id` int(11) NOT NULL auto_increment,
  962. `name` varchar(64) NOT NULL,
  963. `table_main` varchar(32) NOT NULL,
  964. `table_track` varchar(32) NOT NULL,
  965. `is_on` tinyint(4) NOT NULL default '1',
  966. `base_url` varchar(256) NOT NULL default '',
  967. `trigger_table` varchar(32) NOT NULL,
  968. `trigger_field_id` varchar(32) NOT NULL,
  969. `trigger_field_author` varchar(32) NOT NULL,
  970. `trigger_field_count` varchar(32) NOT NULL,
  971. `class_name` varchar(32) NOT NULL default '',
  972. `class_file` varchar(256) NOT NULL default '',
  973. PRIMARY KEY (`id`)
  974. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  975. -- --------------------------------------------------------
  976. CREATE TABLE `sys_objects_view` (
  977. `id` int(11) NOT NULL auto_increment,
  978. `name` varchar(64) NOT NULL,
  979. `table_track` varchar(32) NOT NULL,
  980. `period` int(11) NOT NULL default '86400',
  981. `is_on` tinyint(4) NOT NULL default '1',
  982. `trigger_table` varchar(32) NOT NULL,
  983. `trigger_field_id` varchar(32) NOT NULL,
  984. `trigger_field_author` varchar(32) NOT NULL,
  985. `trigger_field_count` varchar(32) NOT NULL,
  986. `class_name` varchar(32) NOT NULL default '',
  987. `class_file` varchar(256) NOT NULL default '',
  988. PRIMARY KEY (`id`)
  989. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  990. -- --------------------------------------------------------
  991. CREATE TABLE `sys_objects_favorite` (
  992. `id` int(11) NOT NULL auto_increment,
  993. `name` varchar(64) NOT NULL,
  994. `table_track` varchar(32) NOT NULL,
  995. `is_on` tinyint(4) NOT NULL default '1',
  996. `is_undo` tinyint(4) NOT NULL default '1',
  997. `is_public` tinyint(4) NOT NULL default '1',
  998. `base_url` varchar(256) NOT NULL default '',
  999. `trigger_table` varchar(32) NOT NULL,
  1000. `trigger_field_id` varchar(32) NOT NULL,
  1001. `trigger_field_author` varchar(32) NOT NULL,
  1002. `trigger_field_count` varchar(32) NOT NULL,
  1003. `class_name` varchar(32) NOT NULL default '',
  1004. `class_file` varchar(256) NOT NULL default '',
  1005. PRIMARY KEY (`id`)
  1006. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1007. -- --------------------------------------------------------
  1008. CREATE TABLE `sys_objects_privacy` (
  1009. `id` int(11) NOT NULL auto_increment,
  1010. `object` varchar(64) NOT NULL default '',
  1011. `module` varchar(64) NOT NULL default '',
  1012. `action` varchar(255) NOT NULL default '',
  1013. `title` varchar(255) NOT NULL default '',
  1014. `default_group` varchar(255) NOT NULL default '1',
  1015. `table` varchar(255) NOT NULL default '',
  1016. `table_field_id` varchar(255) NOT NULL default '',
  1017. `table_field_author` varchar(255) NOT NULL default '',
  1018. `override_class_name` varchar(255) NOT NULL default '',
  1019. `override_class_file` varchar(255) NOT NULL default '',
  1020. PRIMARY KEY (`id`),
  1021. UNIQUE KEY `object` (`object`),
  1022. UNIQUE KEY `action` (`module`, `action`)
  1023. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1024. CREATE TABLE `sys_privacy_defaults` (
  1025. `owner_id` int(11) NOT NULL default '0',
  1026. `action_id` int(11) NOT NULL default '0',
  1027. `group_id` int(11) NOT NULL default '0',
  1028. PRIMARY KEY (`owner_id`, `action_id`)
  1029. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1030. CREATE TABLE `sys_privacy_groups` (
  1031. `id` int(11) unsigned NOT NULL auto_increment,
  1032. `title` varchar(255) NOT NULL default '',
  1033. `check` text NOT NULL default '',
  1034. `active` tinyint(4) NOT NULL default '1',
  1035. `visible` tinyint(4) NOT NULL default '1',
  1036. PRIMARY KEY (`id`)
  1037. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1038. INSERT INTO `sys_privacy_groups`(`id`, `title`, `check`, `active`, `visible`) VALUES
  1039. ('1', '', '', 1, 0),
  1040. ('2', '_sys_ps_group_title_me_only', '@me_only', 1, 1),
  1041. ('3', '_sys_ps_group_title_public', '@public', 1, 1),
  1042. ('4', '_sys_ps_group_title_members', '@members', 0, 0),
  1043. ('5', '_sys_ps_group_title_friends', '@friends', 1, 1);
  1044. -- --------------------------------------------------------
  1045. CREATE TABLE `sys_cron_jobs` (
  1046. `id` int(11) unsigned NOT NULL auto_increment,
  1047. `name` varchar(128) NOT NULL default '',
  1048. `time` varchar(128) NOT NULL default '*',
  1049. `class` varchar(128) NOT NULL default '',
  1050. `file` varchar(255) NOT NULL default '',
  1051. `service_call` text NOT NULL default '',
  1052. PRIMARY KEY (`id`)
  1053. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1054. INSERT INTO `sys_cron_jobs` (`name`, `time`, `class`, `file`, `service_call`) VALUES
  1055. ('pruning', '0 0 * * *', 'BxDolCronPruning', 'inc/classes/BxDolCronPruning.php', ''),
  1056. ('sys_acl', '0 0 * * *', 'BxDolCronAcl', 'inc/classes/BxDolCronAcl.php', ''),
  1057. ('sys_account', '0 0 * * *', 'BxDolCronAccount', 'inc/classes/BxDolCronAccount.php', ''),
  1058. ('sys_upgrade', '0 3 * * *', 'BxDolCronUpgradeCheck', 'inc/classes/BxDolCronUpgradeCheck.php', ''),
  1059. ('sys_upgrade_modules', '30 2 * * *', 'BxDolCronUpgradeModulesCheck', 'inc/classes/BxDolCronUpgradeModulesCheck.php', ''),
  1060. ('sys_storage', '* * * * *', 'BxDolCronStorage', 'inc/classes/BxDolCronStorage.php', ''),
  1061. ('sys_transcoder', '* * * * *', 'BxDolCronTranscoder', 'inc/classes/BxDolCronTranscoder.php', '');
  1062. -- --------------------------------------------------------
  1063. CREATE TABLE IF NOT EXISTS `sys_objects_storage` (
  1064. `id` int(11) NOT NULL AUTO_INCREMENT,
  1065. `object` varchar(64) NOT NULL,
  1066. `engine` varchar(32) NOT NULL,
  1067. `params` text NOT NULL,
  1068. `token_life` int(11) NOT NULL,
  1069. `cache_control` int(11) NOT NULL,
  1070. `levels` tinyint(4) NOT NULL,
  1071. `table_files` varchar(64) NOT NULL,
  1072. `ext_mode` enum('allow-deny','deny-allow') NOT NULL,
  1073. `ext_allow` text NOT NULL,
  1074. `ext_deny` text NOT NULL,
  1075. `quota_size` int(11) NOT NULL,
  1076. `current_size` int(11) NOT NULL,
  1077. `quota_number` int(11) NOT NULL,
  1078. `current_number` int(11) NOT NULL,
  1079. `max_file_size` int(11) NOT NULL,
  1080. `ts` int(11) NOT NULL,
  1081. PRIMARY KEY (`id`),
  1082. UNIQUE KEY `object` (`object`)
  1083. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1084. 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
  1085. ('sys_images', 'Local', '', 360, 2592000, 0, 'sys_images', 'allow-deny', 'jpg,jpeg,jpe,gif,png,svg', '', 0, 0, 0, 0, 0, 0),
  1086. ('sys_images_custom', 'Local', '', 360, 2592000, 0, 'sys_images_custom', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1087. ('sys_images_resized', 'Local', '', 360, 2592000, 0, 'sys_images_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png,svg', '', 0, 0, 0, 0, 0, 0),
  1088. ('sys_cmts_images', 'Local', '', 360, 2592000, 3, 'sys_cmts_images', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1089. ('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),
  1090. ('sys_transcoder_queue_files', 'Local', '', 3600, 2592000, 0, 'sys_transcoder_queue_files', 'allow-deny', 'avi,flv,mpg,mpeg,wmv,mp4,m4v,mov,divx,xvid,3gp,webm,jpg', '', 0, 0, 0, 0, 0, 0),
  1091. ('sys_files', 'Local', '', 360, 2592000, 3, 'sys_files', 'deny-allow', '', 'action,apk,app,bat,bin,cmd,com,command,cpl,csh,exe,gadget,inf,ins,inx,ipa,isu,job,jse,ksh,lnk,msc,msi,msp,mst,osx,out,paf,pif,prg,ps1,reg,rgs,run,sct,shb,shs,u3p,vb,vbe,vbs,vbscript,workflow,ws,wsf', 0, 0, 0, 0, 0, 0);
  1092. CREATE TABLE IF NOT EXISTS `sys_storage_user_quotas` (
  1093. `profile_id` int(11) NOT NULL,
  1094. `current_size` int(11) NOT NULL,
  1095. `current_number` int(11) NOT NULL,
  1096. `ts` int(11) NOT NULL,
  1097. PRIMARY KEY (`profile_id`)
  1098. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1099. CREATE TABLE IF NOT EXISTS `sys_storage_tokens` (
  1100. `id` int(11) NOT NULL,
  1101. `object` varchar(64) NOT NULL,
  1102. `hash` varchar(32) NOT NULL,
  1103. `created` int(10) unsigned NOT NULL,
  1104. UNIQUE KEY `id` (`id`,`object`,`hash`),
  1105. KEY `created` (`created`)
  1106. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1107. CREATE TABLE IF NOT EXISTS `sys_storage_ghosts` (
  1108. `id` int(11) NOT NULL,
  1109. `profile_id` int(10) unsigned NOT NULL,
  1110. `object` varchar(64) NOT NULL,
  1111. `content_id` int(11) NOT NULL,
  1112. `created` int(10) unsigned NOT NULL,
  1113. UNIQUE KEY `id` (`id`,`object`),
  1114. KEY `created` (`created`),
  1115. KEY `profile_object_content` (`profile_id`,`object`,`content_id`)
  1116. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1117. CREATE TABLE IF NOT EXISTS `sys_storage_deletions` (
  1118. `id` int(11) NOT NULL AUTO_INCREMENT,
  1119. `object` varchar(64) NOT NULL,
  1120. `file_id` int(11) NOT NULL,
  1121. `requested` int(10) unsigned NOT NULL,
  1122. PRIMARY KEY (`id`),
  1123. UNIQUE KEY `object_file_id` (`object`,`file_id`),
  1124. KEY `requested` (`requested`)
  1125. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1126. CREATE TABLE IF NOT EXISTS `sys_storage_mime_types` (
  1127. `ext` varchar(32) NOT NULL,
  1128. `mime_type` varchar(128) NOT NULL,
  1129. `icon` varchar(255) NOT NULL,
  1130. `icon_font` varchar(255) NOT NULL,
  1131. PRIMARY KEY (`ext`)
  1132. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1133. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1134. ('ez', 'application/andrew-inset', '', ''),
  1135. ('aw', 'application/applixware', '', ''),
  1136. ('atom', 'application/atom+xml', '', ''),
  1137. ('atomcat', 'application/atomcat+xml', '', ''),
  1138. ('atomsvc', 'application/atomsvc+xml', '', ''),
  1139. ('ccxml', 'application/ccxml+xml', '', ''),
  1140. ('cdmia', 'application/cdmi-capability', '', ''),
  1141. ('cdmic', 'application/cdmi-container', '', ''),
  1142. ('cdmid', 'application/cdmi-domain', '', ''),
  1143. ('cdmio', 'application/cdmi-object', '', ''),
  1144. ('cdmiq', 'application/cdmi-queue', '', ''),
  1145. ('cu', 'application/cu-seeme', '', ''),
  1146. ('davmount', 'application/davmount+xml', '', ''),
  1147. ('dbk', 'application/docbook+xml', '', ''),
  1148. ('dssc', 'application/dssc+der', '', ''),
  1149. ('xdssc', 'application/dssc+xml', '', ''),
  1150. ('ecma', 'application/ecmascript', '', ''),
  1151. ('emma', 'application/emma+xml', '', ''),
  1152. ('epub', 'application/epub+zip', '', ''),
  1153. ('exi', 'application/exi', '', ''),
  1154. ('pfr', 'application/font-tdpfr', '', ''),
  1155. ('gml', 'application/gml+xml', '', ''),
  1156. ('gpx', 'application/gpx+xml', '', ''),
  1157. ('gxf', 'application/gxf', '', ''),
  1158. ('stk', 'application/hyperstudio', '', ''),
  1159. ('ink', 'application/inkml+xml', '', ''),
  1160. ('inkml', 'application/inkml+xml', '', ''),
  1161. ('ipfix', 'application/ipfix', '', ''),
  1162. ('jar', 'application/java-archive', '', ''),
  1163. ('ser', 'application/java-serialized-object', '', ''),
  1164. ('class', 'application/java-vm', '', ''),
  1165. ('js', 'application/javascript', '', 'file-code-o'),
  1166. ('json', 'application/json', '', 'file-code-o'),
  1167. ('jsonml', 'application/jsonml+json', '', ''),
  1168. ('lostxml', 'application/lost+xml', '', ''),
  1169. ('hqx', 'application/mac-binhex40', '', ''),
  1170. ('cpt', 'application/mac-compactpro', '', ''),
  1171. ('mads', 'application/mads+xml', '', ''),
  1172. ('mrc', 'application/marc', '', ''),
  1173. ('mrcx', 'application/marcxml+xml', '', ''),
  1174. ('ma', 'application/mathematica', '', ''),
  1175. ('nb', 'application/mathematica', '', ''),
  1176. ('mb', 'application/mathematica', '', ''),
  1177. ('mathml', 'application/mathml+xml', '', ''),
  1178. ('mbox', 'application/mbox', '', 'file-code-o'),
  1179. ('mscml', 'application/mediaservercontrol+xml', '', ''),
  1180. ('metalink', 'application/metalink+xml', '', ''),
  1181. ('meta4', 'application/metalink4+xml', '', ''),
  1182. ('mets', 'application/mets+xml', '', ''),
  1183. ('mods', 'application/mods+xml', '', ''),
  1184. ('m21', 'application/mp21', '', ''),
  1185. ('mp21', 'application/mp21', '', ''),
  1186. ('mp4s', 'application/mp4', '', ''),
  1187. ('doc', 'application/msword', 'mime-type-document.png', 'file-word-o'),
  1188. ('dot', 'application/msword', '', ''),
  1189. ('mxf', 'application/mxf', '', ''),
  1190. ('bin', 'application/octet-stream', '', ''),
  1191. ('dms', 'application/octet-stream', '', ''),
  1192. ('lrf', 'application/octet-stream', '', ''),
  1193. ('mar', 'application/octet-stream', '', ''),
  1194. ('so', 'application/octet-stream', '', ''),
  1195. ('dist', 'application/octet-stream', '', ''),
  1196. ('distz', 'application/octet-stream', '', ''),
  1197. ('pkg', 'application/octet-stream', '', ''),
  1198. ('bpk', 'application/octet-stream', '', ''),
  1199. ('dump', 'application/octet-stream', '', ''),
  1200. ('elc', 'application/octet-stream', '', ''),
  1201. ('deploy', 'application/octet-stream', '', ''),
  1202. ('mobipocket-ebook', 'application/octet-stream', '', ''),
  1203. ('oda', 'application/oda', '', ''),
  1204. ('opf', 'application/oebps-package+xml', '', ''),
  1205. ('ogx', 'application/ogg', '', ''),
  1206. ('omdoc', 'application/omdoc+xml', '', ''),
  1207. ('onetoc', 'application/onenote', '', ''),
  1208. ('onetoc2', 'application/onenote', '', ''),
  1209. ('onetmp', 'application/onenote', '', ''),
  1210. ('onepkg', 'application/onenote', '', ''),
  1211. ('oxps', 'application/oxps', '', ''),
  1212. ('xer', 'application/patch-ops-error+xml', '', ''),
  1213. ('pdf', 'application/pdf', 'mime-type-document.png', 'file-pdf-o'),
  1214. ('pgp', 'application/pgp-encrypted', '', 'file-code-o'),
  1215. ('asc', 'application/pgp-signature', '', 'file-code-o'),
  1216. ('sig', 'application/pgp-signature', '', 'file-code-o'),
  1217. ('prf', 'application/pics-rules', '', ''),
  1218. ('p10', 'application/pkcs10', 'mime-type-vector.png', ''),
  1219. ('p7m', 'application/pkcs7-mime', '', ''),
  1220. ('p7c', 'application/pkcs7-mime', '', ''),
  1221. ('p7s', 'application/pkcs7-signature', '', ''),
  1222. ('p8', 'application/pkcs8', '', ''),
  1223. ('ac', 'application/pkix-attr-cert', '', ''),
  1224. ('cer', 'application/pkix-cert', '', ''),
  1225. ('crl', 'application/pkix-crl', '', ''),
  1226. ('pkipath', 'application/pkix-pkipath', '', ''),
  1227. ('pki', 'application/pkixcmp', '', ''),
  1228. ('pls', 'application/pls+xml', '', ''),
  1229. ('ai', 'application/postscript', 'mime-type-vector.png', ''),
  1230. ('eps', 'application/postscript', '', ''),
  1231. ('ps', 'application/postscript', 'mime-type-vector.png', ''),
  1232. ('cww', 'application/prs.cww', '', ''),
  1233. ('pskcxml', 'application/pskc+xml', '', ''),
  1234. ('rdf', 'application/rdf+xml', '', 'file-code-o'),
  1235. ('rif', 'application/reginfo+xml', '', ''),
  1236. ('rnc', 'application/relax-ng-compact-syntax', '', ''),
  1237. ('rl', 'application/resource-lists+xml', '', ''),
  1238. ('rld', 'application/resource-lists-diff+xml', '', ''),
  1239. ('rs', 'application/rls-services+xml', '', ''),
  1240. ('gbr', 'application/rpki-ghostbusters', '', ''),
  1241. ('mft', 'application/rpki-manifest', '', ''),
  1242. ('roa', 'application/rpki-roa', '', ''),
  1243. ('rsd', 'application/rsd+xml', '', ''),
  1244. ('rss', 'application/rss+xml', '', 'file-code-o'),
  1245. ('rtf', 'application/rtf', 'mime-type-document.png', ''),
  1246. ('sbml', 'application/sbml+xml', '', ''),
  1247. ('scq', 'application/scvp-cv-request', '', ''),
  1248. ('scs', 'application/scvp-cv-response', '', ''),
  1249. ('spq', 'application/scvp-vp-request', '', ''),
  1250. ('spp', 'application/scvp-vp-response', '', ''),
  1251. ('sdp', 'application/sdp', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1252. ('setpay', 'application/set-payment-initiation', '', ''),
  1253. ('setreg', 'application/set-registration-initiation', '', ''),
  1254. ('shf', 'application/shf+xml', '', ''),
  1255. ('smi', 'application/smil+xml', '', ''),
  1256. ('smil', 'application/smil+xml', '', ''),
  1257. ('rq', 'application/sparql-query', '', 'file-code-o'),
  1258. ('srx', 'application/sparql-results+xml', '', ''),
  1259. ('gram', 'application/srgs', '', ''),
  1260. ('grxml', 'application/srgs+xml', '', ''),
  1261. ('sru', 'application/sru+xml', '', ''),
  1262. ('ssdl', 'application/ssdl+xml', '', ''),
  1263. ('ssml', 'application/ssml+xml', '', ''),
  1264. ('tei', 'application/tei+xml', '', ''),
  1265. ('teicorpus', 'application/tei+xml', '', ''),
  1266. ('tfi', 'application/thraud+xml', '', ''),
  1267. ('tsd', 'application/timestamped-data', '', ''),
  1268. ('plb', 'application/vnd.3gpp.pic-bw-large', '', ''),
  1269. ('psb', 'application/vnd.3gpp.pic-bw-small', '', ''),
  1270. ('pvb', 'application/vnd.3gpp.pic-bw-var', '', ''),
  1271. ('tcap', 'application/vnd.3gpp2.tcap', '', ''),
  1272. ('pwn', 'application/vnd.3m.post-it-notes', '', ''),
  1273. ('aso', 'application/vnd.accpac.simply.aso', '', ''),
  1274. ('imp', 'application/vnd.accpac.simply.imp', '', ''),
  1275. ('acu', 'application/vnd.acucobol', '', ''),
  1276. ('atc', 'application/vnd.acucorp', '', ''),
  1277. ('acutc', 'application/vnd.acucorp', '', ''),
  1278. ('air', 'application/vnd.adobe.air-application-installer-package+zip', '', ''),
  1279. ('fcdt', 'application/vnd.adobe.formscentral.fcdt', '', ''),
  1280. ('fxp', 'application/vnd.adobe.fxp', '', ''),
  1281. ('fxpl', 'application/vnd.adobe.fxp', '', ''),
  1282. ('xdp', 'application/vnd.adobe.xdp+xml', '', ''),
  1283. ('xfdf', 'application/vnd.adobe.xfdf', '', ''),
  1284. ('ahead', 'application/vnd.ahead.space', '', ''),
  1285. ('azf', 'application/vnd.airzip.filesecure.azf', '', ''),
  1286. ('azs', 'application/vnd.airzip.filesecure.azs', '', ''),
  1287. ('azw', 'application/vnd.amazon.ebook', '', ''),
  1288. ('acc', 'application/vnd.americandynamics.acc', '', ''),
  1289. ('ami', 'application/vnd.amiga.ami', '', ''),
  1290. ('apk', 'application/vnd.android.package-archive', '', ''),
  1291. ('cii', 'application/vnd.anser-web-certificate-issue-initiation', '', ''),
  1292. ('fti', 'application/vnd.anser-web-funds-transfer-initiation', '', ''),
  1293. ('atx', 'application/vnd.antix.game-component', '', ''),
  1294. ('mpkg', 'application/vnd.apple.installer+xml', '', ''),
  1295. ('m3u8', 'application/vnd.apple.mpegurl', '', ''),
  1296. ('swi', 'application/vnd.aristanetworks.swi', '', ''),
  1297. ('iota', 'application/vnd.astraea-software.iota', '', ''),
  1298. ('aep', 'application/vnd.audiograph', '', ''),
  1299. ('mpm', 'application/vnd.blueice.multipass', '', ''),
  1300. ('bmi', 'application/vnd.bmi', '', ''),
  1301. ('rep', 'application/vnd.businessobjects', '', ''),
  1302. ('cdxml', 'application/vnd.chemdraw+xml', '', ''),
  1303. ('mmd', 'application/vnd.chipnuts.karaoke-mmd', '', ''),
  1304. ('cdy', 'application/vnd.cinderella', '', ''),
  1305. ('cla', 'application/vnd.claymore', '', ''),
  1306. ('rp9', 'application/vnd.cloanto.rp9', '', ''),
  1307. ('c4g', 'application/vnd.clonk.c4group', '', ''),
  1308. ('c4d', 'application/vnd.clonk.c4group', '', ''),
  1309. ('c4f', 'application/vnd.clonk.c4group', '', ''),
  1310. ('c4p', 'application/vnd.clonk.c4group', '', ''),
  1311. ('c4u', 'application/vnd.clonk.c4group', '', ''),
  1312. ('c11amc', 'application/vnd.cluetrust.cartomobile-config', '', ''),
  1313. ('c11amz', 'application/vnd.cluetrust.cartomobile-config-pkg', '', ''),
  1314. ('csp', 'application/vnd.commonspace', '', ''),
  1315. ('cdbcmsg', 'application/vnd.contact.cmsg', '', ''),
  1316. ('cmc', 'application/vnd.cosmocaller', '', ''),
  1317. ('clkx', 'application/vnd.crick.clicker', '', ''),
  1318. ('clkk', 'application/vnd.crick.clicker.keyboard', '', ''),
  1319. ('clkp', 'application/vnd.crick.clicker.palette', '', ''),
  1320. ('clkt', 'application/vnd.crick.clicker.template', '', ''),
  1321. ('clkw', 'application/vnd.crick.clicker.wordbank', '', ''),
  1322. ('wbs', 'application/vnd.criticaltools.wbs+xml', '', ''),
  1323. ('pml', 'application/vnd.ctc-posml', '', ''),
  1324. ('ppd', 'application/vnd.cups-ppd', '', ''),
  1325. ('car', 'application/vnd.curl.car', '', ''),
  1326. ('pcurl', 'application/vnd.curl.pcurl', '', ''),
  1327. ('dart', 'application/vnd.dart', '', ''),
  1328. ('rdz', 'application/vnd.data-vision.rdz', '', ''),
  1329. ('uvf', 'application/vnd.dece.data', '', ''),
  1330. ('uvvf', 'application/vnd.dece.data', '', ''),
  1331. ('uvd', 'application/vnd.dece.data', '', ''),
  1332. ('uvvd', 'application/vnd.dece.data', '', ''),
  1333. ('uvt', 'application/vnd.dece.ttml+xml', '', ''),
  1334. ('uvvt', 'application/vnd.dece.ttml+xml', '', ''),
  1335. ('uvx', 'application/vnd.dece.unspecified', '', ''),
  1336. ('uvvx', 'application/vnd.dece.unspecified', '', ''),
  1337. ('uvz', 'application/vnd.dece.zip', '', ''),
  1338. ('uvvz', 'application/vnd.dece.zip', '', ''),
  1339. ('fe_launch', 'application/vnd.denovo.fcselayout-link', '', ''),
  1340. ('dna', 'application/vnd.dna', '', ''),
  1341. ('mlp', 'application/vnd.dolby.mlp', '', ''),
  1342. ('dpg', 'application/vnd.dpgraph', '', ''),
  1343. ('dfac', 'application/vnd.dreamfactory', '', ''),
  1344. ('kpxx', 'application/vnd.ds-keypoint', '', ''),
  1345. ('ait', 'application/vnd.dvb.ait', 'mime-type-vector.png', ''),
  1346. ('svc', 'application/vnd.dvb.service', '', '');
  1347. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1348. ('geo', 'application/vnd.dynageo', '', ''),
  1349. ('mag', 'application/vnd.ecowin.chart', '', ''),
  1350. ('nml', 'application/vnd.enliven', '', ''),
  1351. ('esf', 'application/vnd.epson.esf', '', ''),
  1352. ('msf', 'application/vnd.epson.msf', '', ''),
  1353. ('qam', 'application/vnd.epson.quickanime', '', ''),
  1354. ('slt', 'application/vnd.epson.salt', '', ''),
  1355. ('ssf', 'application/vnd.epson.ssf', '', ''),
  1356. ('es3', 'application/vnd.eszigno3+xml', '', ''),
  1357. ('et3', 'application/vnd.eszigno3+xml', '', ''),
  1358. ('ez2', 'application/vnd.ezpix-album', '', ''),
  1359. ('ez3', 'application/vnd.ezpix-package', '', ''),
  1360. ('fdf', 'application/vnd.fdf', '', ''),
  1361. ('mseed', 'application/vnd.fdsn.mseed', '', ''),
  1362. ('seed', 'application/vnd.fdsn.seed', '', ''),
  1363. ('dataless', 'application/vnd.fdsn.seed', '', ''),
  1364. ('gph', 'application/vnd.flographit', '', ''),
  1365. ('ftc', 'application/vnd.fluxtime.clip', '', ''),
  1366. ('fm', 'application/vnd.framemaker', '', ''),
  1367. ('frame', 'application/vnd.framemaker', '', ''),
  1368. ('maker', 'application/vnd.framemaker', '', ''),
  1369. ('book', 'application/vnd.framemaker', '', ''),
  1370. ('fnc', 'application/vnd.frogans.fnc', '', ''),
  1371. ('ltf', 'application/vnd.frogans.ltf', '', ''),
  1372. ('fsc', 'application/vnd.fsc.weblaunch', '', ''),
  1373. ('oas', 'application/vnd.fujitsu.oasys', '', ''),
  1374. ('oa2', 'application/vnd.fujitsu.oasys2', '', ''),
  1375. ('oa3', 'application/vnd.fujitsu.oasys3', '', ''),
  1376. ('fg5', 'application/vnd.fujitsu.oasysgp', '', ''),
  1377. ('bh2', 'application/vnd.fujitsu.oasysprs', '', ''),
  1378. ('ddd', 'application/vnd.fujixerox.ddd', '', ''),
  1379. ('xdw', 'application/vnd.fujixerox.docuworks', '', ''),
  1380. ('xbd', 'application/vnd.fujixerox.docuworks.binder', '', ''),
  1381. ('fzs', 'application/vnd.fuzzysheet', '', ''),
  1382. ('txd', 'application/vnd.genomatix.tuxedo', '', ''),
  1383. ('ggb', 'application/vnd.geogebra.file', '', ''),
  1384. ('ggt', 'application/vnd.geogebra.tool', '', ''),
  1385. ('gex', 'application/vnd.geometry-explorer', '', ''),
  1386. ('gre', 'application/vnd.geometry-explorer', '', ''),
  1387. ('gxt', 'application/vnd.geonext', '', ''),
  1388. ('g2w', 'application/vnd.geoplan', '', ''),
  1389. ('g3w', 'application/vnd.geospace', '', ''),
  1390. ('gmx', 'application/vnd.gmx', '', ''),
  1391. ('kml', 'application/vnd.google-earth.kml+xml', '', ''),
  1392. ('kmz', 'application/vnd.google-earth.kmz', '', ''),
  1393. ('gqf', 'application/vnd.grafeq', '', ''),
  1394. ('gqs', 'application/vnd.grafeq', '', ''),
  1395. ('gac', 'application/vnd.groove-account', '', ''),
  1396. ('ghf', 'application/vnd.groove-help', '', ''),
  1397. ('gim', 'application/vnd.groove-identity-message', '', ''),
  1398. ('grv', 'application/vnd.groove-injector', '', ''),
  1399. ('gtm', 'application/vnd.groove-tool-message', '', ''),
  1400. ('tpl', 'application/vnd.groove-tool-template', '', 'file-code-o'),
  1401. ('vcg', 'application/vnd.groove-vcard', '', ''),
  1402. ('hal', 'application/vnd.hal+xml', '', ''),
  1403. ('zmm', 'application/vnd.handheld-entertainment+xml', '', ''),
  1404. ('hbci', 'application/vnd.hbci', '', ''),
  1405. ('les', 'application/vnd.hhe.lesson-player', '', ''),
  1406. ('hpgl', 'application/vnd.hp-hpgl', 'mime-type-vector.png', ''),
  1407. ('hpid', 'application/vnd.hp-hpid', '', ''),
  1408. ('hps', 'application/vnd.hp-hps', '', ''),
  1409. ('jlt', 'application/vnd.hp-jlyt', '', ''),
  1410. ('pcl', 'application/vnd.hp-pcl', '', ''),
  1411. ('pclxl', 'application/vnd.hp-pclxl', '', ''),
  1412. ('sfd-hdstx', 'application/vnd.hydrostatix.sof-data', '', ''),
  1413. ('mpy', 'application/vnd.ibm.minipay', '', ''),
  1414. ('afp', 'application/vnd.ibm.modcap', '', ''),
  1415. ('listafp', 'application/vnd.ibm.modcap', '', ''),
  1416. ('list3820', 'application/vnd.ibm.modcap', '', ''),
  1417. ('irm', 'application/vnd.ibm.rights-management', '', ''),
  1418. ('sc', 'application/vnd.ibm.secure-container', '', ''),
  1419. ('icc', 'application/vnd.iccprofile', '', ''),
  1420. ('icm', 'application/vnd.iccprofile', '', ''),
  1421. ('igl', 'application/vnd.igloader', '', ''),
  1422. ('ivp', 'application/vnd.immervision-ivp', '', ''),
  1423. ('ivu', 'application/vnd.immervision-ivu', '', ''),
  1424. ('igm', 'application/vnd.insors.igm', '', ''),
  1425. ('xpw', 'application/vnd.intercon.formnet', '', ''),
  1426. ('xpx', 'application/vnd.intercon.formnet', '', ''),
  1427. ('i2g', 'application/vnd.intergeo', '', ''),
  1428. ('qbo', 'application/vnd.intu.qbo', '', ''),
  1429. ('qfx', 'application/vnd.intu.qfx', '', ''),
  1430. ('rcprofile', 'application/vnd.ipunplugged.rcprofile', '', ''),
  1431. ('irp', 'application/vnd.irepository.package+xml', '', ''),
  1432. ('xpr', 'application/vnd.is-xpr', '', ''),
  1433. ('fcs', 'application/vnd.isac.fcs', '', ''),
  1434. ('jam', 'application/vnd.jam', '', ''),
  1435. ('rms', 'application/vnd.jcp.javame.midlet-rms', '', ''),
  1436. ('jisp', 'application/vnd.jisp', '', ''),
  1437. ('joda', 'application/vnd.joost.joda-archive', '', ''),
  1438. ('ktz', 'application/vnd.kahootz', '', ''),
  1439. ('ktr', 'application/vnd.kahootz', '', ''),
  1440. ('karbon', 'application/vnd.kde.karbon', '', ''),
  1441. ('chrt', 'application/vnd.kde.kchart', '', ''),
  1442. ('kfo', 'application/vnd.kde.kformula', '', ''),
  1443. ('flw', 'application/vnd.kde.kivio', '', ''),
  1444. ('kon', 'application/vnd.kde.kontour', '', ''),
  1445. ('kpr', 'application/vnd.kde.kpresenter', '', ''),
  1446. ('kpt', 'application/vnd.kde.kpresenter', '', ''),
  1447. ('ksp', 'application/vnd.kde.kspread', '', ''),
  1448. ('kwd', 'application/vnd.kde.kword', '', ''),
  1449. ('kwt', 'application/vnd.kde.kword', '', ''),
  1450. ('htke', 'application/vnd.kenameaapp', '', ''),
  1451. ('kia', 'application/vnd.kidspiration', '', ''),
  1452. ('kne', 'application/vnd.kinar', '', ''),
  1453. ('knp', 'application/vnd.kinar', '', ''),
  1454. ('skp', 'application/vnd.koan', '', ''),
  1455. ('skd', 'application/vnd.koan', '', ''),
  1456. ('skt', 'application/vnd.koan', '', ''),
  1457. ('skm', 'application/vnd.koan', '', ''),
  1458. ('sse', 'application/vnd.kodak-descriptor', '', ''),
  1459. ('lasxml', 'application/vnd.las.las+xml', '', ''),
  1460. ('lbd', 'application/vnd.llamagraphics.life-balance.desktop', '', ''),
  1461. ('lbe', 'application/vnd.llamagraphics.life-balance.exchange+xml', '', ''),
  1462. ('123', 'application/vnd.lotus-1-2-3', '', ''),
  1463. ('apr', 'application/vnd.lotus-approach', '', ''),
  1464. ('pre', 'application/vnd.lotus-freelance', '', ''),
  1465. ('nsf', 'application/vnd.lotus-notes', '', ''),
  1466. ('org', 'application/vnd.lotus-organizer', '', ''),
  1467. ('scm', 'application/vnd.lotus-screencam', '', ''),
  1468. ('lwp', 'application/vnd.lotus-wordpro', '', ''),
  1469. ('portpkg', 'application/vnd.macports.portpkg', '', ''),
  1470. ('mcd', 'application/vnd.mcd', '', ''),
  1471. ('mc1', 'application/vnd.medcalcdata', '', ''),
  1472. ('cdkey', 'application/vnd.mediastation.cdkey', '', ''),
  1473. ('mwf', 'application/vnd.mfer', '', ''),
  1474. ('mfm', 'application/vnd.mfmp', '', ''),
  1475. ('flo', 'application/vnd.micrografx.flo', '', ''),
  1476. ('igx', 'application/vnd.micrografx.igx', '', ''),
  1477. ('mif', 'application/vnd.mif', '', ''),
  1478. ('daf', 'application/vnd.mobius.daf', '', ''),
  1479. ('dis', 'application/vnd.mobius.dis', '', ''),
  1480. ('mbk', 'application/vnd.mobius.mbk', '', ''),
  1481. ('mqy', 'application/vnd.mobius.mqy', '', ''),
  1482. ('msl', 'application/vnd.mobius.msl', '', ''),
  1483. ('plc', 'application/vnd.mobius.plc', '', ''),
  1484. ('txf', 'application/vnd.mobius.txf', '', ''),
  1485. ('mpn', 'application/vnd.mophun.application', '', ''),
  1486. ('mpc', 'application/vnd.mophun.certificate', '', ''),
  1487. ('xul', 'application/vnd.mozilla.xul+xml', '', ''),
  1488. ('cil', 'application/vnd.ms-artgalry', 'mime-type-vector.png', ''),
  1489. ('cab', 'application/vnd.ms-cab-compressed', 'mime-type-archive.png', 'file-archive-o'),
  1490. ('xls', 'application/vnd.ms-excel', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1491. ('xlm', 'application/vnd.ms-excel', '', ''),
  1492. ('xla', 'application/vnd.ms-excel', '', ''),
  1493. ('xlc', 'application/vnd.ms-excel', '', ''),
  1494. ('xlt', 'application/vnd.ms-excel', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1495. ('xlw', 'application/vnd.ms-excel', '', ''),
  1496. ('xlam', 'application/vnd.ms-excel.addin.macroenabled.12', '', ''),
  1497. ('xlsb', 'application/vnd.ms-excel.sheet.binary.macroenabled.12', '', ''),
  1498. ('xlsm', 'application/vnd.ms-excel.sheet.macroenabled.12', '', ''),
  1499. ('xltm', 'application/vnd.ms-excel.template.macroenabled.12', '', ''),
  1500. ('eot', 'application/vnd.ms-fontobject', '', ''),
  1501. ('chm', 'application/vnd.ms-htmlhelp', '', ''),
  1502. ('ims', 'application/vnd.ms-ims', '', ''),
  1503. ('lrm', 'application/vnd.ms-lrm', '', ''),
  1504. ('thmx', 'application/vnd.ms-officetheme', '', ''),
  1505. ('cat', 'application/vnd.ms-pki.seccat', '', ''),
  1506. ('stl', 'application/vnd.ms-pki.stl', '', ''),
  1507. ('ppt', 'application/vnd.ms-powerpoint', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1508. ('pps', 'application/vnd.ms-powerpoint', '', ''),
  1509. ('pot', 'application/vnd.ms-powerpoint', '', ''),
  1510. ('ppam', 'application/vnd.ms-powerpoint.addin.macroenabled.12', '', ''),
  1511. ('pptm', 'application/vnd.ms-powerpoint.presentation.macroenabled.12', '', ''),
  1512. ('sldm', 'application/vnd.ms-powerpoint.slide.macroenabled.12', '', ''),
  1513. ('ppsm', 'application/vnd.ms-powerpoint.slideshow.macroenabled.12', '', ''),
  1514. ('potm', 'application/vnd.ms-powerpoint.template.macroenabled.12', '', ''),
  1515. ('mpp', 'application/vnd.ms-project', '', ''),
  1516. ('mpt', 'application/vnd.ms-project', '', ''),
  1517. ('docm', 'application/vnd.ms-word.document.macroenabled.12', '', ''),
  1518. ('dotm', 'application/vnd.ms-word.template.macroenabled.12', '', ''),
  1519. ('wps', 'application/vnd.ms-works', '', ''),
  1520. ('wks', 'application/vnd.ms-works', '', ''),
  1521. ('wcm', 'application/vnd.ms-works', '', ''),
  1522. ('wdb', 'application/vnd.ms-works', '', ''),
  1523. ('wpl', 'application/vnd.ms-wpl', '', ''),
  1524. ('xps', 'application/vnd.ms-xpsdocument', '', ''),
  1525. ('mseq', 'application/vnd.mseq', '', ''),
  1526. ('mus', 'application/vnd.musician', '', ''),
  1527. ('msty', 'application/vnd.muvee.style', '', ''),
  1528. ('taglet', 'application/vnd.mynfc', '', ''),
  1529. ('nlu', 'application/vnd.neurolanguage.nlu', '', ''),
  1530. ('ntf', 'application/vnd.nitf', '', ''),
  1531. ('nitf', 'application/vnd.nitf', '', ''),
  1532. ('nnd', 'application/vnd.noblenet-directory', '', ''),
  1533. ('nns', 'application/vnd.noblenet-sealer', '', ''),
  1534. ('nnw', 'application/vnd.noblenet-web', '', ''),
  1535. ('ngdat', 'application/vnd.nokia.n-gage.data', '', ''),
  1536. ('n-gage', 'application/vnd.nokia.n-gage.symbian.install', '', ''),
  1537. ('rpst', 'application/vnd.nokia.radio-preset', '', ''),
  1538. ('rpss', 'application/vnd.nokia.radio-presets', '', ''),
  1539. ('edm', 'application/vnd.novadigm.edm', '', ''),
  1540. ('edx', 'application/vnd.novadigm.edx', '', ''),
  1541. ('ext', 'application/vnd.novadigm.ext', '', ''),
  1542. ('odc', 'application/vnd.oasis.opendocument.chart', '', ''),
  1543. ('otc', 'application/vnd.oasis.opendocument.chart-template', '', ''),
  1544. ('odb', 'application/vnd.oasis.opendocument.database', '', ''),
  1545. ('odf', 'application/vnd.oasis.opendocument.formula', '', ''),
  1546. ('odft', 'application/vnd.oasis.opendocument.formula-template', '', '');
  1547. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1548. ('odg', 'application/vnd.oasis.opendocument.graphics', 'mime-type-vector.png', ''),
  1549. ('otg', 'application/vnd.oasis.opendocument.graphics-template', '', ''),
  1550. ('odi', 'application/vnd.oasis.opendocument.image', '', ''),
  1551. ('oti', 'application/vnd.oasis.opendocument.image-template', '', ''),
  1552. ('odp', 'application/vnd.oasis.opendocument.presentation', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1553. ('otp', 'application/vnd.oasis.opendocument.presentation-template', '', ''),
  1554. ('ods', 'application/vnd.oasis.opendocument.spreadsheet', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1555. ('ots', 'application/vnd.oasis.opendocument.spreadsheet-template', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1556. ('odt', 'application/vnd.oasis.opendocument.text', 'mime-type-document.png', ''),
  1557. ('odm', 'application/vnd.oasis.opendocument.text-master', '', ''),
  1558. ('ott', 'application/vnd.oasis.opendocument.text-template', 'mime-type-document.png', ''),
  1559. ('oth', 'application/vnd.oasis.opendocument.text-web', '', ''),
  1560. ('xo', 'application/vnd.olpc-sugar', '', ''),
  1561. ('dd2', 'application/vnd.oma.dd2+xml', '', ''),
  1562. ('oxt', 'application/vnd.openofficeorg.extension', '', ''),
  1563. ('pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1564. ('sldx', 'application/vnd.openxmlformats-officedocument.presentationml.slide', '', ''),
  1565. ('ppsx', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', '', ''),
  1566. ('potx', 'application/vnd.openxmlformats-officedocument.presentationml.template', '', ''),
  1567. ('xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1568. ('xltx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', '', ''),
  1569. ('docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'mime-type-document.png', 'file-word-o'),
  1570. ('dotx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', '', ''),
  1571. ('mgp', 'application/vnd.osgeo.mapguide.package', '', ''),
  1572. ('dp', 'application/vnd.osgi.dp', '', ''),
  1573. ('esa', 'application/vnd.osgi.subsystem', '', ''),
  1574. ('pdb', 'application/vnd.palm', 'mime-type-document.png', ''),
  1575. ('pqa', 'application/vnd.palm', '', ''),
  1576. ('oprc', 'application/vnd.palm', '', ''),
  1577. ('paw', 'application/vnd.pawaafile', '', ''),
  1578. ('str', 'application/vnd.pg.format', '', ''),
  1579. ('ei6', 'application/vnd.pg.osasli', '', ''),
  1580. ('efif', 'application/vnd.picsel', '', ''),
  1581. ('wg', 'application/vnd.pmi.widget', '', ''),
  1582. ('plf', 'application/vnd.pocketlearn', '', ''),
  1583. ('pbd', 'application/vnd.powerbuilder6', '', ''),
  1584. ('box', 'application/vnd.previewsystems.box', '', ''),
  1585. ('mgz', 'application/vnd.proteus.magazine', '', ''),
  1586. ('qps', 'application/vnd.publishare-delta-tree', '', ''),
  1587. ('ptid', 'application/vnd.pvi.ptid1', '', ''),
  1588. ('qxd', 'application/vnd.quark.quarkxpress', '', ''),
  1589. ('qxt', 'application/vnd.quark.quarkxpress', '', ''),
  1590. ('qwd', 'application/vnd.quark.quarkxpress', '', ''),
  1591. ('qwt', 'application/vnd.quark.quarkxpress', '', ''),
  1592. ('qxl', 'application/vnd.quark.quarkxpress', '', ''),
  1593. ('qxb', 'application/vnd.quark.quarkxpress', '', ''),
  1594. ('bed', 'application/vnd.realvnc.bed', '', ''),
  1595. ('mxl', 'application/vnd.recordare.musicxml', '', ''),
  1596. ('musicxml', 'application/vnd.recordare.musicxml+xml', '', ''),
  1597. ('cryptonote', 'application/vnd.rig.cryptonote', '', ''),
  1598. ('cod', 'application/vnd.rim.cod', '', ''),
  1599. ('rm', 'application/vnd.rn-realmedia', '', ''),
  1600. ('rmvb', 'application/vnd.rn-realmedia-vbr', '', ''),
  1601. ('link66', 'application/vnd.route66.link66+xml', '', ''),
  1602. ('st', 'application/vnd.sailingtracker.track', '', ''),
  1603. ('see', 'application/vnd.seemail', '', ''),
  1604. ('sema', 'application/vnd.sema', '', ''),
  1605. ('semd', 'application/vnd.semd', '', ''),
  1606. ('semf', 'application/vnd.semf', '', ''),
  1607. ('ifm', 'application/vnd.shana.informed.formdata', '', ''),
  1608. ('itp', 'application/vnd.shana.informed.formtemplate', '', ''),
  1609. ('iif', 'application/vnd.shana.informed.interchange', '', ''),
  1610. ('ipk', 'application/vnd.shana.informed.package', '', ''),
  1611. ('twd', 'application/vnd.simtech-mindmapper', '', ''),
  1612. ('twds', 'application/vnd.simtech-mindmapper', '', ''),
  1613. ('mmf', 'application/vnd.smaf', '', ''),
  1614. ('teacher', 'application/vnd.smart.teacher', '', ''),
  1615. ('sdkm', 'application/vnd.solent.sdkm+xml', '', ''),
  1616. ('sdkd', 'application/vnd.solent.sdkm+xml', '', ''),
  1617. ('dxp', 'application/vnd.spotfire.dxp', '', ''),
  1618. ('sfs', 'application/vnd.spotfire.sfs', '', ''),
  1619. ('sdc', 'application/vnd.stardivision.calc', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1620. ('sda', 'application/vnd.stardivision.draw', '', ''),
  1621. ('sdd', 'application/vnd.stardivision.impress', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1622. ('smf', 'application/vnd.stardivision.math', '', ''),
  1623. ('sdw', 'application/vnd.stardivision.writer', 'mime-type-document.png', ''),
  1624. ('vor', 'application/vnd.stardivision.writer', '', ''),
  1625. ('sgl', 'application/vnd.stardivision.writer-global', '', ''),
  1626. ('smzip', 'application/vnd.stepmania.package', '', ''),
  1627. ('sm', 'application/vnd.stepmania.stepchart', '', ''),
  1628. ('sxc', 'application/vnd.sun.xml.calc', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1629. ('stc', 'application/vnd.sun.xml.calc.template', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1630. ('sxd', 'application/vnd.sun.xml.draw', 'mime-type-vector.png', ''),
  1631. ('std', 'application/vnd.sun.xml.draw.template', '', ''),
  1632. ('sxi', 'application/vnd.sun.xml.impress', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1633. ('sti', 'application/vnd.sun.xml.impress.template', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1634. ('sxm', 'application/vnd.sun.xml.math', '', ''),
  1635. ('sxw', 'application/vnd.sun.xml.writer', 'mime-type-document.png', ''),
  1636. ('sxg', 'application/vnd.sun.xml.writer.global', '', ''),
  1637. ('stw', 'application/vnd.sun.xml.writer.template', 'mime-type-document.png', ''),
  1638. ('sus', 'application/vnd.sus-calendar', '', ''),
  1639. ('susp', 'application/vnd.sus-calendar', '', ''),
  1640. ('svd', 'application/vnd.svd', '', ''),
  1641. ('sis', 'application/vnd.symbian.install', '', ''),
  1642. ('sisx', 'application/vnd.symbian.install', '', ''),
  1643. ('xsm', 'application/vnd.syncml+xml', '', ''),
  1644. ('bdm', 'application/vnd.syncml.dm+wbxml', '', ''),
  1645. ('xdm', 'application/vnd.syncml.dm+xml', '', ''),
  1646. ('tao', 'application/vnd.tao.intent-module-archive', '', ''),
  1647. ('pcap', 'application/vnd.tcpdump.pcap', '', ''),
  1648. ('cap', 'application/vnd.tcpdump.pcap', '', ''),
  1649. ('dmp', 'application/vnd.tcpdump.pcap', '', ''),
  1650. ('tmo', 'application/vnd.tmobile-livetv', '', ''),
  1651. ('tpt', 'application/vnd.trid.tpt', '', ''),
  1652. ('mxs', 'application/vnd.triscape.mxs', '', ''),
  1653. ('tra', 'application/vnd.trueapp', '', ''),
  1654. ('ufd', 'application/vnd.ufdl', '', ''),
  1655. ('ufdl', 'application/vnd.ufdl', '', ''),
  1656. ('utz', 'application/vnd.uiq.theme', '', ''),
  1657. ('umj', 'application/vnd.umajin', '', ''),
  1658. ('unityweb', 'application/vnd.unity', '', ''),
  1659. ('uoml', 'application/vnd.uoml+xml', '', ''),
  1660. ('vcx', 'application/vnd.vcx', '', ''),
  1661. ('vsd', 'application/vnd.visio', '', ''),
  1662. ('vst', 'application/vnd.visio', '', ''),
  1663. ('vss', 'application/vnd.visio', 'mime-type-vector.png', ''),
  1664. ('vsw', 'application/vnd.visio', '', ''),
  1665. ('vis', 'application/vnd.visionary', '', ''),
  1666. ('vsf', 'application/vnd.vsf', '', ''),
  1667. ('wbxml', 'application/vnd.wap.wbxml', '', ''),
  1668. ('wmlc', 'application/vnd.wap.wmlc', '', ''),
  1669. ('wmlsc', 'application/vnd.wap.wmlscriptc', '', ''),
  1670. ('wtb', 'application/vnd.webturbo', '', ''),
  1671. ('nbp', 'application/vnd.wolfram.player', '', ''),
  1672. ('wpd', 'application/vnd.wordperfect', '', ''),
  1673. ('wqd', 'application/vnd.wqd', '', ''),
  1674. ('stf', 'application/vnd.wt.stf', '', ''),
  1675. ('xar', 'application/vnd.xara', '', ''),
  1676. ('xfdl', 'application/vnd.xfdl', '', ''),
  1677. ('hvd', 'application/vnd.yamaha.hv-dic', '', ''),
  1678. ('hvs', 'application/vnd.yamaha.hv-script', '', ''),
  1679. ('hvp', 'application/vnd.yamaha.hv-voice', '', ''),
  1680. ('osf', 'application/vnd.yamaha.openscoreformat', '', ''),
  1681. ('osfpvg', 'application/vnd.yamaha.openscoreformat.osfpvg+xml', '', ''),
  1682. ('saf', 'application/vnd.yamaha.smaf-audio', '', ''),
  1683. ('spf', 'application/vnd.yamaha.smaf-phrase', '', ''),
  1684. ('cmp', 'application/vnd.yellowriver-custom-menu', '', ''),
  1685. ('zir', 'application/vnd.zul', '', ''),
  1686. ('zirz', 'application/vnd.zul', '', ''),
  1687. ('zaz', 'application/vnd.zzazz.deck+xml', '', ''),
  1688. ('vxml', 'application/voicexml+xml', '', ''),
  1689. ('wgt', 'application/widget', '', ''),
  1690. ('hlp', 'application/winhlp', '', ''),
  1691. ('wsdl', 'application/wsdl+xml', '', ''),
  1692. ('wspolicy', 'application/wspolicy+xml', '', ''),
  1693. ('7z', 'application/x-7z-compressed', 'mime-type-archive.png', 'file-archive-o'),
  1694. ('abw', 'application/x-abiword', '', ''),
  1695. ('ace', 'application/x-ace-compressed', 'mime-type-archive.png', 'file-archive-o'),
  1696. ('dmg', 'application/x-apple-diskimage', '', ''),
  1697. ('aab', 'application/x-authorware-bin', '', ''),
  1698. ('x32', 'application/x-authorware-bin', '', ''),
  1699. ('u32', 'application/x-authorware-bin', '', ''),
  1700. ('vox', 'application/x-authorware-bin', '', ''),
  1701. ('aam', 'application/x-authorware-map', '', ''),
  1702. ('aas', 'application/x-authorware-seg', '', ''),
  1703. ('bcpio', 'application/x-bcpio', '', ''),
  1704. ('torrent', 'application/x-bittorrent', '', ''),
  1705. ('blb', 'application/x-blorb', '', ''),
  1706. ('blorb', 'application/x-blorb', '', ''),
  1707. ('bz', 'application/x-bzip', '', ''),
  1708. ('bz2', 'application/x-bzip2', 'mime-type-archive.png', 'file-archive-o'),
  1709. ('boz', 'application/x-bzip2', '', ''),
  1710. ('cbr', 'application/x-cbr', '', ''),
  1711. ('cba', 'application/x-cbr', '', ''),
  1712. ('cbt', 'application/x-cbr', '', ''),
  1713. ('cbz', 'application/x-cbr', '', ''),
  1714. ('cb7', 'application/x-cbr', '', ''),
  1715. ('vcd', 'application/x-cdlink', '', ''),
  1716. ('cfs', 'application/x-cfs-compressed', '', ''),
  1717. ('chat', 'application/x-chat', '', ''),
  1718. ('pgn', 'application/x-chess-pgn', '', ''),
  1719. ('nsc', 'application/x-conference', '', ''),
  1720. ('cpio', 'application/x-cpio', '', ''),
  1721. ('csh', 'application/x-csh', '', 'file-code-o'),
  1722. ('deb', 'application/x-debian-package', '', ''),
  1723. ('udeb', 'application/x-debian-package', '', ''),
  1724. ('dgc', 'application/x-dgc-compressed', '', ''),
  1725. ('dir', 'application/x-director', '', ''),
  1726. ('dcr', 'application/x-director', '', ''),
  1727. ('dxr', 'application/x-director', '', ''),
  1728. ('cst', 'application/x-director', '', ''),
  1729. ('cct', 'application/x-director', '', ''),
  1730. ('cxt', 'application/x-director', '', '');
  1731. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1732. ('w3d', 'application/x-director', '', ''),
  1733. ('fgd', 'application/x-director', '', ''),
  1734. ('swa', 'application/x-director', '', ''),
  1735. ('wad', 'application/x-doom', '', ''),
  1736. ('ncx', 'application/x-dtbncx+xml', '', ''),
  1737. ('dtb', 'application/x-dtbook+xml', '', ''),
  1738. ('res', 'application/x-dtbresource+xml', '', ''),
  1739. ('dvi', 'application/x-dvi', '', ''),
  1740. ('evy', 'application/x-envoy', '', ''),
  1741. ('eva', 'application/x-eva', '', ''),
  1742. ('bdf', 'application/x-font-bdf', '', ''),
  1743. ('gsf', 'application/x-font-ghostscript', '', ''),
  1744. ('psf', 'application/x-font-linux-psf', '', ''),
  1745. ('otf', 'application/x-font-otf', '', ''),
  1746. ('pcf', 'application/x-font-pcf', '', ''),
  1747. ('snf', 'application/x-font-snf', '', ''),
  1748. ('ttf', 'application/x-font-ttf', '', ''),
  1749. ('ttc', 'application/x-font-ttf', '', ''),
  1750. ('pfa', 'application/x-font-type1', '', ''),
  1751. ('pfb', 'application/x-font-type1', '', ''),
  1752. ('pfm', 'application/x-font-type1', '', ''),
  1753. ('afm', 'application/x-font-type1', '', ''),
  1754. ('woff', 'application/x-font-woff', '', ''),
  1755. ('arc', 'application/x-freearc', '', ''),
  1756. ('spl', 'application/x-futuresplash', '', ''),
  1757. ('gca', 'application/x-gca-compressed', '', ''),
  1758. ('ulx', 'application/x-glulx', '', ''),
  1759. ('gnumeric', 'application/x-gnumeric', '', ''),
  1760. ('gramps', 'application/x-gramps-xml', '', ''),
  1761. ('gtar', 'application/x-gtar', '', ''),
  1762. ('hdf', 'application/x-hdf', '', ''),
  1763. ('install', 'application/x-install-instructions', '', ''),
  1764. ('iso', 'application/x-iso9660-image', '', ''),
  1765. ('jnlp', 'application/x-java-jnlp-file', '', ''),
  1766. ('latex', 'application/x-latex', '', ''),
  1767. ('lzh', 'application/x-lzh-compressed', '', ''),
  1768. ('lha', 'application/x-lzh-compressed', '', ''),
  1769. ('mie', 'application/x-mie', '', ''),
  1770. ('prc', 'application/x-mobipocket-ebook', '', ''),
  1771. ('mobi', 'application/x-mobipocket-ebook', '', ''),
  1772. ('application', 'application/x-ms-application', '', ''),
  1773. ('lnk', 'application/x-ms-shortcut', '', ''),
  1774. ('wmd', 'application/x-ms-wmd', '', ''),
  1775. ('wmz', 'application/x-ms-wmz', '', ''),
  1776. ('xbap', 'application/x-ms-xbap', '', ''),
  1777. ('mdb', 'application/x-msaccess', '', ''),
  1778. ('obd', 'application/x-msbinder', '', ''),
  1779. ('crd', 'application/x-mscardfile', '', ''),
  1780. ('clp', 'application/x-msclip', '', ''),
  1781. ('exe', 'application/x-msdownload', '', ''),
  1782. ('dll', 'application/x-msdownload', '', ''),
  1783. ('com', 'application/x-msdownload', '', ''),
  1784. ('bat', 'application/x-msdownload', '', 'file-code-o'),
  1785. ('msi', 'application/x-msdownload', '', ''),
  1786. ('mvb', 'application/x-msmediaview', '', ''),
  1787. ('m13', 'application/x-msmediaview', '', ''),
  1788. ('m14', 'application/x-msmediaview', '', ''),
  1789. ('wmf', 'application/x-msmetafile', '', ''),
  1790. ('emf', 'application/x-msmetafile', '', ''),
  1791. ('emz', 'application/x-msmetafile', '', ''),
  1792. ('mny', 'application/x-msmoney', '', ''),
  1793. ('pub', 'application/x-mspublisher', '', ''),
  1794. ('scd', 'application/x-msschedule', '', ''),
  1795. ('trm', 'application/x-msterminal', '', ''),
  1796. ('wri', 'application/x-mswrite', '', ''),
  1797. ('nc', 'application/x-netcdf', '', ''),
  1798. ('cdf', 'application/x-netcdf', '', ''),
  1799. ('nzb', 'application/x-nzb', '', ''),
  1800. ('p12', 'application/x-pkcs12', '', ''),
  1801. ('pfx', 'application/x-pkcs12', '', ''),
  1802. ('p7b', 'application/x-pkcs7-certificates', '', ''),
  1803. ('spc', 'application/x-pkcs7-certificates', '', ''),
  1804. ('p7r', 'application/x-pkcs7-certreqresp', '', ''),
  1805. ('rar', 'application/x-rar-compressed', 'mime-type-archive.png', 'file-archive-o'),
  1806. ('ris', 'application/x-research-info-systems', '', ''),
  1807. ('sh', 'application/x-sh', '', 'file-code-o'),
  1808. ('shar', 'application/x-shar', '', ''),
  1809. ('swf', 'application/x-shockwave-flash', '', ''),
  1810. ('xap', 'application/x-silverlight-app', '', ''),
  1811. ('sql', 'text/x-sql', '', 'file-code-o'),
  1812. ('sit', 'application/x-stuffit', '', ''),
  1813. ('sitx', 'application/x-stuffitx', '', ''),
  1814. ('srt', 'application/x-subrip', '', ''),
  1815. ('sv4cpio', 'application/x-sv4cpio', '', ''),
  1816. ('sv4crc', 'application/x-sv4crc', '', ''),
  1817. ('t3', 'application/x-t3vm-image', '', ''),
  1818. ('gam', 'application/x-tads', '', ''),
  1819. ('tar', 'application/x-tar', 'mime-type-archive.png', 'file-archive-o'),
  1820. ('tcl', 'application/x-tcl', '', ''),
  1821. ('tex', 'application/x-tex', '', ''),
  1822. ('tfm', 'application/x-tex-tfm', '', ''),
  1823. ('texinfo', 'application/x-texinfo', '', ''),
  1824. ('texi', 'application/x-texinfo', '', ''),
  1825. ('obj', 'application/x-tgif', '', ''),
  1826. ('ustar', 'application/x-ustar', '', ''),
  1827. ('src', 'application/x-wais-source', '', 'file-code-o'),
  1828. ('der', 'application/x-x509-ca-cert', '', ''),
  1829. ('crt', 'application/x-x509-ca-cert', '', ''),
  1830. ('fig', 'application/x-xfig', '', ''),
  1831. ('xlf', 'application/x-xliff+xml', '', ''),
  1832. ('xpi', 'application/x-xpinstall', '', ''),
  1833. ('xz', 'application/x-xz', '', ''),
  1834. ('z1', 'application/x-zmachine', '', ''),
  1835. ('z2', 'application/x-zmachine', '', ''),
  1836. ('z3', 'application/x-zmachine', '', ''),
  1837. ('z4', 'application/x-zmachine', '', ''),
  1838. ('z5', 'application/x-zmachine', '', ''),
  1839. ('z6', 'application/x-zmachine', '', ''),
  1840. ('z7', 'application/x-zmachine', '', ''),
  1841. ('z8', 'application/x-zmachine', '', ''),
  1842. ('xaml', 'application/xaml+xml', '', ''),
  1843. ('xdf', 'application/xcap-diff+xml', '', ''),
  1844. ('xenc', 'application/xenc+xml', '', ''),
  1845. ('xhtml', 'application/xhtml+xml', '', 'file-code-o'),
  1846. ('xht', 'application/xhtml+xml', '', ''),
  1847. ('xml', 'application/xml', '', 'file-code-o'),
  1848. ('xsl', 'application/xml', '', 'file-code-o'),
  1849. ('dtd', 'application/xml-dtd', '', 'file-code-o'),
  1850. ('xop', 'application/xop+xml', '', ''),
  1851. ('xpl', 'application/xproc+xml', '', ''),
  1852. ('xslt', 'application/xslt+xml', '', 'file-code-o'),
  1853. ('xspf', 'application/xspf+xml', '', ''),
  1854. ('mxml', 'application/xv+xml', '', ''),
  1855. ('xhvml', 'application/xv+xml', '', ''),
  1856. ('xvml', 'application/xv+xml', '', ''),
  1857. ('xvm', 'application/xv+xml', '', ''),
  1858. ('yang', 'application/yang', '', ''),
  1859. ('yin', 'application/yin+xml', '', ''),
  1860. ('zip', 'application/zip', 'mime-type-archive.png', 'file-archive-o'),
  1861. ('adp', 'audio/adpcm', 'mime-type-audio.png', 'file-audio-o'),
  1862. ('au', 'audio/basic', 'mime-type-audio.png', 'file-audio-o'),
  1863. ('snd', 'audio/basic', 'mime-type-audio.png', 'file-audio-o'),
  1864. ('mid', 'audio/midi', 'mime-type-audio.png', 'file-audio-o'),
  1865. ('midi', 'audio/midi', 'mime-type-audio.png', 'file-audio-o'),
  1866. ('kar', 'audio/midi', 'mime-type-audio.png', 'file-audio-o'),
  1867. ('rmi', 'audio/midi', 'mime-type-audio.png', 'file-audio-o'),
  1868. ('m4a', 'audio/mp4', 'mime-type-audio.png', 'file-audio-o'),
  1869. ('mp4a', 'audio/mp4', 'mime-type-audio.png', 'file-audio-o'),
  1870. ('m4p', 'audio/mp4a-latm', 'mime-type-audio.png', 'file-audio-o'),
  1871. ('mpga', 'audio/mpeg', 'mime-type-audio.png', 'file-audio-o'),
  1872. ('mp2', 'audio/mpeg', 'mime-type-audio.png', 'file-audio-o'),
  1873. ('mp2a', 'audio/mpeg', 'mime-type-audio.png', 'file-audio-o'),
  1874. ('mp3', 'audio/mpeg', 'mime-type-audio.png', 'file-audio-o'),
  1875. ('m2a', 'audio/mpeg', 'mime-type-audio.png', 'file-audio-o'),
  1876. ('m3a', 'audio/mpeg', 'mime-type-audio.png', 'file-audio-o'),
  1877. ('oga', 'audio/ogg', 'mime-type-audio.png', 'file-audio-o'),
  1878. ('ogg', 'audio/ogg', 'mime-type-audio.png', 'file-audio-o'),
  1879. ('spx', 'audio/ogg', 'mime-type-audio.png', 'file-audio-o'),
  1880. ('s3m', 'audio/s3m', 'mime-type-audio.png', 'file-audio-o'),
  1881. ('sil', 'audio/silk', 'mime-type-audio.png', 'file-audio-o'),
  1882. ('uva', 'audio/vnd.dece.audio', 'mime-type-audio.png', 'file-audio-o'),
  1883. ('uvva', 'audio/vnd.dece.audio', 'mime-type-audio.png', 'file-audio-o'),
  1884. ('eol', 'audio/vnd.digital-winds', 'mime-type-audio.png', 'file-audio-o'),
  1885. ('dra', 'audio/vnd.dra', 'mime-type-audio.png', 'file-audio-o'),
  1886. ('dts', 'audio/vnd.dts', 'mime-type-audio.png', 'file-audio-o'),
  1887. ('dtshd', 'audio/vnd.dts.hd', 'mime-type-audio.png', 'file-audio-o'),
  1888. ('lvp', 'audio/vnd.lucent.voice', 'mime-type-audio.png', 'file-audio-o'),
  1889. ('pya', 'audio/vnd.ms-playready.media.pya', 'mime-type-audio.png', 'file-audio-o'),
  1890. ('ecelp4800', 'audio/vnd.nuera.ecelp4800', 'mime-type-audio.png', 'file-audio-o'),
  1891. ('ecelp7470', 'audio/vnd.nuera.ecelp7470', 'mime-type-audio.png', 'file-audio-o'),
  1892. ('ecelp9600', 'audio/vnd.nuera.ecelp9600', 'mime-type-audio.png', 'file-audio-o'),
  1893. ('rip', 'audio/vnd.rip', 'mime-type-audio.png', 'file-audio-o'),
  1894. ('weba', 'audio/webm', 'mime-type-audio.png', 'file-audio-o'),
  1895. ('aac', 'audio/x-aac', 'mime-type-audio.png', 'file-audio-o'),
  1896. ('aif', 'audio/x-aiff', 'mime-type-audio.png', 'file-audio-o'),
  1897. ('aiff', 'audio/x-aiff', 'mime-type-audio.png', 'file-audio-o'),
  1898. ('aifc', 'audio/x-aiff', 'mime-type-audio.png', 'file-audio-o'),
  1899. ('caf', 'audio/x-caf', 'mime-type-audio.png', 'file-audio-o'),
  1900. ('flac', 'audio/x-flac', 'mime-type-audio.png', 'file-audio-o'),
  1901. ('mka', 'audio/x-matroska', 'mime-type-audio.png', 'file-audio-o'),
  1902. ('m3u', 'audio/x-mpegurl', 'mime-type-audio.png', 'file-audio-o'),
  1903. ('wax', 'audio/x-ms-wax', 'mime-type-audio.png', 'file-audio-o'),
  1904. ('wma', 'audio/x-ms-wma', 'mime-type-audio.png', 'file-audio-o'),
  1905. ('ram', 'audio/x-pn-realaudio', 'mime-type-audio.png', 'file-audio-o'),
  1906. ('ra', 'audio/x-pn-realaudio', 'mime-type-audio.png', 'file-audio-o'),
  1907. ('rmp', 'audio/x-pn-realaudio-plugin', 'mime-type-audio.png', 'file-audio-o'),
  1908. ('wav', 'audio/x-wav', 'mime-type-audio.png', 'file-audio-o'),
  1909. ('xm', 'audio/xm', 'mime-type-audio.png', 'file-audio-o'),
  1910. ('cdx', 'chemical/x-cdx', 'mime-type-vector.png', ''),
  1911. ('cif', 'chemical/x-cif', '', ''),
  1912. ('cmdf', 'chemical/x-cmdf', '', ''),
  1913. ('cml', 'chemical/x-cml', '', ''),
  1914. ('csml', 'chemical/x-csml', '', ''),
  1915. ('xyz', 'chemical/x-xyz', '', ''),
  1916. ('bmp', 'image/bmp', 'mime-type-image.png', 'file-image-o'),
  1917. ('cgm', 'image/cgm', 'mime-type-image.png', 'file-image-o'),
  1918. ('g3', 'image/g3fax', 'mime-type-image.png', 'file-image-o'),
  1919. ('gif', 'image/gif', 'mime-type-image.png', 'file-image-o'),
  1920. ('ief', 'image/ief', 'mime-type-image.png', 'file-image-o'),
  1921. ('jp2', 'image/jp2', 'mime-type-image.png', 'file-image-o'),
  1922. ('jpeg', 'image/jpeg', 'mime-type-image.png', 'file-image-o'),
  1923. ('jpg', 'image/jpeg', 'mime-type-image.png', 'file-image-o'),
  1924. ('jpe', 'image/jpeg', 'mime-type-image.png', 'file-image-o'),
  1925. ('ktx', 'image/ktx', 'mime-type-image.png', 'file-image-o'),
  1926. ('pict', 'image/pict', 'mime-type-image.png', 'file-image-o'),
  1927. ('pic', 'image/pict', 'mime-type-image.png', 'file-image-o'),
  1928. ('pct', 'image/pict', 'mime-type-image.png', 'file-image-o'),
  1929. ('png', 'image/png', 'mime-type-png.png', 'file-image-o'),
  1930. ('btif', 'image/prs.btif', 'mime-type-image.png', 'file-image-o'),
  1931. ('sgi', 'image/sgi', 'mime-type-image.png', 'file-image-o');
  1932. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1933. ('svg', 'image/svg+xml', 'mime-type-image.png', 'file-image-o'),
  1934. ('svgz', 'image/svg+xml', 'mime-type-image.png', 'file-image-o'),
  1935. ('tiff', 'image/tiff', 'mime-type-image.png', 'file-image-o'),
  1936. ('tif', 'image/tiff', 'mime-type-image.png', 'file-image-o'),
  1937. ('psd', 'image/vnd.adobe.photoshop', 'mime-type-psd.png', 'file-image-o'),
  1938. ('uvi', 'image/vnd.dece.graphic', 'mime-type-image.png', 'file-image-o'),
  1939. ('uvvi', 'image/vnd.dece.graphic', 'mime-type-image.png', 'file-image-o'),
  1940. ('uvg', 'image/vnd.dece.graphic', 'mime-type-image.png', 'file-image-o'),
  1941. ('uvvg', 'image/vnd.dece.graphic', 'mime-type-image.png', 'file-image-o'),
  1942. ('sub', 'image/vnd.dvb.subtitle', 'mime-type-image.png', 'file-image-o'),
  1943. ('djvu', 'image/vnd.djvu', 'mime-type-image.png', 'file-image-o'),
  1944. ('djv', 'image/vnd.djvu', 'mime-type-image.png', 'file-image-o'),
  1945. ('dwg', 'image/vnd.dwg', 'mime-type-image.png', 'file-image-o'),
  1946. ('dxf', 'image/vnd.dxf', 'mime-type-image.png', 'file-image-o'),
  1947. ('fbs', 'image/vnd.fastbidsheet', 'mime-type-image.png', 'file-image-o'),
  1948. ('fpx', 'image/vnd.fpx', 'mime-type-image.png', 'file-image-o'),
  1949. ('fst', 'image/vnd.fst', 'mime-type-image.png', 'file-image-o'),
  1950. ('mmr', 'image/vnd.fujixerox.edmics-mmr', 'mime-type-image.png', 'file-image-o'),
  1951. ('rlc', 'image/vnd.fujixerox.edmics-rlc', 'mime-type-image.png', 'file-image-o'),
  1952. ('mdi', 'image/vnd.ms-modi', 'mime-type-image.png', 'file-image-o'),
  1953. ('wdp', 'image/vnd.ms-photo', 'mime-type-image.png', 'file-image-o'),
  1954. ('npx', 'image/vnd.net-fpx', 'mime-type-image.png', 'file-image-o'),
  1955. ('wbmp', 'image/vnd.wap.wbmp', 'mime-type-image.png', 'file-image-o'),
  1956. ('xif', 'image/vnd.xiff', 'mime-type-image.png', 'file-image-o'),
  1957. ('webp', 'image/webp', 'mime-type-image.png', 'file-image-o'),
  1958. ('3ds', 'image/x-3ds', 'mime-type-image.png', 'file-image-o'),
  1959. ('ras', 'image/x-cmu-raster', 'mime-type-image.png', 'file-image-o'),
  1960. ('cmx', 'image/x-cmx', 'mime-type-image.png', 'file-image-o'),
  1961. ('fh', 'image/x-freehand', 'mime-type-image.png', 'file-image-o'),
  1962. ('fhc', 'image/x-freehand', 'mime-type-image.png', 'file-image-o'),
  1963. ('fh4', 'image/x-freehand', 'mime-type-image.png', 'file-image-o'),
  1964. ('fh5', 'image/x-freehand', 'mime-type-image.png', 'file-image-o'),
  1965. ('fh7', 'image/x-freehand', 'mime-type-image.png', 'file-image-o'),
  1966. ('ico', 'image/x-icon', 'mime-type-image.png', 'file-image-o'),
  1967. ('pntg', 'image/x-macpaint', 'mime-type-image.png', 'file-image-o'),
  1968. ('pnt', 'image/x-macpaint', 'mime-type-image.png', 'file-image-o'),
  1969. ('mac', 'image/x-macpaint', 'mime-type-image.png', 'file-image-o'),
  1970. ('sid', 'image/x-mrsid-image', 'mime-type-image.png', 'file-image-o'),
  1971. ('pcx', 'image/x-pcx', 'mime-type-image.png', 'file-image-o'),
  1972. ('pnm', 'image/x-portable-anymap', 'mime-type-image.png', 'file-image-o'),
  1973. ('pbm', 'image/x-portable-bitmap', 'mime-type-image.png', 'file-image-o'),
  1974. ('pgm', 'image/x-portable-graymap', 'mime-type-image.png', 'file-image-o'),
  1975. ('ppm', 'image/x-portable-pixmap', 'mime-type-image.png', 'file-image-o'),
  1976. ('qtif', 'image/x-quicktime', 'mime-type-image.png', 'file-image-o'),
  1977. ('qti', 'image/x-quicktime', 'mime-type-image.png', 'file-image-o'),
  1978. ('rgb', 'image/x-rgb', 'mime-type-image.png', 'file-image-o'),
  1979. ('tga', 'image/x-tga', 'mime-type-image.png', 'file-image-o'),
  1980. ('xbm', 'image/x-xbitmap', 'mime-type-image.png', 'file-image-o'),
  1981. ('xpm', 'image/x-xpixmap', 'mime-type-image.png', 'file-image-o'),
  1982. ('xwd', 'image/x-xwindowdump', 'mime-type-image.png', 'file-image-o'),
  1983. ('eml', 'message/rfc822', '', ''),
  1984. ('mime', 'message/rfc822', '', ''),
  1985. ('igs', 'model/iges', '', ''),
  1986. ('iges', 'model/iges', '', ''),
  1987. ('msh', 'model/mesh', '', ''),
  1988. ('mesh', 'model/mesh', '', ''),
  1989. ('silo', 'model/mesh', '', ''),
  1990. ('dae', 'model/vnd.collada+xml', '', ''),
  1991. ('dwf', 'model/vnd.dwf', '', ''),
  1992. ('gdl', 'model/vnd.gdl', '', ''),
  1993. ('gtw', 'model/vnd.gtw', '', ''),
  1994. ('mts', 'model/vnd.mts', '', ''),
  1995. ('vtu', 'model/vnd.vtu', '', ''),
  1996. ('wrl', 'model/vrml', '', ''),
  1997. ('vrml', 'model/vrml', '', ''),
  1998. ('x3db', 'model/x3d+binary', '', ''),
  1999. ('x3dbz', 'model/x3d+binary', '', ''),
  2000. ('x3dv', 'model/x3d+vrml', '', ''),
  2001. ('x3dvz', 'model/x3d+vrml', '', ''),
  2002. ('x3d', 'model/x3d+xml', '', ''),
  2003. ('x3dz', 'model/x3d+xml', '', ''),
  2004. ('manifest', 'text/cache-manifest', '', 'file-text-o'),
  2005. ('appcache', 'text/cache-manifest', '', 'file-text-o'),
  2006. ('ics', 'text/calendar', '', 'file-text-o'),
  2007. ('ifb', 'text/calendar', '', 'file-text-o'),
  2008. ('css', 'text/css', '', 'file-code-o'),
  2009. ('csv', 'text/csv', 'mime-type-spreadsheet.png', 'file-excel-o'),
  2010. ('html', 'text/html', '', 'file-code-o'),
  2011. ('htm', 'text/html', '', 'file-code-o'),
  2012. ('n3', 'text/n3', '', 'file-text-o'),
  2013. ('txt', 'text/plain', 'mime-type-document.png', 'file-text-o'),
  2014. ('text', 'text/plain', '', 'file-text-o'),
  2015. ('conf', 'text/plain', '', 'file-text-o'),
  2016. ('def', 'text/plain', '', 'file-text-o'),
  2017. ('list', 'text/plain', '', 'file-text-o'),
  2018. ('log', 'text/plain', '', 'file-text-o'),
  2019. ('in', 'text/plain', '', 'file-text-o'),
  2020. ('dsc', 'text/prs.lines.tag', '', 'file-text-o'),
  2021. ('rtx', 'text/richtext', '', 'file-text-o'),
  2022. ('sgml', 'text/sgml', '', 'file-text-o'),
  2023. ('sgm', 'text/sgml', '', 'file-text-o'),
  2024. ('tsv', 'text/tab-separated-values', '', 'file-text-o'),
  2025. ('t', 'text/troff', '', 'file-text-o'),
  2026. ('tr', 'text/troff', '', 'file-text-o'),
  2027. ('roff', 'text/troff', '', 'file-text-o'),
  2028. ('man', 'text/troff', '', 'file-text-o'),
  2029. ('me', 'text/troff', '', 'file-text-o'),
  2030. ('ms', 'text/troff', '', 'file-text-o'),
  2031. ('ttl', 'text/turtle', '', 'file-code-o'),
  2032. ('uri', 'text/uri-list', '', 'file-text-o'),
  2033. ('uris', 'text/uri-list', '', 'file-text-o'),
  2034. ('urls', 'text/uri-list', '', 'file-text-o'),
  2035. ('vcard', 'text/vcard', '', 'file-text-o'),
  2036. ('curl', 'text/vnd.curl', '', 'file-text-o'),
  2037. ('dcurl', 'text/vnd.curl.dcurl', '', 'file-text-o'),
  2038. ('scurl', 'text/vnd.curl.scurl', '', 'file-text-o'),
  2039. ('mcurl', 'text/vnd.curl.mcurl', '', 'file-text-o'),
  2040. ('fly', 'text/vnd.fly', '', 'file-text-o'),
  2041. ('flx', 'text/vnd.fmi.flexstor', '', 'file-text-o'),
  2042. ('gv', 'text/vnd.graphviz', '', 'file-text-o'),
  2043. ('3dml', 'text/vnd.in3d.3dml', '', 'file-text-o'),
  2044. ('spot', 'text/vnd.in3d.spot', '', 'file-text-o'),
  2045. ('jad', 'text/vnd.sun.j2me.app-descriptor', '', 'file-text-o'),
  2046. ('wml', 'text/vnd.wap.wml', '', 'file-text-o'),
  2047. ('wmls', 'text/vnd.wap.wmlscript', '', 'file-text-o'),
  2048. ('s', 'text/x-asm', '', 'file-text-o'),
  2049. ('asm', 'text/x-asm', '', 'file-code-o'),
  2050. ('c', 'text/x-c', '', 'file-code-o'),
  2051. ('cc', 'text/x-c', '', 'file-code-o'),
  2052. ('cxx', 'text/x-c', '', 'file-code-o'),
  2053. ('cpp', 'text/x-c', '', 'file-code-o'),
  2054. ('h', 'text/x-c', '', 'file-code-o'),
  2055. ('hh', 'text/x-c', '', 'file-code-o'),
  2056. ('dic', 'text/x-c', '', 'file-text-o'),
  2057. ('f', 'text/x-fortran', '', 'file-code-o'),
  2058. ('for', 'text/x-fortran', '', 'file-code-o'),
  2059. ('f77', 'text/x-fortran', '', 'file-text-o'),
  2060. ('f90', 'text/x-fortran', '', 'file-text-o'),
  2061. ('java', 'text/x-java-source', '', 'file-code-o'),
  2062. ('opml', 'text/x-opml', '', 'file-text-o'),
  2063. ('p', 'text/x-pascal', '', 'file-text-o'),
  2064. ('pas', 'text/x-pascal', '', 'file-code-o'),
  2065. ('php', 'application/x-httpd-php', '', 'file-code-o'),
  2066. ('coffee', 'text/x-coffeescript', '', 'file-code-o'),
  2067. ('lsp', 'text/x-common-lisp', '', 'file-code-o'),
  2068. ('lisp', 'text/x-common-lisp', '', 'file-code-o'),
  2069. ('diff', 'text/x-diff', '', 'file-code-o'),
  2070. ('go', 'text/x-go', '', 'file-code-o'),
  2071. ('lua', 'text/x-lua', '', 'file-code-o'),
  2072. ('pl', 'text/x-perl', '', 'file-code-o'),
  2073. ('prl', 'text/x-perl', '', 'file-code-o'),
  2074. ('perl', 'text/x-perl', '', 'file-code-o'),
  2075. ('py', 'text/x-python', '', 'file-code-o'),
  2076. ('nginx', 'text/nginx', '', 'file-code-o'),
  2077. ('ini', 'text/x-ini', '', 'file-text-o'),
  2078. ('rb', 'text/x-ruby', '', 'file-code-o'),
  2079. ('sass', 'text/x-sass', '', 'file-code-o'),
  2080. ('bash', 'text/x-sh', '', 'file-code-o'),
  2081. ('swift', 'text/x-swift', '', 'file-code-o'),
  2082. ('vb', 'text/x-vb', '', 'file-code-o'),
  2083. ('vbs', 'text/vbscript', '', 'file-code-o'),
  2084. ('vue', 'text/x-vue', '', 'file-code-o'),
  2085. ('yaml', 'text/x-yaml', '', 'file-text-o'),
  2086. ('md', 'text/x-markdown', '', 'file-text-o'),
  2087. ('xq', 'application/xquery', '', 'file-code-o'),
  2088. ('xquery', 'application/xquery', '', 'file-code-o'),
  2089. ('ps1', 'application/x-powershell', '', 'file-code-o'),
  2090. ('aps', 'application/x-aspx', '', ''),
  2091. ('jsp', 'application/x-jsp', '', 'file-code-o'),
  2092. ('nfo', 'text/x-nfo', '', 'file-text-o'),
  2093. ('etx', 'text/x-setext', '', 'file-text-o'),
  2094. ('sfv', 'text/x-sfv', '', 'file-text-o'),
  2095. ('uu', 'text/x-uuencode', '', 'file-text-o'),
  2096. ('vcs', 'text/x-vcalendar', '', 'file-text-o'),
  2097. ('vcf', 'text/x-vcard', '', 'file-text-o'),
  2098. ('3gp', 'video/3gpp', 'mime-type-video.png', 'file-video-o'),
  2099. ('3g2', 'video/3gpp2', 'mime-type-video.png', 'file-video-o'),
  2100. ('h261', 'video/h261', 'mime-type-video.png', 'file-video-o'),
  2101. ('h263', 'video/h263', 'mime-type-video.png', 'file-video-o'),
  2102. ('h264', 'video/h264', 'mime-type-video.png', 'file-video-o'),
  2103. ('jpgv', 'video/jpeg', 'mime-type-video.png', 'file-video-o'),
  2104. ('jpm', 'video/jpm', 'mime-type-video.png', 'file-video-o'),
  2105. ('jpgm', 'video/jpm', 'mime-type-video.png', 'file-video-o'),
  2106. ('mj2', 'video/mj2', 'mime-type-video.png', 'file-video-o'),
  2107. ('mjp2', 'video/mj2', 'mime-type-video.png', 'file-video-o'),
  2108. ('ts', 'video/mp2t', 'mime-type-video.png', 'file-video-o'),
  2109. ('mp4', 'video/mp4', 'mime-type-video.png', 'file-video-o'),
  2110. ('mp4v', 'video/mp4', 'mime-type-video.png', 'file-video-o'),
  2111. ('mpg4', 'video/mp4', 'mime-type-video.png', 'file-video-o'),
  2112. ('m4v', 'video/mp4', 'mime-type-video.png', 'file-video-o'),
  2113. ('mpeg', 'video/mpeg', 'mime-type-video.png', 'file-video-o'),
  2114. ('mpg', 'video/mpeg', 'mime-type-video.png', 'file-video-o'),
  2115. ('mpe', 'video/mpeg', 'mime-type-video.png', 'file-video-o'),
  2116. ('m1v', 'video/mpeg', 'mime-type-video.png', 'file-video-o'),
  2117. ('m2v', 'video/mpeg', 'mime-type-video.png', 'file-video-o'),
  2118. ('ogv', 'video/ogg', 'mime-type-video.png', 'file-video-o'),
  2119. ('qt', 'video/quicktime', 'mime-type-video.png', 'file-video-o'),
  2120. ('mov', 'video/quicktime', 'mime-type-video.png', 'file-video-o'),
  2121. ('uvh', 'video/vnd.dece.hd', 'mime-type-video.png', 'file-video-o'),
  2122. ('uvvh', 'video/vnd.dece.hd', 'mime-type-video.png', 'file-video-o'),
  2123. ('uvm', 'video/vnd.dece.mobile', 'mime-type-video.png', 'file-video-o'),
  2124. ('uvvm', 'video/vnd.dece.mobile', 'mime-type-video.png', 'file-video-o'),
  2125. ('uvp', 'video/vnd.dece.pd', 'mime-type-video.png', 'file-video-o'),
  2126. ('uvvp', 'video/vnd.dece.pd', 'mime-type-video.png', 'file-video-o');
  2127. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2128. ('uvs', 'video/vnd.dece.sd', 'mime-type-video.png', 'file-video-o'),
  2129. ('uvvs', 'video/vnd.dece.sd', 'mime-type-video.png', 'file-video-o'),
  2130. ('uvv', 'video/vnd.dece.video', 'mime-type-video.png', 'file-video-o'),
  2131. ('uvvv', 'video/vnd.dece.video', 'mime-type-video.png', 'file-video-o'),
  2132. ('dvb', 'video/vnd.dvb.file', 'mime-type-video.png', 'file-video-o'),
  2133. ('fvt', 'video/vnd.fvt', 'mime-type-video.png', 'file-video-o'),
  2134. ('mxu', 'video/vnd.mpegurl', 'mime-type-video.png', 'file-video-o'),
  2135. ('m4u', 'video/vnd.mpegurl', 'mime-type-video.png', 'file-video-o'),
  2136. ('pyv', 'video/vnd.ms-playready.media.pyv', 'mime-type-video.png', 'file-video-o'),
  2137. ('uvu', 'video/vnd.uvvu.mp4', 'mime-type-video.png', 'file-video-o'),
  2138. ('uvvu', 'video/vnd.uvvu.mp4', 'mime-type-video.png', 'file-video-o'),
  2139. ('viv', 'video/vnd.vivo', 'mime-type-video.png', 'file-video-o'),
  2140. ('dv', 'video/x-dv', 'mime-type-video.png', 'file-video-o'),
  2141. ('dif', 'video/x-dv', 'mime-type-video.png', 'file-excel-o'),
  2142. ('webm', 'video/webm', 'mime-type-video.png', 'file-video-o'),
  2143. ('f4v', 'video/x-f4v', 'mime-type-video.png', 'file-video-o'),
  2144. ('fli', 'video/x-fli', 'mime-type-video.png', 'file-video-o'),
  2145. ('flv', 'video/x-flv', 'mime-type-video.png', 'file-video-o'),
  2146. ('mkv', 'video/x-matroska', 'mime-type-video.png', 'file-video-o'),
  2147. ('mk3d', 'video/x-matroska', 'mime-type-video.png', 'file-video-o'),
  2148. ('mks', 'video/x-matroska', 'mime-type-video.png', 'file-video-o'),
  2149. ('mng', 'video/x-mng', 'mime-type-video.png', 'file-video-o'),
  2150. ('asf', 'video/x-ms-asf', 'mime-type-video.png', 'file-video-o'),
  2151. ('asx', 'video/x-ms-asf', 'mime-type-video.png', 'file-video-o'),
  2152. ('vob', 'video/x-ms-vob', 'mime-type-video.png', 'file-video-o'),
  2153. ('wm', 'video/x-ms-wm', 'mime-type-video.png', 'file-video-o'),
  2154. ('wmv', 'video/x-ms-wmv', 'mime-type-video.png', 'file-video-o'),
  2155. ('wmx', 'video/x-ms-wmx', 'mime-type-video.png', 'file-video-o'),
  2156. ('wvx', 'video/x-ms-wvx', 'mime-type-video.png', 'file-video-o'),
  2157. ('avi', 'video/x-msvideo', 'mime-type-video.png', 'file-video-o'),
  2158. ('movie', 'video/x-sgi-movie', 'mime-type-video.png', 'file-video-o'),
  2159. ('smv', 'video/x-smv', 'mime-type-video.png', 'file-video-o'),
  2160. ('ice', 'x-conference/x-cooltalk', '', '');
  2161. -- --------------------------------------------------------
  2162. CREATE TABLE IF NOT EXISTS `sys_objects_uploader` (
  2163. `id` int(11) NOT NULL AUTO_INCREMENT,
  2164. `object` varchar(64) NOT NULL,
  2165. `active` tinyint(4) NOT NULL,
  2166. `override_class_name` varchar(255) NOT NULL,
  2167. `override_class_file` varchar(255) NOT NULL,
  2168. PRIMARY KEY (`id`),
  2169. UNIQUE KEY `object` (`object`)
  2170. ) ENGINE=MyISAM;
  2171. INSERT INTO `sys_objects_uploader` (`object`, `active`, `override_class_name`, `override_class_file`) VALUES
  2172. ('sys_simple', 1, 'BxTemplUploaderSimple', ''),
  2173. ('sys_html5', 1, 'BxTemplUploaderHTML5', ''),
  2174. ('sys_crop', 1, 'BxTemplUploaderCrop', ''),
  2175. ('sys_cmts_simple', 1, 'BxTemplCmtsUploaderSimple', ''),
  2176. ('sys_settings_html5', 1, 'BxTemplStudioSettingsUploaderHTML5', ''),
  2177. ('sys_builder_page_simple', 1, 'BxTemplStudioBuilderPageUploaderSimple', ''),
  2178. ('sys_builder_page_html5', 1, 'BxTemplStudioBuilderPageUploaderHTML5', ''),
  2179. ('sys_std_crop_cover', 1, 'BxTemplStudioUploaderCropCover', '');
  2180. -- --------------------------------------------------------
  2181. CREATE TABLE IF NOT EXISTS `sys_objects_form` (
  2182. `id` int(11) NOT NULL AUTO_INCREMENT,
  2183. `object` varchar(64) NOT NULL,
  2184. `module` varchar(32) NOT NULL,
  2185. `title` varchar(255) NOT NULL,
  2186. `action` varchar(255) NOT NULL,
  2187. `form_attrs` text NOT NULL,
  2188. `submit_name` varchar(255) NOT NULL,
  2189. `table` varchar(255) NOT NULL,
  2190. `key` varchar(255) NOT NULL,
  2191. `uri` varchar(255) NOT NULL,
  2192. `uri_title` varchar(255) NOT NULL,
  2193. `params` text NOT NULL,
  2194. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2195. `active` tinyint(4) NOT NULL DEFAULT '0',
  2196. `override_class_name` varchar(255) NOT NULL,
  2197. `override_class_file` varchar(255) NOT NULL,
  2198. PRIMARY KEY (`id`),
  2199. UNIQUE KEY `object` (`object`)
  2200. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2201. 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
  2202. ('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', ''),
  2203. ('sys_account', 'system', '_sys_form_account', '', '', 'do_submit', 'sys_accounts', 'id', '', '', 'a:1:{s:14:"checker_helper";s:26:"BxFormAccountCheckerHelper";}', 0, 1, 'BxTemplFormAccount', ''),
  2204. ('sys_forgot_password', 'system', '_sys_form_forgot_password', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:33:"BxFormForgotPasswordCheckerHelper";}', 0, 1, 'BxTemplFormForgotPassword', ''),
  2205. ('sys_confirm_email', 'system', '_sys_form_confirm_email', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:31:"BxFormConfirmEmailCheckerHelper";}', 0, 1, 'BxTemplFormConfirmEmail', ''),
  2206. ('sys_unsubscribe', 'system', '_sys_form_unsubscribe', '', '', 'do_submit', 'sys_accounts', 'id', '', '', '', 0, 1, 'BxTemplFormAccount', ''),
  2207. ('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', ''),
  2208. ('sys_report', 'system', '_sys_form_report', 'report.php', 'a:3:{s:2:"id";s:0:"";s:4:"name";s:0:"";s:5:"class";s:17:"bx-report-do-form";}', 'submit', '', 'id', '', '', '', 0, 1, '', '');
  2209. CREATE TABLE IF NOT EXISTS `sys_form_displays` (
  2210. `id` int(11) NOT NULL AUTO_INCREMENT,
  2211. `display_name` varchar(64) NOT NULL,
  2212. `module` varchar(32) NOT NULL,
  2213. `object` varchar(64) NOT NULL,
  2214. `title` varchar(255) NOT NULL,
  2215. `view_mode` tinyint(4) NOT NULL DEFAULT '0',
  2216. PRIMARY KEY (`id`),
  2217. UNIQUE KEY `object_display_name` (`object`,`display_name`)
  2218. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2219. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  2220. ('sys_login', 'system', 'sys_login', '_sys_form_display_login', 0),
  2221. ('sys_account_create', 'system', 'sys_account', '_sys_form_display_account_create', 0),
  2222. ('sys_account_settings_email', 'system', 'sys_account', '_sys_form_display_account_settings_email', 0),
  2223. ('sys_account_settings_pwd', 'system', 'sys_account', '_sys_form_display_account_settings_password', 0),
  2224. ('sys_account_settings_info', 'system', 'sys_account', '_sys_form_display_account_settings_info', 0),
  2225. ('sys_account_settings_del_account', 'system', 'sys_account', '_sys_form_display_account_settings_delete', 0),
  2226. ('sys_forgot_password', 'system', 'sys_forgot_password', '_sys_form_display_forgot_password', 0),
  2227. ('sys_confirm_email', 'system', 'sys_confirm_email', '_sys_form_display_confirm_email', 0),
  2228. ('sys_unsubscribe_updates', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_updates', 0),
  2229. ('sys_unsubscribe_news', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_news', 0),
  2230. ('sys_comment_post', 'system', 'sys_comment', '_sys_form_display_comment_post', 0),
  2231. ('sys_comment_edit', 'system', 'sys_comment', '_sys_form_display_comment_edit', 0),
  2232. ('sys_report_post', 'system', 'sys_report', '_sys_form_display_report_post', 0);
  2233. CREATE TABLE IF NOT EXISTS `sys_form_inputs` (
  2234. `id` int(11) NOT NULL AUTO_INCREMENT,
  2235. `object` varchar(64) NOT NULL,
  2236. `module` varchar(32) NOT NULL,
  2237. `name` varchar(255) NOT NULL,
  2238. `value` varchar(255) NOT NULL,
  2239. `values` text NOT NULL,
  2240. `checked` tinyint(4) NOT NULL DEFAULT '0',
  2241. `type` varchar(32) NOT NULL,
  2242. `caption_system` varchar(255) NOT NULL,
  2243. `caption` varchar(255) NOT NULL,
  2244. `info` varchar(255) NOT NULL,
  2245. `required` tinyint(4) NOT NULL DEFAULT '0',
  2246. `collapsed` tinyint(4) NOT NULL DEFAULT '0',
  2247. `html` tinyint(4) NOT NULL DEFAULT '0',
  2248. `attrs` text NOT NULL,
  2249. `attrs_tr` text NOT NULL,
  2250. `attrs_wrapper` text NOT NULL,
  2251. `checker_func` varchar(32) NOT NULL,
  2252. `checker_params` text NOT NULL,
  2253. `checker_error` varchar(255) NOT NULL,
  2254. `db_pass` varchar(32) NOT NULL,
  2255. `db_params` text NOT NULL,
  2256. `editable` tinyint(4) NOT NULL DEFAULT '1',
  2257. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2258. PRIMARY KEY (`id`),
  2259. UNIQUE KEY `display_name` (`object`,`name`)
  2260. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2261. 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
  2262. ('sys_login', 'system', 'role', '1', '', 0, 'hidden', '_sys_form_login_input_caption_system_role', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2263. ('sys_login', 'system', 'relocate', '', '', 0, 'hidden', '_sys_form_login_input_caption_system_relocate', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2264. ('sys_login', 'system', 'ID', '', '', 0, 'text', '_sys_form_login_input_caption_system_id', '_sys_form_login_input_email', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2265. ('sys_login', 'system', 'Password', '', '', 0, 'password', '_sys_form_login_input_caption_system_password', '_sys_form_login_input_password', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2266. ('sys_login', 'system', 'rememberMe', '1', '', 0, 'switcher', '_sys_form_login_input_caption_system_remember_me', '_sys_form_login_input_remember_me', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2267. ('sys_login', 'system', 'login', '_sys_form_login_input_submit', '', 0, 'submit', '_sys_form_login_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2268. ('sys_login', 'system', 'submit_text', '', '', 0, 'custom', '_sys_form_login_input_caption_system_submit_text', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2269. ('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),
  2270. ('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),
  2271. ('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),
  2272. ('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),
  2273. ('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),
  2274. ('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', '', '', 1, 0),
  2275. ('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),
  2276. ('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),
  2277. ('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),
  2278. ('sys_account', 'system', 'receive_news', '1', '', 1, 'switcher', '_sys_form_login_input_caption_system_receive_news', '_sys_form_account_input_receive_news', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2279. ('sys_account', 'system', 'agreement', '', '', 0, 'custom', '_sys_form_login_input_caption_system_agreement', '_sys_form_account_input_agreement', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2280. ('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),
  2281. ('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),
  2282. ('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),
  2283. ('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),
  2284. ('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),
  2285. ('sys_unsubscribe', 'system', 'id', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2286. ('sys_unsubscribe', 'system', 'code', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_code', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2287. ('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),
  2288. ('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),
  2289. ('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),
  2290. ('sys_comment', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2291. ('sys_comment', 'system', 'id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2292. ('sys_comment', 'system', 'action', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2293. ('sys_comment', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2294. ('sys_comment', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2295. ('sys_comment', 'system', 'cmt_text', '', '', 0, 'textarea', '_sys_form_comment_input_caption_system_cmt_text', '', '', 0, 0, 0, 'a:1:{s:12:"autocomplete";s:3:"off";}', '', '', 'Length', 'a:2:{s:3:"min";i:1;s:3:"max";i:5000;}', '_Please enter n1-n2 characters', 'Xss', '', 1, 0),
  2296. ('sys_comment', 'system', 'cmt_image', 'a:1:{i:0;s:15:"sys_cmts_simple";}', 'a:1:{s:15:"sys_cmts_simple";s:26:"_sys_uploader_simple_title";}', 0, 'files', '_sys_form_comment_input_caption_system_cmt_image', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2297. ('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),
  2298. ('sys_report', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2299. ('sys_report', 'system', 'object_id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_object_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2300. ('sys_report', 'system', 'action', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2301. ('sys_report', 'system', 'id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2302. ('sys_report', 'system', 'type', '', '#!sys_report_types', 0, 'select', '_sys_form_report_input_caption_system_type', '_sys_form_report_input_caption_type', '', 1, 0, 0, '', '', '', 'Avail', '', '_Please select value', 'Xss', '', 1, 0),
  2303. ('sys_report', 'system', 'text', '', '', 0, 'textarea', '_sys_form_report_input_caption_system_text', '_sys_form_report_input_caption_text', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
  2304. ('sys_report', 'system', 'submit', '_sys_form_report_input_caption_submit', '', 0, 'submit', '_sys_form_report_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0);
  2305. CREATE TABLE IF NOT EXISTS `sys_form_display_inputs` (
  2306. `id` int(11) NOT NULL AUTO_INCREMENT,
  2307. `display_name` varchar(64) NOT NULL,
  2308. `input_name` varchar(32) NOT NULL,
  2309. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  2310. `active` tinyint(4) NOT NULL DEFAULT '0',
  2311. `order` int(11) NOT NULL,
  2312. PRIMARY KEY (`id`),
  2313. UNIQUE KEY `display_input` (`display_name`,`input_name`)
  2314. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2315. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  2316. ('sys_login', 'role', 2147483647, 1, 1),
  2317. ('sys_login', 'relocate', 2147483647, 1, 2),
  2318. ('sys_login', 'ID', 2147483647, 1, 3),
  2319. ('sys_login', 'Password', 2147483647, 1, 4),
  2320. ('sys_login', 'rememberMe', 2147483647, 1, 5),
  2321. ('sys_login', 'login', 2147483647, 1, 6),
  2322. ('sys_login', 'submit_text', 2147483647, 1, 7),
  2323. ('sys_account_create', 'name', 2147483647, 1, 1),
  2324. ('sys_account_create', 'email', 2147483647, 1, 2),
  2325. ('sys_account_create', 'password', 2147483647, 1, 3),
  2326. ('sys_account_create', 'do_submit', 2147483647, 1, 4),
  2327. ('sys_account_create', 'agreement', 2147483647, 1, 5),
  2328. ('sys_account_settings_email', 'email', 2147483647, 1, 1),
  2329. ('sys_account_settings_email', 'password_current', 2147483647, 1, 2),
  2330. ('sys_account_settings_email', 'receive_updates', 2147483647, 1, 3),
  2331. ('sys_account_settings_email', 'receive_news', 2147483647, 1, 4),
  2332. ('sys_account_settings_email', 'do_submit', 2147483647, 1, 5),
  2333. ('sys_account_settings_pwd', 'password_current', 2147483647, 1, 1),
  2334. ('sys_account_settings_pwd', 'password', 2147483647, 1, 2),
  2335. ('sys_account_settings_pwd', 'password_confirm', 2147483647, 1, 3),
  2336. ('sys_account_settings_pwd', 'do_submit', 2147483647, 1, 4),
  2337. ('sys_account_settings_del_account', 'delete_confirm', 2147483647, 1, 1),
  2338. ('sys_account_settings_del_account', 'password_current', 2147483647, 1, 2),
  2339. ('sys_account_settings_del_account', 'do_submit', 2147483647, 1, 3),
  2340. ('sys_account_settings_info', 'name', 2147483647, 1, 1),
  2341. ('sys_account_settings_info', 'do_submit', 2147483647, 1, 2),
  2342. ('sys_forgot_password', 'email', 2147483647, 1, 1),
  2343. ('sys_forgot_password', 'captcha', 2147483647, 1, 2),
  2344. ('sys_forgot_password', 'do_submit', 2147483647, 1, 3),
  2345. ('sys_confirm_email', 'code', 2147483647, 1, 1),
  2346. ('sys_confirm_email', 'do_submit', 2147483647, 1, 2),
  2347. ('sys_unsubscribe_updates', 'id', 2147483647, 1, 1),
  2348. ('sys_unsubscribe_updates', 'code', 2147483647, 1, 2),
  2349. ('sys_unsubscribe_updates', 'receive_updates', 2147483647, 1, 3),
  2350. ('sys_unsubscribe_updates', 'do_submit', 2147483647, 1, 4),
  2351. ('sys_unsubscribe_news', 'id', 2147483647, 1, 1),
  2352. ('sys_unsubscribe_news', 'code', 2147483647, 1, 2),
  2353. ('sys_unsubscribe_news', 'receive_news', 2147483647, 1, 3),
  2354. ('sys_unsubscribe_news', 'do_submit', 2147483647, 1, 4),
  2355. ('sys_comment_post', 'sys', 2147483647, 1, 1),
  2356. ('sys_comment_post', 'id', 2147483647, 1, 2),
  2357. ('sys_comment_post', 'action', 2147483647, 1, 3),
  2358. ('sys_comment_post', 'cmt_id', 2147483647, 0, 4),
  2359. ('sys_comment_post', 'cmt_parent_id', 2147483647, 1, 5),
  2360. ('sys_comment_post', 'cmt_text', 2147483647, 1, 6),
  2361. ('sys_comment_post', 'cmt_image', 2147483647, 1, 7),
  2362. ('sys_comment_post', 'cmt_submit', 2147483647, 1, 8),
  2363. ('sys_comment_edit', 'sys', 2147483647, 1, 1),
  2364. ('sys_comment_edit', 'id', 2147483647, 1, 2),
  2365. ('sys_comment_edit', 'action', 2147483647, 1, 3),
  2366. ('sys_comment_edit', 'cmt_id', 2147483647, 1, 4),
  2367. ('sys_comment_edit', 'cmt_parent_id', 2147483647, 1, 5),
  2368. ('sys_comment_edit', 'cmt_text', 2147483647, 1, 6),
  2369. ('sys_comment_edit', 'cmt_image', 2147483647, 0, 7),
  2370. ('sys_comment_edit', 'cmt_submit', 2147483647, 1, 8),
  2371. ('sys_report_post', 'sys', 2147483647, 1, 1),
  2372. ('sys_report_post', 'object_id', 2147483647, 1, 2),
  2373. ('sys_report_post', 'action', 2147483647, 1, 3),
  2374. ('sys_report_post', 'id', 2147483647, 0, 4),
  2375. ('sys_report_post', 'type', 2147483647, 1, 5),
  2376. ('sys_report_post', 'text', 2147483647, 1, 6),
  2377. ('sys_report_post', 'submit', 2147483647, 1, 7);
  2378. CREATE TABLE `sys_form_pre_lists` (
  2379. `id` int(11) NOT NULL AUTO_INCREMENT,
  2380. `module` varchar(32) NOT NULL default '',
  2381. `key` varchar(255) NOT NULL default '',
  2382. `title` varchar(255) NOT NULL default '',
  2383. `use_for_sets` tinyint(4) unsigned NOT NULL default '1',
  2384. PRIMARY KEY (`id`),
  2385. UNIQUE KEY `key` (`key`),
  2386. FULLTEXT KEY `ModuleAndKey` (`module`, `key`)
  2387. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2388. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  2389. ('Country', '_adm_form_txt_pre_lists_country', 'system', '0'),
  2390. ('Sex', '_adm_form_txt_pre_lists_sex', 'system', '1'),
  2391. ('Language', '_adm_form_txt_pre_lists_language', 'system', '0'),
  2392. ('sys_report_types', '_sys_pre_lists_report_types', 'system', '0');
  2393. CREATE TABLE `sys_form_pre_values` (
  2394. `id` int(11) NOT NULL AUTO_INCREMENT,
  2395. `Key` varchar(255) NOT NULL default '',
  2396. `Value` varchar(255) NOT NULL default '',
  2397. `Order` int(10) unsigned NOT NULL default '0',
  2398. `LKey` varchar(255) NOT NULL default '',
  2399. `LKey2` varchar(255) NOT NULL default '',
  2400. PRIMARY KEY (`id`),
  2401. FULLTEXT KEY `KeyAndValue` (`Key`, `Value`)
  2402. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2403. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2404. ('Country', 'AF', 1, '__Afghanistan', ''),
  2405. ('Country', 'AX', 2, '__Aland_Islands', ''),
  2406. ('Country', 'AL', 3, '__Albania', ''),
  2407. ('Country', 'DZ', 4, '__Algeria', ''),
  2408. ('Country', 'AS', 5, '__American Samoa', ''),
  2409. ('Country', 'AD', 6, '__Andorra', ''),
  2410. ('Country', 'AO', 7, '__Angola', ''),
  2411. ('Country', 'AI', 8, '__Anguilla', ''),
  2412. ('Country', 'AQ', 9, '__Antarctica', ''),
  2413. ('Country', 'AG', 10, '__Antigua and Barbuda', ''),
  2414. ('Country', 'AR', 11, '__Argentina', ''),
  2415. ('Country', 'AM', 12, '__Armenia', ''),
  2416. ('Country', 'AW', 13, '__Aruba', ''),
  2417. ('Country', 'AU', 14, '__Australia', ''),
  2418. ('Country', 'AT', 15, '__Austria', ''),
  2419. ('Country', 'AZ', 16, '__Azerbaijan', ''),
  2420. ('Country', 'BH', 17, '__Bahrain', ''),
  2421. ('Country', 'BD', 18, '__Bangladesh', ''),
  2422. ('Country', 'BB', 19, '__Barbados', ''),
  2423. ('Country', 'BY', 20, '__Belarus', ''),
  2424. ('Country', 'BE', 21, '__Belgium', ''),
  2425. ('Country', 'BZ', 22, '__Belize', ''),
  2426. ('Country', 'BJ', 23, '__Benin', ''),
  2427. ('Country', 'BM', 24, '__Bermuda', ''),
  2428. ('Country', 'BT', 25, '__Bhutan', ''),
  2429. ('Country', 'BO', 26, '__Bolivia', ''),
  2430. ('Country', 'BA', 27, '__Bosnia and Herzegovina', ''),
  2431. ('Country', 'BW', 28, '__Botswana', ''),
  2432. ('Country', 'BV', 29, '__Bouvet Island', ''),
  2433. ('Country', 'BR', 30, '__Brazil', ''),
  2434. ('Country', 'IO', 31, '__British Indian Ocean Territory', ''),
  2435. ('Country', 'VG', 32, '__British Virgin Islands', ''),
  2436. ('Country', 'BN', 33, '__Brunei Darussalam', ''),
  2437. ('Country', 'BG', 34, '__Bulgaria', ''),
  2438. ('Country', 'BF', 35, '__Burkina Faso', ''),
  2439. ('Country', 'MM', 36, '__Burma', ''),
  2440. ('Country', 'BI', 37, '__Burundi', ''),
  2441. ('Country', 'KH', 38, '__Cambodia', ''),
  2442. ('Country', 'CM', 39, '__Cameroon', ''),
  2443. ('Country', 'CA', 40, '__Canada', ''),
  2444. ('Country', 'CV', 41, '__Cape Verde', ''),
  2445. ('Country', 'KY', 42, '__Cayman Islands', ''),
  2446. ('Country', 'CF', 43, '__Central African Republic', ''),
  2447. ('Country', 'TD', 44, '__Chad', ''),
  2448. ('Country', 'CL', 45, '__Chile', ''),
  2449. ('Country', 'CN', 46, '__China', ''),
  2450. ('Country', 'CX', 47, '__Christmas Island', ''),
  2451. ('Country', 'CC', 48, '__Cocos (Keeling) Islands', ''),
  2452. ('Country', 'CO', 49, '__Colombia', ''),
  2453. ('Country', 'KM', 50, '__Comoros', ''),
  2454. ('Country', 'CD', 51, '__Congo, Democratic Republic of the', ''),
  2455. ('Country', 'CG', 52, '__Congo, Republic of the', ''),
  2456. ('Country', 'CK', 53, '__Cook Islands', ''),
  2457. ('Country', 'CR', 54, '__Costa Rica', ''),
  2458. ('Country', 'CI', 55, '__Cote d''Ivoire', ''),
  2459. ('Country', 'HR', 56, '__Croatia', ''),
  2460. ('Country', 'CU', 57, '__Cuba', ''),
  2461. ('Country', 'CY', 58, '__Cyprus', ''),
  2462. ('Country', 'CZ', 59, '__Czech Republic', ''),
  2463. ('Country', 'DK', 60, '__Denmark', ''),
  2464. ('Country', 'DJ', 61, '__Djibouti', ''),
  2465. ('Country', 'DM', 62, '__Dominica', ''),
  2466. ('Country', 'DO', 63, '__Dominican Republic', ''),
  2467. ('Country', 'TL', 64, '__East Timor', ''),
  2468. ('Country', 'EC', 65, '__Ecuador', ''),
  2469. ('Country', 'EG', 66, '__Egypt', ''),
  2470. ('Country', 'SV', 67, '__El Salvador', ''),
  2471. ('Country', 'GQ', 68, '__Equatorial Guinea', ''),
  2472. ('Country', 'ER', 69, '__Eritrea', ''),
  2473. ('Country', 'EE', 70, '__Estonia', ''),
  2474. ('Country', 'ET', 71, '__Ethiopia', ''),
  2475. ('Country', 'FK', 72, '__Falkland Islands (Islas Malvinas)', ''),
  2476. ('Country', 'FO', 73, '__Faroe Islands', ''),
  2477. ('Country', 'FJ', 74, '__Fiji', ''),
  2478. ('Country', 'FI', 75, '__Finland', ''),
  2479. ('Country', 'FR', 76, '__France', ''),
  2480. ('Country', 'GF', 77, '__French Guiana', ''),
  2481. ('Country', 'PF', 78, '__French Polynesia', ''),
  2482. ('Country', 'TF', 79, '__French Southern and Antarctic Lands', ''),
  2483. ('Country', 'GA', 80, '__Gabon', ''),
  2484. ('Country', 'GE', 81, '__Georgia', ''),
  2485. ('Country', 'DE', 82, '__Germany', ''),
  2486. ('Country', 'GH', 83, '__Ghana', ''),
  2487. ('Country', 'GI', 84, '__Gibraltar', ''),
  2488. ('Country', 'GR', 85, '__Greece', ''),
  2489. ('Country', 'GL', 86, '__Greenland', ''),
  2490. ('Country', 'GD', 87, '__Grenada', ''),
  2491. ('Country', 'GP', 88, '__Guadeloupe', ''),
  2492. ('Country', 'GU', 89, '__Guam', ''),
  2493. ('Country', 'GT', 90, '__Guatemala', ''),
  2494. ('Country', 'GG', 91, '__Guernsey', ''),
  2495. ('Country', 'GN', 92, '__Guinea', ''),
  2496. ('Country', 'GW', 93, '__Guinea-Bissau', ''),
  2497. ('Country', 'GY', 94, '__Guyana', ''),
  2498. ('Country', 'HT', 95, '__Haiti', ''),
  2499. ('Country', 'HM', 96, '__Heard Island and McDonald Islands', ''),
  2500. ('Country', 'VA', 97, '__Holy See (Vatican City)', ''),
  2501. ('Country', 'HN', 98, '__Honduras', ''),
  2502. ('Country', 'HK', 99, '__Hong Kong (SAR)', ''),
  2503. ('Country', 'HU', 100, '__Hungary', ''),
  2504. ('Country', 'IS', 101, '__Iceland', ''),
  2505. ('Country', 'IN', 102, '__India', ''),
  2506. ('Country', 'ID', 103, '__Indonesia', ''),
  2507. ('Country', 'IR', 104, '__Iran', ''),
  2508. ('Country', 'IQ', 105, '__Iraq', ''),
  2509. ('Country', 'IE', 106, '__Ireland', ''),
  2510. ('Country', 'IM', 107, '__Isle_of_Man', ''),
  2511. ('Country', 'IL', 108, '__Israel', ''),
  2512. ('Country', 'IT', 109, '__Italy', ''),
  2513. ('Country', 'JM', 110, '__Jamaica', ''),
  2514. ('Country', 'JP', 111, '__Japan', ''),
  2515. ('Country', 'JE', 112, '__Jersey', ''),
  2516. ('Country', 'JO', 113, '__Jordan', ''),
  2517. ('Country', 'KZ', 114, '__Kazakhstan', ''),
  2518. ('Country', 'KE', 115, '__Kenya', ''),
  2519. ('Country', 'KI', 116, '__Kiribati', ''),
  2520. ('Country', 'KP', 117, '__Korea, North', ''),
  2521. ('Country', 'KR', 118, '__Korea, South', ''),
  2522. ('Country', 'KW', 119, '__Kuwait', ''),
  2523. ('Country', 'KG', 120, '__Kyrgyzstan', ''),
  2524. ('Country', 'LA', 121, '__Laos', ''),
  2525. ('Country', 'LV', 122, '__Latvia', ''),
  2526. ('Country', 'LB', 123, '__Lebanon', ''),
  2527. ('Country', 'LS', 124, '__Lesotho', ''),
  2528. ('Country', 'LR', 125, '__Liberia', ''),
  2529. ('Country', 'LY', 126, '__Libya', ''),
  2530. ('Country', 'LI', 127, '__Liechtenstein', ''),
  2531. ('Country', 'LT', 128, '__Lithuania', ''),
  2532. ('Country', 'LU', 129, '__Luxembourg', ''),
  2533. ('Country', 'MO', 130, '__Macao', ''),
  2534. ('Country', 'MK', 131, '__Macedonia, The Former Yugoslav Republic of', ''),
  2535. ('Country', 'MG', 132, '__Madagascar', ''),
  2536. ('Country', 'MW', 133, '__Malawi', ''),
  2537. ('Country', 'MY', 134, '__Malaysia', ''),
  2538. ('Country', 'MV', 135, '__Maldives', ''),
  2539. ('Country', 'ML', 136, '__Mali', ''),
  2540. ('Country', 'MT', 137, '__Malta', ''),
  2541. ('Country', 'MH', 138, '__Marshall Islands', ''),
  2542. ('Country', 'MQ', 139, '__Martinique', ''),
  2543. ('Country', 'MR', 140, '__Mauritania', ''),
  2544. ('Country', 'MU', 141, '__Mauritius', ''),
  2545. ('Country', 'YT', 142, '__Mayotte', ''),
  2546. ('Country', 'MX', 143, '__Mexico', ''),
  2547. ('Country', 'FM', 144, '__Micronesia, Federated States of', ''),
  2548. ('Country', 'MD', 145, '__Moldova', ''),
  2549. ('Country', 'MC', 146, '__Monaco', ''),
  2550. ('Country', 'MN', 147, '__Mongolia', ''),
  2551. ('Country', 'ME', 148, '__Montenegro', ''),
  2552. ('Country', 'MS', 149, '__Montserrat', ''),
  2553. ('Country', 'MA', 150, '__Morocco', ''),
  2554. ('Country', 'MZ', 151, '__Mozambique', ''),
  2555. ('Country', 'NA', 152, '__Namibia', ''),
  2556. ('Country', 'NR', 153, '__Nauru', ''),
  2557. ('Country', 'NP', 154, '__Nepal', ''),
  2558. ('Country', 'NL', 155, '__Netherlands', ''),
  2559. ('Country', 'AN', 156, '__Netherlands Antilles', ''),
  2560. ('Country', 'NC', 157, '__New Caledonia', ''),
  2561. ('Country', 'NZ', 158, '__New Zealand', ''),
  2562. ('Country', 'NI', 159, '__Nicaragua', ''),
  2563. ('Country', 'NE', 160, '__Niger', ''),
  2564. ('Country', 'NG', 161, '__Nigeria', ''),
  2565. ('Country', 'NU', 162, '__Niue', ''),
  2566. ('Country', 'NF', 163, '__Norfolk Island', ''),
  2567. ('Country', 'MP', 164, '__Northern Mariana Islands', ''),
  2568. ('Country', 'NO', 165, '__Norway', ''),
  2569. ('Country', 'OM', 166, '__Oman', ''),
  2570. ('Country', 'PK', 167, '__Pakistan', ''),
  2571. ('Country', 'PW', 168, '__Palau', ''),
  2572. ('Country', 'PS', 169, '__Palestinian Territory, Occupied', ''),
  2573. ('Country', 'PA', 170, '__Panama', ''),
  2574. ('Country', 'PG', 171, '__Papua New Guinea', ''),
  2575. ('Country', 'PY', 172, '__Paraguay', ''),
  2576. ('Country', 'PE', 173, '__Peru', ''),
  2577. ('Country', 'PH', 174, '__Philippines', ''),
  2578. ('Country', 'PN', 175, '__Pitcairn Islands', ''),
  2579. ('Country', 'PL', 176, '__Poland', ''),
  2580. ('Country', 'PT', 177, '__Portugal', ''),
  2581. ('Country', 'PR', 178, '__Puerto Rico', ''),
  2582. ('Country', 'QA', 179, '__Qatar', ''),
  2583. ('Country', 'RE', 180, '__Reunion', ''),
  2584. ('Country', 'RO', 181, '__Romania', ''),
  2585. ('Country', 'RU', 182, '__Russia', ''),
  2586. ('Country', 'RW', 183, '__Rwanda', ''),
  2587. ('Country', 'SH', 184, '__Saint Helena', ''),
  2588. ('Country', 'KN', 185, '__Saint Kitts and Nevis', ''),
  2589. ('Country', 'LC', 186, '__Saint Lucia', ''),
  2590. ('Country', 'PM', 187, '__Saint Pierre and Miquelon', ''),
  2591. ('Country', 'VC', 188, '__Saint Vincent and the Grenadines', ''),
  2592. ('Country', 'BL', 189, '__Saint_Barthelemy', ''),
  2593. ('Country', 'MF', 190, '__Saint_Martin_French_part', ''),
  2594. ('Country', 'WS', 191, '__Samoa', ''),
  2595. ('Country', 'SM', 192, '__San Marino', ''),
  2596. ('Country', 'ST', 193, '__Sao Tome and Principe', ''),
  2597. ('Country', 'SA', 194, '__Saudi Arabia', ''),
  2598. ('Country', 'SN', 195, '__Senegal', ''),
  2599. ('Country', 'RS', 196, '__Serbia', ''),
  2600. ('Country', 'SC', 197, '__Seychelles', ''),
  2601. ('Country', 'SL', 198, '__Sierra Leone', ''),
  2602. ('Country', 'SG', 199, '__Singapore', ''),
  2603. ('Country', 'SK', 200, '__Slovakia', ''),
  2604. ('Country', 'SI', 201, '__Slovenia', ''),
  2605. ('Country', 'SB', 202, '__Solomon Islands', ''),
  2606. ('Country', 'SO', 203, '__Somalia', ''),
  2607. ('Country', 'ZA', 204, '__South Africa', ''),
  2608. ('Country', 'GS', 205, '__South Georgia and the South Sandwich Islands', ''),
  2609. ('Country', 'ES', 206, '__Spain', ''),
  2610. ('Country', 'LK', 207, '__Sri Lanka', ''),
  2611. ('Country', 'SD', 208, '__Sudan', ''),
  2612. ('Country', 'SR', 209, '__Suriname', ''),
  2613. ('Country', 'SJ', 210, '__Svalbard', ''),
  2614. ('Country', 'SZ', 211, '__Swaziland', ''),
  2615. ('Country', 'SE', 212, '__Sweden', ''),
  2616. ('Country', 'CH', 213, '__Switzerland', ''),
  2617. ('Country', 'SY', 214, '__Syria', ''),
  2618. ('Country', 'TW', 215, '__Taiwan', ''),
  2619. ('Country', 'TJ', 216, '__Tajikistan', ''),
  2620. ('Country', 'TZ', 217, '__Tanzania', ''),
  2621. ('Country', 'TH', 218, '__Thailand', ''),
  2622. ('Country', 'BS', 219, '__The Bahamas', ''),
  2623. ('Country', 'GM', 220, '__The Gambia', ''),
  2624. ('Country', 'TG', 221, '__Togo', ''),
  2625. ('Country', 'TK', 222, '__Tokelau', ''),
  2626. ('Country', 'TO', 223, '__Tonga', ''),
  2627. ('Country', 'TT', 224, '__Trinidad and Tobago', ''),
  2628. ('Country', 'TN', 225, '__Tunisia', ''),
  2629. ('Country', 'TR', 226, '__Turkey', ''),
  2630. ('Country', 'TM', 227, '__Turkmenistan', ''),
  2631. ('Country', 'TC', 228, '__Turks and Caicos Islands', ''),
  2632. ('Country', 'TV', 229, '__Tuvalu', ''),
  2633. ('Country', 'UG', 230, '__Uganda', ''),
  2634. ('Country', 'UA', 231, '__Ukraine', ''),
  2635. ('Country', 'AE', 232, '__United Arab Emirates', ''),
  2636. ('Country', 'GB', 233, '__United Kingdom', ''),
  2637. ('Country', 'US', 234, '__United States', ''),
  2638. ('Country', 'UM', 235, '__United States Minor Outlying Islands', ''),
  2639. ('Country', 'UY', 236, '__Uruguay', ''),
  2640. ('Country', 'UZ', 237, '__Uzbekistan', ''),
  2641. ('Country', 'VU', 238, '__Vanuatu', ''),
  2642. ('Country', 'VE', 239, '__Venezuela', ''),
  2643. ('Country', 'VN', 240, '__Vietnam', ''),
  2644. ('Country', 'VI', 241, '__Virgin Islands', ''),
  2645. ('Country', 'WF', 242, '__Wallis and Futuna', ''),
  2646. ('Country', 'EH', 243, '__Western Sahara', ''),
  2647. ('Country', 'YE', 244, '__Yemen', ''),
  2648. ('Country', 'ZM', 245, '__Zambia', ''),
  2649. ('Country', 'ZW', 246, '__Zimbabwe', '');
  2650. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2651. ('Sex', '1', 0, '_Male', '_LookinMale'),
  2652. ('Sex', '2', 1, '_Female', '_LookinFemale');
  2653. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2654. ('Language', '0', 0, '__English', ''),
  2655. ('Language', '1', 1, '__Afrikaans', ''),
  2656. ('Language', '2', 2, '__Arabic', ''),
  2657. ('Language', '3', 3, '__Bulgarian', ''),
  2658. ('Language', '4', 4, '__Burmese', ''),
  2659. ('Language', '5', 5, '__Cantonese', ''),
  2660. ('Language', '6', 6, '__Croatian', ''),
  2661. ('Language', '7', 7, '__Danish', ''),
  2662. ('Language', '8', 8, '__Dutch', ''),
  2663. ('Language', '9', 9, '__Esperanto', ''),
  2664. ('Language', '10', 10, '__Estonian', ''),
  2665. ('Language', '11', 11, '__Finnish', ''),
  2666. ('Language', '12', 12, '__French', ''),
  2667. ('Language', '13', 13, '__German', ''),
  2668. ('Language', '14', 14, '__Greek', ''),
  2669. ('Language', '15', 15, '__Gujrati', ''),
  2670. ('Language', '16', 16, '__Hebrew', ''),
  2671. ('Language', '17', 17, '__Hindi', ''),
  2672. ('Language', '18', 18, '__Hungarian', ''),
  2673. ('Language', '19', 19, '__Icelandic', ''),
  2674. ('Language', '20', 20, '__Indian', ''),
  2675. ('Language', '21', 21, '__Indonesian', ''),
  2676. ('Language', '22', 22, '__Italian', ''),
  2677. ('Language', '23', 23, '__Japanese', ''),
  2678. ('Language', '24', 24, '__Korean', ''),
  2679. ('Language', '25', 25, '__Latvian', ''),
  2680. ('Language', '26', 26, '__Lithuanian', ''),
  2681. ('Language', '27', 27, '__Malay', ''),
  2682. ('Language', '28', 28, '__Mandarin', ''),
  2683. ('Language', '29', 29, '__Marathi', ''),
  2684. ('Language', '30', 30, '__Moldovian', ''),
  2685. ('Language', '31', 31, '__Nepalese', ''),
  2686. ('Language', '32', 32, '__Norwegian', ''),
  2687. ('Language', '33', 33, '__Persian', ''),
  2688. ('Language', '34', 34, '__Polish', ''),
  2689. ('Language', '35', 35, '__Portuguese', ''),
  2690. ('Language', '36', 36, '__Punjabi', ''),
  2691. ('Language', '37', 37, '__Romanian', ''),
  2692. ('Language', '38', 38, '__Russian', ''),
  2693. ('Language', '39', 39, '__Serbian', ''),
  2694. ('Language', '40', 40, '__Spanish', ''),
  2695. ('Language', '41', 41, '__Swedish', ''),
  2696. ('Language', '42', 42, '__Tagalog', ''),
  2697. ('Language', '43', 43, '__Taiwanese', ''),
  2698. ('Language', '44', 44, '__Tamil', ''),
  2699. ('Language', '45', 45, '__Telugu', ''),
  2700. ('Language', '46', 46, '__Thai', ''),
  2701. ('Language', '47', 47, '__Tongan', ''),
  2702. ('Language', '48', 48, '__Turkish', ''),
  2703. ('Language', '49', 49, '__Ukrainian', ''),
  2704. ('Language', '50', 50, '__Urdu', ''),
  2705. ('Language', '51', 51, '__Vietnamese', ''),
  2706. ('Language', '52', 52, '__Visayan', '');
  2707. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2708. ('sys_report_types', 'spam', 1, '_sys_pre_lists_report_types_spam', ''),
  2709. ('sys_report_types', 'scam', 2, '_sys_pre_lists_report_types_scam', ''),
  2710. ('sys_report_types', 'fraud', 3, '_sys_pre_lists_report_types_fraud', ''),
  2711. ('sys_report_types', 'nude', 4, '_sys_pre_lists_report_types_nude', ''),
  2712. ('sys_report_types', 'other', 5, '_sys_pre_lists_report_types_other', '');
  2713. -- --------------------------------------------------------
  2714. CREATE TABLE IF NOT EXISTS `sys_menu_templates` (
  2715. `id` int(11) NOT NULL AUTO_INCREMENT,
  2716. `template` varchar(255) NOT NULL,
  2717. `title` varchar(255) NOT NULL,
  2718. `visible` tinyint(4) NOT NULL DEFAULT '1',
  2719. PRIMARY KEY (`id`)
  2720. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2721. INSERT INTO `sys_menu_templates` (`id`, `template`, `title`, `visible`) VALUES
  2722. (1, 'menu_empty.html', '_sys_menu_template_title_empty', 1),
  2723. (2, 'menu_footer.html', '_sys_menu_template_title_footer', 0),
  2724. (3, 'menu_horizontal.html', '_sys_menu_template_title_hor', 1),
  2725. (4, 'menu_vertical_lite.html', '_sys_menu_template_title_ver_lite', 1),
  2726. (5, 'menu_toolbar.html', '_sys_menu_template_title_toolbar', 0),
  2727. (6, 'menu_vertical.html', '_sys_menu_template_title_ver', 1),
  2728. (7, 'menu_floating_blocks.html', '_sys_menu_template_title_floating_blocks', 1),
  2729. (8, 'menu_main_submenu.html', '_sys_menu_template_title_main_submenu', 0),
  2730. (9, 'menu_buttons_hor.html', '_sys_menu_template_title_buttons_hor', 1),
  2731. (10, 'menu_inline.html', '_sys_menu_template_title_inline', 1),
  2732. (11, 'menu_interactive_vertical.html', '_sys_menu_template_title_interactive_vertical', 1),
  2733. (12, 'menu_account_popup.html', '_sys_menu_template_title_account_popup', 0),
  2734. (13, 'menu_account_notifications.html', '_sys_menu_template_title_account_notifications', 0),
  2735. (14, 'menu_floating_blocks_big.html', '_sys_menu_template_title_floating_blocks_big', 1),
  2736. (15, 'menu_custom.html', '_sys_menu_template_title_custom', 0),
  2737. (16, 'menu_buttons_ver.html', '_sys_menu_template_title_buttons_ver', 1),
  2738. (17, 'menu_inline_sbtn.html', '_sys_menu_template_title_inline_sbtn', 1),
  2739. (18, 'menu_icon_buttons_hor.html', '_sys_menu_template_title_icon_buttons_hor', 1);
  2740. CREATE TABLE IF NOT EXISTS `sys_objects_menu` (
  2741. `id` int(11) NOT NULL AUTO_INCREMENT,
  2742. `object` varchar(64) NOT NULL,
  2743. `title` varchar(255) NOT NULL,
  2744. `set_name` varchar(64) NOT NULL,
  2745. `module` varchar(32) NOT NULL,
  2746. `template_id` int(11) NOT NULL,
  2747. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2748. `active` tinyint(4) NOT NULL DEFAULT '0',
  2749. `override_class_name` varchar(255) NOT NULL,
  2750. `override_class_file` varchar(255) NOT NULL,
  2751. PRIMARY KEY (`id`),
  2752. UNIQUE KEY `object` (`object`)
  2753. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2754. INSERT INTO `sys_objects_menu` (`object`, `title`, `set_name`, `module`, `template_id`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  2755. ('sys_site', '_sys_menu_title_main', 'sys_site', 'system', 14, 0, 1, 'BxTemplMenuSite', ''),
  2756. ('sys_homepage', '_sys_menu_title_homepage', 'sys_homepage', 'system', 14, 0, 1, 'BxTemplMenuHomepage', ''),
  2757. ('sys_site_submenu', '_sys_menu_title_submenu', 'sys_site', 'system', 1, 0, 1, 'BxTemplMenuSubmenu', ''),
  2758. ('sys_footer', '_sys_menu_title_footer', 'sys_footer', 'system', 2, 0, 1, 'BxTemplMenuFooter', ''),
  2759. ('sys_toolbar_site', '_sys_menu_title_toolbar_site', 'sys_toolbar_site', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  2760. ('sys_toolbar_member', '_sys_menu_title_toolbar_member', 'sys_toolbar_member', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  2761. ('sys_account', '_sys_menu_title_account', 'sys_account_links', 'system', 7, 0, 1, 'BxTemplMenuAccount', ''),
  2762. ('sys_add_content', '_sys_menu_title_add_content', 'sys_add_content_links', 'system', 14, 0, 1, 'BxTemplMenuSite', ''),
  2763. ('sys_add_profile', '_sys_menu_title_add_profile', 'sys_add_profile_links', 'system', 14, 0, 1, 'BxTemplMenuProfileAdd', ''),
  2764. ('sys_account_dashboard_manage_tools', '_sys_menu_title_account_dashboard_manage_tools', 'sys_account_dashboard_manage_tools', 'system', 4, 0, 1, '', ''),
  2765. ('sys_account_settings_submenu', '_sys_menu_title_account_settings', 'sys_account_settings', 'system', 8, 0, 1, '', ''),
  2766. ('sys_account_settings_more', '_sys_menu_title_account_settings_more', 'sys_account_settings_more', 'system', 4, 0, 1, '', ''),
  2767. ('sys_profiles_create', '_sys_menu_title_profiles_create', 'sys_profiles_create', 'system', 4, 0, 1, '', ''),
  2768. ('sys_cmts_item_manage', '_sys_menu_title_cmts_item_manage', 'sys_cmts_item_manage', 'system', 6, 0, 1, 'BxTemplCmtsMenuManage', ''),
  2769. ('sys_cmts_item_actions', '_sys_menu_title_cmts_item_actions', 'sys_cmts_item_actions', 'system', 15, 0, 1, 'BxTemplCmtsMenuActions', ''),
  2770. ('sys_account_popup', '_sys_menu_title_account_popup', '', 'system', 12, 0, 1, 'BxTemplMenuAccountPopup', ''),
  2771. ('sys_account_notifications', '_sys_menu_title_account_notifications', 'sys_account_notifications', 'system', 13, 0, 1, 'BxTemplMenuAccountNotifications', ''),
  2772. ('sys_profile_stats', '_sys_menu_title_profile_stats', 'sys_profile_stats', 'system', 6, 0, 1, 'BxTemplMenuProfileStats', ''),
  2773. ('sys_switch_language_popup', '_sys_menu_title_switch_language_popup', 'sys_switch_language', 'system', 6, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  2774. ('sys_switch_language_inline', '_sys_menu_title_switch_language_inline', 'sys_switch_language', 'system', 3, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  2775. ('sys_switch_template', '_sys_menu_title_switch_template', 'sys_switch_template', 'system', 6, 0, 1, 'BxTemplMenuSwitchTemplate', ''),
  2776. ('sys_set_acl_level', '_sys_menu_title_set_acl_level', '', 'system', 6, 0, 1, 'BxTemplMenuSetAclLevel', ''),
  2777. ('sys_social_sharing', '_sys_menu_title_social_sharing', 'sys_social_sharing', 'system', 18, 0, 1, 'BxTemplMenuSocialSharing', '');
  2778. CREATE TABLE IF NOT EXISTS `sys_menu_sets` (
  2779. `set_name` varchar(64) NOT NULL,
  2780. `module` varchar(32) NOT NULL,
  2781. `title` varchar(255) NOT NULL,
  2782. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2783. PRIMARY KEY (`set_name`)
  2784. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2785. INSERT INTO `sys_menu_sets` (`set_name`, `module`, `title`, `deletable`) VALUES
  2786. ('sys_site', 'system', '_sys_menu_set_title_site', 0),
  2787. ('sys_homepage', 'system', '_sys_menu_set_title_homepage', 0),
  2788. ('sys_footer', 'system', '_sys_menu_set_title_footer', 0),
  2789. ('sys_toolbar_site', 'system', '_sys_menu_set_title_toolbar_site', 0),
  2790. ('sys_toolbar_member', 'system', '_sys_menu_set_title_toolbar_member', 0),
  2791. ('sys_account_links', 'system', '_sys_menu_set_title_account', 0),
  2792. ('sys_account_notifications', 'system', '_sys_menu_set_title_account_notifications', 0),
  2793. ('sys_add_content_links', 'system', '_sys_menu_set_title_add_content', 0),
  2794. ('sys_add_profile_links', 'system', '_sys_menu_set_title_add_profile', 0),
  2795. ('sys_account_dashboard_manage_tools', 'system', '_sys_menu_set_title_account_dashboard_manage_tools', 0),
  2796. ('sys_account_settings', 'system', '_sys_menu_set_title_account_settings', 0),
  2797. ('sys_account_settings_more', 'system', '_sys_menu_set_title_account_settings_more', 0),
  2798. ('sys_profiles_create', 'system', '_sys_menu_set_title_profile_create_links', 0),
  2799. ('sys_profile_stats', 'system', '_sys_menu_set_title_profile_stats', 0),
  2800. ('sys_cmts_item_manage', 'system', '_sys_menu_set_title_cmts_item_manage', 0),
  2801. ('sys_cmts_item_actions', 'system', '_sys_menu_set_title_cmts_item_actions', 0),
  2802. ('sys_switch_language', 'system', '_sys_menu_set_title_switch_language', 0),
  2803. ('sys_switch_template', 'system', '_sys_menu_set_title_switch_template', 0),
  2804. ('sys_social_sharing', 'system', '_sys_menu_set_title_sys_social_sharing', 0);
  2805. CREATE TABLE IF NOT EXISTS `sys_menu_items` (
  2806. `id` int(11) NOT NULL AUTO_INCREMENT,
  2807. `set_name` varchar(64) NOT NULL,
  2808. `module` varchar(32) NOT NULL,
  2809. `name` varchar(255) NOT NULL,
  2810. `title_system` varchar(255) NOT NULL,
  2811. `title` varchar(255) NOT NULL,
  2812. `link` varchar(255) NOT NULL,
  2813. `onclick` varchar(255) NOT NULL,
  2814. `target` varchar(255) NOT NULL,
  2815. `icon` varchar(255) NOT NULL,
  2816. `addon` text NOT NULL,
  2817. `submenu_object` varchar(64) NOT NULL,
  2818. `submenu_popup` tinyint(4) NOT NULL DEFAULT '0',
  2819. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  2820. `active` tinyint(4) NOT NULL DEFAULT '1',
  2821. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  2822. `editable` tinyint(4) NOT NULL DEFAULT '1',
  2823. `order` int(11) NOT NULL,
  2824. PRIMARY KEY (`id`)
  2825. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2826. -- site menu
  2827. 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
  2828. ('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),
  2829. ('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),
  2830. ('sys_site', 'system', 'search', '_sys_menu_item_title_system_search', '_sys_menu_item_title_search', 'javascript:void(0);', 'bx_menu_slide(\'#bx-sliding-menu-search\', this, \'site\');', '', 'search', '', 2147483647, 1, 1, 3);
  2831. -- footer menu
  2832. 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
  2833. ('sys_footer', 'system', 'about', '_sys_menu_item_title_system_about', '_sys_menu_item_title_about', 'page.php?i=about', '', '', '', '', 2147483647, 1, 1, 1),
  2834. ('sys_footer', 'system', 'terms', '_sys_menu_item_title_system_terms', '_sys_menu_item_title_terms', 'page.php?i=terms', '', '', '', '', 2147483647, 1, 1, 2),
  2835. ('sys_footer', 'system', 'privacy', '_sys_menu_item_title_system_privacy', '_sys_menu_item_title_privacy', 'page.php?i=privacy', '', '', '', '', 2147483647, 1, 1, 3),
  2836. ('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_popup'', window);', '', '', '', 2147483647, 0, 1, 4),
  2837. ('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, 5);
  2838. -- site toolbar menu
  2839. 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
  2840. ('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),
  2841. ('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);
  2842. -- member toolbar menu
  2843. INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `submenu_popup`, `visible_for_levels`, `active`, `copyable`, `order`) VALUES
  2844. ('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', '', '', 0, 510, 1, 1, 0),
  2845. ('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', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:21:"profile_notifications";s:5:"class";s:20:"TemplServiceProfiles";}', 'sys_account_popup', 1, 510, 1, 0, 1),
  2846. ('sys_toolbar_member', 'system', 'login', '_sys_menu_item_title_system_login', '', 'page.php?i=login', '', '', 'user', '', '', 0, 1, 1, 0, 2);
  2847. -- simple menu in account popup
  2848. 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
  2849. ('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),
  2850. ('sys_account_links', 'system', 'profile', '_sys_menu_item_title_system_profile', '_sys_menu_item_title_profile', '{member_url}', '', '', 'user', '', 2147483646, 1, 1, 2),
  2851. ('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),
  2852. ('sys_account_links', 'system', 'add-content', '_sys_menu_item_title_system_add_content', '_sys_menu_item_title_add_content', 'javascript:void(0);', 'bx_menu_slide(\'#bx-sliding-menu-sys_add_content\', $(\'bx-menu-toolbar-item-add-content a\').get(0), \'site\');', '', 'plus', '', 2147483646, 1, 1, 4),
  2853. ('sys_account_links', 'system', 'studio', '_sys_menu_item_title_system_studio', '_sys_menu_item_title_studio', '{studio_url}', '', '', 'wrench', '', 2147483646, 1, 0, 5),
  2854. ('sys_account_links', 'system', 'logout', '_sys_menu_item_title_system_logout', '_sys_menu_item_title_logout', 'logout.php', '', '', 'sign-out', '', 2147483646, 1, 1, 6);
  2855. -- notifications menu in account popup
  2856. 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
  2857. ('sys_account_notifications', 'system', 'cart', '_sys_menu_item_title_system_cart', '_sys_menu_item_title_cart', 'cart.php', '', '', 'cart-plus col-red3', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"get_cart_items_count";s:6:"params";a:0:{}s:5:"class";s:21:"TemplPaymentsServices";}', '', 2147483646, 1, 1, 1),
  2858. ('sys_account_notifications', 'system', 'subscriptions', '_sys_menu_item_title_system_subscriptions', '_sys_menu_item_title_subscriptions', 'subscriptions.php', '', '', 'money col-blue3', '', '', 2147483646, 1, 1, 2),
  2859. ('sys_account_notifications', 'system', 'orders', '_sys_menu_item_title_system_orders', '_sys_menu_item_title_orders', 'orders.php', '', '', 'cart-arrow-down col-green3', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"get_orders_count";s:6:"params";a:1:{i:0;s:3:"new";}s:5:"class";s:21:"TemplPaymentsServices";}', '', 2147483646, 1, 1, 3);
  2860. -- account settings menu
  2861. 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
  2862. ('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),
  2863. ('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),
  2864. ('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),
  2865. ('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),
  2866. ('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);
  2867. -- account settings menu more
  2868. 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
  2869. ('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);
  2870. -- comment manage menu
  2871. 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
  2872. ('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),
  2873. ('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);
  2874. -- comment actions menu
  2875. INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `visible_for_levels`, `active`, `copyable`, `editable`, `order`) VALUES
  2876. ('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)', '', '', '', '', '', 2147483647, 1, 0, 0, 1),
  2877. ('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, 1, 2);
  2878. -- social sharing menu
  2879. 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
  2880. ('sys_social_sharing', 'system', 'social-sharing-facebook', '_sys_menu_item_title_system_social_sharing_facebook', '_sys_menu_item_title_social_sharing_facebook', 'https://www.facebook.com/sharer/sharer.php?u={url_encoded}', '', '_blank', 'facebook', '', 2147483646, 1, 1, 1),
  2881. ('sys_social_sharing', 'system', 'social-sharing-googleplus', '_sys_menu_item_title_system_social_sharing_googleplus', '_sys_menu_item_title_social_sharing_googleplus', 'https://plus.google.com/share?url={url_encoded}', '', '_blank', 'google-plus', '', 2147483646, 1, 1, 2),
  2882. ('sys_social_sharing', 'system', 'social-sharing-twitter', '_sys_menu_item_title_system_social_sharing_twitter', '_sys_menu_item_title_social_sharing_twitter', 'https://twitter.com/share?url={url_encoded}', '', '_blank', 'twitter', '', 2147483646, 1, 1, 3),
  2883. ('sys_social_sharing', 'system', 'social-sharing-pinterest', '_sys_menu_item_title_system_social_sharing_pinterest', '_sys_menu_item_title_social_sharing_pinterest', 'http://pinterest.com/pin/create/button/?url={url_encoded}&media={img_url_encoded}&description={title_encoded}', '', '_blank', 'pinterest', '', 2147483646, 1, 1, 4);
  2884. -- --------------------------------------------------------
  2885. CREATE TABLE IF NOT EXISTS `sys_objects_grid` (
  2886. `id` int(11) NOT NULL AUTO_INCREMENT,
  2887. `object` varchar(64) NOT NULL,
  2888. `source_type` enum('Array','Sql') NOT NULL,
  2889. `source` text NOT NULL,
  2890. `table` varchar(255) NOT NULL,
  2891. `field_id` varchar(255) NOT NULL,
  2892. `field_order` varchar(255) NOT NULL,
  2893. `field_active` varchar(255) NOT NULL,
  2894. `paginate_url` varchar(255) NOT NULL,
  2895. `paginate_per_page` int(11) NOT NULL DEFAULT '10',
  2896. `paginate_simple` varchar(255) DEFAULT NULL,
  2897. `paginate_get_start` varchar(255) NOT NULL,
  2898. `paginate_get_per_page` varchar(255) NOT NULL,
  2899. `filter_fields` text NOT NULL,
  2900. `filter_fields_translatable` text NOT NULL,
  2901. `filter_mode` enum('like','fulltext','auto') NOT NULL DEFAULT 'auto',
  2902. `sorting_fields` text NOT NULL,
  2903. `sorting_fields_translatable` text NOT NULL,
  2904. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  2905. `override_class_name` varchar(255) NOT NULL,
  2906. `override_class_file` varchar(255) NOT NULL,
  2907. PRIMARY KEY (`id`),
  2908. UNIQUE KEY `object` (`object`)
  2909. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2910. -- GRIDS: studio
  2911. 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
  2912. ('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', ''),
  2913. ('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', ''),
  2914. ('sys_studio_acl', 'Sql', 'SELECT * FROM `sys_acl_levels` WHERE 1 ', 'sys_acl_levels', 'ID', 'Order', 'Active', '', 100, NULL, 'start', '', 'Description', 'Name', 'auto', '', '', 'BxTemplStudioPermissionsLevels', ''),
  2915. ('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', ''),
  2916. ('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', ''),
  2917. ('sys_studio_nav_sets', 'Sql', 'SELECT * FROM `sys_menu_sets` WHERE 1 ', 'sys_menu_sets', 'set_name', '', '', '', 100, NULL, 'start', '', '', 'title', 'auto', '', '', 'BxTemplStudioNavigationSets', ''),
  2918. ('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', ''),
  2919. ('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', ''),
  2920. ('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', ''),
  2921. ('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', ''),
  2922. ('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', ''),
  2923. ('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', ''),
  2924. ('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', '');
  2925. CREATE TABLE IF NOT EXISTS `sys_grid_fields` (
  2926. `object` varchar(64) NOT NULL,
  2927. `name` varchar(255) NOT NULL,
  2928. `title` varchar(255) NOT NULL,
  2929. `width` varchar(16) NOT NULL,
  2930. `translatable` tinyint(4) NOT NULL DEFAULT '0',
  2931. `chars_limit` int(11) NOT NULL DEFAULT '0',
  2932. `params` text NOT NULL,
  2933. `order` int(11) NOT NULL,
  2934. UNIQUE KEY `object_name` (`object`,`name`)
  2935. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2936. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  2937. ('sys_studio_lang_keys', 'checkbox', 'Select', '1%', 0, '', '', 1),
  2938. ('sys_studio_lang_keys', 'key', '_adm_pgt_txt_key', '24%', 0, '20', '', 2),
  2939. ('sys_studio_lang_keys', 'module', '_adm_pgt_txt_module', '15%', 0, '12', '', 3),
  2940. ('sys_studio_lang_keys', 'string', '_adm_pgt_txt_text', '30%', 0, '30', '', 4),
  2941. ('sys_studio_lang_keys', 'languages', '_adm_pgt_txt_languages', '10%', 0, '', '', 5),
  2942. ('sys_studio_lang_keys', 'actions', '', '20%', 0, '', '', 6),
  2943. ('sys_studio_lang_etemplates', 'NameSystem', '_adm_pgt_txt_etemplates_gl_name_system', '60%', 1, '58', '', 1),
  2944. ('sys_studio_lang_etemplates', 'Module', '_adm_pgt_txt_etemplates_gl_module', '20%', 0, '18', '', 2),
  2945. ('sys_studio_lang_etemplates', 'actions', '', '20%', 0, '', '', 3),
  2946. ('sys_studio_acl', 'Order', '', '1%', 0, '', '', 1),
  2947. ('sys_studio_acl', 'switcher', '_adm_prm_txt_enable', '5%', 0, '', '', 2),
  2948. ('sys_studio_acl', 'Icon', '_adm_prm_txt_icon', '5%', 0, '', '', 3),
  2949. ('sys_studio_acl', 'Name', '_adm_prm_txt_title', '29%', 1, '15', '', 4),
  2950. ('sys_studio_acl', 'ActionsList', '_adm_prm_txt_actions', '10%', 0, '', '', 5),
  2951. ('sys_studio_acl', 'QuotaSize', '_adm_prm_txt_storage', '10%', 0, '', '', 6),
  2952. ('sys_studio_acl', 'QuotaMaxFileSize', '_adm_prm_txt_max_file_size', '10%', 0, '', '', 7),
  2953. ('sys_studio_acl', 'QuotaNumber', '_adm_prm_txt_max_files', '10%', 0, '', '', 8),
  2954. ('sys_studio_acl', 'actions', '', '20%', 0, '', '', 9),
  2955. ('sys_studio_acl_actions', 'switcher', '_adm_prm_txt_enable', '10%', 0, '', '', 1),
  2956. ('sys_studio_acl_actions', 'Title', '_adm_prm_txt_title', '25%', 1, '25', '', 2),
  2957. ('sys_studio_acl_actions', 'Module', '_adm_prm_txt_module', '20%', 0, '18', '', 3),
  2958. ('sys_studio_acl_actions', 'Desc', '_adm_prm_txt_description', '25%', 0, '25', '', 4),
  2959. ('sys_studio_acl_actions', 'actions', '', '20%', 0, '', '', 5),
  2960. ('sys_studio_nav_menus', 'switcher', '', '10%', 0, '', '', 1),
  2961. ('sys_studio_nav_menus', 'title', '_adm_nav_txt_menus_gl_title', '17%', 0, '15', '', 2),
  2962. ('sys_studio_nav_menus', 'set_title', '_adm_nav_txt_menus_gl_set_title', '17%', 1, '15', '', 3),
  2963. ('sys_studio_nav_menus', 'items', '_adm_nav_txt_menus_gl_items', '10%', 0, '8', '', 4),
  2964. ('sys_studio_nav_menus', 'template_title', '_adm_nav_txt_menus_gl_template_title', '17%', 1, '15', '', 5),
  2965. ('sys_studio_nav_menus', 'module', '_adm_nav_txt_menus_gl_module', '12%', 0, '10', '', 6),
  2966. ('sys_studio_nav_menus', 'actions', '', '17%', 0, '', '', 7),
  2967. ('sys_studio_nav_sets', 'title', '_adm_nav_txt_sets_gl_title', '50%', 1, '48', '', 1),
  2968. ('sys_studio_nav_sets', 'module', '_adm_nav_txt_sets_gl_module', '15%', 0, '13', '', 2),
  2969. ('sys_studio_nav_sets', 'items', '_adm_nav_txt_sets_gl_items', '15%', 0, '13', '', 3),
  2970. ('sys_studio_nav_sets', 'actions', '', '20%', 0, '', '', 4),
  2971. ('sys_studio_nav_items', 'order', '', '1%', 0, '', '', 1),
  2972. ('sys_studio_nav_items', 'switcher', '', '9%', 0, '', '', 2),
  2973. ('sys_studio_nav_items', 'icon', '_adm_nav_txt_items_gl_icon', '5%', 0, '', '', 3),
  2974. ('sys_studio_nav_items', 'title_system', '_adm_nav_txt_items_gl_title_system', '23%', 1, '23', '', 4),
  2975. ('sys_studio_nav_items', 'link', '_adm_nav_txt_items_gl_link', '23%', 0, '23', '', 5),
  2976. ('sys_studio_nav_items', 'module', '_adm_nav_txt_items_gl_module', '12%', 0, '12', '', 6),
  2977. ('sys_studio_nav_items', 'visible_for_levels', '_adm_nav_txt_items_gl_visible', '10%', 0, '10', '', 7),
  2978. ('sys_studio_nav_items', 'actions', '', '17%', 0, '', '', 8),
  2979. ('sys_studio_nav_import', 'icon', '_adm_nav_txt_items_gl_icon', '10%', 0, '', '', 1),
  2980. ('sys_studio_nav_import', 'title_system', '_adm_nav_txt_items_gl_title_system', '30%', 1, '28', '', 2),
  2981. ('sys_studio_nav_import', 'link', '_adm_nav_txt_items_gl_link', '25%', 0, '23', '', 3),
  2982. ('sys_studio_nav_import', 'module', '_adm_nav_txt_items_gl_module', '15%', 0, '13', '', 4),
  2983. ('sys_studio_nav_import', 'actions', '', '20%', 0, '', '', 5),
  2984. ('sys_studio_forms', 'switcher', '', '10%', 0, '', '', 1),
  2985. ('sys_studio_forms', 'title', '_adm_form_txt_forms_gl_title', '40%', 1, '38', '', 2),
  2986. ('sys_studio_forms', 'module', '_adm_form_txt_forms_gl_module', '15%', 0, '13', '', 3),
  2987. ('sys_studio_forms', 'displays', '_adm_form_txt_forms_gl_displays', '15%', 0, '13', '', 4),
  2988. ('sys_studio_forms', 'actions', '', '20%', 0, '', '', 5),
  2989. ('sys_studio_forms_displays', 'display_title', '_adm_form_txt_displays_gl_title', '30%', 1, '48', '', 1),
  2990. ('sys_studio_forms_displays', 'module', '_adm_form_txt_displays_gl_module', '13%', 0, '11', '', 2),
  2991. ('sys_studio_forms_displays', 'form_title', '_adm_form_txt_displays_gl_form', '24%', 1, '22', '', 3),
  2992. ('sys_studio_forms_displays', 'fields', '_adm_form_txt_displays_gl_fields', '13%', 0, '11', '', 4),
  2993. ('sys_studio_forms_displays', 'actions', '', '20%', 0, '', '', 5),
  2994. ('sys_studio_forms_fields', 'order', '', '1%', 0, '', '', 1),
  2995. ('sys_studio_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  2996. ('sys_studio_forms_fields', 'type', '_adm_form_txt_fields_type', '5%', 0, '', '', 3),
  2997. ('sys_studio_forms_fields', 'caption_system', '_adm_form_txt_fields_caption_system', '40%', 1, '38', '', 4),
  2998. ('sys_studio_forms_fields', 'module', '_adm_form_txt_fields_module', '15%', 0, '13', '', 5),
  2999. ('sys_studio_forms_fields', 'visible_for_levels', '_adm_form_txt_fields_visible', '10%', 0, '10', '', 6),
  3000. ('sys_studio_forms_fields', 'actions', '', '20%', 0, '', '', 7),
  3001. ('sys_studio_forms_pre_lists', 'title', '_adm_form_txt_pre_lists_gl_title', '45%', 1, '50', '', 1),
  3002. ('sys_studio_forms_pre_lists', 'values', '_adm_form_txt_pre_lists_gl_values', '12%', 0, '10', '', 2),
  3003. ('sys_studio_forms_pre_lists', 'module', '_adm_form_txt_pre_lists_gl_module', '13%', 0, '11', '', 3),
  3004. ('sys_studio_forms_pre_lists', 'use_for_sets', '_adm_form_txt_pre_lists_gl_use_for_sets', '10%', 0, '8', '', 4),
  3005. ('sys_studio_forms_pre_lists', 'actions', '', '20%', 0, '', '', 5),
  3006. ('sys_studio_forms_pre_values', 'checkbox', '', '1%', 0, '', '', 1),
  3007. ('sys_studio_forms_pre_values', 'order', '', '1%', 0, '', '', 2),
  3008. ('sys_studio_forms_pre_values', 'LKey', '_adm_form_txt_pre_values_gl_lkey', '78%', 1, '75', '', 3),
  3009. ('sys_studio_forms_pre_values', 'actions', '', '20%', 0, '', '', 4);
  3010. CREATE TABLE IF NOT EXISTS `sys_grid_actions` (
  3011. `object` varchar(64) NOT NULL,
  3012. `type` enum('bulk','single','independent') NOT NULL,
  3013. `name` varchar(255) NOT NULL,
  3014. `title` varchar(255) NOT NULL,
  3015. `icon` varchar(255) NOT NULL,
  3016. `icon_only` tinyint(4) NOT NULL DEFAULT '0',
  3017. `confirm` tinyint(4) NOT NULL DEFAULT '1',
  3018. `order` int(11) NOT NULL,
  3019. UNIQUE KEY `object_name_type` (`object`,`type`,`name`)
  3020. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3021. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`) VALUES
  3022. ('sys_studio_lang_keys', 'bulk', 'delete', '_adm_pgt_btn_delete', '', 1, 1),
  3023. ('sys_studio_lang_keys', 'single', 'edit', '', 'pencil', 0, 1),
  3024. ('sys_studio_lang_keys', 'single', 'delete', '', 'remove', 1, 2),
  3025. ('sys_studio_lang_keys', 'independent', 'add', '_adm_pgt_btn_add_new_key', '', 0, 1),
  3026. ('sys_studio_lang_etemplates', 'single', 'edit', '', 'pencil', 0, 1),
  3027. ('sys_studio_acl', 'independent', 'add', '_adm_prm_btn_add_level', '', 0, 1),
  3028. ('sys_studio_acl', 'single', 'edit', '', 'pencil', 0, 1),
  3029. ('sys_studio_acl', 'single', 'delete', '', 'remove', 1, 2),
  3030. ('sys_studio_acl_actions', 'single', 'options', '', 'cog', 0, 1),
  3031. ('sys_studio_nav_menus', 'independent', 'add', '_adm_nav_btn_menus_create', '', 0, 1),
  3032. ('sys_studio_nav_menus', 'single', 'edit', '', 'pencil', 0, 1),
  3033. ('sys_studio_nav_menus', 'single', 'delete', '', 'remove', 1, 2),
  3034. ('sys_studio_nav_sets', 'independent', 'add', '_adm_nav_btn_sets_create', '', 0, 1),
  3035. ('sys_studio_nav_sets', 'single', 'edit', '', 'pencil', 0, 1),
  3036. ('sys_studio_nav_sets', 'single', 'delete', '', 'remove', 1, 2),
  3037. ('sys_studio_nav_items', 'independent', 'import', '_adm_nav_btn_items_gl_import', '', 0, 1),
  3038. ('sys_studio_nav_items', 'independent', 'add', '_adm_nav_btn_items_gl_create', '', 0, 2),
  3039. ('sys_studio_nav_items', 'single', 'edit', '', 'pencil', 0, 1),
  3040. ('sys_studio_nav_items', 'single', 'delete', '', 'remove', 1, 2),
  3041. ('sys_studio_nav_items', 'single', 'show_to', '_adm_nav_btn_items_gl_visible', '', 0, 3),
  3042. ('sys_studio_nav_import', 'single', 'import', '', 'plus', 0, 1),
  3043. ('sys_studio_nav_import', 'bulk', 'done', '_adm_nav_btn_items_done', '', 0, 1),
  3044. ('sys_studio_forms', 'single', 'edit', '', 'pencil', 0, 1),
  3045. ('sys_studio_forms_displays', 'single', 'edit', '', 'pencil', 0, 1),
  3046. ('sys_studio_forms_fields', 'single', 'edit', '', 'pencil', 0, 1),
  3047. ('sys_studio_forms_fields', 'single', 'delete', '', 'remove', 1, 2),
  3048. ('sys_studio_forms_fields', 'single', 'show_to', '_adm_form_btn_fields_visible', '', 0, 3),
  3049. ('sys_studio_forms_fields', 'independent', 'add', '_adm_form_btn_fields_create', '', 0, 1),
  3050. ('sys_studio_forms_pre_lists', 'independent', 'add', '_adm_form_btn_pre_lists_create', '', 0, 1),
  3051. ('sys_studio_forms_pre_lists', 'single', 'edit', '', 'pencil', 0, 1),
  3052. ('sys_studio_forms_pre_lists', 'single', 'delete', '', 'remove', 1, 2),
  3053. ('sys_studio_forms_pre_values', 'independent', 'add', '_adm_form_btn_pre_values_create', '', 0, 1),
  3054. ('sys_studio_forms_pre_values', 'single', 'edit', '', 'pencil', 0, 1),
  3055. ('sys_studio_forms_pre_values', 'single', 'delete', '', 'remove', 1, 2),
  3056. ('sys_studio_forms_pre_values', 'bulk', 'delete', '_adm_form_btn_pre_values_delete', '', 1, 1);
  3057. -- GRID: Storage managers
  3058. 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
  3059. ('sys_studio_strg_files', 'Sql', 'SELECT * FROM `sys_files` WHERE 1 ', 'sys_files', 'id', '', '', '', 20, NULL, 'start', '', 'file_name,mime_type', '', 'auto', 'file_name,added', '', 'BxTemplStudioStoragesFiles', ''),
  3060. ('sys_studio_strg_images', 'Sql', 'SELECT * FROM `sys_images` WHERE 1 ', 'sys_images', 'id', '', '', '', 20, NULL, 'start', '', 'file_name', '', 'auto', 'file_name,added', '', 'BxTemplStudioStoragesImages', '');
  3061. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  3062. -- Storages: Files
  3063. ('sys_studio_strg_files', 'checkbox', '', '1%', 0, '', '', 1),
  3064. ('sys_studio_strg_files', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  3065. ('sys_studio_strg_files', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  3066. ('sys_studio_strg_files', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  3067. ('sys_studio_strg_files', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  3068. ('sys_studio_strg_files', 'actions', '', '25%', 0, '', '', 6),
  3069. -- Storages: Images
  3070. ('sys_studio_strg_images', 'checkbox', '', '1%', 0, '', '', 1),
  3071. ('sys_studio_strg_images', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  3072. ('sys_studio_strg_images', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  3073. ('sys_studio_strg_images', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  3074. ('sys_studio_strg_images', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  3075. ('sys_studio_strg_images', 'actions', '', '25%', 0, '', '', 6);
  3076. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  3077. -- Storages: Files
  3078. ('sys_studio_strg_files', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  3079. ('sys_studio_strg_files', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  3080. ('sys_studio_strg_files', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 2),
  3081. ('sys_studio_strg_files', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1),
  3082. -- Storages: Images
  3083. ('sys_studio_strg_images', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  3084. ('sys_studio_strg_images', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  3085. ('sys_studio_strg_images', 'single', 'resize', '_adm_strg_btn_resize', 'compress', 1, 0, 2),
  3086. ('sys_studio_strg_images', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 3),
  3087. ('sys_studio_strg_images', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1);
  3088. -- GRID: connections
  3089. 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
  3090. ('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', '');
  3091. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `params`, `order`) VALUES
  3092. ('sys_grid_connections', 'name', '_sys_name', '40%', '', 1),
  3093. ('sys_grid_connections', 'info', '', '30%', '', 2),
  3094. ('sys_grid_connections', 'actions', '', '30%', '', 3);
  3095. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`) VALUES
  3096. ('sys_grid_connections', 'single', 'accept', '_sys_accept', '', 0, 1),
  3097. ('sys_grid_connections', 'single', 'delete', '', 'remove', 1, 2),
  3098. ('sys_grid_connections', 'single', 'add_friend', '_sys_add_friend', 'plus', 0, 3);
  3099. -- --------------------------------------------------------
  3100. CREATE TABLE IF NOT EXISTS `sys_objects_connection` (
  3101. `id` int(11) NOT NULL AUTO_INCREMENT,
  3102. `object` varchar(64) NOT NULL,
  3103. `table` varchar(255) NOT NULL,
  3104. `type` enum('one-way','mutual') NOT NULL,
  3105. `override_class_name` varchar(255) NOT NULL,
  3106. `override_class_file` varchar(255) NOT NULL,
  3107. PRIMARY KEY (`id`),
  3108. UNIQUE KEY `object` (`object`)
  3109. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3110. INSERT INTO `sys_objects_connection` (`object`, `table`, `type`, `override_class_name`, `override_class_file`) VALUES
  3111. ('sys_profiles_friends', 'sys_profiles_conn_friends', 'mutual', '', ''),
  3112. ('sys_profiles_subscriptions', 'sys_profiles_conn_subscriptions', 'one-way', '', '');
  3113. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_subscriptions` (
  3114. `id` int(11) NOT NULL AUTO_INCREMENT,
  3115. `initiator` int(11) NOT NULL,
  3116. `content` int(11) NOT NULL,
  3117. `added` int(10) unsigned NOT NULL,
  3118. PRIMARY KEY (`id`),
  3119. UNIQUE KEY `initiator` (`initiator`,`content`),
  3120. KEY `content` (`content`)
  3121. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3122. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_friends` (
  3123. `id` int(11) NOT NULL AUTO_INCREMENT,
  3124. `initiator` int(11) NOT NULL,
  3125. `content` int(11) NOT NULL,
  3126. `mutual` tinyint(4) NOT NULL,
  3127. `added` int(10) unsigned NOT NULL,
  3128. PRIMARY KEY (`id`),
  3129. UNIQUE KEY `initiator` (`initiator`,`content`),
  3130. KEY `content` (`content`)
  3131. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3132. -- --------------------------------------------------------
  3133. CREATE TABLE IF NOT EXISTS `sys_objects_transcoder` (
  3134. `id` int(11) NOT NULL AUTO_INCREMENT,
  3135. `object` varchar(64) NOT NULL,
  3136. `storage_object` varchar(64) NOT NULL,
  3137. `source_type` enum('Folder','Storage','Proxy') NOT NULL,
  3138. `source_params` text NOT NULL,
  3139. `private` enum('auto','yes','no') NOT NULL,
  3140. `atime_tracking` int(11) NOT NULL,
  3141. `atime_pruning` int(11) NOT NULL,
  3142. `ts` int(11) NOT NULL DEFAULT '0',
  3143. `override_class_name` varchar(255) NOT NULL,
  3144. `override_class_file` varchar(255) NOT NULL,
  3145. PRIMARY KEY (`id`),
  3146. UNIQUE KEY `object` (`object`)
  3147. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3148. INSERT INTO `sys_objects_transcoder` (`object`, `storage_object`, `source_type`, `source_params`, `private`, `atime_tracking`, `atime_pruning`, `ts`, `override_class_name`, `override_class_file`) VALUES
  3149. ('sys_image_resize', 'sys_images_resized', 'Storage', 'a:2:{s:6:"object";s:10:"sys_images";s:14:"disable_retina";b:1;}', 'no', '0', '0', '0', '', ''),
  3150. ('sys_icon_apple', 'sys_images_resized', 'Storage', 'a:2:{s:6:"object";s:10:"sys_images";s:14:"disable_retina";b:1;}', 'no', '0', '0', '0', '', ''),
  3151. ('sys_icon_facebook', 'sys_images_resized', 'Storage', 'a:2:{s:6:"object";s:10:"sys_images";s:14:"disable_retina";b:1;}', 'no', '0', '0', '0', '', ''),
  3152. ('sys_icon_favicon', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  3153. ('sys_cover', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  3154. ('sys_cover_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  3155. ('sys_builder_page_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  3156. ('sys_builder_page_embed', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  3157. ('sys_cmts_images_preview', 'sys_cmts_images_preview', 'Storage', 'a:1:{s:6:"object";s:15:"sys_cmts_images";}', 'no', '1', '2592000', '0', '', ''),
  3158. ('sys_custom_images', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:17:"sys_images_custom";}', 'no', '1', '2592000', '0', '', '');
  3159. CREATE TABLE IF NOT EXISTS `sys_transcoder_images_files` (
  3160. `transcoder_object` varchar(64) NOT NULL,
  3161. `file_id` int(11) NOT NULL,
  3162. `handler` varchar(255) NOT NULL,
  3163. `atime` int(11) NOT NULL,
  3164. `data` text NOT NULL,
  3165. UNIQUE KEY `transcoder_object` (`transcoder_object`,`handler`),
  3166. KEY `atime` (`atime`),
  3167. KEY `file_id` (`file_id`)
  3168. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3169. CREATE TABLE IF NOT EXISTS `sys_transcoder_videos_files` (
  3170. `transcoder_object` varchar(64) NOT NULL,
  3171. `file_id` int(11) NOT NULL,
  3172. `handler` varchar(255) NOT NULL,
  3173. `atime` int(11) NOT NULL,
  3174. UNIQUE KEY `transcoder_object` (`transcoder_object`,`handler`),
  3175. KEY `atime` (`atime`),
  3176. KEY `file_id` (`file_id`)
  3177. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3178. CREATE TABLE IF NOT EXISTS `sys_transcoder_filters` (
  3179. `transcoder_object` varchar(64) NOT NULL,
  3180. `filter` varchar(32) NOT NULL,
  3181. `filter_params` text NOT NULL,
  3182. `order` int(11) NOT NULL DEFAULT '0',
  3183. KEY `transcoder_object` (`transcoder_object`)
  3184. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3185. INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
  3186. ('sys_image_resize', 'ResizeVar', '', '0'),
  3187. ('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'),
  3188. ('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'),
  3189. ('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'),
  3190. ('sys_cover', 'Resize', 'a:3:{s:1:"w";s:4:"1920";s:1:"h";s:3:"720";s:10:"force_type";s:3:"png";}', '0'),
  3191. ('sys_cover_preview', 'Resize', 'a:3:{s:1:"w";s:3:"120";s:1:"h";s:2:"45";s:10:"force_type";s:3:"jpg";}', '0'),
  3192. ('sys_builder_page_preview', 'Resize', 'a:4:{s:1:"w";s:3:"128";s:1:"h";s:3:"128";s:13:"square_resize";s:1:"1";s:10:"force_type";s:3:"jpg";}', '0'),
  3193. ('sys_builder_page_embed', 'ResizeVar', '', '0'),
  3194. ('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'),
  3195. ('sys_custom_images', 'ResizeVar', '', '0');
  3196. CREATE TABLE IF NOT EXISTS `sys_transcoder_queue` (
  3197. `id` int(11) NOT NULL AUTO_INCREMENT,
  3198. `transcoder_object` varchar(64) NOT NULL,
  3199. `profile_id` int(10) unsigned NOT NULL,
  3200. `file_url_source` varchar(255) NOT NULL,
  3201. `file_id_source` varchar(255) NOT NULL,
  3202. `file_url_result` varchar(255) NOT NULL,
  3203. `file_ext_result` varchar(255) NOT NULL,
  3204. `file_id_result` int(11) NOT NULL,
  3205. `server` varchar(255) NOT NULL,
  3206. `status` enum('pending','processing','complete','failed','delete') NOT NULL,
  3207. `added` int(11) NOT NULL,
  3208. `changed` int(11) NOT NULL,
  3209. `log` text NOT NULL,
  3210. PRIMARY KEY (`id`),
  3211. UNIQUE KEY `transcoder_object` (`transcoder_object`,`file_id_source`)
  3212. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3213. CREATE TABLE `sys_transcoder_queue_files` (
  3214. `id` int(11) NOT NULL AUTO_INCREMENT,
  3215. `profile_id` int(10) unsigned NOT NULL,
  3216. `remote_id` varchar(128) NOT NULL,
  3217. `path` varchar(255) NOT NULL,
  3218. `file_name` varchar(255) NOT NULL,
  3219. `mime_type` varchar(128) NOT NULL,
  3220. `ext` varchar(32) NOT NULL,
  3221. `size` int(11) NOT NULL,
  3222. `added` int(11) NOT NULL,
  3223. `modified` int(11) NOT NULL,
  3224. `private` int(11) NOT NULL,
  3225. PRIMARY KEY (`id`),
  3226. UNIQUE KEY `remote_id` (`remote_id`)
  3227. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3228. -- --------------------------------------------------------
  3229. CREATE TABLE IF NOT EXISTS `sys_objects_page` (
  3230. `id` int(11) NOT NULL AUTO_INCREMENT,
  3231. `object` varchar(64) NOT NULL,
  3232. `uri` varchar(255) NOT NULL,
  3233. `title_system` varchar(255) NOT NULL,
  3234. `title` varchar(255) NOT NULL,
  3235. `module` varchar(32) NOT NULL,
  3236. `cover` tinyint(4) NOT NULL DEFAULT '1',
  3237. `cover_image` int(11) NOT NULL DEFAULT '0',
  3238. `layout_id` int(11) NOT NULL,
  3239. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3240. `visible_for_levels_editable` tinyint(4) NOT NULL DEFAULT '1',
  3241. `url` varchar(255) NOT NULL,
  3242. `meta_description` text NOT NULL,
  3243. `meta_keywords` text NOT NULL,
  3244. `meta_robots` varchar(255) NOT NULL,
  3245. `cache_lifetime` int(11) NOT NULL DEFAULT '0',
  3246. `cache_editable` tinyint(4) NOT NULL DEFAULT '1',
  3247. `deletable` tinyint(1) NOT NULL,
  3248. `override_class_name` varchar(255) NOT NULL,
  3249. `override_class_file` varchar(255) NOT NULL,
  3250. PRIMARY KEY (`id`),
  3251. UNIQUE KEY `object` (`object`),
  3252. UNIQUE KEY `uri` (`uri`)
  3253. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3254. 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
  3255. ('sys_home', 'home', '_sys_page_title_system_home', '_sys_page_title_home', 'system', 5, 2147483647, 1, '', '', '', '', 0, 1, 0, 'BxTemplPageHome', ''),
  3256. ('sys_about', 'about', '_sys_page_title_system_about', '_sys_page_title_about', 'system', 5, 2147483647, 1, 'page.php?i=about', '', '', '', 0, 1, 0, '', ''),
  3257. ('sys_terms', 'terms', '_sys_page_title_system_terms', '_sys_page_title_terms', 'system', 5, 2147483647, 1, 'page.php?i=terms', '', '', '', 0, 1, 0, '', ''),
  3258. ('sys_privacy', 'privacy', '_sys_page_title_system_privacy', '_sys_page_title_privacy', 'system', 5, 2147483647, 1, 'page.php?i=privacy', '', '', '', 0, 1, 0, '', ''),
  3259. ('sys_dashboard', 'dashboard', '_sys_page_title_system_dashboard', '_sys_page_title_dashboard', 'system', 11, 2147483646, 1, 'page.php?i=dashboard', '', '', '', 0, 1, 0, 'BxTemplPageDashboard', ''),
  3260. ('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, '', ''),
  3261. ('sys_login', 'login', '_sys_page_title_system_login', '_sys_page_title_login', 'system', 5, 2147483647, 1, 'page.php?i=login', '', '', '', 0, 1, 0, '', ''),
  3262. ('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, '', ''),
  3263. ('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, '', ''),
  3264. ('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', ''),
  3265. ('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', ''),
  3266. ('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', ''),
  3267. ('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', ''),
  3268. ('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', ''),
  3269. ('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, '', ''),
  3270. ('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, '', ''),
  3271. ('sys_std_dashboard', '', '_sys_page_title_system_studio_dashboard', '_sys_page_title_studio_dashboard', 'system', 4, 2147483647, 1, '', '', '', '', 0, 1, 0, '', '');
  3272. CREATE TABLE IF NOT EXISTS `sys_pages_layouts` (
  3273. `id` int(11) NOT NULL AUTO_INCREMENT,
  3274. `name` varchar(64) NOT NULL,
  3275. `icon` varchar(255) NOT NULL,
  3276. `title` varchar(255) NOT NULL,
  3277. `template` varchar(255) NOT NULL,
  3278. `cells_number` int(11) NOT NULL,
  3279. PRIMARY KEY (`id`),
  3280. UNIQUE KEY `name` (`name`)
  3281. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3282. INSERT INTO `sys_pages_layouts` (`id`, `name`, `icon`, `title`, `template`, `cells_number`) VALUES
  3283. (1, 'bar_left', 'layout_bar_left.png', '_sys_layout_bar_left', 'layout_bar_left.html', 2),
  3284. (2, 'bar_right', 'layout_bar_right.png', '_sys_layout_bar_right', 'layout_bar_right.html', 2),
  3285. (3, '3_columns', 'layout_3_columns.png', '_sys_layout_3_columns', 'layout_3_columns.html', 3),
  3286. (4, '2_columns', 'layout_2_columns.png', '_sys_layout_2_columns', 'layout_2_columns.html', 2),
  3287. (5, '1_column', 'layout_1_column.png', '_sys_layout_1_column', 'layout_1_column.html', 1),
  3288. (6, 'top_area_bar_left', 'layout_top_area_bar_left.png', '_sys_layout_top_area_bar_left', 'layout_top_area_bar_left.html', 3),
  3289. (7, 'top_area_bar_right', 'layout_top_area_bar_right.png', '_sys_layout_top_area_bar_right', 'layout_top_area_bar_right.html', 3),
  3290. (8, 'top_area_3_columns', 'layout_top_area_3_columns.png', '_sys_layout_top_area_3_columns', 'layout_top_area_3_columns.html', 4),
  3291. (9, 'top_area_2_columns', 'layout_top_area_2_columns.png', '_sys_layout_top_area_2_columns', 'layout_top_area_2_columns.html', 3),
  3292. (10, 'topbottom_area_2_columns', 'layout_topbottom_area_2_columns.png', '_sys_layout_topbottom_area_2_columns', 'layout_topbottom_area_2_columns.html', 4),
  3293. (11, 'bottom_area_2_columns', 'layout_bottom_area_2_columns.png', '_sys_layout_bottom_area_2_columns', 'layout_bottom_area_2_columns.html', 3),
  3294. (12, 'topbottom_area_bar_right', 'layout_topbottom_area_bar_right.png', '_sys_layout_topbottom_area_bar_right', 'layout_topbottom_area_bar_right.html', 4),
  3295. (13, 'topbottom_area_bar_left', 'layout_topbottom_area_bar_left.png', '_sys_layout_topbottom_area_bar_left', 'layout_topbottom_area_bar_left.html', 4);
  3296. CREATE TABLE IF NOT EXISTS `sys_pages_design_boxes` (
  3297. `id` int(11) NOT NULL,
  3298. `title` varchar(255) NOT NULL,
  3299. `template` varchar(255) NOT NULL,
  3300. `order` int(11) NOT NULL,
  3301. PRIMARY KEY (`id`)
  3302. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3303. INSERT INTO `sys_pages_design_boxes` (`id`, `title`, `template`, `order`) VALUES
  3304. (0, '_sys_designbox_0', 'designbox_0.html', '2'),
  3305. (1, '_sys_designbox_1', 'designbox_1.html', '8'),
  3306. (2, '_sys_designbox_2', 'designbox_2.html', '1'),
  3307. (3, '_sys_designbox_3', 'designbox_3.html', '4'),
  3308. (4, '_sys_designbox_4', 'designbox_4.html', '6'),
  3309. (10, '_sys_designbox_10', 'designbox_10.html', '3'),
  3310. (11, '_sys_designbox_11', 'designbox_11.html', '9'),
  3311. (13, '_sys_designbox_13', 'designbox_13.html', '5'),
  3312. (14, '_sys_designbox_14', 'designbox_14.html', '7');
  3313. CREATE TABLE IF NOT EXISTS `sys_pages_blocks` (
  3314. `id` int(11) NOT NULL AUTO_INCREMENT,
  3315. `object` varchar(64) NOT NULL,
  3316. `cell_id` int(11) NOT NULL DEFAULT '1',
  3317. `module` varchar(32) NOT NULL,
  3318. `title_system` varchar(255) NOT NULL,
  3319. `title` varchar(255) NOT NULL,
  3320. `designbox_id` int(11) NOT NULL DEFAULT '11',
  3321. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3322. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  3323. `type` enum('raw','html','lang','image','rss','menu','service') NOT NULL DEFAULT 'raw',
  3324. `content` text NOT NULL,
  3325. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3326. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  3327. `active` tinyint(4) NOT NULL DEFAULT '1',
  3328. `order` int(11) NOT NULL,
  3329. PRIMARY KEY (`id`)
  3330. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3331. -- skeleton blocks
  3332. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  3333. ('', 0, 'skeletons', '_sys_block_type_raw', 11, 2147483647, 'raw', '', 0, 1, 1, 0),
  3334. ('', 0, 'skeletons', '_sys_block_type_html', 11, 2147483647, 'html', '', 0, 1, 1, 0),
  3335. ('', 0, 'skeletons', '_sys_block_type_rss', 11, 2147483647, 'rss', '', 0, 1, 1, 0),
  3336. ('', 0, 'skeletons', '_sys_block_type_image', 11, 2147483647, 'image', '', 0, 1, 1, 0),
  3337. ('', 0, 'skeletons', '_sys_block_type_lang', 11, 2147483647, 'lang', '', 0, 1, 1, 0),
  3338. ('', 0, 'skeletons', '_sys_block_type_menu', 11, 2147483647, 'menu', '', 0, 1, 1, 0),
  3339. ('', 0, 'skeletons', '_sys_block_type_service', 11, 2147483647, 'service', '', 0, 0, 1, 0);
  3340. -- content blocks
  3341. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `order`) VALUES
  3342. ('sys_home', 1, 'system', '', '_sys_page_block_title_homepage_menu', 3, 2147483647, 'menu', 'sys_homepage', 0, 1, 0),
  3343. ('sys_about', 1, 'system', '', '_sys_page_block_title_about', 11, 2147483647, 'lang', '_sys_page_lang_block_about', 0, 1, 1),
  3344. ('sys_terms', 1, 'system', '', '_sys_page_block_title_terms', 11, 2147483647, 'lang', '_sys_page_lang_block_terms', 0, 1, 1),
  3345. ('sys_privacy', 1, 'system', '', '_sys_page_block_title_privacy', 11, 2147483647, 'lang', '_sys_page_lang_block_privacy', 0, 1, 1),
  3346. ('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),
  3347. ('sys_dashboard', 2, 'system', '', '_sys_page_block_title_profile_membership', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:18:"profile_membership";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1),
  3348. ('sys_dashboard', 3, 'system', '', '_sys_page_block_title_manage_tools', 11, 192, 'menu', 'sys_account_dashboard_manage_tools', 0, 1, 0),
  3349. ('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),
  3350. ('sys_login', 1, 'system', '_sys_page_block_system_title_login', '_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),
  3351. ('sys_login', 0, 'system', '_sys_page_block_system_title_login_only', '_sys_page_block_title_login', 11, 2147483647, 'service', 'a:3:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:15:\"login_form_only\";s:5:\"class\";s:17:\"TemplServiceLogin\";}', 0, 1, 0),
  3352. ('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),
  3353. ('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),
  3354. ('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),
  3355. ('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),
  3356. ('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),
  3357. ('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),
  3358. ('sys_account_profile_switcher', 1, 'system', '', '_sys_page_block_title_account_profile_create', 11, 2147483647, 'menu', 'sys_add_profile', 0, 1, 1),
  3359. ('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, 2),
  3360. ('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),
  3361. ('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),
  3362. -- studio dashboard blocks
  3363. ('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),
  3364. ('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),
  3365. ('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),
  3366. ('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);
  3367. -- --------------------------------------------------------
  3368. CREATE TABLE `sys_objects_metatags` (
  3369. `id` int(11) NOT NULL AUTO_INCREMENT,
  3370. `object` varchar(64) NOT NULL,
  3371. `table_keywords` varchar(255) NOT NULL,
  3372. `table_locations` varchar(255) NOT NULL,
  3373. `table_mentions` varchar(255) NOT NULL,
  3374. `override_class_name` varchar(255) NOT NULL,
  3375. `override_class_file` varchar(255) NOT NULL,
  3376. PRIMARY KEY (`id`),
  3377. UNIQUE KEY `object` (`object`)
  3378. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3379. INSERT INTO `sys_objects_metatags` (`object`, `table_keywords`, `table_locations`, `table_mentions`, `override_class_name`, `override_class_file`) VALUES
  3380. ('sys_cmts', 'sys_cmts_meta_keywords', '', '', '', '');
  3381. -- --------------------------------------------------------
  3382. CREATE TABLE `sys_objects_category` (
  3383. `id` int(11) NOT NULL AUTO_INCREMENT,
  3384. `object` varchar(64) NOT NULL,
  3385. `search_object` varchar(64) NOT NULL,
  3386. `form_object` varchar(64) NOT NULL,
  3387. `list_name` varchar(255) NOT NULL,
  3388. `table` varchar(255) NOT NULL,
  3389. `field` varchar(255) NOT NULL,
  3390. `join` varchar(255) NOT NULL,
  3391. `where` varchar(255) NOT NULL,
  3392. `override_class_name` varchar(255) NOT NULL,
  3393. `override_class_file` varchar(255) NOT NULL,
  3394. PRIMARY KEY (`id`),
  3395. UNIQUE KEY `object` (`object`),
  3396. UNIQUE KEY `form_object` (`form_object`,`list_name`)
  3397. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3398. -- --------------------------------------------------------
  3399. --
  3400. -- Table structure for table `sys_objects_live_updates`
  3401. --
  3402. CREATE TABLE `sys_objects_live_updates` (
  3403. `id` int(11) unsigned NOT NULL auto_increment,
  3404. `name` varchar(50) NOT NULL default '',
  3405. `frequency` tinyint(4) NOT NULL DEFAULT '1',
  3406. `service_call` text NOT NULL default '',
  3407. `active` tinyint(4) NOT NULL DEFAULT '1',
  3408. PRIMARY KEY (`id`),
  3409. UNIQUE KEY `name` (`name`)
  3410. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3411. -- --------------------------------------------------------
  3412. --
  3413. -- Table structure for table `sys_objects_payments`
  3414. --
  3415. CREATE TABLE IF NOT EXISTS `sys_objects_payments` (
  3416. `id` int(11) NOT NULL AUTO_INCREMENT,
  3417. `object` varchar(32) NOT NULL,
  3418. `title` varchar(255) NOT NULL,
  3419. `uri` varchar(32) NOT NULL default '',
  3420. PRIMARY KEY (`id`),
  3421. UNIQUE KEY `object` (`object`),
  3422. UNIQUE KEY `uri` (`uri`)
  3423. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3424. -- --------------------------------------------------------
  3425. --
  3426. -- Table structure for table `sys_std_pages`
  3427. --
  3428. CREATE TABLE `sys_std_pages` (
  3429. `id` int(11) unsigned NOT NULL auto_increment,
  3430. `index` int(11) unsigned NOT NULL default '0',
  3431. `name` varchar(64) NOT NULL default '',
  3432. `header` varchar(255) NOT NULL default '',
  3433. `caption` varchar(255) NOT NULL default '',
  3434. `icon` varchar(255) NOT NULL default '',
  3435. PRIMARY KEY (`id`),
  3436. UNIQUE KEY `name` (`name`)
  3437. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3438. -- --------------------------------------------------------
  3439. --
  3440. -- Table structure for table `sys_std_widgets`
  3441. --
  3442. CREATE TABLE `sys_std_widgets` (
  3443. `id` int(11) unsigned NOT NULL auto_increment,
  3444. `page_id` varchar(255) NOT NULL default '',
  3445. `module` varchar(32) NOT NULL default '',
  3446. `url` varchar(255) NOT NULL default '',
  3447. `click` text NOT NULL default '',
  3448. `icon` varchar(255) NOT NULL default '',
  3449. `caption` varchar(255) NOT NULL default '',
  3450. `cnt_notices` text NOT NULL default '',
  3451. `cnt_actions` text NOT NULL default '',
  3452. `bookmark` tinyint(4) unsigned NOT NULL default '0',
  3453. PRIMARY KEY (`ID`),
  3454. UNIQUE KEY `widget-page` (`id`, `page_id`)
  3455. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3456. -- --------------------------------------------------------
  3457. --
  3458. -- Table structure for table `sys_std_pages_widgets`
  3459. --
  3460. CREATE TABLE `sys_std_pages_widgets` (
  3461. `id` int(11) unsigned NOT NULL auto_increment,
  3462. `page_id` int(11) unsigned NOT NULL default '0',
  3463. `widget_id` int(11) unsigned NOT NULL default '0',
  3464. `order` int(11) unsigned NOT NULL default '0',
  3465. PRIMARY KEY (`id`),
  3466. UNIQUE KEY `wid_pag` (`widget_id`, `page_id`)
  3467. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3468. --
  3469. -- Dumping data for table `sys_std_pages`
  3470. --
  3471. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3472. (0, 'home', '_adm_page_cpt_home', '_adm_page_cpt_home', '');
  3473. SET @iIdHome = LAST_INSERT_ID();
  3474. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3475. (4, 'dashboard', '_adm_page_cpt_dashboard', '_adm_page_cpt_dashboard', 'wi-dashboard.svg');
  3476. SET @iIdDashboard = LAST_INSERT_ID();
  3477. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3478. (3, 'settings', '_adm_page_cpt_settings', '_adm_page_cpt_settings', 'wi-settings.svg');
  3479. SET @iIdSettings = LAST_INSERT_ID();
  3480. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3481. (3, 'store', '_adm_page_cpt_store', '_adm_page_cpt_store', 'wi-store.svg');
  3482. SET @iIdStore = LAST_INSERT_ID();
  3483. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3484. (3, 'designer', '_adm_page_cpt_designer', '_adm_page_cpt_designer', 'wi-designer.svg');
  3485. SET @iIdDesigner = LAST_INSERT_ID();
  3486. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3487. (3, 'polyglot', '_adm_page_cpt_polyglot', '_adm_page_cpt_polyglot', 'wi-polyglot.svg');
  3488. SET @iIdPolyglot = LAST_INSERT_ID();
  3489. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3490. (3, 'builder_pages', '_adm_page_cpt_builder_pages', '_adm_page_cpt_builder_pages', 'wi-bld-pages.svg');
  3491. SET @iIdBuilderPages = LAST_INSERT_ID();
  3492. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3493. (3, 'builder_menus', '_adm_page_cpt_builder_menus', '_adm_page_cpt_builder_menus', 'wi-bld-navigation.svg');
  3494. SET @iIdBuilderMenus = LAST_INSERT_ID();
  3495. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3496. (3, 'builder_forms', '_adm_page_cpt_builder_forms', '_adm_page_cpt_builder_forms', 'wi-bld-forms.svg');
  3497. SET @iIdBuilderForms = LAST_INSERT_ID();
  3498. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3499. (3, 'builder_permissions', '_adm_page_cpt_builder_permissions', '_adm_page_cpt_builder_permissions', 'wi-bld-permissions.svg');
  3500. SET @iIdBuilderPermissions = LAST_INSERT_ID();
  3501. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3502. (3, 'storages', '_adm_page_cpt_storages', '_adm_page_cpt_storages', 'wi-storages.svg');
  3503. SET @iIdManagerStorages = LAST_INSERT_ID();
  3504. --
  3505. -- Dumping data for table `sys_std_widgets` and `sys_std_pages_widgets`
  3506. -- Home Page
  3507. --
  3508. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3509. (@iIdSettings, 'system', '{url_studio}settings.php', '', 'wi-settings.svg', '_adm_wgt_cpt_settings', '', '');
  3510. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  3511. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3512. (@iIdStore, 'system', '{url_studio}store.php', '', 'wi-store.svg', '_adm_wgt_cpt_store', '', '');
  3513. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 2);
  3514. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3515. (@iIdDashboard, 'system', '{url_studio}dashboard.php', '', 'wi-dashboard.svg', '_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";}', '');
  3516. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 3);
  3517. --
  3518. -- Templates Page
  3519. --
  3520. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3521. (@iIdDesigner, 'system', '{url_studio}designer.php', '', 'wi-designer.svg', '_adm_wgt_cpt_designer', '', '');
  3522. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  3523. --
  3524. -- Languages Page
  3525. --
  3526. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3527. (@iIdPolyglot, 'system', '{url_studio}polyglot.php', '', 'wi-polyglot.svg', '_adm_wgt_cpt_polyglot', '', '');
  3528. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  3529. --
  3530. -- Builders Page
  3531. --
  3532. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3533. (@iIdBuilderPages, 'system', '{url_studio}builder_page.php', '', 'wi-bld-pages.svg', '_adm_wgt_cpt_builder_pages', '', '');
  3534. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  3535. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3536. (@iIdBuilderMenus, 'system', '{url_studio}builder_menu.php', '', 'wi-bld-navigation.svg', '_adm_wgt_cpt_builder_menus', '', '');
  3537. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 2);
  3538. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3539. (@iIdBuilderForms, 'system', '{url_studio}builder_forms.php', '', 'wi-bld-forms.svg', '_adm_wgt_cpt_builder_forms', '', '');
  3540. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 3);
  3541. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3542. (@iIdBuilderPermissions, 'system', '{url_studio}builder_permissions.php', '', 'wi-bld-permissions.svg', '_adm_wgt_cpt_builder_permissions', '', '');
  3543. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 4);
  3544. --
  3545. -- Storages Page
  3546. --
  3547. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3548. (@iIdManagerStorages, 'system', '{url_studio}storages.php', '', 'wi-storages.svg', '_adm_wgt_cpt_storages', '', '');
  3549. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);