system.sql 253 KB

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