system.sql 357 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907
  1. --
  2. -- Database
  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_audit`, `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_privacy_groups_custom`, `sys_privacy_groups_custom_members`, `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_inputs_privacy`, `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_content_placeholders`, `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_images_editor`, `sys_images_editor_resized`, `sys_rewrite_rules`, `sys_preloader`, `sys_std_roles`, `sys_std_roles_actions`, `sys_std_roles_actions2roles`, `sys_std_roles_members`, `sys_std_pages`, `sys_std_widgets`, `sys_std_widgets_bookmarks`, `sys_std_pages_widgets`, `sys_categories`, `sys_categories2objects`, `sys_objects_logs`, `sys_objects_location_field`, `sys_objects_location_map`, `sys_objects_wiki`, `sys_pages_wiki_blocks`, `sys_badges`, `sys_badges2objects`, `sys_form_fields_reaction`, `sys_form_fields_reaction_track`, `sys_form_fields_votes`, `sys_form_fields_votes_track`, `sys_form_fields_ids`;
  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_quill', 'Quill', 'snow', 'BxTemplEditorQuill', '');
  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. ('sys_oembed', 'Oembed', 'BxTemplEmbedOembed', '');
  55. -- --------------------------------------------------------
  56. CREATE TABLE IF NOT EXISTS `sys_objects_file_handlers` (
  57. `id` int(11) NOT NULL AUTO_INCREMENT,
  58. `object` varchar(64) NOT NULL,
  59. `title` varchar(255) NOT NULL,
  60. `preg_ext` text NOT NULL,
  61. `active` tinyint(4) NOT NULL,
  62. `order` int(11) NOT NULL,
  63. `override_class_name` varchar(255) NOT NULL,
  64. `override_class_file` varchar(255) NOT NULL,
  65. PRIMARY KEY (`id`),
  66. UNIQUE KEY `object` (`object`)
  67. );
  68. INSERT INTO `sys_objects_file_handlers` (`object`, `title`, `preg_ext`, `active`, `order`, `override_class_name`, `override_class_file`) VALUES
  69. ('sys_ms_viewer', '_sys_file_handlers_ms_viewer', '/\\.(doc|docx|xls|xlsx|ppt|pptx)$/i', 1, 1, 'BxTemplFileHandlerMsViewer', ''),
  70. ('sys_google_viewer', '_sys_file_handlers_google_viewer', '/\\.(pdf|doc|docx|xls|xlsx|ppt|pptx|ai|svg|ps|tif|tiff)$/i', 1, 2, 'BxTemplFileHandlerGoogleViewer', ''),
  71. ('sys_images_viewer', '_sys_file_handlers_images_viewer', '/\\.(jpg|jpeg|png|gif|webp)$/i', 1, 3, 'BxTemplFileHandlerImagesViewer', ''),
  72. ('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', '');
  73. -- --------------------------------------------------------
  74. CREATE TABLE `sys_objects_captcha` (
  75. `id` int(11) NOT NULL AUTO_INCREMENT,
  76. `object` varchar(64) NOT NULL,
  77. `title` varchar(255) NOT NULL,
  78. `override_class_name` varchar(255) NOT NULL,
  79. `override_class_file` varchar(255) NOT NULL,
  80. PRIMARY KEY (`id`)
  81. );
  82. INSERT INTO `sys_objects_captcha` (`object`, `title`, `override_class_name`, `override_class_file`) VALUES
  83. ('sys_recaptcha_new', 'reCAPTCHA', 'BxTemplCaptchaReCAPTCHANew', ''),
  84. ('sys_recaptcha_invisible', 'reCAPTCHA Invisible', 'BxTemplCaptchaReCAPTCHAInvisible', ''),
  85. ('sys_hcaptcha', 'hCaptcha', 'BxTemplCaptchaHCaptcha', '');
  86. -- --------------------------------------------------------
  87. CREATE TABLE `sys_objects_auths` (
  88. `ID` int(10) unsigned NOT NULL auto_increment,
  89. `Name` varchar(64) NOT NULL,
  90. `Title` varchar(128) NOT NULL,
  91. `Link` varchar(255) NOT NULL,
  92. `OnClick` varchar(255) NOT NULL,
  93. `Icon` varchar(64) NOT NULL,
  94. `Style` varchar(255) NOT NULL,
  95. PRIMARY KEY (`ID`)
  96. );
  97. -- --------------------------------------------------------
  98. --
  99. -- Table structure for table `sys_objects_cmts`
  100. --
  101. CREATE TABLE `sys_objects_cmts` (
  102. `ID` int(10) unsigned NOT NULL auto_increment,
  103. `Name` varchar(64) NOT NULL,
  104. `Module` varchar(32) NOT NULL,
  105. `Table` varchar(50) NOT NULL,
  106. `CharsPostMin` int(10) NOT NULL,
  107. `CharsPostMax` int(10) NOT NULL,
  108. `CharsDisplayMax` int(10) NOT NULL,
  109. `Html` smallint(1) NOT NULL,
  110. `PerView` smallint(6) NOT NULL,
  111. `PerViewReplies` smallint(6) NOT NULL,
  112. `BrowseType` varchar(50) NOT NULL,
  113. `IsBrowseSwitch` smallint(1) NOT NULL,
  114. `PostFormPosition` varchar(50) NOT NULL,
  115. `NumberOfLevels` smallint(6) NOT NULL,
  116. `IsDisplaySwitch` smallint(1) NOT NULL,
  117. `IsRatable` smallint(1) NOT NULL,
  118. `ViewingThreshold` smallint(6) NOT NULL,
  119. `IsOn` smallint(1) NOT NULL,
  120. `RootStylePrefix` varchar(16) NOT NULL default 'cmt',
  121. `BaseUrl` varchar(256) NOT NULL,
  122. `ObjectVote` varchar(64) NOT NULL default '',
  123. `ObjectReaction` varchar(64) NOT NULL default '',
  124. `ObjectScore` varchar(64) NOT NULL default '',
  125. `ObjectReport` varchar(64) NOT NULL default '',
  126. `TriggerTable` varchar(32) NOT NULL,
  127. `TriggerFieldId` varchar(32) NOT NULL,
  128. `TriggerFieldAuthor` varchar(32) NOT NULL,
  129. `TriggerFieldTitle` varchar(32) NOT NULL,
  130. `TriggerFieldComments` varchar(32) NOT NULL,
  131. `ClassName` varchar(32) NOT NULL,
  132. `ClassFile` varchar(256) NOT NULL,
  133. PRIMARY KEY (`ID`)
  134. );
  135. -- --------------------------------------------------------
  136. CREATE TABLE `sys_queue_push` (
  137. `id` int(11) NOT NULL auto_increment,
  138. `profile_id` int(11) NOT NULL default '0',
  139. `message` text NOT NULL default '',
  140. PRIMARY KEY (`id`)
  141. );
  142. -- --------------------------------------------------------
  143. CREATE TABLE `sys_queue_email` (
  144. `id` int(11) NOT NULL auto_increment,
  145. `email` varchar(64) NOT NULL default '',
  146. `subject` varchar(255) NOT NULL default '',
  147. `body` text NOT NULL default '',
  148. `params` text NOT NULL default '',
  149. PRIMARY KEY (`id`)
  150. );
  151. -- --------------------------------------------------------
  152. CREATE TABLE IF NOT EXISTS `sys_email_templates` (
  153. `ID` int(11) unsigned NOT NULL auto_increment,
  154. `Module` varchar(32) NOT NULL,
  155. `NameSystem` varchar(255) NOT NULL,
  156. `Name` varchar(255) NOT NULL,
  157. `Subject` varchar(255) NOT NULL,
  158. `Body` varchar(255) NOT NULL,
  159. PRIMARY KEY (`ID`)
  160. );
  161. INSERT INTO `sys_email_templates` (`Module`, `NameSystem`, `Name`, `Subject`, `Body`) VALUES
  162. ('system', '_sys_et_txt_name_system_admin_email', 't_AdminEmail', '_sys_et_txt_subject_admin_email', '_sys_et_txt_body_admin_email'),
  163. ('system', '_sys_et_txt_name_system_confirmation', 't_Confirmation', '_sys_et_txt_subject_confirmation', '_sys_et_txt_body_confirmation'),
  164. ('system', '_sys_et_txt_name_system_forgot', 't_Forgot', '_sys_et_txt_subject_forgot', '_sys_et_txt_body_forgot'),
  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. ('system', '_sys_et_txt_name_account_change_status_activate', 't_ChangeStatusAccountActivate', '_sys_et_txt_subject_account_change_status_activate', '_sys_et_txt_body_account_change_status_activate'),
  181. ('system', '_sys_et_txt_name_account_change_status_suspended', 't_ChangeStatusAccountSuspend', '_sys_et_txt_subject_account_change_status_suspended', '_sys_et_txt_body_account_change_status_suspended'),
  182. ('system', '_sys_et_txt_name_manage_approve', 't_ManageApprove', '_sys_et_txt_subject_manage_approve', '_sys_et_txt_body_manage_approve');
  183. -- --------------------------------------------------------
  184. --
  185. -- Table structure for table `sys_options`
  186. --
  187. CREATE TABLE `sys_options` (
  188. `id` int(11) unsigned NOT NULL auto_increment,
  189. `category_id` int(11) unsigned NOT NULL default '0',
  190. `name` varchar(64) NOT NULL default '',
  191. `caption` varchar(255) NOT NULL default '',
  192. `value` mediumtext NOT NULL,
  193. `type` enum('value','digit','text','checkbox','select','combobox','file','image','list','rlist','rgb','rgba','datetime') NOT NULL default 'digit',
  194. `extra` text NOT NULL default '',
  195. `check` varchar(32) NOT NULL,
  196. `check_params` text NOT NULL,
  197. `check_error` varchar(255) NOT NULL default '',
  198. `order` int(11) default '0',
  199. PRIMARY KEY (`id`),
  200. UNIQUE KEY `name`(`name`),
  201. KEY `category_id` (`category_id`)
  202. );
  203. --
  204. -- Table structure for table `sys_options_categories`
  205. --
  206. CREATE TABLE `sys_options_categories` (
  207. `id` int(11) unsigned NOT NULL auto_increment,
  208. `type_id` int(11) unsigned NOT NULL default '0',
  209. `name` varchar(64) NOT NULL default '',
  210. `caption` varchar(64) NOT NULL default '',
  211. `hidden` tinyint(1) NOT NULL default '0',
  212. `order` int(11) default '0',
  213. PRIMARY KEY (`id`),
  214. UNIQUE KEY `name`(`name`)
  215. );
  216. --
  217. -- Table structure for table `sys_options_types`
  218. --
  219. CREATE TABLE `sys_options_types` (
  220. `id` int(11) unsigned NOT NULL auto_increment,
  221. `group` varchar(64) NOT NULL default '',
  222. `name` varchar(64) NOT NULL default '',
  223. `caption` varchar(64) NOT NULL default '',
  224. `icon` varchar(255) NOT NULL default '',
  225. `order` int(11) default '0',
  226. PRIMARY KEY (`id`),
  227. UNIQUE KEY `name`(`name`)
  228. );
  229. --
  230. -- Dumping data for tables `sys_options_types`
  231. --
  232. INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES ('system', 'system', '_adm_stg_cpt_type_system', 'cogs', 1);
  233. SET @iTypeId = LAST_INSERT_ID();
  234. --
  235. -- CATEGORY (HIDDEN): Hidden
  236. --
  237. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'hidden', '_adm_stg_cpt_category_hidden', 1, 0);
  238. SET @iCategoryId = LAST_INSERT_ID();
  239. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_params`, `check_error`, `order`) VALUES
  240. (@iCategoryId, 'sys_cron_time', '_adm_stg_cpt_option_sys_cron_time', '0', 'digit', '', '', '', '', 2),
  241. (@iCategoryId, 'sys_install_time', '_adm_stg_cpt_option_sys_install_time', '0', 'digit', '', '', '', '', 3),
  242. (@iCategoryId, 'sys_upgrade_channel', '_adm_stg_cpt_option_sys_upgrade_channel', 'stable', 'select', 'stable,beta', '', '', '', 4),
  243. (@iCategoryId, 'sys_revision', '_adm_stg_cpt_option_sys_revision', '0', 'digit', '', '', '', '', 5),
  244. (@iCategoryId, 'sys_eq_time', '_adm_stg_cpt_option_sys_eq_time', '0', 'digit', '', '', '', '', 6),
  245. (@iCategoryId, 'sys_push_queue_time', '_adm_stg_cpt_option_sys_push_queue_time', '0', 'digit', '', '', '', '', 7),
  246. (@iCategoryId, 'sys_ftp_login', '_adm_stg_cpt_option_sys_ftp_login', '', 'digit', '', '', '', '', 10),
  247. (@iCategoryId, 'sys_ftp_password', '_adm_stg_cpt_option_sys_ftp_password', '', 'digit', '', '', '', '', 11),
  248. (@iCategoryId, 'sys_ftp_dir', '_adm_stg_cpt_option_sys_ftp_dir', '', 'digit', '', '', '', '', 12),
  249. (@iCategoryId, 'sys_template_cache_image_enable', '_adm_stg_cpt_option_sys_template_cache_image_enable', '', 'checkbox', '', '', '', '', 20),
  250. (@iCategoryId, 'sys_template_cache_image_max_size', '_adm_stg_cpt_option_sys_template_cache_image_max_size', '5', 'digit', '', 'Segment', 'a:2:{s:3:"min";i:1;s:3:"max";i:10;}', '_adm_stg_cpt_option_sys_template_cache_image_max_size_err', 21),
  251. (@iCategoryId, 'sys_email_attachable_email_templates', '_adm_stg_cpt_option_sys_email_attachable_email_templates', '', 'digit', '', '', '', '', 31),
  252. (@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),
  253. (@iCategoryId, 'sys_redirect_after_email_confirmation', '_adm_stg_cpt_option_sys_redirect_after_email_confirmation', '', 'digit', '', '', '', '', 41),
  254. (@iCategoryId, 'sys_editor_default', '_adm_stg_cpt_option_sys_editor_default', 'sys_quill', 'digit', '', '', '', '', 50),
  255. (@iCategoryId, 'sys_captcha_default', '_adm_stg_cpt_option_sys_captcha_default', 'sys_recaptcha_new', 'select', 'sys_recaptcha_new,sys_recaptcha_invisible,sys_hcaptcha', '', '', '', 51),
  256. (@iCategoryId, 'sys_player_default', '_adm_stg_cpt_option_sys_player_default', 'sys_html5', 'digit', '', '', '', '', 55),
  257. (@iCategoryId, 'sys_player_default_format', '_adm_stg_cpt_option_sys_player_default_quality', 'sd', 'select', 'sd,hd', '', '', '', 56),
  258. (@iCategoryId, 'sys_live_updates_interval', '_adm_stg_cpt_option_sys_live_updates_interval', '10000', 'digit', '', '', '', '', 60),
  259. (@iCategoryId, 'sys_quill_toolbar_mini', '_adm_stg_cpt_option_sys_quill_toolbar_mini', '[\'bold\',\'italic\',\'underline\',\'clean\'],[{\'list\':\'ordered\'}, {\'list\':\'bullet\'}],[{ \'align\':\'\'},{\'align\':\'center\'},{\'align\':\'right\'}],[\'blockquote\'],[\'link\',\'image\']', 'digit', '', '', '', '', 70),
  260. (@iCategoryId, 'sys_quill_toolbar_standard', '_adm_stg_cpt_option_sys_quill_toolbar_standard', '[\'bold\',\'italic\',\'underline\',\'clean\'],[{ \'header\': [1, 2, 3, 4, 5, 6, false] }],[{\'list\':\'ordered\'}, {\'list\':\'bullet\'},{\'indent\': \'-1\'},{\'indent\': \'+1\'}],[{ \'align\':\'\'},{\'align\':\'center\'},{\'align\':\'right\'},{\'align\':\'justify\'}],[\'blockquote\'],[\'link\',\'image\']', 'digit', '', '', '', '', 73),
  261. (@iCategoryId, 'sys_quill_toolbar_full', '_adm_stg_cpt_option_sys_quill_toolbar_full', '[{ \'header\': [1, 2, 3, 4, 5, 6, false] }],[\'bold\',\'italic\',\'underline\',\'clean\'],
  262. [{ \'align\': [] }],[{\'list\':\'ordered\'}, {\'list\':\'bullet\'},{\'indent\': \'-1\'},{\'indent\': \'+1\'}],[\'blockquote\'],[{ \'color\': [] }, { \'background\': [] }],[{ \'direction\': \'rtl\' }],[{ \'script\': \'sub\'}, { \'script\': \'super\' }],[\'link\',\'image\',\'code-block\']', 'digit', '', '', '', '', 76),
  263. (@iCategoryId, 'sys_search_keyword_min_len', '_adm_stg_cpt_option_sys_search_keyword_min_len', '1', 'digit', '', '', '', '', 80),
  264. (@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),
  265. (@iCategoryId, 'enable_gd', '_adm_stg_cpt_option_enable_gd', 'on', 'checkbox', '', '', '', '', 100),
  266. (@iCategoryId, 'sys_transcoder_queue_storage', '_adm_stg_cpt_option_sys_transcoder_queue_storage', '', 'checkbox', '', '', '', '', 105),
  267. (@iCategoryId, 'sys_session_lifetime_in_min', '_adm_stg_cpt_option_sys_session_lifetime_in_min', '129600', 'digit', '', '', '', '', 110),
  268. (@iCategoryId, 'sys_account_activation_letter', '_adm_stg_cpt_option_sys_account_activation_letter', '', 'checkbox', '', '', '', '', 120),
  269. (@iCategoryId, 'sys_logs_storage_default', '_adm_stg_cpt_option_sys_logs_storage_default', 'Folder', 'select', 'Folder,PHPLog,STDErr', '', '', '', 130),
  270. (@iCategoryId, 'sys_default_curl_timeout', '_adm_stg_cpt_option_sys_default_curl_timeout', '300', 'digit', '', '', '', '', 140),
  271. (@iCategoryId, 'curl_ssl_allow_untrusted', '_adm_stg_cpt_option_sys_ssl_allow_untrusted', '', 'checkbox', '', '', '', '', 145);
  272. --
  273. -- CATEGORY (HIDDEN): System
  274. --
  275. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'system', '_adm_stg_cpt_category_system', 1, 1);
  276. SET @iCategoryId = LAST_INSERT_ID();
  277. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  278. (@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),
  279. (@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),
  280. (@iCategoryId, 'sys_site_logo', '', '0', 'digit', '', '', '', 20),
  281. (@iCategoryId, 'sys_site_logo_alt', '_adm_dsg_txt_alt_text', '0', 'text', '', '', '', 21),
  282. (@iCategoryId, 'sys_site_icon', '', '0', 'digit', '', '', '', 22),
  283. (@iCategoryId, 'sys_site_logo_width', '_adm_stg_cpt_option_sys_site_logo_width', '240', 'digit', '', '', '', 23),
  284. (@iCategoryId, 'sys_site_logo_height', '_adm_stg_cpt_option_sys_site_logo_height', '48', 'digit', '', '', '', 24),
  285. (@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),
  286. (@iCategoryId, 'sys_site_splash_enabled', '', '', 'checkbox', '', '', '', 26),
  287. (@iCategoryId, 'sys_site_cover_common', '', '0', 'digit', '', '', '', 27),
  288. (@iCategoryId, 'sys_unit_cover_profile', '', '0', 'digit', '', '', '', 28),
  289. (@iCategoryId, 'sys_site_cover_disabled', '', '', 'checkbox', '', '', '', 29);
  290. --
  291. -- CATEGORY (HIDDEN): Languages
  292. --
  293. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'languages', '_adm_stg_cpt_category_languages', 1, 2);
  294. SET @iCategoryId = LAST_INSERT_ID();
  295. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  296. (@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),
  297. (@iCategoryId, 'lang_subst_from_en', '_adm_stg_cpt_option_lang_subst_from_en', 'on', 'checkbox', '', '', '', 2),
  298. (@iCategoryId, 'sys_format_date', '_adm_stg_cpt_option_sys_format_date', 'D MMM YYYY', 'digit', '', '', '', 3),
  299. (@iCategoryId, 'sys_format_time', '_adm_stg_cpt_option_sys_format_time', 'HH:mm', 'digit', '', '', '', 4),
  300. (@iCategoryId, 'sys_format_datetime', '_adm_stg_cpt_option_sys_format_datetime', 'D MMM YYYY h:mm:ss a', 'digit', '', '', '', 5),
  301. (@iCategoryId, 'sys_format_timeago', '_adm_stg_cpt_option_sys_format_timeago', 432000, 'digit', '', '', '', 6);
  302. --
  303. -- CATEGORY (HIDDEN): Templates
  304. --
  305. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'templates', '_adm_stg_cpt_category_templates', 1, 3);
  306. SET @iCategoryId = LAST_INSERT_ID();
  307. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  308. (@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);
  309. --
  310. -- CATEGORY: Cache
  311. --
  312. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'cache', '_adm_stg_cpt_category_cache', 0, 4);
  313. SET @iCategoryId = LAST_INSERT_ID();
  314. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  315. (@iCategoryId, 'sys_db_cache_enable', '_adm_stg_cpt_option_sys_db_cache_enable', 'on', 'checkbox', '', '', '', 10),
  316. (@iCategoryId, 'sys_db_cache_engine', '_adm_stg_cpt_option_sys_db_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 11),
  317. (@iCategoryId, 'sys_cache_memcache_host', '_adm_stg_cpt_option_sys_cache_memcache_host', '', 'digit', '', '', '', 20),
  318. (@iCategoryId, 'sys_cache_memcache_port', '_adm_stg_cpt_option_sys_cache_memcache_port', '11211', 'digit', '', '', '', 21),
  319. (@iCategoryId, 'sys_page_cache_enable', '_adm_stg_cpt_option_sys_page_cache_enable', 'on', 'checkbox', '', '', '', 30),
  320. (@iCategoryId, 'sys_page_cache_engine', '_adm_stg_cpt_option_sys_page_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 31),
  321. (@iCategoryId, 'sys_pb_cache_enable', '_adm_stg_cpt_option_sys_pb_cache_enable', 'on', 'checkbox', '', '', '', 40),
  322. (@iCategoryId, 'sys_pb_cache_engine', '_adm_stg_cpt_option_sys_pb_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 41),
  323. (@iCategoryId, 'sys_template_cache_enable', '_adm_stg_cpt_option_sys_template_cache_enable', 'on', 'checkbox', '', '', '', 50),
  324. (@iCategoryId, 'sys_template_cache_engine', '_adm_stg_cpt_option_sys_template_cache_engine', 'FileHtml', 'select', 'FileHtml,Memcache,APC,XCache', '', '', 51),
  325. (@iCategoryId, 'sys_template_cache_css_enable', '_adm_stg_cpt_option_sys_template_cache_css_enable', 'on', 'checkbox', '', '', '', 55),
  326. (@iCategoryId, 'sys_template_cache_js_enable', '_adm_stg_cpt_option_sys_template_cache_js_enable', 'on', 'checkbox', '', '', '', 56),
  327. (@iCategoryId, 'sys_template_cache_minify_css_enable', '_adm_stg_cpt_option_sys_template_cache_minify_css_enable', 'on', 'checkbox', '', '', '', 57),
  328. (@iCategoryId, 'sys_template_cache_minify_js_enable', '_adm_stg_cpt_option_sys_template_cache_minify_js_enable', 'on', 'checkbox', '', '', '', 58),
  329. (@iCategoryId, 'sys_template_cache_compress_enable', '_adm_stg_cpt_option_sys_template_cache_compress_enable', 'on', 'checkbox', '', '', '', 59);
  330. --
  331. -- CATEGORY: General
  332. --
  333. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'general', '_adm_stg_cpt_category_general', 0, 6);
  334. SET @iCategoryId = LAST_INSERT_ID();
  335. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  336. (@iCategoryId, 'sys_oauth_key', '_adm_stg_cpt_option_sys_oauth_key', '', 'digit', '', '', '', 20),
  337. (@iCategoryId, 'sys_oauth_secret', '_adm_stg_cpt_option_sys_oauth_secret', '', 'digit', '', '', '', 21),
  338. (@iCategoryId, 'currency_code', '_adm_stg_cpt_option_currency_code', 'USD', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:33:"get_options_currency_code_default";s:5:"class";s:21:"TemplPaymentsServices";}', 'Avail', '_adm_stg_err_option_currency_code', 30),
  339. (@iCategoryId, 'currency_sign', '_adm_stg_cpt_option_currency_sign', '&#36;', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:33:"get_options_currency_sign_default";s:5:"class";s:21:"TemplPaymentsServices";}', 'Avail', '_adm_stg_err_option_currency_sign', 31),
  340. (@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";}', '', '', 35),
  341. (@iCategoryId, 'client_image_resize_width', '_adm_stg_cpt_option_client_image_resize_width', '0', 'digit', '', '', '', 42),
  342. (@iCategoryId, 'client_image_resize_height', '_adm_stg_cpt_option_client_image_resize_height', '0', 'digit', '', '', '', 43),
  343. (@iCategoryId, 'useLikeOperator', '_adm_stg_cpt_option_use_like_operator', 'on', 'checkbox', '', '', '', 45),
  344. (@iCategoryId, 'sys_embed_default', '_adm_stg_cpt_option_sys_embed_default', 'sys_oembed', '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),
  345. (@iCategoryId, 'sys_embedly_api_key', '_adm_stg_cpt_option_sys_embedly_api_key', '', 'digit', '', '', '', 80),
  346. (@iCategoryId, 'sys_iframely_api_key', '_adm_stg_cpt_option_sys_iframely_api_key', '', 'digit', '', '', '', 90);
  347. --
  348. -- CATEGORY: Permalinks
  349. --
  350. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'permalinks', '_adm_stg_cpt_category_permalinks', 0, 9);
  351. SET @iCategoryId = LAST_INSERT_ID();
  352. INSERT INTO `sys_options` (`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  353. (@iCategoryId, 'permalinks_pages', '_adm_stg_cpt_option_permalinks_pages', 'on', 'checkbox', '', '', '', 1),
  354. (@iCategoryId, 'permalinks_modules', '_adm_stg_cpt_option_permalinks_modules', 'on', 'checkbox', '', '', '', 2),
  355. (@iCategoryId, 'permalinks_storage', '_adm_stg_cpt_option_permalinks_storage', 'on', 'checkbox', '', '', '', 3);
  356. --
  357. -- CATEGORY: Security
  358. --
  359. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'security', '_adm_stg_cpt_category_security', 0, 11);
  360. SET @iCategoryId = LAST_INSERT_ID();
  361. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  362. (@iCategoryId, 'sys_security_form_token_enable', '_adm_stg_cpt_option_sys_security_form_token_enable', 'on', 'checkbox', '', '', '', 10),
  363. (@iCategoryId, 'sys_security_form_token_lifetime', '_adm_stg_cpt_option_sys_security_form_token_lifetime', '86400', 'digit', '', '', '', 11),
  364. (@iCategoryId, 'sys_recaptcha_key_public', '_adm_stg_cpt_option_sys_recaptcha_key_public', '', 'digit', '', '', '', 20),
  365. (@iCategoryId, 'sys_recaptcha_key_private', '_adm_stg_cpt_option_sys_recaptcha_key_private', '', 'digit', '', '', '', 21),
  366. (@iCategoryId, 'sys_add_nofollow', '_adm_stg_cpt_option_sys_add_nofollow', 'on', 'checkbox', '', '', '', 30),
  367. (@iCategoryId, 'sys_security_block_content_after_n_reports', '_adm_stg_cpt_option_sys_security_block_content_after_n_reports', '0', 'digit', '', '', '', 35);
  368. --
  369. -- CATEGORY: Site Settings
  370. --
  371. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'site_settings','_adm_stg_cpt_category_site_settings', 0, 12);
  372. SET @iCategoryId = LAST_INSERT_ID();
  373. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  374. (@iCategoryId, 'site_title', '_adm_stg_cpt_option_site_title', 'Community', 'digit', '', '', '', 1),
  375. (@iCategoryId, 'site_email', '_adm_stg_cpt_option_site_email', 'admin@example.com', 'digit', '', '', '', 2),
  376. (@iCategoryId, 'site_email_notify', '_adm_stg_cpt_option_site_email_notify', 'admin@example.com', 'digit', '', '', '', 3),
  377. (@iCategoryId, 'site_tour_home', '_adm_stg_cpt_option_site_tour_home', 'on', 'checkbox', '', '', '', 6),
  378. (@iCategoryId, 'site_tour_studio', '_adm_stg_cpt_option_site_tour_studio', 'on', 'checkbox', '', '', '', 7),
  379. (@iCategoryId, 'site_login_social_compact', '_adm_stg_cpt_option_site_login_social_compact', 'on', 'checkbox', '', '', '', 9),
  380. (@iCategoryId, 'sys_autoupdate', '_adm_stg_cpt_option_sys_autoupdate', 'on', 'checkbox', '', '', '', 10),
  381. (@iCategoryId, 'sys_autoupdate_force_modified_files', '_adm_stg_cpt_option_sys_autoupdate_force_modified_files', '', 'checkbox', '', '', '', 12),
  382. (@iCategoryId, 'smart_app_banner', '_adm_stg_cpt_option_smart_app_banner', '', 'checkbox', '', '', '', 14),
  383. (@iCategoryId, 'smart_app_banner_ios_app_id', '_adm_stg_cpt_option_smart_app_banner_ios_app_id', '', 'digit', '', '', '', 15),
  384. (@iCategoryId, 'sys_per_page_search_keyword_single', '_adm_stg_cpt_option_sys_per_page_search_keyword_single', '24', 'digit', '', '', '', 20),
  385. (@iCategoryId, 'sys_per_page_search_keyword_plural', '_adm_stg_cpt_option_sys_per_page_search_keyword_plural', '3', 'digit', '', '', '', 21),
  386. (@iCategoryId, 'sys_metatags_hashtags_max', '_adm_stg_cpt_option_sys_metatags_hashtags_max', '9', 'digit', '', '', '', 30),
  387. (@iCategoryId, 'sys_metatags_mentions_max', '_adm_stg_cpt_option_sys_metatags_mentions_max', '9', 'digit', '', '', '', 31),
  388. (@iCategoryId, 'sys_profile_bot', '_adm_stg_cpt_option_sys_profile_bot', '', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:23:"get_options_profile_bot";s:5:"class";s:13:"TemplServices";}', '', '', 40),
  389. (@iCategoryId, 'sys_hide_post_to_context_for_privacy', '_adm_stg_cpt_option_sys_hide_post_to_context_for_privacy', '', 'list', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:44:"get_options_module_list_for_privacy_selector";s:5:"class";s:13:"TemplServices";}', '', '', 50);
  390. --
  391. -- CATEGORY: Storage
  392. --
  393. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'storage', '_adm_stg_cpt_category_storage', 0, 13);
  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_storage_default', '_adm_stg_cpt_option_sys_storage_default', 'Local', 'select', 'Local,S3,S3v4,S3v4alt', '', '', 1),
  397. (@iCategoryId, 'sys_storage_s3_access_key', '_adm_stg_cpt_option_sys_storage_s3_access_key', '', 'digit', '', '', '', 2),
  398. (@iCategoryId, 'sys_storage_s3_secret_key', '_adm_stg_cpt_option_sys_storage_s3_secret_key', '', 'digit', '', '', '', 3),
  399. (@iCategoryId, 'sys_storage_s3_bucket', '_adm_stg_cpt_option_sys_storage_s3_bucket', '', 'digit', '', '', '', 4),
  400. (@iCategoryId, 'sys_storage_s3_domain', '_adm_stg_cpt_option_sys_storage_s3_domain', '', 'digit', '', '', '', 5),
  401. (@iCategoryId, 'sys_storage_s3_endpoint', '_adm_stg_cpt_option_sys_storage_s3_endpoint', '', 'digit', '', '', '', 6),
  402. (@iCategoryId, 'sys_storage_s3_sig_ver', '_adm_stg_cpt_option_sys_storage_s3_sig_ver', 'v2', 'select', 'v2,v4', '', '', 7),
  403. (@iCategoryId, 'sys_storage_s3_region', '_adm_stg_cpt_option_sys_storage_s3_region', '', 'digit', '', '', '', 8);
  404. --
  405. -- CATEGORY: Account
  406. --
  407. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'account', '_adm_stg_cpt_category_account', 0, 14);
  408. SET @iCategoryId = LAST_INSERT_ID();
  409. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  410. (@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),
  411. (@iCategoryId, 'sys_account_autoapproval', '_adm_stg_cpt_option_sys_account_autoapproval', 'on', 'checkbox', '', '', '', 10),
  412. (@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),
  413. (@iCategoryId, 'sys_account_activation_2fa_enable', '_adm_stg_cpt_option_sys_account_2fa_enable', '', 'checkbox', '', '', '', 13),
  414. (@iCategoryId, 'sys_account_activation_2fa_lifetime', '_adm_stg_cpt_option_sys_account_2fa_lifetime', '0', 'digit', '', '', '', 14),
  415. (@iCategoryId, 'sys_account_auto_profile_creation', '_adm_stg_cpt_option_sys_account_auto_profile_creation', 'on', 'checkbox', '', '', '', 15),
  416. (@iCategoryId, 'sys_account_hide_unconfirmed_accounts', '_adm_stg_cpt_option_sys_account_hide_unconfirmed_accounts', 'on', 'checkbox', '', '', '', 17),
  417. (@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),
  418. (@iCategoryId, 'sys_account_limit_profiles_number', '_adm_stg_cpt_option_sys_account_limit_profiles_number', '0', 'digit', '', '', '', 21),
  419. (@iCategoryId, 'sys_account_limit_incorrect_login_attempts', '_adm_stg_cpt_option_sys_account_limit_incorrect_login_attempts', '6', 'digit', '', '', '', 22),
  420. (@iCategoryId, 'sys_account_reset_password_key_lifetime', '_adm_stg_cpt_option_sys_account_reset_password_key_lifetime', '259200', 'digit', '', '', '', 30),
  421. (@iCategoryId, 'sys_account_reset_password_redirect', '_adm_stg_cpt_option_sys_account_reset_password_redirect', 'home', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:35:"get_options_reset_password_redirect";s:5:"class";s:18:"BaseServiceAccount";}', '', '', 31),
  422. (@iCategoryId, 'sys_account_reset_password_redirect_custom', '_adm_stg_cpt_option_sys_account_reset_password_redirect_custom', '', 'digit', '', '', '', 32),
  423. (@iCategoryId, 'sys_account_disable_login_form', '_adm_stg_cpt_option_sys_account_disable_login_form', '', 'checkbox', '', '', '', 40),
  424. (@iCategoryId, 'sys_account_disable_join_form', '_adm_stg_cpt_option_sys_account_disable_join_form', '', 'checkbox', '', '', '', 42),
  425. (@iCategoryId, 'sys_account_allow_plus_in_email', '_adm_stg_cpt_option_sys_allow_plus_in_email', 'on', 'checkbox', '', '', '', 50);
  426. --
  427. -- CATEGORY: ACL
  428. --
  429. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'acl', '_adm_stg_cpt_category_acl', 0, 15);
  430. SET @iCategoryId = LAST_INSERT_ID();
  431. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  432. (@iCategoryId, 'sys_acl_expire_notification_days', '_adm_stg_cpt_option_sys_acl_expire_notification_days', '1', 'digit', '', '', '', 1),
  433. (@iCategoryId, 'sys_acl_expire_notify_once', '_adm_stg_cpt_option_sys_acl_expire_notify_once', 'on', 'checkbox', '', '', '', 2);
  434. --
  435. -- CATEGORY: Notifications
  436. --
  437. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'notifications', '_adm_stg_cpt_category_notifications', 0, 16);
  438. SET @iCategoryId = LAST_INSERT_ID();
  439. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  440. (@iCategoryId, 'enable_notification_pruning', '_adm_stg_cpt_option_enable_notification_pruning', '', 'checkbox', '', '', '', 1),
  441. (@iCategoryId, 'enable_notification_account', '_adm_stg_cpt_option_enable_notification_account', 'on', 'checkbox', '', '', '', 2),
  442. (@iCategoryId, 'sys_eq_send_per_start', '_adm_stg_cpt_option_sys_eq_send_per_start', '500', 'digit', '', '', '', 10),
  443. (@iCategoryId, 'sys_eq_send_per_start_to_recipient', '_adm_stg_cpt_option_sys_eq_send_per_start_to_recipient', '2', 'digit', '', '', '', 11);
  444. --
  445. -- CATEGORY: Push Notifications
  446. --
  447. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'notifications_push', '_adm_stg_cpt_category_notifications_push', 0, 17);
  448. SET @iCategoryId = LAST_INSERT_ID();
  449. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  450. (@iCategoryId, 'sys_push_app_id', '_adm_stg_cpt_option_sys_push_app_id', '', 'digit', '', '', '', 1),
  451. (@iCategoryId, 'sys_push_rest_api', '_adm_stg_cpt_option_sys_push_rest_api', '', 'digit', '', '', '', 2),
  452. (@iCategoryId, 'sys_push_short_name', '_adm_stg_cpt_option_sys_push_short_name', '', 'digit', '', '', '', 3),
  453. (@iCategoryId, 'sys_push_safari_id', '_adm_stg_cpt_option_sys_push_safari_id', '', 'digit', '', '', '', 4),
  454. (@iCategoryId, 'sys_push_queue_send_per_start', '_adm_stg_cpt_option_sys_push_queue_send_per_start', '500', 'digit', '', '', '', 10),
  455. (@iCategoryId, 'sys_push_queue_send_per_start_to_recipient', '_adm_stg_cpt_option_sys_push_queue_send_per_start_to_recipient', '2', 'digit', '', '', '', 11);
  456. --
  457. -- CATEGORY: Twilio gate settings
  458. --
  459. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'twilio_gate', '_adm_stg_cpt_category_twilio_gate', 0, 18);
  460. SET @iCategoryId = LAST_INSERT_ID();
  461. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  462. (@iCategoryId, 'sys_twilio_gate_sid', '_adm_stg_cpt_option_sys_twilio_gate_sid', '', 'digit', '', '', '', 1),
  463. (@iCategoryId, 'sys_twilio_gate_token', '_adm_stg_cpt_option_sys_twilio_gate_token', '', 'digit', '', '', '', 2),
  464. (@iCategoryId, 'sys_twilio_gate_from_number', '_adm_stg_cpt_option_sys_twilio_gate_from_number', '', 'digit', '', '', '', 3);
  465. --
  466. -- CATEGORY: Location
  467. --
  468. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'location', '_adm_stg_cpt_category_location', 0, 20);
  469. SET @iCategoryId = LAST_INSERT_ID();
  470. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  471. (@iCategoryId, 'sys_location_field_default', '_adm_stg_cpt_option_sys_location_field_default', 'sys_plain', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:34:"get_options_location_field_default";s:5:"class";s:13:"TemplServices";}', '', '', 10),
  472. (@iCategoryId, 'sys_location_map_default', '_adm_stg_cpt_option_sys_location_map_default', 'sys_leaflet', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:32:"get_options_location_map_default";s:5:"class";s:13:"TemplServices";}', '', '', 12),
  473. (@iCategoryId, 'sys_location_map_zoom_default', '_adm_stg_cpt_option_sys_location_map_zoom_default', '7', 'digit', '', '', '', 20),
  474. (@iCategoryId, 'sys_maps_api_key', '_adm_stg_cpt_option_sys_maps_api_key', '', 'digit', '', '', '', 30),
  475. (@iCategoryId, 'sys_nominatim_server', '_adm_stg_cpt_option_sys_nominatim_server', 'https://nominatim.openstreetmap.org', 'digit', '', '', '', 40),
  476. (@iCategoryId, 'sys_nominatim_email', '_adm_stg_cpt_option_sys_nominatim_email', '', 'digit', '', '', '', 42),
  477. (@iCategoryId, 'sys_location_leaflet_provider', '_adm_stg_cpt_option_sys_location_leaflet_provider', 'OpenStreetMap.Mapnik', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:42:"get_options_location_leaflet_get_providers";s:5:"class";s:13:"TemplServices";}', '', '', 50);
  478. --
  479. -- CATEGORY (HIDDEN): Audit
  480. --
  481. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'audit', '_adm_stg_cpt_category_audit', 1, 2);
  482. SET @iCategoryId = LAST_INSERT_ID();
  483. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  484. (@iCategoryId, 'sys_audit_enable', '_adm_stg_cpt_option_sys_audit_enable', '', 'checkbox', '', '', '', 1),
  485. (@iCategoryId, 'sys_audit_max_records', '_adm_stg_cpt_option_sys_audit_max_records', '10000', 'digit', '', '', '', 2),
  486. (@iCategoryId, 'sys_audit_days_before_expire', '_adm_stg_cpt_option_sys_audit_days_before_expire', '365', 'digit', '', '', '', 3),
  487. (@iCategoryId, 'sys_audit_acl_levels', '_adm_stg_cpt_option_sys_audit_acl_levels', '7,8', 'list', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:15:"get_memberships";s:6:"params";a:0:{}s:5:"class";s:18:"TemplAuditServices";}', '', '', 4);
  488. --
  489. -- Table structure for table `sys_options_mixes`
  490. --
  491. CREATE TABLE `sys_options_mixes` (
  492. `id` int(11) unsigned NOT NULL auto_increment,
  493. `type` varchar(64) NOT NULL default '',
  494. `category` varchar(64) NOT NULL default '',
  495. `name` varchar(64) NOT NULL default '',
  496. `title` varchar(64) NOT NULL default '',
  497. `active` tinyint(1) NOT NULL default '0',
  498. `published` tinyint(1) NOT NULL default '0',
  499. `editable` tinyint(1) NOT NULL default '1',
  500. PRIMARY KEY (`id`),
  501. UNIQUE KEY `name`(`name`)
  502. );
  503. --
  504. -- Table structure for table `sys_options_mixes2options`
  505. --
  506. CREATE TABLE `sys_options_mixes2options` (
  507. `option` varchar(64) NOT NULL default '',
  508. `mix_id` int(11) unsigned NOT NULL default '0',
  509. `value` mediumtext NOT NULL,
  510. UNIQUE KEY `value`(`option`, `mix_id`)
  511. );
  512. -- --------------------------------------------------------
  513. CREATE TABLE `sys_localization_categories` (
  514. `ID` int(6) unsigned NOT NULL auto_increment,
  515. `Name` varchar(255) NOT NULL default '',
  516. PRIMARY KEY (`ID`),
  517. UNIQUE KEY `Name` (`Name`(191))
  518. );
  519. INSERT INTO `sys_localization_categories` VALUES
  520. (1, 'System'),
  521. (2, 'Custom');
  522. CREATE TABLE `sys_localization_keys` (
  523. `ID` int(10) unsigned NOT NULL auto_increment,
  524. `IDCategory` int(6) unsigned NOT NULL default '0',
  525. `Key` varchar(255) character set utf8 collate utf8_bin NOT NULL default '',
  526. PRIMARY KEY (`ID`),
  527. UNIQUE KEY `Key` (`Key`(191)),
  528. FULLTEXT KEY `KeyFilter` (`Key`(191))
  529. );
  530. CREATE TABLE `sys_localization_languages` (
  531. `ID` int(10) unsigned NOT NULL auto_increment,
  532. `Name` varchar(5) NOT NULL default '',
  533. `Flag` varchar(2) NOT NULL default '',
  534. `Title` varchar(255) NOT NULL default '',
  535. `Direction` enum('LTR','RTL') NOT NULL DEFAULT 'LTR',
  536. `LanguageCountry` varchar(8) NOT NULL,
  537. `Enabled` tinyint(1) unsigned NOT NULL default '0',
  538. PRIMARY KEY (`ID`),
  539. UNIQUE KEY `Name` (`Name`)
  540. );
  541. CREATE TABLE `sys_localization_strings` (
  542. `IDKey` int(10) unsigned NOT NULL default '0',
  543. `IDLanguage` int(10) unsigned NOT NULL default '0',
  544. `String` mediumtext NOT NULL,
  545. PRIMARY KEY (`IDKey`,`IDLanguage`),
  546. FULLTEXT KEY `String` (`String`)
  547. );
  548. -- --------------------------------------------------------
  549. CREATE TABLE `sys_acl_actions` (
  550. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  551. `Module` varchar(32) NOT NULL,
  552. `Name` varchar(255) NOT NULL default '',
  553. `AdditionalParamName` varchar(80) default NULL,
  554. `Title` varchar(255) NOT NULL,
  555. `Desc` varchar(255) NOT NULL,
  556. `Countable` tinyint(4) NOT NULL DEFAULT '0',
  557. `DisabledForLevels` int(10) unsigned NOT NULL DEFAULT '3',
  558. PRIMARY KEY (`ID`),
  559. FULLTEXT KEY `ModuleAndName` (`Module`, `Name`)
  560. );
  561. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  562. ('system', 'connect', NULL, '_sys_acl_action_connect', '', 1, 3);
  563. SET @iIdActionConnect = LAST_INSERT_ID();
  564. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  565. ('system', 'vote', NULL, '_sys_acl_action_vote', '', 1, 0);
  566. SET @iIdActionVote = LAST_INSERT_ID();
  567. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  568. ('system', 'vote_view', NULL, '_sys_acl_action_vote_view', '', 1, 0);
  569. SET @iIdActionVoteView = LAST_INSERT_ID();
  570. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  571. ('system', 'vote_view_voters', NULL, '_sys_acl_action_vote_view_voters', '', 1, 0);
  572. SET @iIdActionVoteViewVoters = LAST_INSERT_ID();
  573. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  574. ('system', 'report', NULL, '_sys_acl_action_report', '', 1, 0);
  575. SET @iIdActionReport = LAST_INSERT_ID();
  576. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  577. ('system', 'report_view', NULL, '_sys_acl_action_report_view', '', 0, 0);
  578. SET @iIdActionReportView = LAST_INSERT_ID();
  579. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  580. ('system', 'favorite', NULL, '_sys_acl_action_favorite', '', 1, 0);
  581. SET @iIdActionFavorite = LAST_INSERT_ID();
  582. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  583. ('system', 'favorite_view', NULL, '_sys_acl_action_favorite_view', '', 0, 0);
  584. SET @iIdActionFavoriteView = LAST_INSERT_ID();
  585. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  586. ('system', 'feature', NULL, '_sys_acl_action_feature', '', 0, 0);
  587. SET @iIdActionFeature = LAST_INSERT_ID();
  588. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  589. ('system', 'view_view', NULL, '_sys_acl_action_view_view', '', 0, 0);
  590. SET @iIdActionViewView = LAST_INSERT_ID();
  591. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  592. ('system', 'view_view_viewers_own', NULL, '_sys_acl_action_view_view_viewers_own', '', 0, 0);
  593. SET @iIdActionViewViewViewers = LAST_INSERT_ID();
  594. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  595. ('system', 'comments post', NULL, '_sys_acl_action_comments_post', '', 1, 3);
  596. SET @iIdActionCmtPost = LAST_INSERT_ID();
  597. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  598. ('system', 'comments edit own', NULL, '_sys_acl_action_comments_edit_own', '', 0, 3);
  599. SET @iIdActionCmtEditOwn = LAST_INSERT_ID();
  600. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  601. ('system', 'comments remove own', NULL, '_sys_acl_action_comments_remove_own', '', 1, 3);
  602. SET @iIdActionCmtRemoveOwn = LAST_INSERT_ID();
  603. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  604. ('system', 'comments edit all', NULL, '_sys_acl_action_comments_edit_all', '', 1, 3);
  605. SET @iIdActionCmtEditAll = LAST_INSERT_ID();
  606. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  607. ('system', 'comments remove all', NULL, '_sys_acl_action_comments_remove_all', '', 1, 3);
  608. SET @iIdActionCmtRemoveAll = LAST_INSERT_ID();
  609. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  610. ('system', 'comments remove in own content', NULL, '_sys_acl_action_comments_remove_in_own_content', '', 1, 3);
  611. SET @iIdActionCmtRemoveInOwnContent = LAST_INSERT_ID();
  612. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  613. ('system', 'comments remove in group context', NULL, '_sys_acl_action_comments_remove_in_group_context', '', 1, 3);
  614. SET @iIdActionCmtRemoveInGroupContext = LAST_INSERT_ID();
  615. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  616. ('system', 'comments pin', NULL, '_sys_acl_action_comments_pin', '', 1, 3);
  617. SET @iIdActionCmtPin = LAST_INSERT_ID();
  618. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  619. ('system', 'create account', NULL, '_sys_acl_action_create_account', '_sys_acl_action_create_account_desc', 0, 2147483646);
  620. SET @iIdActionAccountCreate = LAST_INSERT_ID();
  621. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  622. ('system', 'delete account', NULL, '_sys_acl_action_delete_account', '_sys_acl_action_delete_account_desc', 0, 1);
  623. SET @iIdActionAccountDelete = LAST_INSERT_ID();
  624. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  625. ('system', 'set acl level', NULL, '_sys_acl_action_set_acl_level', '_sys_acl_action_set_acl_level_desc', 0, 3);
  626. SET @iIdActionSetAclLevel = LAST_INSERT_ID();
  627. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  628. ('system', 'set badge', NULL, '_sys_acl_action_set_badge', '_sys_acl_action_set_badge_desc', 0, 3);
  629. SET @iIdActionSetBadge = LAST_INSERT_ID();
  630. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  631. ('system', 'set acl as privacy', NULL, '_sys_acl_action_set_acl_as_privacy', '_sys_acl_action_set_acl_as_privacy_desc', 0, 3);
  632. SET @iIdActionSetAclAsPrivacy = LAST_INSERT_ID();
  633. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  634. ('system', 'set form fields privacy', NULL, '_sys_acl_action_set_form_fields_privacy', '_sys_acl_action_set_form_fields_privacy_desc', 0, 3);
  635. SET @iIdActionSetFormFieldsPrivacy = LAST_INSERT_ID();
  636. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  637. ('system', 'chart view', NULL, '_sys_acl_action_chart_view', '_sys_acl_action_chart_view_desc', 0, 3);
  638. SET @iIdActionChartView = LAST_INSERT_ID();
  639. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  640. ('system', 'post links', NULL, '_sys_acl_action_post_links', '_sys_acl_action_post_links_desc', 0, 0);
  641. SET @iIdActionPostLinks = LAST_INSERT_ID();
  642. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  643. ('system', 'use macros', NULL, '_sys_acl_action_use_macros', '_sys_acl_action_use_macros_desc', 0, 0);
  644. SET @iIdActionUseMacros = LAST_INSERT_ID();
  645. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  646. ('system', 'switch to any profile', NULL, '_sys_acl_action_switch_to_any_profile', '_sys_acl_action_switch_to_any_profile_desc', 0, 0);
  647. SET @iIdActionSwitchToAnyProfile = LAST_INSERT_ID();
  648. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  649. ('system', 'show membership levels in privacy groups', NULL, '_sys_acl_action_show_membership_levels_in_privacy_groups', '_sys_acl_action_show_membership_levels_in_privacy_groups_desc', 0, 0);
  650. SET @iIdActionShowMembershipLevelsInPrivacyGroups = LAST_INSERT_ID();
  651. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  652. ('system', 'show membership private info', NULL, '_sys_acl_action_show_membership_private_info', '_sys_acl_action_show_membership_private_info_desc', 0, 0);
  653. SET @iIdActionShowMembershipPrivateInfo = LAST_INSERT_ID();
  654. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  655. ('system', 'wiki add block', NULL, '_sys_acl_action_add_block', '', 0, 1);
  656. SET @iIdActionWikiAddBlock = LAST_INSERT_ID();
  657. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  658. ('system', 'wiki edit block', NULL, '_sys_acl_action_edit_block', '', 0, 0);
  659. SET @iIdActionWikiEditBlock = LAST_INSERT_ID();
  660. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  661. ('system', 'wiki translate block', NULL, '_sys_acl_action_translate_block', '', 0, 0);
  662. SET @iIdActionWikiTranslateBlock = LAST_INSERT_ID();
  663. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  664. ('system', 'wiki delete version', NULL, '_sys_acl_action_delete_version', '', 0, 1);
  665. SET @iIdActionWikiDeleteVersion = LAST_INSERT_ID();
  666. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  667. ('system', 'wiki delete block', NULL, '_sys_acl_action_delete_block', '', 0, 1);
  668. SET @iIdActionWikiDeleteBlock = LAST_INSERT_ID();
  669. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  670. ('system', 'wiki history', NULL, '_sys_acl_action_history', '', 0, 0);
  671. SET @iIdActionWikiHistory = LAST_INSERT_ID();
  672. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  673. ('system', 'wiki unsafe', NULL, '_sys_acl_action_unsafe', '', 0, 0);
  674. SET @iIdActionWikiUnsafe = LAST_INSERT_ID();
  675. CREATE TABLE `sys_acl_actions_track` (
  676. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  677. `IDMember` int(10) unsigned NOT NULL default '0',
  678. `ActionsLeft` int(10) unsigned NOT NULL DEFAULT '0',
  679. `ValidSince` datetime default NULL,
  680. PRIMARY KEY (`IDAction`,`IDMember`)
  681. );
  682. CREATE TABLE `sys_acl_matrix` (
  683. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  684. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  685. `AllowedCount` int(10) unsigned DEFAULT NULL,
  686. `AllowedPeriodLen` int(10) unsigned DEFAULT NULL,
  687. `AllowedPeriodStart` datetime default NULL,
  688. `AllowedPeriodEnd` datetime default NULL,
  689. `AdditionalParamValue` varchar(255) default NULL,
  690. PRIMARY KEY (`IDLevel`,`IDAction`)
  691. );
  692. SET @iUnauthenticated = 1;
  693. SET @iAccount = 2;
  694. SET @iStandard = 3;
  695. SET @iUnconfirmed = 4;
  696. SET @iPending = 5;
  697. SET @iSuspended = 6;
  698. SET @iModerator = 7;
  699. SET @iAdministrator = 8;
  700. SET @iPremium = 9;
  701. INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES
  702. -- connect
  703. (@iStandard, @iIdActionConnect),
  704. (@iModerator, @iIdActionConnect),
  705. (@iAdministrator, @iIdActionConnect),
  706. (@iPremium, @iIdActionConnect),
  707. -- vote
  708. (@iStandard, @iIdActionVote),
  709. (@iModerator, @iIdActionVote),
  710. (@iAdministrator, @iIdActionVote),
  711. (@iPremium, @iIdActionVote),
  712. -- vote view
  713. (@iStandard, @iIdActionVoteView),
  714. (@iModerator, @iIdActionVoteView),
  715. (@iAdministrator, @iIdActionVoteView),
  716. (@iPremium, @iIdActionVoteView),
  717. -- vote view voters
  718. (@iStandard, @iIdActionVoteViewVoters),
  719. (@iModerator, @iIdActionVoteViewVoters),
  720. (@iAdministrator, @iIdActionVoteViewVoters),
  721. (@iPremium, @iIdActionVoteViewVoters),
  722. -- report
  723. (@iStandard, @iIdActionReport),
  724. (@iModerator, @iIdActionReport),
  725. (@iAdministrator, @iIdActionReport),
  726. (@iPremium, @iIdActionReport),
  727. -- report view
  728. (@iModerator, @iIdActionReportView),
  729. (@iAdministrator, @iIdActionReportView),
  730. -- favorite
  731. (@iStandard, @iIdActionFavorite),
  732. (@iModerator, @iIdActionFavorite),
  733. (@iAdministrator, @iIdActionFavorite),
  734. (@iPremium, @iIdActionFavorite),
  735. -- favorite view
  736. (@iUnauthenticated, @iIdActionFavoriteView),
  737. (@iAccount, @iIdActionFavoriteView),
  738. (@iStandard, @iIdActionFavoriteView),
  739. (@iUnconfirmed, @iIdActionFavoriteView),
  740. (@iPending, @iIdActionFavoriteView),
  741. (@iModerator, @iIdActionFavoriteView),
  742. (@iAdministrator, @iIdActionFavoriteView),
  743. (@iPremium, @iIdActionFavoriteView),
  744. -- feature
  745. (@iModerator, @iIdActionFeature),
  746. (@iAdministrator, @iIdActionFeature),
  747. -- view view
  748. (@iUnauthenticated, @iIdActionViewView),
  749. (@iAccount, @iIdActionViewView),
  750. (@iStandard, @iIdActionViewView),
  751. (@iUnconfirmed, @iIdActionViewView),
  752. (@iPending, @iIdActionViewView),
  753. (@iModerator, @iIdActionViewView),
  754. (@iAdministrator, @iIdActionViewView),
  755. (@iPremium, @iIdActionViewView),
  756. -- view view viewers
  757. (@iModerator, @iIdActionViewViewViewers),
  758. (@iAdministrator, @iIdActionViewViewViewers),
  759. -- comments post
  760. (@iStandard, @iIdActionCmtPost),
  761. (@iModerator, @iIdActionCmtPost),
  762. (@iAdministrator, @iIdActionCmtPost),
  763. (@iPremium, @iIdActionCmtPost),
  764. -- comments edit own
  765. (@iStandard, @iIdActionCmtEditOwn),
  766. (@iModerator, @iIdActionCmtEditOwn),
  767. (@iAdministrator, @iIdActionCmtEditOwn),
  768. (@iPremium, @iIdActionCmtEditOwn),
  769. -- comments remove own
  770. (@iStandard, @iIdActionCmtRemoveOwn),
  771. (@iModerator, @iIdActionCmtRemoveOwn),
  772. (@iAdministrator, @iIdActionCmtRemoveOwn),
  773. (@iPremium, @iIdActionCmtRemoveOwn),
  774. -- comments edit all
  775. (@iModerator, @iIdActionCmtEditAll),
  776. (@iAdministrator, @iIdActionCmtEditAll),
  777. -- comments remove all
  778. (@iModerator, @iIdActionCmtRemoveAll),
  779. (@iAdministrator, @iIdActionCmtRemoveAll),
  780. -- comments remove in own content
  781. (@iModerator, @iIdActionCmtRemoveInOwnContent),
  782. (@iAdministrator, @iIdActionCmtRemoveInOwnContent),
  783. -- comments remove in group context
  784. (@iModerator, @iIdActionCmtRemoveInGroupContext),
  785. (@iAdministrator, @iIdActionCmtRemoveInGroupContext),
  786. -- comments pin
  787. (@iModerator, @iIdActionCmtPin),
  788. (@iAdministrator, @iIdActionCmtPin),
  789. -- account create
  790. (@iUnauthenticated, @iIdActionAccountCreate),
  791. -- account delete
  792. (@iAccount, @iIdActionAccountDelete),
  793. (@iStandard, @iIdActionAccountDelete),
  794. (@iUnconfirmed, @iIdActionAccountDelete),
  795. (@iPending, @iIdActionAccountDelete),
  796. (@iModerator, @iIdActionAccountDelete),
  797. (@iAdministrator, @iIdActionAccountDelete),
  798. (@iPremium, @iIdActionAccountDelete),
  799. -- set acl level
  800. (@iAdministrator, @iIdActionSetAclLevel),
  801. -- set badge
  802. (@iAdministrator, @iIdActionSetBadge),
  803. -- set acl as privacy
  804. (@iAdministrator, @iIdActionSetAclAsPrivacy),
  805. -- set form fields privacy
  806. (@iAccount, @iIdActionSetFormFieldsPrivacy),
  807. (@iStandard, @iIdActionSetFormFieldsPrivacy),
  808. (@iUnconfirmed, @iIdActionSetFormFieldsPrivacy),
  809. (@iPending, @iIdActionSetFormFieldsPrivacy),
  810. (@iModerator, @iIdActionSetFormFieldsPrivacy),
  811. (@iAdministrator, @iIdActionSetFormFieldsPrivacy),
  812. (@iPremium, @iIdActionSetFormFieldsPrivacy),
  813. -- view charts
  814. (@iAdministrator, @iIdActionChartView),
  815. -- post links
  816. (@iStandard, @iIdActionPostLinks),
  817. (@iModerator, @iIdActionPostLinks),
  818. (@iAdministrator, @iIdActionPostLinks),
  819. (@iPremium, @iIdActionPostLinks),
  820. -- use macros
  821. (@iModerator, @iIdActionUseMacros),
  822. (@iAdministrator, @iIdActionUseMacros),
  823. -- switch to any profile
  824. (@iAdministrator, @iIdActionSwitchToAnyProfile),
  825. -- show membership levels in privacy groups
  826. (@iAdministrator, @iIdActionShowMembershipLevelsInPrivacyGroups),
  827. -- show membership private info
  828. (@iModerator, @iIdActionShowMembershipPrivateInfo),
  829. (@iAdministrator, @iIdActionShowMembershipPrivateInfo);
  830. CREATE TABLE `sys_acl_levels` (
  831. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  832. `Name` varchar(100) NOT NULL default '',
  833. `Icon` text NOT NULL default '',
  834. `Description` varchar(255) NOT NULL default '',
  835. `Active` enum('yes','no') NOT NULL default 'no',
  836. `Purchasable` enum('yes','no') NOT NULL default 'yes',
  837. `Removable` enum('yes','no') NOT NULL default 'yes',
  838. `QuotaSize` bigint(20) NOT NULL,
  839. `QuotaNumber` int(11) NOT NULL,
  840. `QuotaMaxFileSize` bigint(20) NOT NULL,
  841. `Order` int(11) NOT NULL default '0',
  842. PRIMARY KEY (`ID`),
  843. UNIQUE KEY `Name` (`Name`),
  844. FULLTEXT KEY `Description` (`Description`)
  845. );
  846. INSERT INTO `sys_acl_levels` (`ID`, `Name`, `Icon`, `Description`, `Active`, `Purchasable`, `Removable`, `QuotaSize`, `QuotaNumber`, `QuotaMaxFileSize`, `Order`) VALUES
  847. (1, '_adm_prm_txt_level_unauthenticated', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 1),
  848. (2, '_adm_prm_txt_level_account', 'user col-green1', '', 'yes', 'no', 'no', 0, 0, 0, 2),
  849. (3, '_adm_prm_txt_level_standard', 'user col-red1', '', 'yes', 'no', 'no', 0, 0, 0, 3),
  850. (4, '_adm_prm_txt_level_unconfirmed', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 4),
  851. (5, '_adm_prm_txt_level_pending', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 5),
  852. (6, '_adm_prm_txt_level_suspended', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 6),
  853. (7, '_adm_prm_txt_level_moderator', 'user-secret col-blue3', '', 'yes', 'no', 'no', 0, 0, 0, 7),
  854. (8, '_adm_prm_txt_level_administrator', 'user-secret col-blue3', '', 'yes', 'no', 'no', 0, 0, 0, 8),
  855. (9, '_adm_prm_txt_level_premium', 'user col-red3', '', 'yes', 'yes', 'no', 0, 0, 0, 9);
  856. -- --------------------------------------------------------
  857. --
  858. -- Table structure for table `boon_sys_sessions`
  859. --
  860. CREATE TABLE IF NOT EXISTS `sys_sessions` (
  861. `id` varchar(32) NOT NULL default '',
  862. `user_id` int(10) unsigned NOT NULL default '0',
  863. `data` text,
  864. `date` int(10) unsigned NOT NULL default '0',
  865. PRIMARY KEY (`id`),
  866. KEY `user_id` (`user_id`),
  867. KEY `date` (`date`)
  868. );
  869. -- --------------------------------------------------------
  870. --
  871. -- Table structure for table `sys_acl_levels_members`
  872. --
  873. CREATE TABLE `sys_acl_levels_members` (
  874. `IDMember` int(10) unsigned NOT NULL default '0',
  875. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  876. `DateStarts` datetime NOT NULL default '0000-00-00 00:00:00',
  877. `DateExpires` datetime default NULL,
  878. `State` varchar(16) NOT NULL default '',
  879. `TransactionID` varchar(16) NOT NULL default '',
  880. PRIMARY KEY (`IDMember`,`IDLevel`,`DateStarts`)
  881. );
  882. -- --------------------------------------------------------
  883. CREATE TABLE `sys_accounts` (
  884. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  885. `profile_id` int(10) unsigned NOT NULL,
  886. `name` varchar(255) NOT NULL,
  887. `email` varchar(255) NOT NULL,
  888. `email_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  889. `phone` varchar(255) NOT NULL,
  890. `phone_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  891. `receive_updates` tinyint(4) NOT NULL DEFAULT '1',
  892. `receive_news` tinyint(4) NOT NULL DEFAULT '1',
  893. `password` varchar(40) NOT NULL,
  894. `salt` varchar(10) NOT NULL,
  895. `role` tinyint(4) NOT NULL DEFAULT '1',
  896. `lang_id` int(10) unsigned NOT NULL DEFAULT '0',
  897. `added` int(11) NOT NULL DEFAULT '0',
  898. `changed` int(11) NOT NULL DEFAULT '0',
  899. `logged` int(11) NOT NULL DEFAULT '0',
  900. `ip` varchar(40) NOT NULL DEFAULT '',
  901. `referred` varchar(255) NOT NULL DEFAULT '',
  902. `login_attempts` tinyint(4) NOT NULL DEFAULT '0',
  903. `locked` tinyint(4) NOT NULL DEFAULT '0',
  904. PRIMARY KEY (`id`),
  905. UNIQUE KEY `email` (`email`(191)),
  906. KEY `added` (`added`),
  907. KEY `profile_id` (`profile_id`)
  908. );
  909. CREATE TABLE IF NOT EXISTS `sys_profiles` (
  910. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  911. `account_id` int(10) unsigned NOT NULL,
  912. `type` varchar(32) NOT NULL,
  913. `content_id` int(10) unsigned NOT NULL,
  914. `status` enum('active','pending','suspended') NOT NULL DEFAULT 'active',
  915. PRIMARY KEY (`id`),
  916. UNIQUE KEY `account_type_content` (`account_id`,`type`,`content_id`),
  917. KEY `content_type` (`content_id`,`type`)
  918. );
  919. -- --------------------------------------------------------
  920. --
  921. -- Table structure for table 'sys_statistics'
  922. --
  923. CREATE TABLE `sys_statistics` (
  924. `id` int(11) unsigned NOT NULL auto_increment,
  925. `module` varchar(32) NOT NULL default '',
  926. `name` varchar(64) NOT NULL default '',
  927. `title` varchar(255) NOT NULL default '',
  928. `link` varchar(255) NOT NULL default '',
  929. `icon` varchar(32) NOT NULL default '',
  930. `query` text NOT NULL default '',
  931. `order` int(11) NOT NULL default '0',
  932. PRIMARY KEY (`ID`),
  933. UNIQUE KEY `name` (`name`)
  934. );
  935. INSERT INTO `sys_statistics` (`module`, `name`, `title`, `link`, `icon`, `query`, `order`) VALUES
  936. ('system', 'sys_accounts', '_sys_accounts', '', 'user', 'SELECT COUNT(*) FROM `sys_accounts` WHERE 1', 1);
  937. -- --------------------------------------------------------
  938. --
  939. -- Table structure for table 'sys_objects_rss'
  940. --
  941. CREATE TABLE `sys_objects_rss` (
  942. `id` int(11) NOT NULL auto_increment,
  943. `object` varchar(64) NOT NULL,
  944. `class_name` varchar(32) NOT NULL default '',
  945. `class_file` varchar(256) NOT NULL default '',
  946. PRIMARY KEY (`id`)
  947. );
  948. INSERT INTO `sys_objects_rss` (`object`, `class_name`, `class_file`) VALUES
  949. ('sys_boonex', 'BxDolRssBoonEx', ''),
  950. ('sys_page_block', 'BxDolRssPageBlock', ''),
  951. ('sys_studio_page_help', 'BxDolStudioRssPageHelp', ''),
  952. ('sys_studio_module_help', 'BxDolStudioRssModuleHelp', '');
  953. -- --------------------------------------------------------
  954. --
  955. -- Table structure for table 'sys_objects_search'
  956. --
  957. CREATE TABLE `sys_objects_search` (
  958. `ID` int(10) unsigned NOT NULL auto_increment,
  959. `ObjectName` varchar(64) NOT NULL default '',
  960. `Title` varchar(50) NOT NULL default '',
  961. `Order` int(11) NOT NULL,
  962. `GlobalSearch` tinyint(4) NOT NULL DEFAULT '1',
  963. `ClassName` varchar(50) NOT NULL default '',
  964. `ClassPath` varchar(100) NOT NULL default '',
  965. PRIMARY KEY (`ID`)
  966. );
  967. INSERT INTO `sys_objects_search` (`ObjectName`, `Title`, `Order`, `ClassName`, `ClassPath`) VALUES
  968. ('sys_pages', '_sys_pages', 1, 'BxTemplPagesSearchResult', '');
  969. -- --------------------------------------------------------
  970. --
  971. -- Table structure for table 'sys_objects_search_extended'
  972. --
  973. CREATE TABLE `sys_objects_search_extended` (
  974. `id` int(10) unsigned NOT NULL auto_increment,
  975. `object` varchar(64) NOT NULL default '',
  976. `object_content_info` varchar(64) NOT NULL default '',
  977. `module` varchar(32) NOT NULL default '',
  978. `title` varchar(255) NOT NULL default '',
  979. `filter` tinyint(4) NOT NULL DEFAULT '0',
  980. `active` tinyint(4) NOT NULL DEFAULT '0',
  981. `class_name` varchar(32) NOT NULL default '',
  982. `class_file` varchar(255) NOT NULL default '',
  983. PRIMARY KEY (`id`),
  984. UNIQUE KEY `object` (`object`)
  985. );
  986. -- --------------------------------------------------------
  987. --
  988. -- Table structure for table 'sys_search_extended_fields'
  989. --
  990. CREATE TABLE `sys_search_extended_fields` (
  991. `id` int(10) unsigned NOT NULL auto_increment,
  992. `object` varchar(64) NOT NULL default '',
  993. `name` varchar(255) NOT NULL default '',
  994. `type` varchar(32) NOT NULL default '',
  995. `caption` varchar(255) NOT NULL default '',
  996. `info` varchar(255) NOT NULL default '',
  997. `values` text NOT NULL default '',
  998. `pass` varchar(32) NOT NULL,
  999. `search_type` varchar(32) NOT NULL default '',
  1000. `search_value` varchar(255) NOT NULL default '',
  1001. `search_operator` varchar(32) NOT NULL default '',
  1002. `active` tinyint(4) NOT NULL DEFAULT '0',
  1003. `order` int(11) NOT NULL default '0',
  1004. PRIMARY KEY (`id`),
  1005. UNIQUE KEY `field` (`object`(64), `name`(127))
  1006. );
  1007. -- --------------------------------------------------------
  1008. --
  1009. -- Table structure for table `sys_objects_vote`
  1010. --
  1011. CREATE TABLE `sys_objects_vote` (
  1012. `ID` int(11) unsigned NOT NULL auto_increment,
  1013. `Name` varchar(50) NOT NULL default '',
  1014. `TableMain` varchar(50) NOT NULL default '',
  1015. `TableTrack` varchar(50) NOT NULL default '',
  1016. `PostTimeout` int(11) NOT NULL default '0',
  1017. `MinValue` tinyint(4) NOT NULL default '1',
  1018. `MaxValue` tinyint(4) NOT NULL default '5',
  1019. `IsUndo` tinyint(1) NOT NULL default '0',
  1020. `IsOn` tinyint(1) NOT NULL default '1',
  1021. `TriggerTable` varchar(32) NOT NULL default '',
  1022. `TriggerFieldId` varchar(32) NOT NULL default '',
  1023. `TriggerFieldAuthor` varchar(32) NOT NULL default '',
  1024. `TriggerFieldRate` varchar(32) NOT NULL default '',
  1025. `TriggerFieldRateCount` varchar(32) NOT NULL default '',
  1026. `ClassName` varchar(32) NOT NULL default '',
  1027. `ClassFile` varchar(256) NOT NULL default '',
  1028. PRIMARY KEY (`ID`)
  1029. );
  1030. INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
  1031. ('sys_cmts', 'sys_cmts_votes', 'sys_cmts_votes_track', '604800', '1', '1', '0', '1', 'sys_cmts_ids', 'id', 'author_id', 'rate', 'votes', '', ''),
  1032. ('sys_cmts_reactions', 'sys_cmts_reactions', 'sys_cmts_reactions_track', '604800', '1', '1', '1', '1', 'sys_cmts_ids', 'id', 'author_id', 'rrate', 'rvotes', 'BxTemplVoteReactions', ''),
  1033. ('sys_form_fields_votes', 'sys_form_fields_votes', 'sys_form_fields_votes_track', '604800', '1', '1', '0', '1', 'sys_form_fields_ids', 'id', 'author_id', 'rate', 'votes', '', ''),
  1034. ('sys_form_fields_reaction', 'sys_form_fields_reaction', 'sys_form_fields_reaction_track', '604800', '1', '1', '1', '1', 'sys_form_fields_ids', 'id', 'author_id', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');
  1035. -- --------------------------------------------------------
  1036. --
  1037. -- Table structure for table `sys_objects_score`
  1038. --
  1039. CREATE TABLE `sys_objects_score` (
  1040. `id` int(11) unsigned NOT NULL auto_increment,
  1041. `name` varchar(50) NOT NULL default '',
  1042. `module` varchar(32) NOT NULL,
  1043. `table_main` varchar(50) NOT NULL default '',
  1044. `table_track` varchar(50) NOT NULL default '',
  1045. `post_timeout` int(11) NOT NULL default '0',
  1046. `is_on` tinyint(1) NOT NULL default '1',
  1047. `trigger_table` varchar(32) NOT NULL default '',
  1048. `trigger_field_id` varchar(32) NOT NULL default '',
  1049. `trigger_field_author` varchar(32) NOT NULL default '',
  1050. `trigger_field_score` varchar(32) NOT NULL default '',
  1051. `trigger_field_cup` varchar(32) NOT NULL default '',
  1052. `trigger_field_cdown` varchar(32) NOT NULL default '',
  1053. `class_name` varchar(32) NOT NULL default '',
  1054. `class_file` varchar(256) NOT NULL default '',
  1055. PRIMARY KEY (`ID`)
  1056. );
  1057. 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
  1058. ('sys_cmts', 'system', 'sys_cmts_scores', 'sys_cmts_scores_track', '604800', '0', 'sys_cmts_ids', 'id', 'author_id', 'score', 'sc_up', 'sc_down', '', '');
  1059. -- -------------------------------------------------------
  1060. CREATE TABLE `sys_modules` (
  1061. `id` int(11) unsigned NOT NULL auto_increment,
  1062. `type` varchar(16) NOT NULL default 'module',
  1063. `name` varchar(32) NOT NULL default '',
  1064. `title` varchar(255) NOT NULL default '',
  1065. `vendor` varchar(64) NOT NULL default '',
  1066. `version` varchar(32) NOT NULL default '',
  1067. `help_url` varchar(128) NOT NULL default '',
  1068. `path` varchar(255) NOT NULL default '',
  1069. `uri` varchar(32) NOT NULL default '',
  1070. `class_prefix` varchar(32) NOT NULL default '',
  1071. `db_prefix` varchar(32) NOT NULL default '',
  1072. `lang_category` varchar(64) NOT NULL default '',
  1073. `dependencies` varchar(255) NOT NULL default '',
  1074. `date` int(11) unsigned NOT NULL default '0',
  1075. `enabled` tinyint(1) NOT NULL default '0',
  1076. `pending_uninstall` tinyint(4) NOT NULL,
  1077. `hash` varchar(32) NOT NULL default '',
  1078. `updated` int(11) unsigned NOT NULL default '0',
  1079. PRIMARY KEY (`id`),
  1080. UNIQUE KEY `name` (`name`),
  1081. UNIQUE KEY `path` (`path`(191)),
  1082. UNIQUE KEY `uri` (`uri`),
  1083. UNIQUE KEY `class_prefix` (`class_prefix`),
  1084. UNIQUE KEY `db_prefix` (`db_prefix`)
  1085. );
  1086. INSERT INTO `sys_modules` (`type`, `name`, `title`, `vendor`, `version`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `dependencies`, `date`, `enabled`) VALUES
  1087. ('module', 'system', 'System', 'UNA, Inc', '9', '', 'system', 'Bx', 'sys_', 'System', '', UNIX_TIMESTAMP(), 1);
  1088. CREATE TABLE `sys_modules_file_tracks` (
  1089. `id` int(11) unsigned NOT NULL auto_increment,
  1090. `module_id` int(11) unsigned NOT NULL default '0',
  1091. `file` varchar(255) NOT NULL default '',
  1092. `hash` varchar(64) NOT NULL default '',
  1093. PRIMARY KEY (`id`)
  1094. );
  1095. CREATE TABLE `sys_modules_relations` (
  1096. `id` int(11) unsigned NOT NULL auto_increment,
  1097. `module` varchar(32) NOT NULL default '',
  1098. `on_install` varchar(255) NOT NULL default '',
  1099. `on_uninstall` varchar(255) NOT NULL default '',
  1100. `on_enable` varchar(255) NOT NULL default '',
  1101. `on_disable` varchar(255) NOT NULL default '',
  1102. PRIMARY KEY (`id`)
  1103. );
  1104. -- --------------------------------------------------------
  1105. CREATE TABLE IF NOT EXISTS `sys_files` (
  1106. `id` int(11) NOT NULL AUTO_INCREMENT,
  1107. `profile_id` int(10) unsigned NOT NULL,
  1108. `remote_id` varchar(128) NOT NULL,
  1109. `path` varchar(255) NOT NULL,
  1110. `file_name` varchar(255) NOT NULL,
  1111. `mime_type` varchar(128) NOT NULL,
  1112. `ext` varchar(32) NOT NULL,
  1113. `size` bigint(20) NOT NULL,
  1114. `added` int(11) NOT NULL,
  1115. `modified` int(11) NOT NULL,
  1116. `private` int(11) NOT NULL,
  1117. PRIMARY KEY (`id`),
  1118. UNIQUE KEY `remote_id` (`remote_id`)
  1119. );
  1120. CREATE TABLE `sys_images` (
  1121. `id` int(11) NOT NULL AUTO_INCREMENT,
  1122. `profile_id` int(10) unsigned NOT NULL,
  1123. `remote_id` varchar(128) NOT NULL,
  1124. `path` varchar(255) NOT NULL,
  1125. `file_name` varchar(255) NOT NULL,
  1126. `mime_type` varchar(128) NOT NULL,
  1127. `ext` varchar(32) NOT NULL,
  1128. `size` bigint(20) NOT NULL,
  1129. `added` int(11) NOT NULL,
  1130. `modified` int(11) NOT NULL,
  1131. `private` int(11) NOT NULL,
  1132. PRIMARY KEY (`id`),
  1133. UNIQUE KEY `remote_id` (`remote_id`)
  1134. );
  1135. CREATE TABLE `sys_images_custom` (
  1136. `id` int(11) NOT NULL AUTO_INCREMENT,
  1137. `profile_id` int(10) unsigned NOT NULL,
  1138. `remote_id` varchar(128) NOT NULL,
  1139. `path` varchar(255) NOT NULL,
  1140. `file_name` varchar(255) NOT NULL,
  1141. `mime_type` varchar(128) NOT NULL,
  1142. `ext` varchar(32) NOT NULL,
  1143. `size` bigint(20) NOT NULL,
  1144. `added` int(11) NOT NULL,
  1145. `modified` int(11) NOT NULL,
  1146. `private` int(11) NOT NULL,
  1147. PRIMARY KEY (`id`),
  1148. UNIQUE KEY `remote_id` (`remote_id`)
  1149. );
  1150. CREATE TABLE `sys_images_resized` (
  1151. `id` int(11) NOT NULL AUTO_INCREMENT,
  1152. `profile_id` int(10) unsigned NOT NULL,
  1153. `remote_id` varchar(128) NOT NULL,
  1154. `path` varchar(255) NOT NULL,
  1155. `file_name` varchar(255) NOT NULL,
  1156. `mime_type` varchar(128) NOT NULL,
  1157. `ext` varchar(32) NOT NULL,
  1158. `size` bigint(20) NOT NULL,
  1159. `added` int(11) NOT NULL,
  1160. `modified` int(11) NOT NULL,
  1161. `private` int(11) NOT NULL,
  1162. PRIMARY KEY (`id`),
  1163. UNIQUE KEY `remote_id` (`remote_id`)
  1164. );
  1165. CREATE TABLE `sys_images_editor` (
  1166. `id` int(11) NOT NULL AUTO_INCREMENT,
  1167. `profile_id` int(10) unsigned NOT NULL,
  1168. `remote_id` varchar(128) NOT NULL,
  1169. `path` varchar(255) NOT NULL,
  1170. `file_name` varchar(255) NOT NULL,
  1171. `mime_type` varchar(128) NOT NULL,
  1172. `ext` varchar(32) NOT NULL,
  1173. `size` bigint(20) NOT NULL,
  1174. `added` int(11) NOT NULL,
  1175. `modified` int(11) NOT NULL,
  1176. `private` int(11) NOT NULL,
  1177. PRIMARY KEY (`id`),
  1178. UNIQUE KEY `remote_id` (`remote_id`)
  1179. );
  1180. CREATE TABLE `sys_images_editor_resized` (
  1181. `id` int(11) NOT NULL AUTO_INCREMENT,
  1182. `profile_id` int(10) unsigned NOT NULL,
  1183. `remote_id` varchar(128) NOT NULL,
  1184. `path` varchar(255) NOT NULL,
  1185. `file_name` varchar(255) NOT NULL,
  1186. `mime_type` varchar(128) NOT NULL,
  1187. `ext` varchar(32) NOT NULL,
  1188. `size` bigint(20) NOT NULL,
  1189. `added` int(11) NOT NULL,
  1190. `modified` int(11) NOT NULL,
  1191. `private` int(11) NOT NULL,
  1192. PRIMARY KEY (`id`),
  1193. UNIQUE KEY `remote_id` (`remote_id`)
  1194. );
  1195. -- --------------------------------------------------------
  1196. CREATE TABLE IF NOT EXISTS `sys_cmts_images` (
  1197. `id` int(11) NOT NULL AUTO_INCREMENT,
  1198. `profile_id` int(10) unsigned NOT NULL,
  1199. `remote_id` varchar(128) NOT NULL,
  1200. `path` varchar(255) NOT NULL,
  1201. `file_name` varchar(255) NOT NULL,
  1202. `mime_type` varchar(128) NOT NULL,
  1203. `ext` varchar(32) NOT NULL,
  1204. `size` bigint(20) NOT NULL,
  1205. `added` int(11) NOT NULL,
  1206. `modified` int(11) NOT NULL,
  1207. `private` int(11) NOT NULL,
  1208. PRIMARY KEY (`id`),
  1209. UNIQUE KEY `remote_id` (`remote_id`)
  1210. );
  1211. CREATE TABLE IF NOT EXISTS `sys_cmts_images_preview` (
  1212. `id` int(11) NOT NULL AUTO_INCREMENT,
  1213. `profile_id` int(10) unsigned NOT NULL,
  1214. `remote_id` varchar(128) NOT NULL,
  1215. `path` varchar(255) NOT NULL,
  1216. `file_name` varchar(255) NOT NULL,
  1217. `mime_type` varchar(128) NOT NULL,
  1218. `ext` varchar(32) NOT NULL,
  1219. `size` bigint(20) NOT NULL,
  1220. `added` int(11) NOT NULL,
  1221. `modified` int(11) NOT NULL,
  1222. `private` int(11) NOT NULL,
  1223. PRIMARY KEY (`id`),
  1224. UNIQUE KEY `remote_id` (`remote_id`)
  1225. );
  1226. CREATE TABLE IF NOT EXISTS `sys_cmts_images2entries` (
  1227. `id` int(11) NOT NULL AUTO_INCREMENT,
  1228. `system_id` int(11) NOT NULL DEFAULT '0',
  1229. `cmt_id` int(11) NOT NULL DEFAULT '0',
  1230. `image_id` int(11) NOT NULL DEFAULT '0',
  1231. PRIMARY KEY (`id`),
  1232. UNIQUE KEY `image` (`system_id`,`cmt_id`,`image_id`)
  1233. );
  1234. CREATE TABLE IF NOT EXISTS `sys_cmts_ids` (
  1235. `id` int(11) NOT NULL AUTO_INCREMENT,
  1236. `system_id` int(11) NOT NULL DEFAULT '0',
  1237. `cmt_id` int(11) NOT NULL DEFAULT '0',
  1238. `author_id` int(11) NOT NULL DEFAULT '0',
  1239. `rate` float NOT NULL default '0',
  1240. `votes` int(11) NOT NULL default '0',
  1241. `rrate` float NOT NULL default '0',
  1242. `rvotes` int(11) NOT NULL default '0',
  1243. `score` int(11) NOT NULL default '0',
  1244. `sc_up` int(11) NOT NULL default '0',
  1245. `sc_down` int(11) NOT NULL default '0',
  1246. `reports` int(11) NOT NULL default '0',
  1247. PRIMARY KEY (`id`),
  1248. UNIQUE KEY `system_cmt_id` (`system_id`,`cmt_id`)
  1249. );
  1250. CREATE TABLE IF NOT EXISTS `sys_cmts_meta_keywords` (
  1251. `object_id` int(10) unsigned NOT NULL,
  1252. `keyword` varchar(255) NOT NULL,
  1253. KEY `object_id` (`object_id`),
  1254. KEY `keyword` (`keyword`)
  1255. );
  1256. CREATE TABLE IF NOT EXISTS `sys_cmts_meta_mentions` (
  1257. `object_id` int(10) unsigned NOT NULL,
  1258. `profile_id` int(10) unsigned NOT NULL,
  1259. KEY `object_id` (`object_id`),
  1260. KEY `profile_id` (`profile_id`)
  1261. );
  1262. CREATE TABLE IF NOT EXISTS `sys_cmts_votes` (
  1263. `object_id` int(11) NOT NULL default '0',
  1264. `count` int(11) NOT NULL default '0',
  1265. `sum` int(11) NOT NULL default '0',
  1266. UNIQUE KEY `object_id` (`object_id`)
  1267. );
  1268. CREATE TABLE IF NOT EXISTS `sys_cmts_votes_track` (
  1269. `id` int(11) NOT NULL AUTO_INCREMENT,
  1270. `object_id` int(11) NOT NULL default '0',
  1271. `author_id` int(11) NOT NULL default '0',
  1272. `author_nip` int(11) unsigned NOT NULL default '0',
  1273. `value` tinyint(4) NOT NULL default '0',
  1274. `date` int(11) NOT NULL default '0',
  1275. PRIMARY KEY (`id`),
  1276. KEY `vote` (`object_id`, `author_nip`)
  1277. );
  1278. CREATE TABLE IF NOT EXISTS `sys_cmts_reactions` (
  1279. `object_id` int(11) NOT NULL default '0',
  1280. `reaction` varchar(32) NOT NULL default '',
  1281. `count` int(11) NOT NULL default '0',
  1282. `sum` int(11) NOT NULL default '0',
  1283. UNIQUE KEY `reaction` (`object_id`, `reaction`)
  1284. );
  1285. CREATE TABLE IF NOT EXISTS `sys_cmts_reactions_track` (
  1286. `id` int(11) NOT NULL AUTO_INCREMENT,
  1287. `object_id` int(11) NOT NULL default '0',
  1288. `author_id` int(11) NOT NULL default '0',
  1289. `author_nip` int(11) unsigned NOT NULL default '0',
  1290. `reaction` varchar(32) NOT NULL default '',
  1291. `value` tinyint(4) NOT NULL default '0',
  1292. `date` int(11) NOT NULL default '0',
  1293. PRIMARY KEY (`id`),
  1294. KEY `vote` (`object_id`, `author_nip`)
  1295. );
  1296. CREATE TABLE IF NOT EXISTS `sys_form_fields_votes` (
  1297. `object_id` int(11) NOT NULL default '0',
  1298. `count` int(11) NOT NULL default '0',
  1299. `sum` int(11) NOT NULL default '0',
  1300. UNIQUE KEY `object_id` (`object_id`)
  1301. );
  1302. CREATE TABLE IF NOT EXISTS `sys_form_fields_votes_track` (
  1303. `id` int(11) NOT NULL AUTO_INCREMENT,
  1304. `object_id` int(11) NOT NULL default '0',
  1305. `author_id` int(11) NOT NULL default '0',
  1306. `author_nip` int(11) unsigned NOT NULL default '0',
  1307. `value` tinyint(4) NOT NULL default '0',
  1308. `date` int(11) NOT NULL default '0',
  1309. PRIMARY KEY (`id`),
  1310. KEY `vote` (`object_id`, `author_nip`)
  1311. );
  1312. CREATE TABLE IF NOT EXISTS `sys_form_fields_reaction` (
  1313. `object_id` int(11) NOT NULL default '0',
  1314. `reaction` varchar(32) NOT NULL default '',
  1315. `count` int(11) NOT NULL default '0',
  1316. `sum` int(11) NOT NULL default '0',
  1317. UNIQUE KEY `reaction` (`object_id`, `reaction`)
  1318. );
  1319. CREATE TABLE IF NOT EXISTS `sys_form_fields_reaction_track` (
  1320. `id` int(11) NOT NULL AUTO_INCREMENT,
  1321. `object_id` int(11) NOT NULL default '0',
  1322. `author_id` int(11) NOT NULL default '0',
  1323. `author_nip` int(11) unsigned NOT NULL default '0',
  1324. `reaction` varchar(32) NOT NULL default '',
  1325. `value` tinyint(4) NOT NULL default '0',
  1326. `date` int(11) NOT NULL default '0',
  1327. PRIMARY KEY (`id`),
  1328. KEY `vote` (`object_id`, `author_nip`)
  1329. );
  1330. CREATE TABLE IF NOT EXISTS `sys_cmts_reports` (
  1331. `object_id` int(11) NOT NULL default '0',
  1332. `count` int(11) NOT NULL default '0',
  1333. UNIQUE KEY `object_id` (`object_id`)
  1334. );
  1335. CREATE TABLE IF NOT EXISTS `sys_cmts_reports_track` (
  1336. `id` int(11) NOT NULL AUTO_INCREMENT,
  1337. `object_id` int(11) NOT NULL default '0',
  1338. `author_id` int(11) NOT NULL default '0',
  1339. `author_nip` int(11) unsigned NOT NULL default '0',
  1340. `type` varchar(32) NOT NULL default '',
  1341. `text` text NOT NULL default '',
  1342. `date` int(11) NOT NULL default '0',
  1343. PRIMARY KEY (`id`),
  1344. KEY `report` (`object_id`, `author_nip`)
  1345. );
  1346. CREATE TABLE IF NOT EXISTS `sys_cmts_scores` (
  1347. `object_id` int(11) NOT NULL default '0',
  1348. `count_up` int(11) NOT NULL default '0',
  1349. `count_down` int(11) NOT NULL default '0',
  1350. UNIQUE KEY `object_id` (`object_id`)
  1351. );
  1352. CREATE TABLE IF NOT EXISTS `sys_cmts_scores_track` (
  1353. `id` int(11) NOT NULL AUTO_INCREMENT,
  1354. `object_id` int(11) NOT NULL default '0',
  1355. `author_id` int(11) NOT NULL default '0',
  1356. `author_nip` int(11) unsigned NOT NULL default '0',
  1357. `type` varchar(8) NOT NULL default '',
  1358. `date` int(11) NOT NULL default '0',
  1359. PRIMARY KEY (`id`),
  1360. KEY `vote` (`object_id`, `author_nip`)
  1361. );
  1362. -- --------------------------------------------------------
  1363. CREATE TABLE `sys_injections` (
  1364. `id` int(11) unsigned NOT NULL auto_increment,
  1365. `name` varchar(128) NOT NULL default '',
  1366. `page_index` int(11) NOT NULL default '0',
  1367. `key` varchar(128) NOT NULL default '',
  1368. `type` enum('text', 'service') NOT NULL default 'text',
  1369. `data` text NOT NULL default '',
  1370. `replace` TINYINT NOT NULL DEFAULT '0',
  1371. `active` TINYINT NOT NULL DEFAULT '1',
  1372. PRIMARY KEY (`id`)
  1373. );
  1374. INSERT INTO `sys_injections`(`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
  1375. ('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),
  1376. ('sys_head', 0, 'injection_head', 'text', '', 0, 1),
  1377. ('sys_body_class', 0, 'injection_body_class', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:13:"get_injection";s:6:"params";a:1:{i:0;s:10:"body_class";}s:5:"class";s:21:"TemplTemplateServices";}', 0, 1),
  1378. ('sys_body', 0, 'injection_footer', 'text', '', 0, 1);
  1379. -- --------------------------------------------------------
  1380. CREATE TABLE `sys_injections_admin` (
  1381. `id` int(11) unsigned NOT NULL auto_increment,
  1382. `name` varchar(128) NOT NULL default '',
  1383. `page_index` int(11) NOT NULL default '0',
  1384. `key` varchar(128) NOT NULL default '',
  1385. `type` enum('text','service') NOT NULL default 'text',
  1386. `data` text NOT NULL,
  1387. `replace` tinyint(4) NOT NULL default '0',
  1388. `active` tinyint(4) NOT NULL default '1',
  1389. PRIMARY KEY (`id`)
  1390. );
  1391. -- --------------------------------------------------------
  1392. CREATE TABLE `sys_permalinks` (
  1393. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1394. `standard` varchar(128) NOT NULL DEFAULT '',
  1395. `permalink` varchar(128) NOT NULL DEFAULT '',
  1396. `check` varchar(64) NOT NULL DEFAULT '',
  1397. `compare_by_prefix` tinyint(4) NOT NULL DEFAULT '0',
  1398. PRIMARY KEY (`id`),
  1399. UNIQUE KEY `check` (`standard`(80),`permalink`(80),`check`(30))
  1400. );
  1401. INSERT INTO `sys_permalinks` (`standard`, `permalink`, `check`, `compare_by_prefix`) VALUES
  1402. ('page.php?i=', 'page/', 'permalinks_pages', 1),
  1403. ('modules/?r=', 'm/', 'permalinks_modules', 1),
  1404. ('storage.php?o=', 's/', 'permalinks_storage', 1);
  1405. -- --------------------------------------------------------
  1406. CREATE TABLE `sys_audit` (
  1407. `id` int(11) unsigned NOT NULL auto_increment,
  1408. `added` int(11) NOT NULL,
  1409. `profile_id` int(10) NOT NULL,
  1410. `profile_title` varchar(255) NOT NULL,
  1411. `content_id` int(10) NOT NULL,
  1412. `content_title` varchar(255) NOT NULL,
  1413. `content_module` varchar(32) NOT NULL default '',
  1414. `content_info_object` varchar(32) NOT NULL default '',
  1415. `context_profile_id` int(10) NOT NULL,
  1416. `context_profile_title` varchar(255) NOT NULL,
  1417. `action_lang_key` varchar(255) NOT NULL,
  1418. `action_lang_key_params` text NOT NULL,
  1419. `extras` text NOT NULL,
  1420. PRIMARY KEY (`id`)
  1421. );
  1422. CREATE TABLE `sys_alerts_handlers` (
  1423. `id` int(11) unsigned NOT NULL auto_increment,
  1424. `name` varchar(128) NOT NULL default '',
  1425. `class` varchar(128) NOT NULL default '',
  1426. `file` varchar(255) NOT NULL default '',
  1427. `service_call` text NOT NULL default '',
  1428. PRIMARY KEY (`id`),
  1429. UNIQUE KEY `name` (`name`)
  1430. );
  1431. CREATE TABLE `sys_alerts` (
  1432. `id` int(11) unsigned NOT NULL auto_increment,
  1433. `unit` varchar(128) NOT NULL default '',
  1434. `action` varchar(32) NOT NULL default 'none',
  1435. `handler_id` int(11) NOT NULL default '0',
  1436. PRIMARY KEY (`id`),
  1437. UNIQUE KEY `alert_handler` (`unit`, `action`, `handler_id`)
  1438. );
  1439. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1440. ('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";}');
  1441. SET @iIdHandler = LAST_INSERT_ID();
  1442. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1443. ('system', 'save_setting', @iIdHandler);
  1444. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1445. ('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";}');
  1446. SET @iIdHandler = LAST_INSERT_ID();
  1447. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1448. ('sys_images_custom', 'file_deleted', @iIdHandler);
  1449. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1450. ('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";}');
  1451. SET @iHandler = LAST_INSERT_ID();
  1452. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1453. ('system', 'save_setting', @iHandler);
  1454. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1455. ('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";}');
  1456. SET @iHandler = LAST_INSERT_ID();
  1457. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1458. ('system', 'installed', @iHandler);
  1459. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1460. ('sys_connections', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:26:"alert_response_connections";s:5:"class";s:23:"TemplServiceConnections";}');
  1461. SET @iHandler = LAST_INSERT_ID();
  1462. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1463. ('sys_profiles_friends', 'connection_added', @iHandler),
  1464. ('sys_profiles_friends', 'connection_removed', @iHandler);
  1465. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1466. ('sys_cmts_sys_cmts_images_file_deleted', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:43:"alert_response_sys_cmts_images_file_deleted";s:6:"params";a:0:{}s:5:"class";s:17:"TemplCmtsServices";}');
  1467. SET @iIdHandler = LAST_INSERT_ID();
  1468. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1469. ('sys_cmts_images', 'file_deleted', @iIdHandler);
  1470. -- --------------------------------------------------------
  1471. CREATE TABLE `sys_badges` (
  1472. `id` int(11) unsigned NOT NULL auto_increment,
  1473. `added` int(11) NOT NULL,
  1474. `module` varchar(32) NOT NULL default '',
  1475. `text` varchar(255) NOT NULL default '',
  1476. `icon` varchar(255) NOT NULL default '',
  1477. `color` varchar(32) NOT NULL default '',
  1478. `fontcolor` varchar(32) NOT NULL default '',
  1479. `is_icon_only` tinyint(4) NOT NULL default '1',
  1480. PRIMARY KEY (`id`)
  1481. );
  1482. CREATE TABLE `sys_badges2objects` (
  1483. `id` int(11) unsigned NOT NULL auto_increment,
  1484. `badge_id` int(11) NOT NULL,
  1485. `object_id` int(11) NOT NULL,
  1486. `module` varchar(32) NOT NULL,
  1487. `added` int(11) NOT NULL,
  1488. PRIMARY KEY (`id`),
  1489. UNIQUE KEY `badge_object` (`object_id`, `badge_id`)
  1490. );
  1491. -- --------------------------------------------------------
  1492. CREATE TABLE `sys_objects_report` (
  1493. `id` int(11) NOT NULL auto_increment,
  1494. `name` varchar(64) NOT NULL,
  1495. `module` varchar(32) NOT NULL default '',
  1496. `table_main` varchar(32) NOT NULL,
  1497. `table_track` varchar(32) NOT NULL,
  1498. `is_on` tinyint(4) NOT NULL default '1',
  1499. `base_url` varchar(256) NOT NULL default '',
  1500. `object_comment` varchar(64) NOT NULL,
  1501. `trigger_table` varchar(32) NOT NULL,
  1502. `trigger_field_id` varchar(32) NOT NULL,
  1503. `trigger_field_author` varchar(32) NOT NULL,
  1504. `trigger_field_count` varchar(32) NOT NULL,
  1505. `class_name` varchar(32) NOT NULL default '',
  1506. `class_file` varchar(256) NOT NULL default '',
  1507. PRIMARY KEY (`id`)
  1508. );
  1509. INSERT INTO `sys_objects_report` (`name`, `module`, `table_main`, `table_track`, `is_on`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
  1510. ('sys_cmts', 'system', 'sys_cmts_reports', 'sys_cmts_reports_track', '1', '', 'sys_cmts_ids', 'id', 'author_id', 'reports', '', '');
  1511. -- --------------------------------------------------------
  1512. CREATE TABLE `sys_objects_view` (
  1513. `id` int(11) NOT NULL auto_increment,
  1514. `name` varchar(64) NOT NULL,
  1515. `module` varchar(32) NOT NULL default '',
  1516. `table_track` varchar(32) NOT NULL,
  1517. `period` int(11) NOT NULL default '86400',
  1518. `is_on` tinyint(4) NOT NULL default '1',
  1519. `trigger_table` varchar(32) NOT NULL,
  1520. `trigger_field_id` varchar(32) NOT NULL,
  1521. `trigger_field_author` varchar(32) NOT NULL,
  1522. `trigger_field_count` varchar(32) NOT NULL,
  1523. `class_name` varchar(32) NOT NULL default '',
  1524. `class_file` varchar(256) NOT NULL default '',
  1525. PRIMARY KEY (`id`)
  1526. );
  1527. -- --------------------------------------------------------
  1528. CREATE TABLE `sys_objects_favorite` (
  1529. `id` int(11) NOT NULL auto_increment,
  1530. `name` varchar(64) NOT NULL,
  1531. `table_track` varchar(32) NOT NULL,
  1532. `table_lists` varchar(32) NOT NULL,
  1533. `is_on` tinyint(4) NOT NULL default '1',
  1534. `is_undo` tinyint(4) NOT NULL default '1',
  1535. `is_public` tinyint(4) NOT NULL default '1',
  1536. `base_url` varchar(256) NOT NULL default '',
  1537. `trigger_table` varchar(32) NOT NULL,
  1538. `trigger_field_id` varchar(32) NOT NULL,
  1539. `trigger_field_author` varchar(32) NOT NULL,
  1540. `trigger_field_count` varchar(32) NOT NULL,
  1541. `class_name` varchar(32) NOT NULL default '',
  1542. `class_file` varchar(256) NOT NULL default '',
  1543. PRIMARY KEY (`id`)
  1544. );
  1545. -- --------------------------------------------------------
  1546. CREATE TABLE `sys_objects_feature` (
  1547. `id` int(11) NOT NULL auto_increment,
  1548. `name` varchar(64) NOT NULL,
  1549. `module` varchar(32) NOT NULL default '',
  1550. `is_on` tinyint(4) NOT NULL default '1',
  1551. `is_undo` tinyint(4) NOT NULL default '1',
  1552. `base_url` varchar(256) NOT NULL default '',
  1553. `trigger_table` varchar(32) NOT NULL,
  1554. `trigger_field_id` varchar(32) NOT NULL,
  1555. `trigger_field_author` varchar(32) NOT NULL,
  1556. `trigger_field_flag` varchar(32) NOT NULL,
  1557. `class_name` varchar(32) NOT NULL default '',
  1558. `class_file` varchar(256) NOT NULL default '',
  1559. PRIMARY KEY (`id`)
  1560. );
  1561. -- --------------------------------------------------------
  1562. CREATE TABLE `sys_objects_chart` (
  1563. `id` int(11) NOT NULL AUTO_INCREMENT,
  1564. `object` varchar(32) NOT NULL,
  1565. `title` varchar(255) NOT NULL,
  1566. `table` varchar(255) NOT NULL,
  1567. `field_date_ts` varchar(255) NOT NULL,
  1568. `field_date_dt` varchar(255) NOT NULL,
  1569. `field_status` varchar(255) NOT NULL,
  1570. `column_date` int(11) NOT NULL DEFAULT '0',
  1571. `column_count` int(11) NOT NULL DEFAULT '1',
  1572. `type` varchar(255) NOT NULL,
  1573. `options` text NOT NULL,
  1574. `query` text NOT NULL,
  1575. `active` tinyint(4) NOT NULL DEFAULT '1',
  1576. `order` int(11) NOT NULL,
  1577. `class_name` varchar(32) NOT NULL default '',
  1578. `class_file` varchar(256) NOT NULL default '',
  1579. PRIMARY KEY (`id`),
  1580. UNIQUE KEY `object` (`object`)
  1581. );
  1582. INSERT INTO `sys_objects_chart` (`object`, `title`, `table`, `field_date_ts`, `field_date_dt`, `field_status`, `query`, `active`, `order`, `class_name`, `class_file`) VALUES
  1583. ('sys_accounts_growth', '_sys_chart_accounts_growth', 'sys_accounts', 'added', '', '', '', 1, 1, 'BxDolChartGrowth', ''),
  1584. ('sys_accounts_growth_speed', '_sys_chart_accounts_growth_speed', 'sys_accounts', 'added', '', '', '', 1, 1, 'BxDolChartGrowthSpeed', '');
  1585. -- --------------------------------------------------------
  1586. CREATE TABLE `sys_objects_content_info` (
  1587. `id` int(11) NOT NULL auto_increment,
  1588. `name` varchar(64) NOT NULL,
  1589. `title` varchar(128) NOT NULL,
  1590. `alert_unit` varchar(32) NOT NULL,
  1591. `alert_action_add` varchar(32) NOT NULL,
  1592. `alert_action_update` varchar(32) NOT NULL,
  1593. `alert_action_delete` varchar(32) NOT NULL,
  1594. `class_name` varchar(32) NOT NULL default '',
  1595. `class_file` varchar(256) NOT NULL default '',
  1596. PRIMARY KEY (`id`),
  1597. UNIQUE KEY `name` (`name`),
  1598. UNIQUE KEY `alert_add` (`alert_unit` ,`alert_action_add`),
  1599. UNIQUE KEY `alert_update` (`alert_unit` ,`alert_action_update`),
  1600. UNIQUE KEY `alert_delete` (`alert_unit` ,`alert_action_delete`)
  1601. );
  1602. -- --------------------------------------------------------
  1603. CREATE TABLE `sys_content_info_grids` (
  1604. `id` int(11) NOT NULL auto_increment,
  1605. `object` varchar(64) NOT NULL,
  1606. `grid_object` varchar(64) NOT NULL,
  1607. `grid_field_id` varchar(64) NOT NULL,
  1608. `condition` text NOT NULL default '',
  1609. `selection` varchar(256) NOT NULL default '',
  1610. PRIMARY KEY (`id`),
  1611. UNIQUE KEY `grid_object` (`grid_object`)
  1612. );
  1613. -- --------------------------------------------------------
  1614. CREATE TABLE `sys_objects_privacy` (
  1615. `id` int(11) NOT NULL auto_increment,
  1616. `object` varchar(64) NOT NULL default '',
  1617. `module` varchar(64) NOT NULL default '',
  1618. `action` varchar(255) NOT NULL default '',
  1619. `title` varchar(255) NOT NULL default '',
  1620. `default_group` varchar(255) NOT NULL default '1',
  1621. `spaces` varchar(255) NOT NULL DEFAULT 'all',
  1622. `table` varchar(255) NOT NULL default '',
  1623. `table_field_id` varchar(255) NOT NULL default '',
  1624. `table_field_author` varchar(255) NOT NULL default '',
  1625. `override_class_name` varchar(255) NOT NULL default '',
  1626. `override_class_file` varchar(255) NOT NULL default '',
  1627. PRIMARY KEY (`id`),
  1628. UNIQUE KEY `object` (`object`),
  1629. UNIQUE KEY `action` (`module`(64), `action`(127))
  1630. );
  1631. INSERT INTO `sys_objects_privacy` (`object`, `module`, `action`, `title`, `default_group`, `table`, `table_field_id`, `table_field_author`, `override_class_name`, `override_class_file`) VALUES
  1632. ('sys_form_inputs_allow_view_to', 'system', 'view', '_sys_privacy_forms_input_allow_view_to', '3', 'sys_form_inputs_privacy', 'id', 'author_id', '', '');
  1633. CREATE TABLE `sys_privacy_defaults` (
  1634. `owner_id` int(11) NOT NULL default '0',
  1635. `action_id` int(11) NOT NULL default '0',
  1636. `group_id` int(11) NOT NULL default '0',
  1637. PRIMARY KEY (`owner_id`, `action_id`)
  1638. );
  1639. CREATE TABLE `sys_privacy_groups` (
  1640. `id` int(11) unsigned NOT NULL auto_increment,
  1641. `title` varchar(255) NOT NULL default '',
  1642. `check` text NOT NULL default '',
  1643. `active` tinyint(4) NOT NULL default '1',
  1644. `visible` tinyint(4) NOT NULL default '1',
  1645. PRIMARY KEY (`id`)
  1646. );
  1647. INSERT INTO `sys_privacy_groups`(`id`, `title`, `check`, `active`, `visible`) VALUES
  1648. ('1', '', '', 1, 0),
  1649. ('2', '_sys_ps_group_title_me_only', '@me_only', 1, 1),
  1650. ('3', '_sys_ps_group_title_public', '@public', 1, 1),
  1651. ('4', '_sys_ps_group_title_members', '@members', 0, 0),
  1652. ('5', '_sys_ps_group_title_friends', '@friends', 1, 1),
  1653. ('6', '_sys_ps_group_title_friends_selected', '@friends_selected_by_object', 1, 1),
  1654. ('7', '_sys_ps_group_title_relations', '@relations', 1, 1),
  1655. ('8', '_sys_ps_group_title_relations_selected', '@relations_selected_by_object', 1, 1),
  1656. ('9', '_sys_ps_group_title_custom', '@custom_by_object', 0, 0);
  1657. CREATE TABLE `sys_privacy_groups_custom` (
  1658. `id` int(11) unsigned NOT NULL auto_increment,
  1659. `profile_id` int(11) NOT NULL default '0',
  1660. `content_id` int(11) NOT NULL default '0',
  1661. `object` varchar(64) NOT NULL default '',
  1662. `group_id` int(11) NOT NULL default '0',
  1663. PRIMARY KEY (`id`),
  1664. UNIQUE KEY `content_privacy` (`profile_id`, `content_id`, `object`)
  1665. );
  1666. CREATE TABLE `sys_privacy_groups_custom_members` (
  1667. `group_id` int(11) NOT NULL default '0',
  1668. `member_id` int(11) NOT NULL default '0',
  1669. PRIMARY KEY (`group_id`, `member_id`)
  1670. );
  1671. -- --------------------------------------------------------
  1672. CREATE TABLE `sys_cron_jobs` (
  1673. `id` int(11) unsigned NOT NULL auto_increment,
  1674. `name` varchar(128) NOT NULL default '',
  1675. `time` varchar(128) NOT NULL default '*',
  1676. `class` varchar(128) NOT NULL default '',
  1677. `file` varchar(255) NOT NULL default '',
  1678. `service_call` text NOT NULL default '',
  1679. `ts` int(11) NOT NULL,
  1680. `timing` float NOT NULL,
  1681. PRIMARY KEY (`id`)
  1682. );
  1683. INSERT INTO `sys_cron_jobs` (`name`, `time`, `class`, `file`, `service_call`) VALUES
  1684. ('pruning', '0 0 * * *', 'BxDolCronPruning', 'inc/classes/BxDolCronPruning.php', ''),
  1685. ('sys_acl', '0 0 * * *', 'BxDolCronAcl', 'inc/classes/BxDolCronAcl.php', ''),
  1686. ('sys_account', '0 0 * * *', 'BxDolCronAccount', 'inc/classes/BxDolCronAccount.php', ''),
  1687. ('sys_upgrade', '0 3 * * *', 'BxDolCronUpgradeCheck', 'inc/classes/BxDolCronUpgradeCheck.php', ''),
  1688. ('sys_upgrade_modules', '30 2 * * *', 'BxDolCronUpgradeModulesCheck', 'inc/classes/BxDolCronUpgradeModulesCheck.php', ''),
  1689. ('sys_storage', '* * * * *', 'BxDolCronStorage', 'inc/classes/BxDolCronStorage.php', ''),
  1690. ('sys_transcoder', '* * * * *', 'BxDolCronTranscoder', 'inc/classes/BxDolCronTranscoder.php', ''),
  1691. ('sys_queue_email', '* * * * *', 'BxDolCronQueueEmail', 'inc/classes/BxDolCronQueueEmail.php', ''),
  1692. ('sys_queue_push', '* * * * *', 'BxDolCronQueuePush', 'inc/classes/BxDolCronQueuePush.php', ''),
  1693. ('sys_audit_clean', '* * * * *', 'BxDolCronAudit', 'inc/classes/BxDolCronAudit.php', '');
  1694. -- --------------------------------------------------------
  1695. CREATE TABLE IF NOT EXISTS `sys_objects_storage` (
  1696. `id` int(11) NOT NULL AUTO_INCREMENT,
  1697. `object` varchar(64) NOT NULL,
  1698. `engine` varchar(32) NOT NULL,
  1699. `params` text NOT NULL,
  1700. `token_life` int(11) NOT NULL,
  1701. `cache_control` int(11) NOT NULL,
  1702. `levels` tinyint(4) NOT NULL,
  1703. `table_files` varchar(64) NOT NULL,
  1704. `ext_mode` enum('allow-deny','deny-allow') NOT NULL,
  1705. `ext_allow` text NOT NULL,
  1706. `ext_deny` text NOT NULL,
  1707. `quota_size` int(11) NOT NULL,
  1708. `current_size` int(11) NOT NULL,
  1709. `quota_number` int(11) NOT NULL,
  1710. `current_number` int(11) NOT NULL,
  1711. `max_file_size` int(11) NOT NULL,
  1712. `ts` int(11) NOT NULL,
  1713. PRIMARY KEY (`id`),
  1714. UNIQUE KEY `object` (`object`)
  1715. );
  1716. 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
  1717. ('sys_images', 'Local', '', 360, 2592000, 0, 'sys_images', 'allow-deny', 'jpg,jpeg,jpe,gif,png,svg', '', 0, 0, 0, 0, 0, 0),
  1718. ('sys_images_custom', 'Local', '', 360, 2592000, 0, 'sys_images_custom', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1719. ('sys_images_resized', 'Local', '', 360, 2592000, 0, 'sys_images_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png,svg', '', 0, 0, 0, 0, 0, 0),
  1720. ('sys_cmts_images', 'Local', '', 360, 2592000, 3, 'sys_cmts_images', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1721. ('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),
  1722. ('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),
  1723. ('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),
  1724. ('sys_images_editor', 'Local', '', 360, 2592000, 3, 'sys_images_editor', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1725. ('sys_images_editor_resized', 'Local', '', 360, 2592000, 3, 'sys_images_editor_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0);
  1726. CREATE TABLE IF NOT EXISTS `sys_storage_user_quotas` (
  1727. `profile_id` int(11) NOT NULL,
  1728. `current_size` int(11) NOT NULL,
  1729. `current_number` int(11) NOT NULL,
  1730. `ts` int(11) NOT NULL,
  1731. PRIMARY KEY (`profile_id`)
  1732. );
  1733. CREATE TABLE IF NOT EXISTS `sys_storage_tokens` (
  1734. `id` int(11) NOT NULL,
  1735. `object` varchar(64) NOT NULL,
  1736. `hash` varchar(32) NOT NULL,
  1737. `created` int(10) unsigned NOT NULL,
  1738. UNIQUE KEY `id` (`id`,`object`,`hash`),
  1739. KEY `created` (`created`)
  1740. );
  1741. CREATE TABLE IF NOT EXISTS `sys_storage_ghosts` (
  1742. `id` int(11) NOT NULL,
  1743. `profile_id` int(10) unsigned NOT NULL,
  1744. `object` varchar(64) NOT NULL,
  1745. `content_id` int(11) NOT NULL,
  1746. `created` int(10) unsigned NOT NULL,
  1747. `order` int(11) NOT NULL default '0',
  1748. UNIQUE KEY `id` (`id`,`object`),
  1749. KEY `created` (`created`),
  1750. KEY `profile_object_content` (`profile_id`,`object`,`content_id`)
  1751. );
  1752. CREATE TABLE IF NOT EXISTS `sys_storage_deletions` (
  1753. `id` int(11) NOT NULL AUTO_INCREMENT,
  1754. `object` varchar(64) NOT NULL,
  1755. `file_id` int(11) NOT NULL,
  1756. `requested` int(10) unsigned NOT NULL,
  1757. PRIMARY KEY (`id`),
  1758. UNIQUE KEY `object_file_id` (`object`,`file_id`),
  1759. KEY `requested` (`requested`)
  1760. );
  1761. CREATE TABLE IF NOT EXISTS `sys_storage_mime_types` (
  1762. `ext` varchar(32) NOT NULL,
  1763. `mime_type` varchar(128) NOT NULL,
  1764. `icon` varchar(255) NOT NULL,
  1765. `icon_font` varchar(255) NOT NULL,
  1766. PRIMARY KEY (`ext`)
  1767. );
  1768. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1769. ('ez', 'application/andrew-inset', '', ''),
  1770. ('aw', 'application/applixware', '', ''),
  1771. ('atom', 'application/atom+xml', '', ''),
  1772. ('atomcat', 'application/atomcat+xml', '', ''),
  1773. ('atomsvc', 'application/atomsvc+xml', '', ''),
  1774. ('ccxml', 'application/ccxml+xml', '', ''),
  1775. ('cdmia', 'application/cdmi-capability', '', ''),
  1776. ('cdmic', 'application/cdmi-container', '', ''),
  1777. ('cdmid', 'application/cdmi-domain', '', ''),
  1778. ('cdmio', 'application/cdmi-object', '', ''),
  1779. ('cdmiq', 'application/cdmi-queue', '', ''),
  1780. ('cu', 'application/cu-seeme', '', ''),
  1781. ('davmount', 'application/davmount+xml', '', ''),
  1782. ('dbk', 'application/docbook+xml', '', ''),
  1783. ('dssc', 'application/dssc+der', '', ''),
  1784. ('xdssc', 'application/dssc+xml', '', ''),
  1785. ('ecma', 'application/ecmascript', '', ''),
  1786. ('emma', 'application/emma+xml', '', ''),
  1787. ('epub', 'application/epub+zip', '', ''),
  1788. ('exi', 'application/exi', '', ''),
  1789. ('pfr', 'application/font-tdpfr', '', ''),
  1790. ('gml', 'application/gml+xml', '', ''),
  1791. ('gpx', 'application/gpx+xml', '', ''),
  1792. ('gxf', 'application/gxf', '', ''),
  1793. ('stk', 'application/hyperstudio', '', ''),
  1794. ('ink', 'application/inkml+xml', '', ''),
  1795. ('inkml', 'application/inkml+xml', '', ''),
  1796. ('ipfix', 'application/ipfix', '', ''),
  1797. ('jar', 'application/java-archive', '', ''),
  1798. ('ser', 'application/java-serialized-object', '', ''),
  1799. ('class', 'application/java-vm', '', ''),
  1800. ('js', 'application/javascript', '', 'far file-code'),
  1801. ('json', 'application/json', '', 'far file-code'),
  1802. ('jsonml', 'application/jsonml+json', '', ''),
  1803. ('lostxml', 'application/lost+xml', '', ''),
  1804. ('hqx', 'application/mac-binhex40', '', ''),
  1805. ('cpt', 'application/mac-compactpro', '', ''),
  1806. ('mads', 'application/mads+xml', '', ''),
  1807. ('mrc', 'application/marc', '', ''),
  1808. ('mrcx', 'application/marcxml+xml', '', ''),
  1809. ('ma', 'application/mathematica', '', ''),
  1810. ('nb', 'application/mathematica', '', ''),
  1811. ('mb', 'application/mathematica', '', ''),
  1812. ('mathml', 'application/mathml+xml', '', ''),
  1813. ('mbox', 'application/mbox', '', 'far file-code'),
  1814. ('mscml', 'application/mediaservercontrol+xml', '', ''),
  1815. ('metalink', 'application/metalink+xml', '', ''),
  1816. ('meta4', 'application/metalink4+xml', '', ''),
  1817. ('mets', 'application/mets+xml', '', ''),
  1818. ('mods', 'application/mods+xml', '', ''),
  1819. ('m21', 'application/mp21', '', ''),
  1820. ('mp21', 'application/mp21', '', ''),
  1821. ('mp4s', 'application/mp4', '', ''),
  1822. ('doc', 'application/msword', 'mime-type-document.png', 'far file-word'),
  1823. ('dot', 'application/msword', '', ''),
  1824. ('mxf', 'application/mxf', '', ''),
  1825. ('bin', 'application/octet-stream', '', ''),
  1826. ('dms', 'application/octet-stream', '', ''),
  1827. ('lrf', 'application/octet-stream', '', ''),
  1828. ('mar', 'application/octet-stream', '', ''),
  1829. ('so', 'application/octet-stream', '', ''),
  1830. ('dist', 'application/octet-stream', '', ''),
  1831. ('distz', 'application/octet-stream', '', ''),
  1832. ('pkg', 'application/octet-stream', '', ''),
  1833. ('bpk', 'application/octet-stream', '', ''),
  1834. ('dump', 'application/octet-stream', '', ''),
  1835. ('elc', 'application/octet-stream', '', ''),
  1836. ('deploy', 'application/octet-stream', '', ''),
  1837. ('mobipocket-ebook', 'application/octet-stream', '', ''),
  1838. ('oda', 'application/oda', '', ''),
  1839. ('opf', 'application/oebps-package+xml', '', ''),
  1840. ('ogx', 'application/ogg', '', ''),
  1841. ('omdoc', 'application/omdoc+xml', '', ''),
  1842. ('onetoc', 'application/onenote', '', ''),
  1843. ('onetoc2', 'application/onenote', '', ''),
  1844. ('onetmp', 'application/onenote', '', ''),
  1845. ('onepkg', 'application/onenote', '', ''),
  1846. ('oxps', 'application/oxps', '', ''),
  1847. ('xer', 'application/patch-ops-error+xml', '', ''),
  1848. ('pdf', 'application/pdf', 'mime-type-document.png', 'far file-pdf'),
  1849. ('pgp', 'application/pgp-encrypted', '', 'far file-code'),
  1850. ('asc', 'application/pgp-signature', '', 'far file-code'),
  1851. ('sig', 'application/pgp-signature', '', 'far file-code'),
  1852. ('prf', 'application/pics-rules', '', ''),
  1853. ('p10', 'application/pkcs10', 'mime-type-vector.png', ''),
  1854. ('p7m', 'application/pkcs7-mime', '', ''),
  1855. ('p7c', 'application/pkcs7-mime', '', ''),
  1856. ('p7s', 'application/pkcs7-signature', '', ''),
  1857. ('p8', 'application/pkcs8', '', ''),
  1858. ('ac', 'application/pkix-attr-cert', '', ''),
  1859. ('cer', 'application/pkix-cert', '', ''),
  1860. ('crl', 'application/pkix-crl', '', ''),
  1861. ('pkipath', 'application/pkix-pkipath', '', ''),
  1862. ('pki', 'application/pkixcmp', '', ''),
  1863. ('pls', 'application/pls+xml', '', ''),
  1864. ('ai', 'application/postscript', 'mime-type-vector.png', ''),
  1865. ('eps', 'application/postscript', '', ''),
  1866. ('ps', 'application/postscript', 'mime-type-vector.png', ''),
  1867. ('cww', 'application/prs.cww', '', ''),
  1868. ('pskcxml', 'application/pskc+xml', '', ''),
  1869. ('rdf', 'application/rdf+xml', '', 'far file-code'),
  1870. ('rif', 'application/reginfo+xml', '', ''),
  1871. ('rnc', 'application/relax-ng-compact-syntax', '', ''),
  1872. ('rl', 'application/resource-lists+xml', '', ''),
  1873. ('rld', 'application/resource-lists-diff+xml', '', ''),
  1874. ('rs', 'application/rls-services+xml', '', ''),
  1875. ('gbr', 'application/rpki-ghostbusters', '', ''),
  1876. ('mft', 'application/rpki-manifest', '', ''),
  1877. ('roa', 'application/rpki-roa', '', ''),
  1878. ('rsd', 'application/rsd+xml', '', ''),
  1879. ('rss', 'application/rss+xml', '', 'far file-code'),
  1880. ('rtf', 'application/rtf', 'mime-type-document.png', ''),
  1881. ('sbml', 'application/sbml+xml', '', ''),
  1882. ('scq', 'application/scvp-cv-request', '', ''),
  1883. ('scs', 'application/scvp-cv-response', '', ''),
  1884. ('spq', 'application/scvp-vp-request', '', ''),
  1885. ('spp', 'application/scvp-vp-response', '', ''),
  1886. ('sdp', 'application/sdp', 'mime-type-presentation.png', 'far file-powerpoint'),
  1887. ('setpay', 'application/set-payment-initiation', '', ''),
  1888. ('setreg', 'application/set-registration-initiation', '', ''),
  1889. ('shf', 'application/shf+xml', '', ''),
  1890. ('smi', 'application/smil+xml', '', ''),
  1891. ('smil', 'application/smil+xml', '', ''),
  1892. ('rq', 'application/sparql-query', '', 'far file-code'),
  1893. ('srx', 'application/sparql-results+xml', '', ''),
  1894. ('gram', 'application/srgs', '', ''),
  1895. ('grxml', 'application/srgs+xml', '', ''),
  1896. ('sru', 'application/sru+xml', '', ''),
  1897. ('ssdl', 'application/ssdl+xml', '', ''),
  1898. ('ssml', 'application/ssml+xml', '', ''),
  1899. ('tei', 'application/tei+xml', '', ''),
  1900. ('teicorpus', 'application/tei+xml', '', ''),
  1901. ('tfi', 'application/thraud+xml', '', ''),
  1902. ('tsd', 'application/timestamped-data', '', ''),
  1903. ('plb', 'application/vnd.3gpp.pic-bw-large', '', ''),
  1904. ('psb', 'application/vnd.3gpp.pic-bw-small', '', ''),
  1905. ('pvb', 'application/vnd.3gpp.pic-bw-var', '', ''),
  1906. ('tcap', 'application/vnd.3gpp2.tcap', '', ''),
  1907. ('pwn', 'application/vnd.3m.post-it-notes', '', ''),
  1908. ('aso', 'application/vnd.accpac.simply.aso', '', ''),
  1909. ('imp', 'application/vnd.accpac.simply.imp', '', ''),
  1910. ('acu', 'application/vnd.acucobol', '', ''),
  1911. ('atc', 'application/vnd.acucorp', '', ''),
  1912. ('acutc', 'application/vnd.acucorp', '', ''),
  1913. ('air', 'application/vnd.adobe.air-application-installer-package+zip', '', ''),
  1914. ('fcdt', 'application/vnd.adobe.formscentral.fcdt', '', ''),
  1915. ('fxp', 'application/vnd.adobe.fxp', '', ''),
  1916. ('fxpl', 'application/vnd.adobe.fxp', '', ''),
  1917. ('xdp', 'application/vnd.adobe.xdp+xml', '', ''),
  1918. ('xfdf', 'application/vnd.adobe.xfdf', '', ''),
  1919. ('ahead', 'application/vnd.ahead.space', '', ''),
  1920. ('azf', 'application/vnd.airzip.filesecure.azf', '', ''),
  1921. ('azs', 'application/vnd.airzip.filesecure.azs', '', ''),
  1922. ('azw', 'application/vnd.amazon.ebook', '', ''),
  1923. ('acc', 'application/vnd.americandynamics.acc', '', ''),
  1924. ('ami', 'application/vnd.amiga.ami', '', ''),
  1925. ('apk', 'application/vnd.android.package-archive', '', ''),
  1926. ('cii', 'application/vnd.anser-web-certificate-issue-initiation', '', ''),
  1927. ('fti', 'application/vnd.anser-web-funds-transfer-initiation', '', ''),
  1928. ('atx', 'application/vnd.antix.game-component', '', ''),
  1929. ('mpkg', 'application/vnd.apple.installer+xml', '', ''),
  1930. ('m3u8', 'application/vnd.apple.mpegurl', '', ''),
  1931. ('swi', 'application/vnd.aristanetworks.swi', '', ''),
  1932. ('iota', 'application/vnd.astraea-software.iota', '', ''),
  1933. ('aep', 'application/vnd.audiograph', '', ''),
  1934. ('mpm', 'application/vnd.blueice.multipass', '', ''),
  1935. ('bmi', 'application/vnd.bmi', '', ''),
  1936. ('rep', 'application/vnd.businessobjects', '', ''),
  1937. ('cdxml', 'application/vnd.chemdraw+xml', '', ''),
  1938. ('mmd', 'application/vnd.chipnuts.karaoke-mmd', '', ''),
  1939. ('cdy', 'application/vnd.cinderella', '', ''),
  1940. ('cla', 'application/vnd.claymore', '', ''),
  1941. ('rp9', 'application/vnd.cloanto.rp9', '', ''),
  1942. ('c4g', 'application/vnd.clonk.c4group', '', ''),
  1943. ('c4d', 'application/vnd.clonk.c4group', '', ''),
  1944. ('c4f', 'application/vnd.clonk.c4group', '', ''),
  1945. ('c4p', 'application/vnd.clonk.c4group', '', ''),
  1946. ('c4u', 'application/vnd.clonk.c4group', '', ''),
  1947. ('c11amc', 'application/vnd.cluetrust.cartomobile-config', '', ''),
  1948. ('c11amz', 'application/vnd.cluetrust.cartomobile-config-pkg', '', ''),
  1949. ('csp', 'application/vnd.commonspace', '', ''),
  1950. ('cdbcmsg', 'application/vnd.contact.cmsg', '', ''),
  1951. ('cmc', 'application/vnd.cosmocaller', '', ''),
  1952. ('clkx', 'application/vnd.crick.clicker', '', ''),
  1953. ('clkk', 'application/vnd.crick.clicker.keyboard', '', ''),
  1954. ('clkp', 'application/vnd.crick.clicker.palette', '', ''),
  1955. ('clkt', 'application/vnd.crick.clicker.template', '', ''),
  1956. ('clkw', 'application/vnd.crick.clicker.wordbank', '', ''),
  1957. ('wbs', 'application/vnd.criticaltools.wbs+xml', '', ''),
  1958. ('pml', 'application/vnd.ctc-posml', '', ''),
  1959. ('ppd', 'application/vnd.cups-ppd', '', ''),
  1960. ('car', 'application/vnd.curl.car', '', ''),
  1961. ('pcurl', 'application/vnd.curl.pcurl', '', ''),
  1962. ('dart', 'application/vnd.dart', '', ''),
  1963. ('rdz', 'application/vnd.data-vision.rdz', '', ''),
  1964. ('uvf', 'application/vnd.dece.data', '', ''),
  1965. ('uvvf', 'application/vnd.dece.data', '', ''),
  1966. ('uvd', 'application/vnd.dece.data', '', ''),
  1967. ('uvvd', 'application/vnd.dece.data', '', ''),
  1968. ('uvt', 'application/vnd.dece.ttml+xml', '', ''),
  1969. ('uvvt', 'application/vnd.dece.ttml+xml', '', ''),
  1970. ('uvx', 'application/vnd.dece.unspecified', '', ''),
  1971. ('uvvx', 'application/vnd.dece.unspecified', '', ''),
  1972. ('uvz', 'application/vnd.dece.zip', '', ''),
  1973. ('uvvz', 'application/vnd.dece.zip', '', ''),
  1974. ('fe_launch', 'application/vnd.denovo.fcselayout-link', '', ''),
  1975. ('dna', 'application/vnd.dna', '', ''),
  1976. ('mlp', 'application/vnd.dolby.mlp', '', ''),
  1977. ('dpg', 'application/vnd.dpgraph', '', ''),
  1978. ('dfac', 'application/vnd.dreamfactory', '', ''),
  1979. ('kpxx', 'application/vnd.ds-keypoint', '', ''),
  1980. ('ait', 'application/vnd.dvb.ait', 'mime-type-vector.png', ''),
  1981. ('svc', 'application/vnd.dvb.service', '', '');
  1982. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1983. ('geo', 'application/vnd.dynageo', '', ''),
  1984. ('mag', 'application/vnd.ecowin.chart', '', ''),
  1985. ('nml', 'application/vnd.enliven', '', ''),
  1986. ('esf', 'application/vnd.epson.esf', '', ''),
  1987. ('msf', 'application/vnd.epson.msf', '', ''),
  1988. ('qam', 'application/vnd.epson.quickanime', '', ''),
  1989. ('slt', 'application/vnd.epson.salt', '', ''),
  1990. ('ssf', 'application/vnd.epson.ssf', '', ''),
  1991. ('es3', 'application/vnd.eszigno3+xml', '', ''),
  1992. ('et3', 'application/vnd.eszigno3+xml', '', ''),
  1993. ('ez2', 'application/vnd.ezpix-album', '', ''),
  1994. ('ez3', 'application/vnd.ezpix-package', '', ''),
  1995. ('fdf', 'application/vnd.fdf', '', ''),
  1996. ('mseed', 'application/vnd.fdsn.mseed', '', ''),
  1997. ('seed', 'application/vnd.fdsn.seed', '', ''),
  1998. ('dataless', 'application/vnd.fdsn.seed', '', ''),
  1999. ('gph', 'application/vnd.flographit', '', ''),
  2000. ('ftc', 'application/vnd.fluxtime.clip', '', ''),
  2001. ('fm', 'application/vnd.framemaker', '', ''),
  2002. ('frame', 'application/vnd.framemaker', '', ''),
  2003. ('maker', 'application/vnd.framemaker', '', ''),
  2004. ('book', 'application/vnd.framemaker', '', ''),
  2005. ('fnc', 'application/vnd.frogans.fnc', '', ''),
  2006. ('ltf', 'application/vnd.frogans.ltf', '', ''),
  2007. ('fsc', 'application/vnd.fsc.weblaunch', '', ''),
  2008. ('oas', 'application/vnd.fujitsu.oasys', '', ''),
  2009. ('oa2', 'application/vnd.fujitsu.oasys2', '', ''),
  2010. ('oa3', 'application/vnd.fujitsu.oasys3', '', ''),
  2011. ('fg5', 'application/vnd.fujitsu.oasysgp', '', ''),
  2012. ('bh2', 'application/vnd.fujitsu.oasysprs', '', ''),
  2013. ('ddd', 'application/vnd.fujixerox.ddd', '', ''),
  2014. ('xdw', 'application/vnd.fujixerox.docuworks', '', ''),
  2015. ('xbd', 'application/vnd.fujixerox.docuworks.binder', '', ''),
  2016. ('fzs', 'application/vnd.fuzzysheet', '', ''),
  2017. ('txd', 'application/vnd.genomatix.tuxedo', '', ''),
  2018. ('ggb', 'application/vnd.geogebra.file', '', ''),
  2019. ('ggt', 'application/vnd.geogebra.tool', '', ''),
  2020. ('gex', 'application/vnd.geometry-explorer', '', ''),
  2021. ('gre', 'application/vnd.geometry-explorer', '', ''),
  2022. ('gxt', 'application/vnd.geonext', '', ''),
  2023. ('g2w', 'application/vnd.geoplan', '', ''),
  2024. ('g3w', 'application/vnd.geospace', '', ''),
  2025. ('gmx', 'application/vnd.gmx', '', ''),
  2026. ('kml', 'application/vnd.google-earth.kml+xml', '', ''),
  2027. ('kmz', 'application/vnd.google-earth.kmz', '', ''),
  2028. ('gqf', 'application/vnd.grafeq', '', ''),
  2029. ('gqs', 'application/vnd.grafeq', '', ''),
  2030. ('gac', 'application/vnd.groove-account', '', ''),
  2031. ('ghf', 'application/vnd.groove-help', '', ''),
  2032. ('gim', 'application/vnd.groove-identity-message', '', ''),
  2033. ('grv', 'application/vnd.groove-injector', '', ''),
  2034. ('gtm', 'application/vnd.groove-tool-message', '', ''),
  2035. ('tpl', 'application/vnd.groove-tool-template', '', 'far file-code'),
  2036. ('vcg', 'application/vnd.groove-vcard', '', ''),
  2037. ('hal', 'application/vnd.hal+xml', '', ''),
  2038. ('zmm', 'application/vnd.handheld-entertainment+xml', '', ''),
  2039. ('hbci', 'application/vnd.hbci', '', ''),
  2040. ('les', 'application/vnd.hhe.lesson-player', '', ''),
  2041. ('hpgl', 'application/vnd.hp-hpgl', 'mime-type-vector.png', ''),
  2042. ('hpid', 'application/vnd.hp-hpid', '', ''),
  2043. ('hps', 'application/vnd.hp-hps', '', ''),
  2044. ('jlt', 'application/vnd.hp-jlyt', '', ''),
  2045. ('pcl', 'application/vnd.hp-pcl', '', ''),
  2046. ('pclxl', 'application/vnd.hp-pclxl', '', ''),
  2047. ('sfd-hdstx', 'application/vnd.hydrostatix.sof-data', '', ''),
  2048. ('mpy', 'application/vnd.ibm.minipay', '', ''),
  2049. ('afp', 'application/vnd.ibm.modcap', '', ''),
  2050. ('listafp', 'application/vnd.ibm.modcap', '', ''),
  2051. ('list3820', 'application/vnd.ibm.modcap', '', ''),
  2052. ('irm', 'application/vnd.ibm.rights-management', '', ''),
  2053. ('sc', 'application/vnd.ibm.secure-container', '', ''),
  2054. ('icc', 'application/vnd.iccprofile', '', ''),
  2055. ('icm', 'application/vnd.iccprofile', '', ''),
  2056. ('igl', 'application/vnd.igloader', '', ''),
  2057. ('ivp', 'application/vnd.immervision-ivp', '', ''),
  2058. ('ivu', 'application/vnd.immervision-ivu', '', ''),
  2059. ('igm', 'application/vnd.insors.igm', '', ''),
  2060. ('xpw', 'application/vnd.intercon.formnet', '', ''),
  2061. ('xpx', 'application/vnd.intercon.formnet', '', ''),
  2062. ('i2g', 'application/vnd.intergeo', '', ''),
  2063. ('qbo', 'application/vnd.intu.qbo', '', ''),
  2064. ('qfx', 'application/vnd.intu.qfx', '', ''),
  2065. ('rcprofile', 'application/vnd.ipunplugged.rcprofile', '', ''),
  2066. ('irp', 'application/vnd.irepository.package+xml', '', ''),
  2067. ('xpr', 'application/vnd.is-xpr', '', ''),
  2068. ('fcs', 'application/vnd.isac.fcs', '', ''),
  2069. ('jam', 'application/vnd.jam', '', ''),
  2070. ('rms', 'application/vnd.jcp.javame.midlet-rms', '', ''),
  2071. ('jisp', 'application/vnd.jisp', '', ''),
  2072. ('joda', 'application/vnd.joost.joda-archive', '', ''),
  2073. ('ktz', 'application/vnd.kahootz', '', ''),
  2074. ('ktr', 'application/vnd.kahootz', '', ''),
  2075. ('karbon', 'application/vnd.kde.karbon', '', ''),
  2076. ('chrt', 'application/vnd.kde.kchart', '', ''),
  2077. ('kfo', 'application/vnd.kde.kformula', '', ''),
  2078. ('flw', 'application/vnd.kde.kivio', '', ''),
  2079. ('kon', 'application/vnd.kde.kontour', '', ''),
  2080. ('kpr', 'application/vnd.kde.kpresenter', '', ''),
  2081. ('kpt', 'application/vnd.kde.kpresenter', '', ''),
  2082. ('ksp', 'application/vnd.kde.kspread', '', ''),
  2083. ('kwd', 'application/vnd.kde.kword', '', ''),
  2084. ('kwt', 'application/vnd.kde.kword', '', ''),
  2085. ('htke', 'application/vnd.kenameaapp', '', ''),
  2086. ('kia', 'application/vnd.kidspiration', '', ''),
  2087. ('kne', 'application/vnd.kinar', '', ''),
  2088. ('knp', 'application/vnd.kinar', '', ''),
  2089. ('skp', 'application/vnd.koan', '', ''),
  2090. ('skd', 'application/vnd.koan', '', ''),
  2091. ('skt', 'application/vnd.koan', '', ''),
  2092. ('skm', 'application/vnd.koan', '', ''),
  2093. ('sse', 'application/vnd.kodak-descriptor', '', ''),
  2094. ('lasxml', 'application/vnd.las.las+xml', '', ''),
  2095. ('lbd', 'application/vnd.llamagraphics.life-balance.desktop', '', ''),
  2096. ('lbe', 'application/vnd.llamagraphics.life-balance.exchange+xml', '', ''),
  2097. ('123', 'application/vnd.lotus-1-2-3', '', ''),
  2098. ('apr', 'application/vnd.lotus-approach', '', ''),
  2099. ('pre', 'application/vnd.lotus-freelance', '', ''),
  2100. ('nsf', 'application/vnd.lotus-notes', '', ''),
  2101. ('org', 'application/vnd.lotus-organizer', '', ''),
  2102. ('scm', 'application/vnd.lotus-screencam', '', ''),
  2103. ('lwp', 'application/vnd.lotus-wordpro', '', ''),
  2104. ('portpkg', 'application/vnd.macports.portpkg', '', ''),
  2105. ('mcd', 'application/vnd.mcd', '', ''),
  2106. ('mc1', 'application/vnd.medcalcdata', '', ''),
  2107. ('cdkey', 'application/vnd.mediastation.cdkey', '', ''),
  2108. ('mwf', 'application/vnd.mfer', '', ''),
  2109. ('mfm', 'application/vnd.mfmp', '', ''),
  2110. ('flo', 'application/vnd.micrografx.flo', '', ''),
  2111. ('igx', 'application/vnd.micrografx.igx', '', ''),
  2112. ('mif', 'application/vnd.mif', '', ''),
  2113. ('daf', 'application/vnd.mobius.daf', '', ''),
  2114. ('dis', 'application/vnd.mobius.dis', '', ''),
  2115. ('mbk', 'application/vnd.mobius.mbk', '', ''),
  2116. ('mqy', 'application/vnd.mobius.mqy', '', ''),
  2117. ('msl', 'application/vnd.mobius.msl', '', ''),
  2118. ('plc', 'application/vnd.mobius.plc', '', ''),
  2119. ('txf', 'application/vnd.mobius.txf', '', ''),
  2120. ('mpn', 'application/vnd.mophun.application', '', ''),
  2121. ('mpc', 'application/vnd.mophun.certificate', '', ''),
  2122. ('xul', 'application/vnd.mozilla.xul+xml', '', ''),
  2123. ('cil', 'application/vnd.ms-artgalry', 'mime-type-vector.png', ''),
  2124. ('taxi', 'application/vnd.ms-cab-compressed', 'mime-type-archive.png', 'far file-archive'),
  2125. ('xls', 'application/vnd.ms-excel', 'mime-type-spreadsheet.png', 'far file-excel'),
  2126. ('xlm', 'application/vnd.ms-excel', '', ''),
  2127. ('xla', 'application/vnd.ms-excel', '', ''),
  2128. ('xlc', 'application/vnd.ms-excel', '', ''),
  2129. ('xlt', 'application/vnd.ms-excel', 'mime-type-spreadsheet.png', 'far file-excel'),
  2130. ('xlw', 'application/vnd.ms-excel', '', ''),
  2131. ('xlam', 'application/vnd.ms-excel.addin.macroenabled.12', '', ''),
  2132. ('xlsb', 'application/vnd.ms-excel.sheet.binary.macroenabled.12', '', ''),
  2133. ('xlsm', 'application/vnd.ms-excel.sheet.macroenabled.12', '', ''),
  2134. ('xltm', 'application/vnd.ms-excel.template.macroenabled.12', '', ''),
  2135. ('eot', 'application/vnd.ms-fontobject', '', ''),
  2136. ('chm', 'application/vnd.ms-htmlhelp', '', ''),
  2137. ('ims', 'application/vnd.ms-ims', '', ''),
  2138. ('lrm', 'application/vnd.ms-lrm', '', ''),
  2139. ('thmx', 'application/vnd.ms-officetheme', '', ''),
  2140. ('cat', 'application/vnd.ms-pki.seccat', '', ''),
  2141. ('stl', 'application/vnd.ms-pki.stl', '', ''),
  2142. ('ppt', 'application/vnd.ms-powerpoint', 'mime-type-presentation.png', 'far file-powerpoint'),
  2143. ('pps', 'application/vnd.ms-powerpoint', '', ''),
  2144. ('pot', 'application/vnd.ms-powerpoint', '', ''),
  2145. ('ppam', 'application/vnd.ms-powerpoint.addin.macroenabled.12', '', ''),
  2146. ('pptm', 'application/vnd.ms-powerpoint.presentation.macroenabled.12', '', ''),
  2147. ('sldm', 'application/vnd.ms-powerpoint.slide.macroenabled.12', '', ''),
  2148. ('ppsm', 'application/vnd.ms-powerpoint.slideshow.macroenabled.12', '', ''),
  2149. ('potm', 'application/vnd.ms-powerpoint.template.macroenabled.12', '', ''),
  2150. ('mpp', 'application/vnd.ms-project', '', ''),
  2151. ('mpt', 'application/vnd.ms-project', '', ''),
  2152. ('docm', 'application/vnd.ms-word.document.macroenabled.12', '', ''),
  2153. ('dotm', 'application/vnd.ms-word.template.macroenabled.12', '', ''),
  2154. ('wps', 'application/vnd.ms-works', '', ''),
  2155. ('wks', 'application/vnd.ms-works', '', ''),
  2156. ('wcm', 'application/vnd.ms-works', '', ''),
  2157. ('wdb', 'application/vnd.ms-works', '', ''),
  2158. ('wpl', 'application/vnd.ms-wpl', '', ''),
  2159. ('xps', 'application/vnd.ms-xpsdocument', '', ''),
  2160. ('mseq', 'application/vnd.mseq', '', ''),
  2161. ('mus', 'application/vnd.musician', '', ''),
  2162. ('msty', 'application/vnd.muvee.style', '', ''),
  2163. ('taglet', 'application/vnd.mynfc', '', ''),
  2164. ('nlu', 'application/vnd.neurolanguage.nlu', '', ''),
  2165. ('ntf', 'application/vnd.nitf', '', ''),
  2166. ('nitf', 'application/vnd.nitf', '', ''),
  2167. ('nnd', 'application/vnd.noblenet-directory', '', ''),
  2168. ('nns', 'application/vnd.noblenet-sealer', '', ''),
  2169. ('nnw', 'application/vnd.noblenet-web', '', ''),
  2170. ('ngdat', 'application/vnd.nokia.n-gage.data', '', ''),
  2171. ('n-gage', 'application/vnd.nokia.n-gage.symbian.install', '', ''),
  2172. ('rpst', 'application/vnd.nokia.radio-preset', '', ''),
  2173. ('rpss', 'application/vnd.nokia.radio-presets', '', ''),
  2174. ('edm', 'application/vnd.novadigm.edm', '', ''),
  2175. ('edx', 'application/vnd.novadigm.edx', '', ''),
  2176. ('ext', 'application/vnd.novadigm.ext', '', ''),
  2177. ('odc', 'application/vnd.oasis.opendocument.chart', '', ''),
  2178. ('otc', 'application/vnd.oasis.opendocument.chart-template', '', ''),
  2179. ('odb', 'application/vnd.oasis.opendocument.database', '', ''),
  2180. ('odf', 'application/vnd.oasis.opendocument.formula', '', ''),
  2181. ('odft', 'application/vnd.oasis.opendocument.formula-template', '', '');
  2182. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2183. ('odg', 'application/vnd.oasis.opendocument.graphics', 'mime-type-vector.png', ''),
  2184. ('otg', 'application/vnd.oasis.opendocument.graphics-template', '', ''),
  2185. ('odi', 'application/vnd.oasis.opendocument.image', '', ''),
  2186. ('oti', 'application/vnd.oasis.opendocument.image-template', '', ''),
  2187. ('odp', 'application/vnd.oasis.opendocument.presentation', 'mime-type-presentation.png', 'far file-powerpoint'),
  2188. ('otp', 'application/vnd.oasis.opendocument.presentation-template', '', ''),
  2189. ('ods', 'application/vnd.oasis.opendocument.spreadsheet', 'mime-type-spreadsheet.png', 'far file-excel'),
  2190. ('ots', 'application/vnd.oasis.opendocument.spreadsheet-template', 'mime-type-spreadsheet.png', 'far file-excel'),
  2191. ('odt', 'application/vnd.oasis.opendocument.text', 'mime-type-document.png', ''),
  2192. ('odm', 'application/vnd.oasis.opendocument.text-master', '', ''),
  2193. ('ott', 'application/vnd.oasis.opendocument.text-template', 'mime-type-document.png', ''),
  2194. ('oth', 'application/vnd.oasis.opendocument.text-web', '', ''),
  2195. ('xo', 'application/vnd.olpc-sugar', '', ''),
  2196. ('dd2', 'application/vnd.oma.dd2+xml', '', ''),
  2197. ('oxt', 'application/vnd.openofficeorg.extension', '', ''),
  2198. ('pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'mime-type-presentation.png', 'far file-powerpoint'),
  2199. ('sldx', 'application/vnd.openxmlformats-officedocument.presentationml.slide', '', ''),
  2200. ('ppsx', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', '', ''),
  2201. ('potx', 'application/vnd.openxmlformats-officedocument.presentationml.template', '', ''),
  2202. ('xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'mime-type-spreadsheet.png', 'far file-excel'),
  2203. ('xltx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', '', ''),
  2204. ('docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'mime-type-document.png', 'far file-word'),
  2205. ('dotx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', '', ''),
  2206. ('mgp', 'application/vnd.osgeo.mapguide.package', '', ''),
  2207. ('dp', 'application/vnd.osgi.dp', '', ''),
  2208. ('esa', 'application/vnd.osgi.subsystem', '', ''),
  2209. ('pdb', 'application/vnd.palm', 'mime-type-document.png', ''),
  2210. ('pqa', 'application/vnd.palm', '', ''),
  2211. ('oprc', 'application/vnd.palm', '', ''),
  2212. ('paw', 'application/vnd.pawaafile', '', ''),
  2213. ('str', 'application/vnd.pg.format', '', ''),
  2214. ('ei6', 'application/vnd.pg.osasli', '', ''),
  2215. ('efif', 'application/vnd.picsel', '', ''),
  2216. ('wg', 'application/vnd.pmi.widget', '', ''),
  2217. ('plf', 'application/vnd.pocketlearn', '', ''),
  2218. ('pbd', 'application/vnd.powerbuilder6', '', ''),
  2219. ('box', 'application/vnd.previewsystems.box', '', ''),
  2220. ('mgz', 'application/vnd.proteus.magazine', '', ''),
  2221. ('qps', 'application/vnd.publishare-delta-tree', '', ''),
  2222. ('ptid', 'application/vnd.pvi.ptid1', '', ''),
  2223. ('qxd', 'application/vnd.quark.quarkxpress', '', ''),
  2224. ('qxt', 'application/vnd.quark.quarkxpress', '', ''),
  2225. ('qwd', 'application/vnd.quark.quarkxpress', '', ''),
  2226. ('qwt', 'application/vnd.quark.quarkxpress', '', ''),
  2227. ('qxl', 'application/vnd.quark.quarkxpress', '', ''),
  2228. ('qxb', 'application/vnd.quark.quarkxpress', '', ''),
  2229. ('bed', 'application/vnd.realvnc.bed', '', ''),
  2230. ('mxl', 'application/vnd.recordare.musicxml', '', ''),
  2231. ('musicxml', 'application/vnd.recordare.musicxml+xml', '', ''),
  2232. ('cryptonote', 'application/vnd.rig.cryptonote', '', ''),
  2233. ('cod', 'application/vnd.rim.cod', '', ''),
  2234. ('rm', 'application/vnd.rn-realmedia', '', ''),
  2235. ('rmvb', 'application/vnd.rn-realmedia-vbr', '', ''),
  2236. ('link66', 'application/vnd.route66.link66+xml', '', ''),
  2237. ('st', 'application/vnd.sailingtracker.track', '', ''),
  2238. ('see', 'application/vnd.seemail', '', ''),
  2239. ('sema', 'application/vnd.sema', '', ''),
  2240. ('semd', 'application/vnd.semd', '', ''),
  2241. ('semf', 'application/vnd.semf', '', ''),
  2242. ('ifm', 'application/vnd.shana.informed.formdata', '', ''),
  2243. ('itp', 'application/vnd.shana.informed.formtemplate', '', ''),
  2244. ('iif', 'application/vnd.shana.informed.interchange', '', ''),
  2245. ('ipk', 'application/vnd.shana.informed.package', '', ''),
  2246. ('twd', 'application/vnd.simtech-mindmapper', '', ''),
  2247. ('twds', 'application/vnd.simtech-mindmapper', '', ''),
  2248. ('mmf', 'application/vnd.smaf', '', ''),
  2249. ('teacher', 'application/vnd.smart.teacher', '', ''),
  2250. ('sdkm', 'application/vnd.solent.sdkm+xml', '', ''),
  2251. ('sdkd', 'application/vnd.solent.sdkm+xml', '', ''),
  2252. ('dxp', 'application/vnd.spotfire.dxp', '', ''),
  2253. ('sfs', 'application/vnd.spotfire.sfs', '', ''),
  2254. ('sdc', 'application/vnd.stardivision.calc', 'mime-type-spreadsheet.png', 'far file-excel'),
  2255. ('sda', 'application/vnd.stardivision.draw', '', ''),
  2256. ('sdd', 'application/vnd.stardivision.impress', 'mime-type-presentation.png', 'far file-powerpoint'),
  2257. ('smf', 'application/vnd.stardivision.math', '', ''),
  2258. ('sdw', 'application/vnd.stardivision.writer', 'mime-type-document.png', ''),
  2259. ('vor', 'application/vnd.stardivision.writer', '', ''),
  2260. ('sgl', 'application/vnd.stardivision.writer-global', '', ''),
  2261. ('smzip', 'application/vnd.stepmania.package', '', ''),
  2262. ('sm', 'application/vnd.stepmania.stepchart', '', ''),
  2263. ('sxc', 'application/vnd.sun.xml.calc', 'mime-type-spreadsheet.png', 'far file-excel'),
  2264. ('stc', 'application/vnd.sun.xml.calc.template', 'mime-type-spreadsheet.png', 'far file-excel'),
  2265. ('sxd', 'application/vnd.sun.xml.draw', 'mime-type-vector.png', ''),
  2266. ('std', 'application/vnd.sun.xml.draw.template', '', ''),
  2267. ('sxi', 'application/vnd.sun.xml.impress', 'mime-type-presentation.png', 'far file-powerpoint'),
  2268. ('sti', 'application/vnd.sun.xml.impress.template', 'mime-type-presentation.png', 'far file-powerpoint'),
  2269. ('sxm', 'application/vnd.sun.xml.math', '', ''),
  2270. ('sxw', 'application/vnd.sun.xml.writer', 'mime-type-document.png', ''),
  2271. ('sxg', 'application/vnd.sun.xml.writer.global', '', ''),
  2272. ('stw', 'application/vnd.sun.xml.writer.template', 'mime-type-document.png', ''),
  2273. ('sus', 'application/vnd.sus-calendar', '', ''),
  2274. ('susp', 'application/vnd.sus-calendar', '', ''),
  2275. ('svd', 'application/vnd.svd', '', ''),
  2276. ('sis', 'application/vnd.symbian.install', '', ''),
  2277. ('sisx', 'application/vnd.symbian.install', '', ''),
  2278. ('xsm', 'application/vnd.syncml+xml', '', ''),
  2279. ('bdm', 'application/vnd.syncml.dm+wbxml', '', ''),
  2280. ('xdm', 'application/vnd.syncml.dm+xml', '', ''),
  2281. ('tao', 'application/vnd.tao.intent-module-archive', '', ''),
  2282. ('pcap', 'application/vnd.tcpdump.pcap', '', ''),
  2283. ('cap', 'application/vnd.tcpdump.pcap', '', ''),
  2284. ('dmp', 'application/vnd.tcpdump.pcap', '', ''),
  2285. ('tmo', 'application/vnd.tmobile-livetv', '', ''),
  2286. ('tpt', 'application/vnd.trid.tpt', '', ''),
  2287. ('mxs', 'application/vnd.triscape.mxs', '', ''),
  2288. ('tra', 'application/vnd.trueapp', '', ''),
  2289. ('ufd', 'application/vnd.ufdl', '', ''),
  2290. ('ufdl', 'application/vnd.ufdl', '', ''),
  2291. ('utz', 'application/vnd.uiq.theme', '', ''),
  2292. ('umj', 'application/vnd.umajin', '', ''),
  2293. ('unityweb', 'application/vnd.unity', '', ''),
  2294. ('uoml', 'application/vnd.uoml+xml', '', ''),
  2295. ('vcx', 'application/vnd.vcx', '', ''),
  2296. ('vsd', 'application/vnd.visio', '', ''),
  2297. ('vst', 'application/vnd.visio', '', ''),
  2298. ('vss', 'application/vnd.visio', 'mime-type-vector.png', ''),
  2299. ('vsw', 'application/vnd.visio', '', ''),
  2300. ('vis', 'application/vnd.visionary', '', ''),
  2301. ('vsf', 'application/vnd.vsf', '', ''),
  2302. ('wbxml', 'application/vnd.wap.wbxml', '', ''),
  2303. ('wmlc', 'application/vnd.wap.wmlc', '', ''),
  2304. ('wmlsc', 'application/vnd.wap.wmlscriptc', '', ''),
  2305. ('wtb', 'application/vnd.webturbo', '', ''),
  2306. ('nbp', 'application/vnd.wolfram.player', '', ''),
  2307. ('wpd', 'application/vnd.wordperfect', '', ''),
  2308. ('wqd', 'application/vnd.wqd', '', ''),
  2309. ('stf', 'application/vnd.wt.stf', '', ''),
  2310. ('xar', 'application/vnd.xara', '', ''),
  2311. ('xfdl', 'application/vnd.xfdl', '', ''),
  2312. ('hvd', 'application/vnd.yamaha.hv-dic', '', ''),
  2313. ('hvs', 'application/vnd.yamaha.hv-script', '', ''),
  2314. ('hvp', 'application/vnd.yamaha.hv-voice', '', ''),
  2315. ('osf', 'application/vnd.yamaha.openscoreformat', '', ''),
  2316. ('osfpvg', 'application/vnd.yamaha.openscoreformat.osfpvg+xml', '', ''),
  2317. ('saf', 'application/vnd.yamaha.smaf-audio', '', ''),
  2318. ('spf', 'application/vnd.yamaha.smaf-phrase', '', ''),
  2319. ('cmp', 'application/vnd.yellowriver-custom-menu', '', ''),
  2320. ('zir', 'application/vnd.zul', '', ''),
  2321. ('zirz', 'application/vnd.zul', '', ''),
  2322. ('zaz', 'application/vnd.zzazz.deck+xml', '', ''),
  2323. ('vxml', 'application/voicexml+xml', '', ''),
  2324. ('wgt', 'application/widget', '', ''),
  2325. ('hlp', 'application/winhlp', '', ''),
  2326. ('wsdl', 'application/wsdl+xml', '', ''),
  2327. ('wspolicy', 'application/wspolicy+xml', '', ''),
  2328. ('7z', 'application/x-7z-compressed', 'mime-type-archive.png', 'far file-archive'),
  2329. ('abw', 'application/x-abiword', '', ''),
  2330. ('ace', 'application/x-ace-compressed', 'mime-type-archive.png', 'far file-archive'),
  2331. ('dmg', 'application/x-apple-diskimage', '', ''),
  2332. ('aab', 'application/x-authorware-bin', '', ''),
  2333. ('x32', 'application/x-authorware-bin', '', ''),
  2334. ('u32', 'application/x-authorware-bin', '', ''),
  2335. ('vox', 'application/x-authorware-bin', '', ''),
  2336. ('aam', 'application/x-authorware-map', '', ''),
  2337. ('aas', 'application/x-authorware-seg', '', ''),
  2338. ('bcpio', 'application/x-bcpio', '', ''),
  2339. ('torrent', 'application/x-bittorrent', '', ''),
  2340. ('blb', 'application/x-blorb', '', ''),
  2341. ('blorb', 'application/x-blorb', '', ''),
  2342. ('bz', 'application/x-bzip', '', ''),
  2343. ('bz2', 'application/x-bzip2', 'mime-type-archive.png', 'far file-archive'),
  2344. ('boz', 'application/x-bzip2', '', ''),
  2345. ('cbr', 'application/x-cbr', '', ''),
  2346. ('cba', 'application/x-cbr', '', ''),
  2347. ('cbt', 'application/x-cbr', '', ''),
  2348. ('cbz', 'application/x-cbr', '', ''),
  2349. ('cb7', 'application/x-cbr', '', ''),
  2350. ('vcd', 'application/x-cdlink', '', ''),
  2351. ('cfs', 'application/x-cfs-compressed', '', ''),
  2352. ('chat', 'application/x-chat', '', ''),
  2353. ('pgn', 'application/x-chess-pgn', '', ''),
  2354. ('nsc', 'application/x-conference', '', ''),
  2355. ('cpio', 'application/x-cpio', '', ''),
  2356. ('csh', 'application/x-csh', '', 'far file-code'),
  2357. ('deb', 'application/x-debian-package', '', ''),
  2358. ('udeb', 'application/x-debian-package', '', ''),
  2359. ('dgc', 'application/x-dgc-compressed', '', ''),
  2360. ('dir', 'application/x-director', '', ''),
  2361. ('dcr', 'application/x-director', '', ''),
  2362. ('dxr', 'application/x-director', '', ''),
  2363. ('cst', 'application/x-director', '', ''),
  2364. ('cct', 'application/x-director', '', ''),
  2365. ('cxt', 'application/x-director', '', '');
  2366. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2367. ('w3d', 'application/x-director', '', ''),
  2368. ('fgd', 'application/x-director', '', ''),
  2369. ('swa', 'application/x-director', '', ''),
  2370. ('wad', 'application/x-doom', '', ''),
  2371. ('ncx', 'application/x-dtbncx+xml', '', ''),
  2372. ('dtb', 'application/x-dtbook+xml', '', ''),
  2373. ('res', 'application/x-dtbresource+xml', '', ''),
  2374. ('dvi', 'application/x-dvi', '', ''),
  2375. ('evy', 'application/x-envoy', '', ''),
  2376. ('eva', 'application/x-eva', '', ''),
  2377. ('bdf', 'application/x-font-bdf', '', ''),
  2378. ('gsf', 'application/x-font-ghostscript', '', ''),
  2379. ('psf', 'application/x-font-linux-psf', '', ''),
  2380. ('otf', 'application/x-font-otf', '', ''),
  2381. ('pcf', 'application/x-font-pcf', '', ''),
  2382. ('snf', 'application/x-font-snf', '', ''),
  2383. ('ttf', 'application/x-font-ttf', '', ''),
  2384. ('ttc', 'application/x-font-ttf', '', ''),
  2385. ('pfa', 'application/x-font-type1', '', ''),
  2386. ('pfb', 'application/x-font-type1', '', ''),
  2387. ('pfm', 'application/x-font-type1', '', ''),
  2388. ('afm', 'application/x-font-type1', '', ''),
  2389. ('woff', 'application/x-font-woff', '', ''),
  2390. ('arc', 'application/x-freearc', '', ''),
  2391. ('spl', 'application/x-futuresplash', '', ''),
  2392. ('gca', 'application/x-gca-compressed', '', ''),
  2393. ('ulx', 'application/x-glulx', '', ''),
  2394. ('gnumeric', 'application/x-gnumeric', '', ''),
  2395. ('gramps', 'application/x-gramps-xml', '', ''),
  2396. ('gtar', 'application/x-gtar', '', ''),
  2397. ('hdf', 'application/x-hdf', '', ''),
  2398. ('install', 'application/x-install-instructions', '', ''),
  2399. ('iso', 'application/x-iso9660-image', '', ''),
  2400. ('jnlp', 'application/x-java-jnlp-file', '', ''),
  2401. ('latex', 'application/x-latex', '', ''),
  2402. ('lzh', 'application/x-lzh-compressed', '', ''),
  2403. ('lha', 'application/x-lzh-compressed', '', ''),
  2404. ('mie', 'application/x-mie', '', ''),
  2405. ('prc', 'application/x-mobipocket-ebook', '', ''),
  2406. ('mobi', 'application/x-mobipocket-ebook', '', ''),
  2407. ('application', 'application/x-ms-application', '', ''),
  2408. ('lnk', 'application/x-ms-shortcut', '', ''),
  2409. ('wmd', 'application/x-ms-wmd', '', ''),
  2410. ('wmz', 'application/x-ms-wmz', '', ''),
  2411. ('xbap', 'application/x-ms-xbap', '', ''),
  2412. ('mdb', 'application/x-msaccess', '', ''),
  2413. ('obd', 'application/x-msbinder', '', ''),
  2414. ('crd', 'application/x-mscardfile', '', ''),
  2415. ('clp', 'application/x-msclip', '', ''),
  2416. ('exe', 'application/x-msdownload', '', ''),
  2417. ('dll', 'application/x-msdownload', '', ''),
  2418. ('com', 'application/x-msdownload', '', ''),
  2419. ('bat', 'application/x-msdownload', '', 'far file-code'),
  2420. ('msi', 'application/x-msdownload', '', ''),
  2421. ('mvb', 'application/x-msmediaview', '', ''),
  2422. ('m13', 'application/x-msmediaview', '', ''),
  2423. ('m14', 'application/x-msmediaview', '', ''),
  2424. ('wmf', 'application/x-msmetafile', '', ''),
  2425. ('emf', 'application/x-msmetafile', '', ''),
  2426. ('emz', 'application/x-msmetafile', '', ''),
  2427. ('mny', 'application/x-msmoney', '', ''),
  2428. ('pub', 'application/x-mspublisher', '', ''),
  2429. ('scd', 'application/x-msschedule', '', ''),
  2430. ('trm', 'application/x-msterminal', '', ''),
  2431. ('wri', 'application/x-mswrite', '', ''),
  2432. ('nc', 'application/x-netcdf', '', ''),
  2433. ('cdf', 'application/x-netcdf', '', ''),
  2434. ('nzb', 'application/x-nzb', '', ''),
  2435. ('p12', 'application/x-pkcs12', '', ''),
  2436. ('pfx', 'application/x-pkcs12', '', ''),
  2437. ('p7b', 'application/x-pkcs7-certificates', '', ''),
  2438. ('spc', 'application/x-pkcs7-certificates', '', ''),
  2439. ('p7r', 'application/x-pkcs7-certreqresp', '', ''),
  2440. ('rar', 'application/x-rar-compressed', 'mime-type-archive.png', 'far file-archive'),
  2441. ('ris', 'application/x-research-info-systems', '', ''),
  2442. ('sh', 'application/x-sh', '', 'far file-code'),
  2443. ('shar', 'application/x-shar', '', ''),
  2444. ('swf', 'application/x-shockwave-flash', '', ''),
  2445. ('xap', 'application/x-silverlight-app', '', ''),
  2446. ('sql', 'text/x-sql', '', 'far file-code'),
  2447. ('sit', 'application/x-stuffit', '', ''),
  2448. ('sitx', 'application/x-stuffitx', '', ''),
  2449. ('srt', 'application/x-subrip', '', ''),
  2450. ('sv4cpio', 'application/x-sv4cpio', '', ''),
  2451. ('sv4crc', 'application/x-sv4crc', '', ''),
  2452. ('t3', 'application/x-t3vm-image', '', ''),
  2453. ('gam', 'application/x-tads', '', ''),
  2454. ('tar', 'application/x-tar', 'mime-type-archive.png', 'far file-archive'),
  2455. ('tcl', 'application/x-tcl', '', ''),
  2456. ('tex', 'application/x-tex', '', ''),
  2457. ('tfm', 'application/x-tex-tfm', '', ''),
  2458. ('texinfo', 'application/x-texinfo', '', ''),
  2459. ('texi', 'application/x-texinfo', '', ''),
  2460. ('obj', 'application/x-tgif', '', ''),
  2461. ('ustar', 'application/x-ustar', '', ''),
  2462. ('src', 'application/x-wais-source', '', 'far file-code'),
  2463. ('der', 'application/x-x509-ca-cert', '', ''),
  2464. ('crt', 'application/x-x509-ca-cert', '', ''),
  2465. ('fig', 'application/x-xfig', '', ''),
  2466. ('xlf', 'application/x-xliff+xml', '', ''),
  2467. ('xpi', 'application/x-xpinstall', '', ''),
  2468. ('xz', 'application/x-xz', '', ''),
  2469. ('z1', 'application/x-zmachine', '', ''),
  2470. ('z2', 'application/x-zmachine', '', ''),
  2471. ('z3', 'application/x-zmachine', '', ''),
  2472. ('z4', 'application/x-zmachine', '', ''),
  2473. ('z5', 'application/x-zmachine', '', ''),
  2474. ('z6', 'application/x-zmachine', '', ''),
  2475. ('z7', 'application/x-zmachine', '', ''),
  2476. ('z8', 'application/x-zmachine', '', ''),
  2477. ('xaml', 'application/xaml+xml', '', ''),
  2478. ('xdf', 'application/xcap-diff+xml', '', ''),
  2479. ('xenc', 'application/xenc+xml', '', ''),
  2480. ('xhtml', 'application/xhtml+xml', '', 'far file-code'),
  2481. ('xht', 'application/xhtml+xml', '', ''),
  2482. ('xml', 'application/xml', '', 'far file-code'),
  2483. ('xsl', 'application/xml', '', 'far file-code'),
  2484. ('dtd', 'application/xml-dtd', '', 'far file-code'),
  2485. ('xop', 'application/xop+xml', '', ''),
  2486. ('xpl', 'application/xproc+xml', '', ''),
  2487. ('xslt', 'application/xslt+xml', '', 'far file-code'),
  2488. ('xspf', 'application/xspf+xml', '', ''),
  2489. ('mxml', 'application/xv+xml', '', ''),
  2490. ('xhvml', 'application/xv+xml', '', ''),
  2491. ('xvml', 'application/xv+xml', '', ''),
  2492. ('xvm', 'application/xv+xml', '', ''),
  2493. ('yang', 'application/yang', '', ''),
  2494. ('yin', 'application/yin+xml', '', ''),
  2495. ('zip', 'application/zip', 'mime-type-archive.png', 'far file-archive'),
  2496. ('adp', 'audio/adpcm', 'mime-type-audio.png', 'far file-audio'),
  2497. ('au', 'audio/basic', 'mime-type-audio.png', 'far file-audio'),
  2498. ('snd', 'audio/basic', 'mime-type-audio.png', 'far file-audio'),
  2499. ('mid', 'audio/midi', 'mime-type-audio.png', 'far file-audio'),
  2500. ('midi', 'audio/midi', 'mime-type-audio.png', 'far file-audio'),
  2501. ('kar', 'audio/midi', 'mime-type-audio.png', 'far file-audio'),
  2502. ('rmi', 'audio/midi', 'mime-type-audio.png', 'far file-audio'),
  2503. ('m4a', 'audio/mp4', 'mime-type-audio.png', 'far file-audio'),
  2504. ('mp4a', 'audio/mp4', 'mime-type-audio.png', 'far file-audio'),
  2505. ('m4p', 'audio/mp4a-latm', 'mime-type-audio.png', 'far file-audio'),
  2506. ('mpga', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2507. ('mp2', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2508. ('mp2a', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2509. ('mp3', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2510. ('m2a', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2511. ('m3a', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2512. ('oga', 'audio/ogg', 'mime-type-audio.png', 'far file-audio'),
  2513. ('ogg', 'audio/ogg', 'mime-type-audio.png', 'far file-audio'),
  2514. ('spx', 'audio/ogg', 'mime-type-audio.png', 'far file-audio'),
  2515. ('s3m', 'audio/s3m', 'mime-type-audio.png', 'far file-audio'),
  2516. ('sil', 'audio/silk', 'mime-type-audio.png', 'far file-audio'),
  2517. ('uva', 'audio/vnd.dece.audio', 'mime-type-audio.png', 'far file-audio'),
  2518. ('uvva', 'audio/vnd.dece.audio', 'mime-type-audio.png', 'far file-audio'),
  2519. ('eol', 'audio/vnd.digital-winds', 'mime-type-audio.png', 'far file-audio'),
  2520. ('dra', 'audio/vnd.dra', 'mime-type-audio.png', 'far file-audio'),
  2521. ('dts', 'audio/vnd.dts', 'mime-type-audio.png', 'far file-audio'),
  2522. ('dtshd', 'audio/vnd.dts.hd', 'mime-type-audio.png', 'far file-audio'),
  2523. ('lvp', 'audio/vnd.lucent.voice', 'mime-type-audio.png', 'far file-audio'),
  2524. ('pya', 'audio/vnd.ms-playready.media.pya', 'mime-type-audio.png', 'far file-audio'),
  2525. ('ecelp4800', 'audio/vnd.nuera.ecelp4800', 'mime-type-audio.png', 'far file-audio'),
  2526. ('ecelp7470', 'audio/vnd.nuera.ecelp7470', 'mime-type-audio.png', 'far file-audio'),
  2527. ('ecelp9600', 'audio/vnd.nuera.ecelp9600', 'mime-type-audio.png', 'far file-audio'),
  2528. ('rip', 'audio/vnd.rip', 'mime-type-audio.png', 'far file-audio'),
  2529. ('weba', 'audio/webm', 'mime-type-audio.png', 'far file-audio'),
  2530. ('aac', 'audio/x-aac', 'mime-type-audio.png', 'far file-audio'),
  2531. ('aif', 'audio/x-aiff', 'mime-type-audio.png', 'far file-audio'),
  2532. ('aiff', 'audio/x-aiff', 'mime-type-audio.png', 'far file-audio'),
  2533. ('aifc', 'audio/x-aiff', 'mime-type-audio.png', 'far file-audio'),
  2534. ('caf', 'audio/x-caf', 'mime-type-audio.png', 'far file-audio'),
  2535. ('flac', 'audio/x-flac', 'mime-type-audio.png', 'far file-audio'),
  2536. ('mka', 'audio/x-matroska', 'mime-type-audio.png', 'far file-audio'),
  2537. ('m3u', 'audio/x-mpegurl', 'mime-type-audio.png', 'far file-audio'),
  2538. ('wax', 'audio/x-ms-wax', 'mime-type-audio.png', 'far file-audio'),
  2539. ('wma', 'audio/x-ms-wma', 'mime-type-audio.png', 'far file-audio'),
  2540. ('ram', 'audio/x-pn-realaudio', 'mime-type-audio.png', 'far file-audio'),
  2541. ('ra', 'audio/x-pn-realaudio', 'mime-type-audio.png', 'far file-audio'),
  2542. ('rmp', 'audio/x-pn-realaudio-plugin', 'mime-type-audio.png', 'far file-audio'),
  2543. ('wav', 'audio/x-wav', 'mime-type-audio.png', 'far file-audio'),
  2544. ('xm', 'audio/xm', 'mime-type-audio.png', 'far file-audio'),
  2545. ('cdx', 'chemical/x-cdx', 'mime-type-vector.png', ''),
  2546. ('cif', 'chemical/x-cif', '', ''),
  2547. ('cmdf', 'chemical/x-cmdf', '', ''),
  2548. ('cml', 'chemical/x-cml', '', ''),
  2549. ('csml', 'chemical/x-csml', '', ''),
  2550. ('xyz', 'chemical/x-xyz', '', ''),
  2551. ('bmp', 'image/bmp', 'mime-type-image.png', 'far file-image'),
  2552. ('cgm', 'image/cgm', 'mime-type-image.png', 'far file-image'),
  2553. ('g3', 'image/g3fax', 'mime-type-image.png', 'far file-image'),
  2554. ('gif', 'image/gif', 'mime-type-image.png', 'far file-image'),
  2555. ('ief', 'image/ief', 'mime-type-image.png', 'far file-image'),
  2556. ('jp2', 'image/jp2', 'mime-type-image.png', 'far file-image'),
  2557. ('jpeg', 'image/jpeg', 'mime-type-image.png', 'far file-image'),
  2558. ('jpg', 'image/jpeg', 'mime-type-image.png', 'far file-image'),
  2559. ('jpe', 'image/jpeg', 'mime-type-image.png', 'far file-image'),
  2560. ('ktx', 'image/ktx', 'mime-type-image.png', 'far file-image'),
  2561. ('pict', 'image/pict', 'mime-type-image.png', 'far file-image'),
  2562. ('pic', 'image/pict', 'mime-type-image.png', 'far file-image'),
  2563. ('pct', 'image/pict', 'mime-type-image.png', 'far file-image'),
  2564. ('png', 'image/png', 'mime-type-png.png', 'far file-image'),
  2565. ('btif', 'image/prs.btif', 'mime-type-image.png', 'far file-image'),
  2566. ('sgi', 'image/sgi', 'mime-type-image.png', 'far file-image');
  2567. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2568. ('svg', 'image/svg+xml', 'mime-type-image.png', 'far file-image'),
  2569. ('svgz', 'image/svg+xml', 'mime-type-image.png', 'far file-image'),
  2570. ('tiff', 'image/tiff', 'mime-type-image.png', 'far file-image'),
  2571. ('tif', 'image/tiff', 'mime-type-image.png', 'far file-image'),
  2572. ('psd', 'image/vnd.adobe.photoshop', 'mime-type-psd.png', 'far file-image'),
  2573. ('uvi', 'image/vnd.dece.graphic', 'mime-type-image.png', 'far file-image'),
  2574. ('uvvi', 'image/vnd.dece.graphic', 'mime-type-image.png', 'far file-image'),
  2575. ('uvg', 'image/vnd.dece.graphic', 'mime-type-image.png', 'far file-image'),
  2576. ('uvvg', 'image/vnd.dece.graphic', 'mime-type-image.png', 'far file-image'),
  2577. ('sub', 'image/vnd.dvb.subtitle', 'mime-type-image.png', 'far file-image'),
  2578. ('djvu', 'image/vnd.djvu', 'mime-type-image.png', 'far file-image'),
  2579. ('djv', 'image/vnd.djvu', 'mime-type-image.png', 'far file-image'),
  2580. ('dwg', 'image/vnd.dwg', 'mime-type-image.png', 'far file-image'),
  2581. ('dxf', 'image/vnd.dxf', 'mime-type-image.png', 'far file-image'),
  2582. ('fbs', 'image/vnd.fastbidsheet', 'mime-type-image.png', 'far file-image'),
  2583. ('fpx', 'image/vnd.fpx', 'mime-type-image.png', 'far file-image'),
  2584. ('fst', 'image/vnd.fst', 'mime-type-image.png', 'far file-image'),
  2585. ('mmr', 'image/vnd.fujixerox.edmics-mmr', 'mime-type-image.png', 'far file-image'),
  2586. ('rlc', 'image/vnd.fujixerox.edmics-rlc', 'mime-type-image.png', 'far file-image'),
  2587. ('mdi', 'image/vnd.ms-modi', 'mime-type-image.png', 'far file-image'),
  2588. ('wdp', 'image/vnd.ms-photo', 'mime-type-image.png', 'far file-image'),
  2589. ('npx', 'image/vnd.net-fpx', 'mime-type-image.png', 'far file-image'),
  2590. ('wbmp', 'image/vnd.wap.wbmp', 'mime-type-image.png', 'far file-image'),
  2591. ('xif', 'image/vnd.xiff', 'mime-type-image.png', 'far file-image'),
  2592. ('webp', 'image/webp', 'mime-type-image.png', 'far file-image'),
  2593. ('3ds', 'image/x-3ds', 'mime-type-image.png', 'far file-image'),
  2594. ('ras', 'image/x-cmu-raster', 'mime-type-image.png', 'far file-image'),
  2595. ('cmx', 'image/x-cmx', 'mime-type-image.png', 'far file-image'),
  2596. ('fh', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2597. ('fhc', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2598. ('fh4', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2599. ('fh5', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2600. ('fh7', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2601. ('ico', 'image/x-icon', 'mime-type-image.png', 'far file-image'),
  2602. ('pntg', 'image/x-macpaint', 'mime-type-image.png', 'far file-image'),
  2603. ('pnt', 'image/x-macpaint', 'mime-type-image.png', 'far file-image'),
  2604. ('mac', 'image/x-macpaint', 'mime-type-image.png', 'far file-image'),
  2605. ('sid', 'image/x-mrsid-image', 'mime-type-image.png', 'far file-image'),
  2606. ('pcx', 'image/x-pcx', 'mime-type-image.png', 'far file-image'),
  2607. ('pnm', 'image/x-portable-anymap', 'mime-type-image.png', 'far file-image'),
  2608. ('pbm', 'image/x-portable-bitmap', 'mime-type-image.png', 'far file-image'),
  2609. ('pgm', 'image/x-portable-graymap', 'mime-type-image.png', 'far file-image'),
  2610. ('ppm', 'image/x-portable-pixmap', 'mime-type-image.png', 'far file-image'),
  2611. ('qtif', 'image/x-quicktime', 'mime-type-image.png', 'far file-image'),
  2612. ('qti', 'image/x-quicktime', 'mime-type-image.png', 'far file-image'),
  2613. ('rgb', 'image/x-rgb', 'mime-type-image.png', 'far file-image'),
  2614. ('tga', 'image/x-tga', 'mime-type-image.png', 'far file-image'),
  2615. ('xbm', 'image/x-xbitmap', 'mime-type-image.png', 'far file-image'),
  2616. ('xpm', 'image/x-xpixmap', 'mime-type-image.png', 'far file-image'),
  2617. ('xwd', 'image/x-xwindowdump', 'mime-type-image.png', 'far file-image'),
  2618. ('eml', 'message/rfc822', '', ''),
  2619. ('mime', 'message/rfc822', '', ''),
  2620. ('igs', 'model/iges', '', ''),
  2621. ('iges', 'model/iges', '', ''),
  2622. ('msh', 'model/mesh', '', ''),
  2623. ('mesh', 'model/mesh', '', ''),
  2624. ('silo', 'model/mesh', '', ''),
  2625. ('dae', 'model/vnd.collada+xml', '', ''),
  2626. ('dwf', 'model/vnd.dwf', '', ''),
  2627. ('gdl', 'model/vnd.gdl', '', ''),
  2628. ('gtw', 'model/vnd.gtw', '', ''),
  2629. ('mts', 'model/vnd.mts', '', ''),
  2630. ('vtu', 'model/vnd.vtu', '', ''),
  2631. ('wrl', 'model/vrml', '', ''),
  2632. ('vrml', 'model/vrml', '', ''),
  2633. ('x3db', 'model/x3d+binary', '', ''),
  2634. ('x3dbz', 'model/x3d+binary', '', ''),
  2635. ('x3dv', 'model/x3d+vrml', '', ''),
  2636. ('x3dvz', 'model/x3d+vrml', '', ''),
  2637. ('x3d', 'model/x3d+xml', '', ''),
  2638. ('x3dz', 'model/x3d+xml', '', ''),
  2639. ('manifest', 'text/cache-manifest', '', 'far file-alt'),
  2640. ('appcache', 'text/cache-manifest', '', 'far file-alt'),
  2641. ('ics', 'text/calendar', '', 'far file-alt'),
  2642. ('ifb', 'text/calendar', '', 'far file-alt'),
  2643. ('css', 'text/css', '', 'far file-code'),
  2644. ('csv', 'text/csv', 'mime-type-spreadsheet.png', 'far file-excel'),
  2645. ('html', 'text/html', '', 'far file-code'),
  2646. ('htm', 'text/html', '', 'far file-code'),
  2647. ('n3', 'text/n3', '', 'far file-alt'),
  2648. ('txt', 'text/plain', 'mime-type-document.png', 'far file-alt'),
  2649. ('text', 'text/plain', '', 'far file-alt'),
  2650. ('conf', 'text/plain', '', 'far file-alt'),
  2651. ('def', 'text/plain', '', 'far file-alt'),
  2652. ('list', 'text/plain', '', 'far file-alt'),
  2653. ('log', 'text/plain', '', 'far file-alt'),
  2654. ('in', 'text/plain', '', 'far file-alt'),
  2655. ('dsc', 'text/prs.lines.tag', '', 'far file-alt'),
  2656. ('rtx', 'text/richtext', '', 'far file-alt'),
  2657. ('sgml', 'text/sgml', '', 'far file-alt'),
  2658. ('sgm', 'text/sgml', '', 'far file-alt'),
  2659. ('tsv', 'text/tab-separated-values', '', 'far file-alt'),
  2660. ('t', 'text/troff', '', 'far file-alt'),
  2661. ('tr', 'text/troff', '', 'far file-alt'),
  2662. ('roff', 'text/troff', '', 'far file-alt'),
  2663. ('man', 'text/troff', '', 'far file-alt'),
  2664. ('me', 'text/troff', '', 'far file-alt'),
  2665. ('ms', 'text/troff', '', 'far file-alt'),
  2666. ('ttl', 'text/turtle', '', 'far file-code'),
  2667. ('uri', 'text/uri-list', '', 'far file-alt'),
  2668. ('uris', 'text/uri-list', '', 'far file-alt'),
  2669. ('urls', 'text/uri-list', '', 'far file-alt'),
  2670. ('address-card', 'text/vcard', '', 'far file-alt'),
  2671. ('curl', 'text/vnd.curl', '', 'far file-alt'),
  2672. ('dcurl', 'text/vnd.curl.dcurl', '', 'far file-alt'),
  2673. ('scurl', 'text/vnd.curl.scurl', '', 'far file-alt'),
  2674. ('mcurl', 'text/vnd.curl.mcurl', '', 'far file-alt'),
  2675. ('fly', 'text/vnd.fly', '', 'far file-alt'),
  2676. ('flx', 'text/vnd.fmi.flexstor', '', 'far file-alt'),
  2677. ('gv', 'text/vnd.graphviz', '', 'far file-alt'),
  2678. ('3dml', 'text/vnd.in3d.3dml', '', 'far file-alt'),
  2679. ('spot', 'text/vnd.in3d.spot', '', 'far file-alt'),
  2680. ('jad', 'text/vnd.sun.j2me.app-descriptor', '', 'far file-alt'),
  2681. ('wml', 'text/vnd.wap.wml', '', 'far file-alt'),
  2682. ('wmls', 'text/vnd.wap.wmlscript', '', 'far file-alt'),
  2683. ('s', 'text/x-asm', '', 'far file-alt'),
  2684. ('asm', 'text/x-asm', '', 'far file-code'),
  2685. ('c', 'text/x-c', '', 'far file-code'),
  2686. ('far closed-captioning', 'text/x-c', '', 'far file-code'),
  2687. ('cxx', 'text/x-c', '', 'far file-code'),
  2688. ('cpp', 'text/x-c', '', 'far file-code'),
  2689. ('h', 'text/x-c', '', 'far file-code'),
  2690. ('hh', 'text/x-c', '', 'far file-code'),
  2691. ('dic', 'text/x-c', '', 'far file-alt'),
  2692. ('f', 'text/x-fortran', '', 'far file-code'),
  2693. ('for', 'text/x-fortran', '', 'far file-code'),
  2694. ('f77', 'text/x-fortran', '', 'far file-alt'),
  2695. ('f90', 'text/x-fortran', '', 'far file-alt'),
  2696. ('java', 'text/x-java-source', '', 'far file-code'),
  2697. ('opml', 'text/x-opml', '', 'far file-alt'),
  2698. ('p', 'text/x-pascal', '', 'far file-alt'),
  2699. ('pas', 'text/x-pascal', '', 'far file-code'),
  2700. ('php', 'application/x-httpd-php', '', 'far file-code'),
  2701. ('coffee', 'text/x-coffeescript', '', 'far file-code'),
  2702. ('lsp', 'text/x-common-lisp', '', 'far file-code'),
  2703. ('lisp', 'text/x-common-lisp', '', 'far file-code'),
  2704. ('diff', 'text/x-diff', '', 'far file-code'),
  2705. ('go', 'text/x-go', '', 'far file-code'),
  2706. ('lua', 'text/x-lua', '', 'far file-code'),
  2707. ('pl', 'text/x-perl', '', 'far file-code'),
  2708. ('prl', 'text/x-perl', '', 'far file-code'),
  2709. ('perl', 'text/x-perl', '', 'far file-code'),
  2710. ('py', 'text/x-python', '', 'far file-code'),
  2711. ('nginx', 'text/nginx', '', 'far file-code'),
  2712. ('ini', 'text/x-ini', '', 'far file-alt'),
  2713. ('rb', 'text/x-ruby', '', 'far file-code'),
  2714. ('sass', 'text/x-sass', '', 'far file-code'),
  2715. ('bash', 'text/x-sh', '', 'far file-code'),
  2716. ('swift', 'text/x-swift', '', 'far file-code'),
  2717. ('vb', 'text/x-vb', '', 'far file-code'),
  2718. ('vbs', 'text/vbscript', '', 'far file-code'),
  2719. ('vue', 'text/x-vue', '', 'far file-code'),
  2720. ('yaml', 'text/x-yaml', '', 'far file-alt'),
  2721. ('md', 'text/x-markdown', '', 'far file-alt'),
  2722. ('xq', 'application/xquery', '', 'far file-code'),
  2723. ('xquery', 'application/xquery', '', 'far file-code'),
  2724. ('ps1', 'application/x-powershell', '', 'far file-code'),
  2725. ('aps', 'application/x-aspx', '', ''),
  2726. ('jsp', 'application/x-jsp', '', 'far file-code'),
  2727. ('nfo', 'text/x-nfo', '', 'far file-alt'),
  2728. ('etx', 'text/x-setext', '', 'far file-alt'),
  2729. ('sfv', 'text/x-sfv', '', 'far file-alt'),
  2730. ('uu', 'text/x-uuencode', '', 'far file-alt'),
  2731. ('vcs', 'text/x-vcalendar', '', 'far file-alt'),
  2732. ('vcf', 'text/x-vcard', '', 'far file-alt'),
  2733. ('3gp', 'video/3gpp', 'mime-type-video.png', 'far file-video'),
  2734. ('3g2', 'video/3gpp2', 'mime-type-video.png', 'far file-video'),
  2735. ('h261', 'video/h261', 'mime-type-video.png', 'far file-video'),
  2736. ('h263', 'video/h263', 'mime-type-video.png', 'far file-video'),
  2737. ('h264', 'video/h264', 'mime-type-video.png', 'far file-video'),
  2738. ('jpgv', 'video/jpeg', 'mime-type-video.png', 'far file-video'),
  2739. ('jpm', 'video/jpm', 'mime-type-video.png', 'far file-video'),
  2740. ('jpgm', 'video/jpm', 'mime-type-video.png', 'far file-video'),
  2741. ('mj2', 'video/mj2', 'mime-type-video.png', 'far file-video'),
  2742. ('mjp2', 'video/mj2', 'mime-type-video.png', 'far file-video'),
  2743. ('ts', 'video/mp2t', 'mime-type-video.png', 'far file-video'),
  2744. ('mp4', 'video/mp4', 'mime-type-video.png', 'far file-video'),
  2745. ('mp4v', 'video/mp4', 'mime-type-video.png', 'far file-video'),
  2746. ('mpg4', 'video/mp4', 'mime-type-video.png', 'far file-video'),
  2747. ('m4v', 'video/mp4', 'mime-type-video.png', 'far file-video'),
  2748. ('mpeg', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2749. ('mpg', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2750. ('mpe', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2751. ('m1v', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2752. ('m2v', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2753. ('ogv', 'video/ogg', 'mime-type-video.png', 'far file-video'),
  2754. ('qt', 'video/quicktime', 'mime-type-video.png', 'far file-video'),
  2755. ('mov', 'video/quicktime', 'mime-type-video.png', 'far file-video'),
  2756. ('uvh', 'video/vnd.dece.hd', 'mime-type-video.png', 'far file-video'),
  2757. ('uvvh', 'video/vnd.dece.hd', 'mime-type-video.png', 'far file-video'),
  2758. ('uvm', 'video/vnd.dece.mobile', 'mime-type-video.png', 'far file-video'),
  2759. ('uvvm', 'video/vnd.dece.mobile', 'mime-type-video.png', 'far file-video'),
  2760. ('uvp', 'video/vnd.dece.pd', 'mime-type-video.png', 'far file-video'),
  2761. ('uvvp', 'video/vnd.dece.pd', 'mime-type-video.png', 'far file-video');
  2762. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2763. ('uvs', 'video/vnd.dece.sd', 'mime-type-video.png', 'far file-video'),
  2764. ('uvvs', 'video/vnd.dece.sd', 'mime-type-video.png', 'far file-video'),
  2765. ('uvv', 'video/vnd.dece.video', 'mime-type-video.png', 'far file-video'),
  2766. ('uvvv', 'video/vnd.dece.video', 'mime-type-video.png', 'far file-video'),
  2767. ('dvb', 'video/vnd.dvb.file', 'mime-type-video.png', 'far file-video'),
  2768. ('fvt', 'video/vnd.fvt', 'mime-type-video.png', 'far file-video'),
  2769. ('mxu', 'video/vnd.mpegurl', 'mime-type-video.png', 'far file-video'),
  2770. ('m4u', 'video/vnd.mpegurl', 'mime-type-video.png', 'far file-video'),
  2771. ('pyv', 'video/vnd.ms-playready.media.pyv', 'mime-type-video.png', 'far file-video'),
  2772. ('uvu', 'video/vnd.uvvu.mp4', 'mime-type-video.png', 'far file-video'),
  2773. ('uvvu', 'video/vnd.uvvu.mp4', 'mime-type-video.png', 'far file-video'),
  2774. ('viv', 'video/vnd.vivo', 'mime-type-video.png', 'far file-video'),
  2775. ('dv', 'video/x-dv', 'mime-type-video.png', 'far file-video'),
  2776. ('dif', 'video/x-dv', 'mime-type-video.png', 'far file-excel'),
  2777. ('webm', 'video/webm', 'mime-type-video.png', 'far file-video'),
  2778. ('f4v', 'video/x-f4v', 'mime-type-video.png', 'far file-video'),
  2779. ('fli', 'video/x-fli', 'mime-type-video.png', 'far file-video'),
  2780. ('flv', 'video/x-flv', 'mime-type-video.png', 'far file-video'),
  2781. ('mkv', 'video/x-matroska', 'mime-type-video.png', 'far file-video'),
  2782. ('mk3d', 'video/x-matroska', 'mime-type-video.png', 'far file-video'),
  2783. ('mks', 'video/x-matroska', 'mime-type-video.png', 'far file-video'),
  2784. ('mng', 'video/x-mng', 'mime-type-video.png', 'far file-video'),
  2785. ('asf', 'video/x-ms-asf', 'mime-type-video.png', 'far file-video'),
  2786. ('asx', 'video/x-ms-asf', 'mime-type-video.png', 'far file-video'),
  2787. ('vob', 'video/x-ms-vob', 'mime-type-video.png', 'far file-video'),
  2788. ('wm', 'video/x-ms-wm', 'mime-type-video.png', 'far file-video'),
  2789. ('wmv', 'video/x-ms-wmv', 'mime-type-video.png', 'far file-video'),
  2790. ('wmx', 'video/x-ms-wmx', 'mime-type-video.png', 'far file-video'),
  2791. ('wvx', 'video/x-ms-wvx', 'mime-type-video.png', 'far file-video'),
  2792. ('avi', 'video/x-msvideo', 'mime-type-video.png', 'far file-video'),
  2793. ('movie', 'video/x-sgi-movie', 'mime-type-video.png', 'far file-video'),
  2794. ('smv', 'video/x-smv', 'mime-type-video.png', 'far file-video'),
  2795. ('ice', 'x-conference/x-cooltalk', '', '');
  2796. -- --------------------------------------------------------
  2797. CREATE TABLE IF NOT EXISTS `sys_objects_uploader` (
  2798. `id` int(11) NOT NULL AUTO_INCREMENT,
  2799. `object` varchar(64) NOT NULL,
  2800. `active` tinyint(4) NOT NULL,
  2801. `override_class_name` varchar(255) NOT NULL,
  2802. `override_class_file` varchar(255) NOT NULL,
  2803. PRIMARY KEY (`id`),
  2804. UNIQUE KEY `object` (`object`)
  2805. );
  2806. INSERT INTO `sys_objects_uploader` (`object`, `active`, `override_class_name`, `override_class_file`) VALUES
  2807. ('sys_simple', 1, 'BxTemplUploaderSimple', ''),
  2808. ('sys_html5', 1, 'BxTemplUploaderHTML5', ''),
  2809. ('sys_video_recording', 1, 'BxTemplUploaderVideoRecording', ''),
  2810. ('sys_crop', 1, 'BxTemplUploaderCrop', ''),
  2811. ('sys_cmts_simple', 1, 'BxTemplCmtsUploaderSimple', ''),
  2812. ('sys_cmts_html5', 1, 'BxTemplCmtsUploaderHTML5', ''),
  2813. ('sys_settings_html5', 1, 'BxTemplStudioSettingsUploaderHTML5', ''),
  2814. ('sys_builder_page_simple', 1, 'BxTemplStudioBuilderPageUploaderSimple', ''),
  2815. ('sys_builder_page_html5', 1, 'BxTemplStudioBuilderPageUploaderHTML5', ''),
  2816. ('sys_std_crop_cover', 1, 'BxTemplStudioUploaderCropCover', '');
  2817. -- --------------------------------------------------------
  2818. CREATE TABLE IF NOT EXISTS `sys_objects_form` (
  2819. `id` int(11) NOT NULL AUTO_INCREMENT,
  2820. `object` varchar(64) NOT NULL,
  2821. `module` varchar(32) NOT NULL,
  2822. `title` varchar(255) NOT NULL,
  2823. `action` varchar(255) NOT NULL,
  2824. `form_attrs` text NOT NULL,
  2825. `submit_name` varchar(255) NOT NULL,
  2826. `table` varchar(255) NOT NULL,
  2827. `key` varchar(255) NOT NULL,
  2828. `uri` varchar(255) NOT NULL,
  2829. `uri_title` varchar(255) NOT NULL,
  2830. `params` text NOT NULL,
  2831. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2832. `active` tinyint(4) NOT NULL DEFAULT '0',
  2833. `parent_form` varchar(64) NOT NULL DEFAULT '',
  2834. `override_class_name` varchar(255) NOT NULL,
  2835. `override_class_file` varchar(255) NOT NULL,
  2836. PRIMARY KEY (`id`),
  2837. UNIQUE KEY `object` (`object`)
  2838. );
  2839. 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
  2840. ('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', ''),
  2841. ('sys_account', 'system', '_sys_form_account', '', '', 'do_submit', 'sys_accounts', 'id', '', '', 'a:1:{s:14:"checker_helper";s:26:"BxFormAccountCheckerHelper";}', 0, 1, 'BxTemplFormAccount', ''),
  2842. ('sys_forgot_password', 'system', '_sys_form_forgot_password', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:33:"BxFormForgotPasswordCheckerHelper";}', 0, 1, 'BxTemplFormForgotPassword', ''),
  2843. ('sys_confirm_email', 'system', '_sys_form_confirm_email', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:31:"BxFormConfirmEmailCheckerHelper";}', 0, 1, 'BxTemplFormConfirmEmail', ''),
  2844. ('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', ''),
  2845. ('sys_unsubscribe', 'system', '_sys_form_unsubscribe', '', '', 'do_submit', 'sys_accounts', 'id', '', '', '', 0, 1, 'BxTemplFormAccount', ''),
  2846. ('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', ''),
  2847. ('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', ''),
  2848. ('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, '', ''),
  2849. ('sys_favorite', 'system', '_sys_form_favorite', 'favorite.php', 'a:3:{s:2:"id";s:0:"";s:4:"name";s:0:"";s:5:"class";s:19:"bx-favorite-do-form";}', 'submit', '', 'id', '', '', '', 0, 1, '', ''),
  2850. ('sys_privacy_group_custom', 'system', '_sys_form_ps_group_custom', 'privacy.php', '', 'do_submit', 'sys_privacy_groups_custom', 'id', '', '', '', 0, 1, 'BxTemplPrivacyFormGroupCustom', ''),
  2851. ('sys_labels', 'system', '_sys_form_labels', 'label.php', '', 'do_submit', '', '', '', '', '', 0, 1, 'BxTemplLabelForm', ''),
  2852. ('sys_wiki', 'system', '_sys_form_wiki', '', '', 'do_submit', 'sys_pages_wiki_blocks', 'id', '', '', '', 0, 1, 'BxTemplFormWiki', ''),
  2853. ('sys_manage', 'system', '_sys_form_manage', '', '', 'a:2:{i:0;s:7:"do_send";i:1;s:9:"do_submit";}', '', '', '', '', '', 0, 1, '', '');
  2854. CREATE TABLE IF NOT EXISTS `sys_form_displays` (
  2855. `id` int(11) NOT NULL AUTO_INCREMENT,
  2856. `display_name` varchar(64) NOT NULL,
  2857. `module` varchar(32) NOT NULL,
  2858. `object` varchar(64) NOT NULL,
  2859. `title` varchar(255) NOT NULL,
  2860. `view_mode` tinyint(4) NOT NULL DEFAULT '0',
  2861. PRIMARY KEY (`id`),
  2862. UNIQUE KEY `object_display_name` (`object`,`display_name`)
  2863. );
  2864. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  2865. ('sys_login', 'system', 'sys_login', '_sys_form_display_login', 0),
  2866. ('sys_login_step2', 'system', 'sys_login', '_sys_form_display_login_step2', 0),
  2867. ('sys_login_step3', 'system', 'sys_login', '_sys_form_display_login_step3', 0),
  2868. ('sys_account_create', 'system', 'sys_account', '_sys_form_display_account_create', 0),
  2869. ('sys_account_settings_email', 'system', 'sys_account', '_sys_form_display_account_settings_email', 0),
  2870. ('sys_account_settings_pwd', 'system', 'sys_account', '_sys_form_display_account_settings_password', 0),
  2871. ('sys_account_settings_info', 'system', 'sys_account', '_sys_form_display_account_settings_info', 0),
  2872. ('sys_account_settings_del_account', 'system', 'sys_account', '_sys_form_display_account_settings_delete', 0),
  2873. ('sys_forgot_password', 'system', 'sys_forgot_password', '_sys_form_display_forgot_password', 0),
  2874. ('sys_forgot_password_reset', 'system', 'sys_forgot_password', '_sys_form_display_forgot_password_reset', 0),
  2875. ('sys_confirm_phone_set_phone', 'system', 'sys_confirm_phone', '_sys_form_display_confirm_phone_set_phone', 0),
  2876. ('sys_confirm_phone_confirmation', 'system', 'sys_confirm_phone', '_sys_form_display_confirm_phone_confirmation', 0),
  2877. ('sys_confirm_email', 'system', 'sys_confirm_email', '_sys_form_display_confirm_email', 0),
  2878. ('sys_unsubscribe_updates', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_updates', 0),
  2879. ('sys_unsubscribe_news', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_news', 0),
  2880. ('sys_comment_post', 'system', 'sys_comment', '_sys_form_display_comment_post', 0),
  2881. ('sys_comment_edit', 'system', 'sys_comment', '_sys_form_display_comment_edit', 0),
  2882. ('sys_review_post', 'system', 'sys_review', '_sys_form_review_display_post', 0),
  2883. ('sys_review_edit', 'system', 'sys_review', '_sys_form_review_display_edit', 0),
  2884. ('sys_report_post', 'system', 'sys_report', '_sys_form_display_report_post', 0),
  2885. ('sys_favorite_add', 'system', 'sys_favorite', '_sys_form_display_favorite_add', 0),
  2886. ('sys_favorite_list_edit', 'system', 'sys_favorite', '_sys_form_display_favorite_list_edit', 0),
  2887. ('sys_privacy_group_custom_manage', 'system', 'sys_privacy_group_custom', '_sys_form_display_ps_gc_manage', 0),
  2888. ('sys_labels_select', 'system', 'sys_labels', '_sys_form_labels_display_select', 0),
  2889. ('sys_wiki_edit', 'system', 'sys_wiki', '_sys_form_display_wiki_edit', 0),
  2890. ('sys_wiki_translate', 'system', 'sys_wiki', '_sys_form_display_wiki_translate', 0),
  2891. ('sys_manage_approve', 'system', 'sys_manage', '_sys_form_display_manage_approve', 0);
  2892. CREATE TABLE IF NOT EXISTS `sys_form_inputs` (
  2893. `id` int(11) NOT NULL AUTO_INCREMENT,
  2894. `object` varchar(64) NOT NULL,
  2895. `module` varchar(32) NOT NULL,
  2896. `name` varchar(255) NOT NULL,
  2897. `value` varchar(255) NOT NULL,
  2898. `values` text NOT NULL,
  2899. `checked` tinyint(4) NOT NULL DEFAULT '0',
  2900. `type` varchar(32) NOT NULL,
  2901. `caption_system` varchar(255) NOT NULL,
  2902. `caption` varchar(255) NOT NULL,
  2903. `info` varchar(255) NOT NULL,
  2904. `help` varchar(255) NOT NULL,
  2905. `required` tinyint(4) NOT NULL DEFAULT '0',
  2906. `unique` tinyint(4) NOT NULL DEFAULT '0',
  2907. `collapsed` tinyint(4) NOT NULL DEFAULT '0',
  2908. `html` tinyint(4) NOT NULL DEFAULT '0',
  2909. `privacy` tinyint(4) NOT NULL DEFAULT '0',
  2910. `rateable` varchar(32) NOT NULL DEFAULT '',
  2911. `attrs` text NOT NULL,
  2912. `attrs_tr` text NOT NULL,
  2913. `attrs_wrapper` text NOT NULL,
  2914. `checker_func` varchar(32) NOT NULL,
  2915. `checker_params` text NOT NULL,
  2916. `checker_error` varchar(255) NOT NULL,
  2917. `db_pass` varchar(32) NOT NULL,
  2918. `db_params` text NOT NULL,
  2919. `editable` tinyint(4) NOT NULL DEFAULT '1',
  2920. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2921. PRIMARY KEY (`id`),
  2922. UNIQUE KEY `display_name` (`object`(64),`name`(127))
  2923. );
  2924. 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
  2925. ('sys_login', 'system', 'role', '1', '', 0, 'hidden', '_sys_form_login_input_caption_system_role', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2926. ('sys_login', 'system', 'relocate', '', '', 0, 'hidden', '_sys_form_login_input_caption_system_relocate', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2927. ('sys_login', 'system', 'ID', '', '', 0, 'text', '_sys_form_login_input_caption_system_id', '_sys_form_login_input_email', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2928. ('sys_login', 'system', 'Password', '', '', 0, 'password', '_sys_form_login_input_caption_system_password', '_sys_form_login_input_password', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2929. ('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),
  2930. ('sys_login', 'system', 'login', '_sys_form_login_input_submit', '', 0, 'submit', '_sys_form_login_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2931. ('sys_login', 'system', 'submit_text', '', '', 0, 'custom', '_sys_form_login_input_caption_system_submit_text', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2932. ('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),
  2933. ('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),
  2934. ('sys_login', 'system', 'back', '', '', '', 'value', '_sys_form_login_input_caption_system_back', '_sys_form_login_input_back', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
  2935. ('sys_login', 'system', 'do_checkcode', '_sys_form_login_input_checkcode', '', 0, 'submit', '_sys_form_login_input_caption_system_checkcode', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2936. ('sys_login', 'system', 'do_sendsms', '_sys_form_login_input_sendsms', '', 0, 'submit', '_sys_form_login_input_caption_system_sendsms', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2937. ('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),
  2938. ('sys_account', '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),
  2939. ('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),
  2940. ('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),
  2941. ('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),
  2942. ('sys_account', 'system', 'name', '', '', 0, 'text', '_sys_form_login_input_caption_system_name', '_sys_form_account_input_name', '', 1, 0, 0, '', '', '', 'ProfileName', '', '_sys_form_account_input_name_error', 'Xss', '', 1, 0),
  2943. ('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),
  2944. ('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),
  2945. ('sys_account', 'system', 'delete_content', '1', '', 0, 'hidden', '_sys_form_login_input_caption_system_delete_content', '', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2946. ('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),
  2947. ('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),
  2948. ('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),
  2949. ('sys_account', 'system', 'agreement', '', '', 0, 'custom', '_sys_form_login_input_caption_system_agreement', '_sys_form_account_input_agreement', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2950. ('sys_forgot_password', 'system', 'key', '', '', 0, 'hidden', '_sys_form_forgot_password_input_caption_system_key', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2951. ('sys_forgot_password', 'system', 'password', '', '', 0, 'password', '_sys_form_forgot_password_input_caption_system_password', '_sys_form_forgot_password_input_caption_password', '', 1, 0, 0, '', '', '', 'Preg', 'a:1:{s:4:"preg";s:38:"~^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).{8,}~";}', '_sys_form_account_input_password_error', 'Xss', '', 1, 0),
  2952. ('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),
  2953. ('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),
  2954. ('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),
  2955. ('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),
  2956. ('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),
  2957. ('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),
  2958. ('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),
  2959. ('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),
  2960. ('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),
  2961. ('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),
  2962. ('sys_unsubscribe', 'system', 'id', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2963. ('sys_unsubscribe', 'system', 'code', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_code', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2964. ('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),
  2965. ('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),
  2966. ('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),
  2967. ('sys_comment', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2968. ('sys_comment', 'system', 'id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2969. ('sys_comment', 'system', 'action', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2970. ('sys_comment', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2971. ('sys_comment', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2972. ('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";}', '', '', '', '', '', 'XssHtml', '', 1, 0),
  2973. ('sys_comment', 'system', 'cmt_anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2974. ('sys_comment', 'system', 'cmt_image', 'a:1:{i:0;s:14:"sys_cmts_html5";}', 'a:1:{s:14:"sys_cmts_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_sys_form_comment_input_caption_system_cmt_image', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2975. ('sys_comment', 'system', 'cmt_controls', '', 'cmt_submit,cmt_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2976. ('sys_comment', 'system', 'cmt_cancel', '_sys_form_comment_input_cancel', '', 0, 'button', '_sys_form_comment_input_caption_system_cmt_cancel', '', '', 0, 0, 0, 'a:1:{s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 0, 0),
  2977. ('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),
  2978. ('sys_review', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2979. ('sys_review', 'system', 'id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2980. ('sys_review', 'system', 'action', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2981. ('sys_review', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2982. ('sys_review', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2983. ('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),
  2984. ('sys_review', 'system', 'cmt_mood', '', '', 0, 'custom', '_sys_form_review_input_caption_system_cmt_mood', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  2985. ('sys_review', 'system', 'cmt_anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2986. ('sys_review', 'system', 'cmt_image', 'a:1:{i:0;s:14:"sys_cmts_html5";}', 'a:1:{s:14:"sys_cmts_html5";s:26:"_sys_uploader_simple_title";}', 0, 'files', '_sys_form_review_input_caption_system_cmt_image', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2987. ('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),
  2988. ('sys_report', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2989. ('sys_report', 'system', 'object_id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_object_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2990. ('sys_report', 'system', 'action', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2991. ('sys_report', 'system', 'id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2992. ('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),
  2993. ('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),
  2994. ('sys_report', 'system', 'submit', '_sys_form_report_input_caption_submit', '', 0, 'submit', '_sys_form_report_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2995. ('sys_favorite', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2996. ('sys_favorite', 'system', 'list_id', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_list_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2997. ('sys_favorite', 'system', 'object_id', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_object_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2998. ('sys_favorite', 'system', 'action', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2999. ('sys_favorite', 'system', 'id', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3000. ('sys_favorite', 'system', 'list', '', '#!sys_report_types', 0, 'checkbox_set', '_sys_form_favorite_input_caption_system_list', '_sys_form_favorite_input_caption_list', '', 1, 0, 0, '', '', '', 'Avail', '', '_Please select value', 'Xss', '', 1, 0),
  3001. ('sys_favorite', 'system', 'new_list', '_sys_form_favorite_input_caption_button_new_list', '', 0, 'button', '', '', '', 0, 0, 0, 'a:1:{s:7:"onclick";s:25:"{js_object}.showNewList()";}', '', '', '', '', '', 'Xss', '', 1, 0),
  3002. ('sys_favorite', 'system', 'title', '', '', 0, 'text', '_sys_form_favorite_input_caption_system_title', '_sys_form_favorite_input_caption_title', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3003. ('sys_favorite', 'system', 'allow_view_favorite_list_to', '', '', 0, 'custom', '_sys_form_favorite_input_caption_system_allow_view_to', '_sys_form_favorite_input_caption_allow_view_to', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
  3004. ('sys_favorite', 'system', 'submit', '_sys_form_favorite_input_caption_submit', '', 0, 'submit', '_sys_form_favorite_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3005. ('sys_privacy_group_custom', 'system', 'profile_id', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_profile_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3006. ('sys_privacy_group_custom', 'system', 'content_id', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_content_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3007. ('sys_privacy_group_custom', 'system', 'object', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_object', '', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
  3008. ('sys_privacy_group_custom', 'system', 'action', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3009. ('sys_privacy_group_custom', 'system', 'group_id', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_group_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3010. ('sys_privacy_group_custom', 'system', 'search', '', '', 0, 'custom', '_sys_form_ps_gc_input_caption_system_search', '_sys_form_ps_gc_input_caption_search', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3011. ('sys_privacy_group_custom', 'system', 'list', '', '', 0, 'custom', '_sys_form_ps_gc_input_caption_system_list', '_sys_form_ps_gc_input_caption_list', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3012. ('sys_privacy_group_custom', 'system', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3013. ('sys_privacy_group_custom', 'system', 'do_submit', '_sys_form_ps_gc_input_caption_do_submit', '', 0, 'submit', '_sys_form_ps_gc_input_caption_system_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3014. ('sys_privacy_group_custom', 'system', 'do_cancel', '_sys_form_ps_gc_input_caption_do_cancel', '', 0, 'button', '_sys_form_ps_gc_input_caption_system_do_cancel', '', '', 0, 0, 0, 'a:2:{s:7:"onclick";s:45:"$(''.bx-popup-applied:visible'').dolPopupHide()";s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 0, 0),
  3015. ('sys_labels', 'system', 'name', '', '', 0, 'hidden', '_sys_form_labels_input_caption_system_name', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3016. ('sys_labels', 'system', 'action', '', '', 0, 'hidden', '_sys_form_labels_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3017. ('sys_labels', 'system', 'search', '', '', 0, 'custom', '_sys_form_labels_input_caption_system_search', '_sys_form_labels_input_caption_search', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3018. ('sys_labels', 'system', 'list', '', '', 0, 'custom', '_sys_form_labels_input_caption_system_list', '_sys_form_labels_input_caption_list', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3019. ('sys_labels', 'system', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3020. ('sys_labels', 'system', 'do_submit', '_sys_form_labels_input_caption_do_submit', '', 0, 'submit', '_sys_form_labels_input_caption_system_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3021. ('sys_labels', 'system', 'do_cancel', '_sys_form_labels_input_caption_do_cancel', '', 0, 'button', '_sys_form_labels_input_caption_system_do_cancel', '', '', 0, 0, 0, 'a:2:{s:7:"onclick";s:45:"$(''.bx-popup-applied:visible'').dolPopupHide()";s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 0, 0),
  3022. ('sys_wiki', 'system', 'block_id', '', '', 0, 'hidden', '', '_sys_form_wiki_input_caption_block_id', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3023. ('sys_wiki', 'system', 'language', '', '', 0, 'radio_set', '', '_sys_form_wiki_input_caption_lang', '_sys_form_wiki_input_caption_lang_info', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
  3024. ('sys_wiki', 'system', 'content_main', '', '', 0, 'custom', '', '_sys_form_wiki_input_caption_content_main', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3025. ('sys_wiki', 'system', 'content', '', '', 0, 'textarea', '', '_sys_form_wiki_input_caption_content', '_sys_form_wiki_input_caption_content_info', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
  3026. ('sys_wiki', 'system', 'notes', '', '', 0, 'text', '', '_sys_form_wiki_input_caption_notes', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
  3027. ('sys_wiki', 'system', 'do_submit', '_sys_submit', '', 0, 'submit', '_sys_form_wiki_input_caption_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3028. ('sys_wiki', 'system', 'close', '_sys_close', '', 0, 'reset', '_sys_form_wiki_input_caption_close', '', '', 0, 0, 0, 'a:2:{s:7:\"onclick\";s:46:\"$(\'.bx-popup-applied:visible\').dolPopupHide();\";s:5:\"class\";s:22:\"bx-def-margin-sec-left\";}', '', '', '', '', '', '', '', 1, 0),
  3029. ('sys_wiki', 'system', 'buttons', '', 'do_submit,close', 0, 'input_set', '_sys_form_wiki_buttons', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3030. ('sys_manage', 'system', 'content_id', '', '', 0, 'hidden', '', '_sys_form_manage_input_sys_content_id', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3031. ('sys_manage', 'system', 'notes', '', '', 0, 'textarea', '_sys_form_manage_input_sys_notes', '_sys_form_manage_input_notes', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
  3032. ('sys_manage', 'system', 'controls', '', 'do_send,do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3033. ('sys_manage', 'system', 'do_send', '_sys_form_manage_input_do_send', '', 0, 'submit', '_sys_form_manage_input_sys_do_send', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3034. ('sys_manage', 'system', 'do_submit', '_sys_form_manage_input_do_submit', '', 0, 'submit', '_sys_form_manage_input_sys_do_submit', '', '', 0, 0, 0, 'a:1:{s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 0, 0),
  3035. ('sys_manage', 'system', 'do_cancel', '_sys_form_manage_input_do_cancel', '', 0, 'button', '_sys_form_manage_input_sys_do_cancel', '', '', 0, 0, 0, 'a:2:{s:5:"class";s:22:"bx-def-margin-sec-left";s:7:"onclick";s:45:"$(''.bx-popup-applied:visible'').dolPopupHide()";}', '', '', '', '', '', '', '', 0, 0);
  3036. CREATE TABLE IF NOT EXISTS `sys_form_inputs_privacy` (
  3037. `id` int(11) NOT NULL AUTO_INCREMENT,
  3038. `input_id` int(11) unsigned NOT NULL default '0',
  3039. `author_id` int(11) unsigned NOT NULL default '0',
  3040. `allow_view_to` varchar(16) NOT NULL DEFAULT '3',
  3041. PRIMARY KEY (`id`),
  3042. UNIQUE KEY `input` (`input_id`,`author_id`)
  3043. );
  3044. CREATE TABLE IF NOT EXISTS `sys_form_display_inputs` (
  3045. `id` int(11) NOT NULL AUTO_INCREMENT,
  3046. `display_name` varchar(64) NOT NULL,
  3047. `input_name` varchar(32) NOT NULL,
  3048. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3049. `active` tinyint(4) NOT NULL DEFAULT '0',
  3050. `order` int(11) NOT NULL,
  3051. PRIMARY KEY (`id`),
  3052. UNIQUE KEY `display_input` (`display_name`,`input_name`)
  3053. );
  3054. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  3055. ('sys_login', 'role', 2147483647, 1, 1),
  3056. ('sys_login', 'relocate', 2147483647, 1, 2),
  3057. ('sys_login', 'ID', 2147483647, 1, 3),
  3058. ('sys_login', 'Password', 2147483647, 1, 4),
  3059. ('sys_login', 'rememberMe', 2147483647, 1, 5),
  3060. ('sys_login', 'submit_text', 2147483647, 1, 6),
  3061. ('sys_login', 'login', 2147483647, 1, 7),
  3062. ('sys_login_step2', 'phone', 2147483647, 1, 1),
  3063. ('sys_login_step2', 'do_sendsms', 2147483647, 1, 2),
  3064. ('sys_login_step2', 'relocate', 2147483647, 1, 3),
  3065. ('sys_login_step3', 'code', 2147483647, 1, 1),
  3066. ('sys_login_step3', 'do_checkcode', 2147483647, 1, 2),
  3067. ('sys_login_step3', 'back', 2147483647, 1, 3),
  3068. ('sys_login_step3', 'relocate', 2147483647, 1, 4),
  3069. ('sys_account_create', 'name', 2147483647, 1, 1),
  3070. ('sys_account_create', 'email', 2147483647, 1, 2),
  3071. ('sys_account_create', 'phone', 2147483647, 0, 3),
  3072. ('sys_account_create', 'password', 2147483647, 1, 4),
  3073. ('sys_account_create', 'receive_news', 2147483647, 1, 5),
  3074. ('sys_account_create', 'do_submit', 2147483647, 1, 6),
  3075. ('sys_account_create', 'agreement', 2147483647, 0, 7),
  3076. ('sys_account_settings_email', 'email', 2147483647, 1, 1),
  3077. ('sys_account_settings_email', 'password_current', 2147483647, 1, 2),
  3078. ('sys_account_settings_email', 'receive_updates', 2147483647, 1, 3),
  3079. ('sys_account_settings_email', 'receive_news', 2147483647, 1, 4),
  3080. ('sys_account_settings_email', 'do_submit', 2147483647, 1, 5),
  3081. ('sys_account_settings_pwd', 'password_current', 2147483647, 1, 1),
  3082. ('sys_account_settings_pwd', 'password', 2147483647, 1, 2),
  3083. ('sys_account_settings_pwd', 'password_confirm', 2147483647, 1, 3),
  3084. ('sys_account_settings_pwd', 'do_submit', 2147483647, 1, 4),
  3085. ('sys_account_settings_del_account', 'delete_content', 2147483647, 1, 0),
  3086. ('sys_account_settings_del_account', 'delete_confirm', 2147483647, 1, 1),
  3087. ('sys_account_settings_del_account', 'password_current', 2147483647, 1, 2),
  3088. ('sys_account_settings_del_account', 'do_submit', 2147483647, 1, 3),
  3089. ('sys_account_settings_info', 'name', 2147483647, 1, 1),
  3090. ('sys_account_settings_info', 'do_submit', 2147483647, 1, 2),
  3091. ('sys_forgot_password', 'email', 2147483647, 1, 1),
  3092. ('sys_forgot_password', 'phone', 2147483647, 1, 2),
  3093. ('sys_forgot_password', 'captcha', 2147483647, 1, 3),
  3094. ('sys_forgot_password', 'do_submit', 2147483647, 1, 4),
  3095. ('sys_forgot_password_reset', 'key', 2147483647, 1, 1),
  3096. ('sys_forgot_password_reset', 'password', 2147483647, 1, 2),
  3097. ('sys_forgot_password_reset', 'captcha', 2147483647, 1, 3),
  3098. ('sys_forgot_password_reset', 'do_submit', 2147483647, 1, 4),
  3099. ('sys_confirm_email', 'code', 2147483647, 1, 1),
  3100. ('sys_confirm_email', 'do_submit', 2147483647, 1, 2),
  3101. ('sys_confirm_phone_set_phone', 'phone', 2147483647, 1, 1),
  3102. ('sys_confirm_phone_set_phone', 'do_sendsms', 2147483647, 1, 2),
  3103. ('sys_confirm_phone_confirmation', 'code', 2147483647, 1, 1),
  3104. ('sys_confirm_phone_confirmation', 'do_submit', 2147483647, 1, 2),
  3105. ('sys_unsubscribe_updates', 'id', 2147483647, 1, 1),
  3106. ('sys_unsubscribe_updates', 'code', 2147483647, 1, 2),
  3107. ('sys_unsubscribe_updates', 'receive_updates', 2147483647, 1, 3),
  3108. ('sys_unsubscribe_updates', 'do_submit', 2147483647, 1, 4),
  3109. ('sys_unsubscribe_news', 'id', 2147483647, 1, 1),
  3110. ('sys_unsubscribe_news', 'code', 2147483647, 1, 2),
  3111. ('sys_unsubscribe_news', 'receive_news', 2147483647, 1, 3),
  3112. ('sys_unsubscribe_news', 'do_submit', 2147483647, 1, 4),
  3113. ('sys_comment_post', 'sys', 2147483647, 1, 1),
  3114. ('sys_comment_post', 'id', 2147483647, 1, 2),
  3115. ('sys_comment_post', 'action', 2147483647, 1, 3),
  3116. ('sys_comment_post', 'cmt_id', 2147483647, 0, 4),
  3117. ('sys_comment_post', 'cmt_parent_id', 2147483647, 1, 5),
  3118. ('sys_comment_post', 'cmt_text', 2147483647, 1, 6),
  3119. ('sys_comment_post', 'cmt_image', 2147483647, 1, 7),
  3120. ('sys_comment_post', 'cmt_submit', 2147483647, 1, 8),
  3121. ('sys_comment_edit', 'sys', 2147483647, 1, 1),
  3122. ('sys_comment_edit', 'id', 2147483647, 1, 2),
  3123. ('sys_comment_edit', 'action', 2147483647, 1, 3),
  3124. ('sys_comment_edit', 'cmt_id', 2147483647, 1, 4),
  3125. ('sys_comment_edit', 'cmt_parent_id', 2147483647, 1, 5),
  3126. ('sys_comment_edit', 'cmt_text', 2147483647, 1, 6),
  3127. ('sys_comment_edit', 'cmt_image', 2147483647, 1, 7),
  3128. ('sys_comment_edit', 'cmt_controls', 2147483647, 1, 8),
  3129. ('sys_comment_edit', 'cmt_submit', 2147483647, 1, 9),
  3130. ('sys_comment_edit', 'cmt_cancel', 2147483647, 1, 10),
  3131. ('sys_review_post', 'sys', 2147483647, 1, 1),
  3132. ('sys_review_post', 'id', 2147483647, 1, 2),
  3133. ('sys_review_post', 'action', 2147483647, 1, 3),
  3134. ('sys_review_post', 'cmt_id', 2147483647, 0, 4),
  3135. ('sys_review_post', 'cmt_parent_id', 2147483647, 1, 5),
  3136. ('sys_review_post', 'cmt_text', 2147483647, 1, 6),
  3137. ('sys_review_post', 'cmt_mood', 2147483647, 1, 7),
  3138. ('sys_review_post', 'cmt_image', 2147483647, 1, 8),
  3139. ('sys_review_post', 'cmt_submit', 2147483647, 1, 9),
  3140. ('sys_review_edit', 'sys', 2147483647, 1, 1),
  3141. ('sys_review_edit', 'id', 2147483647, 1, 2),
  3142. ('sys_review_edit', 'action', 2147483647, 1, 3),
  3143. ('sys_review_edit', 'cmt_id', 2147483647, 1, 4),
  3144. ('sys_review_edit', 'cmt_parent_id', 2147483647, 1, 5),
  3145. ('sys_review_edit', 'cmt_text', 2147483647, 1, 6),
  3146. ('sys_review_edit', 'cmt_mood', 2147483647, 1, 7),
  3147. ('sys_review_edit', 'cmt_image', 2147483647, 1, 8),
  3148. ('sys_review_edit', 'cmt_submit', 2147483647, 1, 9),
  3149. ('sys_report_post', 'sys', 2147483647, 1, 1),
  3150. ('sys_report_post', 'object_id', 2147483647, 1, 2),
  3151. ('sys_report_post', 'action', 2147483647, 1, 3),
  3152. ('sys_report_post', 'id', 2147483647, 0, 4),
  3153. ('sys_report_post', 'type', 2147483647, 1, 5),
  3154. ('sys_report_post', 'text', 2147483647, 1, 6),
  3155. ('sys_report_post', 'submit', 2147483647, 1, 7),
  3156. ('sys_favorite_add', 'sys', 2147483647, 1, 1),
  3157. ('sys_favorite_add', 'object_id', 2147483647, 1, 2),
  3158. ('sys_favorite_add', 'action', 2147483647, 1, 3),
  3159. ('sys_favorite_add', 'id', 2147483647, 0, 4),
  3160. ('sys_favorite_add', 'list', 2147483647, 1, 5),
  3161. ('sys_favorite_add', 'new_list', 2147483647, 1, 6),
  3162. ('sys_favorite_add', 'title', 2147483647, 1, 7),
  3163. ('sys_favorite_add', 'allow_view_favorite_list_to', 2147483647, 1, 8),
  3164. ('sys_favorite_add', 'submit', 2147483647, 1, 9),
  3165. ('sys_favorite_list_edit', 'sys', 2147483647, 1, 1),
  3166. ('sys_favorite_list_edit', 'list_id', 2147483647, 1, 2),
  3167. ('sys_favorite_list_edit', 'object_id', 2147483647, 1, 3),
  3168. ('sys_favorite_list_edit', 'action', 2147483647, 1, 4),
  3169. ('sys_favorite_list_edit', 'title', 2147483647, 1, 5),
  3170. ('sys_favorite_list_edit', 'allow_view_favorite_list_to', 2147483647, 1, 6),
  3171. ('sys_favorite_list_edit', 'submit', 2147483647, 1, 7),
  3172. ('sys_privacy_group_custom_manage', 'profile_id', 2147483647, 1, 1),
  3173. ('sys_privacy_group_custom_manage', 'content_id', 2147483647, 1, 2),
  3174. ('sys_privacy_group_custom_manage', 'object', 2147483647, 1, 3),
  3175. ('sys_privacy_group_custom_manage', 'action', 2147483647, 1, 4),
  3176. ('sys_privacy_group_custom_manage', 'group_id', 2147483647, 1, 5),
  3177. ('sys_privacy_group_custom_manage', 'search', 2147483647, 1, 6),
  3178. ('sys_privacy_group_custom_manage', 'list', 2147483647, 1, 7),
  3179. ('sys_privacy_group_custom_manage', 'controls', 2147483647, 1, 8),
  3180. ('sys_privacy_group_custom_manage', 'do_submit', 2147483647, 1, 9),
  3181. ('sys_privacy_group_custom_manage', 'do_cancel', 2147483647, 1, 10),
  3182. ('sys_labels_select', 'name', 2147483647, 1, 1),
  3183. ('sys_labels_select', 'action', 2147483647, 1, 2),
  3184. ('sys_labels_select', 'search', 2147483647, 1, 3),
  3185. ('sys_labels_select', 'list', 2147483647, 1, 4),
  3186. ('sys_labels_select', 'controls', 2147483647, 1, 5),
  3187. ('sys_labels_select', 'do_submit', 2147483647, 1, 6),
  3188. ('sys_labels_select', 'do_cancel', 2147483647, 1, 7),
  3189. ('sys_wiki_edit', 'block_id', 2147483647, 1, 1),
  3190. ('sys_wiki_edit', 'language', 2147483647, 1, 2),
  3191. ('sys_wiki_edit', 'content', 2147483647, 1, 3),
  3192. ('sys_wiki_edit', 'notes', 2147483647, 1, 4),
  3193. ('sys_wiki_edit', 'do_submit', 2147483647, 1, 5),
  3194. ('sys_wiki_edit', 'close', 2147483647, 1, 6),
  3195. ('sys_wiki_edit', 'buttons', 2147483647, 1, 7),
  3196. ('sys_wiki_translate', 'block_id', 2147483647, 1, 1),
  3197. ('sys_wiki_translate', 'content_main', 2147483647, 1, 2),
  3198. ('sys_wiki_translate', 'language', 2147483647, 1, 3),
  3199. ('sys_wiki_translate', 'content', 2147483647, 1, 4),
  3200. ('sys_wiki_translate', 'notes', 2147483647, 1, 5),
  3201. ('sys_wiki_translate', 'do_submit', 2147483647, 1, 6),
  3202. ('sys_wiki_translate', 'close', 2147483647, 1, 7),
  3203. ('sys_wiki_translate', 'buttons', 2147483647, 1, 8),
  3204. ('sys_manage_approve', 'content_id', 2147483647, 1, 1),
  3205. ('sys_manage_approve', 'notes', 2147483647, 1, 2),
  3206. ('sys_manage_approve', 'controls', 2147483647, 1, 3),
  3207. ('sys_manage_approve', 'do_send', 2147483647, 1, 4),
  3208. ('sys_manage_approve', 'do_submit', 2147483647, 1, 5),
  3209. ('sys_manage_approve', 'do_cancel', 2147483647, 1, 6);
  3210. CREATE TABLE `sys_form_fields_ids` (
  3211. `id` int(11) NOT NULL AUTO_INCREMENT,
  3212. `object_form` varchar(64) NOT NULL default '',
  3213. `module` varchar(32) NOT NULL,
  3214. `field_name` varchar(255) NOT NULL default '',
  3215. `content_id` int(11) NOT NULL DEFAULT '0',
  3216. `author_id` int(10) NOT NULL DEFAULT '0',
  3217. `nested_content_id` int(10) NOT NULL default '0',
  3218. `rate` float NOT NULL default '0',
  3219. `votes` int(11) NOT NULL default '0',
  3220. `rrate` float NOT NULL DEFAULT '0',
  3221. `rvotes` int(11) NOT NULL DEFAULT '0',
  3222. PRIMARY KEY (`id`),
  3223. KEY `system_form_fields_id` (`object_form`, `content_id`, `nested_content_id`)
  3224. );
  3225. CREATE TABLE `sys_form_pre_lists` (
  3226. `id` int(11) NOT NULL AUTO_INCREMENT,
  3227. `module` varchar(32) NOT NULL default '',
  3228. `key` varchar(255) NOT NULL default '',
  3229. `title` varchar(255) NOT NULL default '',
  3230. `use_for_sets` tinyint(4) unsigned NOT NULL default '1',
  3231. `extendable` tinyint(4) unsigned NOT NULL default '1',
  3232. PRIMARY KEY (`id`),
  3233. UNIQUE KEY `key` (`key`(191)),
  3234. FULLTEXT KEY `ModuleAndKey` (`module`(32), `key`(159))
  3235. );
  3236. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`, `extendable`) VALUES
  3237. ('Country', '_adm_form_txt_pre_lists_country', 'system', '0', '1'),
  3238. ('Sex', '_adm_form_txt_pre_lists_sex', 'system', '1', '1'),
  3239. ('Language', '_adm_form_txt_pre_lists_language', 'system', '0', '1'),
  3240. ('Currency', '_adm_form_txt_pre_lists_currency', 'system', '0', '1'),
  3241. ('sys_report_types', '_sys_pre_lists_report_types', 'system', '0', '0'),
  3242. ('sys_vote_reactions', '_sys_pre_lists_vote_reactions', 'system', '0', '0'),
  3243. ('sys_relations', '_sys_pre_lists_relations', 'system', '0', '1'),
  3244. ('sys_studio_widget_types', '_sys_pre_lists_studio_widget_types', 'system', '0', '0');
  3245. CREATE TABLE `sys_form_pre_values` (
  3246. `id` int(11) NOT NULL AUTO_INCREMENT,
  3247. `Key` varchar(255) NOT NULL default '',
  3248. `Value` varchar(255) NOT NULL default '',
  3249. `Order` int(10) unsigned NOT NULL default '0',
  3250. `LKey` varchar(255) NOT NULL default '',
  3251. `LKey2` varchar(255) NOT NULL default '',
  3252. `Data` text NOT NULL default '',
  3253. PRIMARY KEY (`id`),
  3254. FULLTEXT KEY `KeyAndValue` (`Key`, `Value`)
  3255. );
  3256. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3257. ('Country', 'AF', 1, '__Afghanistan', ''),
  3258. ('Country', 'AX', 2, '__Aland_Islands', ''),
  3259. ('Country', 'AL', 3, '__Albania', ''),
  3260. ('Country', 'DZ', 4, '__Algeria', ''),
  3261. ('Country', 'AS', 5, '__American Samoa', ''),
  3262. ('Country', 'AD', 6, '__Andorra', ''),
  3263. ('Country', 'AO', 7, '__Angola', ''),
  3264. ('Country', 'AI', 8, '__Anguilla', ''),
  3265. ('Country', 'AQ', 9, '__Antarctica', ''),
  3266. ('Country', 'AG', 10, '__Antigua and Barbuda', ''),
  3267. ('Country', 'AR', 11, '__Argentina', ''),
  3268. ('Country', 'AM', 12, '__Armenia', ''),
  3269. ('Country', 'AW', 13, '__Aruba', ''),
  3270. ('Country', 'AU', 14, '__Australia', ''),
  3271. ('Country', 'AT', 15, '__Austria', ''),
  3272. ('Country', 'AZ', 16, '__Azerbaijan', ''),
  3273. ('Country', 'BH', 17, '__Bahrain', ''),
  3274. ('Country', 'BD', 18, '__Bangladesh', ''),
  3275. ('Country', 'BB', 19, '__Barbados', ''),
  3276. ('Country', 'BY', 20, '__Belarus', ''),
  3277. ('Country', 'BE', 21, '__Belgium', ''),
  3278. ('Country', 'BZ', 22, '__Belize', ''),
  3279. ('Country', 'BJ', 23, '__Benin', ''),
  3280. ('Country', 'BM', 24, '__Bermuda', ''),
  3281. ('Country', 'BT', 25, '__Bhutan', ''),
  3282. ('Country', 'BO', 26, '__Bolivia', ''),
  3283. ('Country', 'BA', 27, '__Bosnia and Herzegovina', ''),
  3284. ('Country', 'BW', 28, '__Botswana', ''),
  3285. ('Country', 'BV', 29, '__Bouvet Island', ''),
  3286. ('Country', 'BR', 30, '__Brazil', ''),
  3287. ('Country', 'IO', 31, '__British Indian Ocean Territory', ''),
  3288. ('Country', 'VG', 32, '__British Virgin Islands', ''),
  3289. ('Country', 'BN', 33, '__Brunei Darussalam', ''),
  3290. ('Country', 'BG', 34, '__Bulgaria', ''),
  3291. ('Country', 'BF', 35, '__Burkina Faso', ''),
  3292. ('Country', 'MM', 36, '__Burma', ''),
  3293. ('Country', 'BI', 37, '__Burundi', ''),
  3294. ('Country', 'KH', 38, '__Cambodia', ''),
  3295. ('Country', 'CM', 39, '__Cameroon', ''),
  3296. ('Country', 'CA', 40, '__Canada', ''),
  3297. ('Country', 'CV', 41, '__Cape Verde', ''),
  3298. ('Country', 'KY', 42, '__Cayman Islands', ''),
  3299. ('Country', 'CF', 43, '__Central African Republic', ''),
  3300. ('Country', 'TD', 44, '__Chad', ''),
  3301. ('Country', 'CL', 45, '__Chile', ''),
  3302. ('Country', 'CN', 46, '__China', ''),
  3303. ('Country', 'CX', 47, '__Christmas Island', ''),
  3304. ('Country', 'CC', 48, '__Cocos (Keeling) Islands', ''),
  3305. ('Country', 'CO', 49, '__Colombia', ''),
  3306. ('Country', 'KM', 50, '__Comoros', ''),
  3307. ('Country', 'CD', 51, '__Congo, Democratic Republic of the', ''),
  3308. ('Country', 'CG', 52, '__Congo, Republic of the', ''),
  3309. ('Country', 'CK', 53, '__Cook Islands', ''),
  3310. ('Country', 'CR', 54, '__Costa Rica', ''),
  3311. ('Country', 'CI', 55, '__Cote d''Ivoire', ''),
  3312. ('Country', 'HR', 56, '__Croatia', ''),
  3313. ('Country', 'CU', 57, '__Cuba', ''),
  3314. ('Country', 'CY', 58, '__Cyprus', ''),
  3315. ('Country', 'CZ', 59, '__Czech Republic', ''),
  3316. ('Country', 'DK', 60, '__Denmark', ''),
  3317. ('Country', 'DJ', 61, '__Djibouti', ''),
  3318. ('Country', 'DM', 62, '__Dominica', ''),
  3319. ('Country', 'DO', 63, '__Dominican Republic', ''),
  3320. ('Country', 'TL', 64, '__East Timor', ''),
  3321. ('Country', 'EC', 65, '__Ecuador', ''),
  3322. ('Country', 'EG', 66, '__Egypt', ''),
  3323. ('Country', 'SV', 67, '__El Salvador', ''),
  3324. ('Country', 'GQ', 68, '__Equatorial Guinea', ''),
  3325. ('Country', 'ER', 69, '__Eritrea', ''),
  3326. ('Country', 'EE', 70, '__Estonia', ''),
  3327. ('Country', 'ET', 71, '__Ethiopia', ''),
  3328. ('Country', 'FK', 72, '__Falkland Islands (Islas Malvinas)', ''),
  3329. ('Country', 'FO', 73, '__Faroe Islands', ''),
  3330. ('Country', 'FJ', 74, '__Fiji', ''),
  3331. ('Country', 'FI', 75, '__Finland', ''),
  3332. ('Country', 'FR', 76, '__France', ''),
  3333. ('Country', 'GF', 77, '__French Guiana', ''),
  3334. ('Country', 'PF', 78, '__French Polynesia', ''),
  3335. ('Country', 'TF', 79, '__French Southern and Antarctic Lands', ''),
  3336. ('Country', 'GA', 80, '__Gabon', ''),
  3337. ('Country', 'GE', 81, '__Georgia', ''),
  3338. ('Country', 'DE', 82, '__Germany', ''),
  3339. ('Country', 'GH', 83, '__Ghana', ''),
  3340. ('Country', 'GI', 84, '__Gibraltar', ''),
  3341. ('Country', 'GR', 85, '__Greece', ''),
  3342. ('Country', 'GL', 86, '__Greenland', ''),
  3343. ('Country', 'GD', 87, '__Grenada', ''),
  3344. ('Country', 'GP', 88, '__Guadeloupe', ''),
  3345. ('Country', 'GU', 89, '__Guam', ''),
  3346. ('Country', 'GT', 90, '__Guatemala', ''),
  3347. ('Country', 'GG', 91, '__Guernsey', ''),
  3348. ('Country', 'GN', 92, '__Guinea', ''),
  3349. ('Country', 'GW', 93, '__Guinea-Bissau', ''),
  3350. ('Country', 'GY', 94, '__Guyana', ''),
  3351. ('Country', 'HT', 95, '__Haiti', ''),
  3352. ('Country', 'HM', 96, '__Heard Island and McDonald Islands', ''),
  3353. ('Country', 'VA', 97, '__Holy See (Vatican City)', ''),
  3354. ('Country', 'HN', 98, '__Honduras', ''),
  3355. ('Country', 'HK', 99, '__Hong Kong (SAR)', ''),
  3356. ('Country', 'HU', 100, '__Hungary', ''),
  3357. ('Country', 'IS', 101, '__Iceland', ''),
  3358. ('Country', 'IN', 102, '__India', ''),
  3359. ('Country', 'ID', 103, '__Indonesia', ''),
  3360. ('Country', 'IR', 104, '__Iran', ''),
  3361. ('Country', 'IQ', 105, '__Iraq', ''),
  3362. ('Country', 'IE', 106, '__Ireland', ''),
  3363. ('Country', 'IM', 107, '__Isle_of_Man', ''),
  3364. ('Country', 'IL', 108, '__Israel', ''),
  3365. ('Country', 'IT', 109, '__Italy', ''),
  3366. ('Country', 'JM', 110, '__Jamaica', ''),
  3367. ('Country', 'JP', 111, '__Japan', ''),
  3368. ('Country', 'JE', 112, '__Jersey', ''),
  3369. ('Country', 'JO', 113, '__Jordan', ''),
  3370. ('Country', 'KZ', 114, '__Kazakhstan', ''),
  3371. ('Country', 'KE', 115, '__Kenya', ''),
  3372. ('Country', 'KI', 116, '__Kiribati', ''),
  3373. ('Country', 'KP', 117, '__Korea, North', ''),
  3374. ('Country', 'KR', 118, '__Korea, South', ''),
  3375. ('Country', 'KW', 119, '__Kuwait', ''),
  3376. ('Country', 'KG', 120, '__Kyrgyzstan', ''),
  3377. ('Country', 'LA', 121, '__Laos', ''),
  3378. ('Country', 'LV', 122, '__Latvia', ''),
  3379. ('Country', 'LB', 123, '__Lebanon', ''),
  3380. ('Country', 'LS', 124, '__Lesotho', ''),
  3381. ('Country', 'LR', 125, '__Liberia', ''),
  3382. ('Country', 'LY', 126, '__Libya', ''),
  3383. ('Country', 'LI', 127, '__Liechtenstein', ''),
  3384. ('Country', 'LT', 128, '__Lithuania', ''),
  3385. ('Country', 'LU', 129, '__Luxembourg', ''),
  3386. ('Country', 'MO', 130, '__Macao', ''),
  3387. ('Country', 'MK', 131, '__Macedonia, The Former Yugoslav Republic of', ''),
  3388. ('Country', 'MG', 132, '__Madagascar', ''),
  3389. ('Country', 'MW', 133, '__Malawi', ''),
  3390. ('Country', 'MY', 134, '__Malaysia', ''),
  3391. ('Country', 'MV', 135, '__Maldives', ''),
  3392. ('Country', 'ML', 136, '__Mali', ''),
  3393. ('Country', 'MT', 137, '__Malta', ''),
  3394. ('Country', 'MH', 138, '__Marshall Islands', ''),
  3395. ('Country', 'MQ', 139, '__Martinique', ''),
  3396. ('Country', 'MR', 140, '__Mauritania', ''),
  3397. ('Country', 'MU', 141, '__Mauritius', ''),
  3398. ('Country', 'YT', 142, '__Mayotte', ''),
  3399. ('Country', 'MX', 143, '__Mexico', ''),
  3400. ('Country', 'FM', 144, '__Micronesia, Federated States of', ''),
  3401. ('Country', 'MD', 145, '__Moldova', ''),
  3402. ('Country', 'MC', 146, '__Monaco', ''),
  3403. ('Country', 'MN', 147, '__Mongolia', ''),
  3404. ('Country', 'ME', 148, '__Montenegro', ''),
  3405. ('Country', 'MS', 149, '__Montserrat', ''),
  3406. ('Country', 'MA', 150, '__Morocco', ''),
  3407. ('Country', 'MZ', 151, '__Mozambique', ''),
  3408. ('Country', 'NA', 152, '__Namibia', ''),
  3409. ('Country', 'NR', 153, '__Nauru', ''),
  3410. ('Country', 'NP', 154, '__Nepal', ''),
  3411. ('Country', 'NL', 155, '__Netherlands', ''),
  3412. ('Country', 'AN', 156, '__Netherlands Antilles', ''),
  3413. ('Country', 'NC', 157, '__New Caledonia', ''),
  3414. ('Country', 'NZ', 158, '__New Zealand', ''),
  3415. ('Country', 'NI', 159, '__Nicaragua', ''),
  3416. ('Country', 'NE', 160, '__Niger', ''),
  3417. ('Country', 'NG', 161, '__Nigeria', ''),
  3418. ('Country', 'NU', 162, '__Niue', ''),
  3419. ('Country', 'NF', 163, '__Norfolk Island', ''),
  3420. ('Country', 'MP', 164, '__Northern Mariana Islands', ''),
  3421. ('Country', 'NO', 165, '__Norway', ''),
  3422. ('Country', 'OM', 166, '__Oman', ''),
  3423. ('Country', 'PK', 167, '__Pakistan', ''),
  3424. ('Country', 'PW', 168, '__Palau', ''),
  3425. ('Country', 'PS', 169, '__Palestinian Territory, Occupied', ''),
  3426. ('Country', 'PA', 170, '__Panama', ''),
  3427. ('Country', 'PG', 171, '__Papua New Guinea', ''),
  3428. ('Country', 'PY', 172, '__Paraguay', ''),
  3429. ('Country', 'PE', 173, '__Peru', ''),
  3430. ('Country', 'PH', 174, '__Philippines', ''),
  3431. ('Country', 'PN', 175, '__Pitcairn Islands', ''),
  3432. ('Country', 'PL', 176, '__Poland', ''),
  3433. ('Country', 'PT', 177, '__Portugal', ''),
  3434. ('Country', 'PR', 178, '__Puerto Rico', ''),
  3435. ('Country', 'QA', 179, '__Qatar', ''),
  3436. ('Country', 'RE', 180, '__Reunion', ''),
  3437. ('Country', 'RO', 181, '__Romania', ''),
  3438. ('Country', 'RU', 182, '__Russia', ''),
  3439. ('Country', 'RW', 183, '__Rwanda', ''),
  3440. ('Country', 'SH', 184, '__Saint Helena', ''),
  3441. ('Country', 'KN', 185, '__Saint Kitts and Nevis', ''),
  3442. ('Country', 'LC', 186, '__Saint Lucia', ''),
  3443. ('Country', 'PM', 187, '__Saint Pierre and Miquelon', ''),
  3444. ('Country', 'VC', 188, '__Saint Vincent and the Grenadines', ''),
  3445. ('Country', 'BL', 189, '__Saint_Barthelemy', ''),
  3446. ('Country', 'MF', 190, '__Saint_Martin_French_part', ''),
  3447. ('Country', 'WS', 191, '__Samoa', ''),
  3448. ('Country', 'SM', 192, '__San Marino', ''),
  3449. ('Country', 'ST', 193, '__Sao Tome and Principe', ''),
  3450. ('Country', 'SA', 194, '__Saudi Arabia', ''),
  3451. ('Country', 'SN', 195, '__Senegal', ''),
  3452. ('Country', 'RS', 196, '__Serbia', ''),
  3453. ('Country', 'SC', 197, '__Seychelles', ''),
  3454. ('Country', 'SL', 198, '__Sierra Leone', ''),
  3455. ('Country', 'SG', 199, '__Singapore', ''),
  3456. ('Country', 'SK', 200, '__Slovakia', ''),
  3457. ('Country', 'SI', 201, '__Slovenia', ''),
  3458. ('Country', 'SB', 202, '__Solomon Islands', ''),
  3459. ('Country', 'SO', 203, '__Somalia', ''),
  3460. ('Country', 'ZA', 204, '__South Africa', ''),
  3461. ('Country', 'GS', 205, '__South Georgia and the South Sandwich Islands', ''),
  3462. ('Country', 'ES', 206, '__Spain', ''),
  3463. ('Country', 'LK', 207, '__Sri Lanka', ''),
  3464. ('Country', 'SD', 208, '__Sudan', ''),
  3465. ('Country', 'SR', 209, '__Suriname', ''),
  3466. ('Country', 'SJ', 210, '__Svalbard', ''),
  3467. ('Country', 'SZ', 211, '__Swaziland', ''),
  3468. ('Country', 'SE', 212, '__Sweden', ''),
  3469. ('Country', 'CH', 213, '__Switzerland', ''),
  3470. ('Country', 'SY', 214, '__Syria', ''),
  3471. ('Country', 'TW', 215, '__Taiwan', ''),
  3472. ('Country', 'TJ', 216, '__Tajikistan', ''),
  3473. ('Country', 'TZ', 217, '__Tanzania', ''),
  3474. ('Country', 'TH', 218, '__Thailand', ''),
  3475. ('Country', 'BS', 219, '__The Bahamas', ''),
  3476. ('Country', 'GM', 220, '__The Gambia', ''),
  3477. ('Country', 'TG', 221, '__Togo', ''),
  3478. ('Country', 'TK', 222, '__Tokelau', ''),
  3479. ('Country', 'TO', 223, '__Tonga', ''),
  3480. ('Country', 'TT', 224, '__Trinidad and Tobago', ''),
  3481. ('Country', 'TN', 225, '__Tunisia', ''),
  3482. ('Country', 'TR', 226, '__Turkey', ''),
  3483. ('Country', 'TM', 227, '__Turkmenistan', ''),
  3484. ('Country', 'TC', 228, '__Turks and Caicos Islands', ''),
  3485. ('Country', 'TV', 229, '__Tuvalu', ''),
  3486. ('Country', 'UG', 230, '__Uganda', ''),
  3487. ('Country', 'UA', 231, '__Ukraine', ''),
  3488. ('Country', 'AE', 232, '__United Arab Emirates', ''),
  3489. ('Country', 'GB', 233, '__United Kingdom', ''),
  3490. ('Country', 'US', 234, '__United States', ''),
  3491. ('Country', 'UM', 235, '__United States Minor Outlying Islands', ''),
  3492. ('Country', 'UY', 236, '__Uruguay', ''),
  3493. ('Country', 'UZ', 237, '__Uzbekistan', ''),
  3494. ('Country', 'VU', 238, '__Vanuatu', ''),
  3495. ('Country', 'VE', 239, '__Venezuela', ''),
  3496. ('Country', 'VN', 240, '__Vietnam', ''),
  3497. ('Country', 'VI', 241, '__Virgin Islands', ''),
  3498. ('Country', 'WF', 242, '__Wallis and Futuna', ''),
  3499. ('Country', 'EH', 243, '__Western Sahara', ''),
  3500. ('Country', 'YE', 244, '__Yemen', ''),
  3501. ('Country', 'ZM', 245, '__Zambia', ''),
  3502. ('Country', 'ZW', 246, '__Zimbabwe', '');
  3503. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3504. ('Sex', '', 1, '_sys_not_specified', ''),
  3505. ('Sex', '1', 2, '_Male', '_LookinMale'),
  3506. ('Sex', '2', 3, '_Female', '_LookinFemale');
  3507. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3508. ('Language', '1', 1, '__English', ''),
  3509. ('Language', '2', 2, '__Afrikaans', ''),
  3510. ('Language', '3', 3, '__Arabic', ''),
  3511. ('Language', '4', 4, '__Bulgarian', ''),
  3512. ('Language', '5', 5, '__Burmese', ''),
  3513. ('Language', '6', 6, '__Cantonese', ''),
  3514. ('Language', '7', 7, '__Croatian', ''),
  3515. ('Language', '8', 8, '__Danish', ''),
  3516. ('Language', '9', 9, '__Dutch', ''),
  3517. ('Language', '10', 10, '__Esperanto', ''),
  3518. ('Language', '11', 11, '__Estonian', ''),
  3519. ('Language', '12', 12, '__Finnish', ''),
  3520. ('Language', '13', 13, '__French', ''),
  3521. ('Language', '14', 14, '__German', ''),
  3522. ('Language', '15', 15, '__Greek', ''),
  3523. ('Language', '16', 16, '__Gujrati', ''),
  3524. ('Language', '17', 17, '__Hebrew', ''),
  3525. ('Language', '18', 18, '__Hindi', ''),
  3526. ('Language', '19', 19, '__Hungarian', ''),
  3527. ('Language', '20', 20, '__Icelandic', ''),
  3528. ('Language', '21', 21, '__Indian', ''),
  3529. ('Language', '22', 22, '__Indonesian', ''),
  3530. ('Language', '23', 23, '__Italian', ''),
  3531. ('Language', '24', 24, '__Japanese', ''),
  3532. ('Language', '25', 25, '__Korean', ''),
  3533. ('Language', '26', 26, '__Latvian', ''),
  3534. ('Language', '27', 27, '__Lithuanian', ''),
  3535. ('Language', '28', 28, '__Malay', ''),
  3536. ('Language', '29', 29, '__Mandarin', ''),
  3537. ('Language', '30', 30, '__Marathi', ''),
  3538. ('Language', '31', 31, '__Moldovian', ''),
  3539. ('Language', '32', 32, '__Nepalese', ''),
  3540. ('Language', '33', 33, '__Norwegian', ''),
  3541. ('Language', '34', 34, '__Persian', ''),
  3542. ('Language', '35', 35, '__Polish', ''),
  3543. ('Language', '36', 36, '__Portuguese', ''),
  3544. ('Language', '37', 37, '__Punjabi', ''),
  3545. ('Language', '38', 38, '__Romanian', ''),
  3546. ('Language', '39', 39, '__Russian', ''),
  3547. ('Language', '40', 40, '__Serbian', ''),
  3548. ('Language', '41', 41, '__Spanish', ''),
  3549. ('Language', '42', 42, '__Swedish', ''),
  3550. ('Language', '43', 43, '__Tagalog', ''),
  3551. ('Language', '44', 44, '__Taiwanese', ''),
  3552. ('Language', '45', 45, '__Tamil', ''),
  3553. ('Language', '46', 46, '__Telugu', ''),
  3554. ('Language', '47', 47, '__Thai', ''),
  3555. ('Language', '48', 48, '__Tongan', ''),
  3556. ('Language', '49', 49, '__Turkish', ''),
  3557. ('Language', '50', 50, '__Ukrainian', ''),
  3558. ('Language', '51', 51, '__Urdu', ''),
  3559. ('Language', '52', 52, '__Vietnamese', ''),
  3560. ('Language', '53', 53, '__Visayan', '');
  3561. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3562. ('Currency', 'AUD', 1, '__AUD', '', 'a:1:{s:4:"sign";s:6:"A&#36;";}'),
  3563. ('Currency', 'CAD', 2, '__CAD', '', 'a:1:{s:4:"sign";s:6:"C&#36;";}'),
  3564. ('Currency', 'EUR', 3, '__EUR', '', 'a:1:{s:4:"sign";s:7:"&#8364;";}'),
  3565. ('Currency', 'GBP', 4, '__GBP', '', 'a:1:{s:4:"sign";s:6:"&#163;";}'),
  3566. ('Currency', 'USD', 5, '__USD', '', 'a:1:{s:4:"sign";s:5:"&#36;";}'),
  3567. ('Currency', 'YEN', 6, '__YEN', '', 'a:1:{s:4:"sign";s:6:"&#165;";}');
  3568. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3569. ('sys_report_types', 'spam', 1, '_sys_pre_lists_report_types_spam', ''),
  3570. ('sys_report_types', 'scam', 2, '_sys_pre_lists_report_types_scam', ''),
  3571. ('sys_report_types', 'fraud', 3, '_sys_pre_lists_report_types_fraud', ''),
  3572. ('sys_report_types', 'nude', 4, '_sys_pre_lists_report_types_nude', ''),
  3573. ('sys_report_types', 'other', 5, '_sys_pre_lists_report_types_other', '');
  3574. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3575. ('sys_vote_reactions', 'like', 1, '_sys_pre_lists_vote_reactions_like', '', 'a:5:{s:5:"emoji";s:4:"👍";s:4:"icon";s:0:"";s:5:"color";s:20:"sys-colored col-gray";s:6:"weight";s:1:"1";s:7:"default";s:9:"thumbs-up";}'),
  3576. ('sys_vote_reactions', 'love', 2, '_sys_pre_lists_vote_reactions_love', '', 'a:4:{s:5:"emoji";s:4:"💓";s:4:"icon";s:0:"";s:5:"color";s:20:"sys-colored col-red1";s:6:"weight";s:1:"1";}'),
  3577. ('sys_vote_reactions', 'joy', 3, '_sys_pre_lists_vote_reactions_joy', '', 'a:4:{s:5:"emoji";s:4:"😆";s:4:"icon";s:0:"";s:5:"color";s:20:"sys-colored col-red3";s:6:"weight";s:1:"1";}'),
  3578. ('sys_vote_reactions', 'surprise', 4, '_sys_pre_lists_vote_reactions_surprise', '', 'a:4:{s:5:"emoji";s:4:"😲";s:4:"icon";s:0:"";s:5:"color";s:20:"sys-colored col-red3";s:6:"weight";s:1:"1";}'),
  3579. ('sys_vote_reactions', 'sadness', 5, '_sys_pre_lists_vote_reactions_sadness', '', 'a:4:{s:5:"emoji";s:4:"😥";s:4:"icon";s:0:"";s:5:"color";s:20:"sys-colored col-red3";s:6:"weight";s:1:"1";}'),
  3580. ('sys_vote_reactions', 'anger', 6, '_sys_pre_lists_vote_reactions_anger', '', 'a:4:{s:5:"emoji";s:4:"😠";s:4:"icon";s:0:"";s:5:"color";s:20:"sys-colored col-red3";s:6:"weight";s:1:"1";}');
  3581. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3582. ('sys_relations', '1', 1, '_sys_pre_lists_relations_husband', '', 'a:1:{i:0;s:1:"2";}'),
  3583. ('sys_relations', '2', 2, '_sys_pre_lists_relations_wife', '', 'a:1:{i:0;s:1:"1";}'),
  3584. ('sys_relations', '3', 3, '_sys_pre_lists_relations_father', '', 'a:2:{i:0;s:1:"5";i:1;s:1:"6";}'),
  3585. ('sys_relations', '4', 4, '_sys_pre_lists_relations_mother', '', 'a:2:{i:0;s:1:"5";i:1;s:1:"6";}'),
  3586. ('sys_relations', '5', 5, '_sys_pre_lists_relations_son', '', 'a:2:{i:0;s:1:"3";i:1;s:1:"4";}'),
  3587. ('sys_relations', '6', 6, '_sys_pre_lists_relations_daughter', '', 'a:2:{i:0;s:1:"3";i:1;s:1:"4";}'),
  3588. ('sys_relations', '7', 7, '_sys_pre_lists_relations_brother', '', 'a:2:{i:0;s:1:"7";i:1;s:1:"8";}'),
  3589. ('sys_relations', '8', 8, '_sys_pre_lists_relations_sister', '', 'a:2:{i:0;s:1:"7";i:1;s:1:"8";}');
  3590. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3591. ('sys_studio_widget_types', '', 1, '_sys_pre_lists_studio_widget_types_library', '', 'a:1:{s:4:"icon";s:15:"lmi-library.svg";}'),
  3592. ('sys_studio_widget_types', 'appearance', 2, '_sys_pre_lists_studio_widget_types_appearance', '', 'a:1:{s:4:"icon";s:18:"lmi-appearance.svg";}'),
  3593. ('sys_studio_widget_types', 'structure', 3, '_sys_pre_lists_studio_widget_types_structure', '', 'a:1:{s:4:"icon";s:17:"lmi-structure.svg";}'),
  3594. ('sys_studio_widget_types', 'content', 4, '_sys_pre_lists_studio_widget_types_content', '', 'a:1:{s:4:"icon";s:15:"lmi-content.svg";}'),
  3595. ('sys_studio_widget_types', 'users', 5, '_sys_pre_lists_studio_widget_types_users', '', 'a:1:{s:4:"icon";s:13:"lmi-users.svg";}'),
  3596. ('sys_studio_widget_types', 'configuration', 6, '_sys_pre_lists_studio_widget_types_configuration', '', 'a:1:{s:4:"icon";s:21:"lmi-configuration.svg";}'),
  3597. ('sys_studio_widget_types', 'extensions', 7, '_sys_pre_lists_studio_widget_types_extensions', '', 'a:1:{s:4:"icon";s:18:"lmi-extensions.svg";}'),
  3598. ('sys_studio_widget_types', 'integrations', 8, '_sys_pre_lists_studio_widget_types_integrations', '', 'a:1:{s:4:"icon";s:20:"lmi-integrations.svg";}'),
  3599. ('sys_studio_widget_types', 'favorites', 9, '_sys_pre_lists_studio_widget_types_favorites', '', 'a:1:{s:4:"icon";s:17:"lmi-favorites.svg";}');
  3600. -- --------------------------------------------------------
  3601. CREATE TABLE IF NOT EXISTS `sys_menu_templates` (
  3602. `id` int(11) NOT NULL AUTO_INCREMENT,
  3603. `template` varchar(255) NOT NULL,
  3604. `title` varchar(255) NOT NULL,
  3605. `visible` tinyint(4) NOT NULL DEFAULT '1',
  3606. PRIMARY KEY (`id`)
  3607. );
  3608. INSERT INTO `sys_menu_templates` (`id`, `template`, `title`, `visible`) VALUES
  3609. (1, 'menu_empty.html', '_sys_menu_template_title_empty', 1),
  3610. (2, 'menu_footer.html', '_sys_menu_template_title_footer', 0),
  3611. (3, 'menu_horizontal.html', '_sys_menu_template_title_hor', 1),
  3612. (4, 'menu_vertical_lite.html', '_sys_menu_template_title_ver_lite', 1),
  3613. (5, 'menu_toolbar.html', '_sys_menu_template_title_toolbar', 0),
  3614. (6, 'menu_vertical.html', '_sys_menu_template_title_ver', 1),
  3615. (7, 'menu_floating_blocks.html', '_sys_menu_template_title_floating_blocks', 1),
  3616. (8, 'menu_main_submenu.html', '_sys_menu_template_title_main_submenu', 0),
  3617. (9, 'menu_buttons_hor.html', '_sys_menu_template_title_buttons_hor', 1),
  3618. (10, 'menu_inline.html', '_sys_menu_template_title_inline', 1),
  3619. (11, 'menu_interactive_vertical.html', '_sys_menu_template_title_interactive_vertical', 0),
  3620. (12, 'menu_account_popup.html', '_sys_menu_template_title_account_popup', 0),
  3621. (13, 'menu_account_notifications.html', '_sys_menu_template_title_account_notifications', 0),
  3622. (14, 'menu_floating_blocks_big.html', '_sys_menu_template_title_floating_blocks_big', 1),
  3623. (15, 'menu_custom_hor.html', '_sys_menu_template_title_custom_hor', 0),
  3624. (16, 'menu_buttons_ver.html', '_sys_menu_template_title_buttons_ver', 1),
  3625. (17, 'menu_inline_sbtn.html', '_sys_menu_template_title_inline_sbtn', 1),
  3626. (18, 'menu_main_submenu_more_auto.html', '_sys_menu_template_title_main_submenu_more_auto', 0),
  3627. (19, 'menu_floating_blocks_wide.html', '_sys_menu_template_title_floating_blocks_wide', 0),
  3628. (20, 'menu_custom_ver.html', '_sys_menu_template_title_custom_ver', 0),
  3629. (21, 'menu_profile_stats.html', '_sys_menu_template_title_profile_stats', 0),
  3630. (22, 'menu_interactive.html', '_sys_menu_template_title_interactive', 0),
  3631. (23, 'menu_buttons_icon_hor.html', '_sys_menu_template_title_buttons_icon_hor', 1),
  3632. (24, 'menu_floating_blocks_dash.html', '_sys_menu_template_title_floating_blocks_dash', 0),
  3633. (25, 'menu_block_submenu_hor.html', '_sys_menu_template_title_block_submenu_hor', 1),
  3634. (26, 'menu_block_submenu_ver.html', '_sys_menu_template_title_block_submenu_ver', 1),
  3635. (27, 'menu_profile_followings.html', '_sys_menu_template_title_profile_followings', 0),
  3636. (28, 'menu_main.html', '_sys_menu_template_title_main', 0),
  3637. (29, 'menu_add_content.html', '_sys_menu_template_title_add_content', 0);
  3638. CREATE TABLE IF NOT EXISTS `sys_objects_menu` (
  3639. `id` int(11) NOT NULL AUTO_INCREMENT,
  3640. `object` varchar(64) NOT NULL,
  3641. `title` varchar(255) NOT NULL,
  3642. `set_name` varchar(64) NOT NULL,
  3643. `module` varchar(32) NOT NULL,
  3644. `template_id` int(11) NOT NULL,
  3645. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3646. `active` tinyint(4) NOT NULL DEFAULT '0',
  3647. `override_class_name` varchar(255) NOT NULL,
  3648. `override_class_file` varchar(255) NOT NULL,
  3649. PRIMARY KEY (`id`),
  3650. UNIQUE KEY `object` (`object`)
  3651. );
  3652. INSERT INTO `sys_objects_menu` (`object`, `title`, `set_name`, `module`, `template_id`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  3653. ('sys_site', '_sys_menu_title_main', 'sys_site', 'system', 28, 0, 1, 'BxTemplMenuSite', ''),
  3654. ('sys_homepage', '_sys_menu_title_homepage', 'sys_homepage', 'system', 7, 0, 1, 'BxTemplMenuHomepage', ''),
  3655. ('sys_homepage_submenu', '_sys_menu_title_homepage_submenu', 'sys_homepage_submenu', 'system', 8, 0, 1, '', ''),
  3656. ('sys_site_submenu', '_sys_menu_title_submenu', 'sys_site', 'system', 1, 0, 1, 'BxTemplMenuSubmenu', ''),
  3657. ('sys_footer', '_sys_menu_title_footer', 'sys_footer', 'system', 2, 0, 1, 'BxTemplMenuFooter', ''),
  3658. ('sys_toolbar_site', '_sys_menu_title_toolbar_site', 'sys_toolbar_site', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  3659. ('sys_toolbar_member', '_sys_menu_title_toolbar_member', 'sys_toolbar_member', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  3660. ('sys_add_content', '_sys_menu_title_add_content', 'sys_add_content_links', 'system', 29, 0, 1, 'BxTemplMenuSite', ''),
  3661. ('sys_add_profile', '_sys_menu_title_add_profile', 'sys_add_profile_links', 'system', 14, 0, 1, 'BxTemplMenuProfileAdd', ''),
  3662. ('sys_add_profile_vertical', '_sys_menu_title_add_profile_vertical', 'sys_add_profile_links', 'system', 6, 0, 1, 'BxTemplMenuProfileAdd', ''),
  3663. ('sys_account_dashboard', '_sys_menu_title_account_dashboard', 'sys_account_dashboard', 'system', 8, 0, 1, 'BxTemplMenuAccountDashboard', ''),
  3664. ('sys_account_dashboard_manage_tools', '_sys_menu_title_account_dashboard_manage_tools', 'sys_account_dashboard_manage_tools', 'system', 24, 0, 1, 'BxTemplMenuDashboardManageTools', ''),
  3665. ('sys_account_settings_submenu', '_sys_menu_title_account_settings', 'sys_account_settings', 'system', 8, 0, 1, '', ''),
  3666. ('sys_profiles_create', '_sys_menu_title_profiles_create', 'sys_profiles_create', 'system', 4, 0, 1, '', ''),
  3667. ('sys_cmts_item_manage', '_sys_menu_title_cmts_item_manage', 'sys_cmts_item_manage', 'system', 20, 0, 1, 'BxTemplCmtsMenuManage', ''),
  3668. ('sys_cmts_item_actions', '_sys_menu_title_cmts_item_actions', 'sys_cmts_item_actions', 'system', 15, 0, 1, 'BxTemplCmtsMenuActions', ''),
  3669. ('sys_cmts_item_meta', '_sys_menu_title_cmts_item_meta', 'sys_cmts_item_meta', 'system', 15, 0, 1, 'BxTemplCmtsMenuUnitMeta', ''),
  3670. ('sys_account_popup', '_sys_menu_title_account_popup', '', 'system', 12, 0, 1, 'BxTemplMenuAccountPopup', ''),
  3671. ('sys_account_notifications', '_sys_menu_title_account_notifications', 'sys_account_notifications', 'system', 19, 0, 1, 'BxTemplMenuAccountNotifications', ''),
  3672. ('sys_profile_stats', '_sys_menu_title_profile_stats', 'sys_profile_stats', 'system', 21, 0, 1, 'BxTemplMenuProfileStats', ''),
  3673. ('sys_profile_followings', '_sys_menu_title_profile_followings', 'sys_profile_followings', 'system', 27, 0, 1, 'BxTemplMenuProfileFollowings', ''),
  3674. ('sys_switch_language_popup', '_sys_menu_title_switch_language_popup', 'sys_switch_language', 'system', 6, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  3675. ('sys_switch_language_inline', '_sys_menu_title_switch_language_inline', 'sys_switch_language', 'system', 3, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  3676. ('sys_switch_template', '_sys_menu_title_switch_template', 'sys_switch_template', 'system', 6, 0, 1, 'BxTemplMenuSwitchTemplate', ''),
  3677. ('sys_set_acl_level', '_sys_menu_title_set_acl_level', '', 'system', 6, 0, 1, 'BxTemplMenuSetAclLevel', ''),
  3678. ('sys_set_badges', '_sys_menu_title_set_badges', '', 'system', 6, 0, 1, 'BxTemplMenuSetBadges', ''),
  3679. ('sys_social_sharing', '_sys_menu_title_social_sharing', 'sys_social_sharing', 'system', 23, 0, 1, 'BxTemplMenuSocialSharing', ''),
  3680. ('sys_create_post', '_sys_menu_title_create_post', 'sys_add_content_links', 'system', 15, 0, 1, 'BxTemplMenuCreatePost', ''),
  3681. ('sys_dashboard_content', '_sys_menu_title_dashboard_content_manage', 'sys_dashboard_content_manage', 'system', 15, 0, 1, 'BxTemplMenuDashboardContentManage', ''),
  3682. ('sys_dashboard_reports', '_sys_menu_title_dashboard_reports_manage', 'sys_dashboard_reports_manage', 'system', 15, 0, 1, 'BxTemplMenuDashboardReportsManage', ''),
  3683. ('sys_add_relation', '_sys_menu_title_add_relation', '', 'system', 6, 0, 1, 'BxTemplMenuAddRelation', ''),
  3684. ('sys_vote_reactions_do', '_sys_menu_title_vote_reactions_do', '', 'system', 3, 0, 1, 'BxTemplVoteReactionsMenuDo', ''),
  3685. ('sys_wiki', '_sys_menu_title_wiki', 'sys_wiki', 'system', 6, 0, 1, 'BxTemplMenuWiki', ''),
  3686. ('sys_favorite_list', '_sys_menu_title_favorite_list', 'sys_favorite_list', 'system', 9, 0, 1, '', ''),
  3687. ('sys_studio_account_popup', '_sys_menu_title_studio_account_popup', 'sys_studio_account_popup', 'system', 4, 0, 1, 'BxTemplStudioMenuAccountPopup', '');
  3688. CREATE TABLE IF NOT EXISTS `sys_menu_sets` (
  3689. `set_name` varchar(64) NOT NULL,
  3690. `module` varchar(32) NOT NULL,
  3691. `title` varchar(255) NOT NULL,
  3692. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3693. PRIMARY KEY (`set_name`)
  3694. );
  3695. INSERT INTO `sys_menu_sets` (`set_name`, `module`, `title`, `deletable`) VALUES
  3696. ('sys_site', 'system', '_sys_menu_set_title_site', 0),
  3697. ('sys_homepage', 'system', '_sys_menu_set_title_homepage', 0),
  3698. ('sys_homepage_submenu', 'system', '_sys_menu_set_title_homepage_submenu', 0),
  3699. ('sys_footer', 'system', '_sys_menu_set_title_footer', 0),
  3700. ('sys_toolbar_site', 'system', '_sys_menu_set_title_toolbar_site', 0),
  3701. ('sys_toolbar_member', 'system', '_sys_menu_set_title_toolbar_member', 0),
  3702. ('sys_account_notifications', 'system', '_sys_menu_set_title_account_notifications', 0),
  3703. ('sys_add_content_links', 'system', '_sys_menu_set_title_add_content', 0),
  3704. ('sys_dashboard_content_manage', 'system', '_sys_menu_set_title_dashboard_content_manage', 0),
  3705. ('sys_dashboard_reports_manage', 'system', '_sys_menu_set_title_dashboard_reports_manage', 0),
  3706. ('sys_add_profile_links', 'system', '_sys_menu_set_title_add_profile', 0),
  3707. ('sys_account_dashboard', 'system', '_sys_menu_set_title_account_dashboard', 0),
  3708. ('sys_account_dashboard_manage_tools', 'system', '_sys_menu_set_title_account_dashboard_manage_tools', 0),
  3709. ('sys_account_settings', 'system', '_sys_menu_set_title_account_settings', 0),
  3710. ('sys_profiles_create', 'system', '_sys_menu_set_title_profile_create_links', 0),
  3711. ('sys_profile_stats', 'system', '_sys_menu_set_title_profile_stats', 0),
  3712. ('sys_profile_followings', 'system', '_sys_menu_set_title_profile_followings', 0),
  3713. ('sys_cmts_item_manage', 'system', '_sys_menu_set_title_cmts_item_manage', 0),
  3714. ('sys_cmts_item_actions', 'system', '_sys_menu_set_title_cmts_item_actions', 0),
  3715. ('sys_cmts_item_meta', 'system', '_sys_menu_set_title_cmts_item_meta', 0),
  3716. ('sys_switch_language', 'system', '_sys_menu_set_title_switch_language', 0),
  3717. ('sys_switch_template', 'system', '_sys_menu_set_title_switch_template', 0),
  3718. ('sys_social_sharing', 'system', '_sys_menu_set_title_sys_social_sharing', 0),
  3719. ('sys_wiki', 'system', '_sys_menu_set_title_sys_wiki', 0),
  3720. ('sys_favorite_list', 'system', '_sys_menu_set_title_sys_favorite_list', 0),
  3721. ('sys_studio_account_popup', 'system', '_sys_menu_set_title_studio_account_popup', 0);
  3722. CREATE TABLE IF NOT EXISTS `sys_menu_items` (
  3723. `id` int(11) NOT NULL AUTO_INCREMENT,
  3724. `parent_id` int(11) NOT NULL DEFAULT '0',
  3725. `set_name` varchar(64) NOT NULL,
  3726. `module` varchar(32) NOT NULL,
  3727. `name` varchar(255) NOT NULL,
  3728. `title_system` varchar(255) NOT NULL,
  3729. `title` varchar(255) NOT NULL,
  3730. `link` varchar(255) NOT NULL,
  3731. `onclick` varchar(255) NOT NULL,
  3732. `target` varchar(255) NOT NULL,
  3733. `icon` text NOT NULL,
  3734. `addon` text NOT NULL,
  3735. `markers` text NOT NULL,
  3736. `submenu_object` varchar(64) NOT NULL,
  3737. `submenu_popup` tinyint(4) NOT NULL DEFAULT '0',
  3738. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3739. `visibility_custom` text NOT NULL,
  3740. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  3741. `primary` tinyint(4) NOT NULL DEFAULT '0',
  3742. `active` tinyint(4) NOT NULL DEFAULT '1',
  3743. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  3744. `editable` tinyint(4) NOT NULL DEFAULT '1',
  3745. `order` int(11) NOT NULL,
  3746. PRIMARY KEY (`id`)
  3747. );
  3748. -- site menu
  3749. 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
  3750. ('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),
  3751. ('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),
  3752. ('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),
  3753. ('sys_site', 'system', 'more-auto', '_sys_menu_item_title_system_more_auto', '_sys_menu_item_title_more_auto', 'javascript:void(0)', '', '', 'ellipsis-v', '', 2147483647, 1, 0, 9999);
  3754. -- homepage submenu
  3755. 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
  3756. ('sys_homepage_submenu', 'system', 'home', '_sys_menu_item_title_system_home', '_sys_menu_item_title_home', 'index.php', '', '', 'bolt', '', '', 2147483647, '', 0, 1, 1),
  3757. ('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),
  3758. ('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),
  3759. ('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);
  3760. -- footer menu
  3761. 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
  3762. ('sys_footer', 'system', 'about', '_sys_menu_item_title_system_about', '_sys_menu_item_title_about', 'page.php?i=about', '', '', '', '', 2147483647, 1, 1, 1),
  3763. ('sys_footer', 'system', 'terms', '_sys_menu_item_title_system_terms', '_sys_menu_item_title_terms', 'page.php?i=terms', '', '', '', '', 2147483647, 1, 1, 2),
  3764. ('sys_footer', 'system', 'privacy', '_sys_menu_item_title_system_privacy', '_sys_menu_item_title_privacy', 'page.php?i=privacy', '', '', '', '', 2147483647, 1, 1, 3),
  3765. ('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),
  3766. ('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),
  3767. ('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),
  3768. ('sys_footer', 'system', 'powered_by', '_sys_menu_item_title_system_powered_by', '', 'https://una.io', '', '_blank', 'una.svg', '', 2147483647, 1, 1, 9999);
  3769. -- site toolbar menu
  3770. 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
  3771. ('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),
  3772. ('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);
  3773. -- member toolbar menu
  3774. 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
  3775. ('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, 2147483646, 1, 1, 0),
  3776. ('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, 2147483646, 1, 0, 1),
  3777. ('sys_toolbar_member', 'system', 'login', '_sys_menu_item_title_system_login', '', 'page.php?i=login', '', '', 'user', '', '', 0, 1, 1, 0, 2);
  3778. -- notifications menu in account popup
  3779. 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
  3780. ('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),
  3781. ('sys_account_notifications', 'system', 'profile', '_sys_menu_item_title_system_profile', '_sys_menu_item_title_profile', '{member_url}', '', '', 'user', '', '', 2147483644, 1, 1, 2),
  3782. ('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),
  3783. ('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),
  3784. ('sys_account_notifications', 'system', 'studio', '_sys_menu_item_title_system_studio', '_sys_menu_item_title_studio', '{studio_url}', '', '', 'wrench', '', '', 2147483646, 1, 0, 5),
  3785. ('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),
  3786. ('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),
  3787. ('sys_account_notifications', 'system', 'invoices', '_sys_menu_item_title_system_invoices', '_sys_menu_item_title_invoices', 'invoices.php', '', '', 'file-invoice col-green3', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:18:"get_invoices_count";s:6:"params";a:1:{i:0;s:6:"unpaid";}s:5:"class";s:21:"TemplPaymentsServices";}', '', 2147483646, 0, 1, 8),
  3788. ('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);
  3789. -- account settings menu
  3790. 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
  3791. ('sys_account_settings', 'system', 'account-profile-switcher', '_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),
  3792. ('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),
  3793. ('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),
  3794. ('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),
  3795. ('sys_account_settings', '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, 9999);
  3796. -- account dashboard
  3797. 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
  3798. ('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),
  3799. ('sys_account_dashboard', 'system', 'dashboard-subscriptions', '_sys_menu_item_title_system_subscriptions', '_sys_menu_item_title_subscriptions', 'subscriptions.php', '', '', 'credit-card col-blue3', '', '', 2147483646, 1, 1, 2),
  3800. ('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),
  3801. ('sys_account_dashboard', 'system', 'dashboard-invoices', '_sys_menu_item_title_system_invoices', '_sys_menu_item_title_invoices', 'invoices.php', '', '', 'file-invoice col-green3', '', '', 2147483646, 1, 1, 4),
  3802. ('sys_account_dashboard', 'system', 'dashboard-content', '_sys_menu_item_title_system_account_dashboard_content', '_sys_menu_item_title_account_dashboard_content', 'page.php?i=dashboard-content', '', '', 'copy', '', '', 2147483646, 1, 1, 5),
  3803. ('sys_account_dashboard', 'system', 'dashboard-reports', '_sys_menu_item_title_system_account_dashboard_reports', '_sys_menu_item_title_account_dashboard_reports', 'page.php?i=dashboard-reports', '', '', 'exclamation-circle', '', '', 2147483646, 1, 1, 6),
  3804. ('sys_account_dashboard', 'system', 'dashboard-audit', '_sys_menu_item_title_system_account_dashboard_audit', '_sys_menu_item_title_account_dashboard_audit', 'page.php?i=dashboard-audit', '', '', 'history', '', '', 2147483646, 1, 1, 7);
  3805. -- comment manage menu
  3806. 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
  3807. ('sys_cmts_item_manage', 'system', 'item-pin', '_sys_menu_item_title_system_cmts_item_pin', '_sys_menu_item_title_cmts_item_pin', 'javascript:void(0)', 'javascript:{js_object}.cmtPin(this, {content_id}, 1)', '_self', 'thumbtack', '', 2147483647, 1, 0, 0),
  3808. ('sys_cmts_item_manage', 'system', 'item-unpin', '_sys_menu_item_title_system_cmts_item_unpin', '_sys_menu_item_title_cmts_item_unpin', 'javascript:void(0)', 'javascript:{js_object}.cmtPin(this, {content_id}, 0)', '_self', 'thumbtack', '', 2147483647, 1, 0, 0),
  3809. ('sys_cmts_item_manage', 'system', 'item-report', '_sys_menu_item_title_system_cmts_item_report', '', 'javascript:void(0)', '', '', '', '', 2147483647, 1, 0, 0),
  3810. ('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),
  3811. ('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);
  3812. -- comment actions menu
  3813. 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
  3814. ('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),
  3815. ('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),
  3816. ('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),
  3817. ('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),
  3818. ('sys_cmts_item_actions', 'system', 'item-quote', '_sys_menu_item_title_system_cmts_item_quote', '_sys_menu_item_title_cmts_item_quote', 'javascript:void(0)', 'javascript:{quote_onclick}', '_self', 'quote-right', '', '', 0, 2147483647, 1, 0, 1, 4),
  3819. ('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}'', ''removeOnClose'':1}, {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, 5);
  3820. -- comment meta info menu
  3821. 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
  3822. ('sys_cmts_item_meta', 'system', 'author', '_sys_menu_item_title_system_sm_author', '_sys_menu_item_title_sm_author', '', '', '', '', '', '', 0, 2147483647, 1, 0, 1, 0),
  3823. ('sys_cmts_item_meta', 'system', 'in-reply-to', '_sys_menu_item_title_system_sm_in_reply_to', '_sys_menu_item_title_sm_in_reply_to', '', '', '', '', '', '', 0, 2147483647, 1, 0, 1, 1),
  3824. ('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),
  3825. ('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);
  3826. -- social sharing menu
  3827. 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
  3828. ('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),
  3829. ('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),
  3830. ('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);
  3831. -- dashboard manage tools
  3832. 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
  3833. ('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),
  3834. ('sys_account_dashboard_manage_tools', 'system', 'audit-administration', '_sys_menu_item_title_system_audit_administration', '_sys_menu_item_title_audit_administration', 'page.php?i=audit-administration', '', '', 'comments', 'a:2:{s:6:"module";s:6:"system";s:6:"method";s:27:"get_menu_addon_manage_tools";}', '', 192, 1, 0, 2);
  3835. -- profile stats
  3836. 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
  3837. ('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);
  3838. -- wiki menu
  3839. INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `submenu_popup`, `visible_for_levels`, `visibility_custom`, `active`, `copyable`, `editable`, `order`) VALUES
  3840. ('sys_wiki', 'system', 'edit', '', '_sys_menu_item_title_wiki_edit', '', '', '', 'edit', '', '', 0, 2147483646, '', 1, 0, 1, 1),
  3841. ('sys_wiki', 'system', 'delete-version', '', '_sys_menu_item_title_wiki_delete_version', '', '', '', 'times', '', '', 0, 2147483646, '', 1, 0, 1, 2),
  3842. ('sys_wiki', 'system', 'delete-block', '', '_sys_menu_item_title_wiki_delete_block', '', '', '', 'times-circle', '', '', 0, 2147483646, '', 1, 0, 1, 3),
  3843. ('sys_wiki', 'system', 'translate', '', '_sys_menu_item_title_wiki_translate', '', '', '', 'language', '', '', 0, 2147483646, '', 1, 0, 1, 4),
  3844. ('sys_wiki', 'system', 'history', '', '_sys_menu_item_title_wiki_history', '', '', '', 'history', '', '', 0, 2147483646, '', 1, 0, 1, 5);
  3845. -- favorite list menu
  3846. INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `submenu_popup`, `visible_for_levels`, `visibility_custom`, `active`, `copyable`, `editable`, `order`) VALUES
  3847. ('sys_favorite_list', 'system', 'edit', '', '_sys_menu_item_title_favorite_list_edit', 'javascript:void(0)', 'javascript:{js_object}.cmtEdit(this, {list_id})', '', 'edit', '', '', 0, 2147483646, '', 1, 0, 1, 1),
  3848. ('sys_favorite_list', 'system', 'delete', '', '_sys_menu_item_title_wiki_favorite_list_delete', 'javascript:void(0)', 'javascript:{js_object}.cmtDelete(this, {list_id})', '', 'times', '', '', 0, 2147483646, '', 1, 0, 1, 2);
  3849. -- studio: account menu
  3850. INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `submenu_object`, `visible_for_levels`, `active`, `copyable`, `editable`, `order`) VALUES
  3851. ('sys_studio_account_popup', 'system', 'account', '_sys_menu_item_title_system_sa_account', '_sys_menu_item_title_sa_account', '{member_url}', '', '', 'ami-account.svg', '', 2147483647, 1, 0, 0, 1),
  3852. ('sys_studio_account_popup', 'system', 'edit', '_sys_menu_item_title_system_sa_edit', '_sys_menu_item_title_sa_edit', 'javascript:void(0)', '{js_object}.clickEdit(this);', '', 'ami-edit.svg', '', 2147483647, 1, 0, 0, 2),
  3853. ('sys_studio_account_popup', 'system', 'language', '_sys_menu_item_title_system_sa_language', '_sys_menu_item_title_sa_language', 'javascript:void(0)', 'bx_menu_popup(''sys_switch_language_popup'', this);', '', 'ami-language.svg', '', 2147483647, 1, 0, 0, 3),
  3854. ('sys_studio_account_popup', 'system', 'logout', '_sys_menu_item_title_system_sa_logout', '_sys_menu_item_title_sa_logout', '{url_root}logout.php', '{js_object}.clickLogout(this);', '', 'ami-logout.svg', '', 2147483647, 1, 0, 0, 4);
  3855. -- --------------------------------------------------------
  3856. CREATE TABLE IF NOT EXISTS `sys_objects_grid` (
  3857. `id` int(11) NOT NULL AUTO_INCREMENT,
  3858. `object` varchar(64) NOT NULL,
  3859. `source_type` enum('Array','Sql') NOT NULL,
  3860. `source` text NOT NULL,
  3861. `table` varchar(255) NOT NULL,
  3862. `field_id` varchar(255) NOT NULL,
  3863. `field_order` varchar(255) NOT NULL,
  3864. `field_active` varchar(255) NOT NULL,
  3865. `order_get_field` varchar(255) NOT NULL DEFAULT 'order_field',
  3866. `order_get_dir` varchar(255) NOT NULL DEFAULT 'order_dir',
  3867. `paginate_url` varchar(255) NOT NULL,
  3868. `paginate_per_page` int(11) NOT NULL DEFAULT '10',
  3869. `paginate_simple` varchar(255) DEFAULT NULL,
  3870. `paginate_get_start` varchar(255) NOT NULL,
  3871. `paginate_get_per_page` varchar(255) NOT NULL,
  3872. `filter_fields` text NOT NULL,
  3873. `filter_fields_translatable` text NOT NULL,
  3874. `filter_mode` enum('like','fulltext','auto') NOT NULL DEFAULT 'auto',
  3875. `filter_get` varchar(255) NOT NULL DEFAULT 'filter',
  3876. `sorting_fields` text NOT NULL,
  3877. `sorting_fields_translatable` text NOT NULL,
  3878. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3879. `responsive` tinyint(4) NOT NULL DEFAULT '1',
  3880. `show_total_count` tinyint(4) NOT NULL DEFAULT '1',
  3881. `override_class_name` varchar(255) NOT NULL,
  3882. `override_class_file` varchar(255) NOT NULL,
  3883. PRIMARY KEY (`id`),
  3884. UNIQUE KEY `object` (`object`)
  3885. );
  3886. -- GRIDS: studio
  3887. 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
  3888. ('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', ''),
  3889. ('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', ''),
  3890. ('sys_studio_roles', 'Sql', 'SELECT * FROM `sys_std_roles` WHERE 1 ', 'sys_std_roles', 'id', 'order', 'active', '', 100, NULL, 'start', '', 'name', 'title,description', 'auto', '', '', 'BxTemplStudioRolesLevels', ''),
  3891. ('sys_studio_roles_actions', 'Sql', 'SELECT *, ''0'' AS `active` FROM `sys_std_roles_actions` WHERE 1 ', 'sys_std_roles_actions', 'id', '', 'active', '', 20, NULL, 'start', '', 'name', 'title,description', 'auto', '', '', 'BxTemplStudioRolesActions', ''),
  3892. ('sys_studio_acl', 'Sql', 'SELECT * FROM `sys_acl_levels` WHERE 1 ', 'sys_acl_levels', 'ID', 'Order', 'Active', '', 100, NULL, 'start', '', 'Description', 'Name', 'auto', '', '', 'BxTemplStudioPermissionsLevels', ''),
  3893. ('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', ''),
  3894. ('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', ''),
  3895. ('sys_studio_nav_sets', 'Sql', 'SELECT * FROM `sys_menu_sets` WHERE 1 ', 'sys_menu_sets', 'set_name', '', '', '', 100, NULL, 'start', '', '', 'title', 'auto', '', '', 'BxTemplStudioNavigationSets', ''),
  3896. ('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', ''),
  3897. ('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', ''),
  3898. ('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', ''),
  3899. ('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', ''),
  3900. ('sys_studio_forms_fields', 'Sql', 'SELECT `tdi`.`id` AS `id`, `ti`.`caption_system` AS `caption_system`, `ti`.`caption` AS `caption`, `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', ''),
  3901. ('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', ''),
  3902. ('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', ''),
  3903. ('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', ''),
  3904. ('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', ''),
  3905. ('sys_studio_labels', 'Sql', 'SELECT * FROM `sys_labels` WHERE 1 ', 'sys_labels', 'id', 'order', '', '', 1000, NULL, 'start', '', 'value', '', 'like', 'value', '', 'BxTemplStudioFormsLabels', ''),
  3906. ('sys_studio_categories', 'Sql', 'SELECT * FROM `sys_categories` WHERE 1 ', 'sys_categories', 'id', 'added', 'status', '', 20, NULL, 'start', '', 'value', '', 'like', '', '', 'BxTemplStudioFormsCategories', ''),
  3907. ('sys_studio_groups_roles', 'Sql', 'SELECT * FROM `sys_form_pre_values` WHERE 1 ', 'sys_form_pre_values', 'id', 'Order', '', '', 20, NULL, 'start', '', '', 'LKey', 'like', '', '', 'BxTemplStudioFormsGroupsRoles', ''),
  3908. ('sys_audit_administration', 'Sql', 'SELECT * FROM `sys_audit` WHERE 1 ', 'sys_audit', 'id', 'added', '', '', 20, NULL, 'start', '', 'value', '', 'like', 'content_module,profile_id,content_id,author_id,context_profile_id,added', 'action_lang_key', 'BxTemplAuditGrid', ''),
  3909. ('sys_badges_administration', 'Sql', 'SELECT * FROM `sys_badges` WHERE 1 ', 'sys_badges', 'id', 'added', '', '', 20, NULL, 'start', '', 'text', '', 'like', '', '', 'BxTemplStudioBadgesGrid', ''),
  3910. ('sys_reports_administration', 'Sql', 'WHERE 1 ', '', 'id', 'date', '', '', 20, NULL, 'start', '', 'text,type', '', 'like', '', '', 'BxTemplReportsGrid', '');
  3911. CREATE TABLE IF NOT EXISTS `sys_grid_fields` (
  3912. `object` varchar(64) NOT NULL,
  3913. `name` varchar(255) NOT NULL,
  3914. `title` varchar(255) NOT NULL,
  3915. `width` varchar(16) NOT NULL,
  3916. `translatable` tinyint(4) NOT NULL DEFAULT '0',
  3917. `chars_limit` int(11) NOT NULL DEFAULT '0',
  3918. `params` text NOT NULL,
  3919. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  3920. `order` int(11) NOT NULL,
  3921. UNIQUE KEY `object_name` (`object`(64),`name`(127))
  3922. );
  3923. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  3924. ('sys_studio_lang_keys', 'checkbox', 'Select', '1%', 0, '', '', 1),
  3925. ('sys_studio_lang_keys', 'key', '_adm_pgt_txt_key', '24%', 0, '20', '', 2),
  3926. ('sys_studio_lang_keys', 'module', '_adm_pgt_txt_module', '15%', 0, '12', '', 3),
  3927. ('sys_studio_lang_keys', 'string', '_adm_pgt_txt_text', '30%', 0, '30', '', 4),
  3928. ('sys_studio_lang_keys', 'languages', '_adm_pgt_txt_languages', '10%', 0, '', '', 5),
  3929. ('sys_studio_lang_keys', 'actions', '', '20%', 0, '', '', 6),
  3930. ('sys_studio_lang_etemplates', 'NameSystem', '_adm_pgt_txt_etemplates_gl_name_system', '60%', 1, '58', '', 1),
  3931. ('sys_studio_lang_etemplates', 'Module', '_adm_pgt_txt_etemplates_gl_module', '20%', 0, '18', '', 2),
  3932. ('sys_studio_lang_etemplates', 'actions', '', '20%', 0, '', '', 3),
  3933. ('sys_studio_roles', 'order', '', '1%', 0, 0, '', 1),
  3934. ('sys_studio_roles', 'switcher', '', '5%', 0, 0, '', 2),
  3935. ('sys_studio_roles', 'title', '_adm_rl_txt_title', '24%', 1, 0, '', 3),
  3936. ('sys_studio_roles', 'description', '_adm_rl_txt_description', '35%', 1, 32, '', 4),
  3937. ('sys_studio_roles', 'actions_list', '_adm_rl_txt_actions', '15%', 0, 0, '', 5),
  3938. ('sys_studio_roles', 'actions', '', '20%', 0, 0, '', 6),
  3939. ('sys_studio_roles_actions', 'switcher', '', '10%', 0, 0, '', 1),
  3940. ('sys_studio_roles_actions', 'title', '_adm_rl_txt_title', '40%', 1, 32, '', 2),
  3941. ('sys_studio_roles_actions', 'description', '_adm_rl_txt_description', '50%', 1, 48, '', 3),
  3942. ('sys_studio_acl', 'Order', '', '1%', 0, '', '', 1),
  3943. ('sys_studio_acl', 'switcher', '_adm_prm_txt_enable', '5%', 0, '', '', 2),
  3944. ('sys_studio_acl', 'Icon', '_adm_prm_txt_icon', '5%', 0, '', '', 3),
  3945. ('sys_studio_acl', 'Name', '_adm_prm_txt_title', '29%', 1, '15', '', 4),
  3946. ('sys_studio_acl', 'ActionsList', '_adm_prm_txt_actions', '10%', 0, '', '', 5),
  3947. ('sys_studio_acl', 'QuotaSize', '_adm_prm_txt_storage', '10%', 0, '', '', 6),
  3948. ('sys_studio_acl', 'QuotaMaxFileSize', '_adm_prm_txt_max_file_size', '10%', 0, '', '', 7),
  3949. ('sys_studio_acl', 'QuotaNumber', '_adm_prm_txt_max_files', '10%', 0, '', '', 8),
  3950. ('sys_studio_acl', 'actions', '', '20%', 0, '', '', 9),
  3951. ('sys_studio_acl_actions', 'switcher', '_adm_prm_txt_enable', '10%', 0, '', '', 1),
  3952. ('sys_studio_acl_actions', 'Title', '_adm_prm_txt_title', '25%', 1, '25', '', 2),
  3953. ('sys_studio_acl_actions', 'Module', '_adm_prm_txt_module', '20%', 0, '18', '', 3),
  3954. ('sys_studio_acl_actions', 'Desc', '_adm_prm_txt_description', '25%', 0, '25', '', 4),
  3955. ('sys_studio_acl_actions', 'actions', '', '20%', 0, '', '', 5),
  3956. ('sys_studio_nav_menus', 'switcher', '', '10%', 0, '', '', 1),
  3957. ('sys_studio_nav_menus', 'title', '_adm_nav_txt_menus_gl_title', '17%', 0, '15', '', 2),
  3958. ('sys_studio_nav_menus', 'set_title', '_adm_nav_txt_menus_gl_set_title', '17%', 1, '15', '', 3),
  3959. ('sys_studio_nav_menus', 'items', '_adm_nav_txt_menus_gl_items', '10%', 0, '8', '', 4),
  3960. ('sys_studio_nav_menus', 'template_title', '_adm_nav_txt_menus_gl_template_title', '17%', 1, '15', '', 5),
  3961. ('sys_studio_nav_menus', 'module', '_adm_nav_txt_menus_gl_module', '12%', 0, '10', '', 6),
  3962. ('sys_studio_nav_menus', 'actions', '', '17%', 0, '', '', 7),
  3963. ('sys_studio_nav_sets', 'title', '_adm_nav_txt_sets_gl_title', '50%', 1, '48', '', 1),
  3964. ('sys_studio_nav_sets', 'module', '_adm_nav_txt_sets_gl_module', '15%', 0, '13', '', 2),
  3965. ('sys_studio_nav_sets', 'items', '_adm_nav_txt_sets_gl_items', '15%', 0, '13', '', 3),
  3966. ('sys_studio_nav_sets', 'actions', '', '20%', 0, '', '', 4),
  3967. ('sys_studio_nav_items', 'order', '', '1%', 0, '', '', 1),
  3968. ('sys_studio_nav_items', 'switcher', '', '9%', 0, '', '', 2),
  3969. ('sys_studio_nav_items', 'icon', '_adm_nav_txt_items_gl_icon', '5%', 0, '', '', 3),
  3970. ('sys_studio_nav_items', 'title_system', '_adm_nav_txt_items_gl_title_system', '23%', 1, '23', '', 4),
  3971. ('sys_studio_nav_items', 'link', '_adm_nav_txt_items_gl_link', '23%', 0, '23', '', 5),
  3972. ('sys_studio_nav_items', 'module', '_adm_nav_txt_items_gl_module', '12%', 0, '12', '', 6),
  3973. ('sys_studio_nav_items', 'visible_for_levels', '_adm_nav_txt_items_gl_visible', '10%', 0, '10', '', 7),
  3974. ('sys_studio_nav_items', 'actions', '', '17%', 0, '', '', 8),
  3975. ('sys_studio_nav_import', 'icon', '_adm_nav_txt_items_gl_icon', '10%', 0, '', '', 1),
  3976. ('sys_studio_nav_import', 'title_system', '_adm_nav_txt_items_gl_title_system', '30%', 1, '28', '', 2),
  3977. ('sys_studio_nav_import', 'link', '_adm_nav_txt_items_gl_link', '25%', 0, '23', '', 3),
  3978. ('sys_studio_nav_import', 'module', '_adm_nav_txt_items_gl_module', '15%', 0, '13', '', 4),
  3979. ('sys_studio_nav_import', 'actions', '', '20%', 0, '', '', 5),
  3980. ('sys_studio_forms', 'switcher', '', '10%', 0, '', '', 1),
  3981. ('sys_studio_forms', 'title', '_adm_form_txt_forms_gl_title', '40%', 1, '38', '', 2),
  3982. ('sys_studio_forms', 'module', '_adm_form_txt_forms_gl_module', '15%', 0, '13', '', 3),
  3983. ('sys_studio_forms', 'displays', '_adm_form_txt_forms_gl_displays', '15%', 0, '13', '', 4),
  3984. ('sys_studio_forms', 'actions', '', '20%', 0, '', '', 5),
  3985. ('sys_studio_forms_displays', 'display_title', '_adm_form_txt_displays_gl_title', '30%', 1, '48', '', 1),
  3986. ('sys_studio_forms_displays', 'module', '_adm_form_txt_displays_gl_module', '13%', 0, '11', '', 2),
  3987. ('sys_studio_forms_displays', 'form_title', '_adm_form_txt_displays_gl_form', '24%', 1, '22', '', 3),
  3988. ('sys_studio_forms_displays', 'fields', '_adm_form_txt_displays_gl_fields', '13%', 0, '11', '', 4),
  3989. ('sys_studio_forms_displays', 'actions', '', '20%', 0, '', '', 5),
  3990. ('sys_studio_forms_fields', 'order', '', '1%', 0, '', '', 1),
  3991. ('sys_studio_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  3992. ('sys_studio_forms_fields', 'type', '_adm_form_txt_fields_type', '5%', 0, '', '', 3),
  3993. ('sys_studio_forms_fields', 'caption_system', '_adm_form_txt_fields_caption_system', '40%', 1, '38', '', 4),
  3994. ('sys_studio_forms_fields', 'module', '_adm_form_txt_fields_module', '15%', 0, '13', '', 5),
  3995. ('sys_studio_forms_fields', 'visible_for_levels', '_adm_form_txt_fields_visible', '10%', 0, '10', '', 6),
  3996. ('sys_studio_forms_fields', 'actions', '', '20%', 0, '', '', 7),
  3997. ('sys_studio_forms_pre_lists', 'title', '_adm_form_txt_pre_lists_gl_title', '45%', 1, '50', '', 1),
  3998. ('sys_studio_forms_pre_lists', 'values', '_adm_form_txt_pre_lists_gl_values', '12%', 0, '10', '', 2),
  3999. ('sys_studio_forms_pre_lists', 'module', '_adm_form_txt_pre_lists_gl_module', '13%', 0, '11', '', 3),
  4000. ('sys_studio_forms_pre_lists', 'use_for_sets', '_adm_form_txt_pre_lists_gl_use_for_sets', '10%', 0, '8', '', 4),
  4001. ('sys_studio_forms_pre_lists', 'actions', '', '20%', 0, '', '', 5),
  4002. ('sys_studio_forms_pre_values', 'checkbox', '', '1%', 0, '', '', 1),
  4003. ('sys_studio_forms_pre_values', 'order', '', '1%', 0, '', '', 2),
  4004. ('sys_studio_forms_pre_values', 'LKey', '_adm_form_txt_pre_values_gl_lkey', '78%', 1, '75', '', 3),
  4005. ('sys_studio_forms_pre_values', 'actions', '', '20%', 0, '', '', 4),
  4006. ('sys_studio_search_forms', 'switcher', '', '10%', 0, '', '', 1),
  4007. ('sys_studio_search_forms', 'title', '_adm_form_txt_search_forms_title', '40%', 1, '38', '', 2),
  4008. ('sys_studio_search_forms', 'module', '_adm_form_txt_search_forms_module', '15%', 0, '13', '', 3),
  4009. ('sys_studio_search_forms', 'fields', '_adm_form_txt_search_forms_fields', '15%', 0, '13', '', 4),
  4010. ('sys_studio_search_forms', 'actions', '', '20%', 0, '', '', 5),
  4011. ('sys_studio_search_forms_fields', 'order', '', '1%', 0, '', '', 1),
  4012. ('sys_studio_search_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  4013. ('sys_studio_search_forms_fields', 'type', '_adm_form_txt_search_forms_fields_type', '15%', 0, '', '', 3),
  4014. ('sys_studio_search_forms_fields', 'caption', '_adm_form_txt_search_forms_fields_caption', '40%', 1, '38', '', 4),
  4015. ('sys_studio_search_forms_fields', 'search_type', '_adm_form_txt_search_forms_fields_search_type', '15%', 0, '', '', 5),
  4016. ('sys_studio_search_forms_fields', 'actions', '', '20%', 0, '', '', 6),
  4017. ('sys_studio_labels', 'order', '', '1%', 0, 0, '', 1),
  4018. ('sys_studio_labels', 'value', '_adm_form_txt_labels_value', '70%', 0, 38, '', 2),
  4019. ('sys_studio_labels', 'items', '_adm_form_txt_labels_items', '10%', 0, 0, '', 3),
  4020. ('sys_studio_labels', 'actions', '', '19%', 0, 0, '', 4),
  4021. ('sys_studio_categories', 'checkbox', '_sys_select', '2%', 0, 0, '', 1),
  4022. ('sys_studio_categories', 'switcher', '_adm_prm_txt_enable', '8%', 0, 0, '', 2),
  4023. ('sys_studio_categories', 'value', '_adm_form_txt_categories_value', '25%', 0, 35, '', 3),
  4024. ('sys_studio_categories', 'module', '_adm_form_txt_categories_module', '15%', 0, 35, '', 4),
  4025. ('sys_studio_categories', 'author', '_adm_form_txt_categories_author', '15%', 0, 35, '', 5),
  4026. ('sys_studio_categories', 'added', '_adm_form_txt_categories_added', '15%', 1, 25, '', 6),
  4027. ('sys_studio_categories', 'actions', '', '20%', 0, 0, '', 7),
  4028. ('sys_studio_groups_roles', 'order', '', '2%', 0, 0, '', 1),
  4029. ('sys_studio_groups_roles', 'LKey', '_adm_rl_txt_title', '40%', 1, 0, '', 2),
  4030. ('sys_studio_groups_roles', 'actions_list', '_adm_rl_txt_actions', '10%', 0, 35, '', 3),
  4031. ('sys_studio_groups_roles', 'actions', '', '48%', 0, 0, '', 4),
  4032. ('sys_audit_administration', 'added', '_adm_form_txt_audit_added', '15%', 1, 25, '', 1),
  4033. ('sys_audit_administration', 'profile_id', '_adm_form_txt_audit_profile', '15%', 1, 25, '', 2),
  4034. ('sys_audit_administration', 'content_id', '_adm_form_txt_audit_content', '20%', 1, 25, '', 3),
  4035. ('sys_audit_administration', 'author_id', '_adm_form_txt_audit_author_content', '10%', 1, 25, '', 4),
  4036. ('sys_audit_administration', 'content_module', '_adm_form_txt_audit_module', '10%', 1, 25, '', 5),
  4037. ('sys_audit_administration', 'context_profile_id', '_adm_pgt_txt_audit_context', '15%', 1, 25, '', 6),
  4038. ('sys_audit_administration', 'action_lang_key', '_adm_pgt_txt_audit_action', '15%', 1, 25, '', 7),
  4039. ('sys_badges_administration', 'checkbox', '_sys_select', '2%', 0, 0, '', 1),
  4040. ('sys_badges_administration', 'view', '_adm_form_txt_badges_view', '15%', 1, 0, '', 2),
  4041. ('sys_badges_administration', 'module', '_adm_form_txt_badges_module', '15%', 1, 25, '', 3),
  4042. ('sys_badges_administration', 'text', '_adm_pgt_txt_badges_text', '28%', 1, 35, '', 4),
  4043. ('sys_badges_administration', 'icon', '_adm_pgt_txt_badges_icon', '20%', 1, 0, '', 5),
  4044. ('sys_badges_administration', 'actions', '', '20%', 0, 0, '', 6),
  4045. ('sys_reports_administration', 'object', '_adm_form_txt_reports_object', '10%', 1, 25, '', 1),
  4046. ('sys_reports_administration', 'author', '_adm_form_txt_reports_author', '10%', 1, 25, '', 2),
  4047. ('sys_reports_administration', 'type', '_adm_form_txt_reports_type', '10%', 1, 25, '', 3),
  4048. ('sys_reports_administration', 'text', '_adm_form_txt_reports_text', '10%', 1, 25, '', 4),
  4049. ('sys_reports_administration', 'date', '_adm_form_txt_reports_date', '10%', 1, 25, '', 5),
  4050. ('sys_reports_administration', 'status', '_adm_form_txt_reports_status', '10%', 1, 25, '', 6),
  4051. ('sys_reports_administration', 'checked_by', '_adm_form_txt_reports_checked_by', '10%', 1, 25, '', 7),
  4052. ('sys_reports_administration', 'notes', '_adm_form_txt_reports_notes', '10%', 1, 25, '', 8),
  4053. ('sys_reports_administration', 'comments', '_adm_form_txt_reports_comments', '10%', 1, 25, '', 8),
  4054. ('sys_reports_administration', 'actions', '', '10%', 0, '', '', 9);
  4055. CREATE TABLE IF NOT EXISTS `sys_grid_actions` (
  4056. `object` varchar(64) NOT NULL,
  4057. `type` enum('bulk','single','independent') NOT NULL,
  4058. `name` varchar(255) NOT NULL,
  4059. `title` varchar(255) NOT NULL,
  4060. `icon` varchar(255) NOT NULL,
  4061. `icon_only` tinyint(4) NOT NULL DEFAULT '0',
  4062. `confirm` tinyint(4) NOT NULL DEFAULT '1',
  4063. `order` int(11) NOT NULL,
  4064. UNIQUE KEY `object_name_type` (`object`(64),`type`,`name`(123))
  4065. );
  4066. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`) VALUES
  4067. ('sys_studio_lang_keys', 'bulk', 'delete', '_adm_pgt_btn_delete', '', 1, 1),
  4068. ('sys_studio_lang_keys', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4069. ('sys_studio_lang_keys', 'single', 'delete', '', 'remove', 1, 2),
  4070. ('sys_studio_lang_keys', 'independent', 'add', '_adm_pgt_btn_add_new_key', '', 0, 1),
  4071. ('sys_studio_lang_etemplates', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4072. ('sys_studio_acl', 'independent', 'add', '_adm_prm_btn_add_level', '', 0, 1),
  4073. ('sys_studio_acl', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4074. ('sys_studio_acl', 'single', 'delete', '', 'remove', 1, 2),
  4075. ('sys_studio_acl_actions', 'single', 'options', '', 'cog', 0, 1),
  4076. ('sys_studio_nav_menus', 'independent', 'add', '_adm_nav_btn_menus_create', '', 0, 1),
  4077. ('sys_studio_nav_menus', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4078. ('sys_studio_nav_menus', 'single', 'delete', '', 'remove', 1, 2),
  4079. ('sys_studio_nav_sets', 'independent', 'add', '_adm_nav_btn_sets_create', '', 0, 1),
  4080. ('sys_studio_nav_sets', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4081. ('sys_studio_nav_sets', 'single', 'delete', '', 'remove', 1, 2),
  4082. ('sys_studio_nav_items', 'independent', 'import', '_adm_nav_btn_items_gl_import', '', 0, 1),
  4083. ('sys_studio_nav_items', 'independent', 'add', '_adm_nav_btn_items_gl_create', '', 0, 2),
  4084. ('sys_studio_nav_items', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4085. ('sys_studio_nav_items', 'single', 'delete', '', 'remove', 1, 2),
  4086. ('sys_studio_nav_items', 'single', 'show_to', '_adm_nav_btn_items_gl_visible', '', 0, 3),
  4087. ('sys_studio_nav_import', 'single', 'import', '', 'plus', 0, 1),
  4088. ('sys_studio_nav_import', 'bulk', 'done', '_adm_nav_btn_items_done', '', 0, 1),
  4089. ('sys_studio_forms', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4090. ('sys_studio_forms_displays', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4091. ('sys_studio_forms_fields', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4092. ('sys_studio_forms_fields', 'single', 'delete', '', 'remove', 1, 2),
  4093. ('sys_studio_forms_fields', 'single', 'show_to', '_adm_form_btn_fields_visible', '', 0, 3),
  4094. ('sys_studio_forms_fields', 'independent', 'add', '_adm_form_btn_fields_create', '', 0, 1),
  4095. ('sys_studio_forms_pre_lists', 'independent', 'add', '_adm_form_btn_pre_lists_create', '', 0, 1),
  4096. ('sys_studio_forms_pre_lists', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4097. ('sys_studio_forms_pre_lists', 'single', 'delete', '', 'remove', 1, 2),
  4098. ('sys_studio_forms_pre_values', 'independent', 'add', '_adm_form_btn_pre_values_create', '', 0, 1),
  4099. ('sys_studio_forms_pre_values', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4100. ('sys_studio_forms_pre_values', 'single', 'delete', '', 'remove', 1, 2),
  4101. ('sys_studio_forms_pre_values', 'bulk', 'delete', '_adm_form_btn_pre_values_delete', '', 1, 1),
  4102. ('sys_studio_search_forms', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4103. ('sys_studio_search_forms_fields', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4104. ('sys_studio_search_forms_fields', 'independent', 'reset', '_adm_form_btn_search_forms_fields_reset', '', 0, 1),
  4105. ('sys_studio_labels', 'independent', 'back', '_adm_form_btn_labels_back', '', 0, 1),
  4106. ('sys_studio_labels', 'independent', 'add', '_adm_form_btn_labels_add', '', 0, 2),
  4107. ('sys_studio_labels', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4108. ('sys_studio_labels', 'single', 'delete', '', 'remove', 1, 2),
  4109. ('sys_studio_categories', 'bulk', 'delete', '_adm_form_btn_categories_delete', '', 1, 1),
  4110. ('sys_studio_categories', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4111. ('sys_studio_categories', 'single', 'delete', '', 'remove', 1, 2),
  4112. ('sys_studio_categories', 'independent', 'add', '_adm_form_btn_categories_add', '', 0, 1),
  4113. ('sys_studio_groups_roles', 'independent', 'add', '_adm_rl_btn_role_add', '', 0, 1),
  4114. ('sys_studio_groups_roles', 'single', 'edit', '_adm_rl_btn_role_edit', 'pencil-alt', 0, 1),
  4115. ('sys_studio_groups_roles', 'single', 'delete', '_adm_rl_btn_role_delete', 'remove', 1, 3),
  4116. ('sys_badges_administration', 'bulk', 'delete', '_adm_form_btn_badges_delete', '', 1, 1),
  4117. ('sys_badges_administration', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4118. ('sys_badges_administration', 'single', 'delete', '', 'remove', 1, 2),
  4119. ('sys_badges_administration', 'single', 'delete_icon', '', '', 1, 3),
  4120. ('sys_badges_administration', 'independent', 'add', '_adm_form_btn_badges_add', '', 0, 1);
  4121. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`, `icon_only`) VALUES
  4122. ('sys_reports_administration', 'single', 'check_in', '_adm_form_btn_reports_check_in', 'lock-open', 0, 1, 1),
  4123. ('sys_reports_administration', 'single', 'check_out', '_adm_form_btn_reports_check_out', 'lock', 0, 2, 1),
  4124. ('sys_reports_administration', 'single', 'audit', '_adm_form_btn_reports_audit', 'history', 0, 3, 1);
  4125. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4126. ('sys_studio_roles', 'independent', 'add', '_adm_rl_btn_role_add', '', 0, 0, 1),
  4127. ('sys_studio_roles', 'single', 'edit', '_adm_rl_btn_role_edit', 'pencil-alt', 1, 0, 1),
  4128. ('sys_studio_roles', 'single', 'delete', '_adm_rl_btn_role_delete', 'remove', 1, 1, 2);
  4129. -- GRIDS: moderation tools
  4130. 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
  4131. ('sys_cmts_administration', 'Sql', '', 'sys_cmts_ids', 'cmt_id', 'cmt_time', '', '', 20, NULL, 'start', '', 'cmt_text,email', '', 'like', 'reports', '', 192, 'BxTemplCmtsGridAdministration', '');
  4132. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  4133. ('sys_cmts_administration', 'checkbox', '_sys_select', '2%', 0, '0', '', 1),
  4134. ('sys_cmts_administration', 'reports', '_sys_txt_reports_title', '5%', 0, '0', '', 2),
  4135. ('sys_cmts_administration', 'cmt_text', '_sys_cmts_administration_grid_column_title_adm_cmt_text', '33%', 0, '25', '', 3),
  4136. ('sys_cmts_administration', 'cmt_time', '_sys_cmts_administration_grid_column_title_adm_cmt_time', '20%', 1, '25', '', 4),
  4137. ('sys_cmts_administration', 'cmt_author_id', '_sys_cmts_administration_grid_column_title_adm_cmt_author_id', '20%', 0, '25', '', 5),
  4138. ('sys_cmts_administration', 'actions', '', '20%', 0, '', '', 6);
  4139. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4140. ('sys_cmts_administration', 'bulk', 'delete', '_sys_cmts_administration_grid_action_title_adm_delete', '', 0, 1, 1),
  4141. ('sys_cmts_administration', 'single', 'delete', '_sys_cmts_administration_grid_action_title_adm_delete', 'remove', 1, 1, 1);
  4142. -- GRID: Storage managers
  4143. 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
  4144. ('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', ''),
  4145. ('sys_studio_strg_images', 'Sql', 'SELECT * FROM `sys_images` WHERE 1 ', 'sys_images', 'id', '', '', '', 20, NULL, 'start', '', 'file_name', '', 'auto', 'file_name,added', '', 'BxTemplStudioStoragesImages', '');
  4146. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  4147. -- Storages: Files
  4148. ('sys_studio_strg_files', 'checkbox', '', '1%', 0, '', '', 1),
  4149. ('sys_studio_strg_files', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  4150. ('sys_studio_strg_files', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  4151. ('sys_studio_strg_files', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  4152. ('sys_studio_strg_files', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  4153. ('sys_studio_strg_files', 'actions', '', '25%', 0, '', '', 6),
  4154. -- Storages: Images
  4155. ('sys_studio_strg_images', 'checkbox', '', '1%', 0, '', '', 1),
  4156. ('sys_studio_strg_images', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  4157. ('sys_studio_strg_images', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  4158. ('sys_studio_strg_images', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  4159. ('sys_studio_strg_images', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  4160. ('sys_studio_strg_images', 'actions', '', '25%', 0, '', '', 6);
  4161. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4162. -- Storages: Files
  4163. ('sys_studio_strg_files', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  4164. ('sys_studio_strg_files', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  4165. ('sys_studio_strg_files', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 2),
  4166. ('sys_studio_strg_files', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1),
  4167. -- Storages: Images
  4168. ('sys_studio_strg_images', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  4169. ('sys_studio_strg_images', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  4170. ('sys_studio_strg_images', 'single', 'resize', '_adm_strg_btn_resize', 'compress', 1, 0, 2),
  4171. ('sys_studio_strg_images', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 3),
  4172. ('sys_studio_strg_images', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1);
  4173. -- GRID: connections
  4174. 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
  4175. ('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', ''),
  4176. ('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', ''),
  4177. ('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', ''),
  4178. ('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', ''),
  4179. ('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, 1, 'BxDolGridRelations', ''),
  4180. ('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, 1, 'BxDolGridRelatedMe', '');
  4181. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `params`, `hidden_on`, `order`) VALUES
  4182. ('sys_grid_connections', 'name', '_sys_name', '40%', '', '', 1),
  4183. ('sys_grid_connections', 'info', '', '30%', '', '1', 2),
  4184. ('sys_grid_connections', 'actions', '', '30%', '', '', 3),
  4185. ('sys_grid_connections_requests', 'name', '_sys_name', '40%', '', '', 1),
  4186. ('sys_grid_connections_requests', 'info', '', '30%', '', '1', 2),
  4187. ('sys_grid_connections_requests', 'actions', '', '30%', '', '', 3),
  4188. ('sys_grid_subscriptions', 'name', '_sys_name', '70%', '', '', 1),
  4189. ('sys_grid_subscriptions', 'actions', '', '30%', '', '', 2),
  4190. ('sys_grid_subscribed_me', 'name', '_sys_name', '70%', '', '', 1),
  4191. ('sys_grid_subscribed_me', 'actions', '', '30%', '', '', 2),
  4192. ('sys_grid_relations', 'name', '_sys_name', '40%', '', '', 1),
  4193. ('sys_grid_relations', 'relation', '_sys_relation', '15%', '', '', 2),
  4194. ('sys_grid_relations', 'mutual', '_sys_status', '15%', '', '', 3),
  4195. ('sys_grid_relations', 'actions', '', '30%', '', '', 4),
  4196. ('sys_grid_related_me', 'name', '_sys_name', '40%', '', '', 1),
  4197. ('sys_grid_related_me', 'relation', '_sys_relation', '15%', '', '', 2),
  4198. ('sys_grid_related_me', 'mutual', '_sys_status', '15%', '', '', 3),
  4199. ('sys_grid_related_me', 'actions', '', '30%', '', '', 4);
  4200. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4201. ('sys_grid_connections', 'single', 'accept', '_sys_accept', '', 0, 0, 1),
  4202. ('sys_grid_connections', 'single', 'delete', '', 'remove', 0, 1, 2),
  4203. ('sys_grid_connections', 'single', 'add_friend', '_sys_add_friend', 'plus', 0, 0, 3),
  4204. ('sys_grid_connections_requests', 'single', 'accept', '_sys_accept', '', 0, 0, 1),
  4205. ('sys_grid_connections_requests', 'single', 'delete', '', 'remove', 0, 1, 2),
  4206. ('sys_grid_subscriptions', 'single', 'subscribe', '_sys_subscribe', 'check', 0, 0, 1),
  4207. ('sys_grid_subscriptions', 'single', 'delete', '', 'remove', 0, 1, 2),
  4208. ('sys_grid_subscribed_me', 'single', 'subscribe', '_sys_subscribe', 'check', 0, 0, 1),
  4209. ('sys_grid_relations', 'single', 'delete', '_Delete', 'remove', 1, 1, 1),
  4210. ('sys_grid_related_me', 'single', 'confirm', '_sys_confirm', 'check-circle', 1, 0, 1),
  4211. ('sys_grid_related_me', 'single', 'decline', '_sys_decline', 'times-circle', 1, 1, 2),
  4212. ('sys_grid_related_me', 'single', 'add', '_sys_add_relation', 'plus-circle', 1, 0, 3);
  4213. -- --------------------------------------------------------
  4214. CREATE TABLE IF NOT EXISTS `sys_objects_connection` (
  4215. `id` int(11) NOT NULL AUTO_INCREMENT,
  4216. `object` varchar(64) NOT NULL,
  4217. `table` varchar(255) NOT NULL,
  4218. `type` enum('one-way','mutual') NOT NULL,
  4219. `override_class_name` varchar(255) NOT NULL,
  4220. `override_class_file` varchar(255) NOT NULL,
  4221. PRIMARY KEY (`id`),
  4222. UNIQUE KEY `object` (`object`)
  4223. );
  4224. INSERT INTO `sys_objects_connection` (`object`, `table`, `type`, `override_class_name`, `override_class_file`) VALUES
  4225. ('sys_profiles_friends', 'sys_profiles_conn_friends', 'mutual', '', ''),
  4226. ('sys_profiles_subscriptions', 'sys_profiles_conn_subscriptions', 'one-way', '', ''),
  4227. ('sys_profiles_relations', 'sys_profiles_conn_relations', 'mutual', 'BxDolRelation', '');
  4228. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_relations` (
  4229. `id` int(11) NOT NULL AUTO_INCREMENT,
  4230. `initiator` int(11) NOT NULL DEFAULT '0',
  4231. `content` int(11) NOT NULL DEFAULT '0',
  4232. `relation` int(11) NOT NULL DEFAULT '0',
  4233. `mutual` tinyint(4) NOT NULL DEFAULT '0',
  4234. `added` int(11) unsigned NOT NULL DEFAULT '0',
  4235. PRIMARY KEY (`id`),
  4236. UNIQUE KEY `initiator` (`initiator`,`content`),
  4237. KEY `content` (`content`)
  4238. );
  4239. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_subscriptions` (
  4240. `id` int(11) NOT NULL AUTO_INCREMENT,
  4241. `initiator` int(11) NOT NULL,
  4242. `content` int(11) NOT NULL,
  4243. `added` int(10) unsigned NOT NULL,
  4244. PRIMARY KEY (`id`),
  4245. UNIQUE KEY `initiator` (`initiator`,`content`),
  4246. KEY `content` (`content`)
  4247. );
  4248. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_friends` (
  4249. `id` int(11) NOT NULL AUTO_INCREMENT,
  4250. `initiator` int(11) NOT NULL,
  4251. `content` int(11) NOT NULL,
  4252. `mutual` tinyint(4) NOT NULL,
  4253. `added` int(10) unsigned NOT NULL,
  4254. PRIMARY KEY (`id`),
  4255. UNIQUE KEY `initiator` (`initiator`,`content`),
  4256. KEY `content` (`content`)
  4257. );
  4258. -- --------------------------------------------------------
  4259. CREATE TABLE IF NOT EXISTS `sys_objects_transcoder` (
  4260. `id` int(11) NOT NULL AUTO_INCREMENT,
  4261. `object` varchar(64) NOT NULL,
  4262. `storage_object` varchar(64) NOT NULL,
  4263. `source_type` enum('Folder','Storage','Proxy') NOT NULL,
  4264. `source_params` text NOT NULL,
  4265. `private` enum('auto','yes','no') NOT NULL,
  4266. `atime_tracking` int(11) NOT NULL,
  4267. `atime_pruning` int(11) NOT NULL,
  4268. `ts` int(11) NOT NULL DEFAULT '0',
  4269. `override_class_name` varchar(255) NOT NULL,
  4270. `override_class_file` varchar(255) NOT NULL,
  4271. PRIMARY KEY (`id`),
  4272. UNIQUE KEY `object` (`object`)
  4273. );
  4274. 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
  4275. ('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', '', ''),
  4276. ('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', '', ''),
  4277. ('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', '', ''),
  4278. ('sys_icon_favicon', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  4279. ('sys_cover', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  4280. ('sys_cover_unit_profile', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  4281. ('sys_cover_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  4282. ('sys_builder_page_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  4283. ('sys_builder_page_embed', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  4284. ('sys_cmts_images_preview', 'sys_cmts_images_preview', 'Storage', 'a:1:{s:6:"object";s:15:"sys_cmts_images";}', 'no', '1', '2592000', '0', '', ''),
  4285. ('sys_custom_images', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:17:"sys_images_custom";}', 'no', '1', '2592000', '0', '', ''),
  4286. ('sys_images_editor', 'sys_images_editor_resized', 'Storage', 'a:1:{s:6:"object";s:17:"sys_images_editor";}', 'no', '1', '2592000', '0', '', '');
  4287. CREATE TABLE IF NOT EXISTS `sys_transcoder_images_files` (
  4288. `transcoder_object` varchar(64) NOT NULL,
  4289. `file_id` int(11) NOT NULL,
  4290. `handler` varchar(255) NOT NULL,
  4291. `atime` int(11) NOT NULL,
  4292. `data` text NOT NULL,
  4293. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  4294. KEY `atime` (`atime`),
  4295. KEY `file_id` (`file_id`)
  4296. );
  4297. CREATE TABLE IF NOT EXISTS `sys_transcoder_videos_files` (
  4298. `transcoder_object` varchar(64) NOT NULL,
  4299. `file_id` int(11) NOT NULL,
  4300. `handler` varchar(255) NOT NULL,
  4301. `atime` int(11) NOT NULL,
  4302. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  4303. KEY `atime` (`atime`),
  4304. KEY `file_id` (`file_id`)
  4305. );
  4306. CREATE TABLE IF NOT EXISTS `sys_transcoder_audio_files` (
  4307. `transcoder_object` varchar(64) NOT NULL,
  4308. `file_id` int(11) NOT NULL,
  4309. `handler` varchar(255) NOT NULL,
  4310. `atime` int(11) NOT NULL,
  4311. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  4312. KEY `atime` (`atime`),
  4313. KEY `file_id` (`file_id`)
  4314. );
  4315. CREATE TABLE IF NOT EXISTS `sys_transcoder_filters` (
  4316. `transcoder_object` varchar(64) NOT NULL,
  4317. `filter` varchar(32) NOT NULL,
  4318. `filter_params` text NOT NULL,
  4319. `order` int(11) NOT NULL DEFAULT '0',
  4320. KEY `transcoder_object` (`transcoder_object`)
  4321. );
  4322. INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
  4323. ('sys_image_resize', 'ResizeVar', '', '0'),
  4324. ('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'),
  4325. ('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'),
  4326. ('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'),
  4327. ('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'),
  4328. ('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'),
  4329. ('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'),
  4330. ('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'),
  4331. ('sys_builder_page_embed', 'ResizeVar', '', '0'),
  4332. ('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'),
  4333. ('sys_custom_images', 'ResizeVar', '', '0'),
  4334. ('sys_images_editor', 'Resize', 'a:2:{s:1:"w";s:4:"1600";s:1:"h";s:4:"1600";}', '0');
  4335. CREATE TABLE IF NOT EXISTS `sys_transcoder_queue` (
  4336. `id` int(11) NOT NULL AUTO_INCREMENT,
  4337. `transcoder_object` varchar(64) NOT NULL,
  4338. `profile_id` int(10) unsigned NOT NULL,
  4339. `file_url_source` varchar(255) NOT NULL,
  4340. `file_id_source` varchar(255) NOT NULL,
  4341. `file_url_result` varchar(255) NOT NULL,
  4342. `file_ext_result` varchar(255) NOT NULL,
  4343. `file_id_result` int(11) NOT NULL,
  4344. `server` varchar(255) NOT NULL,
  4345. `status` enum('pending','processing','complete','failed','delete') NOT NULL,
  4346. `pid` int(10) UNSIGNED NOT NULL DEFAULT '0',
  4347. `added` int(11) NOT NULL,
  4348. `changed` int(11) NOT NULL,
  4349. `log` text NOT NULL,
  4350. PRIMARY KEY (`id`),
  4351. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`file_id_source`(127))
  4352. );
  4353. CREATE TABLE `sys_transcoder_queue_files` (
  4354. `id` int(11) NOT NULL AUTO_INCREMENT,
  4355. `profile_id` int(10) unsigned NOT NULL,
  4356. `remote_id` varchar(128) NOT NULL,
  4357. `path` varchar(255) NOT NULL,
  4358. `file_name` varchar(255) NOT NULL,
  4359. `mime_type` varchar(128) NOT NULL,
  4360. `ext` varchar(32) NOT NULL,
  4361. `size` bigint(20) NOT NULL,
  4362. `added` int(11) NOT NULL,
  4363. `modified` int(11) NOT NULL,
  4364. `private` int(11) NOT NULL,
  4365. PRIMARY KEY (`id`),
  4366. UNIQUE KEY `remote_id` (`remote_id`)
  4367. );
  4368. -- --------------------------------------------------------
  4369. CREATE TABLE IF NOT EXISTS `sys_objects_page` (
  4370. `id` int(11) NOT NULL AUTO_INCREMENT,
  4371. `author` int(11) NOT NULL DEFAULT '0',
  4372. `added` int(11) NOT NULL DEFAULT '0',
  4373. `object` varchar(64) NOT NULL,
  4374. `uri` varchar(255) NOT NULL,
  4375. `title_system` varchar(255) NOT NULL,
  4376. `title` varchar(255) NOT NULL,
  4377. `module` varchar(32) NOT NULL,
  4378. `cover` tinyint(4) NOT NULL DEFAULT '1',
  4379. `cover_image` int(11) NOT NULL DEFAULT '0',
  4380. `type_id` int(11) NOT NULL DEFAULT '1',
  4381. `layout_id` int(11) NOT NULL,
  4382. `sticky_columns` tinyint(4) NOT NULL DEFAULT '0',
  4383. `submenu` varchar(64) NOT NULL DEFAULT '',
  4384. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  4385. `visible_for_levels_editable` tinyint(4) NOT NULL DEFAULT '1',
  4386. `url` varchar(255) NOT NULL,
  4387. `meta_description` text NOT NULL,
  4388. `meta_keywords` text NOT NULL,
  4389. `meta_robots` varchar(255) NOT NULL,
  4390. `cache_lifetime` int(11) NOT NULL DEFAULT '0',
  4391. `cache_editable` tinyint(4) NOT NULL DEFAULT '1',
  4392. `inj_head` text NOT NULL,
  4393. `inj_footer` text NOT NULL,
  4394. `deletable` tinyint(1) NOT NULL,
  4395. `override_class_name` varchar(255) NOT NULL,
  4396. `override_class_file` varchar(255) NOT NULL,
  4397. PRIMARY KEY (`id`),
  4398. UNIQUE KEY `object` (`object`),
  4399. UNIQUE KEY `uri` (`uri`(191))
  4400. );
  4401. INSERT INTO `sys_objects_page` (`object`, `uri`, `title_system`, `title`, `module`, `cover`, `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`, `sticky_columns`) VALUES
  4402. ('sys_home', 'home', '_sys_page_title_system_home', '_sys_page_title_home', 'system', 2, 13, 'sys_homepage_submenu', 2147483647, 1, '', '', '', '', 0, 1, 0, 'BxTemplPageHome', '', 1),
  4403. ('sys_about', 'about', '_sys_page_title_system_about', '_sys_page_title_about', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=about', '', '', '', 0, 1, 0, '', '', 0),
  4404. ('sys_terms', 'terms', '_sys_page_title_system_terms', '_sys_page_title_terms', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=terms', '', '', '', 0, 1, 0, '', '', 0),
  4405. ('sys_privacy', 'privacy', '_sys_page_title_system_privacy', '_sys_page_title_privacy', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=privacy', '', '', '', 0, 1, 0, '', '', 0),
  4406. ('sys_explore', 'explore', '_sys_page_title_sys_explore', '_sys_page_title_explore', 'system', 1, 5, 'sys_homepage_submenu', 2147483647, 1, 'page.php?i=explore', '', '', '', 0, 1, 0, 'BxTemplPageHome', '', 0),
  4407. ('sys_updates', 'updates', '_sys_page_title_sys_updates', '_sys_page_title_updates', 'system', 1, 5, 'sys_homepage_submenu', 2147483647, 1, 'page.php?i=updates', '', '', '', 0, 1, 0, 'BxTemplPageHome', '', 0),
  4408. ('sys_trends', 'trends', '_sys_page_title_sys_trends', '_sys_page_title_trends', 'system', 1, 5, 'sys_homepage_submenu', 2147483647, 1, 'page.php?i=trends', '', '', '', 0, 1, 0, 'BxTemplPageHome', '', 0),
  4409. ('sys_dashboard', 'dashboard', '_sys_page_title_system_dashboard', '_sys_page_title_dashboard', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=dashboard', '', '', '', 0, 1, 0, 'BxTemplPageDashboard', '', 0),
  4410. ('sys_dashboard_content', 'dashboard-content', '_sys_page_title_system_dashboard_content', '_sys_page_title_dashboard_content', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=dashboard-content', '', '', '', 0, 1, 0, 'BxTemplPageDashboard', '', 0),
  4411. ('sys_dashboard_reports', 'dashboard-reports', '_sys_page_title_system_dashboard_reports', '_sys_page_title_dashboard_reports', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=dashboard-reports', '', '', '', 0, 1, 0, 'BxTemplPageDashboard', '', 0),
  4412. ('sys_dashboard_audit', 'dashboard-audit', '_sys_page_title_system_dashboard_audit', '_sys_page_title_dashboard_audit', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=dashboard-audit', '', '', '', 0, 1, 0, 'BxTemplPageDashboard', '', 0),
  4413. ('sys_create_account', 'create-account', '_sys_page_title_system_create_account', '_sys_page_title_create_account', 'system', 1, 18, '', 2147483647, 1, 'page.php?i=create-account', '', '', '', 0, 1, 0, '', '', 0),
  4414. ('sys_login', 'login', '_sys_page_title_system_login', '_sys_page_title_login', 'system', 1, 18, '', 2147483647, 1, 'page.php?i=login', '', '', '', 0, 1, 0, '', '', 0),
  4415. ('sys_login_step2', 'login-step2', '_sys_page_title_system_login_step2', '_sys_page_title_login_step2', 'system', 1, 18, '', 2147483647, 1, 'page.php?i=login-step2', '', '', '', 0, 1, 0, '', '', 0),
  4416. ('sys_login_step3', 'login-step3', '_sys_page_title_system_login_step3', '_sys_page_title_login_step3', 'system', 1, 18, '', 2147483647, 1, 'page.php?i=login-step3', '', '', '', 0, 1, 0, '', '', 0),
  4417. ('sys_forgot_password', 'forgot-password', '_sys_page_title_system_forgot_password', '_sys_page_title_forgot_password', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=forgot-password', '', '', '', 0, 1, 0, '', '', 0),
  4418. ('sys_confirm_email', 'confirm-email', '_sys_page_title_system_confirm_email', '_sys_page_title_confirm_email', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=confirm-email', '', '', '', 0, 1, 0, '', '', 0),
  4419. ('sys_confirm_phone', 'confirm-phone', '_sys_page_title_system_confirm_phone', '_sys_page_title_confirm_phone', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=confirm-phone', '', '', '', 0, 1, 0, '', '', 0),
  4420. ('sys_account_settings_email', 'account-settings-email', '_sys_page_title_system_account_settings_email', '_sys_page_title_account_settings_email', 'system', 1, 5, '', 2147483647, 1, 'member.php', '', '', '', 0, 1, 0, 'BxTemplPageAccount', '', 0),
  4421. ('sys_account_settings_pwd', 'account-settings-password', '_sys_page_title_system_account_settings_pwd', '_sys_page_title_account_settings_pwd', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=account-settings-pwd', '', '', '', 0, 1, 0, 'BxTemplPageAccount', '', 0),
  4422. ('sys_account_settings_info', 'account-settings-info', '_sys_page_title_system_account_settings_info', '_sys_page_title_account_settings_info', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=account-settings-info', '', '', '', 0, 1, 0, 'BxTemplPageAccount', '', 0),
  4423. ('sys_account_settings_delete', 'account-settings-delete', '_sys_page_title_system_account_settings_delete', '_sys_page_title_account_settings_delete', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=account-settings-delete', '', '', '', 0, 1, 0, 'BxTemplPageAccount', '', 0),
  4424. ('sys_account_profile_switcher', 'account-profile-switcher', '_sys_page_title_system_account_profile_switcher', '_sys_page_title_account_profile_switcher', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=account-profile-switcher', '', '', '', 0, 1, 0, 'BxTemplPageAccount', '', 0),
  4425. ('sys_unsubscribe_notifications', 'unsubscribe-notifications', '_sys_page_title_system_unsubscribe_notifications', '_sys_page_title_unsubscribe_notifications', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=unsubscribe-notifications', '', '', '', 0, 1, 0, '', '', 0),
  4426. ('sys_unsubscribe_news', 'unsubscribe-news', '_sys_page_title_system_unsubscribe_news', '_sys_page_title_unsubscribe_news', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=unsubscribe-news', '', '', '', 0, 1, 0, '', '', 0),
  4427. ('sys_std_dashboard', '', '_sys_page_title_system_studio_dashboard', '_sys_page_title_studio_dashboard', 'system', 1, 4, '', 2147483647, 1, '', '', '', '', 0, 1, 0, '', '', 0),
  4428. ('sys_cmts_view' ,'cmts-view', '_sys_page_title_system_cmts_view', '_cmt_page_view_header', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=cmts-view', '', '', '', 0, 1, 0, 'BxTemplCmtsPageView', '', 0),
  4429. ('sys_cmts_administration' ,'cmts-administration', '_sys_page_title_system_cmts_administration', '_sys_page_title_cmts_administration', 'system', 1, 5, '', 192, 1, 'page.php?i=cmts-administration', '', '', '', 0, 1, 0, '', '', 0),
  4430. ('sys_audit' ,'audit-administration', '_sys_page_title_system_audit_administration', '_sys_page_title_audit_administration', 'system', 1, 5, '', 192, 1, 'page.php?i=audit-administration', '', '', '', 0, 1, 0, '', '', 0),
  4431. ('sys_search_keyword', 'search-keyword', '_sys_page_title_system_search_keyword', '_sys_page_title_search_keyword', 'system', 1, 5, '', 2147483647, 1, 'searchKeyword.php', '', '', '', 0, 1, 0, '', '', 0);
  4432. CREATE TABLE IF NOT EXISTS `sys_pages_types` (
  4433. `id` int(11) NOT NULL AUTO_INCREMENT,
  4434. `title` varchar(255) NOT NULL,
  4435. `template` varchar(255) NOT NULL,
  4436. `order` int(11) NOT NULL,
  4437. PRIMARY KEY (`id`)
  4438. );
  4439. INSERT INTO `sys_pages_types` (`id`, `title`, `template`, `order`) VALUES
  4440. (1, '_sys_page_type_default', 'default.html', 1),
  4441. (2, '_sys_page_type_default_wo_hf', 'page_2.html', 2);
  4442. CREATE TABLE IF NOT EXISTS `sys_pages_layouts` (
  4443. `id` int(11) NOT NULL AUTO_INCREMENT,
  4444. `name` varchar(64) NOT NULL,
  4445. `icon` varchar(255) NOT NULL,
  4446. `title` varchar(255) NOT NULL,
  4447. `template` varchar(255) NOT NULL,
  4448. `cells_number` int(11) NOT NULL,
  4449. PRIMARY KEY (`id`),
  4450. UNIQUE KEY `name` (`name`)
  4451. );
  4452. INSERT INTO `sys_pages_layouts` (`id`, `name`, `icon`, `title`, `template`, `cells_number`) VALUES
  4453. (1, 'bar_left', 'layout_bar_left.png', '_sys_layout_bar_left', 'layout_bar_left.html', 2),
  4454. (2, 'bar_right', 'layout_bar_right.png', '_sys_layout_bar_right', 'layout_bar_right.html', 2),
  4455. (3, '3_columns', 'layout_3_columns.png', '_sys_layout_3_columns', 'layout_3_columns.html', 3),
  4456. (4, '2_columns', 'layout_2_columns.png', '_sys_layout_2_columns', 'layout_2_columns.html', 2),
  4457. (5, '1_column', 'layout_1_column.png', '_sys_layout_1_column', 'layout_1_column.html', 1),
  4458. (6, 'top_area_bar_left', 'layout_top_area_bar_left.png', '_sys_layout_top_area_bar_left', 'layout_top_area_bar_left.html', 3),
  4459. (7, 'top_area_bar_right', 'layout_top_area_bar_right.png', '_sys_layout_top_area_bar_right', 'layout_top_area_bar_right.html', 3),
  4460. (8, 'top_area_3_columns', 'layout_top_area_3_columns.png', '_sys_layout_top_area_3_columns', 'layout_top_area_3_columns.html', 4),
  4461. (9, 'top_area_2_columns', 'layout_top_area_2_columns.png', '_sys_layout_top_area_2_columns', 'layout_top_area_2_columns.html', 3),
  4462. (10, 'topbottom_area_2_columns', 'layout_topbottom_area_2_columns.png', '_sys_layout_topbottom_area_2_columns', 'layout_topbottom_area_2_columns.html', 4),
  4463. (11, 'bottom_area_2_columns', 'layout_bottom_area_2_columns.png', '_sys_layout_bottom_area_2_columns', 'layout_bottom_area_2_columns.html', 3),
  4464. (12, 'topbottom_area_bar_right', 'layout_topbottom_area_bar_right.png', '_sys_layout_topbottom_area_bar_right', 'layout_topbottom_area_bar_right.html', 4),
  4465. (13, 'topbottom_area_bar_left', 'layout_topbottom_area_bar_left.png', '_sys_layout_topbottom_area_bar_left', 'layout_topbottom_area_bar_left.html', 4),
  4466. (14, 'bar_content_bar', 'layout_bar_content_bar.png', '_sys_layout_bar_content_bar', 'layout_bar_content_bar.html', 3),
  4467. (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),
  4468. (16, 'topbottom_area_col1_col3_col2', 'layout_topbottom_area_col1_col3_col2.png', '_sys_layout_topbottom_area_col1_col3_col2', 'layout_topbottom_area_col1_col3_col2.html', 5),
  4469. (17, 'topbottom_area_col1_col5', 'layout_topbottom_area_col1_col5.png', '_sys_layout_topbottom_area_col1_col5', 'layout_topbottom_area_col1_col5.html', 4),
  4470. (18, '1_column_thin', 'layout_1_column_thin.png', '_sys_layout_1_column_thin', 'layout_1_column_thin.html', 1),
  4471. (19, '1_column_half', 'layout_1_column_half.png', '_sys_layout_1_column_half', 'layout_1_column_half.html', 1);
  4472. CREATE TABLE IF NOT EXISTS `sys_pages_design_boxes` (
  4473. `id` int(11) NOT NULL,
  4474. `title` varchar(255) NOT NULL,
  4475. `template` varchar(255) NOT NULL,
  4476. `order` int(11) NOT NULL,
  4477. PRIMARY KEY (`id`)
  4478. );
  4479. INSERT INTO `sys_pages_design_boxes` (`id`, `title`, `template`, `order`) VALUES
  4480. (0, '_sys_designbox_0', 'designbox_0.html', '2'),
  4481. (1, '_sys_designbox_1', 'designbox_1.html', '8'),
  4482. (2, '_sys_designbox_2', 'designbox_2.html', '1'),
  4483. (3, '_sys_designbox_3', 'designbox_3.html', '4'),
  4484. (4, '_sys_designbox_4', 'designbox_4.html', '6'),
  4485. (10, '_sys_designbox_10', 'designbox_10.html', '3'),
  4486. (11, '_sys_designbox_11', 'designbox_11.html', '9'),
  4487. (13, '_sys_designbox_13', 'designbox_13.html', '5'),
  4488. (14, '_sys_designbox_14', 'designbox_14.html', '7');
  4489. CREATE TABLE IF NOT EXISTS `sys_pages_content_placeholders` (
  4490. `id` int(11) NOT NULL AUTO_INCREMENT,
  4491. `module` varchar(32) NOT NULL,
  4492. `title` varchar(255) NOT NULL,
  4493. `template` varchar(255) NOT NULL,
  4494. `order` int(11) NOT NULL,
  4495. PRIMARY KEY (`id`)
  4496. );
  4497. INSERT INTO `sys_pages_content_placeholders` (`id`, `module`, `title`, `template`, `order`) VALUES
  4498. (1, 'system', '_sys_page_content_ph_loading_indicator', 'block_async_loading_indicator.html', 1),
  4499. (2, 'system', '_sys_page_content_ph_text', 'block_async_text.html', 2),
  4500. (3, 'system', '_sys_page_content_ph_image', 'block_async_image.html', 3),
  4501. (4, 'system', '_sys_page_content_ph_create_post', 'block_async_create_post.html', 4),
  4502. (100, 'system', '_sys_page_content_ph_profile_units', 'block_async_profile_units.html', 100),
  4503. (110, 'system', '_sys_page_content_ph_text_units_list', 'block_async_text_units_list.html', 110),
  4504. (120, 'system', '_sys_page_content_ph_text_units_gallery', 'block_async_text_units_gallery.html', 120);
  4505. CREATE TABLE IF NOT EXISTS `sys_pages_blocks` (
  4506. `id` int(11) NOT NULL AUTO_INCREMENT,
  4507. `object` varchar(64) NOT NULL,
  4508. `cell_id` int(11) NOT NULL DEFAULT '1',
  4509. `module` varchar(32) NOT NULL,
  4510. `title_system` varchar(255) NOT NULL,
  4511. `title` varchar(255) NOT NULL,
  4512. `designbox_id` int(11) NOT NULL DEFAULT '11',
  4513. `submenu` varchar(64) NOT NULL DEFAULT '',
  4514. `tabs` tinyint(4) NOT NULL DEFAULT '0',
  4515. `async` int(11) NOT NULL DEFAULT '0',
  4516. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  4517. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  4518. `type` enum('raw','html','lang','image','rss','menu','custom','service','wiki') NOT NULL DEFAULT 'raw',
  4519. `content` text NOT NULL,
  4520. `text` mediumtext NOT NULL,
  4521. `text_updated` int(11) NOT NULL,
  4522. `help` varchar(255) NOT NULL,
  4523. `cache_lifetime` int(11) NOT NULL DEFAULT '0',
  4524. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  4525. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  4526. `active` tinyint(4) NOT NULL DEFAULT '1',
  4527. `order` int(11) NOT NULL,
  4528. PRIMARY KEY (`id`),
  4529. KEY `object` (`object`),
  4530. FULLTEXT KEY `text` (`text`)
  4531. );
  4532. -- skeleton blocks
  4533. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  4534. ('', 0, 'skeletons', '_sys_block_type_raw', 11, 2147483647, 'raw', '', 0, 1, 1, 0),
  4535. ('', 0, 'skeletons', '_sys_block_type_html', 11, 2147483647, 'html', '', 0, 1, 1, 0),
  4536. ('', 0, 'skeletons', '_sys_block_type_rss', 11, 2147483647, 'rss', '', 0, 1, 1, 0),
  4537. ('', 0, 'skeletons', '_sys_block_type_image', 11, 2147483647, 'image', '', 0, 1, 1, 0),
  4538. ('', 0, 'skeletons', '_sys_block_type_lang', 11, 2147483647, 'lang', '', 0, 1, 1, 0),
  4539. ('', 0, 'skeletons', '_sys_block_type_menu', 11, 2147483647, 'menu', '', 0, 1, 1, 0),
  4540. ('', 0, 'skeletons', '_sys_block_type_wiki', 11, 2147483647, 'wiki', '', 0, 1, 1, 0),
  4541. ('', 0, 'skeletons', '_sys_block_type_custom', 11, 2147483647, 'custom', '', 0, 1, 1, 0),
  4542. ('', 0, 'skeletons', '_sys_block_type_service', 11, 2147483647, 'service', '', 0, 0, 1, 0);
  4543. -- service blocks
  4544. SET @iBlockOrder = IFNULL((SELECT `order` FROM `sys_pages_blocks` WHERE `object` = '' AND `cell_id` = 0 ORDER BY `order` DESC LIMIT 1), 0);
  4545. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `tabs`, `async`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  4546. ('', 0, 'system', '_sys_page_block_title_sys_create_post', '_sys_page_block_title_create_post', 11, 1, 4, 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;i:0;}s:5:"class";s:13:"TemplServices";}', 0, 1, 1, @iBlockOrder + 1),
  4547. ('', 0, 'system', '_sys_page_block_title_sys_create_post_context', '_sys_page_block_title_create_post_context', 11, 1, 4, 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),
  4548. ('', 0, 'system', '_sys_page_block_title_sys_create_post_public', '_sys_page_block_title_create_post_public', 11, 1, 4, 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 + 3),
  4549. ('', 0, 'system', '_sys_page_block_title_sys_std_site_submenu', '_sys_page_block_title_std_site_submenu', 3, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"get_site_submenu";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', 0, 1, 1, @iBlockOrder + 4);
  4550. -- content blocks
  4551. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `tabs`, `async`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  4552. ('sys_home', 0, 'system', '', '_sys_page_block_title_profile_avatar', 3, 0, 0, 2147483646, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:14:"profile_avatar";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 0, 1, 1),
  4553. ('sys_home', 0, 'system', '', '_sys_page_block_title_profile_menu', 3, 0, 0, 2147483644, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:12:"profile_menu";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 0, 1, 2),
  4554. ('sys_home', 0, 'system', '', '_sys_page_block_title_profile_followings', 3, 0, 0, 2147483644, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:18:"profile_followings";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 0, 1, 3),
  4555. ('sys_home', 1, 'system', '', '_sys_page_block_title_homepage_splash', 0, 0, 0, 2147483647, 'raw', '<style>\r\n /*--- Splash ---*/\r\n .bx-page {\r\n position: relative;\r\n }\r\n .bx-splash-block {\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 }\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-block\">\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),
  4556. ('sys_home', 1, 'system', '', '_sys_page_block_title_homepage_menu', 13, 0, 0, 2147483647, 'menu', 'sys_homepage', 0, 1, 1, 0),
  4557. ('sys_home', 2, 'system', '', '_sys_page_block_title_profile_stats', 3, 0, 0, 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, 0, 1, 1),
  4558. ('sys_home', 3, 'system', '_sys_page_block_title_sys_create_post', '_sys_page_block_title_create_post', 11, 1, 4, 2147483644, '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;i:0;}s:5:"class";s:13:"TemplServices";}', 0, 0, 1, 1),
  4559. ('sys_about', 1, 'system', '', '_sys_page_block_title_about', 11, 0, 0, 2147483647, 'lang', '_sys_page_lang_block_about', 0, 1, 1, 1),
  4560. ('sys_terms', 1, 'system', '', '_sys_page_block_title_terms', 11, 0, 0, 2147483647, 'lang', '_sys_page_lang_block_terms', 0, 1, 1, 1),
  4561. ('sys_privacy', 1, 'system', '', '_sys_page_block_title_privacy', 11, 0, 0, 2147483647, 'lang', '_sys_page_lang_block_privacy', 0, 1, 1, 1),
  4562. ('sys_dashboard', 3, 'system', '', '_sys_page_block_title_profile_stats', 3, 0, 0, 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),
  4563. ('sys_dashboard', 3, 'system', '', '_sys_page_block_title_profile_membership', 11, 0, 0, 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),
  4564. ('sys_dashboard', 1, 'system', '', '_sys_page_block_title_manage_tools', 11, 0, 0, 192, 'menu', 'sys_account_dashboard_manage_tools', 0, 1, 1, 3),
  4565. ('sys_dashboard_content', 1, 'system', '', '_sys_page_block_title_dashboard_content', 11, 1, 0, 192, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:14:"manage_content";s:6:"params";a:0:{}s:5:"class";s:22:"TemplDashboardServices";}', 0, 1, 1, 1),
  4566. ('sys_dashboard_audit', 1, 'system', '', '_sys_page_block_title_dashboard_audit', 11, 0, 0, 192, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:12:"manage_audit";s:6:"params";a:0:{}s:5:"class";s:22:"TemplDashboardServices";}', 0, 1, 1, 1),
  4567. ('sys_dashboard_reports', 1, 'system', '', '_sys_page_block_title_dashboard_reports', 11, 1, 0, 192, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:14:"manage_reports";s:6:"params";a:0:{}s:5:"class";s:22:"TemplDashboardServices";}', 0, 1, 1, 1),
  4568. ('sys_dashboard', 3, 'system', '', '_sys_page_block_title_chart_growth', 11, 0, 0, 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),
  4569. ('sys_dashboard', 2, 'system', '', '_sys_page_block_title_membership_stats', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:24:"profile_membership_stats";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 2),
  4570. ('sys_dashboard', 2, 'system', '', '_sys_page_block_title_chart_stats', 11, 0, 0, 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),
  4571. ('sys_create_account', 1, 'system', '', '_sys_page_block_title_create_account', 11, 0, 0, 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),
  4572. ('sys_login', 1, 'system', '_sys_page_block_system_title_login', '_sys_page_block_title_login', 11, 0, 0, 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),
  4573. ('sys_login', 0, 'system', '_sys_page_block_system_title_login_only', '_sys_page_block_title_login', 11, 0, 0, 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),
  4574. ('sys_login_step2', 1, 'system', '_sys_page_block_system_title_login_step2', '_sys_page_block_title_login_step2', 11, 0, 0, 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),
  4575. ('sys_login_step3', 1, 'system', '_sys_page_block_system_title_login_step3', '_sys_page_block_title_login_step3', 11, 0, 0, 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),
  4576. ('sys_forgot_password', 1, 'system', '', '_sys_page_block_title_forgot_password', 13, 0, 0, 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),
  4577. ('sys_confirm_email', 1, 'system', '', '_sys_page_block_title_confirm_email', 11, 0, 0, 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),
  4578. ('sys_confirm_phone', 1, 'system', '', '_sys_page_block_title_confirm_phone', 11, 0, 0, 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),
  4579. ('sys_account_settings_email', 1, 'system', '', '_sys_page_block_title_account_settings_email', 11, 0, 0, 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),
  4580. ('sys_account_settings_pwd', 1, 'system', '', '_sys_page_block_title_account_settings_pwd', 11, 0, 0, 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),
  4581. ('sys_account_settings_info', 1, 'system', '', '_sys_page_block_title_account_settings_info', 11, 0, 0, 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),
  4582. ('sys_account_settings_delete', 1, 'system', '', '_sys_page_block_title_account_settings_delete', 11, 0, 0, 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),
  4583. ('sys_account_profile_switcher', 1, 'system', '', '_sys_page_block_title_account_profile_create', 11, 0, 0, 2147483647, 'menu', 'sys_add_profile', 0, 1, 1, 1),
  4584. ('sys_account_profile_switcher', 1, 'system', '', '_sys_page_block_title_account_profile_switcher', 11, 0, 0, 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),
  4585. ('sys_unsubscribe_notifications', 1, 'system', '', '_sys_page_block_title_unsubscribe_notifications', 11, 0, 0, 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),
  4586. ('sys_unsubscribe_news', 1, 'system', '', '_sys_page_block_title_unsubscribe_news', 11, 0, 0, 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),
  4587. ('sys_cmts_view', 1, 'system', '_sys_page_block_title_system_cmts_view', '_cmt_page_view_title', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:14:"get_block_view";s:6:"params";a:3:{i:0;s:8:"{system}";i:1;s:11:"{object_id}";i:2;s:12:"{comment_id}";}s:5:"class";s:17:"TemplCmtsServices";}', 0, 0, 1, 1),
  4588. ('sys_cmts_administration', 1, 'system', '_sys_page_block_title_system_cmts_administration', '_sys_page_block_title_cmts_administration', 11, 0, 0, 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),
  4589. ('sys_audit', 1, 'system', '_sys_page_block_title_system_audit_administration', '_sys_page_block_title_audit_administration', 11, 0, 0, 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:18:"TemplAuditServices";}', 0, 1, 1, 1),
  4590. ('sys_search_keyword', 1, 'system', '', '_sys_page_block_title_search_keyword_form', 13, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:19:"search_keyword_form";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', 0, 1, 1, 1),
  4591. ('sys_search_keyword', 1, 'system', '', '_sys_page_block_title_search_keyword_result', 0, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:21:"search_keyword_result";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', 0, 1, 1, 1),
  4592. -- studio dashboard blocks
  4593. ('sys_std_dashboard', 1, 'system', '', '_sys_page_block_title_std_dash_version', 11, 0, 0, 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),
  4594. ('sys_std_dashboard', 1, 'system', '', '_sys_page_block_title_std_dash_space', 11, 0, 0, 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),
  4595. ('sys_std_dashboard', 2, 'system', '', '_sys_page_block_title_std_dash_host_tools', 11, 0, 0, 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),
  4596. ('sys_std_dashboard', 2, 'system', '', '_sys_page_block_title_std_dash_cache', 11, 0, 0, 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);
  4597. -- --------------------------------------------------------
  4598. CREATE TABLE `sys_labels` (
  4599. `id` int(11) NOT NULL AUTO_INCREMENT,
  4600. `module` varchar(32) NOT NULL,
  4601. `parent` int(11) NOT NULL DEFAULT 0,
  4602. `level` int(11) NOT NULL DEFAULT 0,
  4603. `order` int(11) NOT NULL DEFAULT 0,
  4604. `value` varchar(128) NOT NULL,
  4605. PRIMARY KEY (id),
  4606. UNIQUE KEY `value` (`value`)
  4607. );
  4608. -- --------------------------------------------------------
  4609. CREATE TABLE `sys_objects_metatags` (
  4610. `id` int(11) NOT NULL AUTO_INCREMENT,
  4611. `object` varchar(64) NOT NULL,
  4612. `table_keywords` varchar(255) NOT NULL,
  4613. `table_locations` varchar(255) NOT NULL,
  4614. `table_mentions` varchar(255) NOT NULL,
  4615. `override_class_name` varchar(255) NOT NULL,
  4616. `override_class_file` varchar(255) NOT NULL,
  4617. PRIMARY KEY (`id`),
  4618. UNIQUE KEY `object` (`object`)
  4619. );
  4620. INSERT INTO `sys_objects_metatags` (`object`, `table_keywords`, `table_locations`, `table_mentions`, `override_class_name`, `override_class_file`) VALUES
  4621. ('sys_cmts', 'sys_cmts_meta_keywords', '', 'sys_cmts_meta_mentions', '', '');
  4622. -- --------------------------------------------------------
  4623. CREATE TABLE `sys_objects_category` (
  4624. `id` int(11) NOT NULL AUTO_INCREMENT,
  4625. `object` varchar(64) NOT NULL,
  4626. `search_object` varchar(64) NOT NULL,
  4627. `form_object` varchar(64) NOT NULL,
  4628. `list_name` varchar(255) NOT NULL,
  4629. `table` varchar(255) NOT NULL,
  4630. `field` varchar(255) NOT NULL,
  4631. `join` varchar(255) NOT NULL,
  4632. `where` varchar(255) NOT NULL,
  4633. `override_class_name` varchar(255) NOT NULL,
  4634. `override_class_file` varchar(255) NOT NULL,
  4635. PRIMARY KEY (`id`),
  4636. UNIQUE KEY `object` (`object`),
  4637. UNIQUE KEY `form_object` (`form_object`(64),`list_name`(127))
  4638. );
  4639. -- --------------------------------------------------------
  4640. CREATE TABLE IF NOT EXISTS `sys_categories` (
  4641. `id` int(11) NOT NULL AUTO_INCREMENT,
  4642. `author` int(11) NOT NULL,
  4643. `added` int(11) NOT NULL,
  4644. `module` varchar(32) NOT NULL,
  4645. `value` varchar(100) NOT NULL,
  4646. `status` enum ('active', 'hidden') NOT NULL DEFAULT 'active',
  4647. PRIMARY KEY (`id`)
  4648. );
  4649. CREATE TABLE IF NOT EXISTS `sys_categories2objects` (
  4650. `id` int(11) NOT NULL AUTO_INCREMENT,
  4651. `module` varchar(32) NOT NULL,
  4652. `object_id` int(11) NOT NULL,
  4653. `category_id` int(11) NOT NULL,
  4654. PRIMARY KEY (`id`)
  4655. );
  4656. -- --------------------------------------------------------
  4657. --
  4658. -- Table structure for table `sys_objects_live_updates`
  4659. --
  4660. CREATE TABLE `sys_objects_live_updates` (
  4661. `id` int(11) unsigned NOT NULL auto_increment,
  4662. `name` varchar(50) NOT NULL default '',
  4663. `init` tinyint(4) NOT NULL DEFAULT '0',
  4664. `frequency` tinyint(4) NOT NULL DEFAULT '1',
  4665. `service_call` text NOT NULL default '',
  4666. `active` tinyint(4) NOT NULL DEFAULT '1',
  4667. PRIMARY KEY (`id`),
  4668. UNIQUE KEY `name` (`name`)
  4669. );
  4670. INSERT INTO `sys_objects_live_updates`(`name`, `init`, `frequency`, `service_call`, `active`) VALUES
  4671. ('sys_payments_cart', 0, 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),
  4672. ('sys_payments_orders', 0, 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),
  4673. ('sys_payments_invoices', 0, 1, 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:25:"get_live_updates_invoices";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:8:"invoices";}i:2;s:7:"{count}";}s:5:"class";s:21:"TemplPaymentsServices";}', 1);
  4674. -- --------------------------------------------------------
  4675. --
  4676. -- Table structure for table `sys_objects_payments`
  4677. --
  4678. CREATE TABLE IF NOT EXISTS `sys_objects_payments` (
  4679. `id` int(11) NOT NULL AUTO_INCREMENT,
  4680. `object` varchar(32) NOT NULL,
  4681. `title` varchar(255) NOT NULL,
  4682. `uri` varchar(32) NOT NULL default '',
  4683. PRIMARY KEY (`id`),
  4684. UNIQUE KEY `object` (`object`),
  4685. UNIQUE KEY `uri` (`uri`)
  4686. );
  4687. -- --------------------------------------------------------
  4688. --
  4689. -- Logs Objects
  4690. --
  4691. CREATE TABLE `sys_objects_logs` (
  4692. `id` int(11) NOT NULL AUTO_INCREMENT,
  4693. `object` varchar(64) NOT NULL,
  4694. `module` varchar(32) NOT NULL,
  4695. `logs_storage` varchar(32) NOT NULL,
  4696. `title` varchar(255) NOT NULL,
  4697. `active` tinyint(4) NOT NULL DEFAULT '1',
  4698. `class_name` varchar(255) NOT NULL,
  4699. `class_file` varchar(255) NOT NULL,
  4700. PRIMARY KEY (`id`)
  4701. );
  4702. INSERT INTO `sys_objects_logs` (`object`, `module`, `logs_storage`, `title`, `active`, `class_name`, `class_file`) VALUES
  4703. ('sys_debug', 'system', 'Auto', '_sys_log_debug', 1, '', ''),
  4704. ('sys_twilio', 'system', 'Auto', '_sys_log_twilio', 1, '', ''),
  4705. ('sys_push', 'system', 'Auto', '_sys_log_push', 1, '', ''),
  4706. ('sys_payments', 'system', 'Auto', '_sys_log_payments', 1, '', ''),
  4707. ('sys_cron_jobs', 'system', 'Auto', '_sys_log_cron_jobs', 0, '', ''),
  4708. ('sys_transcoder', 'system', 'Auto', '_sys_log_transcoder', 1, '', '');
  4709. -- --------------------------------------------------------
  4710. --
  4711. -- Location Field Objects
  4712. --
  4713. CREATE TABLE `sys_objects_location_field` (
  4714. `id` int(11) NOT NULL AUTO_INCREMENT,
  4715. `object` varchar(64) NOT NULL,
  4716. `module` varchar(32) NOT NULL,
  4717. `title` varchar(255) NOT NULL,
  4718. `class_name` varchar(255) NOT NULL,
  4719. `class_file` varchar(255) NOT NULL,
  4720. PRIMARY KEY (`id`)
  4721. );
  4722. INSERT INTO `sys_objects_location_field` (`object`, `module`, `title`, `class_name`, `class_file`) VALUES
  4723. ('sys_google', 'system', '_sys_location_field_google', 'BxDolLocationFieldGoogle', ''),
  4724. ('sys_plain', 'system', '_sys_location_field_plain', 'BxDolLocationFieldNominatim', '');
  4725. -- --------------------------------------------------------
  4726. --
  4727. -- Location Map Objects
  4728. --
  4729. CREATE TABLE `sys_objects_location_map` (
  4730. `id` int(11) NOT NULL AUTO_INCREMENT,
  4731. `object` varchar(64) NOT NULL,
  4732. `module` varchar(32) NOT NULL,
  4733. `title` varchar(255) NOT NULL,
  4734. `class_name` varchar(255) NOT NULL,
  4735. `class_file` varchar(255) NOT NULL,
  4736. PRIMARY KEY (`id`)
  4737. );
  4738. INSERT INTO `sys_objects_location_map` (`object`, `module`, `title`, `class_name`, `class_file`) VALUES
  4739. ('sys_google_static', 'system', '_sys_location_map_google_static', 'BxDolLocationMapGoogleStatic', ''),
  4740. ('sys_leaflet', 'system', '_sys_location_map_leaflet', 'BxDolLocationMapLeaflet', '');
  4741. -- --------------------------------------------------------
  4742. --
  4743. -- WIKI Objects
  4744. --
  4745. CREATE TABLE IF NOT EXISTS `sys_objects_wiki` (
  4746. `id` int(11) NOT NULL AUTO_INCREMENT,
  4747. `object` varchar(64) NOT NULL,
  4748. `uri` varchar(32) NOT NULL,
  4749. `title` varchar(255) NOT NULL,
  4750. `module` varchar(32) NOT NULL,
  4751. `override_class_name` varchar(255) NOT NULL,
  4752. `override_class_file` varchar(255) NOT NULL,
  4753. PRIMARY KEY (`id`),
  4754. UNIQUE KEY `object` (`object`),
  4755. UNIQUE KEY `uri` (`uri`)
  4756. );
  4757. INSERT INTO `sys_objects_wiki` (`object`, `uri`, `title`, `module`, `override_class_name`, `override_class_file`) VALUES
  4758. ('system', 'sys', '_sys_wiki_system_title', 'system', '', '');
  4759. CREATE TABLE IF NOT EXISTS `sys_pages_wiki_blocks` (
  4760. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  4761. `block_id` int(11) NOT NULL,
  4762. `revision` int(11) NOT NULL,
  4763. `language` varchar(5) NOT NULL,
  4764. `main_lang` tinyint(4) NOT NULL DEFAULT '0',
  4765. `profile_id` int(10) UNSIGNED NOT NULL,
  4766. `content` mediumtext NOT NULL,
  4767. `unsafe` tinyint(4) NOT NULL DEFAULT '0',
  4768. `notes` varchar(255) NOT NULL,
  4769. `added` int(11) NOT NULL,
  4770. PRIMARY KEY (`id`),
  4771. UNIQUE KEY `block_lang_rev` (`block_id`,`language`,`revision`)
  4772. );
  4773. -- --------------------------------------------------------
  4774. --
  4775. -- Rewrite Rules
  4776. --
  4777. CREATE TABLE IF NOT EXISTS `sys_rewrite_rules` (
  4778. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  4779. `preg` varchar(255) NOT NULL,
  4780. `service` varchar(255) NOT NULL,
  4781. `active` tinyint(4) NOT NULL DEFAULT '1',
  4782. PRIMARY KEY (`id`)
  4783. );
  4784. INSERT INTO `sys_rewrite_rules` (`preg`, `service`, `active`) VALUES
  4785. ('^sys-action/(.*)$', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"wiki_action";s:6:"params";a:2:{i:0;s:3:"sys";i:1;s:3:"{1}";}s:5:"class";s:16:"TemplServiceWiki";}', '1');
  4786. -- --------------------------------------------------------
  4787. --
  4788. -- Table structure for table `sys_preloader`
  4789. --
  4790. CREATE TABLE IF NOT EXISTS `sys_preloader` (
  4791. `id` int(11) NOT NULL AUTO_INCREMENT,
  4792. `module` varchar(32) NOT NULL,
  4793. `type` varchar(16) NOT NULL,
  4794. `content` varchar(255) NOT NULL,
  4795. `active` tinyint(4) NOT NULL DEFAULT '1',
  4796. `order` int(11) unsigned NOT NULL default '0',
  4797. PRIMARY KEY (`id`)
  4798. );
  4799. INSERT INTO `sys_preloader`(`module`, `type`, `content`, `active`, `order`) VALUES
  4800. ('system', 'css_system', '{dir_plugins_public}marka/|marka.min.css', 1, 1),
  4801. ('system', 'css_system', '{dir_plugins_public}at.js/css/|jquery.atwho.min.css', 1, 2),
  4802. ('system', 'css_system', '{dir_plugins_public}prism/|prism.css', 1, 3),
  4803. ('system', 'css_system', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:21:"get_preloader_content";s:6:"params";a:1:{i:0;s:8:"tailwind";}s:5:"class";s:13:"TemplServices";}', 1, 4),
  4804. ('system', 'css_system', 'common.css', 1, 10),
  4805. ('system', 'css_system', 'default.less', 1, 11),
  4806. ('system', 'css_system', 'general.css', 1, 12),
  4807. ('system', 'css_system', 'icons.css', 1, 13),
  4808. ('system', 'css_system', 'colors.css', 1, 14),
  4809. ('system', 'css_system', 'forms.css', 1, 15),
  4810. ('system', 'css_system', 'media-desktop.css', 1, 20),
  4811. ('system', 'css_system', 'media-tablet.css', 1, 21),
  4812. ('system', 'css_system', 'media-phone.css', 1, 22),
  4813. ('system', 'css_system', 'media-print.css', 1, 23),
  4814. ('system', 'css_system', 'cmts.css', 1, 30),
  4815. ('system', 'css_system', 'favorite.css', 1, 31),
  4816. ('system', 'css_system', 'feature.css', 1, 32),
  4817. ('system', 'css_system', 'report.css', 1, 33),
  4818. ('system', 'css_system', 'score.css', 1, 34),
  4819. ('system', 'css_system', 'view.css', 1, 35),
  4820. ('system', 'css_system', 'vote.css', 1, 36),
  4821. ('system', 'css_system', '{dir_plugins_public}spin.js/|spin.css', 1, 37),
  4822. ('system', 'js_system', 'jquery/jquery.min.js', 1, 1),
  4823. ('system', 'js_system', 'jquery/jquery-migrate.min.js', 1, 2),
  4824. ('system', 'js_system', 'jquery-ui/jquery.ui.position.min.js', 1, 3),
  4825. ('system', 'js_system', 'jquery.easing.js', 1, 4),
  4826. ('system', 'js_system', 'jquery.cookie.min.js', 1, 5),
  4827. ('system', 'js_system', 'jquery.form.min.js', 1, 6),
  4828. ('system', 'js_system', 'spin.js/spin.js', 1, 7),
  4829. ('system', 'js_system', 'moment-with-locales.min.js', 1, 8),
  4830. ('system', 'js_system', 'marka/marka.min.js', 1, 9),
  4831. ('system', 'js_system', 'headroom.min.js', 1, 10),
  4832. ('system', 'js_system', 'at.js/js/jquery.atwho.min.js', 1, 11),
  4833. ('system', 'js_system', 'prism/prism.js', 1, 12),
  4834. ('system', 'js_system', 'functions.js', 1, 20),
  4835. ('system', 'js_system', 'jquery.webForms.js', 1, 21),
  4836. ('system', 'js_system', 'jquery.dolPopup.js', 1, 22),
  4837. ('system', 'js_system', 'jquery.dolConverLinks.js', 1, 23),
  4838. ('system', 'js_system', 'jquery.anim.js', 1, 24),
  4839. ('system', 'js_system', 'jquery.ba-resize.min.js', 1, 25),
  4840. ('system', 'js_system', 'BxDolCmts.js', 1, 30),
  4841. ('system', 'js_system', 'BxDolFavorite.js', 1, 31),
  4842. ('system', 'js_system', 'BxDolFeature.js', 1, 32),
  4843. ('system', 'js_system', 'BxDolReport.js', 1, 33),
  4844. ('system', 'js_system', 'BxDolScore.js', 1, 34),
  4845. ('system', 'js_system', 'BxDolView.js', 1, 35),
  4846. ('system', 'js_system', 'BxDolVote.js', 1, 36),
  4847. ('system', 'js_system', 'BxDolVoteLikes.js', 1, 37),
  4848. ('system', 'js_system', 'BxDolVoteReactions.js', 1, 38),
  4849. ('system', 'js_system', 'BxDolVoteStars.js', 1, 39),
  4850. ('system', 'js_system', 'BxDolCmtsReviews.js', 1, 40),
  4851. ('system', 'js_system', 'BxDolMenuMoreAuto.js', 1, 41),
  4852. ('system', 'js_system', 'BxDolForm.js', 1, 42),
  4853. ('system', 'js_system', 'BxDolNestedForm.js', 1, 43),
  4854. ('system', 'js_system', 'BxDolConnection.js', 1, 44),
  4855. ('system', 'js_translation', '_Are_you_sure', 1, 1),
  4856. ('system', 'js_translation', '_error occured', 1, 2),
  4857. ('system', 'js_translation', '_sys_loading', 1, 3),
  4858. ('system', 'js_translation', '_copyright', 1, 4);
  4859. -- --------------------------------------------------------
  4860. --
  4861. -- Table structure for table `sys_std_roles`
  4862. --
  4863. CREATE TABLE `sys_std_roles` (
  4864. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  4865. `name` varchar(64) NOT NULL default '',
  4866. `title` varchar(255) NOT NULL,
  4867. `description` varchar(255) NOT NULL default '',
  4868. `active` tinyint(4) NOT NULL DEFAULT '1',
  4869. `order` int(11) NOT NULL default '0',
  4870. PRIMARY KEY (`id`),
  4871. UNIQUE KEY `name` (`name`),
  4872. FULLTEXT KEY `searchable` (`title`, `description`)
  4873. );
  4874. INSERT INTO `sys_std_roles` (`id`, `name`, `title`, `description`, `active`, `order`) VALUES
  4875. (1, 'master', '_adm_rl_txt_role_master', '_adm_rl_txt_role_master_dsc', 1, 1),
  4876. (2, 'operator', '_adm_rl_txt_role_operator', '_adm_rl_txt_role_operator_dsc', 1, 2);
  4877. -- --------------------------------------------------------
  4878. --
  4879. -- Table structure for table `sys_std_roles_actions`
  4880. --
  4881. CREATE TABLE `sys_std_roles_actions` (
  4882. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  4883. `name` varchar(64) NOT NULL default '',
  4884. `title` varchar(255) NOT NULL,
  4885. `description` varchar(255) NOT NULL,
  4886. PRIMARY KEY (`id`),
  4887. FULLTEXT KEY `searchable` (`title`, `description`)
  4888. );
  4889. -- --------------------------------------------------------
  4890. --
  4891. -- Table structure for table `sys_std_roles_actions2roles`
  4892. --
  4893. CREATE TABLE `sys_std_roles_actions2roles` (
  4894. `role_id` int(11) unsigned NOT NULL default '0',
  4895. `action_id` int(11) unsigned NOT NULL default '0',
  4896. PRIMARY KEY (`role_id`, `action_id`)
  4897. );
  4898. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  4899. ('manage roles', '_adm_rl_txt_action_manage_roles', '_adm_rl_txt_action_manage_roles_dsc');
  4900. SET @iIdActionManageRoles = LAST_INSERT_ID();
  4901. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  4902. ('manage apps', '_adm_rl_txt_action_manage_apps', '_adm_rl_txt_action_manage_apps_dsc');
  4903. SET @iIdActionManageApps = LAST_INSERT_ID();
  4904. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  4905. ('use appearance', '_adm_rl_txt_action_use_appearance', '_adm_rl_txt_action_use_appearance_dsc');
  4906. SET @iIdActionUseAppearance = LAST_INSERT_ID();
  4907. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  4908. ('use structure', '_adm_rl_txt_action_use_structure', '_adm_rl_txt_action_use_structure_dsc');
  4909. SET @iIdActionUseStructure = LAST_INSERT_ID();
  4910. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  4911. ('use content', '_adm_rl_txt_action_use_content', '_adm_rl_txt_action_use_content_dsc');
  4912. SET @iIdActionUseContent = LAST_INSERT_ID();
  4913. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  4914. ('use users', '_adm_rl_txt_action_use_users', '_adm_rl_txt_action_use_users_dsc');
  4915. SET @iIdActionUseUsers = LAST_INSERT_ID();
  4916. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  4917. ('use configuration', '_adm_rl_txt_action_use_configuration', '_adm_rl_txt_action_use_configuration_dsc');
  4918. SET @iIdActionUseConfiguration = LAST_INSERT_ID();
  4919. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  4920. ('use extensions', '_adm_rl_txt_action_use_extensions', '_adm_rl_txt_action_use_extensions_dsc');
  4921. SET @iIdActionUseExtensions = LAST_INSERT_ID();
  4922. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  4923. ('use integrations', '_adm_rl_txt_action_use_integrations', '_adm_rl_txt_action_use_integrations_dsc');
  4924. SET @iIdActionUseIntegrations = LAST_INSERT_ID();
  4925. SET @iMaster = 1;
  4926. SET @iOperator = 2;
  4927. INSERT INTO `sys_std_roles_actions2roles` (`role_id`, `action_id`) VALUES
  4928. -- manage roles
  4929. (@iMaster, @iIdActionManageRoles),
  4930. (@iMaster, @iIdActionManageApps),
  4931. -- use appearance
  4932. (@iMaster, @iIdActionUseAppearance),
  4933. (@iOperator, @iIdActionUseAppearance),
  4934. -- use structure
  4935. (@iMaster, @iIdActionUseStructure),
  4936. (@iOperator, @iIdActionUseStructure),
  4937. -- use content
  4938. (@iMaster, @iIdActionUseContent),
  4939. (@iOperator, @iIdActionUseContent),
  4940. -- use users
  4941. (@iMaster, @iIdActionUseUsers),
  4942. (@iOperator, @iIdActionUseUsers),
  4943. -- use configuration
  4944. (@iMaster, @iIdActionUseConfiguration),
  4945. (@iOperator, @iIdActionUseConfiguration),
  4946. -- use extensions
  4947. (@iMaster, @iIdActionUseExtensions),
  4948. (@iOperator, @iIdActionUseExtensions),
  4949. -- use integrations
  4950. (@iMaster, @iIdActionUseIntegrations),
  4951. (@iOperator, @iIdActionUseIntegrations);
  4952. -- --------------------------------------------------------
  4953. --
  4954. -- Table structure for table `sys_std_roles_members`
  4955. --
  4956. CREATE TABLE `sys_std_roles_members` (
  4957. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  4958. `account_id` int(11) unsigned NOT NULL default '0',
  4959. `role` int(11) unsigned NOT NULL DEFAULT '0',
  4960. PRIMARY KEY (`id`),
  4961. UNIQUE KEY `account` (`account_id`)
  4962. );
  4963. -- --------------------------------------------------------
  4964. --
  4965. -- Table structure for table `sys_std_pages`
  4966. --
  4967. CREATE TABLE `sys_std_pages` (
  4968. `id` int(11) unsigned NOT NULL auto_increment,
  4969. `index` int(11) unsigned NOT NULL default '0',
  4970. `name` varchar(64) NOT NULL default '',
  4971. `header` varchar(255) NOT NULL default '',
  4972. `caption` varchar(255) NOT NULL default '',
  4973. `icon` varchar(255) NOT NULL default '',
  4974. PRIMARY KEY (`id`),
  4975. UNIQUE KEY `name` (`name`)
  4976. );
  4977. -- --------------------------------------------------------
  4978. --
  4979. -- Table structure for table `sys_std_widgets`
  4980. --
  4981. CREATE TABLE `sys_std_widgets` (
  4982. `id` int(11) unsigned NOT NULL auto_increment,
  4983. `page_id` varchar(255) NOT NULL default '',
  4984. `module` varchar(32) NOT NULL default '',
  4985. `type` varchar(32) NOT NULL default '',
  4986. `url` varchar(255) NOT NULL default '',
  4987. `click` text NOT NULL default '',
  4988. `icon` varchar(255) NOT NULL default '',
  4989. `caption` varchar(255) NOT NULL default '',
  4990. `cnt_notices` text NOT NULL default '',
  4991. `cnt_actions` text NOT NULL default '',
  4992. `featured` tinyint(4) unsigned NOT NULL default '0',
  4993. PRIMARY KEY (`ID`),
  4994. UNIQUE KEY `widget-page` (`id`, `page_id`(187))
  4995. );
  4996. --
  4997. -- Table structure for table `sys_std_widgets_bookmarks`
  4998. --
  4999. CREATE TABLE `sys_std_widgets_bookmarks` (
  5000. `widget_id` int(11) unsigned NOT NULL default '0',
  5001. `profile_id` int(11) unsigned NOT NULL default '0',
  5002. `bookmark` tinyint(4) unsigned NOT NULL default '0',
  5003. UNIQUE KEY `bookmark` (`widget_id`, `profile_id`)
  5004. );
  5005. -- --------------------------------------------------------
  5006. --
  5007. -- Table structure for table `sys_std_pages_widgets`
  5008. --
  5009. CREATE TABLE `sys_std_pages_widgets` (
  5010. `id` int(11) unsigned NOT NULL auto_increment,
  5011. `page_id` int(11) unsigned NOT NULL default '0',
  5012. `widget_id` int(11) unsigned NOT NULL default '0',
  5013. `order` int(11) unsigned NOT NULL default '0',
  5014. PRIMARY KEY (`id`),
  5015. UNIQUE KEY `wid_pag` (`widget_id`, `page_id`)
  5016. );
  5017. --
  5018. -- Dumping data for table `sys_std_pages`
  5019. --
  5020. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5021. (3, 'home', '_adm_page_cpt_home', '_adm_page_cpt_home', '');
  5022. SET @iIdHome = LAST_INSERT_ID();
  5023. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5024. (4, 'dashboard', '_adm_page_cpt_dashboard', '_adm_page_cpt_dashboard', 'wi-dashboard.svg');
  5025. SET @iIdDashboard = LAST_INSERT_ID();
  5026. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5027. (3, 'settings', '_adm_page_cpt_settings', '_adm_page_cpt_settings', 'wi-settings.svg');
  5028. SET @iIdSettings = LAST_INSERT_ID();
  5029. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5030. (3, 'store', '_adm_page_cpt_store', '_adm_page_cpt_store', 'wi-store.svg');
  5031. SET @iIdStore = LAST_INSERT_ID();
  5032. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5033. (3, 'designer', '_adm_page_cpt_designer', '_adm_page_cpt_designer', 'wi-designer.svg');
  5034. SET @iIdDesigner = LAST_INSERT_ID();
  5035. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5036. (3, 'polyglot', '_adm_page_cpt_polyglot', '_adm_page_cpt_polyglot', 'wi-polyglot.svg');
  5037. SET @iIdPolyglot = LAST_INSERT_ID();
  5038. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5039. (3, 'builder_pages', '_adm_page_cpt_builder_pages', '_adm_page_cpt_builder_pages', 'wi-bld-pages.svg');
  5040. SET @iIdBuilderPages = LAST_INSERT_ID();
  5041. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5042. (3, 'builder_menus', '_adm_page_cpt_builder_menus', '_adm_page_cpt_builder_menus', 'wi-bld-navigation.svg');
  5043. SET @iIdBuilderMenus = LAST_INSERT_ID();
  5044. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5045. (3, 'builder_forms', '_adm_page_cpt_builder_forms', '_adm_page_cpt_builder_forms', 'wi-bld-forms.svg');
  5046. SET @iIdBuilderForms = LAST_INSERT_ID();
  5047. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5048. (3, 'builder_permissions', '_adm_page_cpt_builder_permissions', '_adm_page_cpt_builder_permissions', 'wi-bld-permissions.svg');
  5049. SET @iIdBuilderPermissions = LAST_INSERT_ID();
  5050. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5051. (3, 'builder_roles', '_adm_page_cpt_builder_roles', '_adm_page_cpt_builder_roles', 'wi-bld-roles.svg');
  5052. SET @iIdBuilderRoles = LAST_INSERT_ID();
  5053. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5054. (3, 'storages', '_adm_page_cpt_storages', '_adm_page_cpt_storages', 'wi-storages.svg');
  5055. SET @iIdManagerStorages = LAST_INSERT_ID();
  5056. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5057. (3, 'audit', '_adm_page_cpt_audit', '_adm_page_cpt_audit', 'wi-audit.svg');
  5058. SET @iIdAudit = LAST_INSERT_ID();
  5059. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5060. (3, 'badges', '_adm_page_cpt_badges', '_adm_page_cpt_badges', 'wi-badges.svg');
  5061. SET @iIdBadges = LAST_INSERT_ID();
  5062. --
  5063. -- Dumping data for table `sys_std_widgets` and `sys_std_pages_widgets`
  5064. -- Home Page
  5065. --
  5066. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5067. (@iIdSettings, 'system', 'configuration', '{url_studio}settings.php', '', 'wi-settings.svg', '_adm_wgt_cpt_settings', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  5068. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 3);
  5069. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5070. (@iIdStore, 'system', 'extensions', '{url_studio}store.php', '', 'wi-store.svg', '_adm_wgt_cpt_store', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  5071. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 2);
  5072. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`, `featured`) VALUES
  5073. (@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";}', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}', 1);
  5074. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  5075. --
  5076. -- Templates Page
  5077. --
  5078. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5079. (@iIdDesigner, 'system', 'appearance', '{url_studio}designer.php', '', 'wi-designer.svg', '_adm_wgt_cpt_designer', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  5080. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 6);
  5081. --
  5082. -- Languages Page
  5083. --
  5084. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5085. (@iIdPolyglot, 'system', 'appearance', '{url_studio}polyglot.php', '', 'wi-polyglot.svg', '_adm_wgt_cpt_polyglot', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  5086. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 5);
  5087. --
  5088. -- Builders Page
  5089. --
  5090. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5091. (@iIdBuilderPages, 'system', 'structure', '{url_studio}builder_page.php', '', 'wi-bld-pages.svg', '_adm_wgt_cpt_builder_pages', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  5092. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 7);
  5093. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5094. (@iIdBuilderMenus, 'system', 'structure', '{url_studio}builder_menu.php', '', 'wi-bld-navigation.svg', '_adm_wgt_cpt_builder_menus', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  5095. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 8);
  5096. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5097. (@iIdBuilderForms, 'system', 'structure', '{url_studio}builder_forms.php', '', 'wi-bld-forms.svg', '_adm_wgt_cpt_builder_forms', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  5098. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 9);
  5099. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5100. (@iIdBuilderPermissions, 'system', 'configuration', '{url_studio}builder_permissions.php', '', 'wi-bld-permissions.svg', '_adm_wgt_cpt_builder_permissions', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  5101. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 10);
  5102. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5103. (@iIdBuilderRoles, 'system', 'configuration', '{url_studio}builder_roles.php', '', 'wi-bld-roles.svg', '_adm_wgt_cpt_builder_roles', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  5104. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 11);
  5105. --
  5106. -- Storages Page
  5107. --
  5108. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5109. (@iIdManagerStorages, 'system', 'content', '{url_studio}storages.php', '', 'wi-storages.svg', '_adm_wgt_cpt_storages', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  5110. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 4);
  5111. --
  5112. -- Audit Page
  5113. --
  5114. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5115. (@iIdAudit, 'system', 'extensions', '{url_studio}audit.php', '', 'wi-audit.svg', '_adm_wgt_cpt_audit', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  5116. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 12);
  5117. --
  5118. -- Badges Page
  5119. --
  5120. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5121. (@iIdBadges, 'system', 'structure', '{url_studio}badges.php', '', 'wi-badges.svg', '_adm_wgt_cpt_badges', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  5122. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 13);