system.sql 247 KB

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