system.sql 285 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854
  1. --
  2. -- Database: v 9.0
  3. --
  4. -- --------------------------------------------------------
  5. DROP TABLE IF EXISTS `sys_keys`, `sys_objects_editor`, `sys_objects_player`, `sys_objects_embeds`, `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_meta_mentions`, `sys_cmts_votes`, `sys_cmts_votes_track`, `sys_cmts_reactions`, `sys_cmts_reactions_track`, `sys_cmts_reports`, `sys_cmts_reports_track`, `sys_cmts_scores`, `sys_cmts_scores_track`, `sys_email_templates`, `sys_queue_push`, `sys_queue_email`, `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_objects_search_extended`, `sys_search_extended_fields`, `sys_statistics`, `sys_alerts`, `sys_alerts_handlers`, `sys_injections`, `sys_injections_admin`, `sys_modules`, `sys_modules_file_tracks`, `sys_modules_relations`, `sys_permalinks`, `sys_objects_privacy`, `sys_privacy_defaults`, `sys_privacy_groups`, `sys_objects_auths`, `sys_objects_score`, `sys_objects_vote`, `sys_objects_report`, `sys_objects_view`, `sys_objects_favorite`, `sys_objects_feature`, `sys_objects_chart`, `sys_objects_content_info`, `sys_content_info_grids`, `sys_cron_jobs`, `sys_objects_storage`, `sys_objects_uploader`, `sys_storage_user_quotas`, `sys_storage_tokens`, `sys_storage_ghosts`, `sys_storage_deletions`, `sys_storage_mime_types`, `sys_objects_transcoder`, `sys_transcoder_images_files`, `sys_transcoder_videos_files`, `sys_transcoder_audio_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_relations`, `sys_profiles_conn_subscriptions`, `sys_profiles_conn_friends`, `sys_objects_page`, `sys_pages_types`, `sys_pages_layouts`, `sys_pages_design_boxes`, `sys_pages_blocks`, `sys_labels`, `sys_objects_metatags`, `sys_objects_category`, `sys_objects_live_updates`, `sys_objects_payments`, `sys_files`, `sys_images`, `sys_images_custom`, `sys_images_resized`, `sys_preloader`, `sys_std_pages`, `sys_std_widgets`, `sys_std_pages_widgets`;
  6. ALTER DATABASE DEFAULT CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
  7. SET NAMES 'utf8mb4' COLLATE 'utf8mb4_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. );
  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. );
  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 `sys_objects_player` (
  30. `id` int(11) NOT NULL AUTO_INCREMENT,
  31. `object` varchar(64) NOT NULL,
  32. `title` varchar(255) NOT NULL,
  33. `skin` varchar(255) NOT NULL,
  34. `override_class_name` varchar(255) NOT NULL,
  35. `override_class_file` varchar(255) NOT NULL,
  36. PRIMARY KEY (`id`),
  37. UNIQUE KEY `object` (`object`)
  38. );
  39. INSERT INTO `sys_objects_player` (`object`, `title`, `skin`, `override_class_name`, `override_class_file`) VALUES
  40. ('sys_html5', 'HTML5', '', 'BxTemplPlayerHtml5', '');
  41. -- --------------------------------------------------------
  42. CREATE TABLE `sys_objects_embeds` (
  43. `id` int(11) NOT NULL AUTO_INCREMENT,
  44. `object` varchar(64) NOT NULL,
  45. `title` varchar(255) NOT NULL,
  46. `override_class_name` varchar(255) NOT NULL,
  47. `override_class_file` varchar(255) NOT NULL,
  48. PRIMARY KEY (`id`),
  49. UNIQUE KEY `object` (`object`)
  50. );
  51. INSERT INTO `sys_objects_embeds` (`object`, `title`, `override_class_name`, `override_class_file`) VALUES
  52. ('sys_embedly', 'Embedly', 'BxTemplEmbedEmbedly', ''),
  53. ('sys_iframely', 'Iframely', 'BxTemplEmbedIframely', '');
  54. -- --------------------------------------------------------
  55. CREATE TABLE IF NOT EXISTS `sys_objects_file_handlers` (
  56. `id` int(11) NOT NULL AUTO_INCREMENT,
  57. `object` varchar(64) NOT NULL,
  58. `title` varchar(255) NOT NULL,
  59. `preg_ext` text NOT NULL,
  60. `active` tinyint(4) NOT NULL,
  61. `order` int(11) NOT NULL,
  62. `override_class_name` varchar(255) NOT NULL,
  63. `override_class_file` varchar(255) NOT NULL,
  64. PRIMARY KEY (`id`),
  65. UNIQUE KEY `object` (`object`)
  66. );
  67. INSERT INTO `sys_objects_file_handlers` (`object`, `title`, `preg_ext`, `active`, `order`, `override_class_name`, `override_class_file`) VALUES
  68. ('sys_ms_viewer', '_sys_file_handlers_ms_viewer', '/\\.(doc|docx|xls|xlsx|ppt|pptx)$/i', 1, 1, 'BxTemplFileHandlerMsViewer', ''),
  69. ('sys_google_viewer', '_sys_file_handlers_google_viewer', '/\\.(pdf|doc|docx|xls|xlsx|ppt|pptx|ai|svg|ps|tif|tiff)$/i', 1, 2, 'BxTemplFileHandlerGoogleViewer', ''),
  70. ('sys_images_viewer', '_sys_file_handlers_images_viewer', '/\\.(jpg|jpeg|png|gif|webp)$/i', 1, 3, 'BxTemplFileHandlerImagesViewer', ''),
  71. ('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', '');
  72. -- --------------------------------------------------------
  73. CREATE TABLE `sys_objects_captcha` (
  74. `id` int(11) NOT NULL AUTO_INCREMENT,
  75. `object` varchar(64) NOT NULL,
  76. `title` varchar(255) NOT NULL,
  77. `override_class_name` varchar(255) NOT NULL,
  78. `override_class_file` varchar(255) NOT NULL,
  79. PRIMARY KEY (`id`)
  80. );
  81. INSERT INTO `sys_objects_captcha` (`object`, `title`, `override_class_name`, `override_class_file`) VALUES
  82. ('sys_recaptcha', 'reCAPTCHA', 'BxTemplCaptchaReCAPTCHA', ''),
  83. ('sys_recaptcha_new', 'reCAPTCHA New', 'BxTemplCaptchaReCAPTCHANew', ''),
  84. ('sys_recaptcha_invisible', 'reCAPTCHA Invisible', 'BxTemplCaptchaReCAPTCHAInvisible', '');
  85. -- --------------------------------------------------------
  86. CREATE TABLE `sys_objects_auths` (
  87. `ID` int(10) unsigned NOT NULL auto_increment,
  88. `Name` varchar(64) NOT NULL,
  89. `Title` varchar(128) NOT NULL,
  90. `Link` varchar(255) NOT NULL,
  91. `OnClick` varchar(255) NOT NULL,
  92. `Icon` varchar(64) NOT NULL,
  93. `Style` varchar(255) NOT NULL,
  94. PRIMARY KEY (`ID`)
  95. );
  96. -- --------------------------------------------------------
  97. --
  98. -- Table structure for table `sys_objects_cmts`
  99. --
  100. CREATE TABLE `sys_objects_cmts` (
  101. `ID` int(10) unsigned NOT NULL auto_increment,
  102. `Name` varchar(64) NOT NULL,
  103. `Module` varchar(32) NOT NULL,
  104. `Table` varchar(50) NOT NULL,
  105. `CharsPostMin` int(10) NOT NULL,
  106. `CharsPostMax` int(10) NOT NULL,
  107. `CharsDisplayMax` int(10) NOT NULL,
  108. `Html` smallint(1) NOT NULL,
  109. `PerView` smallint(6) NOT NULL,
  110. `PerViewReplies` smallint(6) NOT NULL,
  111. `BrowseType` varchar(50) NOT NULL,
  112. `IsBrowseSwitch` smallint(1) NOT NULL,
  113. `PostFormPosition` varchar(50) NOT NULL,
  114. `NumberOfLevels` smallint(6) NOT NULL,
  115. `IsDisplaySwitch` smallint(1) NOT NULL,
  116. `IsRatable` smallint(1) NOT NULL,
  117. `ViewingThreshold` smallint(6) NOT NULL,
  118. `IsOn` smallint(1) NOT NULL,
  119. `RootStylePrefix` varchar(16) NOT NULL default 'cmt',
  120. `BaseUrl` varchar(256) NOT NULL,
  121. `ObjectVote` varchar(64) NOT NULL default '',
  122. `ObjectReaction` varchar(64) NOT NULL default '',
  123. `ObjectScore` varchar(64) NOT NULL default '',
  124. `ObjectReport` varchar(64) NOT NULL default '',
  125. `TriggerTable` varchar(32) NOT NULL,
  126. `TriggerFieldId` varchar(32) NOT NULL,
  127. `TriggerFieldAuthor` varchar(32) NOT NULL,
  128. `TriggerFieldTitle` varchar(32) NOT NULL,
  129. `TriggerFieldComments` varchar(32) NOT NULL,
  130. `ClassName` varchar(32) NOT NULL,
  131. `ClassFile` varchar(256) NOT NULL,
  132. PRIMARY KEY (`ID`)
  133. );
  134. -- --------------------------------------------------------
  135. CREATE TABLE `sys_queue_push` (
  136. `id` int(11) NOT NULL auto_increment,
  137. `profile_id` int(11) NOT NULL default '0',
  138. `message` text NOT NULL default '',
  139. PRIMARY KEY (`id`)
  140. );
  141. -- --------------------------------------------------------
  142. CREATE TABLE `sys_queue_email` (
  143. `id` int(11) NOT NULL auto_increment,
  144. `email` varchar(64) NOT NULL default '',
  145. `subject` varchar(255) NOT NULL default '',
  146. `body` text NOT NULL default '',
  147. `params` text NOT NULL default '',
  148. PRIMARY KEY (`id`)
  149. );
  150. -- --------------------------------------------------------
  151. CREATE TABLE IF NOT EXISTS `sys_email_templates` (
  152. `ID` int(11) unsigned NOT NULL auto_increment,
  153. `Module` varchar(32) NOT NULL,
  154. `NameSystem` varchar(255) NOT NULL,
  155. `Name` varchar(255) NOT NULL,
  156. `Subject` varchar(255) NOT NULL,
  157. `Body` varchar(255) NOT NULL,
  158. PRIMARY KEY (`ID`)
  159. );
  160. INSERT INTO `sys_email_templates` (`Module`, `NameSystem`, `Name`, `Subject`, `Body`) VALUES
  161. ('system', '_sys_et_txt_name_system_admin_email', 't_AdminEmail', '_sys_et_txt_subject_admin_email', '_sys_et_txt_body_admin_email'),
  162. ('system', '_sys_et_txt_name_system_confirmation', 't_Confirmation', '_sys_et_txt_subject_confirmation', '_sys_et_txt_body_confirmation'),
  163. ('system', '_sys_et_txt_name_system_forgot', 't_Forgot', '_sys_et_txt_subject_forgot', '_sys_et_txt_body_forgot'),
  164. ('system', '_sys_et_txt_name_system_password_reset', 't_PasswordReset', '_sys_et_txt_subject_password_reset', '_sys_et_txt_body_password_reset'),
  165. ('system', '_sys_et_txt_name_system_mem_expiration', 't_MemExpiration', '_sys_et_txt_subject_mem_expiration', '_sys_et_txt_body_mem_expiration'),
  166. ('system', '_sys_et_txt_name_system_mem_changed', 't_MemChanged', '_sys_et_txt_subject_mem_changed', '_sys_et_txt_body_mem_changed'),
  167. ('system', '_sys_et_txt_name_system_comment_replied', 't_CommentReplied', '_sys_et_txt_subject_comment_replied', '_sys_et_txt_body_comment_replied'),
  168. ('system', '_sys_et_txt_name_system_reported', 't_Reported', '_sys_et_txt_subject_system_reported', '_sys_et_txt_body_system_reported'),
  169. ('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'),
  170. ('system', '_sys_et_txt_name_system_account', 't_Account', '_sys_et_txt_subject_account', '_sys_et_txt_body_account'),
  171. ('system', '_sys_et_txt_name_system_pruning', 't_Pruning', '_sys_et_txt_subject_pruning', '_sys_et_txt_body_pruning'),
  172. ('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'),
  173. ('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'),
  174. ('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'),
  175. ('system', '_sys_et_txt_name_upgrade_failed', 't_UpgradeFailed', '_sys_et_txt_subject_upgrade_failed', '_sys_et_txt_body_upgrade_failed'),
  176. ('system', '_sys_et_txt_name_upgrade_modules_failed', 't_UpgradeModulesFailed', '_sys_et_txt_subject_upgrade_modules_failed', '_sys_et_txt_body_upgrade_modules_failed'),
  177. ('system', '_sys_et_txt_name_upgrade_success', 't_UpgradeSuccess', '_sys_et_txt_subject_upgrade_success', '_sys_et_txt_body_upgrade_success'),
  178. ('system', '_sys_et_txt_name_upgrade_modules_success', 't_UpgradeModulesSuccess', '_sys_et_txt_subject_upgrade_modules_success', '_sys_et_txt_body_upgrade_modules_success'),
  179. ('system', '_sys_et_txt_name_bg_operation_failed', 't_BgOperationFailed', '_sys_et_txt_subject_bg_operation_failed', '_sys_et_txt_body_bg_operation_failed');
  180. -- --------------------------------------------------------
  181. --
  182. -- Table structure for table `sys_options`
  183. --
  184. CREATE TABLE `sys_options` (
  185. `id` int(11) unsigned NOT NULL auto_increment,
  186. `category_id` int(11) unsigned NOT NULL default '0',
  187. `name` varchar(64) NOT NULL default '',
  188. `caption` varchar(255) NOT NULL default '',
  189. `value` mediumtext NOT NULL,
  190. `type` enum('value','digit','text','checkbox','select','combobox','file','image','list','rlist','rgb','rgba') NOT NULL default 'digit',
  191. `extra` text NOT NULL default '',
  192. `check` varchar(32) NOT NULL,
  193. `check_params` text NOT NULL,
  194. `check_error` varchar(255) NOT NULL default '',
  195. `order` int(11) default '0',
  196. PRIMARY KEY (`id`),
  197. UNIQUE KEY `name`(`name`),
  198. KEY `category_id` (`category_id`)
  199. );
  200. --
  201. -- Table structure for table `sys_options_categories`
  202. --
  203. CREATE TABLE `sys_options_categories` (
  204. `id` int(11) unsigned NOT NULL auto_increment,
  205. `type_id` int(11) unsigned NOT NULL default '0',
  206. `name` varchar(64) NOT NULL default '',
  207. `caption` varchar(64) NOT NULL default '',
  208. `hidden` tinyint(1) NOT NULL default '0',
  209. `order` int(11) default '0',
  210. PRIMARY KEY (`id`),
  211. UNIQUE KEY `name`(`name`)
  212. );
  213. --
  214. -- Table structure for table `sys_options_types`
  215. --
  216. CREATE TABLE `sys_options_types` (
  217. `id` int(11) unsigned NOT NULL auto_increment,
  218. `group` varchar(64) NOT NULL default '',
  219. `name` varchar(64) NOT NULL default '',
  220. `caption` varchar(64) NOT NULL default '',
  221. `icon` varchar(255) NOT NULL default '',
  222. `order` int(11) default '0',
  223. PRIMARY KEY (`id`),
  224. UNIQUE KEY `name`(`name`)
  225. );
  226. --
  227. -- Dumping data for tables `sys_options_types`
  228. --
  229. INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES ('system', 'system', '_adm_stg_cpt_type_system', 'cogs', 1);
  230. SET @iTypeId = LAST_INSERT_ID();
  231. --
  232. -- CATEGORY (HIDDEN): Hidden
  233. --
  234. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'hidden', '_adm_stg_cpt_category_hidden', 1, 0);
  235. SET @iCategoryId = LAST_INSERT_ID();
  236. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  237. (@iCategoryId, 'sys_cron_time', '_adm_stg_cpt_option_sys_cron_time', '0', 'digit', '', '', '', 2),
  238. (@iCategoryId, 'sys_install_time', '_adm_stg_cpt_option_sys_install_time', '0', 'digit', '', '', '', 3),
  239. (@iCategoryId, 'sys_revision', '_adm_stg_cpt_option_sys_revision', '0', 'digit', '', '', '', 5),
  240. (@iCategoryId, 'sys_eq_time', '_adm_stg_cpt_option_sys_eq_time', '0', 'digit', '', '', '', 6),
  241. (@iCategoryId, 'sys_push_queue_time', '_adm_stg_cpt_option_sys_push_queue_time', '0', 'digit', '', '', '', 7),
  242. (@iCategoryId, 'sys_ftp_login', '_adm_stg_cpt_option_sys_ftp_login', '', 'digit', '', '', '', 10),
  243. (@iCategoryId, 'sys_ftp_password', '_adm_stg_cpt_option_sys_ftp_password', '', 'digit', '', '', '', 11),
  244. (@iCategoryId, 'sys_ftp_dir', '_adm_stg_cpt_option_sys_ftp_dir', '', 'digit', '', '', '', 12),
  245. (@iCategoryId, 'sys_template_cache_image_enable', '_adm_stg_cpt_option_sys_template_cache_image_enable', '', 'checkbox', '', '', '', 20),
  246. (@iCategoryId, 'sys_template_cache_image_max_size', '_adm_stg_cpt_option_sys_template_cache_image_max_size', '5', 'digit', '', '', '', 21),
  247. (@iCategoryId, 'sys_email_attachable_email_templates', '_adm_stg_cpt_option_sys_email_attachable_email_templates', '', 'digit', '', '', '', 31),
  248. (@iCategoryId, 'sys_redirect_after_account_added', '_adm_stg_cpt_option_sys_redirect_after_account_added', 'page.php?i=account-profile-switcher&register=1', 'digit', '', '', '', 40),
  249. (@iCategoryId, 'sys_redirect_after_email_confirmation', '_adm_stg_cpt_option_sys_redirect_after_email_confirmation', '', 'digit', '', '', '', 41),
  250. (@iCategoryId, 'sys_editor_default', '_adm_stg_cpt_option_sys_editor_default', 'sys_tinymce', 'digit', '', '', '', 50),
  251. (@iCategoryId, 'sys_captcha_default', '_adm_stg_cpt_option_sys_captcha_default', 'sys_recaptcha_new', 'digit', '', '', '', 51),
  252. (@iCategoryId, 'sys_player_default', '_adm_stg_cpt_option_sys_player_default', 'sys_html5', 'digit', '', '', '', 55),
  253. (@iCategoryId, 'sys_player_default_format', '_adm_stg_cpt_option_sys_player_default_format', 'sd', 'select', 'sd,hd', '', '', 56),
  254. (@iCategoryId, 'sys_live_updates_interval', '_adm_stg_cpt_option_sys_live_updates_interval', '10000', 'digit', '', '', '', 60),
  255. (@iCategoryId, 'sys_tinymce_plugins_mini', '_adm_stg_cpt_option_sys_tinymce_plugins_mini', 'autolink,image,link,lists,paste,fullscreen', 'digit', '', '', '', 70),
  256. (@iCategoryId, 'sys_tinymce_toolbar_mini', '_adm_stg_cpt_option_sys_tinymce_toolbar_mini', 'bold italic underline removeformat | bullist numlist | alignleft aligncenter alignright | blockquote | link unlink image | fullscreen', 'digit', '', '', '', 71),
  257. (@iCategoryId, 'sys_tinymce_plugins_standard', '_adm_stg_cpt_option_sys_tinymce_plugins_standard', 'advlist,autolink,autosave,code,hr,image,link,lists,media,paste,fullscreen', 'digit', '', '', '', 73),
  258. (@iCategoryId, 'sys_tinymce_toolbar_standard', '_adm_stg_cpt_option_sys_tinymce_toolbar_standard', 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | fullscreen', 'digit', '', '', '', 74),
  259. (@iCategoryId, 'sys_tinymce_plugins_full', '_adm_stg_cpt_option_sys_tinymce_plugins_full', 'advlist,anchor,autolink,autoresize,autosave,charmap,code,emoticons,hr,image,link,lists,media,nonbreaking,pagebreak,preview,paste,save,searchreplace,table,textcolor,visualblocks,fullscreen', 'digit', '', '', '', 76),
  260. (@iCategoryId, 'sys_tinymce_toolbar_full', '_adm_stg_cpt_option_sys_tinymce_toolbar_full', 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image, preview media | forecolor emoticons | fullscreen', 'digit', '', '', '', 77),
  261. (@iCategoryId, 'sys_search_keyword_min_len', '_adm_stg_cpt_option_sys_search_keyword_min_len', '1', 'digit', '', '', '', 80),
  262. (@iCategoryId, 'sys_relations', '_adm_stg_cpt_option_sys_relations', '', 'list', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:21:"get_options_relations";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', '', '', 90);
  263. --
  264. -- CATEGORY (HIDDEN): System
  265. --
  266. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'system', '_adm_stg_cpt_category_system', 1, 1);
  267. SET @iCategoryId = LAST_INSERT_ID();
  268. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  269. (@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="100%" 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 #ccc; border-radius:3px; 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),
  270. (@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),
  271. (@iCategoryId, 'sys_site_logo', '', '0', 'digit', '', '', '', 20),
  272. (@iCategoryId, 'sys_site_logo_alt', '_adm_dsg_txt_alt_text', '0', 'text', '', '', '', 21),
  273. (@iCategoryId, 'sys_site_icon', '', '0', 'digit', '', '', '', 22),
  274. (@iCategoryId, 'sys_site_logo_width', '_adm_stg_cpt_option_sys_site_logo_width', '240', 'digit', '', '', '', 23),
  275. (@iCategoryId, 'sys_site_logo_height', '_adm_stg_cpt_option_sys_site_logo_height', '48', 'digit', '', '', '', 24),
  276. (@iCategoryId, 'sys_site_splash_code', '', '<style>\r\n /*--- Splash ---*/\r\n .bx-page {\r\n position: relative;\r\n }\r\n .bx-header {\r\n position: relative;\r\n display: -webkit-flex;\r\n display: flex;\r\n -webkit-align-items: center;\r\n align-items: center;\r\n justify-content: center;\r\n -webkit-justify-content: center;\r\n height: 4rem;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\r\n font-weight: 700;\r\n font-size: 2rem;\r\n }\r\n .bx-splash {\r\n position: relative;\r\n display: -webkit-flex;\r\n display: flex;\r\n -webkit-align-items: center;\r\n align-items: center;\r\n min-height: 100vh;\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 .bx-spl-line {\r\n position: relative;\r\n display: -webkit-flex;\r\n display: flex;\r\n -webkit-align-items: stretch;\r\n align-items: stretch;\r\n }\r\n .bx-media-phone .bx-spl-line {\r\n -webkit-flex-direction: column;\r\n flex-direction: column;\r\n }\r\n .bx-spl-cell {\r\n position: relative;\r\n }\r\n .bx-media-phone .bx-spl-cell {\r\n -webkit-basis: 100% !important; \r\n flex-basis: 100% !important;\r\n width: 100% !important;\r\n }\r\n .bx-spl-line.bx-spl-l1 .bx-spl-cell {\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-line.bx-spl-l1 .bx-spl-cell.bx-spl-c1 {\r\n -webkit-flex: 1 1 70%; \r\n flex: 1 1 70%;\r\n width: 70%;\r\n }\r\n .bx-media-phone .bx-spl-line.bx-spl-l1 .bx-spl-cell.bx-spl-c1 {\r\n text-align: center;\r\n }\r\n .bx-spl-line.bx-spl-l1 .bx-spl-cell.bx-spl-c2 {\r\n -webkit-flex: 0 0 30%; \r\n flex: 0 1 30%;\r\n -webkit-justify-content: center;\r\n justify-content: center;\r\n width: 30%;\r\n }\r\n .bx-spl-line.bx-spl-l1 .bx-spl-image {\r\n max-width: 100%;\r\n }\r\n .bx-spl-line.bx-spl-l2 .bx-spl-cell {\r\n -webkit-flex: 1 1 33%; \r\n flex: 1 1 33%;\r\n width: 33%;\r\n }\r\n .bx-media-phone .bx-spl-line.bx-spl-l2 .bx-spl-cell {\r\n text-align: center;\r\n }\r\n .bx-spl-line.bx-spl-l2 .bx-spl-cicon {\r\n position: relative;\r\n display: -webkit-flex;\r\n display: flex;\r\n -webkit-align-items: flex-start;\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n -webkit-justify-content: flex-start;\r\n }\r\n .bx-media-phone .bx-spl-line.bx-spl-l2 .bx-spl-cicon {\r\n justify-content: center;\r\n -webkit-justify-content: center;\r\n }\r\n .bx-spl-line.bx-spl-l2 .bx-spl-cicon .animation {\r\n width: 4.25rem;\r\n height: 4.25rem;\r\n }\r\n</style>\r\n<div class=\"bx-page bx-def-color-bg-page\">\r\n <div class=\"bx-header\">__logo__</div>\r\n <div class=\"bx-splash\">\r\n <div class=\"bx-splash-cnt bx-def-page-width bx-def-centered bx-def-padding-leftright\">\r\n <div class=\"bx-spl-preload\">\r\n <img src=\"<bx_image_url:spl-image-main.svg />\">\r\n </div>\r\n <div class=\"bx-spl-line bx-spl-l1\">\r\n <div class=\"bx-spl-cell bx-spl-c1\">\r\n <div class=\"bx-spl-ccnt bx-def-padding\">\r\n <div class=\"bx-spl-title bx-def-font-h1 bx-def-font-semibold\"><bx_text:_sys_txt_splash_title /></div>\r\n <div class=\"bx-spl-slogan bx-def-padding-sec-top bx-def-padding-bottom bx-def-font-grayed\"><bx_text:_sys_txt_splash_slogan /></div>\r\n <div class=\"bx-spl-image bx-def-padding-top\">\r\n <img class=\"bx-spl-image\" src=\"<bx_image_url:spl-image-main.svg />\" />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"bx-spl-cell bx-spl-c2 bx-hide-when-logged-in\">\r\n <div class=\"bx-spl-ccnt bx-def-padding\">__join_form_in_box__</div>\r\n </div>\r\n </div>\r\n <div class=\"bx-spl-line bx-spl-l2 bx-def-padding\">\r\n <div class=\"bx-spl-cell bx-spl-c1\">\r\n <div class=\"bx-spl-ccnt bx-def-padding\">\r\n <div class=\"bx-spl-cicon connect\"><div class=\"animation\"></div></div>\r\n <div class=\"bx-spl-ctitle bx-def-padding-sec-topbottom bx-def-font-h2\"><bx_text:_sys_txt_splash_connect /></div>\r\n <div class=\"bx-spl-ctext bx-def-font-grayed\"><bx_text:_sys_txt_splash_connect_text /></div>\r\n </div>\r\n </div>\r\n <div class=\"bx-spl-cell bx-spl-c2\">\r\n <div class=\"bx-spl-ccnt bx-def-padding\">\r\n <div class=\"bx-spl-cicon share\"><div class=\"animation\"></div></div>\r\n <div class=\"bx-spl-ctitle bx-def-padding-sec-topbottom bx-def-font-h2\"><bx_text:_sys_txt_splash_share /></div>\r\n <div class=\"bx-spl-ctext bx-def-font-grayed\"><bx_text:_sys_txt_splash_share_text /></div>\r\n </div>\r\n </div>\r\n <div class=\"bx-spl-cell bx-spl-c3\">\r\n <div class=\"bx-spl-ccnt bx-def-padding\">\r\n <div class=\"bx-spl-cicon create\"><div class=\"animation\"></div></div>\r\n <div class=\"bx-spl-ctitle bx-def-padding-sec-topbottom bx-def-font-h2\"><bx_text:_sys_txt_splash_create /></div>\r\n <div class=\"bx-spl-ctext bx-def-font-grayed\"><bx_text:_sys_txt_splash_create_text /></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<script>\r\n var animConnect = bodymovin.loadAnimation({\r\n container: $(\'.bx-spl-cicon.connect .animation\').get(0),\r\n path: \'<bx_image_url:spl-icon-connect.json />\',\r\n renderer: \'svg\',\r\n loop: true,\r\n autoplay: true,\r\n });\r\n var animShare = bodymovin.loadAnimation({\r\n container: $(\'.bx-spl-cicon.share .animation\').get(0),\r\n path: \'<bx_image_url:spl-icon-share.json />\',\r\n renderer: \'svg\',\r\n loop: true,\r\n autoplay: true,\r\n });\r\n var animCreate = bodymovin.loadAnimation({\r\n container: $(\'.bx-spl-cicon.create .animation\').get(0),\r\n path: \'<bx_image_url:spl-icon-create.json />\',\r\n renderer: \'svg\',\r\n loop: true,\r\n autoplay: true,\r\n });\r\n</script>', 'text', '', '', '', 25),
  277. (@iCategoryId, 'sys_site_splash_enabled', '', '', 'checkbox', '', '', '', 26),
  278. (@iCategoryId, 'sys_site_cover_common', '', '0', 'digit', '', '', '', 27),
  279. (@iCategoryId, 'sys_unit_cover_profile', '', '0', 'digit', '', '', '', 28);
  280. --
  281. -- CATEGORY (HIDDEN): Languages
  282. --
  283. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'languages', '_adm_stg_cpt_category_languages', 1, 2);
  284. SET @iCategoryId = LAST_INSERT_ID();
  285. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  286. (@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),
  287. (@iCategoryId, 'lang_subst_from_en', '_adm_stg_cpt_option_lang_subst_from_en', 'on', 'checkbox', '', '', '', 2),
  288. (@iCategoryId, 'sys_format_date', '_adm_stg_cpt_option_sys_format_date', 'D MMM YYYY', 'digit', '', '', '', 3),
  289. (@iCategoryId, 'sys_format_time', '_adm_stg_cpt_option_sys_format_time', 'HH:mm', 'digit', '', '', '', 4),
  290. (@iCategoryId, 'sys_format_datetime', '_adm_stg_cpt_option_sys_format_datetime', 'D MMM YYYY h:mm:ss a', 'digit', '', '', '', 5),
  291. (@iCategoryId, 'sys_format_timeago', '_adm_stg_cpt_option_sys_format_timeago', 432000, 'digit', '', '', '', 6);
  292. --
  293. -- CATEGORY (HIDDEN): Templates
  294. --
  295. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'templates', '_adm_stg_cpt_category_templates', 1, 3);
  296. SET @iCategoryId = LAST_INSERT_ID();
  297. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  298. (@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);
  299. --
  300. -- CATEGORY: Cache
  301. --
  302. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'cache', '_adm_stg_cpt_category_cache', 0, 4);
  303. SET @iCategoryId = LAST_INSERT_ID();
  304. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  305. (@iCategoryId, 'sys_db_cache_enable', '_adm_stg_cpt_option_sys_db_cache_enable', 'on', 'checkbox', '', '', '', 10),
  306. (@iCategoryId, 'sys_db_cache_engine', '_adm_stg_cpt_option_sys_db_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 11),
  307. (@iCategoryId, 'sys_cache_memcache_host', '_adm_stg_cpt_option_sys_cache_memcache_host', '', 'digit', '', '', '', 20),
  308. (@iCategoryId, 'sys_cache_memcache_port', '_adm_stg_cpt_option_sys_cache_memcache_port', '11211', 'digit', '', '', '', 21),
  309. (@iCategoryId, 'sys_page_cache_enable', '_adm_stg_cpt_option_sys_page_cache_enable', 'on', 'checkbox', '', '', '', 30),
  310. (@iCategoryId, 'sys_page_cache_engine', '_adm_stg_cpt_option_sys_page_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 31),
  311. (@iCategoryId, 'sys_pb_cache_enable', '_adm_stg_cpt_option_sys_pb_cache_enable', 'on', 'checkbox', '', '', '', 40),
  312. (@iCategoryId, 'sys_pb_cache_engine', '_adm_stg_cpt_option_sys_pb_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 41),
  313. (@iCategoryId, 'sys_template_cache_enable', '_adm_stg_cpt_option_sys_template_cache_enable', 'on', 'checkbox', '', '', '', 50),
  314. (@iCategoryId, 'sys_template_cache_engine', '_adm_stg_cpt_option_sys_template_cache_engine', 'FileHtml', 'select', 'FileHtml,Memcache,APC,XCache', '', '', 51),
  315. (@iCategoryId, 'sys_template_cache_css_enable', '_adm_stg_cpt_option_sys_template_cache_css_enable', 'on', 'checkbox', '', '', '', 55),
  316. (@iCategoryId, 'sys_template_cache_js_enable', '_adm_stg_cpt_option_sys_template_cache_js_enable', 'on', 'checkbox', '', '', '', 56),
  317. (@iCategoryId, 'sys_template_cache_minify_css_enable', '_adm_stg_cpt_option_sys_template_cache_minify_css_enable', 'on', 'checkbox', '', '', '', 57),
  318. (@iCategoryId, 'sys_template_cache_minify_js_enable', '_adm_stg_cpt_option_sys_template_cache_minify_js_enable', 'on', 'checkbox', '', '', '', 58),
  319. (@iCategoryId, 'sys_template_cache_compress_enable', '_adm_stg_cpt_option_sys_template_cache_compress_enable', 'on', 'checkbox', '', '', '', 59);
  320. --
  321. -- CATEGORY: General
  322. --
  323. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'general', '_adm_stg_cpt_category_general', 0, 6);
  324. SET @iCategoryId = LAST_INSERT_ID();
  325. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  326. (@iCategoryId, 'sys_oauth_key', '_adm_stg_cpt_option_sys_oauth_key', '', 'digit', '', '', '', 20),
  327. (@iCategoryId, 'sys_oauth_secret', '_adm_stg_cpt_option_sys_oauth_secret', '', 'digit', '', '', '', 21),
  328. (@iCategoryId, 'currency_code', '_adm_stg_cpt_option_currency_code', 'USD', 'select', 'USD,EURO', 'Avail', '_adm_stg_err_option_currency_code', 30),
  329. (@iCategoryId, 'currency_sign', '_adm_stg_cpt_option_currency_sign', '&#36;', 'digit', '', 'Avail', '_adm_stg_err_option_currency_sign', 31),
  330. (@iCategoryId, 'enable_gd', '_adm_stg_cpt_option_enable_gd', 'on', 'checkbox', '', '', '', 40),
  331. (@iCategoryId, 'client_image_resize_width', '_adm_stg_cpt_option_client_image_resize_width', '2048', 'digit', '', '', '', 42),
  332. (@iCategoryId, 'client_image_resize_height', '_adm_stg_cpt_option_client_image_resize_height', '2048', 'digit', '', '', '', 43),
  333. (@iCategoryId, 'useLikeOperator', '_adm_stg_cpt_option_use_like_operator', 'on', 'checkbox', '', '', '', 45),
  334. (@iCategoryId, 'sys_transcoder_queue_storage', '_adm_stg_cpt_option_sys_transcoder_queue_storage', '', 'checkbox', '', '', '', 50),
  335. (@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),
  336. (@iCategoryId, 'sys_maps_api_key', '_adm_stg_cpt_option_sys_maps_api_key', '', 'digit', '', '', '', 70),
  337. (@iCategoryId, 'sys_embed_default', '_adm_stg_cpt_option_sys_embed_default', 'sys_embedly', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:25:"get_options_embed_default";s:5:"class";s:13:"TemplServices";}', '', '', 79),
  338. (@iCategoryId, 'sys_embedly_api_key', '_adm_stg_cpt_option_sys_embedly_api_key', '', 'digit', '', '', '', 80),
  339. (@iCategoryId, 'sys_iframely_api_key', '_adm_stg_cpt_option_sys_iframely_api_key', '', 'digit', '', '', '', 90);
  340. --
  341. -- CATEGORY: Permalinks
  342. --
  343. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'permalinks', '_adm_stg_cpt_category_permalinks', 0, 9);
  344. SET @iCategoryId = LAST_INSERT_ID();
  345. INSERT INTO `sys_options` (`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  346. (@iCategoryId, 'permalinks_pages', '_adm_stg_cpt_option_permalinks_pages', 'on', 'checkbox', '', '', '', 1),
  347. (@iCategoryId, 'permalinks_modules', '_adm_stg_cpt_option_permalinks_modules', 'on', 'checkbox', '', '', '', 2),
  348. (@iCategoryId, 'permalinks_storage', '_adm_stg_cpt_option_permalinks_storage', 'on', 'checkbox', '', '', '', 3);
  349. --
  350. -- CATEGORY: Security
  351. --
  352. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'security', '_adm_stg_cpt_category_security', 0, 11);
  353. SET @iCategoryId = LAST_INSERT_ID();
  354. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  355. (@iCategoryId, 'sys_security_form_token_enable', '_adm_stg_cpt_option_sys_security_form_token_enable', 'on', 'checkbox', '', '', '', 10),
  356. (@iCategoryId, 'sys_security_form_token_lifetime', '_adm_stg_cpt_option_sys_security_form_token_lifetime', '86400', 'digit', '', '', '', 11),
  357. (@iCategoryId, 'sys_recaptcha_key_public', '_adm_stg_cpt_option_sys_recaptcha_key_public', '', 'digit', '', '', '', 20),
  358. (@iCategoryId, 'sys_recaptcha_key_private', '_adm_stg_cpt_option_sys_recaptcha_key_private', '', 'digit', '', '', '', 21),
  359. (@iCategoryId, 'sys_add_nofollow', '_adm_stg_cpt_option_sys_add_nofollow', 'on', 'checkbox', '', '', '', 30);
  360. --
  361. -- CATEGORY: Site Settings
  362. --
  363. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'site_settings','_adm_stg_cpt_category_site_settings', 0, 12);
  364. SET @iCategoryId = LAST_INSERT_ID();
  365. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  366. (@iCategoryId, 'site_title', '_adm_stg_cpt_option_site_title', 'Community', 'digit', '', '', '', 1),
  367. (@iCategoryId, 'site_email', '_adm_stg_cpt_option_site_email', 'admin@example.com', 'digit', '', '', '', 2),
  368. (@iCategoryId, 'site_email_notify', '_adm_stg_cpt_option_site_email_notify', 'admin@example.com', 'digit', '', '', '', 3),
  369. (@iCategoryId, 'site_tour_home', '_adm_stg_cpt_option_site_tour_home', 'on', 'checkbox', '', '', '', 6),
  370. (@iCategoryId, 'site_tour_studio', '_adm_stg_cpt_option_site_tour_studio', 'on', 'checkbox', '', '', '', 7),
  371. (@iCategoryId, 'add_to_mobile_homepage', '_adm_stg_cpt_option_add_to_mobile_homepage', 'on', 'checkbox', '', '', '', 8),
  372. (@iCategoryId, 'site_login_social_compact', '_adm_stg_cpt_option_site_login_social_compact', '', 'checkbox', '', '', '', 9),
  373. (@iCategoryId, 'sys_autoupdate', '_adm_stg_cpt_option_sys_autoupdate', 'on', 'checkbox', '', '', '', 10),
  374. (@iCategoryId, 'sys_autoupdate_force_modified_files', '_adm_stg_cpt_option_sys_autoupdate_force_modified_files', '', 'checkbox', '', '', '', 12),
  375. (@iCategoryId, 'sys_per_page_search_keyword_single', '_adm_stg_cpt_option_sys_per_page_search_keyword_single', '24', 'digit', '', '', '', 20),
  376. (@iCategoryId, 'sys_per_page_search_keyword_plural', '_adm_stg_cpt_option_sys_per_page_search_keyword_plural', '3', 'digit', '', '', '', 21),
  377. (@iCategoryId, 'sys_metatags_hashtags_max', '_adm_stg_cpt_option_sys_metatags_hashtags_max', '9', 'digit', '', '', '', 30),
  378. (@iCategoryId, 'sys_metatags_mentions_max', '_adm_stg_cpt_option_sys_metatags_mentions_max', '9', 'digit', '', '', '', 31);
  379. --
  380. -- CATEGORY: Storage
  381. --
  382. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'storage', '_adm_stg_cpt_category_storage', 0, 13);
  383. SET @iCategoryId = LAST_INSERT_ID();
  384. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  385. (@iCategoryId, 'sys_storage_default', '_adm_stg_cpt_option_sys_storage_default', 'Local', 'select', 'Local,S3', '', '', 1),
  386. (@iCategoryId, 'sys_storage_s3_access_key', '_adm_stg_cpt_option_sys_storage_s3_access_key', '', 'digit', '', '', '', 2),
  387. (@iCategoryId, 'sys_storage_s3_secret_key', '_adm_stg_cpt_option_sys_storage_s3_secret_key', '', 'digit', '', '', '', 3),
  388. (@iCategoryId, 'sys_storage_s3_bucket', '_adm_stg_cpt_option_sys_storage_s3_bucket', '', 'digit', '', '', '', 4),
  389. (@iCategoryId, 'sys_storage_s3_domain', '_adm_stg_cpt_option_sys_storage_s3_domain', '', 'digit', '', '', '', 5);
  390. --
  391. -- CATEGORY: Account
  392. --
  393. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'account', '_adm_stg_cpt_category_account', 0, 14);
  394. SET @iCategoryId = LAST_INSERT_ID();
  395. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  396. (@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),
  397. (@iCategoryId, 'sys_account_autoapproval', '_adm_stg_cpt_option_sys_account_autoapproval', 'on', 'checkbox', '', '', '', 10),
  398. (@iCategoryId, 'sys_account_activation_letter', '_adm_stg_cpt_option_sys_account_activation_letter', '', 'checkbox', '', '', '', 11),
  399. (@iCategoryId, 'sys_account_confirmation_type', '_adm_stg_cpt_option_sys_account_confirmation_type', 'email', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:22:"get_confirmation_types";s:5:"class";s:18:"BaseServiceAccount";}', '', '', 12),
  400. (@iCategoryId, 'sys_account_activation_2fa_enable', '_adm_stg_cpt_option_sys_account_2fa_enable', '', 'checkbox', '', '', '', 13),
  401. (@iCategoryId, 'sys_account_auto_profile_creation', '_adm_stg_cpt_option_sys_account_auto_profile_creation', 'on', 'checkbox', '', '', '', 15),
  402. (@iCategoryId, 'sys_account_default_profile_type', '_adm_stg_cpt_option_sys_account_default_profile_type', '', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:17:"get_profile_types";s:5:"class";s:20:"TemplServiceProfiles";}', '', '', 20),
  403. (@iCategoryId, 'sys_account_limit_profiles_number', '_adm_stg_cpt_option_sys_account_limit_profiles_number', '0', 'digit', '', '', '', 21),
  404. (@iCategoryId, 'sys_account_limit_incorrect_login_attempts', '_adm_stg_cpt_option_sys_account_limit_incorrect_login_attempts', '6', 'digit', '', '', '', 22);
  405. --
  406. -- CATEGORY: ACL
  407. --
  408. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'acl', '_adm_stg_cpt_category_acl', 0, 15);
  409. SET @iCategoryId = LAST_INSERT_ID();
  410. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  411. (@iCategoryId, 'sys_acl_expire_notification_days', '_adm_stg_cpt_option_sys_acl_expire_notification_days', '1', 'digit', '', '', '', 1),
  412. (@iCategoryId, 'sys_acl_expire_notify_once', '_adm_stg_cpt_option_sys_acl_expire_notify_once', 'on', 'checkbox', '', '', '', 2);
  413. --
  414. -- CATEGORY: Notifications
  415. --
  416. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'notifications', '_adm_stg_cpt_category_notifications', 0, 16);
  417. SET @iCategoryId = LAST_INSERT_ID();
  418. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  419. (@iCategoryId, 'enable_notification_pruning', '_adm_stg_cpt_option_enable_notification_pruning', '', 'checkbox', '', '', '', 1),
  420. (@iCategoryId, 'enable_notification_account', '_adm_stg_cpt_option_enable_notification_account', 'on', 'checkbox', '', '', '', 2),
  421. (@iCategoryId, 'sys_eq_send_per_start', '_adm_stg_cpt_option_sys_eq_send_per_start', '500', 'digit', '', '', '', 10),
  422. (@iCategoryId, 'sys_eq_send_per_start_to_recipient', '_adm_stg_cpt_option_sys_eq_send_per_start_to_recipient', '2', 'digit', '', '', '', 11);
  423. --
  424. -- CATEGORY: Push Notifications
  425. --
  426. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'notifications_push', '_adm_stg_cpt_category_notifications_push', 0, 17);
  427. SET @iCategoryId = LAST_INSERT_ID();
  428. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  429. (@iCategoryId, 'sys_push_app_id', '_adm_stg_cpt_option_sys_push_app_id', '', 'digit', '', '', '', 1),
  430. (@iCategoryId, 'sys_push_rest_api', '_adm_stg_cpt_option_sys_push_rest_api', '', 'digit', '', '', '', 2),
  431. (@iCategoryId, 'sys_push_short_name', '_adm_stg_cpt_option_sys_push_short_name', '', 'digit', '', '', '', 3),
  432. (@iCategoryId, 'sys_push_safari_id', '_adm_stg_cpt_option_sys_push_safari_id', '', 'digit', '', '', '', 4),
  433. (@iCategoryId, 'sys_push_queue_send_per_start', '_adm_stg_cpt_option_sys_push_queue_send_per_start', '500', 'digit', '', '', '', 10),
  434. (@iCategoryId, 'sys_push_queue_send_per_start_to_recipient', '_adm_stg_cpt_option_sys_push_queue_send_per_start_to_recipient', '2', 'digit', '', '', '', 11);
  435. --
  436. -- CATEGORY: Twilio gate settings
  437. --
  438. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'twilio_gate', '_adm_stg_cpt_category_twilio_gate', 0, 18);
  439. SET @iCategoryId = LAST_INSERT_ID();
  440. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  441. (@iCategoryId, 'sys_twilio_gate_sid', '_adm_stg_cpt_option_sys_twilio_gate_sid', '', 'digit', '', '', '', 1),
  442. (@iCategoryId, 'sys_twilio_gate_token', '_adm_stg_cpt_option_sys_twilio_gate_token', '', 'digit', '', '', '', 2),
  443. (@iCategoryId, 'sys_twilio_gate_from_number', '_adm_stg_cpt_option_sys_twilio_gate_from_number', '', 'digit', '', '', '', 3);
  444. --
  445. -- Table structure for table `sys_options_mixes`
  446. --
  447. CREATE TABLE `sys_options_mixes` (
  448. `id` int(11) unsigned NOT NULL auto_increment,
  449. `type` varchar(64) NOT NULL default '',
  450. `category` varchar(64) NOT NULL default '',
  451. `name` varchar(64) NOT NULL default '',
  452. `title` varchar(64) NOT NULL default '',
  453. `active` tinyint(1) NOT NULL default '0',
  454. `published` tinyint(1) NOT NULL default '0',
  455. `editable` tinyint(1) NOT NULL default '1',
  456. PRIMARY KEY (`id`),
  457. UNIQUE KEY `name`(`name`)
  458. );
  459. --
  460. -- Table structure for table `sys_options_mixes2options`
  461. --
  462. CREATE TABLE `sys_options_mixes2options` (
  463. `option` varchar(64) NOT NULL default '',
  464. `mix_id` int(11) unsigned NOT NULL default '0',
  465. `value` mediumtext NOT NULL,
  466. UNIQUE KEY `value`(`option`, `mix_id`)
  467. );
  468. -- --------------------------------------------------------
  469. CREATE TABLE `sys_localization_categories` (
  470. `ID` int(6) unsigned NOT NULL auto_increment,
  471. `Name` varchar(255) NOT NULL default '',
  472. PRIMARY KEY (`ID`),
  473. UNIQUE KEY `Name` (`Name`(191))
  474. );
  475. INSERT INTO `sys_localization_categories` VALUES
  476. (1, 'System'),
  477. (2, 'Custom');
  478. CREATE TABLE `sys_localization_keys` (
  479. `ID` int(10) unsigned NOT NULL auto_increment,
  480. `IDCategory` int(6) unsigned NOT NULL default '0',
  481. `Key` varchar(255) character set utf8 collate utf8_bin NOT NULL default '',
  482. PRIMARY KEY (`ID`),
  483. UNIQUE KEY `Key` (`Key`(191)),
  484. FULLTEXT KEY `KeyFilter` (`Key`(191))
  485. );
  486. CREATE TABLE `sys_localization_languages` (
  487. `ID` int(10) unsigned NOT NULL auto_increment,
  488. `Name` varchar(5) NOT NULL default '',
  489. `Flag` varchar(2) NOT NULL default '',
  490. `Title` varchar(255) NOT NULL default '',
  491. `Direction` enum('LTR','RTL') NOT NULL DEFAULT 'LTR',
  492. `LanguageCountry` varchar(8) NOT NULL,
  493. `Enabled` tinyint(1) unsigned NOT NULL default '0',
  494. PRIMARY KEY (`ID`),
  495. UNIQUE KEY `Name` (`Name`)
  496. );
  497. CREATE TABLE `sys_localization_strings` (
  498. `IDKey` int(10) unsigned NOT NULL default '0',
  499. `IDLanguage` int(10) unsigned NOT NULL default '0',
  500. `String` mediumtext NOT NULL,
  501. PRIMARY KEY (`IDKey`,`IDLanguage`),
  502. FULLTEXT KEY `String` (`String`)
  503. );
  504. -- --------------------------------------------------------
  505. CREATE TABLE `sys_acl_actions` (
  506. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  507. `Module` varchar(32) NOT NULL,
  508. `Name` varchar(255) NOT NULL default '',
  509. `AdditionalParamName` varchar(80) default NULL,
  510. `Title` varchar(255) NOT NULL,
  511. `Desc` varchar(255) NOT NULL,
  512. `Countable` tinyint(4) NOT NULL DEFAULT '0',
  513. `DisabledForLevels` int(10) unsigned NOT NULL DEFAULT '3',
  514. PRIMARY KEY (`ID`),
  515. FULLTEXT KEY `ModuleAndName` (`Module`, `Name`)
  516. );
  517. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  518. ('system', 'connect', NULL, '_sys_acl_action_connect', '', 1, 3);
  519. SET @iIdActionConnect = LAST_INSERT_ID();
  520. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  521. ('system', 'vote', NULL, '_sys_acl_action_vote', '', 1, 0);
  522. SET @iIdActionVote = LAST_INSERT_ID();
  523. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  524. ('system', 'vote_view', NULL, '_sys_acl_action_vote_view', '', 1, 0);
  525. SET @iIdActionVoteView = LAST_INSERT_ID();
  526. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  527. ('system', 'vote_view_voters', NULL, '_sys_acl_action_vote_view_voters', '', 1, 0);
  528. SET @iIdActionVoteViewVoters = LAST_INSERT_ID();
  529. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  530. ('system', 'report', NULL, '_sys_acl_action_report', '', 1, 0);
  531. SET @iIdActionReport = LAST_INSERT_ID();
  532. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  533. ('system', 'report_view', NULL, '_sys_acl_action_report_view', '', 0, 0);
  534. SET @iIdActionReportView = LAST_INSERT_ID();
  535. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  536. ('system', 'favorite', NULL, '_sys_acl_action_favorite', '', 1, 0);
  537. SET @iIdActionFavorite = LAST_INSERT_ID();
  538. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  539. ('system', 'favorite_view', NULL, '_sys_acl_action_favorite_view', '', 0, 0);
  540. SET @iIdActionFavoriteView = LAST_INSERT_ID();
  541. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  542. ('system', 'feature', NULL, '_sys_acl_action_feature', '', 0, 0);
  543. SET @iIdActionFeature = LAST_INSERT_ID();
  544. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  545. ('system', 'view_view', NULL, '_sys_acl_action_view_view', '', 0, 0);
  546. SET @iIdActionViewView = LAST_INSERT_ID();
  547. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  548. ('system', 'view_view_viewers_own', NULL, '_sys_acl_action_view_view_viewers_own', '', 0, 0);
  549. SET @iIdActionViewViewViewers = LAST_INSERT_ID();
  550. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  551. ('system', 'comments post', NULL, '_sys_acl_action_comments_post', '', 1, 3);
  552. SET @iIdActionCmtPost = LAST_INSERT_ID();
  553. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  554. ('system', 'comments edit own', NULL, '_sys_acl_action_comments_edit_own', '', 0, 3);
  555. SET @iIdActionCmtEditOwn = LAST_INSERT_ID();
  556. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  557. ('system', 'comments remove own', NULL, '_sys_acl_action_comments_remove_own', '', 1, 3);
  558. SET @iIdActionCmtRemoveOwn = LAST_INSERT_ID();
  559. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  560. ('system', 'comments edit all', NULL, '_sys_acl_action_comments_edit_all', '', 1, 3);
  561. SET @iIdActionCmtEditAll = LAST_INSERT_ID();
  562. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  563. ('system', 'comments remove all', NULL, '_sys_acl_action_comments_remove_all', '', 1, 3);
  564. SET @iIdActionCmtRemoveAll = LAST_INSERT_ID();
  565. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  566. ('system', 'create account', NULL, '_sys_acl_action_create_account', '_sys_acl_action_create_account_desc', 0, 2147483646);
  567. SET @iIdActionAccountCreate = LAST_INSERT_ID();
  568. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  569. ('system', 'delete account', NULL, '_sys_acl_action_delete_account', '_sys_acl_action_delete_account_desc', 0, 1);
  570. SET @iIdActionAccountDelete = LAST_INSERT_ID();
  571. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  572. ('system', 'set acl level', NULL, '_sys_acl_action_set_acl_level', '_sys_acl_action_set_acl_level_desc', 0, 3);
  573. SET @iIdActionSetAclLevel = LAST_INSERT_ID();
  574. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  575. ('system', 'set acl as privacy', NULL, '_sys_acl_action_set_acl_as_privacy', '_sys_acl_action_set_acl_as_privacy_desc', 0, 3);
  576. SET @iIdActionSetAclAsPrivacy = LAST_INSERT_ID();
  577. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  578. ('system', 'chart view', NULL, '_sys_acl_action_chart_view', '_sys_acl_action_chart_view_desc', 0, 3);
  579. SET @iIdActionChartView = LAST_INSERT_ID();
  580. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  581. ('system', 'post links', NULL, '_sys_acl_action_post_links', '_sys_acl_action_post_links_desc', 0, 0);
  582. SET @iIdActionPostLinks = LAST_INSERT_ID();
  583. CREATE TABLE `sys_acl_actions_track` (
  584. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  585. `IDMember` int(10) unsigned NOT NULL default '0',
  586. `ActionsLeft` int(10) unsigned NOT NULL DEFAULT '0',
  587. `ValidSince` datetime default NULL,
  588. PRIMARY KEY (`IDAction`,`IDMember`)
  589. );
  590. CREATE TABLE `sys_acl_matrix` (
  591. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  592. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  593. `AllowedCount` int(10) unsigned DEFAULT NULL,
  594. `AllowedPeriodLen` int(10) unsigned DEFAULT NULL,
  595. `AllowedPeriodStart` datetime default NULL,
  596. `AllowedPeriodEnd` datetime default NULL,
  597. `AdditionalParamValue` varchar(255) default NULL,
  598. PRIMARY KEY (`IDLevel`,`IDAction`)
  599. );
  600. SET @iUnauthenticated = 1;
  601. SET @iAccount = 2;
  602. SET @iStandard = 3;
  603. SET @iUnconfirmed = 4;
  604. SET @iPending = 5;
  605. SET @iSuspended = 6;
  606. SET @iModerator = 7;
  607. SET @iAdministrator = 8;
  608. SET @iPremium = 9;
  609. INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES
  610. -- connect
  611. (@iStandard, @iIdActionConnect),
  612. (@iModerator, @iIdActionConnect),
  613. (@iAdministrator, @iIdActionConnect),
  614. (@iPremium, @iIdActionConnect),
  615. -- vote
  616. (@iStandard, @iIdActionVote),
  617. (@iModerator, @iIdActionVote),
  618. (@iAdministrator, @iIdActionVote),
  619. (@iPremium, @iIdActionVote),
  620. -- vote view
  621. (@iStandard, @iIdActionVoteView),
  622. (@iModerator, @iIdActionVoteView),
  623. (@iAdministrator, @iIdActionVoteView),
  624. (@iPremium, @iIdActionVoteView),
  625. -- vote view voters
  626. (@iStandard, @iIdActionVoteViewVoters),
  627. (@iModerator, @iIdActionVoteViewVoters),
  628. (@iAdministrator, @iIdActionVoteViewVoters),
  629. (@iPremium, @iIdActionVoteViewVoters),
  630. -- report
  631. (@iStandard, @iIdActionReport),
  632. (@iModerator, @iIdActionReport),
  633. (@iAdministrator, @iIdActionReport),
  634. (@iPremium, @iIdActionReport),
  635. -- report view
  636. (@iModerator, @iIdActionReportView),
  637. (@iAdministrator, @iIdActionReportView),
  638. -- favorite
  639. (@iStandard, @iIdActionFavorite),
  640. (@iModerator, @iIdActionFavorite),
  641. (@iAdministrator, @iIdActionFavorite),
  642. (@iPremium, @iIdActionFavorite),
  643. -- favorite view
  644. (@iUnauthenticated, @iIdActionFavoriteView),
  645. (@iAccount, @iIdActionFavoriteView),
  646. (@iStandard, @iIdActionFavoriteView),
  647. (@iUnconfirmed, @iIdActionFavoriteView),
  648. (@iPending, @iIdActionFavoriteView),
  649. (@iModerator, @iIdActionFavoriteView),
  650. (@iAdministrator, @iIdActionFavoriteView),
  651. (@iPremium, @iIdActionFavoriteView),
  652. -- feature
  653. (@iModerator, @iIdActionFeature),
  654. (@iAdministrator, @iIdActionFeature),
  655. -- view view
  656. (@iUnauthenticated, @iIdActionViewView),
  657. (@iAccount, @iIdActionViewView),
  658. (@iStandard, @iIdActionViewView),
  659. (@iUnconfirmed, @iIdActionViewView),
  660. (@iPending, @iIdActionViewView),
  661. (@iModerator, @iIdActionViewView),
  662. (@iAdministrator, @iIdActionViewView),
  663. (@iPremium, @iIdActionViewView),
  664. -- view view viewers
  665. (@iModerator, @iIdActionViewViewViewers),
  666. (@iAdministrator, @iIdActionViewViewViewers),
  667. -- comments post
  668. (@iStandard, @iIdActionCmtPost),
  669. (@iModerator, @iIdActionCmtPost),
  670. (@iAdministrator, @iIdActionCmtPost),
  671. (@iPremium, @iIdActionCmtPost),
  672. -- comments edit own
  673. (@iStandard, @iIdActionCmtEditOwn),
  674. (@iModerator, @iIdActionCmtEditOwn),
  675. (@iAdministrator, @iIdActionCmtEditOwn),
  676. (@iPremium, @iIdActionCmtEditOwn),
  677. -- comments remove own
  678. (@iStandard, @iIdActionCmtRemoveOwn),
  679. (@iModerator, @iIdActionCmtRemoveOwn),
  680. (@iAdministrator, @iIdActionCmtRemoveOwn),
  681. (@iPremium, @iIdActionCmtRemoveOwn),
  682. -- comments edit all
  683. (@iModerator, @iIdActionCmtEditAll),
  684. (@iAdministrator, @iIdActionCmtEditAll),
  685. -- comments remove all
  686. (@iModerator, @iIdActionCmtRemoveAll),
  687. (@iAdministrator, @iIdActionCmtRemoveAll),
  688. -- account create
  689. (@iUnauthenticated, @iIdActionAccountCreate),
  690. -- account delete
  691. (@iAccount, @iIdActionAccountDelete),
  692. (@iStandard, @iIdActionAccountDelete),
  693. (@iUnconfirmed, @iIdActionAccountDelete),
  694. (@iPending, @iIdActionAccountDelete),
  695. (@iModerator, @iIdActionAccountDelete),
  696. (@iAdministrator, @iIdActionAccountDelete),
  697. (@iPremium, @iIdActionAccountDelete),
  698. -- set acl level
  699. (@iAdministrator, @iIdActionSetAclLevel),
  700. -- set acl as privacy
  701. (@iAdministrator, @iIdActionSetAclAsPrivacy),
  702. -- view charts
  703. (@iAdministrator, @iIdActionChartView),
  704. -- post links
  705. (@iStandard, @iIdActionPostLinks),
  706. (@iModerator, @iIdActionPostLinks),
  707. (@iAdministrator, @iIdActionPostLinks),
  708. (@iPremium, @iIdActionPostLinks);
  709. CREATE TABLE `sys_acl_levels` (
  710. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  711. `Name` varchar(100) NOT NULL default '',
  712. `Icon` varchar(255) NOT NULL default '',
  713. `Description` varchar(255) NOT NULL default '',
  714. `Active` enum('yes','no') NOT NULL default 'no',
  715. `Purchasable` enum('yes','no') NOT NULL default 'yes',
  716. `Removable` enum('yes','no') NOT NULL default 'yes',
  717. `QuotaSize` bigint(20) NOT NULL,
  718. `QuotaNumber` int(11) NOT NULL,
  719. `QuotaMaxFileSize` int(11) NOT NULL,
  720. `Order` int(11) NOT NULL default '0',
  721. PRIMARY KEY (`ID`),
  722. UNIQUE KEY `Name` (`Name`),
  723. FULLTEXT KEY `Description` (`Description`)
  724. );
  725. INSERT INTO `sys_acl_levels` (`ID`, `Name`, `Icon`, `Description`, `Active`, `Purchasable`, `Removable`, `QuotaSize`, `QuotaNumber`, `QuotaMaxFileSize`, `Order`) VALUES
  726. (1, '_adm_prm_txt_level_unauthenticated', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 1),
  727. (2, '_adm_prm_txt_level_account', 'user col-green1', '', 'yes', 'no', 'no', 0, 0, 0, 2),
  728. (3, '_adm_prm_txt_level_standard', 'user col-red1', '', 'yes', 'no', 'no', 0, 0, 0, 3),
  729. (4, '_adm_prm_txt_level_unconfirmed', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 4),
  730. (5, '_adm_prm_txt_level_pending', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 5),
  731. (6, '_adm_prm_txt_level_suspended', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 6),
  732. (7, '_adm_prm_txt_level_moderator', 'user-secret bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 7),
  733. (8, '_adm_prm_txt_level_administrator', 'user-secret bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 8),
  734. (9, '_adm_prm_txt_level_premium', 'user col-red3', '', 'yes', 'yes', 'no', 0, 0, 0, 9);
  735. -- --------------------------------------------------------
  736. --
  737. -- Table structure for table `boon_sys_sessions`
  738. --
  739. CREATE TABLE IF NOT EXISTS `sys_sessions` (
  740. `id` varchar(32) NOT NULL default '',
  741. `user_id` int(10) unsigned NOT NULL default '0',
  742. `data` text,
  743. `date` int(10) unsigned NOT NULL default '0',
  744. PRIMARY KEY (`id`),
  745. KEY `user_id` (`user_id`),
  746. KEY `date` (`date`)
  747. );
  748. -- --------------------------------------------------------
  749. --
  750. -- Table structure for table `sys_acl_levels_members`
  751. --
  752. CREATE TABLE `sys_acl_levels_members` (
  753. `IDMember` int(10) unsigned NOT NULL default '0',
  754. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  755. `DateStarts` datetime NOT NULL default '0000-00-00 00:00:00',
  756. `DateExpires` datetime default NULL,
  757. `TransactionID` varchar(16) NOT NULL default '',
  758. PRIMARY KEY (`IDMember`,`IDLevel`,`DateStarts`)
  759. );
  760. -- --------------------------------------------------------
  761. CREATE TABLE `sys_accounts` (
  762. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  763. `profile_id` int(10) unsigned NOT NULL,
  764. `name` varchar(255) NOT NULL,
  765. `email` varchar(255) NOT NULL,
  766. `email_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  767. `phone` varchar(255) NOT NULL,
  768. `phone_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  769. `receive_updates` tinyint(4) NOT NULL DEFAULT '1',
  770. `receive_news` tinyint(4) NOT NULL DEFAULT '1',
  771. `password` varchar(40) NOT NULL,
  772. `salt` varchar(10) NOT NULL,
  773. `role` tinyint(4) NOT NULL DEFAULT '1',
  774. `lang_id` int(10) unsigned NOT NULL DEFAULT '0',
  775. `added` int(11) NOT NULL DEFAULT '0',
  776. `changed` int(11) NOT NULL DEFAULT '0',
  777. `logged` int(11) NOT NULL DEFAULT '0',
  778. `ip` varchar(40) NOT NULL DEFAULT '',
  779. `reffered` varchar(255) NOT NULL DEFAULT '',
  780. `login_attempts` tinyint(4) NOT NULL DEFAULT '0',
  781. `locked` tinyint(4) NOT NULL DEFAULT '0',
  782. PRIMARY KEY (`id`),
  783. UNIQUE KEY `email` (`email`(191)),
  784. KEY `added` (`added`),
  785. KEY `profile_id` (`profile_id`)
  786. );
  787. CREATE TABLE IF NOT EXISTS `sys_profiles` (
  788. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  789. `account_id` int(10) unsigned NOT NULL,
  790. `type` varchar(32) NOT NULL,
  791. `content_id` int(10) unsigned NOT NULL,
  792. `status` enum('active','pending','suspended') NOT NULL DEFAULT 'active',
  793. PRIMARY KEY (`id`),
  794. UNIQUE KEY `account_type_content` (`account_id`,`type`,`content_id`),
  795. KEY `content_type` (`content_id`,`type`)
  796. );
  797. -- --------------------------------------------------------
  798. --
  799. -- Table structure for table 'sys_statistics'
  800. --
  801. CREATE TABLE `sys_statistics` (
  802. `id` int(11) unsigned NOT NULL auto_increment,
  803. `module` varchar(32) NOT NULL default '',
  804. `name` varchar(64) NOT NULL default '',
  805. `title` varchar(255) NOT NULL default '',
  806. `link` varchar(255) NOT NULL default '',
  807. `icon` varchar(32) NOT NULL default '',
  808. `query` text NOT NULL default '',
  809. `order` int(11) NOT NULL default '0',
  810. PRIMARY KEY (`ID`),
  811. UNIQUE KEY `name` (`name`)
  812. );
  813. INSERT INTO `sys_statistics` (`module`, `name`, `title`, `link`, `icon`, `query`, `order`) VALUES
  814. ('system', 'sys_accounts', '_sys_accounts', '', 'user', 'SELECT COUNT(*) FROM `sys_accounts` WHERE 1', 1);
  815. -- --------------------------------------------------------
  816. --
  817. -- Table structure for table 'sys_objects_rss'
  818. --
  819. CREATE TABLE `sys_objects_rss` (
  820. `id` int(11) NOT NULL auto_increment,
  821. `object` varchar(64) NOT NULL,
  822. `class_name` varchar(32) NOT NULL default '',
  823. `class_file` varchar(256) NOT NULL default '',
  824. PRIMARY KEY (`id`)
  825. );
  826. INSERT INTO `sys_objects_rss` (`object`, `class_name`, `class_file`) VALUES
  827. ('sys_boonex', 'BxDolRssBoonEx', ''),
  828. ('sys_page_block', 'BxDolRssPageBlock', ''),
  829. ('sys_studio_page_help', 'BxDolStudioRssPageHelp', ''),
  830. ('sys_studio_module_help', 'BxDolStudioRssModuleHelp', '');
  831. -- --------------------------------------------------------
  832. --
  833. -- Table structure for table 'sys_objects_search'
  834. --
  835. CREATE TABLE `sys_objects_search` (
  836. `ID` int(10) unsigned NOT NULL auto_increment,
  837. `ObjectName` varchar(64) NOT NULL default '',
  838. `Title` varchar(50) NOT NULL default '',
  839. `Order` int(11) NOT NULL,
  840. `GlobalSearch` tinyint(4) NOT NULL DEFAULT '1',
  841. `ClassName` varchar(50) NOT NULL default '',
  842. `ClassPath` varchar(100) NOT NULL default '',
  843. PRIMARY KEY (`ID`)
  844. );
  845. -- --------------------------------------------------------
  846. --
  847. -- Table structure for table 'sys_objects_search_extended'
  848. --
  849. CREATE TABLE `sys_objects_search_extended` (
  850. `id` int(10) unsigned NOT NULL auto_increment,
  851. `object` varchar(64) NOT NULL default '',
  852. `object_content_info` varchar(64) NOT NULL default '',
  853. `module` varchar(32) NOT NULL default '',
  854. `title` varchar(255) NOT NULL default '',
  855. `active` tinyint(4) NOT NULL DEFAULT '0',
  856. `class_name` varchar(32) NOT NULL default '',
  857. `class_file` varchar(255) NOT NULL default '',
  858. PRIMARY KEY (`id`),
  859. UNIQUE KEY `object` (`object`)
  860. );
  861. -- --------------------------------------------------------
  862. --
  863. -- Table structure for table 'sys_search_extended_fields'
  864. --
  865. CREATE TABLE `sys_search_extended_fields` (
  866. `id` int(10) unsigned NOT NULL auto_increment,
  867. `object` varchar(64) NOT NULL default '',
  868. `name` varchar(255) NOT NULL default '',
  869. `type` varchar(32) NOT NULL default '',
  870. `caption` varchar(255) NOT NULL default '',
  871. `info` varchar(255) NOT NULL default '',
  872. `values` text NOT NULL default '',
  873. `pass` varchar(32) NOT NULL,
  874. `search_type` varchar(32) NOT NULL default '',
  875. `search_value` varchar(255) NOT NULL default '',
  876. `search_operator` varchar(32) NOT NULL default '',
  877. `active` tinyint(4) NOT NULL DEFAULT '0',
  878. `order` int(11) NOT NULL default '0',
  879. PRIMARY KEY (`id`),
  880. UNIQUE KEY `field` (`object`(64), `name`(127))
  881. );
  882. -- --------------------------------------------------------
  883. --
  884. -- Table structure for table `sys_objects_vote`
  885. --
  886. CREATE TABLE `sys_objects_vote` (
  887. `ID` int(11) unsigned NOT NULL auto_increment,
  888. `Name` varchar(50) NOT NULL default '',
  889. `TableMain` varchar(50) NOT NULL default '',
  890. `TableTrack` varchar(50) NOT NULL default '',
  891. `PostTimeout` int(11) NOT NULL default '0',
  892. `MinValue` tinyint(4) NOT NULL default '1',
  893. `MaxValue` tinyint(4) NOT NULL default '5',
  894. `IsUndo` tinyint(1) NOT NULL default '0',
  895. `IsOn` tinyint(1) NOT NULL default '1',
  896. `TriggerTable` varchar(32) NOT NULL default '',
  897. `TriggerFieldId` varchar(32) NOT NULL default '',
  898. `TriggerFieldAuthor` varchar(32) NOT NULL default '',
  899. `TriggerFieldRate` varchar(32) NOT NULL default '',
  900. `TriggerFieldRateCount` varchar(32) NOT NULL default '',
  901. `ClassName` varchar(32) NOT NULL default '',
  902. `ClassFile` varchar(256) NOT NULL default '',
  903. PRIMARY KEY (`ID`)
  904. );
  905. INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
  906. ('sys_cmts', 'sys_cmts_votes', 'sys_cmts_votes_track', '604800', '1', '1', '0', '1', 'sys_cmts_ids', 'id', 'author_id', 'rate', 'votes', '', ''),
  907. ('sys_cmts_reactions', 'sys_cmts_reactions', 'sys_cmts_reactions_track', '604800', '1', '1', '1', '1', 'sys_cmts_ids', 'id', 'author_id', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');
  908. -- --------------------------------------------------------
  909. --
  910. -- Table structure for table `sys_objects_score`
  911. --
  912. CREATE TABLE `sys_objects_score` (
  913. `id` int(11) unsigned NOT NULL auto_increment,
  914. `name` varchar(50) NOT NULL default '',
  915. `module` varchar(32) NOT NULL,
  916. `table_main` varchar(50) NOT NULL default '',
  917. `table_track` varchar(50) NOT NULL default '',
  918. `post_timeout` int(11) NOT NULL default '0',
  919. `is_on` tinyint(1) NOT NULL default '1',
  920. `trigger_table` varchar(32) NOT NULL default '',
  921. `trigger_field_id` varchar(32) NOT NULL default '',
  922. `trigger_field_author` varchar(32) NOT NULL default '',
  923. `trigger_field_score` varchar(32) NOT NULL default '',
  924. `trigger_field_cup` varchar(32) NOT NULL default '',
  925. `trigger_field_cdown` varchar(32) NOT NULL default '',
  926. `class_name` varchar(32) NOT NULL default '',
  927. `class_file` varchar(256) NOT NULL default '',
  928. PRIMARY KEY (`ID`)
  929. );
  930. INSERT INTO `sys_objects_score` (`name`, `module`, `table_main`, `table_track`, `post_timeout`, `is_on`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_score`, `trigger_field_cup`, `trigger_field_cdown`, `class_name`, `class_file`) VALUES
  931. ('sys_cmts', 'system', 'sys_cmts_scores', 'sys_cmts_scores_track', '604800', '0', 'sys_cmts_ids', 'id', 'author_id', 'score', 'sc_up', 'sc_down', '', '');
  932. -- -------------------------------------------------------
  933. CREATE TABLE `sys_modules` (
  934. `id` int(11) unsigned NOT NULL auto_increment,
  935. `type` varchar(16) NOT NULL default 'module',
  936. `name` varchar(32) NOT NULL default '',
  937. `title` varchar(255) NOT NULL default '',
  938. `vendor` varchar(64) NOT NULL default '',
  939. `version` varchar(32) NOT NULL default '',
  940. `help_url` varchar(128) NOT NULL default '',
  941. `path` varchar(255) NOT NULL default '',
  942. `uri` varchar(32) NOT NULL default '',
  943. `class_prefix` varchar(32) NOT NULL default '',
  944. `db_prefix` varchar(32) NOT NULL default '',
  945. `lang_category` varchar(64) NOT NULL default '',
  946. `dependencies` varchar(255) NOT NULL default '',
  947. `date` int(11) unsigned NOT NULL default '0',
  948. `enabled` tinyint(1) NOT NULL default '0',
  949. `pending_uninstall` tinyint(4) NOT NULL,
  950. `hash` varchar(32) NOT NULL default '',
  951. PRIMARY KEY (`id`),
  952. UNIQUE KEY `name` (`name`),
  953. UNIQUE KEY `path` (`path`(191)),
  954. UNIQUE KEY `uri` (`uri`),
  955. UNIQUE KEY `class_prefix` (`class_prefix`),
  956. UNIQUE KEY `db_prefix` (`db_prefix`)
  957. );
  958. INSERT INTO `sys_modules` (`type`, `name`, `title`, `vendor`, `version`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `dependencies`, `date`, `enabled`) VALUES
  959. ('module', 'system', 'System', 'UNA, Inc', '9', '', 'system', 'Bx', 'sys_', 'System', '', 0, 1);
  960. CREATE TABLE `sys_modules_file_tracks` (
  961. `id` int(11) unsigned NOT NULL auto_increment,
  962. `module_id` int(11) unsigned NOT NULL default '0',
  963. `file` varchar(255) NOT NULL default '',
  964. `hash` varchar(64) NOT NULL default '',
  965. PRIMARY KEY (`id`)
  966. );
  967. CREATE TABLE `sys_modules_relations` (
  968. `id` int(11) unsigned NOT NULL auto_increment,
  969. `module` varchar(32) NOT NULL default '',
  970. `on_install` varchar(255) NOT NULL default '',
  971. `on_uninstall` varchar(255) NOT NULL default '',
  972. `on_enable` varchar(255) NOT NULL default '',
  973. `on_disable` varchar(255) NOT NULL default '',
  974. PRIMARY KEY (`id`)
  975. );
  976. -- --------------------------------------------------------
  977. CREATE TABLE IF NOT EXISTS `sys_files` (
  978. `id` int(11) NOT NULL AUTO_INCREMENT,
  979. `profile_id` int(10) unsigned NOT NULL,
  980. `remote_id` varchar(128) NOT NULL,
  981. `path` varchar(255) NOT NULL,
  982. `file_name` varchar(255) NOT NULL,
  983. `mime_type` varchar(128) NOT NULL,
  984. `ext` varchar(32) NOT NULL,
  985. `size` int(11) NOT NULL,
  986. `added` int(11) NOT NULL,
  987. `modified` int(11) NOT NULL,
  988. `private` int(11) NOT NULL,
  989. PRIMARY KEY (`id`),
  990. UNIQUE KEY `remote_id` (`remote_id`)
  991. );
  992. CREATE TABLE `sys_images` (
  993. `id` int(11) NOT NULL AUTO_INCREMENT,
  994. `profile_id` int(10) unsigned NOT NULL,
  995. `remote_id` varchar(128) NOT NULL,
  996. `path` varchar(255) NOT NULL,
  997. `file_name` varchar(255) NOT NULL,
  998. `mime_type` varchar(128) NOT NULL,
  999. `ext` varchar(32) NOT NULL,
  1000. `size` int(11) NOT NULL,
  1001. `added` int(11) NOT NULL,
  1002. `modified` int(11) NOT NULL,
  1003. `private` int(11) NOT NULL,
  1004. PRIMARY KEY (`id`),
  1005. UNIQUE KEY `remote_id` (`remote_id`)
  1006. );
  1007. CREATE TABLE `sys_images_custom` (
  1008. `id` int(11) NOT NULL AUTO_INCREMENT,
  1009. `profile_id` int(10) unsigned NOT NULL,
  1010. `remote_id` varchar(128) NOT NULL,
  1011. `path` varchar(255) NOT NULL,
  1012. `file_name` varchar(255) NOT NULL,
  1013. `mime_type` varchar(128) NOT NULL,
  1014. `ext` varchar(32) NOT NULL,
  1015. `size` int(11) NOT NULL,
  1016. `added` int(11) NOT NULL,
  1017. `modified` int(11) NOT NULL,
  1018. `private` int(11) NOT NULL,
  1019. PRIMARY KEY (`id`),
  1020. UNIQUE KEY `remote_id` (`remote_id`)
  1021. );
  1022. CREATE TABLE `sys_images_resized` (
  1023. `id` int(11) NOT NULL AUTO_INCREMENT,
  1024. `profile_id` int(10) unsigned NOT NULL,
  1025. `remote_id` varchar(128) NOT NULL,
  1026. `path` varchar(255) NOT NULL,
  1027. `file_name` varchar(255) NOT NULL,
  1028. `mime_type` varchar(128) NOT NULL,
  1029. `ext` varchar(32) NOT NULL,
  1030. `size` int(11) NOT NULL,
  1031. `added` int(11) NOT NULL,
  1032. `modified` int(11) NOT NULL,
  1033. `private` int(11) NOT NULL,
  1034. PRIMARY KEY (`id`),
  1035. UNIQUE KEY `remote_id` (`remote_id`)
  1036. );
  1037. -- --------------------------------------------------------
  1038. CREATE TABLE IF NOT EXISTS `sys_cmts_images` (
  1039. `id` int(11) NOT NULL AUTO_INCREMENT,
  1040. `profile_id` int(10) unsigned NOT NULL,
  1041. `remote_id` varchar(128) NOT NULL,
  1042. `path` varchar(255) NOT NULL,
  1043. `file_name` varchar(255) NOT NULL,
  1044. `mime_type` varchar(128) NOT NULL,
  1045. `ext` varchar(32) NOT NULL,
  1046. `size` int(11) NOT NULL,
  1047. `added` int(11) NOT NULL,
  1048. `modified` int(11) NOT NULL,
  1049. `private` int(11) NOT NULL,
  1050. PRIMARY KEY (`id`),
  1051. UNIQUE KEY `remote_id` (`remote_id`)
  1052. );
  1053. CREATE TABLE IF NOT EXISTS `sys_cmts_images_preview` (
  1054. `id` int(11) NOT NULL AUTO_INCREMENT,
  1055. `profile_id` int(10) unsigned NOT NULL,
  1056. `remote_id` varchar(128) NOT NULL,
  1057. `path` varchar(255) NOT NULL,
  1058. `file_name` varchar(255) NOT NULL,
  1059. `mime_type` varchar(128) NOT NULL,
  1060. `ext` varchar(32) NOT NULL,
  1061. `size` int(11) NOT NULL,
  1062. `added` int(11) NOT NULL,
  1063. `modified` int(11) NOT NULL,
  1064. `private` int(11) NOT NULL,
  1065. PRIMARY KEY (`id`),
  1066. UNIQUE KEY `remote_id` (`remote_id`)
  1067. );
  1068. CREATE TABLE IF NOT EXISTS `sys_cmts_images2entries` (
  1069. `id` int(11) NOT NULL AUTO_INCREMENT,
  1070. `system_id` int(11) NOT NULL DEFAULT '0',
  1071. `cmt_id` int(11) NOT NULL DEFAULT '0',
  1072. `image_id` int(11) NOT NULL DEFAULT '0',
  1073. PRIMARY KEY (`id`),
  1074. UNIQUE KEY `image` (`system_id`,`cmt_id`,`image_id`)
  1075. );
  1076. CREATE TABLE IF NOT EXISTS `sys_cmts_ids` (
  1077. `id` int(11) NOT NULL AUTO_INCREMENT,
  1078. `system_id` int(11) NOT NULL DEFAULT '0',
  1079. `cmt_id` int(11) NOT NULL DEFAULT '0',
  1080. `author_id` int(11) NOT NULL DEFAULT '0',
  1081. `rate` float NOT NULL default '0',
  1082. `votes` int(11) NOT NULL default '0',
  1083. `rrate` float NOT NULL default '0',
  1084. `rvotes` int(11) NOT NULL default '0',
  1085. `score` int(11) NOT NULL default '0',
  1086. `sc_up` int(11) NOT NULL default '0',
  1087. `sc_down` int(11) NOT NULL default '0',
  1088. `reports` int(11) NOT NULL default '0',
  1089. PRIMARY KEY (`id`),
  1090. UNIQUE KEY `system_cmt_id` (`system_id`,`cmt_id`)
  1091. );
  1092. CREATE TABLE IF NOT EXISTS `sys_cmts_meta_keywords` (
  1093. `object_id` int(10) unsigned NOT NULL,
  1094. `keyword` varchar(255) NOT NULL,
  1095. KEY `object_id` (`object_id`),
  1096. KEY `keyword` (`keyword`)
  1097. );
  1098. CREATE TABLE IF NOT EXISTS `sys_cmts_meta_mentions` (
  1099. `object_id` int(10) unsigned NOT NULL,
  1100. `profile_id` int(10) unsigned NOT NULL,
  1101. KEY `object_id` (`object_id`),
  1102. KEY `profile_id` (`profile_id`)
  1103. );
  1104. CREATE TABLE IF NOT EXISTS `sys_cmts_votes` (
  1105. `object_id` int(11) NOT NULL default '0',
  1106. `count` int(11) NOT NULL default '0',
  1107. `sum` int(11) NOT NULL default '0',
  1108. UNIQUE KEY `object_id` (`object_id`)
  1109. );
  1110. CREATE TABLE IF NOT EXISTS `sys_cmts_votes_track` (
  1111. `id` int(11) NOT NULL AUTO_INCREMENT,
  1112. `object_id` int(11) NOT NULL default '0',
  1113. `author_id` int(11) NOT NULL default '0',
  1114. `author_nip` int(11) unsigned NOT NULL default '0',
  1115. `value` tinyint(4) NOT NULL default '0',
  1116. `date` int(11) NOT NULL default '0',
  1117. PRIMARY KEY (`id`),
  1118. KEY `vote` (`object_id`, `author_nip`)
  1119. );
  1120. CREATE TABLE IF NOT EXISTS `sys_cmts_reactions` (
  1121. `object_id` int(11) NOT NULL default '0',
  1122. `reaction` varchar(32) NOT NULL default '',
  1123. `count` int(11) NOT NULL default '0',
  1124. `sum` int(11) NOT NULL default '0',
  1125. UNIQUE KEY `reaction` (`object_id`, `reaction`)
  1126. );
  1127. CREATE TABLE IF NOT EXISTS `sys_cmts_reactions_track` (
  1128. `id` int(11) NOT NULL AUTO_INCREMENT,
  1129. `object_id` int(11) NOT NULL default '0',
  1130. `author_id` int(11) NOT NULL default '0',
  1131. `author_nip` int(11) unsigned NOT NULL default '0',
  1132. `reaction` varchar(32) NOT NULL default '',
  1133. `value` tinyint(4) NOT NULL default '0',
  1134. `date` int(11) NOT NULL default '0',
  1135. PRIMARY KEY (`id`),
  1136. KEY `vote` (`object_id`, `author_nip`)
  1137. );
  1138. CREATE TABLE IF NOT EXISTS `sys_cmts_reports` (
  1139. `object_id` int(11) NOT NULL default '0',
  1140. `count` int(11) NOT NULL default '0',
  1141. UNIQUE KEY `object_id` (`object_id`)
  1142. );
  1143. CREATE TABLE IF NOT EXISTS `sys_cmts_reports_track` (
  1144. `id` int(11) NOT NULL AUTO_INCREMENT,
  1145. `object_id` int(11) NOT NULL default '0',
  1146. `author_id` int(11) NOT NULL default '0',
  1147. `author_nip` int(11) unsigned NOT NULL default '0',
  1148. `type` varchar(32) NOT NULL default '',
  1149. `text` text NOT NULL default '',
  1150. `date` int(11) NOT NULL default '0',
  1151. PRIMARY KEY (`id`),
  1152. KEY `report` (`object_id`, `author_nip`)
  1153. );
  1154. CREATE TABLE IF NOT EXISTS `sys_cmts_scores` (
  1155. `object_id` int(11) NOT NULL default '0',
  1156. `count_up` int(11) NOT NULL default '0',
  1157. `count_down` int(11) NOT NULL default '0',
  1158. UNIQUE KEY `object_id` (`object_id`)
  1159. );
  1160. CREATE TABLE IF NOT EXISTS `sys_cmts_scores_track` (
  1161. `id` int(11) NOT NULL AUTO_INCREMENT,
  1162. `object_id` int(11) NOT NULL default '0',
  1163. `author_id` int(11) NOT NULL default '0',
  1164. `author_nip` int(11) unsigned NOT NULL default '0',
  1165. `type` varchar(8) NOT NULL default '',
  1166. `date` int(11) NOT NULL default '0',
  1167. PRIMARY KEY (`id`),
  1168. KEY `vote` (`object_id`, `author_nip`)
  1169. );
  1170. -- --------------------------------------------------------
  1171. CREATE TABLE `sys_injections` (
  1172. `id` int(11) unsigned NOT NULL auto_increment,
  1173. `name` varchar(128) NOT NULL default '',
  1174. `page_index` int(11) NOT NULL default '0',
  1175. `key` varchar(128) NOT NULL default '',
  1176. `type` enum('text', 'service') NOT NULL default 'text',
  1177. `data` text NOT NULL default '',
  1178. `replace` TINYINT NOT NULL DEFAULT '0',
  1179. `active` TINYINT NOT NULL DEFAULT '1',
  1180. PRIMARY KEY (`id`)
  1181. );
  1182. INSERT INTO `sys_injections`(`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
  1183. ('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),
  1184. ('sys_head', 0, 'injection_head', 'text', '', 0, 1),
  1185. ('sys_body', 0, 'injection_footer', 'text', '', 0, 1);
  1186. -- --------------------------------------------------------
  1187. CREATE TABLE `sys_injections_admin` (
  1188. `id` int(11) unsigned NOT NULL auto_increment,
  1189. `name` varchar(128) NOT NULL default '',
  1190. `page_index` int(11) NOT NULL default '0',
  1191. `key` varchar(128) NOT NULL default '',
  1192. `type` enum('text','service') NOT NULL default 'text',
  1193. `data` text NOT NULL,
  1194. `replace` tinyint(4) NOT NULL default '0',
  1195. `active` tinyint(4) NOT NULL default '1',
  1196. PRIMARY KEY (`id`)
  1197. );
  1198. -- --------------------------------------------------------
  1199. CREATE TABLE `sys_permalinks` (
  1200. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1201. `standard` varchar(128) NOT NULL DEFAULT '',
  1202. `permalink` varchar(128) NOT NULL DEFAULT '',
  1203. `check` varchar(64) NOT NULL DEFAULT '',
  1204. `compare_by_prefix` tinyint(4) NOT NULL DEFAULT '0',
  1205. PRIMARY KEY (`id`),
  1206. UNIQUE KEY `check` (`standard`(80),`permalink`(80),`check`(30))
  1207. );
  1208. INSERT INTO `sys_permalinks` (`standard`, `permalink`, `check`, `compare_by_prefix`) VALUES
  1209. ('page.php?i=', 'page/', 'permalinks_pages', 1),
  1210. ('modules/?r=', 'm/', 'permalinks_modules', 1),
  1211. ('storage.php?o=', 's/', 'permalinks_storage', 1);
  1212. -- --------------------------------------------------------
  1213. CREATE TABLE `sys_alerts_handlers` (
  1214. `id` int(11) unsigned NOT NULL auto_increment,
  1215. `name` varchar(128) NOT NULL default '',
  1216. `class` varchar(128) NOT NULL default '',
  1217. `file` varchar(255) NOT NULL default '',
  1218. `service_call` text NOT NULL default '',
  1219. PRIMARY KEY (`id`),
  1220. UNIQUE KEY `name` (`name`)
  1221. );
  1222. CREATE TABLE `sys_alerts` (
  1223. `id` int(11) unsigned NOT NULL auto_increment,
  1224. `unit` varchar(128) NOT NULL default '',
  1225. `action` varchar(32) NOT NULL default 'none',
  1226. `handler_id` int(11) NOT NULL default '0',
  1227. PRIMARY KEY (`id`),
  1228. UNIQUE KEY `alert_handler` (`unit`, `action`, `handler_id`)
  1229. );
  1230. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1231. ('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";}');
  1232. SET @iIdHandler = LAST_INSERT_ID();
  1233. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1234. ('system', 'save_setting', @iIdHandler);
  1235. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1236. ('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";}');
  1237. SET @iIdHandler = LAST_INSERT_ID();
  1238. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1239. ('sys_images_custom', 'file_deleted', @iIdHandler);
  1240. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1241. ('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";}');
  1242. SET @iHandler = LAST_INSERT_ID();
  1243. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1244. ('system', 'save_setting', @iHandler);
  1245. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1246. ('sys_installed', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:32:"alert_response_process_installed";s:5:"class";s:13:"TemplServices";}');
  1247. SET @iHandler = LAST_INSERT_ID();
  1248. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1249. ('system', 'installed', @iHandler);
  1250. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1251. ('sys_connections', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:26:"alert_response_connections";s:5:"class";s:23:"TemplServiceConnections";}');
  1252. SET @iHandler = LAST_INSERT_ID();
  1253. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1254. ('sys_profiles_friends', 'connection_added', @iHandler),
  1255. ('sys_profiles_friends', 'connection_removed', @iHandler);
  1256. -- --------------------------------------------------------
  1257. CREATE TABLE `sys_objects_report` (
  1258. `id` int(11) NOT NULL auto_increment,
  1259. `name` varchar(64) NOT NULL,
  1260. `table_main` varchar(32) NOT NULL,
  1261. `table_track` varchar(32) NOT NULL,
  1262. `is_on` tinyint(4) NOT NULL default '1',
  1263. `base_url` varchar(256) NOT NULL default '',
  1264. `trigger_table` varchar(32) NOT NULL,
  1265. `trigger_field_id` varchar(32) NOT NULL,
  1266. `trigger_field_author` varchar(32) NOT NULL,
  1267. `trigger_field_count` varchar(32) NOT NULL,
  1268. `class_name` varchar(32) NOT NULL default '',
  1269. `class_file` varchar(256) NOT NULL default '',
  1270. PRIMARY KEY (`id`)
  1271. );
  1272. INSERT INTO `sys_objects_report` (`name`, `table_main`, `table_track`, `is_on`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
  1273. ('sys_cmts', 'sys_cmts_reports', 'sys_cmts_reports_track', '1', '', 'sys_cmts_ids', 'id', 'author_id', 'reports', '', '');
  1274. -- --------------------------------------------------------
  1275. CREATE TABLE `sys_objects_view` (
  1276. `id` int(11) NOT NULL auto_increment,
  1277. `name` varchar(64) NOT NULL,
  1278. `module` varchar(32) NOT NULL default '',
  1279. `table_track` varchar(32) NOT NULL,
  1280. `period` int(11) NOT NULL default '86400',
  1281. `is_on` tinyint(4) NOT NULL default '1',
  1282. `trigger_table` varchar(32) NOT NULL,
  1283. `trigger_field_id` varchar(32) NOT NULL,
  1284. `trigger_field_author` varchar(32) NOT NULL,
  1285. `trigger_field_count` varchar(32) NOT NULL,
  1286. `class_name` varchar(32) NOT NULL default '',
  1287. `class_file` varchar(256) NOT NULL default '',
  1288. PRIMARY KEY (`id`)
  1289. );
  1290. -- --------------------------------------------------------
  1291. CREATE TABLE `sys_objects_favorite` (
  1292. `id` int(11) NOT NULL auto_increment,
  1293. `name` varchar(64) NOT NULL,
  1294. `table_track` varchar(32) NOT NULL,
  1295. `is_on` tinyint(4) NOT NULL default '1',
  1296. `is_undo` tinyint(4) NOT NULL default '1',
  1297. `is_public` tinyint(4) NOT NULL default '1',
  1298. `base_url` varchar(256) NOT NULL default '',
  1299. `trigger_table` varchar(32) NOT NULL,
  1300. `trigger_field_id` varchar(32) NOT NULL,
  1301. `trigger_field_author` varchar(32) NOT NULL,
  1302. `trigger_field_count` varchar(32) NOT NULL,
  1303. `class_name` varchar(32) NOT NULL default '',
  1304. `class_file` varchar(256) NOT NULL default '',
  1305. PRIMARY KEY (`id`)
  1306. );
  1307. -- --------------------------------------------------------
  1308. CREATE TABLE `sys_objects_feature` (
  1309. `id` int(11) NOT NULL auto_increment,
  1310. `name` varchar(64) NOT NULL,
  1311. `is_on` tinyint(4) NOT NULL default '1',
  1312. `is_undo` tinyint(4) NOT NULL default '1',
  1313. `base_url` varchar(256) NOT NULL default '',
  1314. `trigger_table` varchar(32) NOT NULL,
  1315. `trigger_field_id` varchar(32) NOT NULL,
  1316. `trigger_field_author` varchar(32) NOT NULL,
  1317. `trigger_field_flag` varchar(32) NOT NULL,
  1318. `class_name` varchar(32) NOT NULL default '',
  1319. `class_file` varchar(256) NOT NULL default '',
  1320. PRIMARY KEY (`id`)
  1321. );
  1322. -- --------------------------------------------------------
  1323. CREATE TABLE `sys_objects_chart` (
  1324. `id` int(11) NOT NULL AUTO_INCREMENT,
  1325. `object` varchar(32) NOT NULL,
  1326. `title` varchar(255) NOT NULL,
  1327. `table` varchar(255) NOT NULL,
  1328. `field_date_ts` varchar(255) NOT NULL,
  1329. `field_date_dt` varchar(255) NOT NULL,
  1330. `field_status` varchar(255) NOT NULL,
  1331. `column_date` int(11) NOT NULL DEFAULT '0',
  1332. `column_count` int(11) NOT NULL DEFAULT '1',
  1333. `type` varchar(255) NOT NULL,
  1334. `options` text NOT NULL,
  1335. `query` text NOT NULL,
  1336. `active` tinyint(4) NOT NULL DEFAULT '1',
  1337. `order` int(11) NOT NULL,
  1338. `class_name` varchar(32) NOT NULL default '',
  1339. `class_file` varchar(256) NOT NULL default '',
  1340. PRIMARY KEY (`id`),
  1341. UNIQUE KEY `object` (`object`)
  1342. );
  1343. INSERT INTO `sys_objects_chart` (`object`, `title`, `table`, `field_date_ts`, `field_date_dt`, `field_status`, `query`, `active`, `order`, `class_name`, `class_file`) VALUES
  1344. ('sys_accounts_growth', '_sys_chart_accounts_growth', 'sys_accounts', 'added', '', '', '', 1, 1, 'BxDolChartGrowth', ''),
  1345. ('sys_accounts_growth_speed', '_sys_chart_accounts_growth_speed', 'sys_accounts', 'added', '', '', '', 1, 1, 'BxDolChartGrowthSpeed', '');
  1346. -- --------------------------------------------------------
  1347. CREATE TABLE `sys_objects_content_info` (
  1348. `id` int(11) NOT NULL auto_increment,
  1349. `name` varchar(64) NOT NULL,
  1350. `title` varchar(128) NOT NULL,
  1351. `alert_unit` varchar(32) NOT NULL,
  1352. `alert_action_add` varchar(32) NOT NULL,
  1353. `alert_action_update` varchar(32) NOT NULL,
  1354. `alert_action_delete` varchar(32) NOT NULL,
  1355. `class_name` varchar(32) NOT NULL default '',
  1356. `class_file` varchar(256) NOT NULL default '',
  1357. PRIMARY KEY (`id`),
  1358. UNIQUE KEY `name` (`name`),
  1359. UNIQUE KEY `alert_add` (`alert_unit` ,`alert_action_add`),
  1360. UNIQUE KEY `alert_update` (`alert_unit` ,`alert_action_update`),
  1361. UNIQUE KEY `alert_delete` (`alert_unit` ,`alert_action_delete`)
  1362. );
  1363. -- --------------------------------------------------------
  1364. CREATE TABLE `sys_content_info_grids` (
  1365. `id` int(11) NOT NULL auto_increment,
  1366. `object` varchar(64) NOT NULL,
  1367. `grid_object` varchar(64) NOT NULL,
  1368. `grid_field_id` varchar(64) NOT NULL,
  1369. `condition` text NOT NULL default '',
  1370. `selection` varchar(256) NOT NULL default '',
  1371. PRIMARY KEY (`id`),
  1372. UNIQUE KEY `grid_object` (`grid_object`)
  1373. );
  1374. -- --------------------------------------------------------
  1375. CREATE TABLE `sys_objects_privacy` (
  1376. `id` int(11) NOT NULL auto_increment,
  1377. `object` varchar(64) NOT NULL default '',
  1378. `module` varchar(64) NOT NULL default '',
  1379. `action` varchar(255) NOT NULL default '',
  1380. `title` varchar(255) NOT NULL default '',
  1381. `default_group` varchar(255) NOT NULL default '1',
  1382. `spaces` varchar(255) NOT NULL DEFAULT 'all',
  1383. `table` varchar(255) NOT NULL default '',
  1384. `table_field_id` varchar(255) NOT NULL default '',
  1385. `table_field_author` varchar(255) NOT NULL default '',
  1386. `override_class_name` varchar(255) NOT NULL default '',
  1387. `override_class_file` varchar(255) NOT NULL default '',
  1388. PRIMARY KEY (`id`),
  1389. UNIQUE KEY `object` (`object`),
  1390. UNIQUE KEY `action` (`module`(64), `action`(127))
  1391. );
  1392. CREATE TABLE `sys_privacy_defaults` (
  1393. `owner_id` int(11) NOT NULL default '0',
  1394. `action_id` int(11) NOT NULL default '0',
  1395. `group_id` int(11) NOT NULL default '0',
  1396. PRIMARY KEY (`owner_id`, `action_id`)
  1397. );
  1398. CREATE TABLE `sys_privacy_groups` (
  1399. `id` int(11) unsigned NOT NULL auto_increment,
  1400. `title` varchar(255) NOT NULL default '',
  1401. `check` text NOT NULL default '',
  1402. `active` tinyint(4) NOT NULL default '1',
  1403. `visible` tinyint(4) NOT NULL default '1',
  1404. PRIMARY KEY (`id`)
  1405. );
  1406. INSERT INTO `sys_privacy_groups`(`id`, `title`, `check`, `active`, `visible`) VALUES
  1407. ('1', '', '', 1, 0),
  1408. ('2', '_sys_ps_group_title_me_only', '@me_only', 1, 1),
  1409. ('3', '_sys_ps_group_title_public', '@public', 1, 1),
  1410. ('4', '_sys_ps_group_title_members', '@members', 0, 0),
  1411. ('5', '_sys_ps_group_title_friends', '@friends', 1, 1);
  1412. -- --------------------------------------------------------
  1413. CREATE TABLE `sys_cron_jobs` (
  1414. `id` int(11) unsigned NOT NULL auto_increment,
  1415. `name` varchar(128) NOT NULL default '',
  1416. `time` varchar(128) NOT NULL default '*',
  1417. `class` varchar(128) NOT NULL default '',
  1418. `file` varchar(255) NOT NULL default '',
  1419. `service_call` text NOT NULL default '',
  1420. PRIMARY KEY (`id`)
  1421. );
  1422. INSERT INTO `sys_cron_jobs` (`name`, `time`, `class`, `file`, `service_call`) VALUES
  1423. ('pruning', '0 0 * * *', 'BxDolCronPruning', 'inc/classes/BxDolCronPruning.php', ''),
  1424. ('sys_acl', '0 0 * * *', 'BxDolCronAcl', 'inc/classes/BxDolCronAcl.php', ''),
  1425. ('sys_account', '0 0 * * *', 'BxDolCronAccount', 'inc/classes/BxDolCronAccount.php', ''),
  1426. ('sys_upgrade', '0 3 * * *', 'BxDolCronUpgradeCheck', 'inc/classes/BxDolCronUpgradeCheck.php', ''),
  1427. ('sys_upgrade_modules', '30 2 * * *', 'BxDolCronUpgradeModulesCheck', 'inc/classes/BxDolCronUpgradeModulesCheck.php', ''),
  1428. ('sys_storage', '* * * * *', 'BxDolCronStorage', 'inc/classes/BxDolCronStorage.php', ''),
  1429. ('sys_transcoder', '* * * * *', 'BxDolCronTranscoder', 'inc/classes/BxDolCronTranscoder.php', ''),
  1430. ('sys_queue_email', '* * * * *', 'BxDolCronQueueEmail', 'inc/classes/BxDolCronQueueEmail.php', ''),
  1431. ('sys_queue_push', '* * * * *', 'BxDolCronQueuePush', 'inc/classes/BxDolCronQueuePush.php', '');
  1432. -- --------------------------------------------------------
  1433. CREATE TABLE IF NOT EXISTS `sys_objects_storage` (
  1434. `id` int(11) NOT NULL AUTO_INCREMENT,
  1435. `object` varchar(64) NOT NULL,
  1436. `engine` varchar(32) NOT NULL,
  1437. `params` text NOT NULL,
  1438. `token_life` int(11) NOT NULL,
  1439. `cache_control` int(11) NOT NULL,
  1440. `levels` tinyint(4) NOT NULL,
  1441. `table_files` varchar(64) NOT NULL,
  1442. `ext_mode` enum('allow-deny','deny-allow') NOT NULL,
  1443. `ext_allow` text NOT NULL,
  1444. `ext_deny` text NOT NULL,
  1445. `quota_size` int(11) NOT NULL,
  1446. `current_size` int(11) NOT NULL,
  1447. `quota_number` int(11) NOT NULL,
  1448. `current_number` int(11) NOT NULL,
  1449. `max_file_size` int(11) NOT NULL,
  1450. `ts` int(11) NOT NULL,
  1451. PRIMARY KEY (`id`),
  1452. UNIQUE KEY `object` (`object`)
  1453. );
  1454. 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
  1455. ('sys_images', 'Local', '', 360, 2592000, 0, 'sys_images', 'allow-deny', 'jpg,jpeg,jpe,gif,png,svg', '', 0, 0, 0, 0, 0, 0),
  1456. ('sys_images_custom', 'Local', '', 360, 2592000, 0, 'sys_images_custom', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1457. ('sys_images_resized', 'Local', '', 360, 2592000, 0, 'sys_images_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png,svg', '', 0, 0, 0, 0, 0, 0),
  1458. ('sys_cmts_images', 'Local', '', 360, 2592000, 3, 'sys_cmts_images', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1459. ('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),
  1460. ('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),
  1461. ('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);
  1462. CREATE TABLE IF NOT EXISTS `sys_storage_user_quotas` (
  1463. `profile_id` int(11) NOT NULL,
  1464. `current_size` int(11) NOT NULL,
  1465. `current_number` int(11) NOT NULL,
  1466. `ts` int(11) NOT NULL,
  1467. PRIMARY KEY (`profile_id`)
  1468. );
  1469. CREATE TABLE IF NOT EXISTS `sys_storage_tokens` (
  1470. `id` int(11) NOT NULL,
  1471. `object` varchar(64) NOT NULL,
  1472. `hash` varchar(32) NOT NULL,
  1473. `created` int(10) unsigned NOT NULL,
  1474. UNIQUE KEY `id` (`id`,`object`,`hash`),
  1475. KEY `created` (`created`)
  1476. );
  1477. CREATE TABLE IF NOT EXISTS `sys_storage_ghosts` (
  1478. `id` int(11) NOT NULL,
  1479. `profile_id` int(10) unsigned NOT NULL,
  1480. `object` varchar(64) NOT NULL,
  1481. `content_id` int(11) NOT NULL,
  1482. `created` int(10) unsigned NOT NULL,
  1483. UNIQUE KEY `id` (`id`,`object`),
  1484. KEY `created` (`created`),
  1485. KEY `profile_object_content` (`profile_id`,`object`,`content_id`)
  1486. );
  1487. CREATE TABLE IF NOT EXISTS `sys_storage_deletions` (
  1488. `id` int(11) NOT NULL AUTO_INCREMENT,
  1489. `object` varchar(64) NOT NULL,
  1490. `file_id` int(11) NOT NULL,
  1491. `requested` int(10) unsigned NOT NULL,
  1492. PRIMARY KEY (`id`),
  1493. UNIQUE KEY `object_file_id` (`object`,`file_id`),
  1494. KEY `requested` (`requested`)
  1495. );
  1496. CREATE TABLE IF NOT EXISTS `sys_storage_mime_types` (
  1497. `ext` varchar(32) NOT NULL,
  1498. `mime_type` varchar(128) NOT NULL,
  1499. `icon` varchar(255) NOT NULL,
  1500. `icon_font` varchar(255) NOT NULL,
  1501. PRIMARY KEY (`ext`)
  1502. );
  1503. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1504. ('ez', 'application/andrew-inset', '', ''),
  1505. ('aw', 'application/applixware', '', ''),
  1506. ('atom', 'application/atom+xml', '', ''),
  1507. ('atomcat', 'application/atomcat+xml', '', ''),
  1508. ('atomsvc', 'application/atomsvc+xml', '', ''),
  1509. ('ccxml', 'application/ccxml+xml', '', ''),
  1510. ('cdmia', 'application/cdmi-capability', '', ''),
  1511. ('cdmic', 'application/cdmi-container', '', ''),
  1512. ('cdmid', 'application/cdmi-domain', '', ''),
  1513. ('cdmio', 'application/cdmi-object', '', ''),
  1514. ('cdmiq', 'application/cdmi-queue', '', ''),
  1515. ('cu', 'application/cu-seeme', '', ''),
  1516. ('davmount', 'application/davmount+xml', '', ''),
  1517. ('dbk', 'application/docbook+xml', '', ''),
  1518. ('dssc', 'application/dssc+der', '', ''),
  1519. ('xdssc', 'application/dssc+xml', '', ''),
  1520. ('ecma', 'application/ecmascript', '', ''),
  1521. ('emma', 'application/emma+xml', '', ''),
  1522. ('epub', 'application/epub+zip', '', ''),
  1523. ('exi', 'application/exi', '', ''),
  1524. ('pfr', 'application/font-tdpfr', '', ''),
  1525. ('gml', 'application/gml+xml', '', ''),
  1526. ('gpx', 'application/gpx+xml', '', ''),
  1527. ('gxf', 'application/gxf', '', ''),
  1528. ('stk', 'application/hyperstudio', '', ''),
  1529. ('ink', 'application/inkml+xml', '', ''),
  1530. ('inkml', 'application/inkml+xml', '', ''),
  1531. ('ipfix', 'application/ipfix', '', ''),
  1532. ('jar', 'application/java-archive', '', ''),
  1533. ('ser', 'application/java-serialized-object', '', ''),
  1534. ('class', 'application/java-vm', '', ''),
  1535. ('js', 'application/javascript', '', 'far file-code'),
  1536. ('json', 'application/json', '', 'far file-code'),
  1537. ('jsonml', 'application/jsonml+json', '', ''),
  1538. ('lostxml', 'application/lost+xml', '', ''),
  1539. ('hqx', 'application/mac-binhex40', '', ''),
  1540. ('cpt', 'application/mac-compactpro', '', ''),
  1541. ('mads', 'application/mads+xml', '', ''),
  1542. ('mrc', 'application/marc', '', ''),
  1543. ('mrcx', 'application/marcxml+xml', '', ''),
  1544. ('ma', 'application/mathematica', '', ''),
  1545. ('nb', 'application/mathematica', '', ''),
  1546. ('mb', 'application/mathematica', '', ''),
  1547. ('mathml', 'application/mathml+xml', '', ''),
  1548. ('mbox', 'application/mbox', '', 'far file-code'),
  1549. ('mscml', 'application/mediaservercontrol+xml', '', ''),
  1550. ('metalink', 'application/metalink+xml', '', ''),
  1551. ('meta4', 'application/metalink4+xml', '', ''),
  1552. ('mets', 'application/mets+xml', '', ''),
  1553. ('mods', 'application/mods+xml', '', ''),
  1554. ('m21', 'application/mp21', '', ''),
  1555. ('mp21', 'application/mp21', '', ''),
  1556. ('mp4s', 'application/mp4', '', ''),
  1557. ('doc', 'application/msword', 'mime-type-document.png', 'far file-word'),
  1558. ('dot', 'application/msword', '', ''),
  1559. ('mxf', 'application/mxf', '', ''),
  1560. ('bin', 'application/octet-stream', '', ''),
  1561. ('dms', 'application/octet-stream', '', ''),
  1562. ('lrf', 'application/octet-stream', '', ''),
  1563. ('mar', 'application/octet-stream', '', ''),
  1564. ('so', 'application/octet-stream', '', ''),
  1565. ('dist', 'application/octet-stream', '', ''),
  1566. ('distz', 'application/octet-stream', '', ''),
  1567. ('pkg', 'application/octet-stream', '', ''),
  1568. ('bpk', 'application/octet-stream', '', ''),
  1569. ('dump', 'application/octet-stream', '', ''),
  1570. ('elc', 'application/octet-stream', '', ''),
  1571. ('deploy', 'application/octet-stream', '', ''),
  1572. ('mobipocket-ebook', 'application/octet-stream', '', ''),
  1573. ('oda', 'application/oda', '', ''),
  1574. ('opf', 'application/oebps-package+xml', '', ''),
  1575. ('ogx', 'application/ogg', '', ''),
  1576. ('omdoc', 'application/omdoc+xml', '', ''),
  1577. ('onetoc', 'application/onenote', '', ''),
  1578. ('onetoc2', 'application/onenote', '', ''),
  1579. ('onetmp', 'application/onenote', '', ''),
  1580. ('onepkg', 'application/onenote', '', ''),
  1581. ('oxps', 'application/oxps', '', ''),
  1582. ('xer', 'application/patch-ops-error+xml', '', ''),
  1583. ('pdf', 'application/pdf', 'mime-type-document.png', 'far file-pdf'),
  1584. ('pgp', 'application/pgp-encrypted', '', 'far file-code'),
  1585. ('asc', 'application/pgp-signature', '', 'far file-code'),
  1586. ('sig', 'application/pgp-signature', '', 'far file-code'),
  1587. ('prf', 'application/pics-rules', '', ''),
  1588. ('p10', 'application/pkcs10', 'mime-type-vector.png', ''),
  1589. ('p7m', 'application/pkcs7-mime', '', ''),
  1590. ('p7c', 'application/pkcs7-mime', '', ''),
  1591. ('p7s', 'application/pkcs7-signature', '', ''),
  1592. ('p8', 'application/pkcs8', '', ''),
  1593. ('ac', 'application/pkix-attr-cert', '', ''),
  1594. ('cer', 'application/pkix-cert', '', ''),
  1595. ('crl', 'application/pkix-crl', '', ''),
  1596. ('pkipath', 'application/pkix-pkipath', '', ''),
  1597. ('pki', 'application/pkixcmp', '', ''),
  1598. ('pls', 'application/pls+xml', '', ''),
  1599. ('ai', 'application/postscript', 'mime-type-vector.png', ''),
  1600. ('eps', 'application/postscript', '', ''),
  1601. ('ps', 'application/postscript', 'mime-type-vector.png', ''),
  1602. ('cww', 'application/prs.cww', '', ''),
  1603. ('pskcxml', 'application/pskc+xml', '', ''),
  1604. ('rdf', 'application/rdf+xml', '', 'far file-code'),
  1605. ('rif', 'application/reginfo+xml', '', ''),
  1606. ('rnc', 'application/relax-ng-compact-syntax', '', ''),
  1607. ('rl', 'application/resource-lists+xml', '', ''),
  1608. ('rld', 'application/resource-lists-diff+xml', '', ''),
  1609. ('rs', 'application/rls-services+xml', '', ''),
  1610. ('gbr', 'application/rpki-ghostbusters', '', ''),
  1611. ('mft', 'application/rpki-manifest', '', ''),
  1612. ('roa', 'application/rpki-roa', '', ''),
  1613. ('rsd', 'application/rsd+xml', '', ''),
  1614. ('rss', 'application/rss+xml', '', 'far file-code'),
  1615. ('rtf', 'application/rtf', 'mime-type-document.png', ''),
  1616. ('sbml', 'application/sbml+xml', '', ''),
  1617. ('scq', 'application/scvp-cv-request', '', ''),
  1618. ('scs', 'application/scvp-cv-response', '', ''),
  1619. ('spq', 'application/scvp-vp-request', '', ''),
  1620. ('spp', 'application/scvp-vp-response', '', ''),
  1621. ('sdp', 'application/sdp', 'mime-type-presentation.png', 'far file-powerpoint'),
  1622. ('setpay', 'application/set-payment-initiation', '', ''),
  1623. ('setreg', 'application/set-registration-initiation', '', ''),
  1624. ('shf', 'application/shf+xml', '', ''),
  1625. ('smi', 'application/smil+xml', '', ''),
  1626. ('smil', 'application/smil+xml', '', ''),
  1627. ('rq', 'application/sparql-query', '', 'far file-code'),
  1628. ('srx', 'application/sparql-results+xml', '', ''),
  1629. ('gram', 'application/srgs', '', ''),
  1630. ('grxml', 'application/srgs+xml', '', ''),
  1631. ('sru', 'application/sru+xml', '', ''),
  1632. ('ssdl', 'application/ssdl+xml', '', ''),
  1633. ('ssml', 'application/ssml+xml', '', ''),
  1634. ('tei', 'application/tei+xml', '', ''),
  1635. ('teicorpus', 'application/tei+xml', '', ''),
  1636. ('tfi', 'application/thraud+xml', '', ''),
  1637. ('tsd', 'application/timestamped-data', '', ''),
  1638. ('plb', 'application/vnd.3gpp.pic-bw-large', '', ''),
  1639. ('psb', 'application/vnd.3gpp.pic-bw-small', '', ''),
  1640. ('pvb', 'application/vnd.3gpp.pic-bw-var', '', ''),
  1641. ('tcap', 'application/vnd.3gpp2.tcap', '', ''),
  1642. ('pwn', 'application/vnd.3m.post-it-notes', '', ''),
  1643. ('aso', 'application/vnd.accpac.simply.aso', '', ''),
  1644. ('imp', 'application/vnd.accpac.simply.imp', '', ''),
  1645. ('acu', 'application/vnd.acucobol', '', ''),
  1646. ('atc', 'application/vnd.acucorp', '', ''),
  1647. ('acutc', 'application/vnd.acucorp', '', ''),
  1648. ('air', 'application/vnd.adobe.air-application-installer-package+zip', '', ''),
  1649. ('fcdt', 'application/vnd.adobe.formscentral.fcdt', '', ''),
  1650. ('fxp', 'application/vnd.adobe.fxp', '', ''),
  1651. ('fxpl', 'application/vnd.adobe.fxp', '', ''),
  1652. ('xdp', 'application/vnd.adobe.xdp+xml', '', ''),
  1653. ('xfdf', 'application/vnd.adobe.xfdf', '', ''),
  1654. ('ahead', 'application/vnd.ahead.space', '', ''),
  1655. ('azf', 'application/vnd.airzip.filesecure.azf', '', ''),
  1656. ('azs', 'application/vnd.airzip.filesecure.azs', '', ''),
  1657. ('azw', 'application/vnd.amazon.ebook', '', ''),
  1658. ('acc', 'application/vnd.americandynamics.acc', '', ''),
  1659. ('ami', 'application/vnd.amiga.ami', '', ''),
  1660. ('apk', 'application/vnd.android.package-archive', '', ''),
  1661. ('cii', 'application/vnd.anser-web-certificate-issue-initiation', '', ''),
  1662. ('fti', 'application/vnd.anser-web-funds-transfer-initiation', '', ''),
  1663. ('atx', 'application/vnd.antix.game-component', '', ''),
  1664. ('mpkg', 'application/vnd.apple.installer+xml', '', ''),
  1665. ('m3u8', 'application/vnd.apple.mpegurl', '', ''),
  1666. ('swi', 'application/vnd.aristanetworks.swi', '', ''),
  1667. ('iota', 'application/vnd.astraea-software.iota', '', ''),
  1668. ('aep', 'application/vnd.audiograph', '', ''),
  1669. ('mpm', 'application/vnd.blueice.multipass', '', ''),
  1670. ('bmi', 'application/vnd.bmi', '', ''),
  1671. ('rep', 'application/vnd.businessobjects', '', ''),
  1672. ('cdxml', 'application/vnd.chemdraw+xml', '', ''),
  1673. ('mmd', 'application/vnd.chipnuts.karaoke-mmd', '', ''),
  1674. ('cdy', 'application/vnd.cinderella', '', ''),
  1675. ('cla', 'application/vnd.claymore', '', ''),
  1676. ('rp9', 'application/vnd.cloanto.rp9', '', ''),
  1677. ('c4g', 'application/vnd.clonk.c4group', '', ''),
  1678. ('c4d', 'application/vnd.clonk.c4group', '', ''),
  1679. ('c4f', 'application/vnd.clonk.c4group', '', ''),
  1680. ('c4p', 'application/vnd.clonk.c4group', '', ''),
  1681. ('c4u', 'application/vnd.clonk.c4group', '', ''),
  1682. ('c11amc', 'application/vnd.cluetrust.cartomobile-config', '', ''),
  1683. ('c11amz', 'application/vnd.cluetrust.cartomobile-config-pkg', '', ''),
  1684. ('csp', 'application/vnd.commonspace', '', ''),
  1685. ('cdbcmsg', 'application/vnd.contact.cmsg', '', ''),
  1686. ('cmc', 'application/vnd.cosmocaller', '', ''),
  1687. ('clkx', 'application/vnd.crick.clicker', '', ''),
  1688. ('clkk', 'application/vnd.crick.clicker.keyboard', '', ''),
  1689. ('clkp', 'application/vnd.crick.clicker.palette', '', ''),
  1690. ('clkt', 'application/vnd.crick.clicker.template', '', ''),
  1691. ('clkw', 'application/vnd.crick.clicker.wordbank', '', ''),
  1692. ('wbs', 'application/vnd.criticaltools.wbs+xml', '', ''),
  1693. ('pml', 'application/vnd.ctc-posml', '', ''),
  1694. ('ppd', 'application/vnd.cups-ppd', '', ''),
  1695. ('car', 'application/vnd.curl.car', '', ''),
  1696. ('pcurl', 'application/vnd.curl.pcurl', '', ''),
  1697. ('dart', 'application/vnd.dart', '', ''),
  1698. ('rdz', 'application/vnd.data-vision.rdz', '', ''),
  1699. ('uvf', 'application/vnd.dece.data', '', ''),
  1700. ('uvvf', 'application/vnd.dece.data', '', ''),
  1701. ('uvd', 'application/vnd.dece.data', '', ''),
  1702. ('uvvd', 'application/vnd.dece.data', '', ''),
  1703. ('uvt', 'application/vnd.dece.ttml+xml', '', ''),
  1704. ('uvvt', 'application/vnd.dece.ttml+xml', '', ''),
  1705. ('uvx', 'application/vnd.dece.unspecified', '', ''),
  1706. ('uvvx', 'application/vnd.dece.unspecified', '', ''),
  1707. ('uvz', 'application/vnd.dece.zip', '', ''),
  1708. ('uvvz', 'application/vnd.dece.zip', '', ''),
  1709. ('fe_launch', 'application/vnd.denovo.fcselayout-link', '', ''),
  1710. ('dna', 'application/vnd.dna', '', ''),
  1711. ('mlp', 'application/vnd.dolby.mlp', '', ''),
  1712. ('dpg', 'application/vnd.dpgraph', '', ''),
  1713. ('dfac', 'application/vnd.dreamfactory', '', ''),
  1714. ('kpxx', 'application/vnd.ds-keypoint', '', ''),
  1715. ('ait', 'application/vnd.dvb.ait', 'mime-type-vector.png', ''),
  1716. ('svc', 'application/vnd.dvb.service', '', '');
  1717. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1718. ('geo', 'application/vnd.dynageo', '', ''),
  1719. ('mag', 'application/vnd.ecowin.chart', '', ''),
  1720. ('nml', 'application/vnd.enliven', '', ''),
  1721. ('esf', 'application/vnd.epson.esf', '', ''),
  1722. ('msf', 'application/vnd.epson.msf', '', ''),
  1723. ('qam', 'application/vnd.epson.quickanime', '', ''),
  1724. ('slt', 'application/vnd.epson.salt', '', ''),
  1725. ('ssf', 'application/vnd.epson.ssf', '', ''),
  1726. ('es3', 'application/vnd.eszigno3+xml', '', ''),
  1727. ('et3', 'application/vnd.eszigno3+xml', '', ''),
  1728. ('ez2', 'application/vnd.ezpix-album', '', ''),
  1729. ('ez3', 'application/vnd.ezpix-package', '', ''),
  1730. ('fdf', 'application/vnd.fdf', '', ''),
  1731. ('mseed', 'application/vnd.fdsn.mseed', '', ''),
  1732. ('seed', 'application/vnd.fdsn.seed', '', ''),
  1733. ('dataless', 'application/vnd.fdsn.seed', '', ''),
  1734. ('gph', 'application/vnd.flographit', '', ''),
  1735. ('ftc', 'application/vnd.fluxtime.clip', '', ''),
  1736. ('fm', 'application/vnd.framemaker', '', ''),
  1737. ('frame', 'application/vnd.framemaker', '', ''),
  1738. ('maker', 'application/vnd.framemaker', '', ''),
  1739. ('book', 'application/vnd.framemaker', '', ''),
  1740. ('fnc', 'application/vnd.frogans.fnc', '', ''),
  1741. ('ltf', 'application/vnd.frogans.ltf', '', ''),
  1742. ('fsc', 'application/vnd.fsc.weblaunch', '', ''),
  1743. ('oas', 'application/vnd.fujitsu.oasys', '', ''),
  1744. ('oa2', 'application/vnd.fujitsu.oasys2', '', ''),
  1745. ('oa3', 'application/vnd.fujitsu.oasys3', '', ''),
  1746. ('fg5', 'application/vnd.fujitsu.oasysgp', '', ''),
  1747. ('bh2', 'application/vnd.fujitsu.oasysprs', '', ''),
  1748. ('ddd', 'application/vnd.fujixerox.ddd', '', ''),
  1749. ('xdw', 'application/vnd.fujixerox.docuworks', '', ''),
  1750. ('xbd', 'application/vnd.fujixerox.docuworks.binder', '', ''),
  1751. ('fzs', 'application/vnd.fuzzysheet', '', ''),
  1752. ('txd', 'application/vnd.genomatix.tuxedo', '', ''),
  1753. ('ggb', 'application/vnd.geogebra.file', '', ''),
  1754. ('ggt', 'application/vnd.geogebra.tool', '', ''),
  1755. ('gex', 'application/vnd.geometry-explorer', '', ''),
  1756. ('gre', 'application/vnd.geometry-explorer', '', ''),
  1757. ('gxt', 'application/vnd.geonext', '', ''),
  1758. ('g2w', 'application/vnd.geoplan', '', ''),
  1759. ('g3w', 'application/vnd.geospace', '', ''),
  1760. ('gmx', 'application/vnd.gmx', '', ''),
  1761. ('kml', 'application/vnd.google-earth.kml+xml', '', ''),
  1762. ('kmz', 'application/vnd.google-earth.kmz', '', ''),
  1763. ('gqf', 'application/vnd.grafeq', '', ''),
  1764. ('gqs', 'application/vnd.grafeq', '', ''),
  1765. ('gac', 'application/vnd.groove-account', '', ''),
  1766. ('ghf', 'application/vnd.groove-help', '', ''),
  1767. ('gim', 'application/vnd.groove-identity-message', '', ''),
  1768. ('grv', 'application/vnd.groove-injector', '', ''),
  1769. ('gtm', 'application/vnd.groove-tool-message', '', ''),
  1770. ('tpl', 'application/vnd.groove-tool-template', '', 'far file-code'),
  1771. ('vcg', 'application/vnd.groove-vcard', '', ''),
  1772. ('hal', 'application/vnd.hal+xml', '', ''),
  1773. ('zmm', 'application/vnd.handheld-entertainment+xml', '', ''),
  1774. ('hbci', 'application/vnd.hbci', '', ''),
  1775. ('les', 'application/vnd.hhe.lesson-player', '', ''),
  1776. ('hpgl', 'application/vnd.hp-hpgl', 'mime-type-vector.png', ''),
  1777. ('hpid', 'application/vnd.hp-hpid', '', ''),
  1778. ('hps', 'application/vnd.hp-hps', '', ''),
  1779. ('jlt', 'application/vnd.hp-jlyt', '', ''),
  1780. ('pcl', 'application/vnd.hp-pcl', '', ''),
  1781. ('pclxl', 'application/vnd.hp-pclxl', '', ''),
  1782. ('sfd-hdstx', 'application/vnd.hydrostatix.sof-data', '', ''),
  1783. ('mpy', 'application/vnd.ibm.minipay', '', ''),
  1784. ('afp', 'application/vnd.ibm.modcap', '', ''),
  1785. ('listafp', 'application/vnd.ibm.modcap', '', ''),
  1786. ('list3820', 'application/vnd.ibm.modcap', '', ''),
  1787. ('irm', 'application/vnd.ibm.rights-management', '', ''),
  1788. ('sc', 'application/vnd.ibm.secure-container', '', ''),
  1789. ('icc', 'application/vnd.iccprofile', '', ''),
  1790. ('icm', 'application/vnd.iccprofile', '', ''),
  1791. ('igl', 'application/vnd.igloader', '', ''),
  1792. ('ivp', 'application/vnd.immervision-ivp', '', ''),
  1793. ('ivu', 'application/vnd.immervision-ivu', '', ''),
  1794. ('igm', 'application/vnd.insors.igm', '', ''),
  1795. ('xpw', 'application/vnd.intercon.formnet', '', ''),
  1796. ('xpx', 'application/vnd.intercon.formnet', '', ''),
  1797. ('i2g', 'application/vnd.intergeo', '', ''),
  1798. ('qbo', 'application/vnd.intu.qbo', '', ''),
  1799. ('qfx', 'application/vnd.intu.qfx', '', ''),
  1800. ('rcprofile', 'application/vnd.ipunplugged.rcprofile', '', ''),
  1801. ('irp', 'application/vnd.irepository.package+xml', '', ''),
  1802. ('xpr', 'application/vnd.is-xpr', '', ''),
  1803. ('fcs', 'application/vnd.isac.fcs', '', ''),
  1804. ('jam', 'application/vnd.jam', '', ''),
  1805. ('rms', 'application/vnd.jcp.javame.midlet-rms', '', ''),
  1806. ('jisp', 'application/vnd.jisp', '', ''),
  1807. ('joda', 'application/vnd.joost.joda-archive', '', ''),
  1808. ('ktz', 'application/vnd.kahootz', '', ''),
  1809. ('ktr', 'application/vnd.kahootz', '', ''),
  1810. ('karbon', 'application/vnd.kde.karbon', '', ''),
  1811. ('chrt', 'application/vnd.kde.kchart', '', ''),
  1812. ('kfo', 'application/vnd.kde.kformula', '', ''),
  1813. ('flw', 'application/vnd.kde.kivio', '', ''),
  1814. ('kon', 'application/vnd.kde.kontour', '', ''),
  1815. ('kpr', 'application/vnd.kde.kpresenter', '', ''),
  1816. ('kpt', 'application/vnd.kde.kpresenter', '', ''),
  1817. ('ksp', 'application/vnd.kde.kspread', '', ''),
  1818. ('kwd', 'application/vnd.kde.kword', '', ''),
  1819. ('kwt', 'application/vnd.kde.kword', '', ''),
  1820. ('htke', 'application/vnd.kenameaapp', '', ''),
  1821. ('kia', 'application/vnd.kidspiration', '', ''),
  1822. ('kne', 'application/vnd.kinar', '', ''),
  1823. ('knp', 'application/vnd.kinar', '', ''),
  1824. ('skp', 'application/vnd.koan', '', ''),
  1825. ('skd', 'application/vnd.koan', '', ''),
  1826. ('skt', 'application/vnd.koan', '', ''),
  1827. ('skm', 'application/vnd.koan', '', ''),
  1828. ('sse', 'application/vnd.kodak-descriptor', '', ''),
  1829. ('lasxml', 'application/vnd.las.las+xml', '', ''),
  1830. ('lbd', 'application/vnd.llamagraphics.life-balance.desktop', '', ''),
  1831. ('lbe', 'application/vnd.llamagraphics.life-balance.exchange+xml', '', ''),
  1832. ('123', 'application/vnd.lotus-1-2-3', '', ''),
  1833. ('apr', 'application/vnd.lotus-approach', '', ''),
  1834. ('pre', 'application/vnd.lotus-freelance', '', ''),
  1835. ('nsf', 'application/vnd.lotus-notes', '', ''),
  1836. ('org', 'application/vnd.lotus-organizer', '', ''),
  1837. ('scm', 'application/vnd.lotus-screencam', '', ''),
  1838. ('lwp', 'application/vnd.lotus-wordpro', '', ''),
  1839. ('portpkg', 'application/vnd.macports.portpkg', '', ''),
  1840. ('mcd', 'application/vnd.mcd', '', ''),
  1841. ('mc1', 'application/vnd.medcalcdata', '', ''),
  1842. ('cdkey', 'application/vnd.mediastation.cdkey', '', ''),
  1843. ('mwf', 'application/vnd.mfer', '', ''),
  1844. ('mfm', 'application/vnd.mfmp', '', ''),
  1845. ('flo', 'application/vnd.micrografx.flo', '', ''),
  1846. ('igx', 'application/vnd.micrografx.igx', '', ''),
  1847. ('mif', 'application/vnd.mif', '', ''),
  1848. ('daf', 'application/vnd.mobius.daf', '', ''),
  1849. ('dis', 'application/vnd.mobius.dis', '', ''),
  1850. ('mbk', 'application/vnd.mobius.mbk', '', ''),
  1851. ('mqy', 'application/vnd.mobius.mqy', '', ''),
  1852. ('msl', 'application/vnd.mobius.msl', '', ''),
  1853. ('plc', 'application/vnd.mobius.plc', '', ''),
  1854. ('txf', 'application/vnd.mobius.txf', '', ''),
  1855. ('mpn', 'application/vnd.mophun.application', '', ''),
  1856. ('mpc', 'application/vnd.mophun.certificate', '', ''),
  1857. ('xul', 'application/vnd.mozilla.xul+xml', '', ''),
  1858. ('cil', 'application/vnd.ms-artgalry', 'mime-type-vector.png', ''),
  1859. ('taxi', 'application/vnd.ms-cab-compressed', 'mime-type-archive.png', 'far file-archive'),
  1860. ('xls', 'application/vnd.ms-excel', 'mime-type-spreadsheet.png', 'far file-excel'),
  1861. ('xlm', 'application/vnd.ms-excel', '', ''),
  1862. ('xla', 'application/vnd.ms-excel', '', ''),
  1863. ('xlc', 'application/vnd.ms-excel', '', ''),
  1864. ('xlt', 'application/vnd.ms-excel', 'mime-type-spreadsheet.png', 'far file-excel'),
  1865. ('xlw', 'application/vnd.ms-excel', '', ''),
  1866. ('xlam', 'application/vnd.ms-excel.addin.macroenabled.12', '', ''),
  1867. ('xlsb', 'application/vnd.ms-excel.sheet.binary.macroenabled.12', '', ''),
  1868. ('xlsm', 'application/vnd.ms-excel.sheet.macroenabled.12', '', ''),
  1869. ('xltm', 'application/vnd.ms-excel.template.macroenabled.12', '', ''),
  1870. ('eot', 'application/vnd.ms-fontobject', '', ''),
  1871. ('chm', 'application/vnd.ms-htmlhelp', '', ''),
  1872. ('ims', 'application/vnd.ms-ims', '', ''),
  1873. ('lrm', 'application/vnd.ms-lrm', '', ''),
  1874. ('thmx', 'application/vnd.ms-officetheme', '', ''),
  1875. ('cat', 'application/vnd.ms-pki.seccat', '', ''),
  1876. ('stl', 'application/vnd.ms-pki.stl', '', ''),
  1877. ('ppt', 'application/vnd.ms-powerpoint', 'mime-type-presentation.png', 'far file-powerpoint'),
  1878. ('pps', 'application/vnd.ms-powerpoint', '', ''),
  1879. ('pot', 'application/vnd.ms-powerpoint', '', ''),
  1880. ('ppam', 'application/vnd.ms-powerpoint.addin.macroenabled.12', '', ''),
  1881. ('pptm', 'application/vnd.ms-powerpoint.presentation.macroenabled.12', '', ''),
  1882. ('sldm', 'application/vnd.ms-powerpoint.slide.macroenabled.12', '', ''),
  1883. ('ppsm', 'application/vnd.ms-powerpoint.slideshow.macroenabled.12', '', ''),
  1884. ('potm', 'application/vnd.ms-powerpoint.template.macroenabled.12', '', ''),
  1885. ('mpp', 'application/vnd.ms-project', '', ''),
  1886. ('mpt', 'application/vnd.ms-project', '', ''),
  1887. ('docm', 'application/vnd.ms-word.document.macroenabled.12', '', ''),
  1888. ('dotm', 'application/vnd.ms-word.template.macroenabled.12', '', ''),
  1889. ('wps', 'application/vnd.ms-works', '', ''),
  1890. ('wks', 'application/vnd.ms-works', '', ''),
  1891. ('wcm', 'application/vnd.ms-works', '', ''),
  1892. ('wdb', 'application/vnd.ms-works', '', ''),
  1893. ('wpl', 'application/vnd.ms-wpl', '', ''),
  1894. ('xps', 'application/vnd.ms-xpsdocument', '', ''),
  1895. ('mseq', 'application/vnd.mseq', '', ''),
  1896. ('mus', 'application/vnd.musician', '', ''),
  1897. ('msty', 'application/vnd.muvee.style', '', ''),
  1898. ('taglet', 'application/vnd.mynfc', '', ''),
  1899. ('nlu', 'application/vnd.neurolanguage.nlu', '', ''),
  1900. ('ntf', 'application/vnd.nitf', '', ''),
  1901. ('nitf', 'application/vnd.nitf', '', ''),
  1902. ('nnd', 'application/vnd.noblenet-directory', '', ''),
  1903. ('nns', 'application/vnd.noblenet-sealer', '', ''),
  1904. ('nnw', 'application/vnd.noblenet-web', '', ''),
  1905. ('ngdat', 'application/vnd.nokia.n-gage.data', '', ''),
  1906. ('n-gage', 'application/vnd.nokia.n-gage.symbian.install', '', ''),
  1907. ('rpst', 'application/vnd.nokia.radio-preset', '', ''),
  1908. ('rpss', 'application/vnd.nokia.radio-presets', '', ''),
  1909. ('edm', 'application/vnd.novadigm.edm', '', ''),
  1910. ('edx', 'application/vnd.novadigm.edx', '', ''),
  1911. ('ext', 'application/vnd.novadigm.ext', '', ''),
  1912. ('odc', 'application/vnd.oasis.opendocument.chart', '', ''),
  1913. ('otc', 'application/vnd.oasis.opendocument.chart-template', '', ''),
  1914. ('odb', 'application/vnd.oasis.opendocument.database', '', ''),
  1915. ('odf', 'application/vnd.oasis.opendocument.formula', '', ''),
  1916. ('odft', 'application/vnd.oasis.opendocument.formula-template', '', '');
  1917. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1918. ('odg', 'application/vnd.oasis.opendocument.graphics', 'mime-type-vector.png', ''),
  1919. ('otg', 'application/vnd.oasis.opendocument.graphics-template', '', ''),
  1920. ('odi', 'application/vnd.oasis.opendocument.image', '', ''),
  1921. ('oti', 'application/vnd.oasis.opendocument.image-template', '', ''),
  1922. ('odp', 'application/vnd.oasis.opendocument.presentation', 'mime-type-presentation.png', 'far file-powerpoint'),
  1923. ('otp', 'application/vnd.oasis.opendocument.presentation-template', '', ''),
  1924. ('ods', 'application/vnd.oasis.opendocument.spreadsheet', 'mime-type-spreadsheet.png', 'far file-excel'),
  1925. ('ots', 'application/vnd.oasis.opendocument.spreadsheet-template', 'mime-type-spreadsheet.png', 'far file-excel'),
  1926. ('odt', 'application/vnd.oasis.opendocument.text', 'mime-type-document.png', ''),
  1927. ('odm', 'application/vnd.oasis.opendocument.text-master', '', ''),
  1928. ('ott', 'application/vnd.oasis.opendocument.text-template', 'mime-type-document.png', ''),
  1929. ('oth', 'application/vnd.oasis.opendocument.text-web', '', ''),
  1930. ('xo', 'application/vnd.olpc-sugar', '', ''),
  1931. ('dd2', 'application/vnd.oma.dd2+xml', '', ''),
  1932. ('oxt', 'application/vnd.openofficeorg.extension', '', ''),
  1933. ('pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'mime-type-presentation.png', 'far file-powerpoint'),
  1934. ('sldx', 'application/vnd.openxmlformats-officedocument.presentationml.slide', '', ''),
  1935. ('ppsx', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', '', ''),
  1936. ('potx', 'application/vnd.openxmlformats-officedocument.presentationml.template', '', ''),
  1937. ('xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'mime-type-spreadsheet.png', 'far file-excel'),
  1938. ('xltx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', '', ''),
  1939. ('docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'mime-type-document.png', 'far file-word'),
  1940. ('dotx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', '', ''),
  1941. ('mgp', 'application/vnd.osgeo.mapguide.package', '', ''),
  1942. ('dp', 'application/vnd.osgi.dp', '', ''),
  1943. ('esa', 'application/vnd.osgi.subsystem', '', ''),
  1944. ('pdb', 'application/vnd.palm', 'mime-type-document.png', ''),
  1945. ('pqa', 'application/vnd.palm', '', ''),
  1946. ('oprc', 'application/vnd.palm', '', ''),
  1947. ('paw', 'application/vnd.pawaafile', '', ''),
  1948. ('str', 'application/vnd.pg.format', '', ''),
  1949. ('ei6', 'application/vnd.pg.osasli', '', ''),
  1950. ('efif', 'application/vnd.picsel', '', ''),
  1951. ('wg', 'application/vnd.pmi.widget', '', ''),
  1952. ('plf', 'application/vnd.pocketlearn', '', ''),
  1953. ('pbd', 'application/vnd.powerbuilder6', '', ''),
  1954. ('box', 'application/vnd.previewsystems.box', '', ''),
  1955. ('mgz', 'application/vnd.proteus.magazine', '', ''),
  1956. ('qps', 'application/vnd.publishare-delta-tree', '', ''),
  1957. ('ptid', 'application/vnd.pvi.ptid1', '', ''),
  1958. ('qxd', 'application/vnd.quark.quarkxpress', '', ''),
  1959. ('qxt', 'application/vnd.quark.quarkxpress', '', ''),
  1960. ('qwd', 'application/vnd.quark.quarkxpress', '', ''),
  1961. ('qwt', 'application/vnd.quark.quarkxpress', '', ''),
  1962. ('qxl', 'application/vnd.quark.quarkxpress', '', ''),
  1963. ('qxb', 'application/vnd.quark.quarkxpress', '', ''),
  1964. ('bed', 'application/vnd.realvnc.bed', '', ''),
  1965. ('mxl', 'application/vnd.recordare.musicxml', '', ''),
  1966. ('musicxml', 'application/vnd.recordare.musicxml+xml', '', ''),
  1967. ('cryptonote', 'application/vnd.rig.cryptonote', '', ''),
  1968. ('cod', 'application/vnd.rim.cod', '', ''),
  1969. ('rm', 'application/vnd.rn-realmedia', '', ''),
  1970. ('rmvb', 'application/vnd.rn-realmedia-vbr', '', ''),
  1971. ('link66', 'application/vnd.route66.link66+xml', '', ''),
  1972. ('st', 'application/vnd.sailingtracker.track', '', ''),
  1973. ('see', 'application/vnd.seemail', '', ''),
  1974. ('sema', 'application/vnd.sema', '', ''),
  1975. ('semd', 'application/vnd.semd', '', ''),
  1976. ('semf', 'application/vnd.semf', '', ''),
  1977. ('ifm', 'application/vnd.shana.informed.formdata', '', ''),
  1978. ('itp', 'application/vnd.shana.informed.formtemplate', '', ''),
  1979. ('iif', 'application/vnd.shana.informed.interchange', '', ''),
  1980. ('ipk', 'application/vnd.shana.informed.package', '', ''),
  1981. ('twd', 'application/vnd.simtech-mindmapper', '', ''),
  1982. ('twds', 'application/vnd.simtech-mindmapper', '', ''),
  1983. ('mmf', 'application/vnd.smaf', '', ''),
  1984. ('teacher', 'application/vnd.smart.teacher', '', ''),
  1985. ('sdkm', 'application/vnd.solent.sdkm+xml', '', ''),
  1986. ('sdkd', 'application/vnd.solent.sdkm+xml', '', ''),
  1987. ('dxp', 'application/vnd.spotfire.dxp', '', ''),
  1988. ('sfs', 'application/vnd.spotfire.sfs', '', ''),
  1989. ('sdc', 'application/vnd.stardivision.calc', 'mime-type-spreadsheet.png', 'far file-excel'),
  1990. ('sda', 'application/vnd.stardivision.draw', '', ''),
  1991. ('sdd', 'application/vnd.stardivision.impress', 'mime-type-presentation.png', 'far file-powerpoint'),
  1992. ('smf', 'application/vnd.stardivision.math', '', ''),
  1993. ('sdw', 'application/vnd.stardivision.writer', 'mime-type-document.png', ''),
  1994. ('vor', 'application/vnd.stardivision.writer', '', ''),
  1995. ('sgl', 'application/vnd.stardivision.writer-global', '', ''),
  1996. ('smzip', 'application/vnd.stepmania.package', '', ''),
  1997. ('sm', 'application/vnd.stepmania.stepchart', '', ''),
  1998. ('sxc', 'application/vnd.sun.xml.calc', 'mime-type-spreadsheet.png', 'far file-excel'),
  1999. ('stc', 'application/vnd.sun.xml.calc.template', 'mime-type-spreadsheet.png', 'far file-excel'),
  2000. ('sxd', 'application/vnd.sun.xml.draw', 'mime-type-vector.png', ''),
  2001. ('std', 'application/vnd.sun.xml.draw.template', '', ''),
  2002. ('sxi', 'application/vnd.sun.xml.impress', 'mime-type-presentation.png', 'far file-powerpoint'),
  2003. ('sti', 'application/vnd.sun.xml.impress.template', 'mime-type-presentation.png', 'far file-powerpoint'),
  2004. ('sxm', 'application/vnd.sun.xml.math', '', ''),
  2005. ('sxw', 'application/vnd.sun.xml.writer', 'mime-type-document.png', ''),
  2006. ('sxg', 'application/vnd.sun.xml.writer.global', '', ''),
  2007. ('stw', 'application/vnd.sun.xml.writer.template', 'mime-type-document.png', ''),
  2008. ('sus', 'application/vnd.sus-calendar', '', ''),
  2009. ('susp', 'application/vnd.sus-calendar', '', ''),
  2010. ('svd', 'application/vnd.svd', '', ''),
  2011. ('sis', 'application/vnd.symbian.install', '', ''),
  2012. ('sisx', 'application/vnd.symbian.install', '', ''),
  2013. ('xsm', 'application/vnd.syncml+xml', '', ''),
  2014. ('bdm', 'application/vnd.syncml.dm+wbxml', '', ''),
  2015. ('xdm', 'application/vnd.syncml.dm+xml', '', ''),
  2016. ('tao', 'application/vnd.tao.intent-module-archive', '', ''),
  2017. ('pcap', 'application/vnd.tcpdump.pcap', '', ''),
  2018. ('cap', 'application/vnd.tcpdump.pcap', '', ''),
  2019. ('dmp', 'application/vnd.tcpdump.pcap', '', ''),
  2020. ('tmo', 'application/vnd.tmobile-livetv', '', ''),
  2021. ('tpt', 'application/vnd.trid.tpt', '', ''),
  2022. ('mxs', 'application/vnd.triscape.mxs', '', ''),
  2023. ('tra', 'application/vnd.trueapp', '', ''),
  2024. ('ufd', 'application/vnd.ufdl', '', ''),
  2025. ('ufdl', 'application/vnd.ufdl', '', ''),
  2026. ('utz', 'application/vnd.uiq.theme', '', ''),
  2027. ('umj', 'application/vnd.umajin', '', ''),
  2028. ('unityweb', 'application/vnd.unity', '', ''),
  2029. ('uoml', 'application/vnd.uoml+xml', '', ''),
  2030. ('vcx', 'application/vnd.vcx', '', ''),
  2031. ('vsd', 'application/vnd.visio', '', ''),
  2032. ('vst', 'application/vnd.visio', '', ''),
  2033. ('vss', 'application/vnd.visio', 'mime-type-vector.png', ''),
  2034. ('vsw', 'application/vnd.visio', '', ''),
  2035. ('vis', 'application/vnd.visionary', '', ''),
  2036. ('vsf', 'application/vnd.vsf', '', ''),
  2037. ('wbxml', 'application/vnd.wap.wbxml', '', ''),
  2038. ('wmlc', 'application/vnd.wap.wmlc', '', ''),
  2039. ('wmlsc', 'application/vnd.wap.wmlscriptc', '', ''),
  2040. ('wtb', 'application/vnd.webturbo', '', ''),
  2041. ('nbp', 'application/vnd.wolfram.player', '', ''),
  2042. ('wpd', 'application/vnd.wordperfect', '', ''),
  2043. ('wqd', 'application/vnd.wqd', '', ''),
  2044. ('stf', 'application/vnd.wt.stf', '', ''),
  2045. ('xar', 'application/vnd.xara', '', ''),
  2046. ('xfdl', 'application/vnd.xfdl', '', ''),
  2047. ('hvd', 'application/vnd.yamaha.hv-dic', '', ''),
  2048. ('hvs', 'application/vnd.yamaha.hv-script', '', ''),
  2049. ('hvp', 'application/vnd.yamaha.hv-voice', '', ''),
  2050. ('osf', 'application/vnd.yamaha.openscoreformat', '', ''),
  2051. ('osfpvg', 'application/vnd.yamaha.openscoreformat.osfpvg+xml', '', ''),
  2052. ('saf', 'application/vnd.yamaha.smaf-audio', '', ''),
  2053. ('spf', 'application/vnd.yamaha.smaf-phrase', '', ''),
  2054. ('cmp', 'application/vnd.yellowriver-custom-menu', '', ''),
  2055. ('zir', 'application/vnd.zul', '', ''),
  2056. ('zirz', 'application/vnd.zul', '', ''),
  2057. ('zaz', 'application/vnd.zzazz.deck+xml', '', ''),
  2058. ('vxml', 'application/voicexml+xml', '', ''),
  2059. ('wgt', 'application/widget', '', ''),
  2060. ('hlp', 'application/winhlp', '', ''),
  2061. ('wsdl', 'application/wsdl+xml', '', ''),
  2062. ('wspolicy', 'application/wspolicy+xml', '', ''),
  2063. ('7z', 'application/x-7z-compressed', 'mime-type-archive.png', 'far file-archive'),
  2064. ('abw', 'application/x-abiword', '', ''),
  2065. ('ace', 'application/x-ace-compressed', 'mime-type-archive.png', 'far file-archive'),
  2066. ('dmg', 'application/x-apple-diskimage', '', ''),
  2067. ('aab', 'application/x-authorware-bin', '', ''),
  2068. ('x32', 'application/x-authorware-bin', '', ''),
  2069. ('u32', 'application/x-authorware-bin', '', ''),
  2070. ('vox', 'application/x-authorware-bin', '', ''),
  2071. ('aam', 'application/x-authorware-map', '', ''),
  2072. ('aas', 'application/x-authorware-seg', '', ''),
  2073. ('bcpio', 'application/x-bcpio', '', ''),
  2074. ('torrent', 'application/x-bittorrent', '', ''),
  2075. ('blb', 'application/x-blorb', '', ''),
  2076. ('blorb', 'application/x-blorb', '', ''),
  2077. ('bz', 'application/x-bzip', '', ''),
  2078. ('bz2', 'application/x-bzip2', 'mime-type-archive.png', 'far file-archive'),
  2079. ('boz', 'application/x-bzip2', '', ''),
  2080. ('cbr', 'application/x-cbr', '', ''),
  2081. ('cba', 'application/x-cbr', '', ''),
  2082. ('cbt', 'application/x-cbr', '', ''),
  2083. ('cbz', 'application/x-cbr', '', ''),
  2084. ('cb7', 'application/x-cbr', '', ''),
  2085. ('vcd', 'application/x-cdlink', '', ''),
  2086. ('cfs', 'application/x-cfs-compressed', '', ''),
  2087. ('chat', 'application/x-chat', '', ''),
  2088. ('pgn', 'application/x-chess-pgn', '', ''),
  2089. ('nsc', 'application/x-conference', '', ''),
  2090. ('cpio', 'application/x-cpio', '', ''),
  2091. ('csh', 'application/x-csh', '', 'far file-code'),
  2092. ('deb', 'application/x-debian-package', '', ''),
  2093. ('udeb', 'application/x-debian-package', '', ''),
  2094. ('dgc', 'application/x-dgc-compressed', '', ''),
  2095. ('dir', 'application/x-director', '', ''),
  2096. ('dcr', 'application/x-director', '', ''),
  2097. ('dxr', 'application/x-director', '', ''),
  2098. ('cst', 'application/x-director', '', ''),
  2099. ('cct', 'application/x-director', '', ''),
  2100. ('cxt', 'application/x-director', '', '');
  2101. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2102. ('w3d', 'application/x-director', '', ''),
  2103. ('fgd', 'application/x-director', '', ''),
  2104. ('swa', 'application/x-director', '', ''),
  2105. ('wad', 'application/x-doom', '', ''),
  2106. ('ncx', 'application/x-dtbncx+xml', '', ''),
  2107. ('dtb', 'application/x-dtbook+xml', '', ''),
  2108. ('res', 'application/x-dtbresource+xml', '', ''),
  2109. ('dvi', 'application/x-dvi', '', ''),
  2110. ('evy', 'application/x-envoy', '', ''),
  2111. ('eva', 'application/x-eva', '', ''),
  2112. ('bdf', 'application/x-font-bdf', '', ''),
  2113. ('gsf', 'application/x-font-ghostscript', '', ''),
  2114. ('psf', 'application/x-font-linux-psf', '', ''),
  2115. ('otf', 'application/x-font-otf', '', ''),
  2116. ('pcf', 'application/x-font-pcf', '', ''),
  2117. ('snf', 'application/x-font-snf', '', ''),
  2118. ('ttf', 'application/x-font-ttf', '', ''),
  2119. ('ttc', 'application/x-font-ttf', '', ''),
  2120. ('pfa', 'application/x-font-type1', '', ''),
  2121. ('pfb', 'application/x-font-type1', '', ''),
  2122. ('pfm', 'application/x-font-type1', '', ''),
  2123. ('afm', 'application/x-font-type1', '', ''),
  2124. ('woff', 'application/x-font-woff', '', ''),
  2125. ('arc', 'application/x-freearc', '', ''),
  2126. ('spl', 'application/x-futuresplash', '', ''),
  2127. ('gca', 'application/x-gca-compressed', '', ''),
  2128. ('ulx', 'application/x-glulx', '', ''),
  2129. ('gnumeric', 'application/x-gnumeric', '', ''),
  2130. ('gramps', 'application/x-gramps-xml', '', ''),
  2131. ('gtar', 'application/x-gtar', '', ''),
  2132. ('hdf', 'application/x-hdf', '', ''),
  2133. ('install', 'application/x-install-instructions', '', ''),
  2134. ('iso', 'application/x-iso9660-image', '', ''),
  2135. ('jnlp', 'application/x-java-jnlp-file', '', ''),
  2136. ('latex', 'application/x-latex', '', ''),
  2137. ('lzh', 'application/x-lzh-compressed', '', ''),
  2138. ('lha', 'application/x-lzh-compressed', '', ''),
  2139. ('mie', 'application/x-mie', '', ''),
  2140. ('prc', 'application/x-mobipocket-ebook', '', ''),
  2141. ('mobi', 'application/x-mobipocket-ebook', '', ''),
  2142. ('application', 'application/x-ms-application', '', ''),
  2143. ('lnk', 'application/x-ms-shortcut', '', ''),
  2144. ('wmd', 'application/x-ms-wmd', '', ''),
  2145. ('wmz', 'application/x-ms-wmz', '', ''),
  2146. ('xbap', 'application/x-ms-xbap', '', ''),
  2147. ('mdb', 'application/x-msaccess', '', ''),
  2148. ('obd', 'application/x-msbinder', '', ''),
  2149. ('crd', 'application/x-mscardfile', '', ''),
  2150. ('clp', 'application/x-msclip', '', ''),
  2151. ('exe', 'application/x-msdownload', '', ''),
  2152. ('dll', 'application/x-msdownload', '', ''),
  2153. ('com', 'application/x-msdownload', '', ''),
  2154. ('bat', 'application/x-msdownload', '', 'far file-code'),
  2155. ('msi', 'application/x-msdownload', '', ''),
  2156. ('mvb', 'application/x-msmediaview', '', ''),
  2157. ('m13', 'application/x-msmediaview', '', ''),
  2158. ('m14', 'application/x-msmediaview', '', ''),
  2159. ('wmf', 'application/x-msmetafile', '', ''),
  2160. ('emf', 'application/x-msmetafile', '', ''),
  2161. ('emz', 'application/x-msmetafile', '', ''),
  2162. ('mny', 'application/x-msmoney', '', ''),
  2163. ('pub', 'application/x-mspublisher', '', ''),
  2164. ('scd', 'application/x-msschedule', '', ''),
  2165. ('trm', 'application/x-msterminal', '', ''),
  2166. ('wri', 'application/x-mswrite', '', ''),
  2167. ('nc', 'application/x-netcdf', '', ''),
  2168. ('cdf', 'application/x-netcdf', '', ''),
  2169. ('nzb', 'application/x-nzb', '', ''),
  2170. ('p12', 'application/x-pkcs12', '', ''),
  2171. ('pfx', 'application/x-pkcs12', '', ''),
  2172. ('p7b', 'application/x-pkcs7-certificates', '', ''),
  2173. ('spc', 'application/x-pkcs7-certificates', '', ''),
  2174. ('p7r', 'application/x-pkcs7-certreqresp', '', ''),
  2175. ('rar', 'application/x-rar-compressed', 'mime-type-archive.png', 'far file-archive'),
  2176. ('ris', 'application/x-research-info-systems', '', ''),
  2177. ('sh', 'application/x-sh', '', 'far file-code'),
  2178. ('shar', 'application/x-shar', '', ''),
  2179. ('swf', 'application/x-shockwave-flash', '', ''),
  2180. ('xap', 'application/x-silverlight-app', '', ''),
  2181. ('sql', 'text/x-sql', '', 'far file-code'),
  2182. ('sit', 'application/x-stuffit', '', ''),
  2183. ('sitx', 'application/x-stuffitx', '', ''),
  2184. ('srt', 'application/x-subrip', '', ''),
  2185. ('sv4cpio', 'application/x-sv4cpio', '', ''),
  2186. ('sv4crc', 'application/x-sv4crc', '', ''),
  2187. ('t3', 'application/x-t3vm-image', '', ''),
  2188. ('gam', 'application/x-tads', '', ''),
  2189. ('tar', 'application/x-tar', 'mime-type-archive.png', 'far file-archive'),
  2190. ('tcl', 'application/x-tcl', '', ''),
  2191. ('tex', 'application/x-tex', '', ''),
  2192. ('tfm', 'application/x-tex-tfm', '', ''),
  2193. ('texinfo', 'application/x-texinfo', '', ''),
  2194. ('texi', 'application/x-texinfo', '', ''),
  2195. ('obj', 'application/x-tgif', '', ''),
  2196. ('ustar', 'application/x-ustar', '', ''),
  2197. ('src', 'application/x-wais-source', '', 'far file-code'),
  2198. ('der', 'application/x-x509-ca-cert', '', ''),
  2199. ('crt', 'application/x-x509-ca-cert', '', ''),
  2200. ('fig', 'application/x-xfig', '', ''),
  2201. ('xlf', 'application/x-xliff+xml', '', ''),
  2202. ('xpi', 'application/x-xpinstall', '', ''),
  2203. ('xz', 'application/x-xz', '', ''),
  2204. ('z1', 'application/x-zmachine', '', ''),
  2205. ('z2', 'application/x-zmachine', '', ''),
  2206. ('z3', 'application/x-zmachine', '', ''),
  2207. ('z4', 'application/x-zmachine', '', ''),
  2208. ('z5', 'application/x-zmachine', '', ''),
  2209. ('z6', 'application/x-zmachine', '', ''),
  2210. ('z7', 'application/x-zmachine', '', ''),
  2211. ('z8', 'application/x-zmachine', '', ''),
  2212. ('xaml', 'application/xaml+xml', '', ''),
  2213. ('xdf', 'application/xcap-diff+xml', '', ''),
  2214. ('xenc', 'application/xenc+xml', '', ''),
  2215. ('xhtml', 'application/xhtml+xml', '', 'far file-code'),
  2216. ('xht', 'application/xhtml+xml', '', ''),
  2217. ('xml', 'application/xml', '', 'far file-code'),
  2218. ('xsl', 'application/xml', '', 'far file-code'),
  2219. ('dtd', 'application/xml-dtd', '', 'far file-code'),
  2220. ('xop', 'application/xop+xml', '', ''),
  2221. ('xpl', 'application/xproc+xml', '', ''),
  2222. ('xslt', 'application/xslt+xml', '', 'far file-code'),
  2223. ('xspf', 'application/xspf+xml', '', ''),
  2224. ('mxml', 'application/xv+xml', '', ''),
  2225. ('xhvml', 'application/xv+xml', '', ''),
  2226. ('xvml', 'application/xv+xml', '', ''),
  2227. ('xvm', 'application/xv+xml', '', ''),
  2228. ('yang', 'application/yang', '', ''),
  2229. ('yin', 'application/yin+xml', '', ''),
  2230. ('zip', 'application/zip', 'mime-type-archive.png', 'far file-archive'),
  2231. ('adp', 'audio/adpcm', 'mime-type-audio.png', 'far file-audio'),
  2232. ('au', 'audio/basic', 'mime-type-audio.png', 'far file-audio'),
  2233. ('snd', 'audio/basic', 'mime-type-audio.png', 'far file-audio'),
  2234. ('mid', 'audio/midi', 'mime-type-audio.png', 'far file-audio'),
  2235. ('midi', 'audio/midi', 'mime-type-audio.png', 'far file-audio'),
  2236. ('kar', 'audio/midi', 'mime-type-audio.png', 'far file-audio'),
  2237. ('rmi', 'audio/midi', 'mime-type-audio.png', 'far file-audio'),
  2238. ('m4a', 'audio/mp4', 'mime-type-audio.png', 'far file-audio'),
  2239. ('mp4a', 'audio/mp4', 'mime-type-audio.png', 'far file-audio'),
  2240. ('m4p', 'audio/mp4a-latm', 'mime-type-audio.png', 'far file-audio'),
  2241. ('mpga', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2242. ('mp2', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2243. ('mp2a', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2244. ('mp3', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2245. ('m2a', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2246. ('m3a', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2247. ('oga', 'audio/ogg', 'mime-type-audio.png', 'far file-audio'),
  2248. ('ogg', 'audio/ogg', 'mime-type-audio.png', 'far file-audio'),
  2249. ('spx', 'audio/ogg', 'mime-type-audio.png', 'far file-audio'),
  2250. ('s3m', 'audio/s3m', 'mime-type-audio.png', 'far file-audio'),
  2251. ('sil', 'audio/silk', 'mime-type-audio.png', 'far file-audio'),
  2252. ('uva', 'audio/vnd.dece.audio', 'mime-type-audio.png', 'far file-audio'),
  2253. ('uvva', 'audio/vnd.dece.audio', 'mime-type-audio.png', 'far file-audio'),
  2254. ('eol', 'audio/vnd.digital-winds', 'mime-type-audio.png', 'far file-audio'),
  2255. ('dra', 'audio/vnd.dra', 'mime-type-audio.png', 'far file-audio'),
  2256. ('dts', 'audio/vnd.dts', 'mime-type-audio.png', 'far file-audio'),
  2257. ('dtshd', 'audio/vnd.dts.hd', 'mime-type-audio.png', 'far file-audio'),
  2258. ('lvp', 'audio/vnd.lucent.voice', 'mime-type-audio.png', 'far file-audio'),
  2259. ('pya', 'audio/vnd.ms-playready.media.pya', 'mime-type-audio.png', 'far file-audio'),
  2260. ('ecelp4800', 'audio/vnd.nuera.ecelp4800', 'mime-type-audio.png', 'far file-audio'),
  2261. ('ecelp7470', 'audio/vnd.nuera.ecelp7470', 'mime-type-audio.png', 'far file-audio'),
  2262. ('ecelp9600', 'audio/vnd.nuera.ecelp9600', 'mime-type-audio.png', 'far file-audio'),
  2263. ('rip', 'audio/vnd.rip', 'mime-type-audio.png', 'far file-audio'),
  2264. ('weba', 'audio/webm', 'mime-type-audio.png', 'far file-audio'),
  2265. ('aac', 'audio/x-aac', 'mime-type-audio.png', 'far file-audio'),
  2266. ('aif', 'audio/x-aiff', 'mime-type-audio.png', 'far file-audio'),
  2267. ('aiff', 'audio/x-aiff', 'mime-type-audio.png', 'far file-audio'),
  2268. ('aifc', 'audio/x-aiff', 'mime-type-audio.png', 'far file-audio'),
  2269. ('caf', 'audio/x-caf', 'mime-type-audio.png', 'far file-audio'),
  2270. ('flac', 'audio/x-flac', 'mime-type-audio.png', 'far file-audio'),
  2271. ('mka', 'audio/x-matroska', 'mime-type-audio.png', 'far file-audio'),
  2272. ('m3u', 'audio/x-mpegurl', 'mime-type-audio.png', 'far file-audio'),
  2273. ('wax', 'audio/x-ms-wax', 'mime-type-audio.png', 'far file-audio'),
  2274. ('wma', 'audio/x-ms-wma', 'mime-type-audio.png', 'far file-audio'),
  2275. ('ram', 'audio/x-pn-realaudio', 'mime-type-audio.png', 'far file-audio'),
  2276. ('ra', 'audio/x-pn-realaudio', 'mime-type-audio.png', 'far file-audio'),
  2277. ('rmp', 'audio/x-pn-realaudio-plugin', 'mime-type-audio.png', 'far file-audio'),
  2278. ('wav', 'audio/x-wav', 'mime-type-audio.png', 'far file-audio'),
  2279. ('xm', 'audio/xm', 'mime-type-audio.png', 'far file-audio'),
  2280. ('cdx', 'chemical/x-cdx', 'mime-type-vector.png', ''),
  2281. ('cif', 'chemical/x-cif', '', ''),
  2282. ('cmdf', 'chemical/x-cmdf', '', ''),
  2283. ('cml', 'chemical/x-cml', '', ''),
  2284. ('csml', 'chemical/x-csml', '', ''),
  2285. ('xyz', 'chemical/x-xyz', '', ''),
  2286. ('bmp', 'image/bmp', 'mime-type-image.png', 'far file-image'),
  2287. ('cgm', 'image/cgm', 'mime-type-image.png', 'far file-image'),
  2288. ('g3', 'image/g3fax', 'mime-type-image.png', 'far file-image'),
  2289. ('gif', 'image/gif', 'mime-type-image.png', 'far file-image'),
  2290. ('ief', 'image/ief', 'mime-type-image.png', 'far file-image'),
  2291. ('jp2', 'image/jp2', 'mime-type-image.png', 'far file-image'),
  2292. ('jpeg', 'image/jpeg', 'mime-type-image.png', 'far file-image'),
  2293. ('jpg', 'image/jpeg', 'mime-type-image.png', 'far file-image'),
  2294. ('jpe', 'image/jpeg', 'mime-type-image.png', 'far file-image'),
  2295. ('ktx', 'image/ktx', 'mime-type-image.png', 'far file-image'),
  2296. ('pict', 'image/pict', 'mime-type-image.png', 'far file-image'),
  2297. ('pic', 'image/pict', 'mime-type-image.png', 'far file-image'),
  2298. ('pct', 'image/pict', 'mime-type-image.png', 'far file-image'),
  2299. ('png', 'image/png', 'mime-type-png.png', 'far file-image'),
  2300. ('btif', 'image/prs.btif', 'mime-type-image.png', 'far file-image'),
  2301. ('sgi', 'image/sgi', 'mime-type-image.png', 'far file-image');
  2302. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2303. ('svg', 'image/svg+xml', 'mime-type-image.png', 'far file-image'),
  2304. ('svgz', 'image/svg+xml', 'mime-type-image.png', 'far file-image'),
  2305. ('tiff', 'image/tiff', 'mime-type-image.png', 'far file-image'),
  2306. ('tif', 'image/tiff', 'mime-type-image.png', 'far file-image'),
  2307. ('psd', 'image/vnd.adobe.photoshop', 'mime-type-psd.png', 'far file-image'),
  2308. ('uvi', 'image/vnd.dece.graphic', 'mime-type-image.png', 'far file-image'),
  2309. ('uvvi', 'image/vnd.dece.graphic', 'mime-type-image.png', 'far file-image'),
  2310. ('uvg', 'image/vnd.dece.graphic', 'mime-type-image.png', 'far file-image'),
  2311. ('uvvg', 'image/vnd.dece.graphic', 'mime-type-image.png', 'far file-image'),
  2312. ('sub', 'image/vnd.dvb.subtitle', 'mime-type-image.png', 'far file-image'),
  2313. ('djvu', 'image/vnd.djvu', 'mime-type-image.png', 'far file-image'),
  2314. ('djv', 'image/vnd.djvu', 'mime-type-image.png', 'far file-image'),
  2315. ('dwg', 'image/vnd.dwg', 'mime-type-image.png', 'far file-image'),
  2316. ('dxf', 'image/vnd.dxf', 'mime-type-image.png', 'far file-image'),
  2317. ('fbs', 'image/vnd.fastbidsheet', 'mime-type-image.png', 'far file-image'),
  2318. ('fpx', 'image/vnd.fpx', 'mime-type-image.png', 'far file-image'),
  2319. ('fst', 'image/vnd.fst', 'mime-type-image.png', 'far file-image'),
  2320. ('mmr', 'image/vnd.fujixerox.edmics-mmr', 'mime-type-image.png', 'far file-image'),
  2321. ('rlc', 'image/vnd.fujixerox.edmics-rlc', 'mime-type-image.png', 'far file-image'),
  2322. ('mdi', 'image/vnd.ms-modi', 'mime-type-image.png', 'far file-image'),
  2323. ('wdp', 'image/vnd.ms-photo', 'mime-type-image.png', 'far file-image'),
  2324. ('npx', 'image/vnd.net-fpx', 'mime-type-image.png', 'far file-image'),
  2325. ('wbmp', 'image/vnd.wap.wbmp', 'mime-type-image.png', 'far file-image'),
  2326. ('xif', 'image/vnd.xiff', 'mime-type-image.png', 'far file-image'),
  2327. ('webp', 'image/webp', 'mime-type-image.png', 'far file-image'),
  2328. ('3ds', 'image/x-3ds', 'mime-type-image.png', 'far file-image'),
  2329. ('ras', 'image/x-cmu-raster', 'mime-type-image.png', 'far file-image'),
  2330. ('cmx', 'image/x-cmx', 'mime-type-image.png', 'far file-image'),
  2331. ('fh', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2332. ('fhc', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2333. ('fh4', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2334. ('fh5', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2335. ('fh7', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2336. ('ico', 'image/x-icon', 'mime-type-image.png', 'far file-image'),
  2337. ('pntg', 'image/x-macpaint', 'mime-type-image.png', 'far file-image'),
  2338. ('pnt', 'image/x-macpaint', 'mime-type-image.png', 'far file-image'),
  2339. ('mac', 'image/x-macpaint', 'mime-type-image.png', 'far file-image'),
  2340. ('sid', 'image/x-mrsid-image', 'mime-type-image.png', 'far file-image'),
  2341. ('pcx', 'image/x-pcx', 'mime-type-image.png', 'far file-image'),
  2342. ('pnm', 'image/x-portable-anymap', 'mime-type-image.png', 'far file-image'),
  2343. ('pbm', 'image/x-portable-bitmap', 'mime-type-image.png', 'far file-image'),
  2344. ('pgm', 'image/x-portable-graymap', 'mime-type-image.png', 'far file-image'),
  2345. ('ppm', 'image/x-portable-pixmap', 'mime-type-image.png', 'far file-image'),
  2346. ('qtif', 'image/x-quicktime', 'mime-type-image.png', 'far file-image'),
  2347. ('qti', 'image/x-quicktime', 'mime-type-image.png', 'far file-image'),
  2348. ('rgb', 'image/x-rgb', 'mime-type-image.png', 'far file-image'),
  2349. ('tga', 'image/x-tga', 'mime-type-image.png', 'far file-image'),
  2350. ('xbm', 'image/x-xbitmap', 'mime-type-image.png', 'far file-image'),
  2351. ('xpm', 'image/x-xpixmap', 'mime-type-image.png', 'far file-image'),
  2352. ('xwd', 'image/x-xwindowdump', 'mime-type-image.png', 'far file-image'),
  2353. ('eml', 'message/rfc822', '', ''),
  2354. ('mime', 'message/rfc822', '', ''),
  2355. ('igs', 'model/iges', '', ''),
  2356. ('iges', 'model/iges', '', ''),
  2357. ('msh', 'model/mesh', '', ''),
  2358. ('mesh', 'model/mesh', '', ''),
  2359. ('silo', 'model/mesh', '', ''),
  2360. ('dae', 'model/vnd.collada+xml', '', ''),
  2361. ('dwf', 'model/vnd.dwf', '', ''),
  2362. ('gdl', 'model/vnd.gdl', '', ''),
  2363. ('gtw', 'model/vnd.gtw', '', ''),
  2364. ('mts', 'model/vnd.mts', '', ''),
  2365. ('vtu', 'model/vnd.vtu', '', ''),
  2366. ('wrl', 'model/vrml', '', ''),
  2367. ('vrml', 'model/vrml', '', ''),
  2368. ('x3db', 'model/x3d+binary', '', ''),
  2369. ('x3dbz', 'model/x3d+binary', '', ''),
  2370. ('x3dv', 'model/x3d+vrml', '', ''),
  2371. ('x3dvz', 'model/x3d+vrml', '', ''),
  2372. ('x3d', 'model/x3d+xml', '', ''),
  2373. ('x3dz', 'model/x3d+xml', '', ''),
  2374. ('manifest', 'text/cache-manifest', '', 'far file-alt'),
  2375. ('appcache', 'text/cache-manifest', '', 'far file-alt'),
  2376. ('ics', 'text/calendar', '', 'far file-alt'),
  2377. ('ifb', 'text/calendar', '', 'far file-alt'),
  2378. ('css', 'text/css', '', 'far file-code'),
  2379. ('csv', 'text/csv', 'mime-type-spreadsheet.png', 'far file-excel'),
  2380. ('html', 'text/html', '', 'far file-code'),
  2381. ('htm', 'text/html', '', 'far file-code'),
  2382. ('n3', 'text/n3', '', 'far file-alt'),
  2383. ('txt', 'text/plain', 'mime-type-document.png', 'far file-alt'),
  2384. ('text', 'text/plain', '', 'far file-alt'),
  2385. ('conf', 'text/plain', '', 'far file-alt'),
  2386. ('def', 'text/plain', '', 'far file-alt'),
  2387. ('list', 'text/plain', '', 'far file-alt'),
  2388. ('log', 'text/plain', '', 'far file-alt'),
  2389. ('in', 'text/plain', '', 'far file-alt'),
  2390. ('dsc', 'text/prs.lines.tag', '', 'far file-alt'),
  2391. ('rtx', 'text/richtext', '', 'far file-alt'),
  2392. ('sgml', 'text/sgml', '', 'far file-alt'),
  2393. ('sgm', 'text/sgml', '', 'far file-alt'),
  2394. ('tsv', 'text/tab-separated-values', '', 'far file-alt'),
  2395. ('t', 'text/troff', '', 'far file-alt'),
  2396. ('tr', 'text/troff', '', 'far file-alt'),
  2397. ('roff', 'text/troff', '', 'far file-alt'),
  2398. ('man', 'text/troff', '', 'far file-alt'),
  2399. ('me', 'text/troff', '', 'far file-alt'),
  2400. ('ms', 'text/troff', '', 'far file-alt'),
  2401. ('ttl', 'text/turtle', '', 'far file-code'),
  2402. ('uri', 'text/uri-list', '', 'far file-alt'),
  2403. ('uris', 'text/uri-list', '', 'far file-alt'),
  2404. ('urls', 'text/uri-list', '', 'far file-alt'),
  2405. ('address-card', 'text/vcard', '', 'far file-alt'),
  2406. ('curl', 'text/vnd.curl', '', 'far file-alt'),
  2407. ('dcurl', 'text/vnd.curl.dcurl', '', 'far file-alt'),
  2408. ('scurl', 'text/vnd.curl.scurl', '', 'far file-alt'),
  2409. ('mcurl', 'text/vnd.curl.mcurl', '', 'far file-alt'),
  2410. ('fly', 'text/vnd.fly', '', 'far file-alt'),
  2411. ('flx', 'text/vnd.fmi.flexstor', '', 'far file-alt'),
  2412. ('gv', 'text/vnd.graphviz', '', 'far file-alt'),
  2413. ('3dml', 'text/vnd.in3d.3dml', '', 'far file-alt'),
  2414. ('spot', 'text/vnd.in3d.spot', '', 'far file-alt'),
  2415. ('jad', 'text/vnd.sun.j2me.app-descriptor', '', 'far file-alt'),
  2416. ('wml', 'text/vnd.wap.wml', '', 'far file-alt'),
  2417. ('wmls', 'text/vnd.wap.wmlscript', '', 'far file-alt'),
  2418. ('s', 'text/x-asm', '', 'far file-alt'),
  2419. ('asm', 'text/x-asm', '', 'far file-code'),
  2420. ('c', 'text/x-c', '', 'far file-code'),
  2421. ('far closed-captioning', 'text/x-c', '', 'far file-code'),
  2422. ('cxx', 'text/x-c', '', 'far file-code'),
  2423. ('cpp', 'text/x-c', '', 'far file-code'),
  2424. ('h', 'text/x-c', '', 'far file-code'),
  2425. ('hh', 'text/x-c', '', 'far file-code'),
  2426. ('dic', 'text/x-c', '', 'far file-alt'),
  2427. ('f', 'text/x-fortran', '', 'far file-code'),
  2428. ('for', 'text/x-fortran', '', 'far file-code'),
  2429. ('f77', 'text/x-fortran', '', 'far file-alt'),
  2430. ('f90', 'text/x-fortran', '', 'far file-alt'),
  2431. ('java', 'text/x-java-source', '', 'far file-code'),
  2432. ('opml', 'text/x-opml', '', 'far file-alt'),
  2433. ('p', 'text/x-pascal', '', 'far file-alt'),
  2434. ('pas', 'text/x-pascal', '', 'far file-code'),
  2435. ('php', 'application/x-httpd-php', '', 'far file-code'),
  2436. ('coffee', 'text/x-coffeescript', '', 'far file-code'),
  2437. ('lsp', 'text/x-common-lisp', '', 'far file-code'),
  2438. ('lisp', 'text/x-common-lisp', '', 'far file-code'),
  2439. ('diff', 'text/x-diff', '', 'far file-code'),
  2440. ('go', 'text/x-go', '', 'far file-code'),
  2441. ('lua', 'text/x-lua', '', 'far file-code'),
  2442. ('pl', 'text/x-perl', '', 'far file-code'),
  2443. ('prl', 'text/x-perl', '', 'far file-code'),
  2444. ('perl', 'text/x-perl', '', 'far file-code'),
  2445. ('py', 'text/x-python', '', 'far file-code'),
  2446. ('nginx', 'text/nginx', '', 'far file-code'),
  2447. ('ini', 'text/x-ini', '', 'far file-alt'),
  2448. ('rb', 'text/x-ruby', '', 'far file-code'),
  2449. ('sass', 'text/x-sass', '', 'far file-code'),
  2450. ('bash', 'text/x-sh', '', 'far file-code'),
  2451. ('swift', 'text/x-swift', '', 'far file-code'),
  2452. ('vb', 'text/x-vb', '', 'far file-code'),
  2453. ('vbs', 'text/vbscript', '', 'far file-code'),
  2454. ('vue', 'text/x-vue', '', 'far file-code'),
  2455. ('yaml', 'text/x-yaml', '', 'far file-alt'),
  2456. ('md', 'text/x-markdown', '', 'far file-alt'),
  2457. ('xq', 'application/xquery', '', 'far file-code'),
  2458. ('xquery', 'application/xquery', '', 'far file-code'),
  2459. ('ps1', 'application/x-powershell', '', 'far file-code'),
  2460. ('aps', 'application/x-aspx', '', ''),
  2461. ('jsp', 'application/x-jsp', '', 'far file-code'),
  2462. ('nfo', 'text/x-nfo', '', 'far file-alt'),
  2463. ('etx', 'text/x-setext', '', 'far file-alt'),
  2464. ('sfv', 'text/x-sfv', '', 'far file-alt'),
  2465. ('uu', 'text/x-uuencode', '', 'far file-alt'),
  2466. ('vcs', 'text/x-vcalendar', '', 'far file-alt'),
  2467. ('vcf', 'text/x-vcard', '', 'far file-alt'),
  2468. ('3gp', 'video/3gpp', 'mime-type-video.png', 'far file-video'),
  2469. ('3g2', 'video/3gpp2', 'mime-type-video.png', 'far file-video'),
  2470. ('h261', 'video/h261', 'mime-type-video.png', 'far file-video'),
  2471. ('h263', 'video/h263', 'mime-type-video.png', 'far file-video'),
  2472. ('h264', 'video/h264', 'mime-type-video.png', 'far file-video'),
  2473. ('jpgv', 'video/jpeg', 'mime-type-video.png', 'far file-video'),
  2474. ('jpm', 'video/jpm', 'mime-type-video.png', 'far file-video'),
  2475. ('jpgm', 'video/jpm', 'mime-type-video.png', 'far file-video'),
  2476. ('mj2', 'video/mj2', 'mime-type-video.png', 'far file-video'),
  2477. ('mjp2', 'video/mj2', 'mime-type-video.png', 'far file-video'),
  2478. ('ts', 'video/mp2t', 'mime-type-video.png', 'far file-video'),
  2479. ('mp4', 'video/mp4', 'mime-type-video.png', 'far file-video'),
  2480. ('mp4v', 'video/mp4', 'mime-type-video.png', 'far file-video'),
  2481. ('mpg4', 'video/mp4', 'mime-type-video.png', 'far file-video'),
  2482. ('m4v', 'video/mp4', 'mime-type-video.png', 'far file-video'),
  2483. ('mpeg', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2484. ('mpg', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2485. ('mpe', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2486. ('m1v', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2487. ('m2v', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2488. ('ogv', 'video/ogg', 'mime-type-video.png', 'far file-video'),
  2489. ('qt', 'video/quicktime', 'mime-type-video.png', 'far file-video'),
  2490. ('mov', 'video/quicktime', 'mime-type-video.png', 'far file-video'),
  2491. ('uvh', 'video/vnd.dece.hd', 'mime-type-video.png', 'far file-video'),
  2492. ('uvvh', 'video/vnd.dece.hd', 'mime-type-video.png', 'far file-video'),
  2493. ('uvm', 'video/vnd.dece.mobile', 'mime-type-video.png', 'far file-video'),
  2494. ('uvvm', 'video/vnd.dece.mobile', 'mime-type-video.png', 'far file-video'),
  2495. ('uvp', 'video/vnd.dece.pd', 'mime-type-video.png', 'far file-video'),
  2496. ('uvvp', 'video/vnd.dece.pd', 'mime-type-video.png', 'far file-video');
  2497. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2498. ('uvs', 'video/vnd.dece.sd', 'mime-type-video.png', 'far file-video'),
  2499. ('uvvs', 'video/vnd.dece.sd', 'mime-type-video.png', 'far file-video'),
  2500. ('uvv', 'video/vnd.dece.video', 'mime-type-video.png', 'far file-video'),
  2501. ('uvvv', 'video/vnd.dece.video', 'mime-type-video.png', 'far file-video'),
  2502. ('dvb', 'video/vnd.dvb.file', 'mime-type-video.png', 'far file-video'),
  2503. ('fvt', 'video/vnd.fvt', 'mime-type-video.png', 'far file-video'),
  2504. ('mxu', 'video/vnd.mpegurl', 'mime-type-video.png', 'far file-video'),
  2505. ('m4u', 'video/vnd.mpegurl', 'mime-type-video.png', 'far file-video'),
  2506. ('pyv', 'video/vnd.ms-playready.media.pyv', 'mime-type-video.png', 'far file-video'),
  2507. ('uvu', 'video/vnd.uvvu.mp4', 'mime-type-video.png', 'far file-video'),
  2508. ('uvvu', 'video/vnd.uvvu.mp4', 'mime-type-video.png', 'far file-video'),
  2509. ('viv', 'video/vnd.vivo', 'mime-type-video.png', 'far file-video'),
  2510. ('dv', 'video/x-dv', 'mime-type-video.png', 'far file-video'),
  2511. ('dif', 'video/x-dv', 'mime-type-video.png', 'far file-excel'),
  2512. ('webm', 'video/webm', 'mime-type-video.png', 'far file-video'),
  2513. ('f4v', 'video/x-f4v', 'mime-type-video.png', 'far file-video'),
  2514. ('fli', 'video/x-fli', 'mime-type-video.png', 'far file-video'),
  2515. ('flv', 'video/x-flv', 'mime-type-video.png', 'far file-video'),
  2516. ('mkv', 'video/x-matroska', 'mime-type-video.png', 'far file-video'),
  2517. ('mk3d', 'video/x-matroska', 'mime-type-video.png', 'far file-video'),
  2518. ('mks', 'video/x-matroska', 'mime-type-video.png', 'far file-video'),
  2519. ('mng', 'video/x-mng', 'mime-type-video.png', 'far file-video'),
  2520. ('asf', 'video/x-ms-asf', 'mime-type-video.png', 'far file-video'),
  2521. ('asx', 'video/x-ms-asf', 'mime-type-video.png', 'far file-video'),
  2522. ('vob', 'video/x-ms-vob', 'mime-type-video.png', 'far file-video'),
  2523. ('wm', 'video/x-ms-wm', 'mime-type-video.png', 'far file-video'),
  2524. ('wmv', 'video/x-ms-wmv', 'mime-type-video.png', 'far file-video'),
  2525. ('wmx', 'video/x-ms-wmx', 'mime-type-video.png', 'far file-video'),
  2526. ('wvx', 'video/x-ms-wvx', 'mime-type-video.png', 'far file-video'),
  2527. ('avi', 'video/x-msvideo', 'mime-type-video.png', 'far file-video'),
  2528. ('movie', 'video/x-sgi-movie', 'mime-type-video.png', 'far file-video'),
  2529. ('smv', 'video/x-smv', 'mime-type-video.png', 'far file-video'),
  2530. ('ice', 'x-conference/x-cooltalk', '', '');
  2531. -- --------------------------------------------------------
  2532. CREATE TABLE IF NOT EXISTS `sys_objects_uploader` (
  2533. `id` int(11) NOT NULL AUTO_INCREMENT,
  2534. `object` varchar(64) NOT NULL,
  2535. `active` tinyint(4) NOT NULL,
  2536. `override_class_name` varchar(255) NOT NULL,
  2537. `override_class_file` varchar(255) NOT NULL,
  2538. PRIMARY KEY (`id`),
  2539. UNIQUE KEY `object` (`object`)
  2540. );
  2541. INSERT INTO `sys_objects_uploader` (`object`, `active`, `override_class_name`, `override_class_file`) VALUES
  2542. ('sys_simple', 1, 'BxTemplUploaderSimple', ''),
  2543. ('sys_html5', 1, 'BxTemplUploaderHTML5', ''),
  2544. ('sys_crop', 1, 'BxTemplUploaderCrop', ''),
  2545. ('sys_cmts_simple', 1, 'BxTemplCmtsUploaderSimple', ''),
  2546. ('sys_settings_html5', 1, 'BxTemplStudioSettingsUploaderHTML5', ''),
  2547. ('sys_builder_page_simple', 1, 'BxTemplStudioBuilderPageUploaderSimple', ''),
  2548. ('sys_builder_page_html5', 1, 'BxTemplStudioBuilderPageUploaderHTML5', ''),
  2549. ('sys_std_crop_cover', 1, 'BxTemplStudioUploaderCropCover', '');
  2550. -- --------------------------------------------------------
  2551. CREATE TABLE IF NOT EXISTS `sys_objects_form` (
  2552. `id` int(11) NOT NULL AUTO_INCREMENT,
  2553. `object` varchar(64) NOT NULL,
  2554. `module` varchar(32) NOT NULL,
  2555. `title` varchar(255) NOT NULL,
  2556. `action` varchar(255) NOT NULL,
  2557. `form_attrs` text NOT NULL,
  2558. `submit_name` varchar(255) NOT NULL,
  2559. `table` varchar(255) NOT NULL,
  2560. `key` varchar(255) NOT NULL,
  2561. `uri` varchar(255) NOT NULL,
  2562. `uri_title` varchar(255) NOT NULL,
  2563. `params` text NOT NULL,
  2564. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2565. `active` tinyint(4) NOT NULL DEFAULT '0',
  2566. `override_class_name` varchar(255) NOT NULL,
  2567. `override_class_file` varchar(255) NOT NULL,
  2568. PRIMARY KEY (`id`),
  2569. UNIQUE KEY `object` (`object`)
  2570. );
  2571. 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
  2572. ('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);";}', 'a:3:{i:0;s:4:"role";i:1;s:10:"do_sendsms";i:2;s:12:"do_checkcode";}', '', '', '', '', 'a:1:{s:14:"checker_helper";s:24:"BxFormLoginCheckerHelper";}', 0, 1, 'BxTemplFormLogin', ''),
  2573. ('sys_account', 'system', '_sys_form_account', '', '', 'do_submit', 'sys_accounts', 'id', '', '', 'a:1:{s:14:"checker_helper";s:26:"BxFormAccountCheckerHelper";}', 0, 1, 'BxTemplFormAccount', ''),
  2574. ('sys_forgot_password', 'system', '_sys_form_forgot_password', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:33:"BxFormForgotPasswordCheckerHelper";}', 0, 1, 'BxTemplFormForgotPassword', ''),
  2575. ('sys_confirm_email', 'system', '_sys_form_confirm_email', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:31:"BxFormConfirmEmailCheckerHelper";}', 0, 1, 'BxTemplFormConfirmEmail', ''),
  2576. ('sys_confirm_phone', 'system', '_sys_form_confirm_phone', '', '', 'a:2:{i:0;s:9:"do_submit";i:1;s:10:"do_sendsms";}', '', '', '', '', 'a:1:{s:14:"checker_helper";s:31:"BxFormConfirmPhoneCheckerHelper";}', 0, 1, 'BxTemplFormConfirmPhone', ''),
  2577. ('sys_unsubscribe', 'system', '_sys_form_unsubscribe', '', '', 'do_submit', 'sys_accounts', 'id', '', '', '', 0, 1, 'BxTemplFormAccount', ''),
  2578. ('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', ''),
  2579. ('sys_review', 'system', '_sys_form_review', '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, 'BxTemplCmtsReviewsForm', ''),
  2580. ('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, '', '');
  2581. CREATE TABLE IF NOT EXISTS `sys_form_displays` (
  2582. `id` int(11) NOT NULL AUTO_INCREMENT,
  2583. `display_name` varchar(64) NOT NULL,
  2584. `module` varchar(32) NOT NULL,
  2585. `object` varchar(64) NOT NULL,
  2586. `title` varchar(255) NOT NULL,
  2587. `view_mode` tinyint(4) NOT NULL DEFAULT '0',
  2588. PRIMARY KEY (`id`),
  2589. UNIQUE KEY `object_display_name` (`object`,`display_name`)
  2590. );
  2591. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  2592. ('sys_login', 'system', 'sys_login', '_sys_form_display_login', 0),
  2593. ('sys_login_step2', 'system', 'sys_login', '_sys_form_display_login_step2', 0),
  2594. ('sys_login_step3', 'system', 'sys_login', '_sys_form_display_login_step3', 0),
  2595. ('sys_account_create', 'system', 'sys_account', '_sys_form_display_account_create', 0),
  2596. ('sys_account_settings_email', 'system', 'sys_account', '_sys_form_display_account_settings_email', 0),
  2597. ('sys_account_settings_pwd', 'system', 'sys_account', '_sys_form_display_account_settings_password', 0),
  2598. ('sys_account_settings_info', 'system', 'sys_account', '_sys_form_display_account_settings_info', 0),
  2599. ('sys_account_settings_del_account', 'system', 'sys_account', '_sys_form_display_account_settings_delete', 0),
  2600. ('sys_forgot_password', 'system', 'sys_forgot_password', '_sys_form_display_forgot_password', 0),
  2601. ('sys_confirm_phone_set_phone', 'system', 'sys_confirm_phone', '_sys_form_display_confirm_phone_set_phone', 0),
  2602. ('sys_confirm_phone_confirmation', 'system', 'sys_confirm_phone', '_sys_form_display_confirm_phone_confirmation', 0),
  2603. ('sys_confirm_email', 'system', 'sys_confirm_email', '_sys_form_display_confirm_email', 0),
  2604. ('sys_unsubscribe_updates', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_updates', 0),
  2605. ('sys_unsubscribe_news', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_news', 0),
  2606. ('sys_comment_post', 'system', 'sys_comment', '_sys_form_display_comment_post', 0),
  2607. ('sys_comment_edit', 'system', 'sys_comment', '_sys_form_display_comment_edit', 0),
  2608. ('sys_review_post', 'system', 'sys_review', '_sys_form_review_display_post', 0),
  2609. ('sys_review_edit', 'system', 'sys_review', '_sys_form_review_display_edit', 0),
  2610. ('sys_report_post', 'system', 'sys_report', '_sys_form_display_report_post', 0);
  2611. CREATE TABLE IF NOT EXISTS `sys_form_inputs` (
  2612. `id` int(11) NOT NULL AUTO_INCREMENT,
  2613. `object` varchar(64) NOT NULL,
  2614. `module` varchar(32) NOT NULL,
  2615. `name` varchar(255) NOT NULL,
  2616. `value` varchar(255) NOT NULL,
  2617. `values` text NOT NULL,
  2618. `checked` tinyint(4) NOT NULL DEFAULT '0',
  2619. `type` varchar(32) NOT NULL,
  2620. `caption_system` varchar(255) NOT NULL,
  2621. `caption` varchar(255) NOT NULL,
  2622. `info` varchar(255) NOT NULL,
  2623. `required` tinyint(4) NOT NULL DEFAULT '0',
  2624. `unique` tinyint(4) NOT NULL DEFAULT '0',
  2625. `collapsed` tinyint(4) NOT NULL DEFAULT '0',
  2626. `html` tinyint(4) NOT NULL DEFAULT '0',
  2627. `attrs` text NOT NULL,
  2628. `attrs_tr` text NOT NULL,
  2629. `attrs_wrapper` text NOT NULL,
  2630. `checker_func` varchar(32) NOT NULL,
  2631. `checker_params` text NOT NULL,
  2632. `checker_error` varchar(255) NOT NULL,
  2633. `db_pass` varchar(32) NOT NULL,
  2634. `db_params` text NOT NULL,
  2635. `editable` tinyint(4) NOT NULL DEFAULT '1',
  2636. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2637. PRIMARY KEY (`id`),
  2638. UNIQUE KEY `display_name` (`object`(64),`name`(127))
  2639. );
  2640. 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
  2641. ('sys_login', 'system', 'role', '1', '', 0, 'hidden', '_sys_form_login_input_caption_system_role', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2642. ('sys_login', 'system', 'relocate', '', '', 0, 'hidden', '_sys_form_login_input_caption_system_relocate', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2643. ('sys_login', 'system', 'ID', '', '', 0, 'text', '_sys_form_login_input_caption_system_id', '_sys_form_login_input_email', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2644. ('sys_login', 'system', 'Password', '', '', 0, 'password', '_sys_form_login_input_caption_system_password', '_sys_form_login_input_password', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2645. ('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),
  2646. ('sys_login', 'system', 'login', '_sys_form_login_input_submit', '', 0, 'submit', '_sys_form_login_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2647. ('sys_login', 'system', 'submit_text', '', '', 0, 'custom', '_sys_form_login_input_caption_system_submit_text', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2648. ('sys_login', 'system', 'phone', '', '', 0, 'text', '_sys_form_login_input_caption_system_phone', '_sys_form_login_input_phone', '_sys_form_login_input_phone_info', 1, 0, 0, '', '', '', 'PhoneExist', '', '_sys_form_login_input_phone_error_format', 'Xss', '', 1, 0),
  2649. ('sys_login', 'system', 'code', '', '', 0, 'text', '_sys_form_login_input_caption_system_code', '_sys_form_login_input_code', '', 1, 0, 0, '', '', '', 'CodeExist', '', '_sys_form_login_input_code_error_empty', 'Xss', '', 0, 0),
  2650. ('sys_login', 'system', 'back', '', '', '', 'value', '_sys_form_login_input_caption_system_back', '_sys_form_login_input_back', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
  2651. ('sys_login', 'system', 'do_checkcode', '_sys_form_login_input_checkcode', '', 0, 'submit', '_sys_form_login_input_caption_system_checkcode', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2652. ('sys_login', 'system', 'do_sendsms', '_sys_form_login_input_sendsms', '', 0, 'submit', '_sys_form_login_input_caption_system_sendsms', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2653. ('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),
  2654. ('sys_account', 'system', 'password', '', '', 0, 'password', '_sys_form_login_input_caption_system_password', '_sys_form_account_input_password', '', 1, 0, 0, '', '', '', 'Preg', 'a:1:{s:4:"preg";s:38:"~^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).{8,}~";}', '_sys_form_account_input_password_error', '', '', 0, 0),
  2655. ('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),
  2656. ('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),
  2657. ('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', '', 1, 0),
  2658. ('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),
  2659. ('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),
  2660. ('sys_account', 'system', 'delete_content', '0', '', 0, 'hidden', '_sys_form_login_input_caption_system_delete_content', '', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2661. ('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),
  2662. ('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),
  2663. ('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', '', 1, 0),
  2664. ('sys_account', 'system', 'agreement', '', '', 0, 'custom', '_sys_form_login_input_caption_system_agreement', '_sys_form_account_input_agreement', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2665. ('sys_forgot_password', 'system', 'email', '', '', 0, 'text', '_sys_form_forgot_password_input_caption_system_email', '_sys_form_forgot_password_input_email', '', 1, 0, 0, '', '', '', 'EmailExistOrEmpty', '', '_sys_form_account_input_email_error', 'Xss', '', 0, 0),
  2666. ('sys_forgot_password', 'system', 'phone', '', '', 0, 'text', '_sys_form_forgot_password_input_caption_system_phone', '_sys_form_forgot_password_input_phone', '', 1, 0, 0, '', '', '', 'PhoneExistOrEmpty', '', '_sys_form_account_input_phone_error', 'Xss', '', 0, 0),
  2667. ('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', '', '', 1, 0),
  2668. ('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),
  2669. ('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),
  2670. ('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),
  2671. ('sys_confirm_phone', 'system', 'phone', '', '', 0, 'text', '_sys_form_confirm_phone_input_caption_system_phone', '_sys_form_confirm_phone_input_phone', '_sys_form_confirm_phone_input_phone_info', 1, 0, 0, '', '', '', 'PhoneUniq', '', '_sys_form_confirm_phone_input_phone_error_format', 'Xss', '', 1, 0),
  2672. ('sys_confirm_phone', 'system', 'code', '', '', 0, 'text', '_sys_form_confirm_phone_input_caption_system_code', '_sys_form_confirm_phone_confirmation_input_code', '', 1, 0, 0, '', '', '', 'CodeExist', '', '_sys_form_confirm_phone_input_code_error_empty', 'Xss', '', 0, 0),
  2673. ('sys_confirm_phone', 'system', 'do_submit', '_sys_form_confirm_phone_input_submit', '', 0, 'submit', '_sys_form_confirm_phone_input_caption_system_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2674. ('sys_confirm_phone', 'system', 'do_sendsms', '_sys_form_confirm_phone_input_sendsms', '', 0, 'submit', '_sys_form_confirm_phone_input_caption_system_do_sendsms', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2675. ('sys_unsubscribe', 'system', 'id', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2676. ('sys_unsubscribe', 'system', 'code', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_code', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2677. ('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),
  2678. ('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),
  2679. ('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),
  2680. ('sys_comment', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2681. ('sys_comment', 'system', 'id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2682. ('sys_comment', 'system', 'action', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2683. ('sys_comment', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2684. ('sys_comment', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2685. ('sys_comment', 'system', 'cmt_text', '', '', 0, 'textarea', '_sys_form_comment_input_caption_system_cmt_text', '', '', 0, 0, 3, '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', 'XssHtml', '', 1, 0),
  2686. ('sys_comment', 'system', 'cmt_anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2687. ('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),
  2688. ('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),
  2689. ('sys_review', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2690. ('sys_review', 'system', 'id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2691. ('sys_review', 'system', 'action', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2692. ('sys_review', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2693. ('sys_review', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2694. ('sys_review', 'system', 'cmt_text', '', '', 0, 'textarea', '_sys_form_review_input_caption_system_cmt_text', '', '', 0, 0, 3, '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', 'XssHtml', '', 1, 0),
  2695. ('sys_review', 'system', 'cmt_mood', '', '', 0, 'custom', '_sys_form_review_input_caption_system_cmt_mood', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  2696. ('sys_review', 'system', 'cmt_anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2697. ('sys_review', '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_review_input_caption_system_cmt_image', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2698. ('sys_review', 'system', 'cmt_submit', '_sys_form_review_input_submit', '', 0, 'submit', '_sys_form_review_input_caption_system_cmt_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2699. ('sys_report', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2700. ('sys_report', 'system', 'object_id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_object_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2701. ('sys_report', 'system', 'action', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2702. ('sys_report', 'system', 'id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2703. ('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),
  2704. ('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),
  2705. ('sys_report', 'system', 'submit', '_sys_form_report_input_caption_submit', '', 0, 'submit', '_sys_form_report_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0);
  2706. CREATE TABLE IF NOT EXISTS `sys_form_display_inputs` (
  2707. `id` int(11) NOT NULL AUTO_INCREMENT,
  2708. `display_name` varchar(64) NOT NULL,
  2709. `input_name` varchar(32) NOT NULL,
  2710. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  2711. `active` tinyint(4) NOT NULL DEFAULT '0',
  2712. `order` int(11) NOT NULL,
  2713. PRIMARY KEY (`id`),
  2714. UNIQUE KEY `display_input` (`display_name`,`input_name`)
  2715. );
  2716. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  2717. ('sys_login', 'role', 2147483647, 1, 1),
  2718. ('sys_login', 'relocate', 2147483647, 1, 2),
  2719. ('sys_login', 'ID', 2147483647, 1, 3),
  2720. ('sys_login', 'Password', 2147483647, 1, 4),
  2721. ('sys_login', 'rememberMe', 2147483647, 1, 5),
  2722. ('sys_login', 'login', 2147483647, 1, 6),
  2723. ('sys_login', 'submit_text', 2147483647, 1, 7),
  2724. ('sys_login_step2', 'phone', 2147483647, 1, 1),
  2725. ('sys_login_step2', 'do_sendsms', 2147483647, 1, 2),
  2726. ('sys_login_step2', 'relocate', 2147483647, 1, 3),
  2727. ('sys_login_step3', 'code', 2147483647, 1, 1),
  2728. ('sys_login_step3', 'back', 2147483647, 1, 2),
  2729. ('sys_login_step3', 'do_checkcode', 2147483647, 1, 3),
  2730. ('sys_login_step3', 'relocate', 2147483647, 1, 4),
  2731. ('sys_account_create', 'name', 2147483647, 1, 1),
  2732. ('sys_account_create', 'email', 2147483647, 1, 2),
  2733. ('sys_account_create', 'password', 2147483647, 1, 3),
  2734. ('sys_account_create', 'receive_news', 2147483647, 1, 4),
  2735. ('sys_account_create', 'do_submit', 2147483647, 1, 5),
  2736. ('sys_account_create', 'agreement', 2147483647, 1, 6),
  2737. ('sys_account_settings_email', 'email', 2147483647, 1, 1),
  2738. ('sys_account_settings_email', 'password_current', 2147483647, 1, 2),
  2739. ('sys_account_settings_email', 'receive_updates', 2147483647, 1, 3),
  2740. ('sys_account_settings_email', 'receive_news', 2147483647, 1, 4),
  2741. ('sys_account_settings_email', 'do_submit', 2147483647, 1, 5),
  2742. ('sys_account_settings_pwd', 'password_current', 2147483647, 1, 1),
  2743. ('sys_account_settings_pwd', 'password', 2147483647, 1, 2),
  2744. ('sys_account_settings_pwd', 'password_confirm', 2147483647, 1, 3),
  2745. ('sys_account_settings_pwd', 'do_submit', 2147483647, 1, 4),
  2746. ('sys_account_settings_del_account', 'delete_content', 2147483647, 1, 0),
  2747. ('sys_account_settings_del_account', 'delete_confirm', 2147483647, 1, 1),
  2748. ('sys_account_settings_del_account', 'password_current', 2147483647, 1, 2),
  2749. ('sys_account_settings_del_account', 'do_submit', 2147483647, 1, 3),
  2750. ('sys_account_settings_info', 'name', 2147483647, 1, 1),
  2751. ('sys_account_settings_info', 'do_submit', 2147483647, 1, 2),
  2752. ('sys_forgot_password', 'email', 2147483647, 1, 1),
  2753. ('sys_forgot_password', 'phone', 2147483647, 1, 2),
  2754. ('sys_forgot_password', 'captcha', 2147483647, 1, 3),
  2755. ('sys_forgot_password', 'do_submit', 2147483647, 1, 4),
  2756. ('sys_confirm_email', 'code', 2147483647, 1, 1),
  2757. ('sys_confirm_email', 'do_submit', 2147483647, 1, 2),
  2758. ('sys_confirm_phone_set_phone', 'phone', 2147483647, 1, 1),
  2759. ('sys_confirm_phone_set_phone', 'do_sendsms', 2147483647, 1, 2),
  2760. ('sys_confirm_phone_confirmation', 'code', 2147483647, 1, 1),
  2761. ('sys_confirm_phone_confirmation', 'do_submit', 2147483647, 1, 2),
  2762. ('sys_unsubscribe_updates', 'id', 2147483647, 1, 1),
  2763. ('sys_unsubscribe_updates', 'code', 2147483647, 1, 2),
  2764. ('sys_unsubscribe_updates', 'receive_updates', 2147483647, 1, 3),
  2765. ('sys_unsubscribe_updates', 'do_submit', 2147483647, 1, 4),
  2766. ('sys_unsubscribe_news', 'id', 2147483647, 1, 1),
  2767. ('sys_unsubscribe_news', 'code', 2147483647, 1, 2),
  2768. ('sys_unsubscribe_news', 'receive_news', 2147483647, 1, 3),
  2769. ('sys_unsubscribe_news', 'do_submit', 2147483647, 1, 4),
  2770. ('sys_comment_post', 'sys', 2147483647, 1, 1),
  2771. ('sys_comment_post', 'id', 2147483647, 1, 2),
  2772. ('sys_comment_post', 'action', 2147483647, 1, 3),
  2773. ('sys_comment_post', 'cmt_id', 2147483647, 0, 4),
  2774. ('sys_comment_post', 'cmt_parent_id', 2147483647, 1, 5),
  2775. ('sys_comment_post', 'cmt_text', 2147483647, 1, 6),
  2776. ('sys_comment_post', 'cmt_image', 2147483647, 1, 7),
  2777. ('sys_comment_post', 'cmt_submit', 2147483647, 1, 8),
  2778. ('sys_comment_edit', 'sys', 2147483647, 1, 1),
  2779. ('sys_comment_edit', 'id', 2147483647, 1, 2),
  2780. ('sys_comment_edit', 'action', 2147483647, 1, 3),
  2781. ('sys_comment_edit', 'cmt_id', 2147483647, 1, 4),
  2782. ('sys_comment_edit', 'cmt_parent_id', 2147483647, 1, 5),
  2783. ('sys_comment_edit', 'cmt_text', 2147483647, 1, 6),
  2784. ('sys_comment_edit', 'cmt_image', 2147483647, 0, 7),
  2785. ('sys_comment_edit', 'cmt_submit', 2147483647, 1, 8),
  2786. ('sys_review_post', 'sys', 2147483647, 1, 1),
  2787. ('sys_review_post', 'id', 2147483647, 1, 2),
  2788. ('sys_review_post', 'action', 2147483647, 1, 3),
  2789. ('sys_review_post', 'cmt_id', 2147483647, 0, 4),
  2790. ('sys_review_post', 'cmt_parent_id', 2147483647, 1, 5),
  2791. ('sys_review_post', 'cmt_text', 2147483647, 1, 6),
  2792. ('sys_review_post', 'cmt_mood', 2147483647, 1, 7),
  2793. ('sys_review_post', 'cmt_image', 2147483647, 1, 8),
  2794. ('sys_review_post', 'cmt_submit', 2147483647, 1, 9),
  2795. ('sys_review_edit', 'sys', 2147483647, 1, 1),
  2796. ('sys_review_edit', 'id', 2147483647, 1, 2),
  2797. ('sys_review_edit', 'action', 2147483647, 1, 3),
  2798. ('sys_review_edit', 'cmt_id', 2147483647, 1, 4),
  2799. ('sys_review_edit', 'cmt_parent_id', 2147483647, 1, 5),
  2800. ('sys_review_edit', 'cmt_text', 2147483647, 1, 6),
  2801. ('sys_review_edit', 'cmt_mood', 2147483647, 1, 7),
  2802. ('sys_review_edit', 'cmt_image', 2147483647, 0, 8),
  2803. ('sys_review_edit', 'cmt_submit', 2147483647, 1, 9),
  2804. ('sys_report_post', 'sys', 2147483647, 1, 1),
  2805. ('sys_report_post', 'object_id', 2147483647, 1, 2),
  2806. ('sys_report_post', 'action', 2147483647, 1, 3),
  2807. ('sys_report_post', 'id', 2147483647, 0, 4),
  2808. ('sys_report_post', 'type', 2147483647, 1, 5),
  2809. ('sys_report_post', 'text', 2147483647, 1, 6),
  2810. ('sys_report_post', 'submit', 2147483647, 1, 7);
  2811. CREATE TABLE `sys_form_pre_lists` (
  2812. `id` int(11) NOT NULL AUTO_INCREMENT,
  2813. `module` varchar(32) NOT NULL default '',
  2814. `key` varchar(255) NOT NULL default '',
  2815. `title` varchar(255) NOT NULL default '',
  2816. `use_for_sets` tinyint(4) unsigned NOT NULL default '1',
  2817. `extendable` tinyint(4) unsigned NOT NULL default '1',
  2818. PRIMARY KEY (`id`),
  2819. UNIQUE KEY `key` (`key`(191)),
  2820. FULLTEXT KEY `ModuleAndKey` (`module`(32), `key`(159))
  2821. );
  2822. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`, `extendable`) VALUES
  2823. ('Country', '_adm_form_txt_pre_lists_country', 'system', '0', '1'),
  2824. ('Sex', '_adm_form_txt_pre_lists_sex', 'system', '1', '1'),
  2825. ('Language', '_adm_form_txt_pre_lists_language', 'system', '0', '1'),
  2826. ('sys_report_types', '_sys_pre_lists_report_types', 'system', '0', '0'),
  2827. ('sys_vote_reactions', '_sys_pre_lists_vote_reactions', 'system', '0', '0'),
  2828. ('sys_relations', '_sys_pre_lists_relations', 'system', '0', '1');
  2829. CREATE TABLE `sys_form_pre_values` (
  2830. `id` int(11) NOT NULL AUTO_INCREMENT,
  2831. `Key` varchar(255) NOT NULL default '',
  2832. `Value` varchar(255) NOT NULL default '',
  2833. `Order` int(10) unsigned NOT NULL default '0',
  2834. `LKey` varchar(255) NOT NULL default '',
  2835. `LKey2` varchar(255) NOT NULL default '',
  2836. `Data` text NOT NULL default '',
  2837. PRIMARY KEY (`id`),
  2838. FULLTEXT KEY `KeyAndValue` (`Key`, `Value`)
  2839. );
  2840. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2841. ('Country', 'AF', 1, '__Afghanistan', ''),
  2842. ('Country', 'AX', 2, '__Aland_Islands', ''),
  2843. ('Country', 'AL', 3, '__Albania', ''),
  2844. ('Country', 'DZ', 4, '__Algeria', ''),
  2845. ('Country', 'AS', 5, '__American Samoa', ''),
  2846. ('Country', 'AD', 6, '__Andorra', ''),
  2847. ('Country', 'AO', 7, '__Angola', ''),
  2848. ('Country', 'AI', 8, '__Anguilla', ''),
  2849. ('Country', 'AQ', 9, '__Antarctica', ''),
  2850. ('Country', 'AG', 10, '__Antigua and Barbuda', ''),
  2851. ('Country', 'AR', 11, '__Argentina', ''),
  2852. ('Country', 'AM', 12, '__Armenia', ''),
  2853. ('Country', 'AW', 13, '__Aruba', ''),
  2854. ('Country', 'AU', 14, '__Australia', ''),
  2855. ('Country', 'AT', 15, '__Austria', ''),
  2856. ('Country', 'AZ', 16, '__Azerbaijan', ''),
  2857. ('Country', 'BH', 17, '__Bahrain', ''),
  2858. ('Country', 'BD', 18, '__Bangladesh', ''),
  2859. ('Country', 'BB', 19, '__Barbados', ''),
  2860. ('Country', 'BY', 20, '__Belarus', ''),
  2861. ('Country', 'BE', 21, '__Belgium', ''),
  2862. ('Country', 'BZ', 22, '__Belize', ''),
  2863. ('Country', 'BJ', 23, '__Benin', ''),
  2864. ('Country', 'BM', 24, '__Bermuda', ''),
  2865. ('Country', 'BT', 25, '__Bhutan', ''),
  2866. ('Country', 'BO', 26, '__Bolivia', ''),
  2867. ('Country', 'BA', 27, '__Bosnia and Herzegovina', ''),
  2868. ('Country', 'BW', 28, '__Botswana', ''),
  2869. ('Country', 'BV', 29, '__Bouvet Island', ''),
  2870. ('Country', 'BR', 30, '__Brazil', ''),
  2871. ('Country', 'IO', 31, '__British Indian Ocean Territory', ''),
  2872. ('Country', 'VG', 32, '__British Virgin Islands', ''),
  2873. ('Country', 'BN', 33, '__Brunei Darussalam', ''),
  2874. ('Country', 'BG', 34, '__Bulgaria', ''),
  2875. ('Country', 'BF', 35, '__Burkina Faso', ''),
  2876. ('Country', 'MM', 36, '__Burma', ''),
  2877. ('Country', 'BI', 37, '__Burundi', ''),
  2878. ('Country', 'KH', 38, '__Cambodia', ''),
  2879. ('Country', 'CM', 39, '__Cameroon', ''),
  2880. ('Country', 'CA', 40, '__Canada', ''),
  2881. ('Country', 'CV', 41, '__Cape Verde', ''),
  2882. ('Country', 'KY', 42, '__Cayman Islands', ''),
  2883. ('Country', 'CF', 43, '__Central African Republic', ''),
  2884. ('Country', 'TD', 44, '__Chad', ''),
  2885. ('Country', 'CL', 45, '__Chile', ''),
  2886. ('Country', 'CN', 46, '__China', ''),
  2887. ('Country', 'CX', 47, '__Christmas Island', ''),
  2888. ('Country', 'CC', 48, '__Cocos (Keeling) Islands', ''),
  2889. ('Country', 'CO', 49, '__Colombia', ''),
  2890. ('Country', 'KM', 50, '__Comoros', ''),
  2891. ('Country', 'CD', 51, '__Congo, Democratic Republic of the', ''),
  2892. ('Country', 'CG', 52, '__Congo, Republic of the', ''),
  2893. ('Country', 'CK', 53, '__Cook Islands', ''),
  2894. ('Country', 'CR', 54, '__Costa Rica', ''),
  2895. ('Country', 'CI', 55, '__Cote d''Ivoire', ''),
  2896. ('Country', 'HR', 56, '__Croatia', ''),
  2897. ('Country', 'CU', 57, '__Cuba', ''),
  2898. ('Country', 'CY', 58, '__Cyprus', ''),
  2899. ('Country', 'CZ', 59, '__Czech Republic', ''),
  2900. ('Country', 'DK', 60, '__Denmark', ''),
  2901. ('Country', 'DJ', 61, '__Djibouti', ''),
  2902. ('Country', 'DM', 62, '__Dominica', ''),
  2903. ('Country', 'DO', 63, '__Dominican Republic', ''),
  2904. ('Country', 'TL', 64, '__East Timor', ''),
  2905. ('Country', 'EC', 65, '__Ecuador', ''),
  2906. ('Country', 'EG', 66, '__Egypt', ''),
  2907. ('Country', 'SV', 67, '__El Salvador', ''),
  2908. ('Country', 'GQ', 68, '__Equatorial Guinea', ''),
  2909. ('Country', 'ER', 69, '__Eritrea', ''),
  2910. ('Country', 'EE', 70, '__Estonia', ''),
  2911. ('Country', 'ET', 71, '__Ethiopia', ''),
  2912. ('Country', 'FK', 72, '__Falkland Islands (Islas Malvinas)', ''),
  2913. ('Country', 'FO', 73, '__Faroe Islands', ''),
  2914. ('Country', 'FJ', 74, '__Fiji', ''),
  2915. ('Country', 'FI', 75, '__Finland', ''),
  2916. ('Country', 'FR', 76, '__France', ''),
  2917. ('Country', 'GF', 77, '__French Guiana', ''),
  2918. ('Country', 'PF', 78, '__French Polynesia', ''),
  2919. ('Country', 'TF', 79, '__French Southern and Antarctic Lands', ''),
  2920. ('Country', 'GA', 80, '__Gabon', ''),
  2921. ('Country', 'GE', 81, '__Georgia', ''),
  2922. ('Country', 'DE', 82, '__Germany', ''),
  2923. ('Country', 'GH', 83, '__Ghana', ''),
  2924. ('Country', 'GI', 84, '__Gibraltar', ''),
  2925. ('Country', 'GR', 85, '__Greece', ''),
  2926. ('Country', 'GL', 86, '__Greenland', ''),
  2927. ('Country', 'GD', 87, '__Grenada', ''),
  2928. ('Country', 'GP', 88, '__Guadeloupe', ''),
  2929. ('Country', 'GU', 89, '__Guam', ''),
  2930. ('Country', 'GT', 90, '__Guatemala', ''),
  2931. ('Country', 'GG', 91, '__Guernsey', ''),
  2932. ('Country', 'GN', 92, '__Guinea', ''),
  2933. ('Country', 'GW', 93, '__Guinea-Bissau', ''),
  2934. ('Country', 'GY', 94, '__Guyana', ''),
  2935. ('Country', 'HT', 95, '__Haiti', ''),
  2936. ('Country', 'HM', 96, '__Heard Island and McDonald Islands', ''),
  2937. ('Country', 'VA', 97, '__Holy See (Vatican City)', ''),
  2938. ('Country', 'HN', 98, '__Honduras', ''),
  2939. ('Country', 'HK', 99, '__Hong Kong (SAR)', ''),
  2940. ('Country', 'HU', 100, '__Hungary', ''),
  2941. ('Country', 'IS', 101, '__Iceland', ''),
  2942. ('Country', 'IN', 102, '__India', ''),
  2943. ('Country', 'ID', 103, '__Indonesia', ''),
  2944. ('Country', 'IR', 104, '__Iran', ''),
  2945. ('Country', 'IQ', 105, '__Iraq', ''),
  2946. ('Country', 'IE', 106, '__Ireland', ''),
  2947. ('Country', 'IM', 107, '__Isle_of_Man', ''),
  2948. ('Country', 'IL', 108, '__Israel', ''),
  2949. ('Country', 'IT', 109, '__Italy', ''),
  2950. ('Country', 'JM', 110, '__Jamaica', ''),
  2951. ('Country', 'JP', 111, '__Japan', ''),
  2952. ('Country', 'JE', 112, '__Jersey', ''),
  2953. ('Country', 'JO', 113, '__Jordan', ''),
  2954. ('Country', 'KZ', 114, '__Kazakhstan', ''),
  2955. ('Country', 'KE', 115, '__Kenya', ''),
  2956. ('Country', 'KI', 116, '__Kiribati', ''),
  2957. ('Country', 'KP', 117, '__Korea, North', ''),
  2958. ('Country', 'KR', 118, '__Korea, South', ''),
  2959. ('Country', 'KW', 119, '__Kuwait', ''),
  2960. ('Country', 'KG', 120, '__Kyrgyzstan', ''),
  2961. ('Country', 'LA', 121, '__Laos', ''),
  2962. ('Country', 'LV', 122, '__Latvia', ''),
  2963. ('Country', 'LB', 123, '__Lebanon', ''),
  2964. ('Country', 'LS', 124, '__Lesotho', ''),
  2965. ('Country', 'LR', 125, '__Liberia', ''),
  2966. ('Country', 'LY', 126, '__Libya', ''),
  2967. ('Country', 'LI', 127, '__Liechtenstein', ''),
  2968. ('Country', 'LT', 128, '__Lithuania', ''),
  2969. ('Country', 'LU', 129, '__Luxembourg', ''),
  2970. ('Country', 'MO', 130, '__Macao', ''),
  2971. ('Country', 'MK', 131, '__Macedonia, The Former Yugoslav Republic of', ''),
  2972. ('Country', 'MG', 132, '__Madagascar', ''),
  2973. ('Country', 'MW', 133, '__Malawi', ''),
  2974. ('Country', 'MY', 134, '__Malaysia', ''),
  2975. ('Country', 'MV', 135, '__Maldives', ''),
  2976. ('Country', 'ML', 136, '__Mali', ''),
  2977. ('Country', 'MT', 137, '__Malta', ''),
  2978. ('Country', 'MH', 138, '__Marshall Islands', ''),
  2979. ('Country', 'MQ', 139, '__Martinique', ''),
  2980. ('Country', 'MR', 140, '__Mauritania', ''),
  2981. ('Country', 'MU', 141, '__Mauritius', ''),
  2982. ('Country', 'YT', 142, '__Mayotte', ''),
  2983. ('Country', 'MX', 143, '__Mexico', ''),
  2984. ('Country', 'FM', 144, '__Micronesia, Federated States of', ''),
  2985. ('Country', 'MD', 145, '__Moldova', ''),
  2986. ('Country', 'MC', 146, '__Monaco', ''),
  2987. ('Country', 'MN', 147, '__Mongolia', ''),
  2988. ('Country', 'ME', 148, '__Montenegro', ''),
  2989. ('Country', 'MS', 149, '__Montserrat', ''),
  2990. ('Country', 'MA', 150, '__Morocco', ''),
  2991. ('Country', 'MZ', 151, '__Mozambique', ''),
  2992. ('Country', 'NA', 152, '__Namibia', ''),
  2993. ('Country', 'NR', 153, '__Nauru', ''),
  2994. ('Country', 'NP', 154, '__Nepal', ''),
  2995. ('Country', 'NL', 155, '__Netherlands', ''),
  2996. ('Country', 'AN', 156, '__Netherlands Antilles', ''),
  2997. ('Country', 'NC', 157, '__New Caledonia', ''),
  2998. ('Country', 'NZ', 158, '__New Zealand', ''),
  2999. ('Country', 'NI', 159, '__Nicaragua', ''),
  3000. ('Country', 'NE', 160, '__Niger', ''),
  3001. ('Country', 'NG', 161, '__Nigeria', ''),
  3002. ('Country', 'NU', 162, '__Niue', ''),
  3003. ('Country', 'NF', 163, '__Norfolk Island', ''),
  3004. ('Country', 'MP', 164, '__Northern Mariana Islands', ''),
  3005. ('Country', 'NO', 165, '__Norway', ''),
  3006. ('Country', 'OM', 166, '__Oman', ''),
  3007. ('Country', 'PK', 167, '__Pakistan', ''),
  3008. ('Country', 'PW', 168, '__Palau', ''),
  3009. ('Country', 'PS', 169, '__Palestinian Territory, Occupied', ''),
  3010. ('Country', 'PA', 170, '__Panama', ''),
  3011. ('Country', 'PG', 171, '__Papua New Guinea', ''),
  3012. ('Country', 'PY', 172, '__Paraguay', ''),
  3013. ('Country', 'PE', 173, '__Peru', ''),
  3014. ('Country', 'PH', 174, '__Philippines', ''),
  3015. ('Country', 'PN', 175, '__Pitcairn Islands', ''),
  3016. ('Country', 'PL', 176, '__Poland', ''),
  3017. ('Country', 'PT', 177, '__Portugal', ''),
  3018. ('Country', 'PR', 178, '__Puerto Rico', ''),
  3019. ('Country', 'QA', 179, '__Qatar', ''),
  3020. ('Country', 'RE', 180, '__Reunion', ''),
  3021. ('Country', 'RO', 181, '__Romania', ''),
  3022. ('Country', 'RU', 182, '__Russia', ''),
  3023. ('Country', 'RW', 183, '__Rwanda', ''),
  3024. ('Country', 'SH', 184, '__Saint Helena', ''),
  3025. ('Country', 'KN', 185, '__Saint Kitts and Nevis', ''),
  3026. ('Country', 'LC', 186, '__Saint Lucia', ''),
  3027. ('Country', 'PM', 187, '__Saint Pierre and Miquelon', ''),
  3028. ('Country', 'VC', 188, '__Saint Vincent and the Grenadines', ''),
  3029. ('Country', 'BL', 189, '__Saint_Barthelemy', ''),
  3030. ('Country', 'MF', 190, '__Saint_Martin_French_part', ''),
  3031. ('Country', 'WS', 191, '__Samoa', ''),
  3032. ('Country', 'SM', 192, '__San Marino', ''),
  3033. ('Country', 'ST', 193, '__Sao Tome and Principe', ''),
  3034. ('Country', 'SA', 194, '__Saudi Arabia', ''),
  3035. ('Country', 'SN', 195, '__Senegal', ''),
  3036. ('Country', 'RS', 196, '__Serbia', ''),
  3037. ('Country', 'SC', 197, '__Seychelles', ''),
  3038. ('Country', 'SL', 198, '__Sierra Leone', ''),
  3039. ('Country', 'SG', 199, '__Singapore', ''),
  3040. ('Country', 'SK', 200, '__Slovakia', ''),
  3041. ('Country', 'SI', 201, '__Slovenia', ''),
  3042. ('Country', 'SB', 202, '__Solomon Islands', ''),
  3043. ('Country', 'SO', 203, '__Somalia', ''),
  3044. ('Country', 'ZA', 204, '__South Africa', ''),
  3045. ('Country', 'GS', 205, '__South Georgia and the South Sandwich Islands', ''),
  3046. ('Country', 'ES', 206, '__Spain', ''),
  3047. ('Country', 'LK', 207, '__Sri Lanka', ''),
  3048. ('Country', 'SD', 208, '__Sudan', ''),
  3049. ('Country', 'SR', 209, '__Suriname', ''),
  3050. ('Country', 'SJ', 210, '__Svalbard', ''),
  3051. ('Country', 'SZ', 211, '__Swaziland', ''),
  3052. ('Country', 'SE', 212, '__Sweden', ''),
  3053. ('Country', 'CH', 213, '__Switzerland', ''),
  3054. ('Country', 'SY', 214, '__Syria', ''),
  3055. ('Country', 'TW', 215, '__Taiwan', ''),
  3056. ('Country', 'TJ', 216, '__Tajikistan', ''),
  3057. ('Country', 'TZ', 217, '__Tanzania', ''),
  3058. ('Country', 'TH', 218, '__Thailand', ''),
  3059. ('Country', 'BS', 219, '__The Bahamas', ''),
  3060. ('Country', 'GM', 220, '__The Gambia', ''),
  3061. ('Country', 'TG', 221, '__Togo', ''),
  3062. ('Country', 'TK', 222, '__Tokelau', ''),
  3063. ('Country', 'TO', 223, '__Tonga', ''),
  3064. ('Country', 'TT', 224, '__Trinidad and Tobago', ''),
  3065. ('Country', 'TN', 225, '__Tunisia', ''),
  3066. ('Country', 'TR', 226, '__Turkey', ''),
  3067. ('Country', 'TM', 227, '__Turkmenistan', ''),
  3068. ('Country', 'TC', 228, '__Turks and Caicos Islands', ''),
  3069. ('Country', 'TV', 229, '__Tuvalu', ''),
  3070. ('Country', 'UG', 230, '__Uganda', ''),
  3071. ('Country', 'UA', 231, '__Ukraine', ''),
  3072. ('Country', 'AE', 232, '__United Arab Emirates', ''),
  3073. ('Country', 'GB', 233, '__United Kingdom', ''),
  3074. ('Country', 'US', 234, '__United States', ''),
  3075. ('Country', 'UM', 235, '__United States Minor Outlying Islands', ''),
  3076. ('Country', 'UY', 236, '__Uruguay', ''),
  3077. ('Country', 'UZ', 237, '__Uzbekistan', ''),
  3078. ('Country', 'VU', 238, '__Vanuatu', ''),
  3079. ('Country', 'VE', 239, '__Venezuela', ''),
  3080. ('Country', 'VN', 240, '__Vietnam', ''),
  3081. ('Country', 'VI', 241, '__Virgin Islands', ''),
  3082. ('Country', 'WF', 242, '__Wallis and Futuna', ''),
  3083. ('Country', 'EH', 243, '__Western Sahara', ''),
  3084. ('Country', 'YE', 244, '__Yemen', ''),
  3085. ('Country', 'ZM', 245, '__Zambia', ''),
  3086. ('Country', 'ZW', 246, '__Zimbabwe', '');
  3087. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3088. ('Sex', '', 1, '_sys_not_specified', ''),
  3089. ('Sex', '1', 2, '_Male', '_LookinMale'),
  3090. ('Sex', '2', 3, '_Female', '_LookinFemale');
  3091. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3092. ('Language', '1', 1, '__English', ''),
  3093. ('Language', '2', 2, '__Afrikaans', ''),
  3094. ('Language', '3', 3, '__Arabic', ''),
  3095. ('Language', '4', 4, '__Bulgarian', ''),
  3096. ('Language', '5', 5, '__Burmese', ''),
  3097. ('Language', '6', 6, '__Cantonese', ''),
  3098. ('Language', '7', 7, '__Croatian', ''),
  3099. ('Language', '8', 8, '__Danish', ''),
  3100. ('Language', '9', 9, '__Dutch', ''),
  3101. ('Language', '10', 10, '__Esperanto', ''),
  3102. ('Language', '11', 11, '__Estonian', ''),
  3103. ('Language', '12', 12, '__Finnish', ''),
  3104. ('Language', '13', 13, '__French', ''),
  3105. ('Language', '14', 14, '__German', ''),
  3106. ('Language', '15', 15, '__Greek', ''),
  3107. ('Language', '16', 16, '__Gujrati', ''),
  3108. ('Language', '17', 17, '__Hebrew', ''),
  3109. ('Language', '18', 18, '__Hindi', ''),
  3110. ('Language', '19', 19, '__Hungarian', ''),
  3111. ('Language', '20', 20, '__Icelandic', ''),
  3112. ('Language', '21', 21, '__Indian', ''),
  3113. ('Language', '22', 22, '__Indonesian', ''),
  3114. ('Language', '23', 23, '__Italian', ''),
  3115. ('Language', '24', 24, '__Japanese', ''),
  3116. ('Language', '25', 25, '__Korean', ''),
  3117. ('Language', '26', 26, '__Latvian', ''),
  3118. ('Language', '27', 27, '__Lithuanian', ''),
  3119. ('Language', '28', 28, '__Malay', ''),
  3120. ('Language', '29', 29, '__Mandarin', ''),
  3121. ('Language', '30', 30, '__Marathi', ''),
  3122. ('Language', '31', 31, '__Moldovian', ''),
  3123. ('Language', '32', 32, '__Nepalese', ''),
  3124. ('Language', '33', 33, '__Norwegian', ''),
  3125. ('Language', '34', 34, '__Persian', ''),
  3126. ('Language', '35', 35, '__Polish', ''),
  3127. ('Language', '36', 36, '__Portuguese', ''),
  3128. ('Language', '37', 37, '__Punjabi', ''),
  3129. ('Language', '38', 38, '__Romanian', ''),
  3130. ('Language', '39', 39, '__Russian', ''),
  3131. ('Language', '40', 40, '__Serbian', ''),
  3132. ('Language', '41', 41, '__Spanish', ''),
  3133. ('Language', '42', 42, '__Swedish', ''),
  3134. ('Language', '43', 43, '__Tagalog', ''),
  3135. ('Language', '44', 44, '__Taiwanese', ''),
  3136. ('Language', '45', 45, '__Tamil', ''),
  3137. ('Language', '46', 46, '__Telugu', ''),
  3138. ('Language', '47', 47, '__Thai', ''),
  3139. ('Language', '48', 48, '__Tongan', ''),
  3140. ('Language', '49', 49, '__Turkish', ''),
  3141. ('Language', '50', 50, '__Ukrainian', ''),
  3142. ('Language', '51', 51, '__Urdu', ''),
  3143. ('Language', '52', 52, '__Vietnamese', ''),
  3144. ('Language', '53', 53, '__Visayan', '');
  3145. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3146. ('sys_report_types', 'spam', 1, '_sys_pre_lists_report_types_spam', ''),
  3147. ('sys_report_types', 'scam', 2, '_sys_pre_lists_report_types_scam', ''),
  3148. ('sys_report_types', 'fraud', 3, '_sys_pre_lists_report_types_fraud', ''),
  3149. ('sys_report_types', 'nude', 4, '_sys_pre_lists_report_types_nude', ''),
  3150. ('sys_report_types', 'other', 5, '_sys_pre_lists_report_types_other', '');
  3151. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3152. ('sys_vote_reactions', 'like', 1, '_sys_pre_lists_vote_reactions_like', '', 'a:2:{s:4:"icon";s:9:"thumbs-up";s:6:"weight";s:1:"1";}'),
  3153. ('sys_vote_reactions', 'love', 2, '_sys_pre_lists_vote_reactions_love', '', 'a:2:{s:4:"icon";s:26:"heart sys-colored col-red1";s:6:"weight";s:1:"1";}'),
  3154. ('sys_vote_reactions', 'joy', 3, '_sys_pre_lists_vote_reactions_joy', '', 'a:2:{s:4:"icon";s:32:"grin-squint sys-colored col-red3";s:6:"weight";s:1:"1";}'),
  3155. ('sys_vote_reactions', 'surprise', 4, '_sys_pre_lists_vote_reactions_surprise', '', 'a:2:{s:4:"icon";s:29:"surprise sys-colored col-red3";s:6:"weight";s:1:"1";}'),
  3156. ('sys_vote_reactions', 'sadness', 5, '_sys_pre_lists_vote_reactions_sadness', '', 'a:2:{s:4:"icon";s:29:"sad-tear sys-colored col-red3";s:6:"weight";s:1:"1";}'),
  3157. ('sys_vote_reactions', 'anger', 6, '_sys_pre_lists_vote_reactions_anger', '', 'a:2:{s:4:"icon";s:26:"angry sys-colored col-red3";s:6:"weight";s:1:"1";}');
  3158. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3159. ('sys_relations', '1', 1, '_sys_pre_lists_relations_husband', '', 'a:1:{i:0;s:1:"2";}'),
  3160. ('sys_relations', '2', 2, '_sys_pre_lists_relations_wife', '', 'a:1:{i:0;s:1:"1";}'),
  3161. ('sys_relations', '3', 3, '_sys_pre_lists_relations_father', '', 'a:2:{i:0;s:1:"5";i:1;s:1:"6";}'),
  3162. ('sys_relations', '4', 4, '_sys_pre_lists_relations_mother', '', 'a:2:{i:0;s:1:"5";i:1;s:1:"6";}'),
  3163. ('sys_relations', '5', 5, '_sys_pre_lists_relations_son', '', 'a:2:{i:0;s:1:"3";i:1;s:1:"4";}'),
  3164. ('sys_relations', '6', 6, '_sys_pre_lists_relations_daughter', '', 'a:2:{i:0;s:1:"3";i:1;s:1:"4";}'),
  3165. ('sys_relations', '7', 7, '_sys_pre_lists_relations_brother', '', 'a:2:{i:0;s:1:"7";i:1;s:1:"8";}'),
  3166. ('sys_relations', '8', 8, '_sys_pre_lists_relations_sister', '', 'a:2:{i:0;s:1:"7";i:1;s:1:"8";}');
  3167. -- --------------------------------------------------------
  3168. CREATE TABLE IF NOT EXISTS `sys_menu_templates` (
  3169. `id` int(11) NOT NULL AUTO_INCREMENT,
  3170. `template` varchar(255) NOT NULL,
  3171. `title` varchar(255) NOT NULL,
  3172. `visible` tinyint(4) NOT NULL DEFAULT '1',
  3173. PRIMARY KEY (`id`)
  3174. );
  3175. INSERT INTO `sys_menu_templates` (`id`, `template`, `title`, `visible`) VALUES
  3176. (1, 'menu_empty.html', '_sys_menu_template_title_empty', 1),
  3177. (2, 'menu_footer.html', '_sys_menu_template_title_footer', 0),
  3178. (3, 'menu_horizontal.html', '_sys_menu_template_title_hor', 1),
  3179. (4, 'menu_vertical_lite.html', '_sys_menu_template_title_ver_lite', 1),
  3180. (5, 'menu_toolbar.html', '_sys_menu_template_title_toolbar', 0),
  3181. (6, 'menu_vertical.html', '_sys_menu_template_title_ver', 1),
  3182. (7, 'menu_floating_blocks.html', '_sys_menu_template_title_floating_blocks', 1),
  3183. (8, 'menu_main_submenu.html', '_sys_menu_template_title_main_submenu', 8),
  3184. (9, 'menu_buttons_hor.html', '_sys_menu_template_title_buttons_hor', 1),
  3185. (10, 'menu_inline.html', '_sys_menu_template_title_inline', 1),
  3186. (11, 'menu_interactive_vertical.html', '_sys_menu_template_title_interactive_vertical', 1),
  3187. (12, 'menu_account_popup.html', '_sys_menu_template_title_account_popup', 0),
  3188. (13, 'menu_account_notifications.html', '_sys_menu_template_title_account_notifications', 0),
  3189. (14, 'menu_floating_blocks_big.html', '_sys_menu_template_title_floating_blocks_big', 1),
  3190. (15, 'menu_custom_hor.html', '_sys_menu_template_title_custom_hor', 0),
  3191. (16, 'menu_buttons_ver.html', '_sys_menu_template_title_buttons_ver', 1),
  3192. (17, 'menu_inline_sbtn.html', '_sys_menu_template_title_inline_sbtn', 1),
  3193. (18, 'menu_icon_buttons_hor.html', '_sys_menu_template_title_icon_buttons_hor', 1),
  3194. (19, 'menu_floating_blocks_wide.html', '_sys_menu_template_title_floating_blocks_wide', 0),
  3195. (20, 'menu_custom_ver.html', '_sys_menu_template_title_custom_ver', 0),
  3196. (21, 'menu_profile_stats.html', '_sys_menu_template_title_profile_stats', 0),
  3197. (22, 'menu_interactive.html', '_sys_menu_template_title_interactive', 1),
  3198. (23, 'menu_buttons_icon_hor.html', '_sys_menu_template_title_buttons_icon_hor', 1),
  3199. (24, 'menu_floating_blocks_dash.html', '_sys_menu_template_title_floating_blocks_dash', 0);
  3200. CREATE TABLE IF NOT EXISTS `sys_objects_menu` (
  3201. `id` int(11) NOT NULL AUTO_INCREMENT,
  3202. `object` varchar(64) NOT NULL,
  3203. `title` varchar(255) NOT NULL,
  3204. `set_name` varchar(64) NOT NULL,
  3205. `module` varchar(32) NOT NULL,
  3206. `template_id` int(11) NOT NULL,
  3207. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3208. `active` tinyint(4) NOT NULL DEFAULT '0',
  3209. `override_class_name` varchar(255) NOT NULL,
  3210. `override_class_file` varchar(255) NOT NULL,
  3211. PRIMARY KEY (`id`),
  3212. UNIQUE KEY `object` (`object`)
  3213. );
  3214. INSERT INTO `sys_objects_menu` (`object`, `title`, `set_name`, `module`, `template_id`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  3215. ('sys_site', '_sys_menu_title_main', 'sys_site', 'system', 14, 0, 1, 'BxTemplMenuSite', ''),
  3216. ('sys_homepage', '_sys_menu_title_homepage', 'sys_homepage', 'system', 14, 0, 1, 'BxTemplMenuHomepage', ''),
  3217. ('sys_homepage_submenu', '_sys_menu_title_homepage_submenu', 'sys_homepage_submenu', 'system', 8, 0, 1, '', ''),
  3218. ('sys_site_submenu', '_sys_menu_title_submenu', 'sys_site', 'system', 1, 0, 1, 'BxTemplMenuSubmenu', ''),
  3219. ('sys_footer', '_sys_menu_title_footer', 'sys_footer', 'system', 2, 0, 1, 'BxTemplMenuFooter', ''),
  3220. ('sys_toolbar_site', '_sys_menu_title_toolbar_site', 'sys_toolbar_site', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  3221. ('sys_toolbar_member', '_sys_menu_title_toolbar_member', 'sys_toolbar_member', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  3222. ('sys_add_content', '_sys_menu_title_add_content', 'sys_add_content_links', 'system', 14, 0, 1, 'BxTemplMenuSite', ''),
  3223. ('sys_add_profile', '_sys_menu_title_add_profile', 'sys_add_profile_links', 'system', 14, 0, 1, 'BxTemplMenuProfileAdd', ''),
  3224. ('sys_add_profile_vertical', '_sys_menu_title_add_profile_vertical', 'sys_add_profile_links', 'system', 6, 0, 1, 'BxTemplMenuProfileAdd', ''),
  3225. ('sys_account_dashboard', '_sys_menu_title_account_dashboard', 'sys_account_dashboard', 'system', 8, 0, 1, 'BxTemplMenuAccountDashboard', ''),
  3226. ('sys_account_dashboard_manage_tools', '_sys_menu_title_account_dashboard_manage_tools', 'sys_account_dashboard_manage_tools', 'system', 24, 0, 1, 'BxTemplMenuDashboardManageTools', ''),
  3227. ('sys_account_settings_submenu', '_sys_menu_title_account_settings', 'sys_account_settings', 'system', 8, 0, 1, '', ''),
  3228. ('sys_account_settings_more', '_sys_menu_title_account_settings_more', 'sys_account_settings_more', 'system', 4, 0, 1, '', ''),
  3229. ('sys_profiles_create', '_sys_menu_title_profiles_create', 'sys_profiles_create', 'system', 4, 0, 1, '', ''),
  3230. ('sys_cmts_item_manage', '_sys_menu_title_cmts_item_manage', 'sys_cmts_item_manage', 'system', 20, 0, 1, 'BxTemplCmtsMenuManage', ''),
  3231. ('sys_cmts_item_actions', '_sys_menu_title_cmts_item_actions', 'sys_cmts_item_actions', 'system', 15, 0, 1, 'BxTemplCmtsMenuActions', ''),
  3232. ('sys_cmts_item_meta', '_sys_menu_title_cmts_item_meta', 'sys_cmts_item_meta', 'system', 15, 0, 1, 'BxTemplCmtsMenuUnitMeta', ''),
  3233. ('sys_account_popup', '_sys_menu_title_account_popup', '', 'system', 12, 0, 1, 'BxTemplMenuAccountPopup', ''),
  3234. ('sys_account_notifications', '_sys_menu_title_account_notifications', 'sys_account_notifications', 'system', 19, 0, 1, 'BxTemplMenuAccountNotifications', ''),
  3235. ('sys_profile_stats', '_sys_menu_title_profile_stats', 'sys_profile_stats', 'system', 21, 0, 1, 'BxTemplMenuProfileStats', ''),
  3236. ('sys_switch_language_popup', '_sys_menu_title_switch_language_popup', 'sys_switch_language', 'system', 6, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  3237. ('sys_switch_language_inline', '_sys_menu_title_switch_language_inline', 'sys_switch_language', 'system', 3, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  3238. ('sys_switch_template', '_sys_menu_title_switch_template', 'sys_switch_template', 'system', 6, 0, 1, 'BxTemplMenuSwitchTemplate', ''),
  3239. ('sys_set_acl_level', '_sys_menu_title_set_acl_level', '', 'system', 6, 0, 1, 'BxTemplMenuSetAclLevel', ''),
  3240. ('sys_social_sharing', '_sys_menu_title_social_sharing', 'sys_social_sharing', 'system', 18, 0, 1, 'BxTemplMenuSocialSharing', ''),
  3241. ('sys_create_post', '_sys_menu_title_create_post', 'sys_add_content_links', 'system', 22, 0, 1, 'BxTemplMenuCreatePost', ''),
  3242. ('sys_add_relation', '_sys_menu_title_add_relation', '', 'system', 6, 0, 1, 'BxTemplMenuAddRelation', '');
  3243. CREATE TABLE IF NOT EXISTS `sys_menu_sets` (
  3244. `set_name` varchar(64) NOT NULL,
  3245. `module` varchar(32) NOT NULL,
  3246. `title` varchar(255) NOT NULL,
  3247. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3248. PRIMARY KEY (`set_name`)
  3249. );
  3250. INSERT INTO `sys_menu_sets` (`set_name`, `module`, `title`, `deletable`) VALUES
  3251. ('sys_site', 'system', '_sys_menu_set_title_site', 0),
  3252. ('sys_homepage', 'system', '_sys_menu_set_title_homepage', 0),
  3253. ('sys_homepage_submenu', 'system', '_sys_menu_set_title_homepage_submenu', 0),
  3254. ('sys_footer', 'system', '_sys_menu_set_title_footer', 0),
  3255. ('sys_toolbar_site', 'system', '_sys_menu_set_title_toolbar_site', 0),
  3256. ('sys_toolbar_member', 'system', '_sys_menu_set_title_toolbar_member', 0),
  3257. ('sys_account_notifications', 'system', '_sys_menu_set_title_account_notifications', 0),
  3258. ('sys_add_content_links', 'system', '_sys_menu_set_title_add_content', 0),
  3259. ('sys_add_profile_links', 'system', '_sys_menu_set_title_add_profile', 0),
  3260. ('sys_account_dashboard', 'system', '_sys_menu_set_title_account_dashboard', 0),
  3261. ('sys_account_dashboard_manage_tools', 'system', '_sys_menu_set_title_account_dashboard_manage_tools', 0),
  3262. ('sys_account_settings', 'system', '_sys_menu_set_title_account_settings', 0),
  3263. ('sys_account_settings_more', 'system', '_sys_menu_set_title_account_settings_more', 0),
  3264. ('sys_profiles_create', 'system', '_sys_menu_set_title_profile_create_links', 0),
  3265. ('sys_profile_stats', 'system', '_sys_menu_set_title_profile_stats', 0),
  3266. ('sys_cmts_item_manage', 'system', '_sys_menu_set_title_cmts_item_manage', 0),
  3267. ('sys_cmts_item_actions', 'system', '_sys_menu_set_title_cmts_item_actions', 0),
  3268. ('sys_cmts_item_meta', 'system', '_sys_menu_set_title_cmts_item_meta', 0),
  3269. ('sys_switch_language', 'system', '_sys_menu_set_title_switch_language', 0),
  3270. ('sys_switch_template', 'system', '_sys_menu_set_title_switch_template', 0),
  3271. ('sys_social_sharing', 'system', '_sys_menu_set_title_sys_social_sharing', 0);
  3272. CREATE TABLE IF NOT EXISTS `sys_menu_items` (
  3273. `id` int(11) NOT NULL AUTO_INCREMENT,
  3274. `set_name` varchar(64) NOT NULL,
  3275. `module` varchar(32) NOT NULL,
  3276. `name` varchar(255) NOT NULL,
  3277. `title_system` varchar(255) NOT NULL,
  3278. `title` varchar(255) NOT NULL,
  3279. `link` varchar(255) NOT NULL,
  3280. `onclick` varchar(255) NOT NULL,
  3281. `target` varchar(255) NOT NULL,
  3282. `icon` varchar(255) NOT NULL,
  3283. `addon` text NOT NULL,
  3284. `submenu_object` varchar(64) NOT NULL,
  3285. `submenu_popup` tinyint(4) NOT NULL DEFAULT '0',
  3286. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3287. `visibility_custom` text NOT NULL,
  3288. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  3289. `active` tinyint(4) NOT NULL DEFAULT '1',
  3290. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  3291. `editable` tinyint(4) NOT NULL DEFAULT '1',
  3292. `order` int(11) NOT NULL,
  3293. PRIMARY KEY (`id`)
  3294. );
  3295. -- site menu
  3296. 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
  3297. ('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),
  3298. ('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),
  3299. ('sys_site', 'system', 'search', '_sys_menu_item_title_system_search', '_sys_menu_item_title_search', 'javascript:void(0);', 'bx_menu_slide_inline(\'#bx-sliding-menu-search\', this, \'site\');', '', 'search', '', 2147483647, 1, 1, 3);
  3300. -- homepage submenu
  3301. INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `visible_for_levels`, `visibility_custom`, `active`, `copyable`, `order`) VALUES
  3302. ('sys_homepage_submenu', 'system', 'home', '_sys_menu_item_title_system_home', '_sys_menu_item_title_home', 'index.php', '', '', 'bolt', '', '', 2147483647, '', 0, 1, 1),
  3303. ('sys_homepage_submenu', 'system', 'explore', '_sys_menu_item_title_system_explore', '_sys_menu_item_title_explore', 'page.php?i=explore', '', '', 'compass ', '', '', 2147483647, '', 0, 1, 2),
  3304. ('sys_homepage_submenu', 'system', 'updates', '_sys_menu_item_title_system_updates', '_sys_menu_item_title_updates', 'page.php?i=updates', '', '', 'fire', '', '', 2147483647, '', 0, 1, 3),
  3305. ('sys_homepage_submenu', 'system', 'trends', '_sys_menu_item_title_system_trends', '_sys_menu_item_title_trends', 'page.php?i=trends', '', '', 'hashtag', '', '', 2147483647, '', 0, 1, 4);
  3306. -- footer menu
  3307. 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
  3308. ('sys_footer', 'system', 'about', '_sys_menu_item_title_system_about', '_sys_menu_item_title_about', 'page.php?i=about', '', '', '', '', 2147483647, 1, 1, 1),
  3309. ('sys_footer', 'system', 'terms', '_sys_menu_item_title_system_terms', '_sys_menu_item_title_terms', 'page.php?i=terms', '', '', '', '', 2147483647, 1, 1, 2),
  3310. ('sys_footer', 'system', 'privacy', '_sys_menu_item_title_system_privacy', '_sys_menu_item_title_privacy', 'page.php?i=privacy', '', '', '', '', 2147483647, 1, 1, 3),
  3311. ('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, 1, 1, 4),
  3312. ('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),
  3313. ('sys_footer', 'system', 'copyright', '_sys_menu_item_title_system_copyright', '_sys_menu_item_title_copyright', 'javascript:void(0)', 'on_copyright_click()', '', '', '', 2147483647, 1, 1, 6),
  3314. ('sys_footer', 'system', 'powered_by', '_sys_menu_item_title_system_powered_by', '', 'https://una.io', '', '_blank', 'una.png', '', 2147483647, 1, 1, 9999);
  3315. -- site toolbar menu
  3316. 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
  3317. ('sys_toolbar_site', 'system', 'main-menu', '_sys_menu_item_title_system_main_menu', '', 'javascript:void(0);', 'bx_menu_slide_inline(\'#bx-sliding-menu-sys_site\', this, \'site\');', '', 'bars', '', 2147483647, 1, 1, 1),
  3318. ('sys_toolbar_site', 'system', 'search', '_sys_menu_item_title_system_search', '', 'javascript:void(0);', 'bx_menu_slide_inline(''#bx-sliding-menu-search'', this, ''site'');', '', 'search', '', 2147483647, 1, 1, 2);
  3319. -- member toolbar menu
  3320. 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
  3321. ('sys_toolbar_member', 'system', 'add-content', '_sys_menu_item_title_system_add_content', '', 'javascript:void(0);', 'bx_menu_slide_inline(\'#bx-sliding-menu-sys_add_content\', this, \'site\');', '', 'plus', '', '', 0, 510, 1, 1, 0),
  3322. ('sys_toolbar_member', 'system', 'account', '_sys_menu_item_title_system_account_menu', '_sys_menu_item_title_account_menu', 'javascript:void(0);', 'bx_menu_slide_inline(''#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),
  3323. ('sys_toolbar_member', 'system', 'login', '_sys_menu_item_title_system_login', '', 'page.php?i=login', '', '', 'user', '', '', 0, 1, 1, 0, 2);
  3324. -- notifications menu in account popup
  3325. 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
  3326. ('sys_account_notifications', 'system', 'dashboard', '_sys_menu_item_title_system_dashboard', '_sys_menu_item_title_dashboard', 'page.php?i=dashboard', '', '', 'tachometer-alt', '', '', 2147483646, 1, 1, 1),
  3327. ('sys_account_notifications', 'system', 'profile', '_sys_menu_item_title_system_profile', '_sys_menu_item_title_profile', '{member_url}', '', '', 'user', '', '', 2147483644, 1, 1, 2),
  3328. ('sys_account_notifications', '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),
  3329. ('sys_account_notifications', 'system', 'add-content', '_sys_menu_item_title_system_add_content', '_sys_menu_item_title_add_content', 'javascript:void(0);', 'bx_menu_slide_inline(\'#bx-sliding-menu-sys_add_content\', $(\'bx-menu-toolbar-item-add-content a\').get(0), \'site\');', '', 'plus', '', '', 2147483646, 1, 1, 4),
  3330. ('sys_account_notifications', 'system', 'studio', '_sys_menu_item_title_system_studio', '_sys_menu_item_title_studio', '{studio_url}', '', '', 'wrench', '', '', 2147483646, 1, 0, 5),
  3331. ('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, 6),
  3332. ('sys_account_notifications', 'system', 'orders', '_sys_menu_item_title_system_orders', '_sys_menu_item_title_orders', 'orders.php', '', '', 'cart-arrow-down col-green3', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"get_orders_count";s:6:"params";a:1:{i:0;s:3:"new";}s:5:"class";s:21:"TemplPaymentsServices";}', '', 2147483646, 0, 1, 7),
  3333. ('sys_account_notifications', 'system', 'logout', '_sys_menu_item_title_system_logout', '_sys_menu_item_title_logout', 'logout.php', '', '', 'sign-out-alt', '', '', 2147483646, 1, 1, 9999);
  3334. -- account settings menu
  3335. 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
  3336. ('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),
  3337. ('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),
  3338. ('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),
  3339. ('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),
  3340. ('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, 9999);
  3341. -- account settings menu more
  3342. 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
  3343. ('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);
  3344. -- account dashboard
  3345. 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
  3346. ('sys_account_dashboard', 'system', 'dashboard', '_sys_menu_item_title_system_account_dashboard', '_sys_menu_item_title_account_dashboard', 'page.php?i=dashboard', '', '', 'tachometer-alt', '', '', 2147483646, 1, 1, 1),
  3347. ('sys_account_dashboard', 'system', 'dashboard-subscriptions', '_sys_menu_item_title_system_subscriptions', '_sys_menu_item_title_subscriptions', 'subscriptions.php', '', '', 'money col-blue3', '', '', 2147483646, 1, 1, 2),
  3348. ('sys_account_dashboard', 'system', 'dashboard-orders', '_sys_menu_item_title_system_orders', '_sys_menu_item_title_orders', 'orders.php', '', '', 'cart-arrow-down col-green3', '', '', 2147483646, 1, 1, 3);
  3349. -- comment manage menu
  3350. 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
  3351. ('sys_cmts_item_manage', 'system', 'item-report', '_sys_menu_item_title_system_cmts_item_report', '', 'javascript:void(0)', '', '', '', '', 2147483647, 1, 0, 0),
  3352. ('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-alt', '', 2147483647, 1, 0, 0),
  3353. ('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);
  3354. -- comment actions menu
  3355. 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`, `editable`, `order`) VALUES
  3356. ('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)', '', '', '', '', '', 0, 2147483647, 1, 0, 1, 0),
  3357. ('sys_cmts_item_actions', 'system', 'item-reaction', '_sys_menu_item_title_system_cmts_item_reaction', '_sys_menu_item_title_cmts_item_reaction', 'javascript:void(0)', '', '', '', '', '', 0, 2147483647, 0, 0, 1, 1),
  3358. ('sys_cmts_item_actions', 'system', 'item-score', '_sys_menu_item_title_system_cmts_item_score', '_sys_menu_item_title_cmts_item_score', 'javascript:void(0)', '', '', '', '', '', 0, 2147483647, 0, 0, 1, 2),
  3359. ('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', '', '', 0, 2147483647, 1, 0, 1, 3),
  3360. ('sys_cmts_item_actions', 'system', 'item-more', '_sys_menu_item_title_system_cmts_item_more', '_sys_menu_item_title_cmts_item_more', 'javascript:void(0)', 'bx_menu_popup(''sys_cmts_item_manage'', this, {''id'':''sys_cmts_item_manage_{cmt_system}_{cmt_id}''}, {cmt_system:''{cmt_system}'', cmt_object_id:{cmt_object_id}, cmt_id:{cmt_id}});', '', 'ellipsis-h', '', 'sys_cmts_item_manage', 1, 2147483647, 1, 0, 1, 4);
  3361. -- comment meta info menu
  3362. 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`, `editable`, `order`) VALUES
  3363. ('sys_cmts_item_meta', 'system', 'author', '_sys_menu_item_title_system_sm_author', '_sys_menu_item_title_sm_author', '', '', '', '', '', '', 0, 2147483647, 1, 0, 1, 1),
  3364. ('sys_cmts_item_meta', 'system', 'date', '_sys_menu_item_title_system_sm_date', '_sys_menu_item_title_sm_date', '', '', '', '', '', '', 0, 2147483647, 1, 0, 1, 2),
  3365. ('sys_cmts_item_meta', 'system', 'membership', '_sys_menu_item_title_system_sm_membership', '_sys_menu_item_title_sm_membership', '', '', '', '', '', '', 0, 2147483647, 0, 0, 1, 3);
  3366. -- social sharing menu
  3367. 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
  3368. ('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', 'fab facebook-f', '', 2147483647, 1, 1, 1),
  3369. ('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', 'fab twitter', '', 2147483647, 1, 1, 2),
  3370. ('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', 'fab pinterest', '', 2147483647, 1, 1, 3);
  3371. -- dashboard manage tools
  3372. 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
  3373. ('sys_account_dashboard_manage_tools', 'system', 'cmts-administration', '_sys_menu_item_title_system_cmts_administration', '_sys_menu_item_title_cmts_administration', 'page.php?i=cmts-administration', '', '', 'comments', 'a:2:{s:6:"module";s:6:"system";s:6:"method";s:27:"get_menu_addon_manage_tools";}', '', 192, 1, 0, 1);
  3374. -- profile stats
  3375. 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
  3376. ('sys_profile_stats', 'system', 'profile-stats-profile', '_sys_menu_item_title_system_profile', '_sys_menu_item_title_profile', '{member_url}', '', '', 'user', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:27:"get_menu_addon_profile_edit";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', '', 2147483646, 1, 0, 0);
  3377. -- --------------------------------------------------------
  3378. CREATE TABLE IF NOT EXISTS `sys_objects_grid` (
  3379. `id` int(11) NOT NULL AUTO_INCREMENT,
  3380. `object` varchar(64) NOT NULL,
  3381. `source_type` enum('Array','Sql') NOT NULL,
  3382. `source` text NOT NULL,
  3383. `table` varchar(255) NOT NULL,
  3384. `field_id` varchar(255) NOT NULL,
  3385. `field_order` varchar(255) NOT NULL,
  3386. `field_active` varchar(255) NOT NULL,
  3387. `order_get_field` varchar(255) NOT NULL DEFAULT 'order_field',
  3388. `order_get_dir` varchar(255) NOT NULL DEFAULT 'order_dir',
  3389. `paginate_url` varchar(255) NOT NULL,
  3390. `paginate_per_page` int(11) NOT NULL DEFAULT '10',
  3391. `paginate_simple` varchar(255) DEFAULT NULL,
  3392. `paginate_get_start` varchar(255) NOT NULL,
  3393. `paginate_get_per_page` varchar(255) NOT NULL,
  3394. `filter_fields` text NOT NULL,
  3395. `filter_fields_translatable` text NOT NULL,
  3396. `filter_mode` enum('like','fulltext','auto') NOT NULL DEFAULT 'auto',
  3397. `filter_get` varchar(255) NOT NULL DEFAULT 'filter',
  3398. `sorting_fields` text NOT NULL,
  3399. `sorting_fields_translatable` text NOT NULL,
  3400. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3401. `responsive` tinyint(4) NOT NULL DEFAULT '1',
  3402. `override_class_name` varchar(255) NOT NULL,
  3403. `override_class_file` varchar(255) NOT NULL,
  3404. PRIMARY KEY (`id`),
  3405. UNIQUE KEY `object` (`object`)
  3406. );
  3407. -- GRIDS: studio
  3408. 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
  3409. ('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', ''),
  3410. ('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', ''),
  3411. ('sys_studio_acl', 'Sql', 'SELECT * FROM `sys_acl_levels` WHERE 1 ', 'sys_acl_levels', 'ID', 'Order', 'Active', '', 100, NULL, 'start', '', 'Description', 'Name', 'auto', '', '', 'BxTemplStudioPermissionsLevels', ''),
  3412. ('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', ''),
  3413. ('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', ''),
  3414. ('sys_studio_nav_sets', 'Sql', 'SELECT * FROM `sys_menu_sets` WHERE 1 ', 'sys_menu_sets', 'set_name', '', '', '', 100, NULL, 'start', '', '', 'title', 'auto', '', '', 'BxTemplStudioNavigationSets', ''),
  3415. ('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', ''),
  3416. ('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', ''),
  3417. ('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', ''),
  3418. ('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', ''),
  3419. ('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', ''),
  3420. ('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', ''),
  3421. ('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', ''),
  3422. ('sys_studio_search_forms', 'Sql', 'SELECT * FROM `sys_objects_search_extended` WHERE 1 ', 'sys_objects_search_extended', 'id', 'module,title', 'active', '', 100, NULL, 'start', '', 'module', 'title', 'like', 'module', 'title', 'BxTemplStudioFormsSearchForms', ''),
  3423. ('sys_studio_search_forms_fields', 'Sql', 'SELECT * FROM `sys_search_extended_fields` WHERE 1 AND `object`=?', 'sys_search_extended_fields', 'id', 'order', 'active', '', 100, NULL, 'start', '', 'type', 'caption', 'like', '', '', 'BxTemplStudioFormsSearchFields', ''),
  3424. ('sys_studio_labels', 'Sql', 'SELECT * FROM `sys_labels` WHERE 1 ', 'sys_labels', 'id', 'order', '', '', 100, NULL, 'start', '', 'value', '', 'like', 'value', '', 'BxTemplStudioFormsLabels', '');
  3425. CREATE TABLE IF NOT EXISTS `sys_grid_fields` (
  3426. `object` varchar(64) NOT NULL,
  3427. `name` varchar(255) NOT NULL,
  3428. `title` varchar(255) NOT NULL,
  3429. `width` varchar(16) NOT NULL,
  3430. `translatable` tinyint(4) NOT NULL DEFAULT '0',
  3431. `chars_limit` int(11) NOT NULL DEFAULT '0',
  3432. `params` text NOT NULL,
  3433. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  3434. `order` int(11) NOT NULL,
  3435. UNIQUE KEY `object_name` (`object`(64),`name`(127))
  3436. );
  3437. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  3438. ('sys_studio_lang_keys', 'checkbox', 'Select', '1%', 0, '', '', 1),
  3439. ('sys_studio_lang_keys', 'key', '_adm_pgt_txt_key', '24%', 0, '20', '', 2),
  3440. ('sys_studio_lang_keys', 'module', '_adm_pgt_txt_module', '15%', 0, '12', '', 3),
  3441. ('sys_studio_lang_keys', 'string', '_adm_pgt_txt_text', '30%', 0, '30', '', 4),
  3442. ('sys_studio_lang_keys', 'languages', '_adm_pgt_txt_languages', '10%', 0, '', '', 5),
  3443. ('sys_studio_lang_keys', 'actions', '', '20%', 0, '', '', 6),
  3444. ('sys_studio_lang_etemplates', 'NameSystem', '_adm_pgt_txt_etemplates_gl_name_system', '60%', 1, '58', '', 1),
  3445. ('sys_studio_lang_etemplates', 'Module', '_adm_pgt_txt_etemplates_gl_module', '20%', 0, '18', '', 2),
  3446. ('sys_studio_lang_etemplates', 'actions', '', '20%', 0, '', '', 3),
  3447. ('sys_studio_acl', 'Order', '', '1%', 0, '', '', 1),
  3448. ('sys_studio_acl', 'switcher', '_adm_prm_txt_enable', '5%', 0, '', '', 2),
  3449. ('sys_studio_acl', 'Icon', '_adm_prm_txt_icon', '5%', 0, '', '', 3),
  3450. ('sys_studio_acl', 'Name', '_adm_prm_txt_title', '29%', 1, '15', '', 4),
  3451. ('sys_studio_acl', 'ActionsList', '_adm_prm_txt_actions', '10%', 0, '', '', 5),
  3452. ('sys_studio_acl', 'QuotaSize', '_adm_prm_txt_storage', '10%', 0, '', '', 6),
  3453. ('sys_studio_acl', 'QuotaMaxFileSize', '_adm_prm_txt_max_file_size', '10%', 0, '', '', 7),
  3454. ('sys_studio_acl', 'QuotaNumber', '_adm_prm_txt_max_files', '10%', 0, '', '', 8),
  3455. ('sys_studio_acl', 'actions', '', '20%', 0, '', '', 9),
  3456. ('sys_studio_acl_actions', 'switcher', '_adm_prm_txt_enable', '10%', 0, '', '', 1),
  3457. ('sys_studio_acl_actions', 'Title', '_adm_prm_txt_title', '25%', 1, '25', '', 2),
  3458. ('sys_studio_acl_actions', 'Module', '_adm_prm_txt_module', '20%', 0, '18', '', 3),
  3459. ('sys_studio_acl_actions', 'Desc', '_adm_prm_txt_description', '25%', 0, '25', '', 4),
  3460. ('sys_studio_acl_actions', 'actions', '', '20%', 0, '', '', 5),
  3461. ('sys_studio_nav_menus', 'switcher', '', '10%', 0, '', '', 1),
  3462. ('sys_studio_nav_menus', 'title', '_adm_nav_txt_menus_gl_title', '17%', 0, '15', '', 2),
  3463. ('sys_studio_nav_menus', 'set_title', '_adm_nav_txt_menus_gl_set_title', '17%', 1, '15', '', 3),
  3464. ('sys_studio_nav_menus', 'items', '_adm_nav_txt_menus_gl_items', '10%', 0, '8', '', 4),
  3465. ('sys_studio_nav_menus', 'template_title', '_adm_nav_txt_menus_gl_template_title', '17%', 1, '15', '', 5),
  3466. ('sys_studio_nav_menus', 'module', '_adm_nav_txt_menus_gl_module', '12%', 0, '10', '', 6),
  3467. ('sys_studio_nav_menus', 'actions', '', '17%', 0, '', '', 7),
  3468. ('sys_studio_nav_sets', 'title', '_adm_nav_txt_sets_gl_title', '50%', 1, '48', '', 1),
  3469. ('sys_studio_nav_sets', 'module', '_adm_nav_txt_sets_gl_module', '15%', 0, '13', '', 2),
  3470. ('sys_studio_nav_sets', 'items', '_adm_nav_txt_sets_gl_items', '15%', 0, '13', '', 3),
  3471. ('sys_studio_nav_sets', 'actions', '', '20%', 0, '', '', 4),
  3472. ('sys_studio_nav_items', 'order', '', '1%', 0, '', '', 1),
  3473. ('sys_studio_nav_items', 'switcher', '', '9%', 0, '', '', 2),
  3474. ('sys_studio_nav_items', 'icon', '_adm_nav_txt_items_gl_icon', '5%', 0, '', '', 3),
  3475. ('sys_studio_nav_items', 'title_system', '_adm_nav_txt_items_gl_title_system', '23%', 1, '23', '', 4),
  3476. ('sys_studio_nav_items', 'link', '_adm_nav_txt_items_gl_link', '23%', 0, '23', '', 5),
  3477. ('sys_studio_nav_items', 'module', '_adm_nav_txt_items_gl_module', '12%', 0, '12', '', 6),
  3478. ('sys_studio_nav_items', 'visible_for_levels', '_adm_nav_txt_items_gl_visible', '10%', 0, '10', '', 7),
  3479. ('sys_studio_nav_items', 'actions', '', '17%', 0, '', '', 8),
  3480. ('sys_studio_nav_import', 'icon', '_adm_nav_txt_items_gl_icon', '10%', 0, '', '', 1),
  3481. ('sys_studio_nav_import', 'title_system', '_adm_nav_txt_items_gl_title_system', '30%', 1, '28', '', 2),
  3482. ('sys_studio_nav_import', 'link', '_adm_nav_txt_items_gl_link', '25%', 0, '23', '', 3),
  3483. ('sys_studio_nav_import', 'module', '_adm_nav_txt_items_gl_module', '15%', 0, '13', '', 4),
  3484. ('sys_studio_nav_import', 'actions', '', '20%', 0, '', '', 5),
  3485. ('sys_studio_forms', 'switcher', '', '10%', 0, '', '', 1),
  3486. ('sys_studio_forms', 'title', '_adm_form_txt_forms_gl_title', '40%', 1, '38', '', 2),
  3487. ('sys_studio_forms', 'module', '_adm_form_txt_forms_gl_module', '15%', 0, '13', '', 3),
  3488. ('sys_studio_forms', 'displays', '_adm_form_txt_forms_gl_displays', '15%', 0, '13', '', 4),
  3489. ('sys_studio_forms', 'actions', '', '20%', 0, '', '', 5),
  3490. ('sys_studio_forms_displays', 'display_title', '_adm_form_txt_displays_gl_title', '30%', 1, '48', '', 1),
  3491. ('sys_studio_forms_displays', 'module', '_adm_form_txt_displays_gl_module', '13%', 0, '11', '', 2),
  3492. ('sys_studio_forms_displays', 'form_title', '_adm_form_txt_displays_gl_form', '24%', 1, '22', '', 3),
  3493. ('sys_studio_forms_displays', 'fields', '_adm_form_txt_displays_gl_fields', '13%', 0, '11', '', 4),
  3494. ('sys_studio_forms_displays', 'actions', '', '20%', 0, '', '', 5),
  3495. ('sys_studio_forms_fields', 'order', '', '1%', 0, '', '', 1),
  3496. ('sys_studio_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  3497. ('sys_studio_forms_fields', 'type', '_adm_form_txt_fields_type', '5%', 0, '', '', 3),
  3498. ('sys_studio_forms_fields', 'caption_system', '_adm_form_txt_fields_caption_system', '40%', 1, '38', '', 4),
  3499. ('sys_studio_forms_fields', 'module', '_adm_form_txt_fields_module', '15%', 0, '13', '', 5),
  3500. ('sys_studio_forms_fields', 'visible_for_levels', '_adm_form_txt_fields_visible', '10%', 0, '10', '', 6),
  3501. ('sys_studio_forms_fields', 'actions', '', '20%', 0, '', '', 7),
  3502. ('sys_studio_forms_pre_lists', 'title', '_adm_form_txt_pre_lists_gl_title', '45%', 1, '50', '', 1),
  3503. ('sys_studio_forms_pre_lists', 'values', '_adm_form_txt_pre_lists_gl_values', '12%', 0, '10', '', 2),
  3504. ('sys_studio_forms_pre_lists', 'module', '_adm_form_txt_pre_lists_gl_module', '13%', 0, '11', '', 3),
  3505. ('sys_studio_forms_pre_lists', 'use_for_sets', '_adm_form_txt_pre_lists_gl_use_for_sets', '10%', 0, '8', '', 4),
  3506. ('sys_studio_forms_pre_lists', 'actions', '', '20%', 0, '', '', 5),
  3507. ('sys_studio_forms_pre_values', 'checkbox', '', '1%', 0, '', '', 1),
  3508. ('sys_studio_forms_pre_values', 'order', '', '1%', 0, '', '', 2),
  3509. ('sys_studio_forms_pre_values', 'LKey', '_adm_form_txt_pre_values_gl_lkey', '78%', 1, '75', '', 3),
  3510. ('sys_studio_forms_pre_values', 'actions', '', '20%', 0, '', '', 4),
  3511. ('sys_studio_search_forms', 'switcher', '', '10%', 0, '', '', 1),
  3512. ('sys_studio_search_forms', 'title', '_adm_form_txt_search_forms_title', '40%', 1, '38', '', 2),
  3513. ('sys_studio_search_forms', 'module', '_adm_form_txt_search_forms_module', '15%', 0, '13', '', 3),
  3514. ('sys_studio_search_forms', 'fields', '_adm_form_txt_search_forms_fields', '15%', 0, '13', '', 4),
  3515. ('sys_studio_search_forms', 'actions', '', '20%', 0, '', '', 5),
  3516. ('sys_studio_search_forms_fields', 'order', '', '1%', 0, '', '', 1),
  3517. ('sys_studio_search_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  3518. ('sys_studio_search_forms_fields', 'type', '_adm_form_txt_search_forms_fields_type', '15%', 0, '', '', 3),
  3519. ('sys_studio_search_forms_fields', 'caption', '_adm_form_txt_search_forms_fields_caption', '40%', 1, '38', '', 4),
  3520. ('sys_studio_search_forms_fields', 'search_type', '_adm_form_txt_search_forms_fields_search_type', '15%', 0, '', '', 5),
  3521. ('sys_studio_search_forms_fields', 'actions', '', '20%', 0, '', '', 6),
  3522. ('sys_studio_labels', 'order', '', '1%', 0, 0, '', 1),
  3523. ('sys_studio_labels', 'value', '_adm_form_txt_labels_value', '70%', 0, 38, '', 2),
  3524. ('sys_studio_labels', 'items', '_adm_form_txt_labels_items', '10%', 0, 0, '', 3),
  3525. ('sys_studio_labels', 'actions', '', '19%', 0, 0, '', 4);
  3526. CREATE TABLE IF NOT EXISTS `sys_grid_actions` (
  3527. `object` varchar(64) NOT NULL,
  3528. `type` enum('bulk','single','independent') NOT NULL,
  3529. `name` varchar(255) NOT NULL,
  3530. `title` varchar(255) NOT NULL,
  3531. `icon` varchar(255) NOT NULL,
  3532. `icon_only` tinyint(4) NOT NULL DEFAULT '0',
  3533. `confirm` tinyint(4) NOT NULL DEFAULT '1',
  3534. `order` int(11) NOT NULL,
  3535. UNIQUE KEY `object_name_type` (`object`(64),`type`,`name`(123))
  3536. );
  3537. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`) VALUES
  3538. ('sys_studio_lang_keys', 'bulk', 'delete', '_adm_pgt_btn_delete', '', 1, 1),
  3539. ('sys_studio_lang_keys', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3540. ('sys_studio_lang_keys', 'single', 'delete', '', 'remove', 1, 2),
  3541. ('sys_studio_lang_keys', 'independent', 'add', '_adm_pgt_btn_add_new_key', '', 0, 1),
  3542. ('sys_studio_lang_etemplates', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3543. ('sys_studio_acl', 'independent', 'add', '_adm_prm_btn_add_level', '', 0, 1),
  3544. ('sys_studio_acl', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3545. ('sys_studio_acl', 'single', 'delete', '', 'remove', 1, 2),
  3546. ('sys_studio_acl_actions', 'single', 'options', '', 'cog', 0, 1),
  3547. ('sys_studio_nav_menus', 'independent', 'add', '_adm_nav_btn_menus_create', '', 0, 1),
  3548. ('sys_studio_nav_menus', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3549. ('sys_studio_nav_menus', 'single', 'delete', '', 'remove', 1, 2),
  3550. ('sys_studio_nav_sets', 'independent', 'add', '_adm_nav_btn_sets_create', '', 0, 1),
  3551. ('sys_studio_nav_sets', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3552. ('sys_studio_nav_sets', 'single', 'delete', '', 'remove', 1, 2),
  3553. ('sys_studio_nav_items', 'independent', 'import', '_adm_nav_btn_items_gl_import', '', 0, 1),
  3554. ('sys_studio_nav_items', 'independent', 'add', '_adm_nav_btn_items_gl_create', '', 0, 2),
  3555. ('sys_studio_nav_items', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3556. ('sys_studio_nav_items', 'single', 'delete', '', 'remove', 1, 2),
  3557. ('sys_studio_nav_items', 'single', 'show_to', '_adm_nav_btn_items_gl_visible', '', 0, 3),
  3558. ('sys_studio_nav_import', 'single', 'import', '', 'plus', 0, 1),
  3559. ('sys_studio_nav_import', 'bulk', 'done', '_adm_nav_btn_items_done', '', 0, 1),
  3560. ('sys_studio_forms', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3561. ('sys_studio_forms_displays', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3562. ('sys_studio_forms_fields', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3563. ('sys_studio_forms_fields', 'single', 'delete', '', 'remove', 1, 2),
  3564. ('sys_studio_forms_fields', 'single', 'show_to', '_adm_form_btn_fields_visible', '', 0, 3),
  3565. ('sys_studio_forms_fields', 'independent', 'add', '_adm_form_btn_fields_create', '', 0, 1),
  3566. ('sys_studio_forms_pre_lists', 'independent', 'add', '_adm_form_btn_pre_lists_create', '', 0, 1),
  3567. ('sys_studio_forms_pre_lists', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3568. ('sys_studio_forms_pre_lists', 'single', 'delete', '', 'remove', 1, 2),
  3569. ('sys_studio_forms_pre_values', 'independent', 'add', '_adm_form_btn_pre_values_create', '', 0, 1),
  3570. ('sys_studio_forms_pre_values', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3571. ('sys_studio_forms_pre_values', 'single', 'delete', '', 'remove', 1, 2),
  3572. ('sys_studio_forms_pre_values', 'bulk', 'delete', '_adm_form_btn_pre_values_delete', '', 1, 1),
  3573. ('sys_studio_search_forms', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3574. ('sys_studio_search_forms_fields', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3575. ('sys_studio_search_forms_fields', 'independent', 'reset', '_adm_form_btn_search_forms_fields_reset', '', 0, 1),
  3576. ('sys_studio_labels', 'independent', 'back', '_adm_form_btn_labels_back', '', 0, 1),
  3577. ('sys_studio_labels', 'independent', 'add', '_adm_form_btn_labels_add', '', 0, 2),
  3578. ('sys_studio_labels', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3579. ('sys_studio_labels', 'single', 'delete', '', 'remove', 1, 2);
  3580. -- GRIDS: moderation tools
  3581. 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
  3582. ('sys_cmts_administration', 'Sql', '', '', 'cmt_id', 'cmt_time', '', '', 20, NULL, 'start', '', 'cmt_text', '', 'like', 'reports', '', 192, 'BxTemplCmtsGridAdministration', '');
  3583. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  3584. ('sys_cmts_administration', 'checkbox', '_sys_select', '2%', 0, '0', '', 1),
  3585. ('sys_cmts_administration', 'reports', '_sys_txt_reports_title', '5%', 0, '0', '', 2),
  3586. ('sys_cmts_administration', 'cmt_text', '_sys_cmts_administration_grid_column_title_adm_cmt_text', '33%', 0, '25', '', 3),
  3587. ('sys_cmts_administration', 'cmt_time', '_sys_cmts_administration_grid_column_title_adm_cmt_time', '20%', 1, '25', '', 4),
  3588. ('sys_cmts_administration', 'cmt_author_id', '_sys_cmts_administration_grid_column_title_adm_cmt_author_id', '20%', 0, '25', '', 5),
  3589. ('sys_cmts_administration', 'actions', '', '20%', 0, '', '', 6);
  3590. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  3591. ('sys_cmts_administration', 'bulk', 'delete', '_sys_cmts_administration_grid_action_title_adm_delete', '', 0, 1, 1),
  3592. ('sys_cmts_administration', 'single', 'delete', '_sys_cmts_administration_grid_action_title_adm_delete', 'remove', 1, 1, 1);
  3593. -- GRID: Storage managers
  3594. 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
  3595. ('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', ''),
  3596. ('sys_studio_strg_images', 'Sql', 'SELECT * FROM `sys_images` WHERE 1 ', 'sys_images', 'id', '', '', '', 20, NULL, 'start', '', 'file_name', '', 'auto', 'file_name,added', '', 'BxTemplStudioStoragesImages', '');
  3597. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  3598. -- Storages: Files
  3599. ('sys_studio_strg_files', 'checkbox', '', '1%', 0, '', '', 1),
  3600. ('sys_studio_strg_files', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  3601. ('sys_studio_strg_files', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  3602. ('sys_studio_strg_files', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  3603. ('sys_studio_strg_files', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  3604. ('sys_studio_strg_files', 'actions', '', '25%', 0, '', '', 6),
  3605. -- Storages: Images
  3606. ('sys_studio_strg_images', 'checkbox', '', '1%', 0, '', '', 1),
  3607. ('sys_studio_strg_images', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  3608. ('sys_studio_strg_images', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  3609. ('sys_studio_strg_images', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  3610. ('sys_studio_strg_images', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  3611. ('sys_studio_strg_images', 'actions', '', '25%', 0, '', '', 6);
  3612. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  3613. -- Storages: Files
  3614. ('sys_studio_strg_files', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  3615. ('sys_studio_strg_files', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  3616. ('sys_studio_strg_files', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 2),
  3617. ('sys_studio_strg_files', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1),
  3618. -- Storages: Images
  3619. ('sys_studio_strg_images', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  3620. ('sys_studio_strg_images', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  3621. ('sys_studio_strg_images', 'single', 'resize', '_adm_strg_btn_resize', 'compress', 1, 0, 2),
  3622. ('sys_studio_strg_images', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 3),
  3623. ('sys_studio_strg_images', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1);
  3624. -- GRID: connections
  3625. 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`, `responsive`, `override_class_name`, `override_class_file`) VALUES
  3626. ('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, 0, 'BxDolGridConnections', ''),
  3627. ('sys_grid_connections_requests', '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, 0, 'BxDolGridConnectionsRequests', ''),
  3628. ('sys_grid_subscriptions', 'Sql', 'SELECT `p`.`id`, `c`.`added` FROM `sys_profiles` AS `p` INNER JOIN `sys_accounts` AS `a` ON (`a`.`id` = `p`.`account_id`) {join_connections}', 'sys_profiles', 'id', 'c`.`added', '', '', 10, NULL, 'start', '', 'name,email', '', 'auto', '', '', 2147483647, 0, 'BxDolGridSubscriptions', ''),
  3629. ('sys_grid_subscribed_me', 'Sql', 'SELECT `p`.`id`, `c`.`added` FROM `sys_profiles` AS `p` INNER JOIN `sys_accounts` AS `a` ON (`a`.`id` = `p`.`account_id`) {join_connections}', 'sys_profiles', 'id', 'c`.`added', '', '', 10, NULL, 'start', '', 'name,email', '', 'auto', '', '', 2147483647, 0, 'BxDolGridSubscribedMe', ''),
  3630. ('sys_grid_relations', 'Sql', 'SELECT `p`.`id`, `c`.`relation`, `c`.`mutual`, `c`.`added` FROM `sys_profiles` AS `p` INNER JOIN `sys_accounts` AS `a` ON (`a`.`id` = `p`.`account_id`) {join_connections}', 'sys_profiles', 'id', 'c`.`added', '', '', 10, NULL, 'start', '', 'name,email', '', 'auto', '', '', 2147483647, 0, 'BxDolGridRelations', ''),
  3631. ('sys_grid_related_me', 'Sql', 'SELECT `p`.`id`, `c`.`relation`, `c`.`mutual`, `c`.`added` FROM `sys_profiles` AS `p` INNER JOIN `sys_accounts` AS `a` ON (`a`.`id` = `p`.`account_id`) {join_connections}', 'sys_profiles', 'id', 'c`.`added', '', '', 10, NULL, 'start', '', 'name,email', '', 'auto', '', '', 2147483647, 0, 'BxDolGridRelatedMe', '');
  3632. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `params`, `hidden_on`, `order`) VALUES
  3633. ('sys_grid_connections', 'name', '_sys_name', '40%', '', '', 1),
  3634. ('sys_grid_connections', 'info', '', '30%', '', '1', 2),
  3635. ('sys_grid_connections', 'actions', '', '30%', '', '', 3),
  3636. ('sys_grid_connections_requests', 'name', '_sys_name', '40%', '', '', 1),
  3637. ('sys_grid_connections_requests', 'info', '', '30%', '', '1', 2),
  3638. ('sys_grid_connections_requests', 'actions', '', '30%', '', '', 3),
  3639. ('sys_grid_subscriptions', 'name', '_sys_name', '70%', '', '', 1),
  3640. ('sys_grid_subscriptions', 'actions', '', '30%', '', '', 2),
  3641. ('sys_grid_subscribed_me', 'name', '_sys_name', '70%', '', '', 1),
  3642. ('sys_grid_subscribed_me', 'actions', '', '30%', '', '', 2),
  3643. ('sys_grid_relations', 'name', '_sys_name', '40%', '', '', 1),
  3644. ('sys_grid_relations', 'relation', '_sys_relation', '15%', '', '', 2),
  3645. ('sys_grid_relations', 'mutual', '_sys_status', '15%', '', '', 3),
  3646. ('sys_grid_relations', 'actions', '', '30%', '', '', 4),
  3647. ('sys_grid_related_me', 'name', '_sys_name', '40%', '', '', 1),
  3648. ('sys_grid_related_me', 'relation', '_sys_relation', '15%', '', '', 2),
  3649. ('sys_grid_related_me', 'mutual', '_sys_status', '15%', '', '', 3),
  3650. ('sys_grid_related_me', 'actions', '', '30%', '', '', 4);
  3651. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  3652. ('sys_grid_connections', 'single', 'accept', '_sys_accept', '', 0, 0, 1),
  3653. ('sys_grid_connections', 'single', 'delete', '', 'remove', 0, 1, 2),
  3654. ('sys_grid_connections', 'single', 'add_friend', '_sys_add_friend', 'plus', 0, 0, 3),
  3655. ('sys_grid_connections_requests', 'single', 'accept', '_sys_accept', '', 0, 0, 1),
  3656. ('sys_grid_connections_requests', 'single', 'delete', '', 'remove', 0, 1, 2),
  3657. ('sys_grid_subscriptions', 'single', 'subscribe', '_sys_subscribe', 'check', 0, 0, 1),
  3658. ('sys_grid_subscriptions', 'single', 'delete', '', 'remove', 0, 1, 2),
  3659. ('sys_grid_subscribed_me', 'single', 'subscribe', '_sys_subscribe', 'check', 0, 0, 1),
  3660. ('sys_grid_relations', 'single', 'delete', '_Delete', 'remove', 1, 1, 1),
  3661. ('sys_grid_related_me', 'single', 'confirm', '_sys_confirm', 'check-circle', 1, 0, 1),
  3662. ('sys_grid_related_me', 'single', 'decline', '_sys_decline', 'times-circle', 1, 1, 2),
  3663. ('sys_grid_related_me', 'single', 'add', '_sys_add_relation', 'plus-circle', 1, 0, 3);
  3664. -- --------------------------------------------------------
  3665. CREATE TABLE IF NOT EXISTS `sys_objects_connection` (
  3666. `id` int(11) NOT NULL AUTO_INCREMENT,
  3667. `object` varchar(64) NOT NULL,
  3668. `table` varchar(255) NOT NULL,
  3669. `type` enum('one-way','mutual') NOT NULL,
  3670. `override_class_name` varchar(255) NOT NULL,
  3671. `override_class_file` varchar(255) NOT NULL,
  3672. PRIMARY KEY (`id`),
  3673. UNIQUE KEY `object` (`object`)
  3674. );
  3675. INSERT INTO `sys_objects_connection` (`object`, `table`, `type`, `override_class_name`, `override_class_file`) VALUES
  3676. ('sys_profiles_friends', 'sys_profiles_conn_friends', 'mutual', '', ''),
  3677. ('sys_profiles_subscriptions', 'sys_profiles_conn_subscriptions', 'one-way', '', ''),
  3678. ('sys_profiles_relations', 'sys_profiles_conn_relations', 'mutual', 'BxDolRelation', '');
  3679. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_relations` (
  3680. `id` int(11) NOT NULL AUTO_INCREMENT,
  3681. `initiator` int(11) NOT NULL DEFAULT '0',
  3682. `content` int(11) NOT NULL DEFAULT '0',
  3683. `relation` int(11) NOT NULL DEFAULT '0',
  3684. `mutual` tinyint(4) NOT NULL DEFAULT '0',
  3685. `added` int(11) unsigned NOT NULL DEFAULT '0',
  3686. PRIMARY KEY (`id`),
  3687. UNIQUE KEY `initiator` (`initiator`,`content`),
  3688. KEY `content` (`content`)
  3689. );
  3690. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_subscriptions` (
  3691. `id` int(11) NOT NULL AUTO_INCREMENT,
  3692. `initiator` int(11) NOT NULL,
  3693. `content` int(11) NOT NULL,
  3694. `added` int(10) unsigned NOT NULL,
  3695. PRIMARY KEY (`id`),
  3696. UNIQUE KEY `initiator` (`initiator`,`content`),
  3697. KEY `content` (`content`)
  3698. );
  3699. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_friends` (
  3700. `id` int(11) NOT NULL AUTO_INCREMENT,
  3701. `initiator` int(11) NOT NULL,
  3702. `content` int(11) NOT NULL,
  3703. `mutual` tinyint(4) NOT NULL,
  3704. `added` int(10) unsigned NOT NULL,
  3705. PRIMARY KEY (`id`),
  3706. UNIQUE KEY `initiator` (`initiator`,`content`),
  3707. KEY `content` (`content`)
  3708. );
  3709. -- --------------------------------------------------------
  3710. CREATE TABLE IF NOT EXISTS `sys_objects_transcoder` (
  3711. `id` int(11) NOT NULL AUTO_INCREMENT,
  3712. `object` varchar(64) NOT NULL,
  3713. `storage_object` varchar(64) NOT NULL,
  3714. `source_type` enum('Folder','Storage','Proxy') NOT NULL,
  3715. `source_params` text NOT NULL,
  3716. `private` enum('auto','yes','no') NOT NULL,
  3717. `atime_tracking` int(11) NOT NULL,
  3718. `atime_pruning` int(11) NOT NULL,
  3719. `ts` int(11) NOT NULL DEFAULT '0',
  3720. `override_class_name` varchar(255) NOT NULL,
  3721. `override_class_file` varchar(255) NOT NULL,
  3722. PRIMARY KEY (`id`),
  3723. UNIQUE KEY `object` (`object`)
  3724. );
  3725. 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
  3726. ('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', '', ''),
  3727. ('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', '', ''),
  3728. ('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', '', ''),
  3729. ('sys_icon_favicon', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  3730. ('sys_cover', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  3731. ('sys_cover_unit_profile', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  3732. ('sys_cover_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  3733. ('sys_builder_page_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  3734. ('sys_builder_page_embed', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  3735. ('sys_cmts_images_preview', 'sys_cmts_images_preview', 'Storage', 'a:1:{s:6:"object";s:15:"sys_cmts_images";}', 'no', '1', '2592000', '0', '', ''),
  3736. ('sys_custom_images', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:17:"sys_images_custom";}', 'no', '1', '2592000', '0', '', '');
  3737. CREATE TABLE IF NOT EXISTS `sys_transcoder_images_files` (
  3738. `transcoder_object` varchar(64) NOT NULL,
  3739. `file_id` int(11) NOT NULL,
  3740. `handler` varchar(255) NOT NULL,
  3741. `atime` int(11) NOT NULL,
  3742. `data` text NOT NULL,
  3743. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  3744. KEY `atime` (`atime`),
  3745. KEY `file_id` (`file_id`)
  3746. );
  3747. CREATE TABLE IF NOT EXISTS `sys_transcoder_videos_files` (
  3748. `transcoder_object` varchar(64) NOT NULL,
  3749. `file_id` int(11) NOT NULL,
  3750. `handler` varchar(255) NOT NULL,
  3751. `atime` int(11) NOT NULL,
  3752. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  3753. KEY `atime` (`atime`),
  3754. KEY `file_id` (`file_id`)
  3755. );
  3756. CREATE TABLE IF NOT EXISTS `sys_transcoder_audio_files` (
  3757. `transcoder_object` varchar(64) NOT NULL,
  3758. `file_id` int(11) NOT NULL,
  3759. `handler` varchar(255) NOT NULL,
  3760. `atime` int(11) NOT NULL,
  3761. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  3762. KEY `atime` (`atime`),
  3763. KEY `file_id` (`file_id`)
  3764. );
  3765. CREATE TABLE IF NOT EXISTS `sys_transcoder_filters` (
  3766. `transcoder_object` varchar(64) NOT NULL,
  3767. `filter` varchar(32) NOT NULL,
  3768. `filter_params` text NOT NULL,
  3769. `order` int(11) NOT NULL DEFAULT '0',
  3770. KEY `transcoder_object` (`transcoder_object`)
  3771. );
  3772. INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
  3773. ('sys_image_resize', 'ResizeVar', '', '0'),
  3774. ('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'),
  3775. ('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'),
  3776. ('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'),
  3777. ('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'),
  3778. ('sys_cover_unit_profile', 'Resize', 'a:3:{s:1:"w";s:3:"640";s:1:"h";s:3:"240";s:10:"force_type";s:3:"png";}', '0'),
  3779. ('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'),
  3780. ('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'),
  3781. ('sys_builder_page_embed', 'ResizeVar', '', '0'),
  3782. ('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'),
  3783. ('sys_custom_images', 'ResizeVar', '', '0');
  3784. CREATE TABLE IF NOT EXISTS `sys_transcoder_queue` (
  3785. `id` int(11) NOT NULL AUTO_INCREMENT,
  3786. `transcoder_object` varchar(64) NOT NULL,
  3787. `profile_id` int(10) unsigned NOT NULL,
  3788. `file_url_source` varchar(255) NOT NULL,
  3789. `file_id_source` varchar(255) NOT NULL,
  3790. `file_url_result` varchar(255) NOT NULL,
  3791. `file_ext_result` varchar(255) NOT NULL,
  3792. `file_id_result` int(11) NOT NULL,
  3793. `server` varchar(255) NOT NULL,
  3794. `status` enum('pending','processing','complete','failed','delete') NOT NULL,
  3795. `added` int(11) NOT NULL,
  3796. `changed` int(11) NOT NULL,
  3797. `log` text NOT NULL,
  3798. PRIMARY KEY (`id`),
  3799. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`file_id_source`(127))
  3800. );
  3801. CREATE TABLE `sys_transcoder_queue_files` (
  3802. `id` int(11) NOT NULL AUTO_INCREMENT,
  3803. `profile_id` int(10) unsigned NOT NULL,
  3804. `remote_id` varchar(128) NOT NULL,
  3805. `path` varchar(255) NOT NULL,
  3806. `file_name` varchar(255) NOT NULL,
  3807. `mime_type` varchar(128) NOT NULL,
  3808. `ext` varchar(32) NOT NULL,
  3809. `size` int(11) NOT NULL,
  3810. `added` int(11) NOT NULL,
  3811. `modified` int(11) NOT NULL,
  3812. `private` int(11) NOT NULL,
  3813. PRIMARY KEY (`id`),
  3814. UNIQUE KEY `remote_id` (`remote_id`)
  3815. );
  3816. -- --------------------------------------------------------
  3817. CREATE TABLE IF NOT EXISTS `sys_objects_page` (
  3818. `id` int(11) NOT NULL AUTO_INCREMENT,
  3819. `object` varchar(64) NOT NULL,
  3820. `uri` varchar(255) NOT NULL,
  3821. `title_system` varchar(255) NOT NULL,
  3822. `title` varchar(255) NOT NULL,
  3823. `module` varchar(32) NOT NULL,
  3824. `cover` tinyint(4) NOT NULL DEFAULT '1',
  3825. `cover_image` int(11) NOT NULL DEFAULT '0',
  3826. `type_id` int(11) NOT NULL DEFAULT '1',
  3827. `layout_id` int(11) NOT NULL,
  3828. `submenu` varchar(64) NOT NULL DEFAULT '',
  3829. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3830. `visible_for_levels_editable` tinyint(4) NOT NULL DEFAULT '1',
  3831. `url` varchar(255) NOT NULL,
  3832. `meta_description` text NOT NULL,
  3833. `meta_keywords` text NOT NULL,
  3834. `meta_robots` varchar(255) NOT NULL,
  3835. `cache_lifetime` int(11) NOT NULL DEFAULT '0',
  3836. `cache_editable` tinyint(4) NOT NULL DEFAULT '1',
  3837. `deletable` tinyint(1) NOT NULL,
  3838. `override_class_name` varchar(255) NOT NULL,
  3839. `override_class_file` varchar(255) NOT NULL,
  3840. PRIMARY KEY (`id`),
  3841. UNIQUE KEY `object` (`object`),
  3842. UNIQUE KEY `uri` (`uri`(191))
  3843. );
  3844. INSERT INTO `sys_objects_page` (`object`, `uri`, `title_system`, `title`, `module`, `layout_id`, `submenu`, `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
  3845. ('sys_home', 'home', '_sys_page_title_system_home', '_sys_page_title_home', 'system', 5, 'sys_homepage_submenu', 2147483647, 1, '', '', '', '', 0, 1, 0, 'BxTemplPageHome', ''),
  3846. ('sys_about', 'about', '_sys_page_title_system_about', '_sys_page_title_about', 'system', 5, '', 2147483647, 1, 'page.php?i=about', '', '', '', 0, 1, 0, '', ''),
  3847. ('sys_terms', 'terms', '_sys_page_title_system_terms', '_sys_page_title_terms', 'system', 5, '', 2147483647, 1, 'page.php?i=terms', '', '', '', 0, 1, 0, '', ''),
  3848. ('sys_privacy', 'privacy', '_sys_page_title_system_privacy', '_sys_page_title_privacy', 'system', 5, '', 2147483647, 1, 'page.php?i=privacy', '', '', '', 0, 1, 0, '', ''),
  3849. ('sys_explore', 'explore', '_sys_page_title_sys_explore', '_sys_page_title_explore', 'system', 5, 'sys_homepage_submenu', 2147483647, 1, 'page.php?i=explore', '', '', '', 0, 1, 0, 'BxTemplPageHome', ''),
  3850. ('sys_updates', 'updates', '_sys_page_title_sys_updates', '_sys_page_title_updates', 'system', 5, 'sys_homepage_submenu', 2147483647, 1, 'page.php?i=updates', '', '', '', 0, 1, 0, 'BxTemplPageHome', ''),
  3851. ('sys_trends', 'trends', '_sys_page_title_sys_trends', '_sys_page_title_trends', 'system', 5, 'sys_homepage_submenu', 2147483647, 1, 'page.php?i=trends', '', '', '', 0, 1, 0, 'BxTemplPageHome', ''),
  3852. ('sys_dashboard', 'dashboard', '_sys_page_title_system_dashboard', '_sys_page_title_dashboard', 'system', 12, '', 2147483646, 1, 'page.php?i=dashboard', '', '', '', 0, 1, 0, 'BxTemplPageDashboard', ''),
  3853. ('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, '', ''),
  3854. ('sys_login', 'login', '_sys_page_title_system_login', '_sys_page_title_login', 'system', 5, '', 2147483647, 1, 'page.php?i=login', '', '', '', 0, 1, 0, '', ''),
  3855. ('sys_login_step2', 'login-step2', '_sys_page_title_system_login_step2', '_sys_page_title_login_step2', 'system', 5, '', 2147483647, 1, 'page.php?i=login-step2', '', '', '', 0, 1, 0, '', ''),
  3856. ('sys_login_step3', 'login-step3', '_sys_page_title_system_login_step3', '_sys_page_title_login_step3', 'system', 5, '', 2147483647, 1, 'page.php?i=login-step3', '', '', '', 0, 1, 0, '', ''),
  3857. ('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, '', ''),
  3858. ('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, '', ''),
  3859. ('sys_confirm_phone', 'confirm-phone', '_sys_page_title_system_confirm_phone', '_sys_page_title_confirm_phone', 'system', 5, '', 2147483647, 1, 'page.php?i=confirm-phone', '', '', '', 0, 1, 0, '', ''),
  3860. ('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', ''),
  3861. ('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', ''),
  3862. ('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', ''),
  3863. ('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', ''),
  3864. ('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', ''),
  3865. ('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, '', ''),
  3866. ('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, '', ''),
  3867. ('sys_std_dashboard', '', '_sys_page_title_system_studio_dashboard', '_sys_page_title_studio_dashboard', 'system', 4, '', 2147483647, 1, '', '', '', '', 0, 1, 0, '', ''),
  3868. ('sys_cmts_administration' ,'cmts-administration', '_sys_page_title_system_cmts_administration', '_sys_page_title_cmts_administration', 'system', 5, '', 192, 1, 'page.php?i=cmts-administration', '', '', '', 0, 1, 0, '', '');
  3869. CREATE TABLE IF NOT EXISTS `sys_pages_types` (
  3870. `id` int(11) NOT NULL AUTO_INCREMENT,
  3871. `title` varchar(255) NOT NULL,
  3872. `template` varchar(255) NOT NULL,
  3873. `order` int(11) NOT NULL,
  3874. PRIMARY KEY (`id`)
  3875. );
  3876. INSERT INTO `sys_pages_types` (`id`, `title`, `template`, `order`) VALUES
  3877. (1, '_sys_page_type_default', 'default.html', 1),
  3878. (2, '_sys_page_type_default_wo_hf', 'page_2.html', 2);
  3879. CREATE TABLE IF NOT EXISTS `sys_pages_layouts` (
  3880. `id` int(11) NOT NULL AUTO_INCREMENT,
  3881. `name` varchar(64) NOT NULL,
  3882. `icon` varchar(255) NOT NULL,
  3883. `title` varchar(255) NOT NULL,
  3884. `template` varchar(255) NOT NULL,
  3885. `cells_number` int(11) NOT NULL,
  3886. PRIMARY KEY (`id`),
  3887. UNIQUE KEY `name` (`name`)
  3888. );
  3889. INSERT INTO `sys_pages_layouts` (`id`, `name`, `icon`, `title`, `template`, `cells_number`) VALUES
  3890. (1, 'bar_left', 'layout_bar_left.png', '_sys_layout_bar_left', 'layout_bar_left.html', 2),
  3891. (2, 'bar_right', 'layout_bar_right.png', '_sys_layout_bar_right', 'layout_bar_right.html', 2),
  3892. (3, '3_columns', 'layout_3_columns.png', '_sys_layout_3_columns', 'layout_3_columns.html', 3),
  3893. (4, '2_columns', 'layout_2_columns.png', '_sys_layout_2_columns', 'layout_2_columns.html', 2),
  3894. (5, '1_column', 'layout_1_column.png', '_sys_layout_1_column', 'layout_1_column.html', 1),
  3895. (6, 'top_area_bar_left', 'layout_top_area_bar_left.png', '_sys_layout_top_area_bar_left', 'layout_top_area_bar_left.html', 3),
  3896. (7, 'top_area_bar_right', 'layout_top_area_bar_right.png', '_sys_layout_top_area_bar_right', 'layout_top_area_bar_right.html', 3),
  3897. (8, 'top_area_3_columns', 'layout_top_area_3_columns.png', '_sys_layout_top_area_3_columns', 'layout_top_area_3_columns.html', 4),
  3898. (9, 'top_area_2_columns', 'layout_top_area_2_columns.png', '_sys_layout_top_area_2_columns', 'layout_top_area_2_columns.html', 3),
  3899. (10, 'topbottom_area_2_columns', 'layout_topbottom_area_2_columns.png', '_sys_layout_topbottom_area_2_columns', 'layout_topbottom_area_2_columns.html', 4),
  3900. (11, 'bottom_area_2_columns', 'layout_bottom_area_2_columns.png', '_sys_layout_bottom_area_2_columns', 'layout_bottom_area_2_columns.html', 3),
  3901. (12, 'topbottom_area_bar_right', 'layout_topbottom_area_bar_right.png', '_sys_layout_topbottom_area_bar_right', 'layout_topbottom_area_bar_right.html', 4),
  3902. (13, 'topbottom_area_bar_left', 'layout_topbottom_area_bar_left.png', '_sys_layout_topbottom_area_bar_left', 'layout_topbottom_area_bar_left.html', 4),
  3903. (14, 'bar_content_bar', 'layout_bar_content_bar.png', '_sys_layout_bar_content_bar', 'layout_bar_content_bar.html', 3),
  3904. (15, 'top_area_bar_content_bar', 'layout_top_area_bar_content_bar.png', '_sys_layout_top_area_bar_content_bar', 'layout_top_area_bar_content_bar.html', 4);
  3905. CREATE TABLE IF NOT EXISTS `sys_pages_design_boxes` (
  3906. `id` int(11) NOT NULL,
  3907. `title` varchar(255) NOT NULL,
  3908. `template` varchar(255) NOT NULL,
  3909. `order` int(11) NOT NULL,
  3910. PRIMARY KEY (`id`)
  3911. );
  3912. INSERT INTO `sys_pages_design_boxes` (`id`, `title`, `template`, `order`) VALUES
  3913. (0, '_sys_designbox_0', 'designbox_0.html', '2'),
  3914. (1, '_sys_designbox_1', 'designbox_1.html', '8'),
  3915. (2, '_sys_designbox_2', 'designbox_2.html', '1'),
  3916. (3, '_sys_designbox_3', 'designbox_3.html', '4'),
  3917. (4, '_sys_designbox_4', 'designbox_4.html', '6'),
  3918. (10, '_sys_designbox_10', 'designbox_10.html', '3'),
  3919. (11, '_sys_designbox_11', 'designbox_11.html', '9'),
  3920. (13, '_sys_designbox_13', 'designbox_13.html', '5'),
  3921. (14, '_sys_designbox_14', 'designbox_14.html', '7');
  3922. CREATE TABLE IF NOT EXISTS `sys_pages_blocks` (
  3923. `id` int(11) NOT NULL AUTO_INCREMENT,
  3924. `object` varchar(64) NOT NULL,
  3925. `cell_id` int(11) NOT NULL DEFAULT '1',
  3926. `module` varchar(32) NOT NULL,
  3927. `title_system` varchar(255) NOT NULL,
  3928. `title` varchar(255) NOT NULL,
  3929. `designbox_id` int(11) NOT NULL DEFAULT '11',
  3930. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3931. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  3932. `type` enum('raw','html','lang','image','rss','menu','service') NOT NULL DEFAULT 'raw',
  3933. `content` text NOT NULL,
  3934. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3935. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  3936. `active` tinyint(4) NOT NULL DEFAULT '1',
  3937. `order` int(11) NOT NULL,
  3938. PRIMARY KEY (`id`)
  3939. );
  3940. -- skeleton blocks
  3941. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  3942. ('', 0, 'skeletons', '_sys_block_type_raw', 11, 2147483647, 'raw', '', 0, 1, 1, 0),
  3943. ('', 0, 'skeletons', '_sys_block_type_html', 11, 2147483647, 'html', '', 0, 1, 1, 0),
  3944. ('', 0, 'skeletons', '_sys_block_type_rss', 11, 2147483647, 'rss', '', 0, 1, 1, 0),
  3945. ('', 0, 'skeletons', '_sys_block_type_image', 11, 2147483647, 'image', '', 0, 1, 1, 0),
  3946. ('', 0, 'skeletons', '_sys_block_type_lang', 11, 2147483647, 'lang', '', 0, 1, 1, 0),
  3947. ('', 0, 'skeletons', '_sys_block_type_menu', 11, 2147483647, 'menu', '', 0, 1, 1, 0),
  3948. ('', 0, 'skeletons', '_sys_block_type_service', 11, 2147483647, 'service', '', 0, 0, 1, 0);
  3949. -- service blocks
  3950. SET @iBlockOrder = IFNULL((SELECT `order` FROM `sys_pages_blocks` WHERE `object` = '' AND `cell_id` = 0 ORDER BY `order` DESC LIMIT 1), 0);
  3951. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  3952. ('', 0, 'system', '_sys_page_block_title_sys_create_post_public', '_sys_page_block_title_create_post_public', 3, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"get_create_post_form";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', 0, 1, 1, @iBlockOrder + 1),
  3953. ('', 0, 'system', '_sys_page_block_title_sys_create_post_context', '_sys_page_block_title_create_post_context', 3, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"get_create_post_form";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:13:"TemplServices";}', 0, 1, 1, @iBlockOrder + 2);
  3954. -- content blocks
  3955. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  3956. ('sys_home', 1, 'system', '', '_sys_page_block_title_homepage_splash', 0, 2147483647, 'raw', '<style>\r\n /*--- Splash ---*/\r\n .bx-page {\r\n position: relative;\r\n }\r\n .bx-splash {\r\n position: relative;\r\n display: -webkit-flex;\r\n display: flex;\r\n -webkit-align-items: center;\r\n align-items: center;\r\n min-height: 100vh;\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 .bx-spl-line {\r\n position: relative;\r\n display: -webkit-flex;\r\n display: flex;\r\n -webkit-align-items: stretch;\r\n align-items: stretch;\r\n }\r\n .bx-media-phone .bx-spl-line {\r\n -webkit-flex-direction: column;\r\n flex-direction: column;\r\n }\r\n .bx-spl-cell {\r\n position: relative;\r\n }\r\n .bx-media-phone .bx-spl-cell {\r\n -webkit-basis: 100% !important; \r\n flex-basis: 100% !important;\r\n width: 100% !important;\r\n }\r\n .bx-spl-line.bx-spl-l1 .bx-spl-cell {\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-line.bx-spl-l1 .bx-spl-cell.bx-spl-c1 {\r\n -webkit-flex: 1 1 70%; \r\n flex: 1 1 70%;\r\n width: 70%;\r\n }\r\n .bx-media-phone .bx-spl-line.bx-spl-l1 .bx-spl-cell.bx-spl-c1 {\r\n text-align: center;\r\n }\r\n .bx-spl-line.bx-spl-l1 .bx-spl-cell.bx-spl-c2 {\r\n -webkit-flex: 0 0 30%; \r\n flex: 0 1 30%;\r\n -webkit-justify-content: center;\r\n justify-content: center;\r\n width: 30%;\r\n }\r\n .bx-spl-line.bx-spl-l1 .bx-spl-image {\r\n max-width: 100%;\r\n }\r\n .bx-spl-line.bx-spl-l2 .bx-spl-cell {\r\n -webkit-flex: 1 1 33%; \r\n flex: 1 1 33%;\r\n width: 33%;\r\n }\r\n .bx-media-phone .bx-spl-line.bx-spl-l2 .bx-spl-cell {\r\n text-align: center;\r\n }\r\n .bx-spl-line.bx-spl-l2 .bx-spl-cicon {\r\n position: relative;\r\n display: -webkit-flex;\r\n display: flex;\r\n -webkit-align-items: flex-start;\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n -webkit-justify-content: flex-start;\r\n }\r\n .bx-media-phone .bx-spl-line.bx-spl-l2 .bx-spl-cicon {\r\n justify-content: center;\r\n -webkit-justify-content: center;\r\n }\r\n .bx-spl-line.bx-spl-l2 .bx-spl-cicon .animation {\r\n width: 4.25rem;\r\n height: 4.25rem;\r\n }\r\n</style>\r\n<div class=\"bx-page bx-def-color-bg-page\">\r\n <div class=\"bx-splash\">\r\n <div class=\"bx-splash-cnt bx-def-page-width bx-def-centered bx-def-padding-leftright\">\r\n <div class=\"bx-spl-preload\">\r\n <img src=\"<bx_image_url:spl-image-main.svg />\">\r\n </div>\r\n <div class=\"bx-spl-line bx-spl-l1\">\r\n <div class=\"bx-spl-cell bx-spl-c1\">\r\n <div class=\"bx-spl-ccnt bx-def-padding\">\r\n <div class=\"bx-spl-title bx-def-font-h1 bx-def-font-semibold\"><bx_text:_sys_txt_splash_title /></div>\r\n <div class=\"bx-spl-slogan bx-def-padding-sec-top bx-def-padding-bottom bx-def-font-grayed\"><bx_text:_sys_txt_splash_slogan /></div>\r\n <div class=\"bx-spl-image bx-def-padding-top\">\r\n <img class=\"bx-spl-image\" src=\"<bx_image_url:spl-image-main.svg />\" />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"bx-spl-cell bx-spl-c2 bx-hide-when-logged-in\">\r\n <div class=\"bx-spl-ccnt bx-def-padding\">__join_form_in_box__</div>\r\n </div>\r\n </div>\r\n <div class=\"bx-spl-line bx-spl-l2 bx-def-padding\">\r\n <div class=\"bx-spl-cell bx-spl-c1\">\r\n <div class=\"bx-spl-ccnt bx-def-padding\">\r\n <div class=\"bx-spl-cicon connect\"><div class=\"animation\"></div></div>\r\n <div class=\"bx-spl-ctitle bx-def-padding-sec-topbottom bx-def-font-h2\"><bx_text:_sys_txt_splash_connect /></div>\r\n <div class=\"bx-spl-ctext bx-def-font-grayed\"><bx_text:_sys_txt_splash_connect_text /></div>\r\n </div>\r\n </div>\r\n <div class=\"bx-spl-cell bx-spl-c2\">\r\n <div class=\"bx-spl-ccnt bx-def-padding\">\r\n <div class=\"bx-spl-cicon share\"><div class=\"animation\"></div></div>\r\n <div class=\"bx-spl-ctitle bx-def-padding-sec-topbottom bx-def-font-h2\"><bx_text:_sys_txt_splash_share /></div>\r\n <div class=\"bx-spl-ctext bx-def-font-grayed\"><bx_text:_sys_txt_splash_share_text /></div>\r\n </div>\r\n </div>\r\n <div class=\"bx-spl-cell bx-spl-c3\">\r\n <div class=\"bx-spl-ccnt bx-def-padding\">\r\n <div class=\"bx-spl-cicon create\"><div class=\"animation\"></div></div>\r\n <div class=\"bx-spl-ctitle bx-def-padding-sec-topbottom bx-def-font-h2\"><bx_text:_sys_txt_splash_create /></div>\r\n <div class=\"bx-spl-ctext bx-def-font-grayed\"><bx_text:_sys_txt_splash_create_text /></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<script>\r\n var animConnect = bodymovin.loadAnimation({\r\n container: $(\'.bx-spl-cicon.connect .animation\').get(0),\r\n path: \'<bx_image_url:spl-icon-connect.json />\',\r\n renderer: \'svg\',\r\n loop: true,\r\n autoplay: true,\r\n });\r\n var animShare = bodymovin.loadAnimation({\r\n container: $(\'.bx-spl-cicon.share .animation\').get(0),\r\n path: \'<bx_image_url:spl-icon-share.json />\',\r\n renderer: \'svg\',\r\n loop: true,\r\n autoplay: true,\r\n });\r\n var animCreate = bodymovin.loadAnimation({\r\n container: $(\'.bx-spl-cicon.create .animation\').get(0),\r\n path: \'<bx_image_url:spl-icon-create.json />\',\r\n renderer: \'svg\',\r\n loop: true,\r\n autoplay: true,\r\n });\r\n</script>', 0, 1, 0, 0),
  3957. ('sys_home', 1, 'system', '', '_sys_page_block_title_homepage_menu', 3, 2147483647, 'menu', 'sys_homepage', 0, 1, 1, 0),
  3958. ('sys_about', 1, 'system', '', '_sys_page_block_title_about', 11, 2147483647, 'lang', '_sys_page_lang_block_about', 0, 1, 1, 1),
  3959. ('sys_terms', 1, 'system', '', '_sys_page_block_title_terms', 11, 2147483647, 'lang', '_sys_page_lang_block_terms', 0, 1, 1, 1),
  3960. ('sys_privacy', 1, 'system', '', '_sys_page_block_title_privacy', 11, 2147483647, 'lang', '_sys_page_lang_block_privacy', 0, 1, 1, 1),
  3961. ('sys_dashboard', 3, 'system', '', '_sys_page_block_title_profile_stats', 3, 2147483644, '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, 1),
  3962. ('sys_dashboard', 3, '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, 0, 0),
  3963. ('sys_dashboard', 1, 'system', '', '_sys_page_block_title_manage_tools', 11, 192, 'menu', 'sys_account_dashboard_manage_tools', 0, 1, 1, 3),
  3964. ('sys_dashboard', 3, 'system', '', '_sys_page_block_title_chart_growth', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"get_chart_growth";s:6:"params";a:0:{}s:5:"class";s:18:"TemplChartServices";}', 0, 1, 1, 0),
  3965. ('sys_dashboard', 2, 'system', '', '_sys_page_block_title_chart_stats', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:15:"get_chart_stats";s:6:"params";a:0:{}s:5:"class";s:18:"TemplChartServices";}', 0, 1, 1, 3),
  3966. ('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, 1),
  3967. ('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, 1),
  3968. ('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, 1, 0),
  3969. ('sys_login_step2', 1, 'system', '_sys_page_block_system_title_login_step2', '_sys_page_block_title_login_step2', 11, 2147483647, 'service', 'a:3:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:16:\"login_form_step2\";s:5:\"class\";s:17:\"TemplServiceLogin\";}', 0, 1, 1, 1),
  3970. ('sys_login_step3', 1, 'system', '_sys_page_block_system_title_login_step3', '_sys_page_block_title_login_step3', 11, 2147483647, 'service', 'a:3:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:16:\"login_form_step3\";s:5:\"class\";s:17:\"TemplServiceLogin\";}', 0, 1, 1, 1),
  3971. ('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, 1),
  3972. ('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, 1),
  3973. ('sys_confirm_phone', 1, 'system', '', '_sys_page_block_title_confirm_phone', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:18:"phone_confirmation";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1, 1),
  3974. ('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, 1),
  3975. ('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, 1),
  3976. ('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, 1),
  3977. ('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, 1),
  3978. ('sys_account_profile_switcher', 1, 'system', '', '_sys_page_block_title_account_profile_create', 11, 2147483647, 'menu', 'sys_add_profile', 0, 1, 1, 1),
  3979. ('sys_account_profile_switcher', 1, 'system', '', '_sys_page_block_title_account_profile_switcher', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:24:"account_profile_switcher";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 2),
  3980. ('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, 1),
  3981. ('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, 1),
  3982. ('sys_cmts_administration', 1, 'system', '_sys_page_block_title_system_cmts_administration', '_sys_page_block_title_cmts_administration', 11, 192, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:12:"manage_tools";s:6:"params";a:1:{i:0;s:14:"administration";}s:5:"class";s:17:"TemplCmtsServices";}', 0, 1, 1, 1),
  3983. -- studio dashboard blocks
  3984. ('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, 1),
  3985. ('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, 1, 2),
  3986. ('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, 1),
  3987. ('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, 1, 2);
  3988. -- --------------------------------------------------------
  3989. CREATE TABLE `sys_labels` (
  3990. `id` int(11) NOT NULL AUTO_INCREMENT,
  3991. `module` varchar(32) NOT NULL,
  3992. `parent` int(11) NOT NULL DEFAULT 0,
  3993. `level` int(11) NOT NULL DEFAULT 0,
  3994. `order` int(11) NOT NULL DEFAULT 0,
  3995. `value` varchar(128) NOT NULL,
  3996. PRIMARY KEY (id),
  3997. UNIQUE KEY `value` (`value`)
  3998. );
  3999. -- --------------------------------------------------------
  4000. CREATE TABLE `sys_objects_metatags` (
  4001. `id` int(11) NOT NULL AUTO_INCREMENT,
  4002. `object` varchar(64) NOT NULL,
  4003. `table_keywords` varchar(255) NOT NULL,
  4004. `table_locations` varchar(255) NOT NULL,
  4005. `table_mentions` varchar(255) NOT NULL,
  4006. `override_class_name` varchar(255) NOT NULL,
  4007. `override_class_file` varchar(255) NOT NULL,
  4008. PRIMARY KEY (`id`),
  4009. UNIQUE KEY `object` (`object`)
  4010. );
  4011. INSERT INTO `sys_objects_metatags` (`object`, `table_keywords`, `table_locations`, `table_mentions`, `override_class_name`, `override_class_file`) VALUES
  4012. ('sys_cmts', 'sys_cmts_meta_keywords', '', 'sys_cmts_meta_mentions', '', '');
  4013. -- --------------------------------------------------------
  4014. CREATE TABLE `sys_objects_category` (
  4015. `id` int(11) NOT NULL AUTO_INCREMENT,
  4016. `object` varchar(64) NOT NULL,
  4017. `search_object` varchar(64) NOT NULL,
  4018. `form_object` varchar(64) NOT NULL,
  4019. `list_name` varchar(255) NOT NULL,
  4020. `table` varchar(255) NOT NULL,
  4021. `field` varchar(255) NOT NULL,
  4022. `join` varchar(255) NOT NULL,
  4023. `where` varchar(255) NOT NULL,
  4024. `override_class_name` varchar(255) NOT NULL,
  4025. `override_class_file` varchar(255) NOT NULL,
  4026. PRIMARY KEY (`id`),
  4027. UNIQUE KEY `object` (`object`),
  4028. UNIQUE KEY `form_object` (`form_object`(64),`list_name`(127))
  4029. );
  4030. -- --------------------------------------------------------
  4031. --
  4032. -- Table structure for table `sys_objects_live_updates`
  4033. --
  4034. CREATE TABLE `sys_objects_live_updates` (
  4035. `id` int(11) unsigned NOT NULL auto_increment,
  4036. `name` varchar(50) NOT NULL default '',
  4037. `frequency` tinyint(4) NOT NULL DEFAULT '1',
  4038. `service_call` text NOT NULL default '',
  4039. `active` tinyint(4) NOT NULL DEFAULT '1',
  4040. PRIMARY KEY (`id`),
  4041. UNIQUE KEY `name` (`name`)
  4042. );
  4043. INSERT INTO `sys_objects_live_updates`(`name`, `frequency`, `service_call`, `active`) VALUES
  4044. ('sys_payments_cart', 1, 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:21:"get_live_updates_cart";s:6:"params";a:3:{i:0;a:2:{s:11:"menu_object";s:18:"sys_toolbar_member";s:9:"menu_item";s:7:"account";}i:1;a:2:{s:11:"menu_object";s:25:"sys_account_notifications";s:9:"menu_item";s:4:"cart";}i:2;s:7:"{count}";}s:5:"class";s:21:"TemplPaymentsServices";}', 1),
  4045. ('sys_payments_orders', 1, 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:23:"get_live_updates_orders";s:6:"params";a:3:{i:0;a:2:{s:11:"menu_object";s:18:"sys_toolbar_member";s:9:"menu_item";s:7:"account";}i:1;a:2:{s:11:"menu_object";s:25:"sys_account_notifications";s:9:"menu_item";s:6:"orders";}i:2;s:7:"{count}";}s:5:"class";s:21:"TemplPaymentsServices";}', 1);
  4046. -- --------------------------------------------------------
  4047. --
  4048. -- Table structure for table `sys_objects_payments`
  4049. --
  4050. CREATE TABLE IF NOT EXISTS `sys_objects_payments` (
  4051. `id` int(11) NOT NULL AUTO_INCREMENT,
  4052. `object` varchar(32) NOT NULL,
  4053. `title` varchar(255) NOT NULL,
  4054. `uri` varchar(32) NOT NULL default '',
  4055. PRIMARY KEY (`id`),
  4056. UNIQUE KEY `object` (`object`),
  4057. UNIQUE KEY `uri` (`uri`)
  4058. );
  4059. -- --------------------------------------------------------
  4060. --
  4061. -- Table structure for table `sys_preloader`
  4062. --
  4063. CREATE TABLE IF NOT EXISTS `sys_preloader` (
  4064. `id` int(11) NOT NULL AUTO_INCREMENT,
  4065. `module` varchar(32) NOT NULL,
  4066. `type` varchar(16) NOT NULL,
  4067. `content` varchar(255) NOT NULL,
  4068. `active` tinyint(4) NOT NULL DEFAULT '1',
  4069. `order` int(11) unsigned NOT NULL default '0',
  4070. PRIMARY KEY (`id`)
  4071. );
  4072. INSERT INTO `sys_preloader`(`module`, `type`, `content`, `active`, `order`) VALUES
  4073. ('system', 'css_system', '{dir_plugins_public}marka/|marka.min.css', 1, 1),
  4074. ('system', 'css_system', '{dir_plugins_public}at.js/css/|jquery.atwho.min.css', 1, 2),
  4075. ('system', 'css_system', '{dir_plugins_public}prism/|prism.css', 1, 3),
  4076. ('system', 'css_system', 'common.css', 1, 10),
  4077. ('system', 'css_system', 'default.less', 1, 11),
  4078. ('system', 'css_system', 'general.css', 1, 12),
  4079. ('system', 'css_system', 'icons.css', 1, 13),
  4080. ('system', 'css_system', 'colors.css', 1, 14),
  4081. ('system', 'css_system', 'forms.css', 1, 15),
  4082. ('system', 'css_system', 'media-desktop.css', 1, 20),
  4083. ('system', 'css_system', 'media-tablet.css', 1, 21),
  4084. ('system', 'css_system', 'media-phone.css', 1, 22),
  4085. ('system', 'css_system', 'media-print.css', 1, 23),
  4086. ('system', 'css_system', 'cmts.css', 1, 30),
  4087. ('system', 'css_system', 'favorite.css', 1, 31),
  4088. ('system', 'css_system', 'feature.css', 1, 32),
  4089. ('system', 'css_system', 'report.css', 1, 33),
  4090. ('system', 'css_system', 'score.css', 1, 34),
  4091. ('system', 'css_system', 'view.css', 1, 35),
  4092. ('system', 'css_system', 'vote.css', 1, 36),
  4093. ('system', 'css_system', '{dir_plugins_public}spin.js/|spin.css', 1, 37),
  4094. ('system', 'js_system', 'jquery/jquery.min.js', 1, 1),
  4095. ('system', 'js_system', 'jquery/jquery-migrate.min.js', 1, 2),
  4096. ('system', 'js_system', 'jquery-ui/jquery.ui.position.min.js', 1, 3),
  4097. ('system', 'js_system', 'jquery.easing.js', 1, 4),
  4098. ('system', 'js_system', 'jquery.cookie.min.js', 1, 5),
  4099. ('system', 'js_system', 'jquery.form.min.js', 1, 6),
  4100. ('system', 'js_system', 'spin.js/spin.js', 1, 7),
  4101. ('system', 'js_system', 'moment-with-locales.min.js', 1, 8),
  4102. ('system', 'js_system', 'marka/marka.min.js', 1, 9),
  4103. ('system', 'js_system', 'headroom.min.js', 1, 10),
  4104. ('system', 'js_system', 'at.js/js/jquery.atwho.min.js', 1, 11),
  4105. ('system', 'js_system', 'prism/prism.js', 1, 12),
  4106. ('system', 'js_system', 'functions.js', 1, 20),
  4107. ('system', 'js_system', 'jquery.webForms.js', 1, 21),
  4108. ('system', 'js_system', 'jquery.dolPopup.js', 1, 22),
  4109. ('system', 'js_system', 'jquery.dolConverLinks.js', 1, 23),
  4110. ('system', 'js_system', 'jquery.anim.js', 1, 24),
  4111. ('system', 'js_system', 'BxDolCmts.js', 1, 30),
  4112. ('system', 'js_system', 'BxDolFavorite.js', 1, 31),
  4113. ('system', 'js_system', 'BxDolFeature.js', 1, 32),
  4114. ('system', 'js_system', 'BxDolReport.js', 1, 33),
  4115. ('system', 'js_system', 'BxDolScore.js', 1, 34),
  4116. ('system', 'js_system', 'BxDolView.js', 1, 35),
  4117. ('system', 'js_system', 'BxDolVote.js', 1, 36),
  4118. ('system', 'js_system', 'BxDolVoteLikes.js', 1, 37),
  4119. ('system', 'js_system', 'BxDolVoteReactions.js', 1, 38),
  4120. ('system', 'js_system', 'BxDolVoteStars.js', 1, 39),
  4121. ('system', 'js_system', 'BxDolCmtsReviews.js', 1, 40),
  4122. ('system', 'js_translation', '_Are_you_sure', 1, 1),
  4123. ('system', 'js_translation', '_error occured', 1, 2),
  4124. ('system', 'js_translation', '_sys_loading', 1, 3),
  4125. ('system', 'js_translation', '_copyright', 1, 4);
  4126. -- --------------------------------------------------------
  4127. --
  4128. -- Table structure for table `sys_std_pages`
  4129. --
  4130. CREATE TABLE `sys_std_pages` (
  4131. `id` int(11) unsigned NOT NULL auto_increment,
  4132. `index` int(11) unsigned NOT NULL default '0',
  4133. `name` varchar(64) NOT NULL default '',
  4134. `header` varchar(255) NOT NULL default '',
  4135. `caption` varchar(255) NOT NULL default '',
  4136. `icon` varchar(255) NOT NULL default '',
  4137. PRIMARY KEY (`id`),
  4138. UNIQUE KEY `name` (`name`)
  4139. );
  4140. -- --------------------------------------------------------
  4141. --
  4142. -- Table structure for table `sys_std_widgets`
  4143. --
  4144. CREATE TABLE `sys_std_widgets` (
  4145. `id` int(11) unsigned NOT NULL auto_increment,
  4146. `page_id` varchar(255) NOT NULL default '',
  4147. `module` varchar(32) NOT NULL default '',
  4148. `url` varchar(255) NOT NULL default '',
  4149. `click` text NOT NULL default '',
  4150. `icon` varchar(255) NOT NULL default '',
  4151. `caption` varchar(255) NOT NULL default '',
  4152. `cnt_notices` text NOT NULL default '',
  4153. `cnt_actions` text NOT NULL default '',
  4154. `bookmark` tinyint(4) unsigned NOT NULL default '0',
  4155. PRIMARY KEY (`ID`),
  4156. UNIQUE KEY `widget-page` (`id`, `page_id`(187))
  4157. );
  4158. -- --------------------------------------------------------
  4159. --
  4160. -- Table structure for table `sys_std_pages_widgets`
  4161. --
  4162. CREATE TABLE `sys_std_pages_widgets` (
  4163. `id` int(11) unsigned NOT NULL auto_increment,
  4164. `page_id` int(11) unsigned NOT NULL default '0',
  4165. `widget_id` int(11) unsigned NOT NULL default '0',
  4166. `order` int(11) unsigned NOT NULL default '0',
  4167. PRIMARY KEY (`id`),
  4168. UNIQUE KEY `wid_pag` (`widget_id`, `page_id`)
  4169. );
  4170. --
  4171. -- Dumping data for table `sys_std_pages`
  4172. --
  4173. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4174. (0, 'home', '_adm_page_cpt_home', '_adm_page_cpt_home', '');
  4175. SET @iIdHome = LAST_INSERT_ID();
  4176. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4177. (4, 'dashboard', '_adm_page_cpt_dashboard', '_adm_page_cpt_dashboard', 'wi-dashboard.svg');
  4178. SET @iIdDashboard = LAST_INSERT_ID();
  4179. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4180. (3, 'settings', '_adm_page_cpt_settings', '_adm_page_cpt_settings', 'wi-settings.svg');
  4181. SET @iIdSettings = LAST_INSERT_ID();
  4182. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4183. (3, 'store', '_adm_page_cpt_store', '_adm_page_cpt_store', 'wi-store.svg');
  4184. SET @iIdStore = LAST_INSERT_ID();
  4185. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4186. (3, 'designer', '_adm_page_cpt_designer', '_adm_page_cpt_designer', 'wi-designer.svg');
  4187. SET @iIdDesigner = LAST_INSERT_ID();
  4188. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4189. (3, 'polyglot', '_adm_page_cpt_polyglot', '_adm_page_cpt_polyglot', 'wi-polyglot.svg');
  4190. SET @iIdPolyglot = LAST_INSERT_ID();
  4191. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4192. (3, 'builder_pages', '_adm_page_cpt_builder_pages', '_adm_page_cpt_builder_pages', 'wi-bld-pages.svg');
  4193. SET @iIdBuilderPages = LAST_INSERT_ID();
  4194. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4195. (3, 'builder_menus', '_adm_page_cpt_builder_menus', '_adm_page_cpt_builder_menus', 'wi-bld-navigation.svg');
  4196. SET @iIdBuilderMenus = LAST_INSERT_ID();
  4197. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4198. (3, 'builder_forms', '_adm_page_cpt_builder_forms', '_adm_page_cpt_builder_forms', 'wi-bld-forms.svg');
  4199. SET @iIdBuilderForms = LAST_INSERT_ID();
  4200. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4201. (3, 'builder_permissions', '_adm_page_cpt_builder_permissions', '_adm_page_cpt_builder_permissions', 'wi-bld-permissions.svg');
  4202. SET @iIdBuilderPermissions = LAST_INSERT_ID();
  4203. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4204. (3, 'storages', '_adm_page_cpt_storages', '_adm_page_cpt_storages', 'wi-storages.svg');
  4205. SET @iIdManagerStorages = LAST_INSERT_ID();
  4206. --
  4207. -- Dumping data for table `sys_std_widgets` and `sys_std_pages_widgets`
  4208. -- Home Page
  4209. --
  4210. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4211. (@iIdSettings, 'system', '{url_studio}settings.php', '', 'wi-settings.svg', '_adm_wgt_cpt_settings', '', '');
  4212. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 3);
  4213. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4214. (@iIdStore, 'system', '{url_studio}store.php', '', 'wi-store.svg', '_adm_wgt_cpt_store', '', '');
  4215. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 2);
  4216. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4217. (@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";}', '');
  4218. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  4219. --
  4220. -- Templates Page
  4221. --
  4222. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4223. (@iIdDesigner, 'system', '{url_studio}designer.php', '', 'wi-designer.svg', '_adm_wgt_cpt_designer', '', '');
  4224. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 6);
  4225. --
  4226. -- Languages Page
  4227. --
  4228. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4229. (@iIdPolyglot, 'system', '{url_studio}polyglot.php', '', 'wi-polyglot.svg', '_adm_wgt_cpt_polyglot', '', '');
  4230. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 5);
  4231. --
  4232. -- Builders Page
  4233. --
  4234. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4235. (@iIdBuilderPages, 'system', '{url_studio}builder_page.php', '', 'wi-bld-pages.svg', '_adm_wgt_cpt_builder_pages', '', '');
  4236. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 7);
  4237. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4238. (@iIdBuilderMenus, 'system', '{url_studio}builder_menu.php', '', 'wi-bld-navigation.svg', '_adm_wgt_cpt_builder_menus', '', '');
  4239. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 8);
  4240. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4241. (@iIdBuilderForms, 'system', '{url_studio}builder_forms.php', '', 'wi-bld-forms.svg', '_adm_wgt_cpt_builder_forms', '', '');
  4242. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 9);
  4243. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4244. (@iIdBuilderPermissions, 'system', '{url_studio}builder_permissions.php', '', 'wi-bld-permissions.svg', '_adm_wgt_cpt_builder_permissions', '', '');
  4245. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 10);
  4246. --
  4247. -- Storages Page
  4248. --
  4249. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4250. (@iIdManagerStorages, 'system', '{url_studio}storages.php', '', 'wi-storages.svg', '_adm_wgt_cpt_storages', '', '');
  4251. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 4);