system.sql 436 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637
  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_search_extended_sorting_fields`, `sys_statistics`, `sys_audit`, `sys_alerts`, `sys_alerts_cache_triggers`, `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_privacy_groups_custom_memberships`, `sys_objects_recommendation`, `sys_recommendation_criteria`, `sys_recommendation_data`, `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_accounts_password`, `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_bans`, `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_wiki_files`, `sys_wiki_images_resized`, `sys_rewrite_rules`, `sys_seo_links`, `sys_seo_uri_rewrites`, `sys_api_keys`, `sys_api_origins`, `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`, `sys_iframely_data`;
  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. `salt` varchar(255) NOT NULL,
  14. PRIMARY KEY (`key`)
  15. );
  16. -- --------------------------------------------------------
  17. CREATE TABLE `sys_objects_editor` (
  18. `id` int(11) NOT NULL AUTO_INCREMENT,
  19. `object` varchar(64) NOT NULL,
  20. `title` varchar(255) NOT NULL,
  21. `skin` varchar(255) NOT NULL,
  22. `override_class_name` varchar(255) NOT NULL,
  23. `override_class_file` varchar(255) NOT NULL,
  24. PRIMARY KEY (`id`),
  25. UNIQUE KEY `object` (`object`)
  26. );
  27. INSERT INTO `sys_objects_editor` (`object`, `title`, `skin`, `override_class_name`, `override_class_file`) VALUES
  28. ('sys_quill', 'Quill', 'snow', 'BxTemplEditorQuill', '');
  29. -- --------------------------------------------------------
  30. CREATE TABLE `sys_objects_player` (
  31. `id` int(11) NOT NULL AUTO_INCREMENT,
  32. `object` varchar(64) NOT NULL,
  33. `title` varchar(255) NOT NULL,
  34. `skin` varchar(255) NOT NULL,
  35. `override_class_name` varchar(255) NOT NULL,
  36. `override_class_file` varchar(255) NOT NULL,
  37. PRIMARY KEY (`id`),
  38. UNIQUE KEY `object` (`object`)
  39. );
  40. INSERT INTO `sys_objects_player` (`object`, `title`, `skin`, `override_class_name`, `override_class_file`) VALUES
  41. ('sys_html5', 'HTML5', '', 'BxTemplPlayerHtml5', '');
  42. -- --------------------------------------------------------
  43. CREATE TABLE `sys_objects_embeds` (
  44. `id` int(11) NOT NULL AUTO_INCREMENT,
  45. `object` varchar(64) NOT NULL,
  46. `title` varchar(255) NOT NULL,
  47. `override_class_name` varchar(255) NOT NULL,
  48. `override_class_file` varchar(255) NOT NULL,
  49. PRIMARY KEY (`id`),
  50. UNIQUE KEY `object` (`object`)
  51. );
  52. INSERT INTO `sys_objects_embeds` (`object`, `title`, `override_class_name`, `override_class_file`) VALUES
  53. ('sys_embedly', 'Embedly', 'BxTemplEmbedEmbedly', ''),
  54. ('sys_iframely', 'Iframely', 'BxTemplEmbedIframely', ''),
  55. ('sys_oembed', 'Oembed', 'BxTemplEmbedOembed', '');
  56. CREATE TABLE `sys_iframely_data` (
  57. `id` int(11) NOT NULL AUTO_INCREMENT,
  58. `url` varchar(255) DEFAULT NULL,
  59. `data` text DEFAULT NULL,
  60. `added` int(11) DEFAULT NULL,
  61. `theme` varchar(10) DEFAULT NULL,
  62. PRIMARY KEY (id)
  63. );
  64. -- --------------------------------------------------------
  65. CREATE TABLE IF NOT EXISTS `sys_objects_file_handlers` (
  66. `id` int(11) NOT NULL AUTO_INCREMENT,
  67. `object` varchar(64) NOT NULL,
  68. `title` varchar(255) NOT NULL,
  69. `preg_ext` text NOT NULL,
  70. `active` tinyint(4) NOT NULL,
  71. `order` int(11) NOT NULL,
  72. `override_class_name` varchar(255) NOT NULL,
  73. `override_class_file` varchar(255) NOT NULL,
  74. PRIMARY KEY (`id`),
  75. UNIQUE KEY `object` (`object`)
  76. );
  77. INSERT INTO `sys_objects_file_handlers` (`object`, `title`, `preg_ext`, `active`, `order`, `override_class_name`, `override_class_file`) VALUES
  78. ('sys_ms_viewer', '_sys_file_handlers_ms_viewer', '/\\.(doc|docx|xls|xlsx|ppt|pptx)$/i', 1, 1, 'BxTemplFileHandlerMsViewer', ''),
  79. ('sys_google_viewer', '_sys_file_handlers_google_viewer', '/\\.(pdf|doc|docx|xls|xlsx|ppt|pptx|ai|svg|ps|tif|tiff)$/i', 1, 2, 'BxTemplFileHandlerGoogleViewer', ''),
  80. ('sys_images_viewer', '_sys_file_handlers_images_viewer', '/\\.(jpg|jpeg|png|gif|webp)$/i', 1, 3, 'BxTemplFileHandlerImagesViewer', ''),
  81. ('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', '');
  82. -- --------------------------------------------------------
  83. CREATE TABLE `sys_objects_captcha` (
  84. `id` int(11) NOT NULL AUTO_INCREMENT,
  85. `object` varchar(64) NOT NULL,
  86. `title` varchar(255) NOT NULL,
  87. `override_class_name` varchar(255) NOT NULL,
  88. `override_class_file` varchar(255) NOT NULL,
  89. PRIMARY KEY (`id`)
  90. );
  91. INSERT INTO `sys_objects_captcha` (`object`, `title`, `override_class_name`, `override_class_file`) VALUES
  92. ('sys_recaptcha_new', 'reCAPTCHA', 'BxTemplCaptchaReCAPTCHANew', ''),
  93. ('sys_recaptcha_invisible', 'reCAPTCHA Invisible', 'BxTemplCaptchaReCAPTCHAInvisible', ''),
  94. ('sys_hcaptcha', 'hCaptcha', 'BxTemplCaptchaHCaptcha', '');
  95. -- --------------------------------------------------------
  96. CREATE TABLE `sys_objects_auths` (
  97. `ID` int(10) unsigned NOT NULL auto_increment,
  98. `Name` varchar(64) NOT NULL,
  99. `Title` varchar(128) NOT NULL,
  100. `Link` varchar(255) NOT NULL,
  101. `OnClick` varchar(255) NOT NULL,
  102. `Icon` varchar(64) NOT NULL,
  103. `Style` varchar(255) NOT NULL,
  104. PRIMARY KEY (`ID`)
  105. );
  106. -- --------------------------------------------------------
  107. --
  108. -- Table structure for table `sys_objects_cmts`
  109. --
  110. CREATE TABLE `sys_objects_cmts` (
  111. `ID` int(10) unsigned NOT NULL auto_increment,
  112. `Name` varchar(64) NOT NULL,
  113. `Module` varchar(32) NOT NULL,
  114. `Table` varchar(50) NOT NULL,
  115. `CharsPostMin` int(10) NOT NULL,
  116. `CharsPostMax` int(10) NOT NULL,
  117. `CharsDisplayMax` int(10) NOT NULL,
  118. `Html` smallint(1) NOT NULL,
  119. `PerView` smallint(6) NOT NULL,
  120. `PerViewReplies` smallint(6) NOT NULL,
  121. `BrowseType` varchar(50) NOT NULL,
  122. `IsBrowseSwitch` smallint(1) NOT NULL,
  123. `PostFormPosition` varchar(50) NOT NULL,
  124. `NumberOfLevels` smallint(6) NOT NULL,
  125. `IsDisplaySwitch` smallint(1) NOT NULL,
  126. `IsRatable` smallint(1) NOT NULL,
  127. `ViewingThreshold` smallint(6) NOT NULL,
  128. `IsOn` smallint(1) NOT NULL,
  129. `RootStylePrefix` varchar(16) NOT NULL default 'cmt',
  130. `BaseUrl` varchar(256) NOT NULL,
  131. `ObjectVote` varchar(64) NOT NULL default '',
  132. `ObjectReaction` varchar(64) NOT NULL default '',
  133. `ObjectScore` varchar(64) NOT NULL default '',
  134. `ObjectReport` varchar(64) NOT NULL default '',
  135. `TriggerTable` varchar(32) NOT NULL,
  136. `TriggerFieldId` varchar(32) NOT NULL,
  137. `TriggerFieldAuthor` varchar(32) NOT NULL,
  138. `TriggerFieldTitle` varchar(32) NOT NULL,
  139. `TriggerFieldComments` varchar(32) NOT NULL,
  140. `ClassName` varchar(32) NOT NULL,
  141. `ClassFile` varchar(256) NOT NULL,
  142. PRIMARY KEY (`ID`)
  143. );
  144. -- --------------------------------------------------------
  145. CREATE TABLE `sys_queue_push` (
  146. `id` int(11) NOT NULL auto_increment,
  147. `profile_id` int(11) NOT NULL default '0',
  148. `message` text NOT NULL default '',
  149. PRIMARY KEY (`id`)
  150. );
  151. -- --------------------------------------------------------
  152. CREATE TABLE `sys_queue_email` (
  153. `id` int(11) NOT NULL auto_increment,
  154. `email` varchar(64) NOT NULL default '',
  155. `subject` varchar(255) NOT NULL default '',
  156. `body` text NOT NULL default '',
  157. `params` text NOT NULL default '',
  158. PRIMARY KEY (`id`)
  159. );
  160. -- --------------------------------------------------------
  161. CREATE TABLE IF NOT EXISTS `sys_email_templates` (
  162. `ID` int(11) unsigned NOT NULL auto_increment,
  163. `Module` varchar(32) NOT NULL,
  164. `NameSystem` varchar(255) NOT NULL,
  165. `Name` varchar(255) NOT NULL,
  166. `Subject` varchar(255) NOT NULL,
  167. `Body` varchar(255) NOT NULL,
  168. PRIMARY KEY (`ID`)
  169. );
  170. INSERT INTO `sys_email_templates` (`Module`, `NameSystem`, `Name`, `Subject`, `Body`) VALUES
  171. ('system', '_sys_et_txt_name_system_admin_email', 't_AdminEmail', '_sys_et_txt_subject_admin_email', '_sys_et_txt_body_admin_email'),
  172. ('system', '_sys_et_txt_name_system_confirmation', 't_Confirmation', '_sys_et_txt_subject_confirmation', '_sys_et_txt_body_confirmation'),
  173. ('system', '_sys_et_txt_name_system_forgot', 't_Forgot', '_sys_et_txt_subject_forgot', '_sys_et_txt_body_forgot'),
  174. ('system', '_sys_et_txt_name_system_mem_expiration', 't_MemExpiration', '_sys_et_txt_subject_mem_expiration', '_sys_et_txt_body_mem_expiration'),
  175. ('system', '_sys_et_txt_name_system_mem_changed', 't_MemChanged', '_sys_et_txt_subject_mem_changed', '_sys_et_txt_body_mem_changed'),
  176. ('system', '_sys_et_txt_name_system_mem_prolonged', 't_MemProlonged', '_sys_et_txt_subject_mem_prolonged', '_sys_et_txt_body_mem_prolonged'),
  177. ('system', '_sys_et_txt_name_system_comment_replied', 't_CommentReplied', '_sys_et_txt_subject_comment_replied', '_sys_et_txt_body_comment_replied'),
  178. ('system', '_sys_et_txt_name_system_reported', 't_Reported', '_sys_et_txt_subject_system_reported', '_sys_et_txt_body_system_reported'),
  179. ('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'),
  180. ('system', '_sys_et_txt_name_system_account', 't_Account', '_sys_et_txt_subject_account', '_sys_et_txt_body_account'),
  181. ('system', '_sys_et_txt_name_system_account_password_expired', 't_AccountPasswordExpired', '_sys_et_txt_subject_account_password_expired', '_sys_et_txt_body_account_password_expired'),
  182. ('system', '_sys_et_txt_name_system_pruning', 't_Pruning', '_sys_et_txt_subject_pruning', '_sys_et_txt_body_pruning'),
  183. ('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'),
  184. ('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'),
  185. ('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'),
  186. ('system', '_sys_et_txt_name_upgrade_failed', 't_UpgradeFailed', '_sys_et_txt_subject_upgrade_failed', '_sys_et_txt_body_upgrade_failed'),
  187. ('system', '_sys_et_txt_name_upgrade_modules_failed', 't_UpgradeModulesFailed', '_sys_et_txt_subject_upgrade_modules_failed', '_sys_et_txt_body_upgrade_modules_failed'),
  188. ('system', '_sys_et_txt_name_upgrade_success', 't_UpgradeSuccess', '_sys_et_txt_subject_upgrade_success', '_sys_et_txt_body_upgrade_success'),
  189. ('system', '_sys_et_txt_name_upgrade_modules_success', 't_UpgradeModulesSuccess', '_sys_et_txt_subject_upgrade_modules_success', '_sys_et_txt_body_upgrade_modules_success'),
  190. ('system', '_sys_et_txt_name_bg_operation_failed', 't_BgOperationFailed', '_sys_et_txt_subject_bg_operation_failed', '_sys_et_txt_body_bg_operation_failed'),
  191. ('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'),
  192. ('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'),
  193. ('system', '_sys_et_txt_name_manage_approve', 't_ManageApprove', '_sys_et_txt_subject_manage_approve', '_sys_et_txt_body_manage_approve');
  194. -- --------------------------------------------------------
  195. --
  196. -- Table structure for table `sys_options`
  197. --
  198. CREATE TABLE `sys_options` (
  199. `id` int(11) unsigned NOT NULL auto_increment,
  200. `category_id` int(11) unsigned NOT NULL default '0',
  201. `name` varchar(64) NOT NULL default '',
  202. `caption` varchar(255) NOT NULL default '',
  203. `value` mediumtext NOT NULL,
  204. `type` enum('value','digit','text','code','checkbox','select','combobox','file','image','list','rlist','rgb','rgba','datetime') NOT NULL default 'digit',
  205. `extra` text NOT NULL default '',
  206. `check` varchar(32) NOT NULL,
  207. `check_params` text NOT NULL,
  208. `check_error` varchar(255) NOT NULL default '',
  209. `order` int(11) default '0',
  210. PRIMARY KEY (`id`),
  211. UNIQUE KEY `name`(`name`),
  212. KEY `category_id` (`category_id`)
  213. );
  214. --
  215. -- Table structure for table `sys_options_categories`
  216. --
  217. CREATE TABLE `sys_options_categories` (
  218. `id` int(11) unsigned NOT NULL auto_increment,
  219. `type_id` int(11) unsigned NOT NULL default '0',
  220. `name` varchar(64) NOT NULL default '',
  221. `caption` varchar(64) NOT NULL default '',
  222. `hidden` tinyint(1) NOT NULL default '0',
  223. `order` int(11) default '0',
  224. PRIMARY KEY (`id`),
  225. UNIQUE KEY `name`(`name`)
  226. );
  227. --
  228. -- Table structure for table `sys_options_types`
  229. --
  230. CREATE TABLE `sys_options_types` (
  231. `id` int(11) unsigned NOT NULL auto_increment,
  232. `group` varchar(64) NOT NULL default '',
  233. `name` varchar(64) NOT NULL default '',
  234. `caption` varchar(64) NOT NULL default '',
  235. `icon` varchar(255) NOT NULL default '',
  236. `order` int(11) default '0',
  237. PRIMARY KEY (`id`),
  238. UNIQUE KEY `name`(`name`)
  239. );
  240. --
  241. -- Dumping data for tables `sys_options_types`
  242. --
  243. INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES ('system', 'system', '_adm_stg_cpt_type_system', 'cogs', 1);
  244. SET @iTypeId = LAST_INSERT_ID();
  245. --
  246. -- CATEGORY (HIDDEN): Hidden
  247. --
  248. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'hidden', '_adm_stg_cpt_category_hidden', 1, 0);
  249. SET @iCategoryId = LAST_INSERT_ID();
  250. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_params`, `check_error`, `order`) VALUES
  251. (@iCategoryId, 'sys_cron_time', '_adm_stg_cpt_option_sys_cron_time', '0', 'digit', '', '', '', '', 2),
  252. (@iCategoryId, 'sys_upgrade_channel', '_adm_stg_cpt_option_sys_upgrade_channel', 'beta', 'select', 'stable,beta', '', '', '', 4),
  253. (@iCategoryId, 'sys_revision', '_adm_stg_cpt_option_sys_revision', '0', 'digit', '', '', '', '', 5),
  254. (@iCategoryId, 'sys_eq_time', '_adm_stg_cpt_option_sys_eq_time', '0', 'digit', '', '', '', '', 6),
  255. (@iCategoryId, 'sys_push_queue_time', '_adm_stg_cpt_option_sys_push_queue_time', '0', 'digit', '', '', '', '', 7),
  256. (@iCategoryId, 'sys_ftp_login', '_adm_stg_cpt_option_sys_ftp_login', '', 'digit', '', '', '', '', 10),
  257. (@iCategoryId, 'sys_ftp_password', '_adm_stg_cpt_option_sys_ftp_password', '', 'digit', '', '', '', '', 11),
  258. (@iCategoryId, 'sys_ftp_dir', '_adm_stg_cpt_option_sys_ftp_dir', '', 'digit', '', '', '', '', 12),
  259. (@iCategoryId, 'sys_template_cache_image_enable', '_adm_stg_cpt_option_sys_template_cache_image_enable', '', 'checkbox', '', '', '', '', 20),
  260. (@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),
  261. (@iCategoryId, 'sys_email_attachable_email_templates', '_adm_stg_cpt_option_sys_email_attachable_email_templates', '', 'digit', '', '', '', '', 31),
  262. (@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),
  263. (@iCategoryId, 'sys_redirect_after_email_confirmation', '_adm_stg_cpt_option_sys_redirect_after_email_confirmation', '', 'digit', '', '', '', '', 41),
  264. (@iCategoryId, 'sys_editor_default', '_adm_stg_cpt_option_sys_editor_default', 'sys_quill', 'digit', '', '', '', '', 50),
  265. (@iCategoryId, 'sys_player_default', '_adm_stg_cpt_option_sys_player_default', 'sys_html5', 'digit', '', '', '', '', 55),
  266. (@iCategoryId, 'sys_player_default_format', '_adm_stg_cpt_option_sys_player_default_quality', 'sd', 'select', 'sd,hd', '', '', '', 56),
  267. (@iCategoryId, 'sys_live_updates_interval', '_adm_stg_cpt_option_sys_live_updates_interval', '10000', 'digit', '', '', '', '', 60),
  268. (@iCategoryId, 'sys_quill_insert_as_plain_text', '_adm_stg_cpt_option_sys_quill_insert_as_plain_text', '', 'checkbox', '', '', '', '', 65),
  269. (@iCategoryId, 'sys_quill_allow_empty_tags', '_adm_stg_cpt_option_sys_quill_allow_empty_tags', 'on', 'checkbox', '', '', '', '', 66),
  270. (@iCategoryId, 'sys_quill_allowed_tags_mini', '_adm_stg_cpt_option_sys_quill_allowed_tags_mini', '', 'digit', '', '', '', '', 67),
  271. (@iCategoryId, 'sys_quill_allowed_tags_standard', '_adm_stg_cpt_option_sys_quill_allowed_tags_standard', '', 'digit', '', '', '', '', 68),
  272. (@iCategoryId, 'sys_quill_allowed_tags_full', '_adm_stg_cpt_option_sys_quill_allowed_tags_full', '', 'digit', '', '', '', '', 69),
  273. (@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\',\'embed\']', 'digit', '', '', '', '', 70),
  274. (@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\',\'embed\',\'emoji\']', 'digit', '', '', '', '', 73),
  275. (@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\'],
  276. [{ \'align\': [] },{\'list\':\'ordered\'}, {\'list\':\'bullet\'},{\'indent\': \'-1\'},{\'indent\': \'+1\'},\'blockquote\',{ \'color\': [] }, { \'background\': [] },{ \'direction\': \'rtl\' },\'link\',\'image\',\'embed\',\'code-block\',\'emoji\',\'show-html\']', 'digit', '', '', '', '', 76),
  277. (@iCategoryId, 'sys_search_keyword_min_len', '_adm_stg_cpt_option_sys_search_keyword_min_len', '1', 'digit', '', '', '', '', 80),
  278. (@iCategoryId, 'sys_relations_enable', '_adm_stg_cpt_option_sys_relations_enable', 'on', 'checkbox', '', '', '', '', 90),
  279. (@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";}', '', '', '', 91),
  280. (@iCategoryId, 'enable_gd', '_adm_stg_cpt_option_enable_gd', 'on', 'checkbox', '', '', '', '', 100),
  281. (@iCategoryId, 'sys_transcoder_queue_storage', '_adm_stg_cpt_option_sys_transcoder_queue_storage', '', 'checkbox', '', '', '', '', 105),
  282. (@iCategoryId, 'sys_session_lifetime_in_min', '_adm_stg_cpt_option_sys_session_lifetime_in_min', '129600', 'digit', '', '', '', '', 110),
  283. (@iCategoryId, 'sys_session_auth', '_adm_stg_cpt_option_sys_session_auth', '', 'checkbox', '', '', '', '', 112),
  284. (@iCategoryId, 'sys_account_activation_letter', '_adm_stg_cpt_option_sys_account_activation_letter', '', 'checkbox', '', '', '', '', 120),
  285. (@iCategoryId, 'sys_logs_storage_default', '_adm_stg_cpt_option_sys_logs_storage_default', 'Folder', 'select', 'Folder,PHPLog,STDErr', '', '', '', 130),
  286. (@iCategoryId, 'sys_default_socket_timeout', '_adm_stg_cpt_option_sys_default_socket_timeout', '30', 'digit', '', '', '', '', 140),
  287. (@iCategoryId, 'sys_default_curl_timeout', '_adm_stg_cpt_option_sys_default_curl_timeout', '300', 'digit', '', '', '', '', 141),
  288. (@iCategoryId, 'sys_curl_ssl_allow_untrusted', '_adm_stg_cpt_option_sys_ssl_allow_untrusted', '', 'checkbox', '', '', '', '', 145),
  289. (@iCategoryId, 'sys_csp_frame_ancestors', '_adm_stg_cpt_option_sys_csp_frame_ancestors', '*', 'digit', '', '', '', '', 150),
  290. (@iCategoryId, 'sys_samesite_cookies', '_adm_stg_cpt_option_sys_samesite_cookies', 'Lax', 'select', 'None,Lax,Strict', '', '', '', 152),
  291. (@iCategoryId, 'sys_notify_to_approve_by_role', '_adm_stg_cpt_option_sys_notify_to_approve_by_role', '', 'checkbox', '', '', '', '', 160),
  292. (@iCategoryId, 'sys_fixed_header', '_adm_stg_cpt_option_sys_fixed_header', '', 'checkbox', '', '', '', '', 170),
  293. (@iCategoryId, 'sys_css_media_classes', '_adm_stg_cpt_option_sys_css_media_classes', '{"phone":"(max-width:720px)","phone2":"(min-width:533px) and (max-width:720px)","tablet":"(min-width:720px) and (max-width:1280px)","tablet2":"(min-width:1024px) and (max-width:1280px)","desktop":"(min-width:1280px)"}', 'digit', '', '', '', '', 180),
  294. (@iCategoryId, 'sys_css_tailwind_default', '_adm_stg_cpt_option_sys_css_tailwind_default', 'tailwind.min.css', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:27:"get_options_taiwind_default";s:5:"class";s:13:"TemplServices";}', '', '', '', 181),
  295. (@iCategoryId, 'sys_css_icons_default', '_adm_stg_cpt_option_sys_css_icons_default', 'icons.css', 'digit', '', '', '', '', 182),
  296. (@iCategoryId, 'sys_files_ext_images', '_adm_stg_cpt_option_sys_files_ext_images', 'jpg,jpeg,jpe,gif,png,webp', 'digit', '', '', '', '', 200),
  297. (@iCategoryId, 'sys_files_ext_video', '_adm_stg_cpt_option_sys_files_ext_video', 'avi,flv,mpg,mpeg,wmv,mp4,m4v,mov,qt,divx,xvid,3gp,3g2,webm,mkv,ogv,ogg,rm,rmvb,asf,drc,ts', 'digit', '', '', '', '', 210),
  298. (@iCategoryId, 'sys_files_ext_audio', '_adm_stg_cpt_option_sys_files_ext_audio', 'mp3,m4a,m4b,wma,wav,3gp', 'digit', '', '', '', '', 220),
  299. (@iCategoryId, 'sys_files_ext_imagevideo', '_adm_stg_cpt_option_sys_files_ext_imagevideo', 'jpg,jpeg,jpe,gif,png,svg,webp,avi,flv,mpg,mpeg,wmv,mp4,m4v,mov,qt,divx,xvid,3gp,3g2,webm,mkv,ogv,ogg,rm,rmvb,asf,drc,ts', 'digit', '', '', '', '', 230),
  300. (@iCategoryId, 'sys_files_ext_dangerous', '_adm_stg_cpt_option_sys_files_ext_dangerous', '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', 'digit', '', '', '', '', 240),
  301. (@iCategoryId, 'sys_viewport_meta_tag', '_adm_stg_cpt_option_sys_viewport_meta_tag', 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0', 'digit', '', '', '', '', 250),
  302. (@iCategoryId, 'sys_form_lpc_enable', '_adm_stg_cpt_option_sys_form_lpc_enable', 'on', 'checkbox', '', '', '', '', 260);
  303. --
  304. -- CATEGORY (HIDDEN): System
  305. --
  306. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'system', '_adm_stg_cpt_category_system', 1, 1);
  307. SET @iCategoryId = LAST_INSERT_ID();
  308. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  309. (@iCategoryId, 'site_email_html_template_header', '_adm_stg_cpt_option_site_email_html_template_header', '<html>\r\n <head></head>\r\n <body bgcolor="#fff" style="margin:0; padding:0;">\r\n <div style="background-color:#fff;">\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; 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),
  310. (@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="color:#999; padding:0 20px 20px 20px; font:11px Helvetica, Arial, sans-serif;">\r\n <div style="border-top:2px solid #eee; padding-top:10px;">{about_us}&nbsp;&nbsp;&nbsp;{unsubscribe}</div>\r\n </div>\r\n </td></tr>\r\n </table>\r\n </div>\r\n </body>\r\n</html>', 'text', '', '', '', 2),
  311. (@iCategoryId, 'sys_site_icon', '', '0', 'digit', '', '', '', 15),
  312. (@iCategoryId, 'sys_site_icon_svg', '', '0', 'digit', '', '', '', 16),
  313. (@iCategoryId, 'sys_site_icon_apple', '', '0', 'digit', '', '', '', 17),
  314. (@iCategoryId, 'sys_site_icon_android', '', '0', 'digit', '', '', '', 18),
  315. (@iCategoryId, 'sys_site_icon_android_splash', '', '0', 'digit', '', '', '', 19),
  316. (@iCategoryId, 'sys_site_logo', '', '0', 'digit', '', '', '', 20),
  317. (@iCategoryId, 'sys_site_logo_alt', '_adm_dsg_txt_alt_text', '0', 'text', '', '', '', 21),
  318. (@iCategoryId, 'sys_site_logo_aspect_ratio', '_adm_stg_cpt_option_sys_site_logo_aspect_ratio', '', 'digit', '', '', '', 22),
  319. -- (@iCategoryId, 'sys_site_logo_width', '_adm_stg_cpt_option_sys_site_logo_width', '240', 'digit', '', '', '', 23),
  320. -- (@iCategoryId, 'sys_site_logo_height', '_adm_stg_cpt_option_sys_site_logo_height', '48', 'digit', '', '', '', 24),
  321. (@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),
  322. (@iCategoryId, 'sys_site_splash_enabled', '', '', 'checkbox', '', '', '', 26),
  323. (@iCategoryId, 'sys_site_cover_common', '', '0', 'digit', '', '', '', 27),
  324. (@iCategoryId, 'sys_unit_cover_profile', '', '0', 'digit', '', '', '', 28),
  325. (@iCategoryId, 'sys_site_cover_disabled', '', '', 'checkbox', '', '', '', 29);
  326. --
  327. -- CATEGORY (HIDDEN): Languages
  328. --
  329. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'languages', '_adm_stg_cpt_category_languages', 1, 2);
  330. SET @iCategoryId = LAST_INSERT_ID();
  331. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  332. (@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),
  333. (@iCategoryId, 'lang_subst_from_en', '_adm_stg_cpt_option_lang_subst_from_en', 'on', 'checkbox', '', '', '', 2),
  334. (@iCategoryId, 'sys_format_date', '_adm_stg_cpt_option_sys_format_date', 'D MMM YYYY', 'digit', '', '', '', 3),
  335. (@iCategoryId, 'sys_format_time', '_adm_stg_cpt_option_sys_format_time', 'HH:mm', 'digit', '', '', '', 4),
  336. (@iCategoryId, 'sys_format_datetime', '_adm_stg_cpt_option_sys_format_datetime', 'D MMM YYYY h:mm:ss a', 'digit', '', '', '', 5),
  337. (@iCategoryId, 'sys_format_timeago', '_adm_stg_cpt_option_sys_format_timeago', 432000, 'digit', '', '', '', 6),
  338. (@iCategoryId, 'sys_format_input_24h', '_adm_stg_cpt_option_sys_format_input_24h', 'on', 'checkbox', '', '', '', 24);
  339. --
  340. -- CATEGORY (HIDDEN): Templates
  341. --
  342. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'templates', '_adm_stg_cpt_category_templates', 1, 3);
  343. SET @iCategoryId = LAST_INSERT_ID();
  344. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  345. (@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),
  346. (@iCategoryId, 'sys_pt_default_visitor', '_adm_stg_cpt_option_sys_pt_default_visitor', '3', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:14:"get_page_types";s:5:"class";s:21:"TemplTemplateServices";}', '', '', 10),
  347. (@iCategoryId, 'sys_pt_default_member', '_adm_stg_cpt_option_sys_pt_default_member', '3', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:14:"get_page_types";s:5:"class";s:21:"TemplTemplateServices";}', '', '', 11);
  348. --
  349. -- CATEGORY: Cache
  350. --
  351. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'cache', '_adm_stg_cpt_category_cache', 0, 4);
  352. SET @iCategoryId = LAST_INSERT_ID();
  353. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  354. (@iCategoryId, 'sys_db_cache_enable', '_adm_stg_cpt_option_sys_db_cache_enable', 'on', 'checkbox', '', '', '', 10),
  355. (@iCategoryId, 'sys_db_cache_engine', '_adm_stg_cpt_option_sys_db_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 11),
  356. (@iCategoryId, 'sys_cache_memcache_host', '_adm_stg_cpt_option_sys_cache_memcache_host', '', 'digit', '', '', '', 20),
  357. (@iCategoryId, 'sys_cache_memcache_port', '_adm_stg_cpt_option_sys_cache_memcache_port', '11211', 'digit', '', '', '', 21),
  358. (@iCategoryId, 'sys_page_cache_enable', '_adm_stg_cpt_option_sys_page_cache_enable', 'on', 'checkbox', '', '', '', 30),
  359. (@iCategoryId, 'sys_page_cache_engine', '_adm_stg_cpt_option_sys_page_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 31),
  360. (@iCategoryId, 'sys_pb_cache_enable', '_adm_stg_cpt_option_sys_pb_cache_enable', 'on', 'checkbox', '', '', '', 40),
  361. (@iCategoryId, 'sys_pb_cache_engine', '_adm_stg_cpt_option_sys_pb_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 41),
  362. (@iCategoryId, 'sys_template_cache_enable', '_adm_stg_cpt_option_sys_template_cache_enable', 'on', 'checkbox', '', '', '', 50),
  363. (@iCategoryId, 'sys_template_cache_engine', '_adm_stg_cpt_option_sys_template_cache_engine', 'FileHtml', 'select', 'FileHtml,Memcache,APC,XCache', '', '', 51),
  364. (@iCategoryId, 'sys_template_cache_css_enable', '_adm_stg_cpt_option_sys_template_cache_css_enable', 'on', 'checkbox', '', '', '', 55),
  365. (@iCategoryId, 'sys_template_cache_js_enable', '_adm_stg_cpt_option_sys_template_cache_js_enable', 'on', 'checkbox', '', '', '', 56),
  366. (@iCategoryId, 'sys_template_cache_minify_css_enable', '_adm_stg_cpt_option_sys_template_cache_minify_css_enable', 'on', 'checkbox', '', '', '', 57),
  367. (@iCategoryId, 'sys_template_cache_minify_js_enable', '_adm_stg_cpt_option_sys_template_cache_minify_js_enable', 'on', 'checkbox', '', '', '', 58),
  368. (@iCategoryId, 'sys_template_cache_compress_enable', '_adm_stg_cpt_option_sys_template_cache_compress_enable', 'on', 'checkbox', '', '', '', 59);
  369. --
  370. -- CATEGORY: General
  371. --
  372. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'general', '_adm_stg_cpt_category_general', 0, 6);
  373. SET @iCategoryId = LAST_INSERT_ID();
  374. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  375. (@iCategoryId, 'sys_oauth_key', '_adm_stg_cpt_option_sys_oauth_key', '', 'digit', '', '', '', 20),
  376. (@iCategoryId, 'sys_oauth_secret', '_adm_stg_cpt_option_sys_oauth_secret', '', 'digit', '', '', '', 21),
  377. (@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),
  378. (@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),
  379. (@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),
  380. (@iCategoryId, 'client_image_resize_width', '_adm_stg_cpt_option_client_image_resize_width', '0', 'digit', '', '', '', 42),
  381. (@iCategoryId, 'client_image_resize_height', '_adm_stg_cpt_option_client_image_resize_height', '0', 'digit', '', '', '', 43),
  382. (@iCategoryId, 'useLikeOperator', '_adm_stg_cpt_option_use_like_operator', 'on', 'checkbox', '', '', '', 45),
  383. (@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),
  384. (@iCategoryId, 'sys_embedly_api_key', '_adm_stg_cpt_option_sys_embedly_api_key', '', 'digit', '', '', '', 80),
  385. (@iCategoryId, 'sys_iframely_api_key', '_adm_stg_cpt_option_sys_iframely_api_key', '', 'digit', '', '', '', 90);
  386. --
  387. -- CATEGORY: Permalinks
  388. --
  389. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'permalinks', '_adm_stg_cpt_category_permalinks', 0, 9);
  390. SET @iCategoryId = LAST_INSERT_ID();
  391. INSERT INTO `sys_options` (`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  392. (@iCategoryId, 'permalinks_pages', '_adm_stg_cpt_option_permalinks_pages', 'on', 'checkbox', '', '', '', 1),
  393. (@iCategoryId, 'permalinks_modules', '_adm_stg_cpt_option_permalinks_modules', 'on', 'checkbox', '', '', '', 2),
  394. (@iCategoryId, 'permalinks_storage', '_adm_stg_cpt_option_permalinks_storage', 'on', 'checkbox', '', '', '', 3),
  395. (@iCategoryId, 'permalinks_seo_links', '_adm_stg_cpt_option_permalinks_seo_links', 'on', 'checkbox', '', '', '', 10),
  396. (@iCategoryId, 'permalinks_seo_links_redirects', '_adm_stg_cpt_option_permalinks_seo_links_redirects', 'on', 'checkbox', '', '', '', 12);
  397. --
  398. -- CATEGORY: Security
  399. --
  400. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'security', '_adm_stg_cpt_category_security', 0, 11);
  401. SET @iCategoryId = LAST_INSERT_ID();
  402. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  403. (@iCategoryId, 'sys_security_form_token_enable', '_adm_stg_cpt_option_sys_security_form_token_enable', 'on', 'checkbox', '', '', '', 10),
  404. (@iCategoryId, 'sys_security_form_token_lifetime', '_adm_stg_cpt_option_sys_security_form_token_lifetime', '86400', 'digit', '', '', '', 11),
  405. (@iCategoryId, 'sys_captcha_default', '_adm_stg_cpt_option_sys_captcha_default', 'sys_recaptcha_new', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:27:"get_options_captcha_default";s:5:"class";s:13:"TemplServices";}', '', '', 19),
  406. (@iCategoryId, 'sys_recaptcha_key_public', '_adm_stg_cpt_option_sys_recaptcha_key_public', '', 'digit', '', '', '', 20),
  407. (@iCategoryId, 'sys_recaptcha_key_private', '_adm_stg_cpt_option_sys_recaptcha_key_private', '', 'digit', '', '', '', 21),
  408. (@iCategoryId, 'sys_add_nofollow', '_adm_stg_cpt_option_sys_add_nofollow', 'on', 'checkbox', '', '', '', 30),
  409. (@iCategoryId, 'sys_confirmation_before_redirect', '_adm_stg_cpt_option_sys_confirmation_before_redirect', 'on', 'checkbox', '', '', '', 31),
  410. (@iCategoryId, 'sys_security_block_content_after_n_reports', '_adm_stg_cpt_option_sys_security_block_content_after_n_reports', '0', 'digit', '', '', '', 35),
  411. (@iCategoryId, 'sys_cf_enable', '_adm_stg_cpt_option_sys_cf_enable', '', 'checkbox', '', '', '', 40),
  412. (@iCategoryId, 'sys_cf_enable_comments', '_adm_stg_cpt_option_sys_cf_enable_comments', '', 'checkbox', '', '', '', 41),
  413. (@iCategoryId, 'sys_cf_prohibited', '_adm_stg_cpt_option_sys_cf_prohibited', '', 'list', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:25:"get_options_cf_prohibited";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', '', '', 42),
  414. (@iCategoryId, 'sys_cf_unauthenticated', '_adm_stg_cpt_option_sys_cf_unauthenticated', '1', 'list', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:30:"get_options_cf_unauthenticated";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', '', '', 43),
  415. (@iCategoryId, 'sys_lock_from_unauthenticated', '_adm_stg_cpt_option_sys_lock_from_unauthenticated', '', 'checkbox', '', '', '', 50),
  416. (@iCategoryId, 'sys_lock_from_unauthenticated_exceptions', '_adm_stg_cpt_option_sys_lock_from_unauthenticated_exceptions', 'login,forgot-password,create-account,confirm-email,terms,privacy,contact,about,home', 'text', '', '', '', 52);
  417. --
  418. -- CATEGORY: Site Settings
  419. --
  420. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'site_settings','_adm_stg_cpt_category_site_settings', 0, 12);
  421. SET @iCategoryId = LAST_INSERT_ID();
  422. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  423. (@iCategoryId, 'site_title', '_adm_stg_cpt_option_site_title', 'Community', 'digit', '', '', '', 1),
  424. (@iCategoryId, 'site_email', '_adm_stg_cpt_option_site_email', 'admin@example.com', 'digit', '', '', '', 2),
  425. (@iCategoryId, 'site_email_notify', '_adm_stg_cpt_option_site_email_notify', 'admin@example.com', 'digit', '', '', '', 3),
  426. (@iCategoryId, 'site_tour_home', '_adm_stg_cpt_option_site_tour_home', 'on', 'checkbox', '', '', '', 6),
  427. (@iCategoryId, 'site_tour_studio', '_adm_stg_cpt_option_site_tour_studio', 'on', 'checkbox', '', '', '', 7),
  428. (@iCategoryId, 'sys_autoupdate', '_adm_stg_cpt_option_sys_autoupdate', 'on', 'checkbox', '', '', '', 10),
  429. (@iCategoryId, 'sys_autoupdate_force_modified_files', '_adm_stg_cpt_option_sys_autoupdate_force_modified_files', '', 'checkbox', '', '', '', 12),
  430. (@iCategoryId, 'smart_app_banner', '_adm_stg_cpt_option_smart_app_banner', '', 'checkbox', '', '', '', 14),
  431. (@iCategoryId, 'smart_app_banner_ios_app_id', '_adm_stg_cpt_option_smart_app_banner_ios_app_id', '', 'digit', '', '', '', 15),
  432. (@iCategoryId, 'sys_per_page_search_keyword_single', '_adm_stg_cpt_option_sys_per_page_search_keyword_single', '24', 'digit', '', '', '', 20),
  433. (@iCategoryId, 'sys_per_page_search_keyword_plural', '_adm_stg_cpt_option_sys_per_page_search_keyword_plural', '3', 'digit', '', '', '', 21),
  434. (@iCategoryId, 'sys_live_search_limit', '_adm_stg_cpt_option_sys_live_search_limit', '5', 'digit', '', '', '', 22),
  435. (@iCategoryId, 'sys_profiles_search_limit', '_adm_stg_cpt_option_sys_profiles_search_limit', '20', 'digit', '', '', '', 23),
  436. (@iCategoryId, 'sys_metatags_hashtags_only', '_adm_stg_cpt_option_sys_metatags_hashtags_only', '', 'checkbox', '', '', '', 30),
  437. (@iCategoryId, 'sys_metatags_hashtags_max', '_adm_stg_cpt_option_sys_metatags_hashtags_max', '9', 'digit', '', '', '', 31),
  438. (@iCategoryId, 'sys_metatags_mentions_max', '_adm_stg_cpt_option_sys_metatags_mentions_max', '9', 'digit', '', '', '', 32),
  439. (@iCategoryId, 'sys_attach_links_max', '_adm_stg_cpt_option_sys_attach_links_max', '0', 'digit', '', '', '', 35),
  440. (@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),
  441. (@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),
  442. (@iCategoryId, 'sys_treat_cxt_in_cxt_as_cnt', '_adm_stg_cpt_option_sys_treat_cxt_in_cxt_as_cnt', 'on', 'checkbox', '', '', '', 51),
  443. (@iCategoryId, 'sys_vote_reactions_quick_mode', '_adm_stg_cpt_option_sys_vote_reactions_quick_mode', 'on', 'checkbox', '', '', '', 60),
  444. (@iCategoryId, 'sys_cmts_enable_auto_approve', '_adm_stg_cpt_option_sys_cmts_enable_auto_approve', 'on', 'checkbox', '', '', '', 70),
  445. (@iCategoryId, 'sys_create_post_form_preloading_list', '_adm_stg_cpt_option_sys_create_post_form_preloading_list', '', 'list', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:44:"get_options_create_post_form_preloading_list";s:5:"class";s:13:"TemplServices";}', '', '', 80);
  446. --
  447. -- CATEGORY: Storage
  448. --
  449. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'storage', '_adm_stg_cpt_category_storage', 0, 13);
  450. SET @iCategoryId = LAST_INSERT_ID();
  451. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  452. (@iCategoryId, 'sys_storage_default', '_adm_stg_cpt_option_sys_storage_default', 'Local', 'select', 'Local,S3,S3v4,S3v4alt', '', '', 1),
  453. (@iCategoryId, 'sys_storage_s3_access_key', '_adm_stg_cpt_option_sys_storage_s3_access_key', '', 'digit', '', '', '', 2),
  454. (@iCategoryId, 'sys_storage_s3_secret_key', '_adm_stg_cpt_option_sys_storage_s3_secret_key', '', 'digit', '', '', '', 3),
  455. (@iCategoryId, 'sys_storage_s3_bucket', '_adm_stg_cpt_option_sys_storage_s3_bucket', '', 'digit', '', '', '', 4),
  456. (@iCategoryId, 'sys_storage_s3_domain', '_adm_stg_cpt_option_sys_storage_s3_domain', '', 'digit', '', '', '', 5),
  457. (@iCategoryId, 'sys_storage_s3_endpoint', '_adm_stg_cpt_option_sys_storage_s3_endpoint', '', 'digit', '', '', '', 6),
  458. (@iCategoryId, 'sys_storage_s3_sig_ver', '_adm_stg_cpt_option_sys_storage_s3_sig_ver', 'v2', 'select', 'v2,v4', '', '', 7),
  459. (@iCategoryId, 'sys_storage_s3_region', '_adm_stg_cpt_option_sys_storage_s3_region', '', 'digit', '', '', '', 8);
  460. --
  461. -- CATEGORY: Account
  462. --
  463. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'account', '_adm_stg_cpt_category_account', 0, 14);
  464. SET @iCategoryId = LAST_INSERT_ID();
  465. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  466. (@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),
  467. (@iCategoryId, 'sys_account_autoapproval', '_adm_stg_cpt_option_sys_account_autoapproval', 'on', 'checkbox', '', '', '', 10),
  468. (@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),
  469. (@iCategoryId, 'sys_account_activation_2fa_enable', '_adm_stg_cpt_option_sys_account_2fa_enable', '', 'checkbox', '', '', '', 13),
  470. (@iCategoryId, 'sys_account_activation_2fa_lifetime', '_adm_stg_cpt_option_sys_account_2fa_lifetime', '0', 'digit', '', '', '', 14),
  471. (@iCategoryId, 'sys_account_auto_profile_creation', '_adm_stg_cpt_option_sys_account_auto_profile_creation', 'on', 'checkbox', '', '', '', 15),
  472. (@iCategoryId, 'sys_account_hide_unconfirmed_accounts', '_adm_stg_cpt_option_sys_account_hide_unconfirmed_accounts', 'on', 'checkbox', '', '', '', 17),
  473. (@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),
  474. (@iCategoryId, 'sys_account_limit_profiles_number', '_adm_stg_cpt_option_sys_account_limit_profiles_number', '0', 'digit', '', '', '', 21),
  475. (@iCategoryId, 'sys_account_limit_incorrect_login_attempts', '_adm_stg_cpt_option_sys_account_limit_incorrect_login_attempts', '6', 'digit', '', '', '', 22),
  476. (@iCategoryId, 'sys_account_reset_password_key_lifetime', '_adm_stg_cpt_option_sys_account_reset_password_key_lifetime', '259200', 'digit', '', '', '', 30),
  477. (@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),
  478. (@iCategoryId, 'sys_account_reset_password_redirect_custom', '_adm_stg_cpt_option_sys_account_reset_password_redirect_custom', '', 'digit', '', '', '', 32),
  479. (@iCategoryId, 'sys_account_disable_login_form', '_adm_stg_cpt_option_sys_account_disable_login_form', '', 'checkbox', '', '', '', 40),
  480. (@iCategoryId, 'sys_account_disable_join_form', '_adm_stg_cpt_option_sys_account_disable_join_form', '', 'checkbox', '', '', '', 42),
  481. (@iCategoryId, 'sys_account_allow_plus_in_email', '_adm_stg_cpt_option_sys_allow_plus_in_email', 'on', 'checkbox', '', '', '', 50),
  482. (@iCategoryId, 'sys_account_accounts_pruning', '_adm_stg_cpt_option_sys_accounts_pruning', 'no', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:28:"get_options_pruning_interval";s:5:"class";s:18:"BaseServiceAccount";}', '', '', 55),
  483. (@iCategoryId, 'sys_account_accounts_pruning_interval', '_adm_stg_cpt_option_sys_accounts_pruning_interval', '0', 'digit', '', '', '', 56),
  484. (@iCategoryId, 'sys_account_accounts_password_log_count', '_adm_stg_cpt_option_sys_accounts_password_log_count', '0', 'digit', '', '', '', 57),
  485. (@iCategoryId, 'sys_account_accounts_force_password_change_after_expiration', '_adm_stg_cpt_option_sys_accounts_force_password_change_after_expiration', '', 'checkbox', '', '', '', 58),
  486. (@iCategoryId, 'sys_account_switch_to_profile_redirect', '_adm_stg_cpt_option_sys_account_switch_to_profile_redirect', 'back', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:38:"get_options_switch_to_profile_redirect";s:5:"class";s:18:"BaseServiceAccount";}', '', '', 60),
  487. (@iCategoryId, 'sys_account_switch_to_profile_redirect_custom', '_adm_stg_cpt_option_sys_account_switch_to_profile_redirect_custom', '', 'digit', '', '', '', 61);
  488. --
  489. -- CATEGORY: ACL
  490. --
  491. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'acl', '_adm_stg_cpt_category_acl', 0, 15);
  492. SET @iCategoryId = LAST_INSERT_ID();
  493. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  494. (@iCategoryId, 'sys_acl_expire_notification_days', '_adm_stg_cpt_option_sys_acl_expire_notification_days', '1', 'digit', '', '', '', 1),
  495. (@iCategoryId, 'sys_acl_expire_notify_once', '_adm_stg_cpt_option_sys_acl_expire_notify_once', 'on', 'checkbox', '', '', '', 2);
  496. --
  497. -- CATEGORY: Notifications
  498. --
  499. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'notifications', '_adm_stg_cpt_category_notifications', 0, 16);
  500. SET @iCategoryId = LAST_INSERT_ID();
  501. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  502. (@iCategoryId, 'enable_notification_pruning', '_adm_stg_cpt_option_enable_notification_pruning', '', 'checkbox', '', '', '', 1),
  503. (@iCategoryId, 'enable_notification_account', '_adm_stg_cpt_option_enable_notification_account', 'on', 'checkbox', '', '', '', 2),
  504. (@iCategoryId, 'sys_eq_send_per_start', '_adm_stg_cpt_option_sys_eq_send_per_start', '500', 'digit', '', '', '', 10),
  505. (@iCategoryId, 'sys_eq_send_per_start_to_recipient', '_adm_stg_cpt_option_sys_eq_send_per_start_to_recipient', '2', 'digit', '', '', '', 11);
  506. --
  507. -- CATEGORY: Push Notifications
  508. --
  509. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'notifications_push', '_adm_stg_cpt_category_notifications_push', 0, 17);
  510. SET @iCategoryId = LAST_INSERT_ID();
  511. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  512. (@iCategoryId, 'sys_push_app_id', '_adm_stg_cpt_option_sys_push_app_id', '', 'digit', '', '', '', 1),
  513. (@iCategoryId, 'sys_push_rest_api', '_adm_stg_cpt_option_sys_push_rest_api', '', 'digit', '', '', '', 2),
  514. (@iCategoryId, 'sys_push_short_name', '_adm_stg_cpt_option_sys_push_short_name', '', 'digit', '', '', '', 3),
  515. (@iCategoryId, 'sys_push_safari_id', '_adm_stg_cpt_option_sys_push_safari_id', '', 'digit', '', '', '', 4),
  516. (@iCategoryId, 'sys_push_queue_send_per_start', '_adm_stg_cpt_option_sys_push_queue_send_per_start', '500', 'digit', '', '', '', 10),
  517. (@iCategoryId, 'sys_push_queue_send_per_start_to_recipient', '_adm_stg_cpt_option_sys_push_queue_send_per_start_to_recipient', '2', 'digit', '', '', '', 11);
  518. --
  519. -- CATEGORY: Twilio gate settings
  520. --
  521. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'twilio_gate', '_adm_stg_cpt_category_twilio_gate', 0, 18);
  522. SET @iCategoryId = LAST_INSERT_ID();
  523. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  524. (@iCategoryId, 'sys_twilio_gate_sid', '_adm_stg_cpt_option_sys_twilio_gate_sid', '', 'digit', '', '', '', 1),
  525. (@iCategoryId, 'sys_twilio_gate_token', '_adm_stg_cpt_option_sys_twilio_gate_token', '', 'digit', '', '', '', 2),
  526. (@iCategoryId, 'sys_twilio_gate_from_number', '_adm_stg_cpt_option_sys_twilio_gate_from_number', '', 'digit', '', '', '', 3);
  527. --
  528. -- CATEGORY: Location
  529. --
  530. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'location', '_adm_stg_cpt_category_location', 0, 20);
  531. SET @iCategoryId = LAST_INSERT_ID();
  532. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  533. (@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),
  534. (@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),
  535. (@iCategoryId, 'sys_location_map_zoom_default', '_adm_stg_cpt_option_sys_location_map_zoom_default', '7', 'digit', '', '', '', 20),
  536. (@iCategoryId, 'sys_maps_api_key', '_adm_stg_cpt_option_sys_maps_api_key', '', 'digit', '', '', '', 30),
  537. (@iCategoryId, 'sys_nominatim_server', '_adm_stg_cpt_option_sys_nominatim_server', 'https://nominatim.openstreetmap.org', 'digit', '', '', '', 40),
  538. (@iCategoryId, 'sys_nominatim_email', '_adm_stg_cpt_option_sys_nominatim_email', '', 'digit', '', '', '', 42),
  539. (@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),
  540. (@iCategoryId, 'sys_location_normalize_names', '_adm_stg_cpt_option_sys_location_normalize_names', '', 'checkbox', '', '', '', 60);
  541. --
  542. -- CATEGORY: Social Settings
  543. --
  544. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'social_settings','_adm_stg_cpt_category_social_settings', 0, 21);
  545. SET @iCategoryId = LAST_INSERT_ID();
  546. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  547. (@iCategoryId, 'site_login_social_compact', '_adm_stg_cpt_option_site_login_social_compact', 'on', 'checkbox', '', '', '', 1),
  548. (@iCategoryId, 'sys_a2a_enable', '_adm_stg_cpt_option_sys_a2a_enable', '', 'checkbox', '', '', '', 10),
  549. (@iCategoryId, 'sys_a2a_code', '_adm_stg_cpt_option_sys_a2a_code', '', 'code', '', '', '', 11);
  550. --
  551. -- CATEGORY: Sockets
  552. --
  553. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'sockets', '_adm_stg_cpt_category_sockets', 0, 22);
  554. SET @iCategoryId = LAST_INSERT_ID();
  555. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  556. (@iCategoryId, 'sys_sockets_type', '_adm_stg_cpt_option_sys_sockets_type', 'sys_soketi', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:33:"get_options_sockets_field_default";s:5:"class";s:13:"TemplServices";}', '', '', 1),
  557. (@iCategoryId, 'sys_sockets_url', '_adm_stg_cpt_option_sys_sockets_url', '', 'digit', '', '', '', 2),
  558. (@iCategoryId, 'sys_sockets_app_id', '_adm_stg_cpt_option_sys_sockets_app_id', '', 'digit', '', '', '', 3),
  559. (@iCategoryId, 'sys_sockets_key', '_adm_stg_cpt_option_sys_sockets_key', '', 'digit', '', '', '', 4),
  560. (@iCategoryId, 'sys_sockets_secret', '_adm_stg_cpt_option_sys_sockets_secret', '', 'digit', '', '', '', 5);
  561. --
  562. -- CATEGORY (HIDDEN): Audit
  563. --
  564. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'audit', '_adm_stg_cpt_category_audit', 1, 2);
  565. SET @iCategoryId = LAST_INSERT_ID();
  566. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  567. (@iCategoryId, 'sys_audit_enable', '_adm_stg_cpt_option_sys_audit_enable', '', 'checkbox', '', '', '', 1),
  568. (@iCategoryId, 'sys_audit_max_records', '_adm_stg_cpt_option_sys_audit_max_records', '10000', 'digit', '', '', '', 2),
  569. (@iCategoryId, 'sys_audit_days_before_expire', '_adm_stg_cpt_option_sys_audit_days_before_expire', '365', 'digit', '', '', '', 3),
  570. (@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);
  571. --
  572. -- CATEGORY (HIDDEN): API (general)
  573. --
  574. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'api_general', '_adm_stg_cpt_category_api_general', 1, 2);
  575. SET @iCategoryId = LAST_INSERT_ID();
  576. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  577. (@iCategoryId, 'sys_api_enable', '_adm_stg_cpt_option_sys_api_enable', '', 'checkbox', '', '', '', 1),
  578. (@iCategoryId, 'sys_api_access_by_origin', '_adm_stg_cpt_option_sys_api_access_by_origin', '', 'checkbox', '', '', '', 10),
  579. (@iCategoryId, 'sys_api_access_by_key', '_adm_stg_cpt_option_sys_api_access_by_key', '', 'checkbox', '', '', '', 20),
  580. (@iCategoryId, 'sys_api_access_unsafe_services', '_adm_stg_cpt_option_sys_api_access_unsafe_services', '', 'checkbox', '', '', '', 30),
  581. (@iCategoryId, 'sys_api_cookie_path', '_adm_stg_cpt_option_sys_api_cookie_path', '/', 'digit', '', '', '', 40),
  582. (@iCategoryId, 'sys_api_cookie_secure', '_adm_stg_cpt_option_sys_api_cookie_secure', '', 'checkbox', '', '', '', 42),
  583. (@iCategoryId, 'sys_api_cookie_samesite', '_adm_stg_cpt_option_sys_api_cookie_samesite', 'Lax', 'select', 'None,Lax,Strict', '', '', 44),
  584. (@iCategoryId, 'sys_api_url_root_email', '_adm_stg_cpt_option_sys_api_url_root_email', '', 'digit', '', '', '', 50),
  585. (@iCategoryId, 'sys_api_url_root_push', '_adm_stg_cpt_option_sys_api_url_root_push', '', 'digit', '', '', '', 51);
  586. --
  587. -- CATEGORY (HIDDEN): API (layout)
  588. --
  589. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'api_layout', '_adm_stg_cpt_category_api_layout', 1, 2);
  590. SET @iCategoryId = LAST_INSERT_ID();
  591. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  592. (@iCategoryId, 'sys_api_menu_top', '_adm_stg_cpt_option_sys_api_menu_top', '', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:24:"get_options_api_menu_top";s:5:"class";s:13:"TemplServices";}', '', '', 1),
  593. (@iCategoryId, 'sys_api_comments_flat', '_adm_stg_cpt_option_sys_api_comments_flat', '', 'checkbox', '', '', '', 10),
  594. (@iCategoryId, 'sys_api_search_sections', '_adm_stg_cpt_option_sys_api_search_sections', 'bx_posts,bx_persons,bx_groups', 'digit', '', '', '', 20),
  595. (@iCategoryId, 'sys_api_extended_units', '_adm_stg_cpt_option_sys_api_extended_units', '', 'checkbox', '', '', '', 30),
  596. (@iCategoryId, 'sys_api_conn_in_prof_units', '_adm_stg_cpt_option_sys_api_conn_in_prof_units', '', 'checkbox', '', '', '', 31);
  597. --
  598. -- CATEGORY (HIDDEN): API (config)
  599. --
  600. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'api_config', '_adm_stg_cpt_category_api_config', 1, 3);
  601. SET @iCategoryId = LAST_INSERT_ID();
  602. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  603. (@iCategoryId, 'sys_api_config', '_adm_stg_cpt_option_sys_api_config', '', 'text', '', '', '', 1);
  604. --
  605. -- CATEGORY (HIDDEN): PWA Manifest
  606. --
  607. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'pwa_manifest', '_adm_stg_cpt_category_pwa_manifest', 1, 2);
  608. SET @iCategoryId = LAST_INSERT_ID();
  609. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  610. (@iCategoryId, 'sys_pwa_manifest_name', '_adm_stg_cpt_option_sys_pwa_manifest_name', '', 'digit', '', '', '', 1),
  611. (@iCategoryId, 'sys_pwa_manifest_short_name', '_adm_stg_cpt_option_sys_pwa_manifest_short_name', '', 'digit', '', '', '', 2),
  612. (@iCategoryId, 'sys_pwa_manifest_description', '_adm_stg_cpt_option_sys_pwa_manifest_description', '', 'text', '', '', '', 3),
  613. (@iCategoryId, 'sys_pwa_manifest_background_color', '_adm_stg_cpt_option_sys_pwa_manifest_background_color', '', 'digit', '', '', '', 4),
  614. (@iCategoryId, 'sys_pwa_manifest_theme_color', '_adm_stg_cpt_option_sys_pwa_manifest_theme_color', '', 'digit', '', '', '', 5);
  615. --
  616. -- CATEGORY (HIDDEN): PWA Service Worker
  617. --
  618. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'pwa_sw', '_adm_stg_cpt_category_pwa_sw', 1, 2);
  619. SET @iCategoryId = LAST_INSERT_ID();
  620. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  621. (@iCategoryId, 'sys_pwa_sw_enable', '_adm_stg_cpt_option_sys_pwa_sw_enable', '', 'checkbox', '', '', '', 1),
  622. (@iCategoryId, 'sys_pwa_sw_cache', '_adm_stg_cpt_option_sys_pwa_sw_cache', '', 'text', '', '', '', 2),
  623. (@iCategoryId, 'sys_pwa_sw_offline', '_adm_stg_cpt_option_sys_pwa_sw_offline', '', 'digit', '', '', '', 3);
  624. --
  625. -- Table structure for table `sys_options_mixes`
  626. --
  627. CREATE TABLE `sys_options_mixes` (
  628. `id` int(11) unsigned NOT NULL auto_increment,
  629. `type` varchar(64) NOT NULL default '',
  630. `category` varchar(64) NOT NULL default '',
  631. `name` varchar(64) NOT NULL default '',
  632. `title` varchar(64) NOT NULL default '',
  633. `dark` tinyint(1) NOT NULL default '0',
  634. `active` tinyint(1) NOT NULL default '0',
  635. `published` tinyint(1) NOT NULL default '0',
  636. `editable` tinyint(1) NOT NULL default '1',
  637. PRIMARY KEY (`id`),
  638. UNIQUE KEY `name`(`name`)
  639. );
  640. --
  641. -- Table structure for table `sys_options_mixes2options`
  642. --
  643. CREATE TABLE `sys_options_mixes2options` (
  644. `id` int(11) NOT NULL AUTO_INCREMENT,
  645. `option` varchar(64) NOT NULL default '',
  646. `mix_id` int(11) unsigned NOT NULL default '0',
  647. `value` mediumtext NOT NULL,
  648. PRIMARY KEY (`id`),
  649. UNIQUE KEY `value`(`option`, `mix_id`)
  650. );
  651. -- --------------------------------------------------------
  652. CREATE TABLE `sys_localization_categories` (
  653. `ID` int(6) unsigned NOT NULL auto_increment,
  654. `Name` varchar(255) NOT NULL default '',
  655. PRIMARY KEY (`ID`),
  656. UNIQUE KEY `Name` (`Name`(191))
  657. );
  658. INSERT INTO `sys_localization_categories` VALUES
  659. (1, 'System'),
  660. (2, 'Custom');
  661. CREATE TABLE `sys_localization_keys` (
  662. `ID` int(10) unsigned NOT NULL auto_increment,
  663. `IDCategory` int(6) unsigned NOT NULL default '0',
  664. `Key` varchar(255) character set utf8 collate utf8_bin NOT NULL default '',
  665. PRIMARY KEY (`ID`),
  666. UNIQUE KEY `Key` (`Key`(191)),
  667. FULLTEXT KEY `KeyFilter` (`Key`(191))
  668. );
  669. CREATE TABLE `sys_localization_languages` (
  670. `ID` int(10) unsigned NOT NULL auto_increment,
  671. `Name` varchar(5) NOT NULL default '',
  672. `Flag` varchar(2) NOT NULL default '',
  673. `Title` varchar(255) NOT NULL default '',
  674. `Direction` enum('LTR','RTL') NOT NULL DEFAULT 'LTR',
  675. `LanguageCountry` varchar(8) NOT NULL,
  676. `Enabled` tinyint(1) unsigned NOT NULL default '0',
  677. PRIMARY KEY (`ID`),
  678. UNIQUE KEY `Name` (`Name`)
  679. );
  680. CREATE TABLE `sys_localization_strings` (
  681. `IDKey` int(10) unsigned NOT NULL default '0',
  682. `IDLanguage` int(10) unsigned NOT NULL default '0',
  683. `String` mediumtext NOT NULL,
  684. PRIMARY KEY (`IDKey`,`IDLanguage`),
  685. FULLTEXT KEY `String` (`String`)
  686. );
  687. -- --------------------------------------------------------
  688. CREATE TABLE `sys_acl_actions` (
  689. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  690. `Module` varchar(32) NOT NULL,
  691. `Name` varchar(255) NOT NULL default '',
  692. `AdditionalParamName` varchar(80) default NULL,
  693. `Title` varchar(255) NOT NULL,
  694. `Desc` varchar(255) NOT NULL,
  695. `Countable` tinyint(4) NOT NULL DEFAULT '0',
  696. `DisabledForLevels` int(10) unsigned NOT NULL DEFAULT '3',
  697. PRIMARY KEY (`ID`),
  698. FULLTEXT KEY `ModuleAndName` (`Module`, `Name`)
  699. );
  700. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  701. ('system', 'connect', NULL, '_sys_acl_action_connect', '', 1, 3);
  702. SET @iIdActionConnect = LAST_INSERT_ID();
  703. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  704. ('system', 'vote', NULL, '_sys_acl_action_vote', '', 1, 0);
  705. SET @iIdActionVote = LAST_INSERT_ID();
  706. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  707. ('system', 'vote_view', NULL, '_sys_acl_action_vote_view', '', 1, 0);
  708. SET @iIdActionVoteView = LAST_INSERT_ID();
  709. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  710. ('system', 'vote_view_voters', NULL, '_sys_acl_action_vote_view_voters', '', 1, 0);
  711. SET @iIdActionVoteViewVoters = LAST_INSERT_ID();
  712. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  713. ('system', 'report', NULL, '_sys_acl_action_report', '', 1, 0);
  714. SET @iIdActionReport = LAST_INSERT_ID();
  715. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  716. ('system', 'report_view', NULL, '_sys_acl_action_report_view', '', 0, 0);
  717. SET @iIdActionReportView = LAST_INSERT_ID();
  718. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  719. ('system', 'favorite', NULL, '_sys_acl_action_favorite', '', 1, 0);
  720. SET @iIdActionFavorite = LAST_INSERT_ID();
  721. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  722. ('system', 'favorite_view', NULL, '_sys_acl_action_favorite_view', '', 0, 0);
  723. SET @iIdActionFavoriteView = LAST_INSERT_ID();
  724. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  725. ('system', 'feature', NULL, '_sys_acl_action_feature', '', 0, 0);
  726. SET @iIdActionFeature = LAST_INSERT_ID();
  727. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  728. ('system', 'view_view', NULL, '_sys_acl_action_view_view', '', 0, 0);
  729. SET @iIdActionViewView = LAST_INSERT_ID();
  730. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  731. ('system', 'view_view_viewers_own', NULL, '_sys_acl_action_view_view_viewers_own', '', 0, 0);
  732. SET @iIdActionViewViewViewers = LAST_INSERT_ID();
  733. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  734. ('system', 'comments post', NULL, '_sys_acl_action_comments_post', '', 1, 0);
  735. SET @iIdActionCmtPost = LAST_INSERT_ID();
  736. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  737. ('system', 'comments edit own', NULL, '_sys_acl_action_comments_edit_own', '', 0, 3);
  738. SET @iIdActionCmtEditOwn = LAST_INSERT_ID();
  739. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  740. ('system', 'comments remove own', NULL, '_sys_acl_action_comments_remove_own', '', 1, 3);
  741. SET @iIdActionCmtRemoveOwn = LAST_INSERT_ID();
  742. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  743. ('system', 'comments edit all', NULL, '_sys_acl_action_comments_edit_all', '', 1, 3);
  744. SET @iIdActionCmtEditAll = LAST_INSERT_ID();
  745. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  746. ('system', 'comments remove all', NULL, '_sys_acl_action_comments_remove_all', '', 1, 3);
  747. SET @iIdActionCmtRemoveAll = LAST_INSERT_ID();
  748. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  749. ('system', 'comments remove in own content', NULL, '_sys_acl_action_comments_remove_in_own_content', '', 1, 3);
  750. SET @iIdActionCmtRemoveInOwnContent = LAST_INSERT_ID();
  751. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  752. ('system', 'comments remove in group context', NULL, '_sys_acl_action_comments_remove_in_group_context', '', 1, 3);
  753. SET @iIdActionCmtRemoveInGroupContext = LAST_INSERT_ID();
  754. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  755. ('system', 'comments pin', NULL, '_sys_acl_action_comments_pin', '', 1, 3);
  756. SET @iIdActionCmtPin = LAST_INSERT_ID();
  757. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  758. ('system', 'create account', NULL, '_sys_acl_action_create_account', '_sys_acl_action_create_account_desc', 0, 2147483646);
  759. SET @iIdActionAccountCreate = LAST_INSERT_ID();
  760. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  761. ('system', 'delete account', NULL, '_sys_acl_action_delete_account', '_sys_acl_action_delete_account_desc', 0, 1);
  762. SET @iIdActionAccountDelete = LAST_INSERT_ID();
  763. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  764. ('system', 'set acl level', NULL, '_sys_acl_action_set_acl_level', '_sys_acl_action_set_acl_level_desc', 0, 3);
  765. SET @iIdActionSetAclLevel = LAST_INSERT_ID();
  766. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  767. ('system', 'set badge', NULL, '_sys_acl_action_set_badge', '_sys_acl_action_set_badge_desc', 0, 3);
  768. SET @iIdActionSetBadge = LAST_INSERT_ID();
  769. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  770. ('system', 'set acl as privacy', NULL, '_sys_acl_action_set_acl_as_privacy', '_sys_acl_action_set_acl_as_privacy_desc', 0, 3);
  771. SET @iIdActionSetAclAsPrivacy = LAST_INSERT_ID();
  772. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  773. ('system', 'set form fields privacy', NULL, '_sys_acl_action_set_form_fields_privacy', '_sys_acl_action_set_form_fields_privacy_desc', 0, 3);
  774. SET @iIdActionSetFormFieldsPrivacy = LAST_INSERT_ID();
  775. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  776. ('system', 'chart view', NULL, '_sys_acl_action_chart_view', '_sys_acl_action_chart_view_desc', 0, 3);
  777. SET @iIdActionChartView = LAST_INSERT_ID();
  778. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  779. ('system', 'post links', NULL, '_sys_acl_action_post_links', '_sys_acl_action_post_links_desc', 0, 0);
  780. SET @iIdActionPostLinks = LAST_INSERT_ID();
  781. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  782. ('system', 'use macros', NULL, '_sys_acl_action_use_macros', '_sys_acl_action_use_macros_desc', 0, 0);
  783. SET @iIdActionUseMacros = LAST_INSERT_ID();
  784. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  785. ('system', 'switch to any profile', NULL, '_sys_acl_action_switch_to_any_profile', '_sys_acl_action_switch_to_any_profile_desc', 0, 0);
  786. SET @iIdActionSwitchToAnyProfile = LAST_INSERT_ID();
  787. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  788. ('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);
  789. SET @iIdActionShowMembershipLevelsInPrivacyGroups = LAST_INSERT_ID();
  790. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  791. ('system', 'show membership private info', NULL, '_sys_acl_action_show_membership_private_info', '_sys_acl_action_show_membership_private_info_desc', 0, 0);
  792. SET @iIdActionShowMembershipPrivateInfo = LAST_INSERT_ID();
  793. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  794. ('system', 'wiki add block', NULL, '_sys_acl_action_add_block', '', 0, 1);
  795. SET @iIdActionWikiAddBlock = LAST_INSERT_ID();
  796. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  797. ('system', 'wiki edit block', NULL, '_sys_acl_action_edit_block', '', 0, 0);
  798. SET @iIdActionWikiEditBlock = LAST_INSERT_ID();
  799. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  800. ('system', 'wiki translate block', NULL, '_sys_acl_action_translate_block', '', 0, 0);
  801. SET @iIdActionWikiTranslateBlock = LAST_INSERT_ID();
  802. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  803. ('system', 'wiki delete version', NULL, '_sys_acl_action_delete_version', '', 0, 1);
  804. SET @iIdActionWikiDeleteVersion = LAST_INSERT_ID();
  805. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  806. ('system', 'wiki delete block', NULL, '_sys_acl_action_delete_block', '', 0, 1);
  807. SET @iIdActionWikiDeleteBlock = LAST_INSERT_ID();
  808. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  809. ('system', 'wiki history', NULL, '_sys_acl_action_history', '', 0, 0);
  810. SET @iIdActionWikiHistory = LAST_INSERT_ID();
  811. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  812. ('system', 'wiki unsafe', NULL, '_sys_acl_action_unsafe', '', 0, 0);
  813. SET @iIdActionWikiUnsafe = LAST_INSERT_ID();
  814. CREATE TABLE `sys_acl_actions_track` (
  815. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  816. `IDMember` int(10) unsigned NOT NULL default '0',
  817. `ActionsLeft` int(10) unsigned NOT NULL DEFAULT '0',
  818. `ValidSince` datetime default NULL,
  819. PRIMARY KEY (`IDAction`,`IDMember`)
  820. );
  821. CREATE TABLE `sys_acl_matrix` (
  822. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  823. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  824. `AllowedCount` int(10) unsigned DEFAULT NULL,
  825. `AllowedPeriodLen` int(10) unsigned DEFAULT NULL,
  826. `AllowedPeriodStart` datetime default NULL,
  827. `AllowedPeriodEnd` datetime default NULL,
  828. `AdditionalParamValue` varchar(255) default NULL,
  829. PRIMARY KEY (`IDLevel`,`IDAction`)
  830. );
  831. SET @iUnauthenticated = 1;
  832. SET @iAccount = 2;
  833. SET @iStandard = 3;
  834. SET @iUnconfirmed = 4;
  835. SET @iPending = 5;
  836. SET @iSuspended = 6;
  837. SET @iModerator = 7;
  838. SET @iAdministrator = 8;
  839. SET @iPremium = 9;
  840. INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES
  841. -- connect
  842. (@iStandard, @iIdActionConnect),
  843. (@iModerator, @iIdActionConnect),
  844. (@iAdministrator, @iIdActionConnect),
  845. (@iPremium, @iIdActionConnect),
  846. -- vote
  847. (@iStandard, @iIdActionVote),
  848. (@iModerator, @iIdActionVote),
  849. (@iAdministrator, @iIdActionVote),
  850. (@iPremium, @iIdActionVote),
  851. -- vote view
  852. (@iUnauthenticated, @iIdActionVoteView),
  853. (@iAccount, @iIdActionVoteView),
  854. (@iStandard, @iIdActionVoteView),
  855. (@iUnconfirmed, @iIdActionVoteView),
  856. (@iPending, @iIdActionVoteView),
  857. (@iModerator, @iIdActionVoteView),
  858. (@iAdministrator, @iIdActionVoteView),
  859. (@iPremium, @iIdActionVoteView),
  860. -- vote view voters
  861. (@iStandard, @iIdActionVoteViewVoters),
  862. (@iModerator, @iIdActionVoteViewVoters),
  863. (@iAdministrator, @iIdActionVoteViewVoters),
  864. (@iPremium, @iIdActionVoteViewVoters),
  865. -- report
  866. (@iStandard, @iIdActionReport),
  867. (@iModerator, @iIdActionReport),
  868. (@iAdministrator, @iIdActionReport),
  869. (@iPremium, @iIdActionReport),
  870. -- report view
  871. (@iModerator, @iIdActionReportView),
  872. (@iAdministrator, @iIdActionReportView),
  873. -- favorite
  874. (@iStandard, @iIdActionFavorite),
  875. (@iModerator, @iIdActionFavorite),
  876. (@iAdministrator, @iIdActionFavorite),
  877. (@iPremium, @iIdActionFavorite),
  878. -- favorite view
  879. (@iUnauthenticated, @iIdActionFavoriteView),
  880. (@iAccount, @iIdActionFavoriteView),
  881. (@iStandard, @iIdActionFavoriteView),
  882. (@iUnconfirmed, @iIdActionFavoriteView),
  883. (@iPending, @iIdActionFavoriteView),
  884. (@iModerator, @iIdActionFavoriteView),
  885. (@iAdministrator, @iIdActionFavoriteView),
  886. (@iPremium, @iIdActionFavoriteView),
  887. -- feature
  888. (@iModerator, @iIdActionFeature),
  889. (@iAdministrator, @iIdActionFeature),
  890. -- view view
  891. (@iUnauthenticated, @iIdActionViewView),
  892. (@iAccount, @iIdActionViewView),
  893. (@iStandard, @iIdActionViewView),
  894. (@iUnconfirmed, @iIdActionViewView),
  895. (@iPending, @iIdActionViewView),
  896. (@iModerator, @iIdActionViewView),
  897. (@iAdministrator, @iIdActionViewView),
  898. (@iPremium, @iIdActionViewView),
  899. -- view view viewers
  900. (@iModerator, @iIdActionViewViewViewers),
  901. (@iAdministrator, @iIdActionViewViewViewers),
  902. -- comments post
  903. (@iStandard, @iIdActionCmtPost),
  904. (@iModerator, @iIdActionCmtPost),
  905. (@iAdministrator, @iIdActionCmtPost),
  906. (@iPremium, @iIdActionCmtPost),
  907. -- comments edit own
  908. (@iStandard, @iIdActionCmtEditOwn),
  909. (@iModerator, @iIdActionCmtEditOwn),
  910. (@iAdministrator, @iIdActionCmtEditOwn),
  911. (@iPremium, @iIdActionCmtEditOwn),
  912. -- comments remove own
  913. (@iStandard, @iIdActionCmtRemoveOwn),
  914. (@iModerator, @iIdActionCmtRemoveOwn),
  915. (@iAdministrator, @iIdActionCmtRemoveOwn),
  916. (@iPremium, @iIdActionCmtRemoveOwn),
  917. -- comments edit all
  918. (@iModerator, @iIdActionCmtEditAll),
  919. (@iAdministrator, @iIdActionCmtEditAll),
  920. -- comments remove all
  921. (@iModerator, @iIdActionCmtRemoveAll),
  922. (@iAdministrator, @iIdActionCmtRemoveAll),
  923. -- comments remove in own content
  924. (@iModerator, @iIdActionCmtRemoveInOwnContent),
  925. (@iAdministrator, @iIdActionCmtRemoveInOwnContent),
  926. -- comments remove in group context
  927. (@iModerator, @iIdActionCmtRemoveInGroupContext),
  928. (@iAdministrator, @iIdActionCmtRemoveInGroupContext),
  929. -- comments pin
  930. (@iModerator, @iIdActionCmtPin),
  931. (@iAdministrator, @iIdActionCmtPin),
  932. -- account create
  933. (@iUnauthenticated, @iIdActionAccountCreate),
  934. -- account delete
  935. (@iAccount, @iIdActionAccountDelete),
  936. (@iStandard, @iIdActionAccountDelete),
  937. (@iUnconfirmed, @iIdActionAccountDelete),
  938. (@iPending, @iIdActionAccountDelete),
  939. (@iModerator, @iIdActionAccountDelete),
  940. (@iAdministrator, @iIdActionAccountDelete),
  941. (@iPremium, @iIdActionAccountDelete),
  942. -- set acl level
  943. (@iAdministrator, @iIdActionSetAclLevel),
  944. -- set badge
  945. (@iAdministrator, @iIdActionSetBadge),
  946. -- set acl as privacy
  947. (@iAdministrator, @iIdActionSetAclAsPrivacy),
  948. -- set form fields privacy
  949. (@iAccount, @iIdActionSetFormFieldsPrivacy),
  950. (@iStandard, @iIdActionSetFormFieldsPrivacy),
  951. (@iUnconfirmed, @iIdActionSetFormFieldsPrivacy),
  952. (@iPending, @iIdActionSetFormFieldsPrivacy),
  953. (@iModerator, @iIdActionSetFormFieldsPrivacy),
  954. (@iAdministrator, @iIdActionSetFormFieldsPrivacy),
  955. (@iPremium, @iIdActionSetFormFieldsPrivacy),
  956. -- view charts
  957. (@iAdministrator, @iIdActionChartView),
  958. -- post links
  959. (@iStandard, @iIdActionPostLinks),
  960. (@iModerator, @iIdActionPostLinks),
  961. (@iAdministrator, @iIdActionPostLinks),
  962. (@iPremium, @iIdActionPostLinks),
  963. -- use macros
  964. (@iModerator, @iIdActionUseMacros),
  965. (@iAdministrator, @iIdActionUseMacros),
  966. -- switch to any profile
  967. (@iAdministrator, @iIdActionSwitchToAnyProfile),
  968. -- show membership levels in privacy groups
  969. (@iAdministrator, @iIdActionShowMembershipLevelsInPrivacyGroups),
  970. -- show membership private info
  971. (@iModerator, @iIdActionShowMembershipPrivateInfo),
  972. (@iAdministrator, @iIdActionShowMembershipPrivateInfo);
  973. CREATE TABLE `sys_acl_levels` (
  974. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  975. `Name` varchar(100) NOT NULL default '',
  976. `Icon` text NOT NULL default '',
  977. `Description` varchar(255) NOT NULL default '',
  978. `Active` enum('yes','no') NOT NULL default 'no',
  979. `Purchasable` enum('yes','no') NOT NULL default 'yes',
  980. `Removable` enum('yes','no') NOT NULL default 'yes',
  981. `QuotaSize` bigint(20) NOT NULL,
  982. `QuotaNumber` int(11) NOT NULL,
  983. `QuotaMaxFileSize` bigint(20) NOT NULL,
  984. `Order` int(11) NOT NULL default '0',
  985. `PasswordExpired` int(11) NOT NULL default '0',
  986. `PasswordExpiredNotify` int(11) NOT NULL default '0',
  987. PRIMARY KEY (`ID`),
  988. UNIQUE KEY `Name` (`Name`),
  989. FULLTEXT KEY `Description` (`Description`)
  990. );
  991. INSERT INTO `sys_acl_levels` (`ID`, `Name`, `Icon`, `Description`, `Active`, `Purchasable`, `Removable`, `QuotaSize`, `QuotaNumber`, `QuotaMaxFileSize`, `Order`) VALUES
  992. (1, '_adm_prm_txt_level_unauthenticated', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 1),
  993. (2, '_adm_prm_txt_level_account', 'user col-green1', '', 'yes', 'no', 'no', 0, 0, 0, 2),
  994. (3, '_adm_prm_txt_level_standard', 'user col-red1', '', 'yes', 'no', 'no', 0, 0, 0, 3),
  995. (4, '_adm_prm_txt_level_unconfirmed', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 4),
  996. (5, '_adm_prm_txt_level_pending', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 5),
  997. (6, '_adm_prm_txt_level_suspended', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 6),
  998. (7, '_adm_prm_txt_level_moderator', 'user-secret col-blue3', '', 'yes', 'no', 'no', 0, 0, 0, 7),
  999. (8, '_adm_prm_txt_level_administrator', 'user-secret col-blue3', '', 'yes', 'no', 'no', 0, 0, 0, 8),
  1000. (9, '_adm_prm_txt_level_premium', 'user col-red3', '', 'yes', 'yes', 'no', 0, 0, 0, 9);
  1001. -- --------------------------------------------------------
  1002. --
  1003. -- Table structure for table `boon_sys_sessions`
  1004. --
  1005. CREATE TABLE IF NOT EXISTS `sys_sessions` (
  1006. `id` varchar(32) NOT NULL default '',
  1007. `user_id` int(10) unsigned NOT NULL default '0',
  1008. `data` text,
  1009. `date` int(10) unsigned NOT NULL default '0',
  1010. PRIMARY KEY (`id`),
  1011. KEY `user_id` (`user_id`),
  1012. KEY `date` (`date`)
  1013. );
  1014. -- --------------------------------------------------------
  1015. --
  1016. -- Table structure for table `sys_acl_levels_members`
  1017. --
  1018. CREATE TABLE `sys_acl_levels_members` (
  1019. `IDMember` int(10) unsigned NOT NULL default '0',
  1020. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  1021. `DateStarts` datetime NOT NULL default '0000-00-00 00:00:00',
  1022. `DateExpires` datetime default NULL,
  1023. `State` varchar(16) NOT NULL default '',
  1024. `TransactionID` varchar(16) NOT NULL default '',
  1025. PRIMARY KEY (`IDMember`,`IDLevel`,`DateStarts`)
  1026. );
  1027. -- --------------------------------------------------------
  1028. CREATE TABLE `sys_accounts` (
  1029. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1030. `profile_id` int(10) unsigned NOT NULL,
  1031. `name` varchar(255) NOT NULL,
  1032. `email` varchar(255) NOT NULL,
  1033. `email_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  1034. `phone` varchar(255) NOT NULL,
  1035. `phone_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  1036. `receive_updates` tinyint(4) NOT NULL DEFAULT '1',
  1037. `receive_news` tinyint(4) NOT NULL DEFAULT '1',
  1038. `password` varchar(40) NOT NULL,
  1039. `salt` varchar(10) NOT NULL,
  1040. `role` tinyint(4) NOT NULL DEFAULT '1',
  1041. `lang_id` int(10) unsigned NOT NULL DEFAULT '0',
  1042. `added` int(11) NOT NULL DEFAULT '0',
  1043. `changed` int(11) NOT NULL DEFAULT '0',
  1044. `logged` int(11) NOT NULL DEFAULT '0',
  1045. `active` int(11) NOT NULL DEFAULT '0',
  1046. `ip` varchar(40) NOT NULL DEFAULT '',
  1047. `referred` varchar(255) NOT NULL DEFAULT '',
  1048. `login_attempts` tinyint(4) NOT NULL DEFAULT '0',
  1049. `locked` tinyint(4) NOT NULL DEFAULT '0',
  1050. `password_expired` int(11) NOT NULL DEFAULT '0',
  1051. PRIMARY KEY (`id`),
  1052. UNIQUE KEY `email` (`email`(191)),
  1053. KEY `added` (`added`),
  1054. KEY `profile_id` (`profile_id`)
  1055. );
  1056. CREATE TABLE `sys_accounts_password` (
  1057. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1058. `account_id` int(10) NOT NULL,
  1059. `password` varchar(40) NOT NULL,
  1060. `password_changed` int(11) NOT NULL DEFAULT '0',
  1061. `salt` varchar(10) NOT NULL,
  1062. PRIMARY KEY (`id`)
  1063. );
  1064. CREATE TABLE IF NOT EXISTS `sys_profiles` (
  1065. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1066. `account_id` int(10) unsigned NOT NULL,
  1067. `type` varchar(32) NOT NULL,
  1068. `content_id` int(10) unsigned NOT NULL,
  1069. `cfw_value` int(10) unsigned NOT NULL DEFAULT '2147483647',
  1070. `cfw_items` int(10) unsigned NOT NULL DEFAULT '2147483647',
  1071. `cfu_items` int(10) unsigned NOT NULL DEFAULT '2147483647',
  1072. `cfu_locked` tinyint(4) NOT NULL DEFAULT '0',
  1073. `status` enum('active','pending','suspended') NOT NULL DEFAULT 'active',
  1074. PRIMARY KEY (`id`),
  1075. UNIQUE KEY `account_type_content` (`account_id`,`type`,`content_id`),
  1076. KEY `content_type` (`content_id`,`type`)
  1077. );
  1078. -- --------------------------------------------------------
  1079. --
  1080. -- Table structure for table 'sys_statistics'
  1081. --
  1082. CREATE TABLE `sys_statistics` (
  1083. `id` int(11) unsigned NOT NULL auto_increment,
  1084. `module` varchar(32) NOT NULL default '',
  1085. `name` varchar(64) NOT NULL default '',
  1086. `title` varchar(255) NOT NULL default '',
  1087. `link` varchar(255) NOT NULL default '',
  1088. `icon` varchar(32) NOT NULL default '',
  1089. `query` text NOT NULL default '',
  1090. `order` int(11) NOT NULL default '0',
  1091. PRIMARY KEY (`ID`),
  1092. UNIQUE KEY `name` (`name`)
  1093. );
  1094. INSERT INTO `sys_statistics` (`module`, `name`, `title`, `link`, `icon`, `query`, `order`) VALUES
  1095. ('system', 'sys_accounts', '_sys_accounts', '', 'user', 'SELECT COUNT(*) FROM `sys_accounts` WHERE 1', 1);
  1096. -- --------------------------------------------------------
  1097. --
  1098. -- Table structure for table 'sys_objects_rss'
  1099. --
  1100. CREATE TABLE `sys_objects_rss` (
  1101. `id` int(11) NOT NULL auto_increment,
  1102. `object` varchar(64) NOT NULL,
  1103. `class_name` varchar(32) NOT NULL default '',
  1104. `class_file` varchar(256) NOT NULL default '',
  1105. PRIMARY KEY (`id`)
  1106. );
  1107. INSERT INTO `sys_objects_rss` (`object`, `class_name`, `class_file`) VALUES
  1108. ('sys_boonex', 'BxDolRssBoonEx', ''),
  1109. ('sys_page_block', 'BxDolRssPageBlock', ''),
  1110. ('sys_studio_page_help', 'BxDolStudioRssPageHelp', ''),
  1111. ('sys_studio_module_help', 'BxDolStudioRssModuleHelp', '');
  1112. -- --------------------------------------------------------
  1113. --
  1114. -- Table structure for table 'sys_objects_search'
  1115. --
  1116. CREATE TABLE `sys_objects_search` (
  1117. `ID` int(10) unsigned NOT NULL auto_increment,
  1118. `ObjectName` varchar(64) NOT NULL default '',
  1119. `Title` varchar(50) NOT NULL default '',
  1120. `Order` int(11) NOT NULL,
  1121. `GlobalSearch` tinyint(4) NOT NULL DEFAULT '1',
  1122. `ClassName` varchar(50) NOT NULL default '',
  1123. `ClassPath` varchar(100) NOT NULL default '',
  1124. PRIMARY KEY (`ID`)
  1125. );
  1126. INSERT INTO `sys_objects_search` (`ObjectName`, `Title`, `Order`, `ClassName`, `ClassPath`) VALUES
  1127. ('sys_pages', '_sys_pages', 1, 'BxTemplPagesSearchResult', '');
  1128. -- --------------------------------------------------------
  1129. --
  1130. -- Table structure for table 'sys_objects_search_extended'
  1131. --
  1132. CREATE TABLE `sys_objects_search_extended` (
  1133. `id` int(10) unsigned NOT NULL auto_increment,
  1134. `object` varchar(64) NOT NULL default '',
  1135. `object_content_info` varchar(64) NOT NULL default '',
  1136. `module` varchar(32) NOT NULL default '',
  1137. `title` varchar(255) NOT NULL default '',
  1138. `filter` tinyint(4) NOT NULL DEFAULT '0',
  1139. `active` tinyint(4) NOT NULL DEFAULT '0',
  1140. `class_name` varchar(32) NOT NULL default '',
  1141. `class_file` varchar(255) NOT NULL default '',
  1142. PRIMARY KEY (`id`),
  1143. UNIQUE KEY `object` (`object`)
  1144. );
  1145. -- --------------------------------------------------------
  1146. --
  1147. -- Table structure for table 'sys_search_extended_fields'
  1148. --
  1149. CREATE TABLE `sys_search_extended_fields` (
  1150. `id` int(10) unsigned NOT NULL auto_increment,
  1151. `object` varchar(64) NOT NULL default '',
  1152. `name` varchar(255) NOT NULL default '',
  1153. `type` varchar(32) NOT NULL default '',
  1154. `caption` varchar(255) NOT NULL default '',
  1155. `info` varchar(255) NOT NULL default '',
  1156. `values` text NOT NULL default '',
  1157. `pass` varchar(32) NOT NULL,
  1158. `search_type` varchar(32) NOT NULL default '',
  1159. `search_value` varchar(255) NOT NULL default '',
  1160. `search_operator` varchar(32) NOT NULL default '',
  1161. `active` tinyint(4) NOT NULL DEFAULT '0',
  1162. `order` int(11) NOT NULL default '0',
  1163. PRIMARY KEY (`id`),
  1164. UNIQUE KEY `field` (`object`(64), `name`(127))
  1165. );
  1166. -- --------------------------------------------------------
  1167. --
  1168. -- Table structure for table 'sys_search_extended_fields'
  1169. --
  1170. CREATE TABLE `sys_search_extended_sorting_fields` (
  1171. `id` int(10) unsigned NOT NULL auto_increment,
  1172. `object` varchar(64) NOT NULL default '',
  1173. `name` varchar(255) NOT NULL default '',
  1174. `direction` varchar(32) NOT NULL default '',
  1175. `caption` varchar(255) NOT NULL default '',
  1176. `active` tinyint(4) NOT NULL DEFAULT '0',
  1177. `order` int(11) NOT NULL default '0',
  1178. PRIMARY KEY (`id`),
  1179. UNIQUE KEY `field` (`object`(64), `name`(127) , `direction`(32))
  1180. );
  1181. -- --------------------------------------------------------
  1182. --
  1183. -- Table structure for table `sys_objects_vote`
  1184. --
  1185. CREATE TABLE `sys_objects_vote` (
  1186. `ID` int(11) unsigned NOT NULL auto_increment,
  1187. `Name` varchar(50) NOT NULL default '',
  1188. `Module` varchar(32) NOT NULL default '',
  1189. `TableMain` varchar(50) NOT NULL default '',
  1190. `TableTrack` varchar(50) NOT NULL default '',
  1191. `PostTimeout` int(11) NOT NULL default '0',
  1192. `MinValue` tinyint(4) NOT NULL default '1',
  1193. `MaxValue` tinyint(4) NOT NULL default '5',
  1194. `Pruning` int(11) NOT NULL default '31536000',
  1195. `IsUndo` tinyint(1) NOT NULL default '0',
  1196. `IsOn` tinyint(1) NOT NULL default '1',
  1197. `TriggerTable` varchar(32) NOT NULL default '',
  1198. `TriggerFieldId` varchar(32) NOT NULL default '',
  1199. `TriggerFieldAuthor` varchar(32) NOT NULL default '',
  1200. `TriggerFieldRate` varchar(32) NOT NULL default '',
  1201. `TriggerFieldRateCount` varchar(32) NOT NULL default '',
  1202. `ClassName` varchar(32) NOT NULL default '',
  1203. `ClassFile` varchar(256) NOT NULL default '',
  1204. PRIMARY KEY (`ID`)
  1205. );
  1206. INSERT INTO `sys_objects_vote` (`Name`, `Module`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
  1207. ('sys_cmts', 'system', 'sys_cmts_votes', 'sys_cmts_votes_track', '604800', '1', '1', '0', '1', 'sys_cmts_ids', 'id', 'author_id', 'rate', 'votes', 'BxTemplCmtsVoteLikes', ''),
  1208. ('sys_cmts_reactions', 'system', 'sys_cmts_reactions', 'sys_cmts_reactions_track', '604800', '1', '1', '1', '1', 'sys_cmts_ids', 'id', 'author_id', 'rrate', 'rvotes', 'BxTemplCmtsVoteReactions', ''),
  1209. ('sys_form_fields_votes', 'system', 'sys_form_fields_votes', 'sys_form_fields_votes_track', '604800', '1', '1', '0', '1', 'sys_form_fields_ids', 'id', 'author_id', 'rate', 'votes', '', ''),
  1210. ('sys_form_fields_reaction', 'system', 'sys_form_fields_reaction', 'sys_form_fields_reaction_track', '604800', '1', '1', '1', '1', 'sys_form_fields_ids', 'id', 'author_id', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');
  1211. -- --------------------------------------------------------
  1212. --
  1213. -- Table structure for table `sys_objects_score`
  1214. --
  1215. CREATE TABLE `sys_objects_score` (
  1216. `id` int(11) unsigned NOT NULL auto_increment,
  1217. `name` varchar(50) NOT NULL default '',
  1218. `module` varchar(32) NOT NULL,
  1219. `table_main` varchar(50) NOT NULL default '',
  1220. `table_track` varchar(50) NOT NULL default '',
  1221. `post_timeout` int(11) NOT NULL default '0',
  1222. `pruning` int(11) NOT NULL default '31536000',
  1223. `is_on` tinyint(1) NOT NULL default '1',
  1224. `trigger_table` varchar(32) NOT NULL default '',
  1225. `trigger_field_id` varchar(32) NOT NULL default '',
  1226. `trigger_field_author` varchar(32) NOT NULL default '',
  1227. `trigger_field_score` varchar(32) NOT NULL default '',
  1228. `trigger_field_cup` varchar(32) NOT NULL default '',
  1229. `trigger_field_cdown` varchar(32) NOT NULL default '',
  1230. `class_name` varchar(32) NOT NULL default '',
  1231. `class_file` varchar(256) NOT NULL default '',
  1232. PRIMARY KEY (`ID`)
  1233. );
  1234. 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
  1235. ('sys_cmts', 'system', 'sys_cmts_scores', 'sys_cmts_scores_track', '604800', '0', 'sys_cmts_ids', 'id', 'author_id', 'score', 'sc_up', 'sc_down', 'BxTemplCmtsScore', '');
  1236. -- -------------------------------------------------------
  1237. CREATE TABLE `sys_modules` (
  1238. `id` int(11) unsigned NOT NULL auto_increment,
  1239. `type` varchar(16) NOT NULL default 'module',
  1240. `subtypes` int(11) unsigned NOT NULL default '0',
  1241. `name` varchar(32) NOT NULL default '',
  1242. `title` varchar(255) NOT NULL default '',
  1243. `vendor` varchar(64) NOT NULL default '',
  1244. `version` varchar(32) NOT NULL default '',
  1245. `help_url` varchar(128) NOT NULL default '',
  1246. `path` varchar(255) NOT NULL default '',
  1247. `uri` varchar(32) NOT NULL default '',
  1248. `class_prefix` varchar(32) NOT NULL default '',
  1249. `db_prefix` varchar(32) NOT NULL default '',
  1250. `lang_category` varchar(64) NOT NULL default '',
  1251. `dependencies` varchar(255) NOT NULL default '',
  1252. `date` int(11) unsigned NOT NULL default '0',
  1253. `enabled` tinyint(1) NOT NULL default '0',
  1254. `pending_uninstall` tinyint(4) NOT NULL,
  1255. `hash` varchar(32) NOT NULL default '',
  1256. `updated` int(11) unsigned NOT NULL default '0',
  1257. PRIMARY KEY (`id`),
  1258. UNIQUE KEY `name` (`name`),
  1259. UNIQUE KEY `path` (`path`(191)),
  1260. UNIQUE KEY `uri` (`uri`),
  1261. UNIQUE KEY `class_prefix` (`class_prefix`),
  1262. UNIQUE KEY `db_prefix` (`db_prefix`)
  1263. );
  1264. INSERT INTO `sys_modules` (`type`, `name`, `title`, `vendor`, `version`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `dependencies`, `date`, `enabled`) VALUES
  1265. ('module', 'system', 'System', 'UNA, Inc', '9', '', 'system', 'Bx', 'sys_', 'System', '', UNIX_TIMESTAMP(), 1);
  1266. CREATE TABLE `sys_modules_file_tracks` (
  1267. `id` int(11) unsigned NOT NULL auto_increment,
  1268. `module_id` int(11) unsigned NOT NULL default '0',
  1269. `file` varchar(255) NOT NULL default '',
  1270. `hash` varchar(64) NOT NULL default '',
  1271. PRIMARY KEY (`id`)
  1272. );
  1273. CREATE TABLE `sys_modules_relations` (
  1274. `id` int(11) unsigned NOT NULL auto_increment,
  1275. `module` varchar(32) NOT NULL default '',
  1276. `on_install` varchar(255) NOT NULL default '',
  1277. `on_uninstall` varchar(255) NOT NULL default '',
  1278. `on_enable` varchar(255) NOT NULL default '',
  1279. `on_disable` varchar(255) NOT NULL default '',
  1280. PRIMARY KEY (`id`)
  1281. );
  1282. -- --------------------------------------------------------
  1283. CREATE TABLE IF NOT EXISTS `sys_files` (
  1284. `id` int(11) NOT NULL AUTO_INCREMENT,
  1285. `profile_id` int(10) unsigned NOT NULL,
  1286. `remote_id` varchar(128) NOT NULL,
  1287. `path` varchar(255) NOT NULL,
  1288. `file_name` varchar(255) NOT NULL,
  1289. `mime_type` varchar(128) NOT NULL,
  1290. `ext` varchar(32) NOT NULL,
  1291. `size` bigint(20) NOT NULL,
  1292. `added` int(11) NOT NULL,
  1293. `modified` int(11) NOT NULL,
  1294. `private` int(11) NOT NULL,
  1295. PRIMARY KEY (`id`),
  1296. UNIQUE KEY `remote_id` (`remote_id`)
  1297. );
  1298. CREATE TABLE `sys_images` (
  1299. `id` int(11) NOT NULL AUTO_INCREMENT,
  1300. `profile_id` int(10) unsigned NOT NULL,
  1301. `remote_id` varchar(128) NOT NULL,
  1302. `path` varchar(255) NOT NULL,
  1303. `file_name` varchar(255) NOT NULL,
  1304. `mime_type` varchar(128) NOT NULL,
  1305. `ext` varchar(32) NOT NULL,
  1306. `size` bigint(20) NOT NULL,
  1307. `added` int(11) NOT NULL,
  1308. `modified` int(11) NOT NULL,
  1309. `private` int(11) NOT NULL,
  1310. PRIMARY KEY (`id`),
  1311. UNIQUE KEY `remote_id` (`remote_id`)
  1312. );
  1313. CREATE TABLE `sys_images_custom` (
  1314. `id` int(11) NOT NULL AUTO_INCREMENT,
  1315. `profile_id` int(10) unsigned NOT NULL,
  1316. `remote_id` varchar(128) NOT NULL,
  1317. `path` varchar(255) NOT NULL,
  1318. `file_name` varchar(255) NOT NULL,
  1319. `mime_type` varchar(128) NOT NULL,
  1320. `ext` varchar(32) NOT NULL,
  1321. `size` bigint(20) NOT NULL,
  1322. `added` int(11) NOT NULL,
  1323. `modified` int(11) NOT NULL,
  1324. `private` int(11) NOT NULL,
  1325. PRIMARY KEY (`id`),
  1326. UNIQUE KEY `remote_id` (`remote_id`)
  1327. );
  1328. CREATE TABLE `sys_images_resized` (
  1329. `id` int(11) NOT NULL AUTO_INCREMENT,
  1330. `profile_id` int(10) unsigned NOT NULL,
  1331. `remote_id` varchar(128) NOT NULL,
  1332. `path` varchar(255) NOT NULL,
  1333. `file_name` varchar(255) NOT NULL,
  1334. `mime_type` varchar(128) NOT NULL,
  1335. `ext` varchar(32) NOT NULL,
  1336. `size` bigint(20) NOT NULL,
  1337. `added` int(11) NOT NULL,
  1338. `modified` int(11) NOT NULL,
  1339. `private` int(11) NOT NULL,
  1340. PRIMARY KEY (`id`),
  1341. UNIQUE KEY `remote_id` (`remote_id`)
  1342. );
  1343. CREATE TABLE `sys_images_editor` (
  1344. `id` int(11) NOT NULL AUTO_INCREMENT,
  1345. `profile_id` int(10) unsigned NOT NULL,
  1346. `remote_id` varchar(128) NOT NULL,
  1347. `path` varchar(255) NOT NULL,
  1348. `file_name` varchar(255) NOT NULL,
  1349. `mime_type` varchar(128) NOT NULL,
  1350. `ext` varchar(32) NOT NULL,
  1351. `size` bigint(20) NOT NULL,
  1352. `added` int(11) NOT NULL,
  1353. `modified` int(11) NOT NULL,
  1354. `private` int(11) NOT NULL,
  1355. PRIMARY KEY (`id`),
  1356. UNIQUE KEY `remote_id` (`remote_id`)
  1357. );
  1358. CREATE TABLE `sys_images_editor_resized` (
  1359. `id` int(11) NOT NULL AUTO_INCREMENT,
  1360. `profile_id` int(10) unsigned NOT NULL,
  1361. `remote_id` varchar(128) NOT NULL,
  1362. `path` varchar(255) NOT NULL,
  1363. `file_name` varchar(255) NOT NULL,
  1364. `mime_type` varchar(128) NOT NULL,
  1365. `ext` varchar(32) NOT NULL,
  1366. `size` bigint(20) NOT NULL,
  1367. `added` int(11) NOT NULL,
  1368. `modified` int(11) NOT NULL,
  1369. `private` int(11) NOT NULL,
  1370. PRIMARY KEY (`id`),
  1371. UNIQUE KEY `remote_id` (`remote_id`)
  1372. );
  1373. CREATE TABLE IF NOT EXISTS `sys_wiki_files` (
  1374. `id` int(11) NOT NULL AUTO_INCREMENT,
  1375. `profile_id` int(10) unsigned NOT NULL,
  1376. `remote_id` varchar(128) NOT NULL,
  1377. `path` varchar(255) NOT NULL,
  1378. `file_name` varchar(255) NOT NULL,
  1379. `mime_type` varchar(128) NOT NULL,
  1380. `ext` varchar(32) NOT NULL,
  1381. `size` bigint(20) NOT NULL,
  1382. `added` int(11) NOT NULL,
  1383. `modified` int(11) NOT NULL,
  1384. `private` int(11) NOT NULL,
  1385. PRIMARY KEY (`id`),
  1386. UNIQUE KEY `remote_id` (`remote_id`)
  1387. );
  1388. CREATE TABLE IF NOT EXISTS `sys_wiki_images_resized` (
  1389. `id` int(11) NOT NULL AUTO_INCREMENT,
  1390. `profile_id` int(10) unsigned NOT NULL,
  1391. `remote_id` varchar(128) NOT NULL,
  1392. `path` varchar(255) NOT NULL,
  1393. `file_name` varchar(255) NOT NULL,
  1394. `mime_type` varchar(128) NOT NULL,
  1395. `ext` varchar(32) NOT NULL,
  1396. `size` bigint(20) NOT NULL,
  1397. `added` int(11) NOT NULL,
  1398. `modified` int(11) NOT NULL,
  1399. `private` int(11) NOT NULL,
  1400. PRIMARY KEY (`id`),
  1401. UNIQUE KEY `remote_id` (`remote_id`)
  1402. );
  1403. -- --------------------------------------------------------
  1404. CREATE TABLE IF NOT EXISTS `sys_cmts_images` (
  1405. `id` int(11) NOT NULL AUTO_INCREMENT,
  1406. `profile_id` int(10) unsigned NOT NULL,
  1407. `remote_id` varchar(128) NOT NULL,
  1408. `path` varchar(255) NOT NULL,
  1409. `file_name` varchar(255) NOT NULL,
  1410. `mime_type` varchar(128) NOT NULL,
  1411. `ext` varchar(32) NOT NULL,
  1412. `size` bigint(20) NOT NULL,
  1413. `added` int(11) NOT NULL,
  1414. `modified` int(11) NOT NULL,
  1415. `private` int(11) NOT NULL,
  1416. PRIMARY KEY (`id`),
  1417. UNIQUE KEY `remote_id` (`remote_id`)
  1418. );
  1419. CREATE TABLE IF NOT EXISTS `sys_cmts_images_preview` (
  1420. `id` int(11) NOT NULL AUTO_INCREMENT,
  1421. `profile_id` int(10) unsigned NOT NULL,
  1422. `remote_id` varchar(128) NOT NULL,
  1423. `path` varchar(255) NOT NULL,
  1424. `file_name` varchar(255) NOT NULL,
  1425. `mime_type` varchar(128) NOT NULL,
  1426. `ext` varchar(32) NOT NULL,
  1427. `size` bigint(20) NOT NULL,
  1428. `added` int(11) NOT NULL,
  1429. `modified` int(11) NOT NULL,
  1430. `private` int(11) NOT NULL,
  1431. PRIMARY KEY (`id`),
  1432. UNIQUE KEY `remote_id` (`remote_id`)
  1433. );
  1434. CREATE TABLE IF NOT EXISTS `sys_cmts_images2entries` (
  1435. `id` int(11) NOT NULL AUTO_INCREMENT,
  1436. `system_id` int(11) NOT NULL DEFAULT '0',
  1437. `cmt_id` int(11) NOT NULL DEFAULT '0',
  1438. `image_id` int(11) NOT NULL DEFAULT '0',
  1439. PRIMARY KEY (`id`),
  1440. UNIQUE KEY `image` (`system_id`,`cmt_id`,`image_id`)
  1441. );
  1442. CREATE TABLE IF NOT EXISTS `sys_cmts_ids` (
  1443. `id` int(11) NOT NULL AUTO_INCREMENT,
  1444. `system_id` int(11) NOT NULL DEFAULT '0',
  1445. `cmt_id` int(11) NOT NULL DEFAULT '0',
  1446. `author_id` int(11) NOT NULL DEFAULT '0',
  1447. `rate` float NOT NULL default '0',
  1448. `votes` int(11) NOT NULL default '0',
  1449. `rrate` float NOT NULL default '0',
  1450. `rvotes` int(11) NOT NULL default '0',
  1451. `score` int(11) NOT NULL default '0',
  1452. `sc_up` int(11) NOT NULL default '0',
  1453. `sc_down` int(11) NOT NULL default '0',
  1454. `reports` int(11) NOT NULL default '0',
  1455. `status_admin` enum('active','hidden','pending') NOT NULL DEFAULT 'active',
  1456. PRIMARY KEY (`id`),
  1457. UNIQUE KEY `system_cmt_id` (`system_id`,`cmt_id`)
  1458. );
  1459. CREATE TABLE IF NOT EXISTS `sys_cmts_meta_keywords` (
  1460. `id` int(11) NOT NULL AUTO_INCREMENT,
  1461. `object_id` int(10) unsigned NOT NULL,
  1462. `keyword` varchar(255) NOT NULL,
  1463. PRIMARY KEY (`id`),
  1464. KEY `object_id` (`object_id`),
  1465. KEY `keyword` (`keyword`)
  1466. );
  1467. CREATE TABLE IF NOT EXISTS `sys_cmts_meta_mentions` (
  1468. `id` int(11) NOT NULL AUTO_INCREMENT,
  1469. `object_id` int(10) unsigned NOT NULL,
  1470. `profile_id` int(10) unsigned NOT NULL,
  1471. PRIMARY KEY (`id`),
  1472. KEY `object_id` (`object_id`),
  1473. KEY `profile_id` (`profile_id`)
  1474. );
  1475. CREATE TABLE IF NOT EXISTS `sys_cmts_votes` (
  1476. `id` int(11) NOT NULL AUTO_INCREMENT,
  1477. `object_id` int(11) NOT NULL default '0',
  1478. `count` int(11) NOT NULL default '0',
  1479. `sum` int(11) NOT NULL default '0',
  1480. PRIMARY KEY (`id`),
  1481. UNIQUE KEY `object_id` (`object_id`)
  1482. );
  1483. CREATE TABLE IF NOT EXISTS `sys_cmts_votes_track` (
  1484. `id` int(11) NOT NULL AUTO_INCREMENT,
  1485. `object_id` int(11) NOT NULL default '0',
  1486. `author_id` int(11) NOT NULL default '0',
  1487. `author_nip` int(11) unsigned NOT NULL default '0',
  1488. `value` tinyint(4) NOT NULL default '0',
  1489. `date` int(11) NOT NULL default '0',
  1490. PRIMARY KEY (`id`),
  1491. KEY `vote` (`object_id`, `author_nip`)
  1492. );
  1493. CREATE TABLE IF NOT EXISTS `sys_cmts_reactions` (
  1494. `id` int(11) NOT NULL AUTO_INCREMENT,
  1495. `object_id` int(11) NOT NULL default '0',
  1496. `reaction` varchar(32) NOT NULL default '',
  1497. `count` int(11) NOT NULL default '0',
  1498. `sum` int(11) NOT NULL default '0',
  1499. PRIMARY KEY (`id`),
  1500. UNIQUE KEY `reaction` (`object_id`, `reaction`)
  1501. );
  1502. CREATE TABLE IF NOT EXISTS `sys_cmts_reactions_track` (
  1503. `id` int(11) NOT NULL AUTO_INCREMENT,
  1504. `object_id` int(11) NOT NULL default '0',
  1505. `author_id` int(11) NOT NULL default '0',
  1506. `author_nip` int(11) unsigned NOT NULL default '0',
  1507. `reaction` varchar(32) NOT NULL default '',
  1508. `value` tinyint(4) NOT NULL default '0',
  1509. `date` int(11) NOT NULL default '0',
  1510. PRIMARY KEY (`id`),
  1511. KEY `vote` (`object_id`, `author_nip`)
  1512. );
  1513. CREATE TABLE IF NOT EXISTS `sys_form_fields_votes` (
  1514. `id` int(11) NOT NULL AUTO_INCREMENT,
  1515. `object_id` int(11) NOT NULL default '0',
  1516. `count` int(11) NOT NULL default '0',
  1517. `sum` int(11) NOT NULL default '0',
  1518. PRIMARY KEY (`id`),
  1519. UNIQUE KEY `object_id` (`object_id`)
  1520. );
  1521. CREATE TABLE IF NOT EXISTS `sys_form_fields_votes_track` (
  1522. `id` int(11) NOT NULL AUTO_INCREMENT,
  1523. `object_id` int(11) NOT NULL default '0',
  1524. `author_id` int(11) NOT NULL default '0',
  1525. `author_nip` int(11) unsigned NOT NULL default '0',
  1526. `value` tinyint(4) NOT NULL default '0',
  1527. `date` int(11) NOT NULL default '0',
  1528. PRIMARY KEY (`id`),
  1529. KEY `vote` (`object_id`, `author_nip`)
  1530. );
  1531. CREATE TABLE IF NOT EXISTS `sys_form_fields_reaction` (
  1532. `id` int(11) NOT NULL AUTO_INCREMENT,
  1533. `object_id` int(11) NOT NULL default '0',
  1534. `reaction` varchar(32) NOT NULL default '',
  1535. `count` int(11) NOT NULL default '0',
  1536. `sum` int(11) NOT NULL default '0',
  1537. PRIMARY KEY (`id`),
  1538. UNIQUE KEY `reaction` (`object_id`, `reaction`)
  1539. );
  1540. CREATE TABLE IF NOT EXISTS `sys_form_fields_reaction_track` (
  1541. `id` int(11) NOT NULL AUTO_INCREMENT,
  1542. `object_id` int(11) NOT NULL default '0',
  1543. `author_id` int(11) NOT NULL default '0',
  1544. `author_nip` int(11) unsigned NOT NULL default '0',
  1545. `reaction` varchar(32) NOT NULL default '',
  1546. `value` tinyint(4) NOT NULL default '0',
  1547. `date` int(11) NOT NULL default '0',
  1548. PRIMARY KEY (`id`),
  1549. KEY `vote` (`object_id`, `author_nip`)
  1550. );
  1551. CREATE TABLE IF NOT EXISTS `sys_cmts_reports` (
  1552. `id` int(11) NOT NULL AUTO_INCREMENT,
  1553. `object_id` int(11) NOT NULL default '0',
  1554. `count` int(11) NOT NULL default '0',
  1555. PRIMARY KEY (`id`),
  1556. UNIQUE KEY `object_id` (`object_id`)
  1557. );
  1558. CREATE TABLE IF NOT EXISTS `sys_cmts_reports_track` (
  1559. `id` int(11) NOT NULL AUTO_INCREMENT,
  1560. `object_id` int(11) NOT NULL default '0',
  1561. `author_id` int(11) NOT NULL default '0',
  1562. `author_nip` int(11) unsigned NOT NULL default '0',
  1563. `type` varchar(32) NOT NULL default '',
  1564. `text` text NOT NULL default '',
  1565. `date` int(11) NOT NULL default '0',
  1566. `checked_by` int(11) NOT NULL default '0',
  1567. `status` tinyint(11) NOT NULL default '0',
  1568. PRIMARY KEY (`id`),
  1569. KEY `report` (`object_id`, `author_nip`)
  1570. );
  1571. CREATE TABLE IF NOT EXISTS `sys_cmts_scores` (
  1572. `id` int(11) NOT NULL AUTO_INCREMENT,
  1573. `object_id` int(11) NOT NULL default '0',
  1574. `count_up` int(11) NOT NULL default '0',
  1575. `count_down` int(11) NOT NULL default '0',
  1576. PRIMARY KEY (`id`),
  1577. UNIQUE KEY `object_id` (`object_id`)
  1578. );
  1579. CREATE TABLE IF NOT EXISTS `sys_cmts_scores_track` (
  1580. `id` int(11) NOT NULL AUTO_INCREMENT,
  1581. `object_id` int(11) NOT NULL default '0',
  1582. `author_id` int(11) NOT NULL default '0',
  1583. `author_nip` int(11) unsigned NOT NULL default '0',
  1584. `type` varchar(8) NOT NULL default '',
  1585. `date` int(11) NOT NULL default '0',
  1586. PRIMARY KEY (`id`),
  1587. KEY `vote` (`object_id`, `author_nip`)
  1588. );
  1589. -- --------------------------------------------------------
  1590. CREATE TABLE `sys_injections` (
  1591. `id` int(11) unsigned NOT NULL auto_increment,
  1592. `name` varchar(128) NOT NULL default '',
  1593. `page_index` int(11) NOT NULL default '0',
  1594. `key` varchar(128) NOT NULL default '',
  1595. `type` enum('text', 'service') NOT NULL default 'text',
  1596. `data` text NOT NULL default '',
  1597. `replace` TINYINT NOT NULL DEFAULT '0',
  1598. `active` TINYINT NOT NULL DEFAULT '1',
  1599. PRIMARY KEY (`id`)
  1600. );
  1601. INSERT INTO `sys_injections`(`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
  1602. ('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),
  1603. ('sys_head', 0, 'injection_head', 'text', '', 0, 1),
  1604. ('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),
  1605. ('sys_body', 0, 'injection_footer', 'text', '', 0, 1);
  1606. -- --------------------------------------------------------
  1607. CREATE TABLE `sys_injections_admin` (
  1608. `id` int(11) unsigned NOT NULL auto_increment,
  1609. `name` varchar(128) NOT NULL default '',
  1610. `page_index` int(11) NOT NULL default '0',
  1611. `key` varchar(128) NOT NULL default '',
  1612. `type` enum('text','service') NOT NULL default 'text',
  1613. `data` text NOT NULL,
  1614. `replace` tinyint(4) NOT NULL default '0',
  1615. `active` tinyint(4) NOT NULL default '1',
  1616. PRIMARY KEY (`id`)
  1617. );
  1618. -- --------------------------------------------------------
  1619. CREATE TABLE `sys_permalinks` (
  1620. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1621. `standard` varchar(128) NOT NULL DEFAULT '',
  1622. `permalink` varchar(128) NOT NULL DEFAULT '',
  1623. `check` varchar(64) NOT NULL DEFAULT '',
  1624. `compare_by_prefix` tinyint(4) NOT NULL DEFAULT '0',
  1625. PRIMARY KEY (`id`),
  1626. UNIQUE KEY `check` (`standard`(80),`permalink`(80),`check`(30))
  1627. );
  1628. INSERT INTO `sys_permalinks` (`standard`, `permalink`, `check`, `compare_by_prefix`) VALUES
  1629. ('page.php?i=', 'page/', 'permalinks_pages', 1),
  1630. ('modules/?r=', 'm/', 'permalinks_modules', 1),
  1631. ('storage.php?o=', 's/', 'permalinks_storage', 1);
  1632. -- --------------------------------------------------------
  1633. CREATE TABLE `sys_audit` (
  1634. `id` int(11) unsigned NOT NULL auto_increment,
  1635. `added` int(11) NOT NULL,
  1636. `profile_id` int(10) NOT NULL,
  1637. `profile_title` varchar(255) NOT NULL,
  1638. `content_id` int(10) NOT NULL,
  1639. `content_title` varchar(255) NOT NULL,
  1640. `content_module` varchar(32) NOT NULL default '',
  1641. `content_info_object` varchar(32) NOT NULL default '',
  1642. `context_profile_id` int(10) NOT NULL,
  1643. `context_profile_title` varchar(255) NOT NULL,
  1644. `action_lang_key` varchar(255) NOT NULL,
  1645. `action_lang_key_params` text NOT NULL,
  1646. `extras` text NOT NULL,
  1647. PRIMARY KEY (`id`)
  1648. );
  1649. CREATE TABLE `sys_alerts_handlers` (
  1650. `id` int(11) unsigned NOT NULL auto_increment,
  1651. `name` varchar(128) NOT NULL default '',
  1652. `class` varchar(128) NOT NULL default '',
  1653. `file` varchar(255) NOT NULL default '',
  1654. `service_call` text NOT NULL default '',
  1655. `active` tinyint(4) NOT NULL default '1',
  1656. PRIMARY KEY (`id`),
  1657. UNIQUE KEY `name` (`name`)
  1658. );
  1659. CREATE TABLE `sys_alerts` (
  1660. `id` int(11) unsigned NOT NULL auto_increment,
  1661. `unit` varchar(128) NOT NULL default '',
  1662. `action` varchar(32) NOT NULL default 'none',
  1663. `handler_id` int(11) NOT NULL default '0',
  1664. PRIMARY KEY (`id`),
  1665. UNIQUE KEY `alert_handler` (`unit`, `action`, `handler_id`)
  1666. );
  1667. CREATE TABLE `sys_alerts_cache_triggers` (
  1668. `id` int(11) UNSIGNED NOT NULL auto_increment,
  1669. `unit` varchar(128) NOT NULL DEFAULT '',
  1670. `action` varchar(32) NOT NULL DEFAULT '',
  1671. `cache_key` varchar(255) NOT NULL DEFAULT '',
  1672. PRIMARY KEY (`id`)
  1673. );
  1674. INSERT INTO `sys_alerts_cache_triggers` (`unit`, `action`, `cache_key`) VALUES
  1675. ('sys_profiles_subscriptions', 'connection_added', 'menu_sys_profile_stats_profile-stats-subscribed-me_{content}_{_hash}.php');
  1676. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1677. ('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";}');
  1678. SET @iIdHandler = LAST_INSERT_ID();
  1679. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1680. ('system', 'save_setting', @iIdHandler);
  1681. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1682. ('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";}');
  1683. SET @iIdHandler = LAST_INSERT_ID();
  1684. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1685. ('sys_images_custom', 'file_deleted', @iIdHandler);
  1686. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1687. ('sys_settings_change_kands', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:27:"alert_response_change_kands";s:6:"params";a:0:{}s:5:"class";s:27:"TemplStudioSettingsServices";}');
  1688. SET @iIdHandler = LAST_INSERT_ID();
  1689. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1690. ('system', 'save_setting', @iIdHandler);
  1691. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1692. ('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";}');
  1693. SET @iHandler = LAST_INSERT_ID();
  1694. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1695. ('system', 'save_setting', @iHandler);
  1696. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1697. ('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";}');
  1698. SET @iHandler = LAST_INSERT_ID();
  1699. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1700. ('system', 'installed', @iHandler);
  1701. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1702. ('sys_connections', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:26:"alert_response_connections";s:5:"class";s:23:"TemplServiceConnections";}');
  1703. SET @iHandler = LAST_INSERT_ID();
  1704. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1705. ('sys_profiles_friends', 'connection_added', @iHandler),
  1706. ('sys_profiles_friends', 'connection_removed', @iHandler);
  1707. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1708. ('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";}');
  1709. SET @iIdHandler = LAST_INSERT_ID();
  1710. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1711. ('sys_cmts_images', 'file_deleted', @iIdHandler);
  1712. -- --------------------------------------------------------
  1713. CREATE TABLE `sys_badges` (
  1714. `id` int(11) unsigned NOT NULL auto_increment,
  1715. `added` int(11) NOT NULL,
  1716. `module` varchar(32) NOT NULL default '',
  1717. `text` varchar(255) NOT NULL default '',
  1718. `icon` text NOT NULL default '',
  1719. `color` varchar(32) NOT NULL default '',
  1720. `fontcolor` varchar(32) NOT NULL default '',
  1721. `is_icon_only` tinyint(4) NOT NULL default '1',
  1722. PRIMARY KEY (`id`)
  1723. );
  1724. CREATE TABLE `sys_badges2objects` (
  1725. `id` int(11) unsigned NOT NULL auto_increment,
  1726. `badge_id` int(11) NOT NULL,
  1727. `object_id` int(11) NOT NULL,
  1728. `module` varchar(32) NOT NULL,
  1729. `added` int(11) NOT NULL,
  1730. PRIMARY KEY (`id`),
  1731. UNIQUE KEY `badge_object` (`object_id`, `badge_id`)
  1732. );
  1733. -- --------------------------------------------------------
  1734. CREATE TABLE `sys_objects_report` (
  1735. `id` int(11) NOT NULL auto_increment,
  1736. `name` varchar(64) NOT NULL,
  1737. `module` varchar(32) NOT NULL default '',
  1738. `table_main` varchar(32) NOT NULL,
  1739. `table_track` varchar(32) NOT NULL,
  1740. `pruning` int(11) NOT NULL default '31536000',
  1741. `is_on` tinyint(4) NOT NULL default '1',
  1742. `base_url` varchar(256) NOT NULL default '',
  1743. `object_comment` varchar(64) NOT NULL,
  1744. `trigger_table` varchar(32) NOT NULL,
  1745. `trigger_field_id` varchar(32) NOT NULL,
  1746. `trigger_field_author` varchar(32) NOT NULL,
  1747. `trigger_field_count` varchar(32) NOT NULL,
  1748. `class_name` varchar(32) NOT NULL default '',
  1749. `class_file` varchar(256) NOT NULL default '',
  1750. PRIMARY KEY (`id`)
  1751. );
  1752. 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
  1753. ('sys_cmts', 'system', 'sys_cmts_reports', 'sys_cmts_reports_track', '1', '', 'sys_cmts_ids', 'id', 'author_id', 'reports', '', '');
  1754. -- --------------------------------------------------------
  1755. CREATE TABLE `sys_objects_view` (
  1756. `id` int(11) NOT NULL auto_increment,
  1757. `name` varchar(64) NOT NULL,
  1758. `module` varchar(32) NOT NULL default '',
  1759. `table_track` varchar(32) NOT NULL,
  1760. `period` int(11) NOT NULL default '86400',
  1761. `pruning` int(11) NOT NULL default '31536000',
  1762. `is_on` tinyint(4) NOT NULL default '1',
  1763. `trigger_table` varchar(32) NOT NULL,
  1764. `trigger_field_id` varchar(32) NOT NULL,
  1765. `trigger_field_author` varchar(32) NOT NULL,
  1766. `trigger_field_count` varchar(32) NOT NULL,
  1767. `class_name` varchar(32) NOT NULL default '',
  1768. `class_file` varchar(256) NOT NULL default '',
  1769. PRIMARY KEY (`id`)
  1770. );
  1771. -- --------------------------------------------------------
  1772. CREATE TABLE `sys_objects_favorite` (
  1773. `id` int(11) NOT NULL auto_increment,
  1774. `name` varchar(64) NOT NULL,
  1775. `table_track` varchar(32) NOT NULL,
  1776. `table_lists` varchar(32) NOT NULL,
  1777. `pruning` int(11) NOT NULL default '31536000',
  1778. `is_on` tinyint(4) NOT NULL default '1',
  1779. `is_undo` tinyint(4) NOT NULL default '1',
  1780. `is_public` tinyint(4) NOT NULL default '1',
  1781. `base_url` varchar(256) NOT NULL default '',
  1782. `trigger_table` varchar(32) NOT NULL,
  1783. `trigger_field_id` varchar(32) NOT NULL,
  1784. `trigger_field_author` varchar(32) NOT NULL,
  1785. `trigger_field_count` varchar(32) NOT NULL,
  1786. `class_name` varchar(32) NOT NULL default '',
  1787. `class_file` varchar(256) NOT NULL default '',
  1788. PRIMARY KEY (`id`)
  1789. );
  1790. -- --------------------------------------------------------
  1791. CREATE TABLE `sys_objects_feature` (
  1792. `id` int(11) NOT NULL auto_increment,
  1793. `name` varchar(64) NOT NULL,
  1794. `module` varchar(32) NOT NULL default '',
  1795. `is_on` tinyint(4) NOT NULL default '1',
  1796. `is_undo` tinyint(4) NOT NULL default '1',
  1797. `base_url` varchar(256) NOT NULL default '',
  1798. `trigger_table` varchar(32) NOT NULL,
  1799. `trigger_field_id` varchar(32) NOT NULL,
  1800. `trigger_field_author` varchar(32) NOT NULL,
  1801. `trigger_field_flag` varchar(32) NOT NULL,
  1802. `class_name` varchar(32) NOT NULL default '',
  1803. `class_file` varchar(256) NOT NULL default '',
  1804. PRIMARY KEY (`id`)
  1805. );
  1806. -- --------------------------------------------------------
  1807. CREATE TABLE `sys_objects_chart` (
  1808. `id` int(11) NOT NULL AUTO_INCREMENT,
  1809. `object` varchar(32) NOT NULL,
  1810. `title` varchar(255) NOT NULL,
  1811. `table` varchar(255) NOT NULL,
  1812. `field_date_ts` varchar(255) NOT NULL,
  1813. `field_date_dt` varchar(255) NOT NULL,
  1814. `field_status` varchar(255) NOT NULL,
  1815. `column_date` int(11) NOT NULL DEFAULT '0',
  1816. `column_count` int(11) NOT NULL DEFAULT '1',
  1817. `type` varchar(255) NOT NULL,
  1818. `options` text NOT NULL,
  1819. `query` text NOT NULL,
  1820. `active` tinyint(4) NOT NULL DEFAULT '1',
  1821. `order` int(11) NOT NULL,
  1822. `class_name` varchar(32) NOT NULL default '',
  1823. `class_file` varchar(256) NOT NULL default '',
  1824. PRIMARY KEY (`id`),
  1825. UNIQUE KEY `object` (`object`)
  1826. );
  1827. INSERT INTO `sys_objects_chart` (`object`, `title`, `table`, `field_date_ts`, `field_date_dt`, `field_status`, `query`, `active`, `order`, `class_name`, `class_file`) VALUES
  1828. ('sys_accounts_growth', '_sys_chart_accounts_growth', 'sys_accounts', 'added', '', '', '', 1, 1, 'BxDolChartGrowth', ''),
  1829. ('sys_accounts_growth_speed', '_sys_chart_accounts_growth_speed', 'sys_accounts', 'added', '', '', '', 1, 1, 'BxDolChartGrowthSpeed', '');
  1830. -- --------------------------------------------------------
  1831. CREATE TABLE `sys_objects_content_info` (
  1832. `id` int(11) NOT NULL auto_increment,
  1833. `name` varchar(64) NOT NULL,
  1834. `title` varchar(128) NOT NULL,
  1835. `alert_unit` varchar(32) NOT NULL,
  1836. `alert_action_add` varchar(32) NOT NULL,
  1837. `alert_action_update` varchar(32) NOT NULL,
  1838. `alert_action_delete` varchar(32) NOT NULL,
  1839. `class_name` varchar(32) NOT NULL default '',
  1840. `class_file` varchar(256) NOT NULL default '',
  1841. PRIMARY KEY (`id`),
  1842. UNIQUE KEY `name` (`name`),
  1843. UNIQUE KEY `alert_add` (`alert_unit` ,`alert_action_add`),
  1844. UNIQUE KEY `alert_update` (`alert_unit` ,`alert_action_update`),
  1845. UNIQUE KEY `alert_delete` (`alert_unit` ,`alert_action_delete`)
  1846. );
  1847. -- --------------------------------------------------------
  1848. CREATE TABLE `sys_content_info_grids` (
  1849. `id` int(11) NOT NULL auto_increment,
  1850. `object` varchar(64) NOT NULL,
  1851. `grid_object` varchar(64) NOT NULL,
  1852. `grid_field_id` varchar(64) NOT NULL,
  1853. `condition` text NOT NULL default '',
  1854. `selection` varchar(256) NOT NULL default '',
  1855. PRIMARY KEY (`id`),
  1856. UNIQUE KEY `grid_object` (`grid_object`)
  1857. );
  1858. -- --------------------------------------------------------
  1859. CREATE TABLE `sys_objects_privacy` (
  1860. `id` int(11) NOT NULL auto_increment,
  1861. `object` varchar(64) NOT NULL default '',
  1862. `module` varchar(64) NOT NULL default '',
  1863. `action` varchar(255) NOT NULL default '',
  1864. `title` varchar(255) NOT NULL default '',
  1865. `default_group` varchar(255) NOT NULL default '1',
  1866. `spaces` varchar(255) NOT NULL DEFAULT 'all',
  1867. `table` varchar(255) NOT NULL default '',
  1868. `table_field_id` varchar(255) NOT NULL default '',
  1869. `table_field_author` varchar(255) NOT NULL default '',
  1870. `override_class_name` varchar(255) NOT NULL default '',
  1871. `override_class_file` varchar(255) NOT NULL default '',
  1872. PRIMARY KEY (`id`),
  1873. UNIQUE KEY `object` (`object`),
  1874. UNIQUE KEY `action` (`module`(64), `action`(127))
  1875. );
  1876. 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
  1877. ('sys_form_inputs_allow_view_to', 'system', 'view', '_sys_privacy_forms_input_allow_view_to', '3', 'sys_form_inputs_privacy', 'id', 'author_id', '', '');
  1878. CREATE TABLE `sys_privacy_defaults` (
  1879. `owner_id` int(11) NOT NULL default '0',
  1880. `action_id` int(11) NOT NULL default '0',
  1881. `group_id` int(11) NOT NULL default '0',
  1882. PRIMARY KEY (`owner_id`, `action_id`)
  1883. );
  1884. CREATE TABLE `sys_privacy_groups` (
  1885. `id` int(11) unsigned NOT NULL auto_increment,
  1886. `title` varchar(255) NOT NULL default '',
  1887. `check` text NOT NULL default '',
  1888. `active` tinyint(4) NOT NULL default '1',
  1889. `visible` tinyint(4) NOT NULL default '1',
  1890. PRIMARY KEY (`id`)
  1891. );
  1892. INSERT INTO `sys_privacy_groups`(`id`, `title`, `check`, `active`, `visible`) VALUES
  1893. ('1', '', '', 1, 0),
  1894. ('2', '_sys_ps_group_title_me_only', '@me_only', 1, 1),
  1895. ('3', '_sys_ps_group_title_public', '@public', 1, 1),
  1896. ('4', '_sys_ps_group_title_members', '@members', 0, 0),
  1897. ('5', '_sys_ps_group_title_friends', '@friends', 1, 1),
  1898. ('6', '_sys_ps_group_title_friends_selected', '@friends_selected_by_object', 1, 1),
  1899. ('7', '_sys_ps_group_title_relations', '@relations', 1, 1),
  1900. ('8', '_sys_ps_group_title_relations_selected', '@relations_selected_by_object', 1, 1),
  1901. ('9', '_sys_ps_group_title_memberships_selected', '@memberships_selected_by_object', 1, 1),
  1902. ('99', '_sys_ps_group_title_custom', '@custom_by_object', 0, 0);
  1903. CREATE TABLE `sys_privacy_groups_custom` (
  1904. `id` int(11) unsigned NOT NULL auto_increment,
  1905. `profile_id` int(11) NOT NULL default '0',
  1906. `content_id` int(11) NOT NULL default '0',
  1907. `object` varchar(64) NOT NULL default '',
  1908. `group_id` int(11) NOT NULL default '0',
  1909. PRIMARY KEY (`id`),
  1910. UNIQUE KEY `content_privacy` (`profile_id`, `content_id`, `object`)
  1911. );
  1912. CREATE TABLE `sys_privacy_groups_custom_members` (
  1913. `group_id` int(11) NOT NULL default '0',
  1914. `member_id` int(11) NOT NULL default '0',
  1915. PRIMARY KEY (`group_id`, `member_id`)
  1916. );
  1917. CREATE TABLE `sys_privacy_groups_custom_memberships` (
  1918. `group_id` int(11) NOT NULL default '0',
  1919. `membership_id` int(11) NOT NULL default '0',
  1920. PRIMARY KEY (`group_id`, `membership_id`)
  1921. );
  1922. -- --------------------------------------------------------
  1923. CREATE TABLE `sys_objects_recommendation` (
  1924. `id` int(11) NOT NULL auto_increment,
  1925. `name` varchar(64) NOT NULL default '',
  1926. `module` varchar(64) NOT NULL default '',
  1927. `connection` varchar(64) NOT NULL default '',
  1928. `content_info` varchar(64) NOT NULL default '',
  1929. `countable` tinyint(4) NOT NULL DEFAULT '1',
  1930. `active` tinyint(4) NOT NULL DEFAULT '1',
  1931. `class_name` varchar(32) NOT NULL default '',
  1932. `class_file` varchar(256) NOT NULL default '',
  1933. PRIMARY KEY (`id`),
  1934. UNIQUE KEY `name` (`name`)
  1935. );
  1936. CREATE TABLE `sys_recommendation_criteria` (
  1937. `id` int(11) NOT NULL auto_increment,
  1938. `object_id` int(11) NOT NULL default '0',
  1939. `name` varchar(64) NOT NULL default '',
  1940. `source_type` enum ('sql', 'service') NOT NULL,
  1941. `source` text NOT NULL,
  1942. `params` text NOT NULL,
  1943. `weight` float NOT NULL default '0',
  1944. `active` tinyint(4) NOT NULL DEFAULT '1',
  1945. PRIMARY KEY (`id`),
  1946. UNIQUE KEY `criterion` (`object_id`, `name`)
  1947. );
  1948. INSERT INTO `sys_objects_recommendation` (`name`, `module`, `connection`, `content_info`, `countable`, `active`, `class_name`, `class_file`) VALUES
  1949. ('sys_friends', 'system', 'sys_profiles_friends', '', 1, 1, 'BxTemplRecommendationProfile', '');
  1950. SET @iRecFriends = LAST_INSERT_ID();
  1951. INSERT INTO `sys_recommendation_criteria` (`object_id`, `name`, `source_type`, `source`, `params`, `weight`, `active`) VALUES
  1952. (@iRecFriends, 'mutual_friends', 'sql', 'SELECT `tff`.`initiator` AS `id`, SUM({points}) AS `value` FROM `sys_profiles_conn_friends` AS `tf` INNER JOIN `sys_profiles_conn_friends` AS `tff` ON `tf`.`content`=`tff`.`content` AND `tff`.`initiator`<>{profile_id} AND `tff`.`initiator` NOT IN (SELECT `content` FROM `sys_profiles_conn_friends` WHERE `initiator`={profile_id} AND `mutual`=''1'') AND `tff`.`mutual`=''1'' WHERE `tf`.`initiator`={profile_id} AND `tf`.`mutual`=''1'' GROUP BY `id`', 'a:1:{s:6:"points";i:2;}', 0.5, 1),
  1953. (@iRecFriends, 'shared_context', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:44:"get_friend_recommendations_by_shared_context";s:6:"params";a:3:{i:0;s:12:"{profile_id}";i:1;s:12:"{connection}";i:2;s:8:"{points}";}s:5:"class";s:27:"TemplServiceRecommendations";}', 'a:2:{s:6:"points";i:1;s:10:"connection";s:14:"bx_groups_fans";}', 0.20, 1),
  1954. (@iRecFriends, 'shared_location', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:45:"get_friend_recommendations_by_shared_location";s:6:"params";a:3:{i:0;s:12:"{profile_id}";i:1;s:8:"{radius}";i:2;s:8:"{points}";}s:5:"class";s:27:"TemplServiceRecommendations";}', 'a:2:{s:6:"radius";i:10;s:6:"points";i:1;}', 0.20, 1),
  1955. (@iRecFriends, 'last_active', 'sql', 'SELECT `tp`.`id` AS `id`, {points} AS `value` FROM `sys_profiles` AS `tp` INNER JOIN `sys_accounts` AS `ta` ON `tp`.`account_id`=`ta`.`id` LEFT JOIN `sys_sessions` AS `ts` ON `tp`.`account_id`=`ts`.`user_id` WHERE `tp`.`id`<>{profile_id} AND `tp`.`id` NOT IN (SELECT `content` FROM `sys_profiles_conn_friends` WHERE `initiator`={profile_id} AND `mutual`=''1'') AND `tp`.`type` IN (''bx_persons'', ''bx_organizations'') ORDER BY `ts`.`date` DESC, `ta`.`logged` DESC, {order_by}', 'a:1:{s:6:"points";i:0;}', 0.1, 1);
  1956. INSERT INTO `sys_objects_recommendation` (`name`, `module`, `connection`, `content_info`, `countable`, `active`, `class_name`, `class_file`) VALUES
  1957. ('sys_subscriptions', 'system', 'sys_profiles_subscriptions', '', 1, 1, 'BxTemplRecommendationProfile', '');
  1958. SET @iRecSubscriptions = LAST_INSERT_ID();
  1959. INSERT INTO `sys_recommendation_criteria` (`object_id`, `name`, `source_type`, `source`, `params`, `weight`, `active`) VALUES
  1960. (@iRecSubscriptions, 'mutual_subscriptions', 'sql', 'SELECT `tff`.`content` AS `id`, SUM({points}) AS `value` FROM `sys_profiles_conn_subscriptions` AS `tf` INNER JOIN `sys_profiles_conn_subscriptions` AS `tff` ON `tf`.`content`=`tff`.`initiator` AND `tff`.`content`<>{profile_id} AND `tff`.`content` NOT IN (SELECT `content` FROM `sys_profiles_conn_subscriptions` WHERE `initiator`={profile_id}) WHERE `tf`.`initiator`={profile_id} GROUP BY `id`', 'a:1:{s:6:"points";i:2;}', 0.5, 1),
  1961. (@iRecSubscriptions, 'shared_context', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:50:"get_subscription_recommendations_by_shared_context";s:6:"params";a:3:{i:0;s:12:"{profile_id}";i:1;s:12:"{connection}";i:2;s:8:"{points}";}s:5:"class";s:27:"TemplServiceRecommendations";}', 'a:2:{s:6:"points";i:1;s:10:"connection";s:14:"bx_groups_fans";}', 0.5, 1);
  1962. CREATE TABLE `sys_recommendation_data` (
  1963. `id` int(11) NOT NULL auto_increment,
  1964. `profile_id` int(11) NOT NULL default '0',
  1965. `object_id` int(11) NOT NULL default '0',
  1966. `item_id` int(11) NOT NULL default '0',
  1967. `item_type` varchar(64) NOT NULL default '',
  1968. `item_value` int(11) NOT NULL default '0',
  1969. `item_reducer` int(11) NOT NULL default '0',
  1970. PRIMARY KEY (`id`),
  1971. UNIQUE KEY `recommendation` (`profile_id`, `object_id`, `item_id`)
  1972. );
  1973. -- --------------------------------------------------------
  1974. CREATE TABLE `sys_cron_jobs` (
  1975. `id` int(11) unsigned NOT NULL auto_increment,
  1976. `name` varchar(128) NOT NULL default '',
  1977. `time` varchar(128) NOT NULL default '*',
  1978. `class` varchar(128) NOT NULL default '',
  1979. `file` varchar(255) NOT NULL default '',
  1980. `service_call` text NOT NULL default '',
  1981. `ts` int(11) NOT NULL,
  1982. `timing` float NOT NULL,
  1983. PRIMARY KEY (`id`)
  1984. );
  1985. INSERT INTO `sys_cron_jobs` (`name`, `time`, `class`, `file`, `service_call`) VALUES
  1986. ('pruning', '0 0 * * *', 'BxDolCronPruning', 'inc/classes/BxDolCronPruning.php', ''),
  1987. ('sys_acl', '0 0 * * *', 'BxDolCronAcl', 'inc/classes/BxDolCronAcl.php', ''),
  1988. ('sys_account', '0 0 * * *', 'BxDolCronAccount', 'inc/classes/BxDolCronAccount.php', ''),
  1989. ('sys_profile', '0 0 * * *', 'BxDolCronProfile', 'inc/classes/BxDolCronProfile.php', ''),
  1990. ('sys_upgrade', '0 3 * * *', 'BxDolCronUpgradeCheck', 'inc/classes/BxDolCronUpgradeCheck.php', ''),
  1991. ('sys_upgrade_modules', '30 2 * * *', 'BxDolCronUpgradeModulesCheck', 'inc/classes/BxDolCronUpgradeModulesCheck.php', ''),
  1992. ('sys_storage', '* * * * *', 'BxDolCronStorage', 'inc/classes/BxDolCronStorage.php', ''),
  1993. ('sys_transcoder', '* * * * *', 'BxDolCronTranscoder', 'inc/classes/BxDolCronTranscoder.php', ''),
  1994. ('sys_queue_email', '* * * * *', 'BxDolCronQueueEmail', 'inc/classes/BxDolCronQueueEmail.php', ''),
  1995. ('sys_queue_push', '* * * * *', 'BxDolCronQueuePush', 'inc/classes/BxDolCronQueuePush.php', ''),
  1996. ('sys_audit_clean', '* * * * *', 'BxDolCronAudit', 'inc/classes/BxDolCronAudit.php', '');
  1997. -- --------------------------------------------------------
  1998. CREATE TABLE IF NOT EXISTS `sys_objects_storage` (
  1999. `id` int(11) NOT NULL AUTO_INCREMENT,
  2000. `object` varchar(64) NOT NULL,
  2001. `engine` varchar(32) NOT NULL,
  2002. `params` text NOT NULL,
  2003. `token_life` int(11) NOT NULL,
  2004. `cache_control` int(11) NOT NULL,
  2005. `levels` tinyint(4) NOT NULL,
  2006. `table_files` varchar(64) NOT NULL,
  2007. `ext_mode` enum('allow-deny','deny-allow') NOT NULL,
  2008. `ext_allow` text NOT NULL,
  2009. `ext_deny` text NOT NULL,
  2010. `quota_size` int(11) NOT NULL,
  2011. `current_size` int(11) NOT NULL,
  2012. `quota_number` int(11) NOT NULL,
  2013. `current_number` int(11) NOT NULL,
  2014. `max_file_size` int(11) NOT NULL,
  2015. `ts` int(11) NOT NULL,
  2016. PRIMARY KEY (`id`),
  2017. UNIQUE KEY `object` (`object`)
  2018. );
  2019. 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
  2020. ('sys_images', 'Local', '', 360, 2592000, 0, 'sys_images', 'allow-deny', '{image},svg', '', 0, 0, 0, 0, 0, 0),
  2021. ('sys_images_custom', 'Local', '', 360, 2592000, 0, 'sys_images_custom', 'allow-deny', '{image},svg', '', 0, 0, 0, 0, 0, 0),
  2022. ('sys_images_resized', 'Local', '', 360, 2592000, 0, 'sys_images_resized', 'allow-deny', '{image},svg', '', 0, 0, 0, 0, 0, 0),
  2023. ('sys_cmts_images', 'Local', '', 360, 2592000, 3, 'sys_cmts_images', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  2024. ('sys_cmts_images_preview', 'Local', '', 360, 2592000, 3, 'sys_cmts_images_preview', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  2025. ('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),
  2026. ('sys_files', 'Local', '', 360, 2592000, 3, 'sys_files', 'deny-allow', '', '{dangerous}', 0, 0, 0, 0, 0, 0),
  2027. ('sys_images_editor', 'Local', '', 360, 2592000, 3, 'sys_images_editor', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  2028. ('sys_images_editor_resized', 'Local', '', 360, 2592000, 3, 'sys_images_editor_resized', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  2029. ('sys_wiki_files', 'Local', '', 360, 2592000, 3, 'sys_wiki_files', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  2030. ('sys_wiki_images_resized', 'Local', '', 360, 2592000, 3, 'sys_wiki_images_resized', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0);
  2031. CREATE TABLE IF NOT EXISTS `sys_storage_user_quotas` (
  2032. `profile_id` int(11) NOT NULL,
  2033. `current_size` bigint(20) NOT NULL,
  2034. `current_number` int(11) NOT NULL,
  2035. `ts` int(11) NOT NULL,
  2036. PRIMARY KEY (`profile_id`)
  2037. );
  2038. CREATE TABLE IF NOT EXISTS `sys_storage_tokens` (
  2039. `iid` int(11) NOT NULL AUTO_INCREMENT,
  2040. `id` int(11) NOT NULL,
  2041. `object` varchar(64) NOT NULL,
  2042. `hash` varchar(32) NOT NULL,
  2043. `created` int(10) unsigned NOT NULL,
  2044. PRIMARY KEY (`iid`),
  2045. UNIQUE KEY `id` (`id`,`object`,`hash`),
  2046. KEY `created` (`created`)
  2047. );
  2048. CREATE TABLE IF NOT EXISTS `sys_storage_ghosts` (
  2049. `iid` int(11) NOT NULL AUTO_INCREMENT,
  2050. `id` int(11) NOT NULL,
  2051. `profile_id` int(10) unsigned NOT NULL,
  2052. `object` varchar(64) NOT NULL,
  2053. `content_id` int(11) NOT NULL,
  2054. `created` int(10) unsigned NOT NULL,
  2055. `order` int(11) NOT NULL default '0',
  2056. PRIMARY KEY (`iid`),
  2057. UNIQUE KEY `id` (`id`,`object`),
  2058. KEY `created` (`created`),
  2059. KEY `profile_object_content` (`profile_id`,`object`,`content_id`)
  2060. );
  2061. CREATE TABLE IF NOT EXISTS `sys_storage_deletions` (
  2062. `id` int(11) NOT NULL AUTO_INCREMENT,
  2063. `object` varchar(64) NOT NULL,
  2064. `file_id` int(11) NOT NULL,
  2065. `requested` int(10) unsigned NOT NULL,
  2066. PRIMARY KEY (`id`),
  2067. UNIQUE KEY `object_file_id` (`object`,`file_id`),
  2068. KEY `requested` (`requested`)
  2069. );
  2070. CREATE TABLE IF NOT EXISTS `sys_storage_mime_types` (
  2071. `ext` varchar(32) NOT NULL,
  2072. `mime_type` varchar(128) NOT NULL,
  2073. `icon` varchar(255) NOT NULL,
  2074. `icon_font` varchar(255) NOT NULL,
  2075. PRIMARY KEY (`ext`)
  2076. );
  2077. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2078. ('ez', 'application/andrew-inset', '', ''),
  2079. ('aw', 'application/applixware', '', ''),
  2080. ('atom', 'application/atom+xml', '', ''),
  2081. ('atomcat', 'application/atomcat+xml', '', ''),
  2082. ('atomsvc', 'application/atomsvc+xml', '', ''),
  2083. ('ccxml', 'application/ccxml+xml', '', ''),
  2084. ('cdmia', 'application/cdmi-capability', '', ''),
  2085. ('cdmic', 'application/cdmi-container', '', ''),
  2086. ('cdmid', 'application/cdmi-domain', '', ''),
  2087. ('cdmio', 'application/cdmi-object', '', ''),
  2088. ('cdmiq', 'application/cdmi-queue', '', ''),
  2089. ('cu', 'application/cu-seeme', '', ''),
  2090. ('davmount', 'application/davmount+xml', '', ''),
  2091. ('dbk', 'application/docbook+xml', '', ''),
  2092. ('dssc', 'application/dssc+der', '', ''),
  2093. ('xdssc', 'application/dssc+xml', '', ''),
  2094. ('ecma', 'application/ecmascript', '', ''),
  2095. ('emma', 'application/emma+xml', '', ''),
  2096. ('epub', 'application/epub+zip', '', ''),
  2097. ('exi', 'application/exi', '', ''),
  2098. ('pfr', 'application/font-tdpfr', '', ''),
  2099. ('gml', 'application/gml+xml', '', ''),
  2100. ('gpx', 'application/gpx+xml', '', ''),
  2101. ('gxf', 'application/gxf', '', ''),
  2102. ('stk', 'application/hyperstudio', '', ''),
  2103. ('ink', 'application/inkml+xml', '', ''),
  2104. ('inkml', 'application/inkml+xml', '', ''),
  2105. ('ipfix', 'application/ipfix', '', ''),
  2106. ('jar', 'application/java-archive', '', ''),
  2107. ('ser', 'application/java-serialized-object', '', ''),
  2108. ('class', 'application/java-vm', '', ''),
  2109. ('js', 'application/javascript', '', 'far file-code'),
  2110. ('json', 'application/json', '', 'far file-code'),
  2111. ('jsonml', 'application/jsonml+json', '', ''),
  2112. ('lostxml', 'application/lost+xml', '', ''),
  2113. ('hqx', 'application/mac-binhex40', '', ''),
  2114. ('cpt', 'application/mac-compactpro', '', ''),
  2115. ('mads', 'application/mads+xml', '', ''),
  2116. ('mrc', 'application/marc', '', ''),
  2117. ('mrcx', 'application/marcxml+xml', '', ''),
  2118. ('ma', 'application/mathematica', '', ''),
  2119. ('nb', 'application/mathematica', '', ''),
  2120. ('mb', 'application/mathematica', '', ''),
  2121. ('mathml', 'application/mathml+xml', '', ''),
  2122. ('mbox', 'application/mbox', '', 'far file-code'),
  2123. ('mscml', 'application/mediaservercontrol+xml', '', ''),
  2124. ('metalink', 'application/metalink+xml', '', ''),
  2125. ('meta4', 'application/metalink4+xml', '', ''),
  2126. ('mets', 'application/mets+xml', '', ''),
  2127. ('mods', 'application/mods+xml', '', ''),
  2128. ('m21', 'application/mp21', '', ''),
  2129. ('mp21', 'application/mp21', '', ''),
  2130. ('mp4s', 'application/mp4', '', ''),
  2131. ('doc', 'application/msword', 'mime-type-document.svg', 'far file-word'),
  2132. ('dot', 'application/msword', '', ''),
  2133. ('mxf', 'application/mxf', '', ''),
  2134. ('bin', 'application/octet-stream', '', ''),
  2135. ('dms', 'application/octet-stream', '', ''),
  2136. ('lrf', 'application/octet-stream', '', ''),
  2137. ('mar', 'application/octet-stream', '', ''),
  2138. ('so', 'application/octet-stream', '', ''),
  2139. ('dist', 'application/octet-stream', '', ''),
  2140. ('distz', 'application/octet-stream', '', ''),
  2141. ('pkg', 'application/octet-stream', '', ''),
  2142. ('bpk', 'application/octet-stream', '', ''),
  2143. ('dump', 'application/octet-stream', '', ''),
  2144. ('elc', 'application/octet-stream', '', ''),
  2145. ('deploy', 'application/octet-stream', '', ''),
  2146. ('mobipocket-ebook', 'application/octet-stream', '', ''),
  2147. ('oda', 'application/oda', '', ''),
  2148. ('opf', 'application/oebps-package+xml', '', ''),
  2149. ('ogx', 'application/ogg', '', ''),
  2150. ('omdoc', 'application/omdoc+xml', '', ''),
  2151. ('onetoc', 'application/onenote', '', ''),
  2152. ('onetoc2', 'application/onenote', '', ''),
  2153. ('onetmp', 'application/onenote', '', ''),
  2154. ('onepkg', 'application/onenote', '', ''),
  2155. ('oxps', 'application/oxps', '', ''),
  2156. ('xer', 'application/patch-ops-error+xml', '', ''),
  2157. ('pdf', 'application/pdf', 'mime-type-document.svg', 'far file-pdf'),
  2158. ('pgp', 'application/pgp-encrypted', '', 'far file-code'),
  2159. ('asc', 'application/pgp-signature', '', 'far file-code'),
  2160. ('sig', 'application/pgp-signature', '', 'far file-code'),
  2161. ('prf', 'application/pics-rules', '', ''),
  2162. ('p10', 'application/pkcs10', 'mime-type-vector.svg', ''),
  2163. ('p7m', 'application/pkcs7-mime', '', ''),
  2164. ('p7c', 'application/pkcs7-mime', '', ''),
  2165. ('p7s', 'application/pkcs7-signature', '', ''),
  2166. ('p8', 'application/pkcs8', '', ''),
  2167. ('ac', 'application/pkix-attr-cert', '', ''),
  2168. ('cer', 'application/pkix-cert', '', ''),
  2169. ('crl', 'application/pkix-crl', '', ''),
  2170. ('pkipath', 'application/pkix-pkipath', '', ''),
  2171. ('pki', 'application/pkixcmp', '', ''),
  2172. ('pls', 'application/pls+xml', '', ''),
  2173. ('ai', 'application/postscript', 'mime-type-vector.svg', ''),
  2174. ('eps', 'application/postscript', '', ''),
  2175. ('ps', 'application/postscript', 'mime-type-vector.svg', ''),
  2176. ('cww', 'application/prs.cww', '', ''),
  2177. ('pskcxml', 'application/pskc+xml', '', ''),
  2178. ('rdf', 'application/rdf+xml', '', 'far file-code'),
  2179. ('rif', 'application/reginfo+xml', '', ''),
  2180. ('rnc', 'application/relax-ng-compact-syntax', '', ''),
  2181. ('rl', 'application/resource-lists+xml', '', ''),
  2182. ('rld', 'application/resource-lists-diff+xml', '', ''),
  2183. ('rs', 'application/rls-services+xml', '', ''),
  2184. ('gbr', 'application/rpki-ghostbusters', '', ''),
  2185. ('mft', 'application/rpki-manifest', '', ''),
  2186. ('roa', 'application/rpki-roa', '', ''),
  2187. ('rsd', 'application/rsd+xml', '', ''),
  2188. ('rss', 'application/rss+xml', '', 'far file-code'),
  2189. ('rtf', 'application/rtf', 'mime-type-document.svg', ''),
  2190. ('sbml', 'application/sbml+xml', '', ''),
  2191. ('scq', 'application/scvp-cv-request', '', ''),
  2192. ('scs', 'application/scvp-cv-response', '', ''),
  2193. ('spq', 'application/scvp-vp-request', '', ''),
  2194. ('spp', 'application/scvp-vp-response', '', ''),
  2195. ('sdp', 'application/sdp', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2196. ('setpay', 'application/set-payment-initiation', '', ''),
  2197. ('setreg', 'application/set-registration-initiation', '', ''),
  2198. ('shf', 'application/shf+xml', '', ''),
  2199. ('smi', 'application/smil+xml', '', ''),
  2200. ('smil', 'application/smil+xml', '', ''),
  2201. ('rq', 'application/sparql-query', '', 'far file-code'),
  2202. ('srx', 'application/sparql-results+xml', '', ''),
  2203. ('gram', 'application/srgs', '', ''),
  2204. ('grxml', 'application/srgs+xml', '', ''),
  2205. ('sru', 'application/sru+xml', '', ''),
  2206. ('ssdl', 'application/ssdl+xml', '', ''),
  2207. ('ssml', 'application/ssml+xml', '', ''),
  2208. ('tei', 'application/tei+xml', '', ''),
  2209. ('teicorpus', 'application/tei+xml', '', ''),
  2210. ('tfi', 'application/thraud+xml', '', ''),
  2211. ('tsd', 'application/timestamped-data', '', ''),
  2212. ('plb', 'application/vnd.3gpp.pic-bw-large', '', ''),
  2213. ('psb', 'application/vnd.3gpp.pic-bw-small', '', ''),
  2214. ('pvb', 'application/vnd.3gpp.pic-bw-var', '', ''),
  2215. ('tcap', 'application/vnd.3gpp2.tcap', '', ''),
  2216. ('pwn', 'application/vnd.3m.post-it-notes', '', ''),
  2217. ('aso', 'application/vnd.accpac.simply.aso', '', ''),
  2218. ('imp', 'application/vnd.accpac.simply.imp', '', ''),
  2219. ('acu', 'application/vnd.acucobol', '', ''),
  2220. ('atc', 'application/vnd.acucorp', '', ''),
  2221. ('acutc', 'application/vnd.acucorp', '', ''),
  2222. ('air', 'application/vnd.adobe.air-application-installer-package+zip', '', ''),
  2223. ('fcdt', 'application/vnd.adobe.formscentral.fcdt', '', ''),
  2224. ('fxp', 'application/vnd.adobe.fxp', '', ''),
  2225. ('fxpl', 'application/vnd.adobe.fxp', '', ''),
  2226. ('xdp', 'application/vnd.adobe.xdp+xml', '', ''),
  2227. ('xfdf', 'application/vnd.adobe.xfdf', '', ''),
  2228. ('ahead', 'application/vnd.ahead.space', '', ''),
  2229. ('azf', 'application/vnd.airzip.filesecure.azf', '', ''),
  2230. ('azs', 'application/vnd.airzip.filesecure.azs', '', ''),
  2231. ('azw', 'application/vnd.amazon.ebook', '', ''),
  2232. ('acc', 'application/vnd.americandynamics.acc', '', ''),
  2233. ('ami', 'application/vnd.amiga.ami', '', ''),
  2234. ('apk', 'application/vnd.android.package-archive', '', ''),
  2235. ('cii', 'application/vnd.anser-web-certificate-issue-initiation', '', ''),
  2236. ('fti', 'application/vnd.anser-web-funds-transfer-initiation', '', ''),
  2237. ('atx', 'application/vnd.antix.game-component', '', ''),
  2238. ('mpkg', 'application/vnd.apple.installer+xml', '', ''),
  2239. ('m3u8', 'application/vnd.apple.mpegurl', '', ''),
  2240. ('swi', 'application/vnd.aristanetworks.swi', '', ''),
  2241. ('iota', 'application/vnd.astraea-software.iota', '', ''),
  2242. ('aep', 'application/vnd.audiograph', '', ''),
  2243. ('mpm', 'application/vnd.blueice.multipass', '', ''),
  2244. ('bmi', 'application/vnd.bmi', '', ''),
  2245. ('rep', 'application/vnd.businessobjects', '', ''),
  2246. ('cdxml', 'application/vnd.chemdraw+xml', '', ''),
  2247. ('mmd', 'application/vnd.chipnuts.karaoke-mmd', '', ''),
  2248. ('cdy', 'application/vnd.cinderella', '', ''),
  2249. ('cla', 'application/vnd.claymore', '', ''),
  2250. ('rp9', 'application/vnd.cloanto.rp9', '', ''),
  2251. ('c4g', 'application/vnd.clonk.c4group', '', ''),
  2252. ('c4d', 'application/vnd.clonk.c4group', '', ''),
  2253. ('c4f', 'application/vnd.clonk.c4group', '', ''),
  2254. ('c4p', 'application/vnd.clonk.c4group', '', ''),
  2255. ('c4u', 'application/vnd.clonk.c4group', '', ''),
  2256. ('c11amc', 'application/vnd.cluetrust.cartomobile-config', '', ''),
  2257. ('c11amz', 'application/vnd.cluetrust.cartomobile-config-pkg', '', ''),
  2258. ('csp', 'application/vnd.commonspace', '', ''),
  2259. ('cdbcmsg', 'application/vnd.contact.cmsg', '', ''),
  2260. ('cmc', 'application/vnd.cosmocaller', '', ''),
  2261. ('clkx', 'application/vnd.crick.clicker', '', ''),
  2262. ('clkk', 'application/vnd.crick.clicker.keyboard', '', ''),
  2263. ('clkp', 'application/vnd.crick.clicker.palette', '', ''),
  2264. ('clkt', 'application/vnd.crick.clicker.template', '', ''),
  2265. ('clkw', 'application/vnd.crick.clicker.wordbank', '', ''),
  2266. ('wbs', 'application/vnd.criticaltools.wbs+xml', '', ''),
  2267. ('pml', 'application/vnd.ctc-posml', '', ''),
  2268. ('ppd', 'application/vnd.cups-ppd', '', ''),
  2269. ('car', 'application/vnd.curl.car', '', ''),
  2270. ('pcurl', 'application/vnd.curl.pcurl', '', ''),
  2271. ('dart', 'application/vnd.dart', '', ''),
  2272. ('rdz', 'application/vnd.data-vision.rdz', '', ''),
  2273. ('uvf', 'application/vnd.dece.data', '', ''),
  2274. ('uvvf', 'application/vnd.dece.data', '', ''),
  2275. ('uvd', 'application/vnd.dece.data', '', ''),
  2276. ('uvvd', 'application/vnd.dece.data', '', ''),
  2277. ('uvt', 'application/vnd.dece.ttml+xml', '', ''),
  2278. ('uvvt', 'application/vnd.dece.ttml+xml', '', ''),
  2279. ('uvx', 'application/vnd.dece.unspecified', '', ''),
  2280. ('uvvx', 'application/vnd.dece.unspecified', '', ''),
  2281. ('uvz', 'application/vnd.dece.zip', '', ''),
  2282. ('uvvz', 'application/vnd.dece.zip', '', ''),
  2283. ('fe_launch', 'application/vnd.denovo.fcselayout-link', '', ''),
  2284. ('dna', 'application/vnd.dna', '', ''),
  2285. ('mlp', 'application/vnd.dolby.mlp', '', ''),
  2286. ('dpg', 'application/vnd.dpgraph', '', ''),
  2287. ('dfac', 'application/vnd.dreamfactory', '', ''),
  2288. ('kpxx', 'application/vnd.ds-keypoint', '', ''),
  2289. ('ait', 'application/vnd.dvb.ait', 'mime-type-vector.svg', ''),
  2290. ('svc', 'application/vnd.dvb.service', '', '');
  2291. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2292. ('geo', 'application/vnd.dynageo', '', ''),
  2293. ('mag', 'application/vnd.ecowin.chart', '', ''),
  2294. ('nml', 'application/vnd.enliven', '', ''),
  2295. ('esf', 'application/vnd.epson.esf', '', ''),
  2296. ('msf', 'application/vnd.epson.msf', '', ''),
  2297. ('qam', 'application/vnd.epson.quickanime', '', ''),
  2298. ('slt', 'application/vnd.epson.salt', '', ''),
  2299. ('ssf', 'application/vnd.epson.ssf', '', ''),
  2300. ('es3', 'application/vnd.eszigno3+xml', '', ''),
  2301. ('et3', 'application/vnd.eszigno3+xml', '', ''),
  2302. ('ez2', 'application/vnd.ezpix-album', '', ''),
  2303. ('ez3', 'application/vnd.ezpix-package', '', ''),
  2304. ('fdf', 'application/vnd.fdf', '', ''),
  2305. ('mseed', 'application/vnd.fdsn.mseed', '', ''),
  2306. ('seed', 'application/vnd.fdsn.seed', '', ''),
  2307. ('dataless', 'application/vnd.fdsn.seed', '', ''),
  2308. ('gph', 'application/vnd.flographit', '', ''),
  2309. ('ftc', 'application/vnd.fluxtime.clip', '', ''),
  2310. ('fm', 'application/vnd.framemaker', '', ''),
  2311. ('frame', 'application/vnd.framemaker', '', ''),
  2312. ('maker', 'application/vnd.framemaker', '', ''),
  2313. ('book', 'application/vnd.framemaker', '', ''),
  2314. ('fnc', 'application/vnd.frogans.fnc', '', ''),
  2315. ('ltf', 'application/vnd.frogans.ltf', '', ''),
  2316. ('fsc', 'application/vnd.fsc.weblaunch', '', ''),
  2317. ('oas', 'application/vnd.fujitsu.oasys', '', ''),
  2318. ('oa2', 'application/vnd.fujitsu.oasys2', '', ''),
  2319. ('oa3', 'application/vnd.fujitsu.oasys3', '', ''),
  2320. ('fg5', 'application/vnd.fujitsu.oasysgp', '', ''),
  2321. ('bh2', 'application/vnd.fujitsu.oasysprs', '', ''),
  2322. ('ddd', 'application/vnd.fujixerox.ddd', '', ''),
  2323. ('xdw', 'application/vnd.fujixerox.docuworks', '', ''),
  2324. ('xbd', 'application/vnd.fujixerox.docuworks.binder', '', ''),
  2325. ('fzs', 'application/vnd.fuzzysheet', '', ''),
  2326. ('txd', 'application/vnd.genomatix.tuxedo', '', ''),
  2327. ('ggb', 'application/vnd.geogebra.file', '', ''),
  2328. ('ggt', 'application/vnd.geogebra.tool', '', ''),
  2329. ('gex', 'application/vnd.geometry-explorer', '', ''),
  2330. ('gre', 'application/vnd.geometry-explorer', '', ''),
  2331. ('gxt', 'application/vnd.geonext', '', ''),
  2332. ('g2w', 'application/vnd.geoplan', '', ''),
  2333. ('g3w', 'application/vnd.geospace', '', ''),
  2334. ('gmx', 'application/vnd.gmx', '', ''),
  2335. ('kml', 'application/vnd.google-earth.kml+xml', '', ''),
  2336. ('kmz', 'application/vnd.google-earth.kmz', '', ''),
  2337. ('gqf', 'application/vnd.grafeq', '', ''),
  2338. ('gqs', 'application/vnd.grafeq', '', ''),
  2339. ('gac', 'application/vnd.groove-account', '', ''),
  2340. ('ghf', 'application/vnd.groove-help', '', ''),
  2341. ('gim', 'application/vnd.groove-identity-message', '', ''),
  2342. ('grv', 'application/vnd.groove-injector', '', ''),
  2343. ('gtm', 'application/vnd.groove-tool-message', '', ''),
  2344. ('tpl', 'application/vnd.groove-tool-template', '', 'far file-code'),
  2345. ('vcg', 'application/vnd.groove-vcard', '', ''),
  2346. ('hal', 'application/vnd.hal+xml', '', ''),
  2347. ('zmm', 'application/vnd.handheld-entertainment+xml', '', ''),
  2348. ('hbci', 'application/vnd.hbci', '', ''),
  2349. ('les', 'application/vnd.hhe.lesson-player', '', ''),
  2350. ('hpgl', 'application/vnd.hp-hpgl', 'mime-type-vector.svg', ''),
  2351. ('hpid', 'application/vnd.hp-hpid', '', ''),
  2352. ('hps', 'application/vnd.hp-hps', '', ''),
  2353. ('jlt', 'application/vnd.hp-jlyt', '', ''),
  2354. ('pcl', 'application/vnd.hp-pcl', '', ''),
  2355. ('pclxl', 'application/vnd.hp-pclxl', '', ''),
  2356. ('sfd-hdstx', 'application/vnd.hydrostatix.sof-data', '', ''),
  2357. ('mpy', 'application/vnd.ibm.minipay', '', ''),
  2358. ('afp', 'application/vnd.ibm.modcap', '', ''),
  2359. ('listafp', 'application/vnd.ibm.modcap', '', ''),
  2360. ('list3820', 'application/vnd.ibm.modcap', '', ''),
  2361. ('irm', 'application/vnd.ibm.rights-management', '', ''),
  2362. ('sc', 'application/vnd.ibm.secure-container', '', ''),
  2363. ('icc', 'application/vnd.iccprofile', '', ''),
  2364. ('icm', 'application/vnd.iccprofile', '', ''),
  2365. ('igl', 'application/vnd.igloader', '', ''),
  2366. ('ivp', 'application/vnd.immervision-ivp', '', ''),
  2367. ('ivu', 'application/vnd.immervision-ivu', '', ''),
  2368. ('igm', 'application/vnd.insors.igm', '', ''),
  2369. ('xpw', 'application/vnd.intercon.formnet', '', ''),
  2370. ('xpx', 'application/vnd.intercon.formnet', '', ''),
  2371. ('i2g', 'application/vnd.intergeo', '', ''),
  2372. ('qbo', 'application/vnd.intu.qbo', '', ''),
  2373. ('qfx', 'application/vnd.intu.qfx', '', ''),
  2374. ('rcprofile', 'application/vnd.ipunplugged.rcprofile', '', ''),
  2375. ('irp', 'application/vnd.irepository.package+xml', '', ''),
  2376. ('xpr', 'application/vnd.is-xpr', '', ''),
  2377. ('fcs', 'application/vnd.isac.fcs', '', ''),
  2378. ('jam', 'application/vnd.jam', '', ''),
  2379. ('rms', 'application/vnd.jcp.javame.midlet-rms', '', ''),
  2380. ('jisp', 'application/vnd.jisp', '', ''),
  2381. ('joda', 'application/vnd.joost.joda-archive', '', ''),
  2382. ('ktz', 'application/vnd.kahootz', '', ''),
  2383. ('ktr', 'application/vnd.kahootz', '', ''),
  2384. ('karbon', 'application/vnd.kde.karbon', '', ''),
  2385. ('chrt', 'application/vnd.kde.kchart', '', ''),
  2386. ('kfo', 'application/vnd.kde.kformula', '', ''),
  2387. ('flw', 'application/vnd.kde.kivio', '', ''),
  2388. ('kon', 'application/vnd.kde.kontour', '', ''),
  2389. ('kpr', 'application/vnd.kde.kpresenter', '', ''),
  2390. ('kpt', 'application/vnd.kde.kpresenter', '', ''),
  2391. ('ksp', 'application/vnd.kde.kspread', '', ''),
  2392. ('kwd', 'application/vnd.kde.kword', '', ''),
  2393. ('kwt', 'application/vnd.kde.kword', '', ''),
  2394. ('htke', 'application/vnd.kenameaapp', '', ''),
  2395. ('kia', 'application/vnd.kidspiration', '', ''),
  2396. ('kne', 'application/vnd.kinar', '', ''),
  2397. ('knp', 'application/vnd.kinar', '', ''),
  2398. ('skp', 'application/vnd.koan', '', ''),
  2399. ('skd', 'application/vnd.koan', '', ''),
  2400. ('skt', 'application/vnd.koan', '', ''),
  2401. ('skm', 'application/vnd.koan', '', ''),
  2402. ('sse', 'application/vnd.kodak-descriptor', '', ''),
  2403. ('lasxml', 'application/vnd.las.las+xml', '', ''),
  2404. ('lbd', 'application/vnd.llamagraphics.life-balance.desktop', '', ''),
  2405. ('lbe', 'application/vnd.llamagraphics.life-balance.exchange+xml', '', ''),
  2406. ('123', 'application/vnd.lotus-1-2-3', '', ''),
  2407. ('apr', 'application/vnd.lotus-approach', '', ''),
  2408. ('pre', 'application/vnd.lotus-freelance', '', ''),
  2409. ('nsf', 'application/vnd.lotus-notes', '', ''),
  2410. ('org', 'application/vnd.lotus-organizer', '', ''),
  2411. ('scm', 'application/vnd.lotus-screencam', '', ''),
  2412. ('lwp', 'application/vnd.lotus-wordpro', '', ''),
  2413. ('portpkg', 'application/vnd.macports.portpkg', '', ''),
  2414. ('mcd', 'application/vnd.mcd', '', ''),
  2415. ('mc1', 'application/vnd.medcalcdata', '', ''),
  2416. ('cdkey', 'application/vnd.mediastation.cdkey', '', ''),
  2417. ('mwf', 'application/vnd.mfer', '', ''),
  2418. ('mfm', 'application/vnd.mfmp', '', ''),
  2419. ('flo', 'application/vnd.micrografx.flo', '', ''),
  2420. ('igx', 'application/vnd.micrografx.igx', '', ''),
  2421. ('mif', 'application/vnd.mif', '', ''),
  2422. ('daf', 'application/vnd.mobius.daf', '', ''),
  2423. ('dis', 'application/vnd.mobius.dis', '', ''),
  2424. ('mbk', 'application/vnd.mobius.mbk', '', ''),
  2425. ('mqy', 'application/vnd.mobius.mqy', '', ''),
  2426. ('msl', 'application/vnd.mobius.msl', '', ''),
  2427. ('plc', 'application/vnd.mobius.plc', '', ''),
  2428. ('txf', 'application/vnd.mobius.txf', '', ''),
  2429. ('mpn', 'application/vnd.mophun.application', '', ''),
  2430. ('mpc', 'application/vnd.mophun.certificate', '', ''),
  2431. ('xul', 'application/vnd.mozilla.xul+xml', '', ''),
  2432. ('cil', 'application/vnd.ms-artgalry', 'mime-type-vector.svg', ''),
  2433. ('taxi', 'application/vnd.ms-cab-compressed', 'mime-type-archive.svg', 'far file-archive'),
  2434. ('xls', 'application/vnd.ms-excel', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2435. ('xlm', 'application/vnd.ms-excel', '', ''),
  2436. ('xla', 'application/vnd.ms-excel', '', ''),
  2437. ('xlc', 'application/vnd.ms-excel', '', ''),
  2438. ('xlt', 'application/vnd.ms-excel', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2439. ('xlw', 'application/vnd.ms-excel', '', ''),
  2440. ('xlam', 'application/vnd.ms-excel.addin.macroenabled.12', '', ''),
  2441. ('xlsb', 'application/vnd.ms-excel.sheet.binary.macroenabled.12', '', ''),
  2442. ('xlsm', 'application/vnd.ms-excel.sheet.macroenabled.12', '', ''),
  2443. ('xltm', 'application/vnd.ms-excel.template.macroenabled.12', '', ''),
  2444. ('eot', 'application/vnd.ms-fontobject', '', ''),
  2445. ('chm', 'application/vnd.ms-htmlhelp', '', ''),
  2446. ('ims', 'application/vnd.ms-ims', '', ''),
  2447. ('lrm', 'application/vnd.ms-lrm', '', ''),
  2448. ('thmx', 'application/vnd.ms-officetheme', '', ''),
  2449. ('cat', 'application/vnd.ms-pki.seccat', '', ''),
  2450. ('stl', 'application/vnd.ms-pki.stl', '', ''),
  2451. ('ppt', 'application/vnd.ms-powerpoint', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2452. ('pps', 'application/vnd.ms-powerpoint', '', ''),
  2453. ('pot', 'application/vnd.ms-powerpoint', '', ''),
  2454. ('ppam', 'application/vnd.ms-powerpoint.addin.macroenabled.12', '', ''),
  2455. ('pptm', 'application/vnd.ms-powerpoint.presentation.macroenabled.12', '', ''),
  2456. ('sldm', 'application/vnd.ms-powerpoint.slide.macroenabled.12', '', ''),
  2457. ('ppsm', 'application/vnd.ms-powerpoint.slideshow.macroenabled.12', '', ''),
  2458. ('potm', 'application/vnd.ms-powerpoint.template.macroenabled.12', '', ''),
  2459. ('mpp', 'application/vnd.ms-project', '', ''),
  2460. ('mpt', 'application/vnd.ms-project', '', ''),
  2461. ('docm', 'application/vnd.ms-word.document.macroenabled.12', '', ''),
  2462. ('dotm', 'application/vnd.ms-word.template.macroenabled.12', '', ''),
  2463. ('wps', 'application/vnd.ms-works', '', ''),
  2464. ('wks', 'application/vnd.ms-works', '', ''),
  2465. ('wcm', 'application/vnd.ms-works', '', ''),
  2466. ('wdb', 'application/vnd.ms-works', '', ''),
  2467. ('wpl', 'application/vnd.ms-wpl', '', ''),
  2468. ('xps', 'application/vnd.ms-xpsdocument', '', ''),
  2469. ('mseq', 'application/vnd.mseq', '', ''),
  2470. ('mus', 'application/vnd.musician', '', ''),
  2471. ('msty', 'application/vnd.muvee.style', '', ''),
  2472. ('taglet', 'application/vnd.mynfc', '', ''),
  2473. ('nlu', 'application/vnd.neurolanguage.nlu', '', ''),
  2474. ('ntf', 'application/vnd.nitf', '', ''),
  2475. ('nitf', 'application/vnd.nitf', '', ''),
  2476. ('nnd', 'application/vnd.noblenet-directory', '', ''),
  2477. ('nns', 'application/vnd.noblenet-sealer', '', ''),
  2478. ('nnw', 'application/vnd.noblenet-web', '', ''),
  2479. ('ngdat', 'application/vnd.nokia.n-gage.data', '', ''),
  2480. ('n-gage', 'application/vnd.nokia.n-gage.symbian.install', '', ''),
  2481. ('rpst', 'application/vnd.nokia.radio-preset', '', ''),
  2482. ('rpss', 'application/vnd.nokia.radio-presets', '', ''),
  2483. ('edm', 'application/vnd.novadigm.edm', '', ''),
  2484. ('edx', 'application/vnd.novadigm.edx', '', ''),
  2485. ('ext', 'application/vnd.novadigm.ext', '', ''),
  2486. ('odc', 'application/vnd.oasis.opendocument.chart', '', ''),
  2487. ('otc', 'application/vnd.oasis.opendocument.chart-template', '', ''),
  2488. ('odb', 'application/vnd.oasis.opendocument.database', '', ''),
  2489. ('odf', 'application/vnd.oasis.opendocument.formula', '', ''),
  2490. ('odft', 'application/vnd.oasis.opendocument.formula-template', '', '');
  2491. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2492. ('odg', 'application/vnd.oasis.opendocument.graphics', 'mime-type-vector.svg', ''),
  2493. ('otg', 'application/vnd.oasis.opendocument.graphics-template', '', ''),
  2494. ('odi', 'application/vnd.oasis.opendocument.image', '', ''),
  2495. ('oti', 'application/vnd.oasis.opendocument.image-template', '', ''),
  2496. ('odp', 'application/vnd.oasis.opendocument.presentation', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2497. ('otp', 'application/vnd.oasis.opendocument.presentation-template', '', ''),
  2498. ('ods', 'application/vnd.oasis.opendocument.spreadsheet', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2499. ('ots', 'application/vnd.oasis.opendocument.spreadsheet-template', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2500. ('odt', 'application/vnd.oasis.opendocument.text', 'mime-type-document.svg', ''),
  2501. ('odm', 'application/vnd.oasis.opendocument.text-master', '', ''),
  2502. ('ott', 'application/vnd.oasis.opendocument.text-template', 'mime-type-document.svg', ''),
  2503. ('oth', 'application/vnd.oasis.opendocument.text-web', '', ''),
  2504. ('xo', 'application/vnd.olpc-sugar', '', ''),
  2505. ('dd2', 'application/vnd.oma.dd2+xml', '', ''),
  2506. ('oxt', 'application/vnd.openofficeorg.extension', '', ''),
  2507. ('pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2508. ('sldx', 'application/vnd.openxmlformats-officedocument.presentationml.slide', '', ''),
  2509. ('ppsx', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', '', ''),
  2510. ('potx', 'application/vnd.openxmlformats-officedocument.presentationml.template', '', ''),
  2511. ('xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2512. ('xltx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', '', ''),
  2513. ('docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'mime-type-document.svg', 'far file-word'),
  2514. ('dotx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', '', ''),
  2515. ('mgp', 'application/vnd.osgeo.mapguide.package', '', ''),
  2516. ('dp', 'application/vnd.osgi.dp', '', ''),
  2517. ('esa', 'application/vnd.osgi.subsystem', '', ''),
  2518. ('pdb', 'application/vnd.palm', 'mime-type-document.svg', ''),
  2519. ('pqa', 'application/vnd.palm', '', ''),
  2520. ('oprc', 'application/vnd.palm', '', ''),
  2521. ('paw', 'application/vnd.pawaafile', '', ''),
  2522. ('str', 'application/vnd.pg.format', '', ''),
  2523. ('ei6', 'application/vnd.pg.osasli', '', ''),
  2524. ('efif', 'application/vnd.picsel', '', ''),
  2525. ('wg', 'application/vnd.pmi.widget', '', ''),
  2526. ('plf', 'application/vnd.pocketlearn', '', ''),
  2527. ('pbd', 'application/vnd.powerbuilder6', '', ''),
  2528. ('box', 'application/vnd.previewsystems.box', '', ''),
  2529. ('mgz', 'application/vnd.proteus.magazine', '', ''),
  2530. ('qps', 'application/vnd.publishare-delta-tree', '', ''),
  2531. ('ptid', 'application/vnd.pvi.ptid1', '', ''),
  2532. ('qxd', 'application/vnd.quark.quarkxpress', '', ''),
  2533. ('qxt', 'application/vnd.quark.quarkxpress', '', ''),
  2534. ('qwd', 'application/vnd.quark.quarkxpress', '', ''),
  2535. ('qwt', 'application/vnd.quark.quarkxpress', '', ''),
  2536. ('qxl', 'application/vnd.quark.quarkxpress', '', ''),
  2537. ('qxb', 'application/vnd.quark.quarkxpress', '', ''),
  2538. ('bed', 'application/vnd.realvnc.bed', '', ''),
  2539. ('mxl', 'application/vnd.recordare.musicxml', '', ''),
  2540. ('musicxml', 'application/vnd.recordare.musicxml+xml', '', ''),
  2541. ('cryptonote', 'application/vnd.rig.cryptonote', '', ''),
  2542. ('cod', 'application/vnd.rim.cod', '', ''),
  2543. ('rm', 'application/vnd.rn-realmedia', '', ''),
  2544. ('rmvb', 'application/vnd.rn-realmedia-vbr', '', ''),
  2545. ('link66', 'application/vnd.route66.link66+xml', '', ''),
  2546. ('st', 'application/vnd.sailingtracker.track', '', ''),
  2547. ('see', 'application/vnd.seemail', '', ''),
  2548. ('sema', 'application/vnd.sema', '', ''),
  2549. ('semd', 'application/vnd.semd', '', ''),
  2550. ('semf', 'application/vnd.semf', '', ''),
  2551. ('ifm', 'application/vnd.shana.informed.formdata', '', ''),
  2552. ('itp', 'application/vnd.shana.informed.formtemplate', '', ''),
  2553. ('iif', 'application/vnd.shana.informed.interchange', '', ''),
  2554. ('ipk', 'application/vnd.shana.informed.package', '', ''),
  2555. ('twd', 'application/vnd.simtech-mindmapper', '', ''),
  2556. ('twds', 'application/vnd.simtech-mindmapper', '', ''),
  2557. ('mmf', 'application/vnd.smaf', '', ''),
  2558. ('teacher', 'application/vnd.smart.teacher', '', ''),
  2559. ('sdkm', 'application/vnd.solent.sdkm+xml', '', ''),
  2560. ('sdkd', 'application/vnd.solent.sdkm+xml', '', ''),
  2561. ('dxp', 'application/vnd.spotfire.dxp', '', ''),
  2562. ('sfs', 'application/vnd.spotfire.sfs', '', ''),
  2563. ('sdc', 'application/vnd.stardivision.calc', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2564. ('sda', 'application/vnd.stardivision.draw', '', ''),
  2565. ('sdd', 'application/vnd.stardivision.impress', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2566. ('smf', 'application/vnd.stardivision.math', '', ''),
  2567. ('sdw', 'application/vnd.stardivision.writer', 'mime-type-document.svg', ''),
  2568. ('vor', 'application/vnd.stardivision.writer', '', ''),
  2569. ('sgl', 'application/vnd.stardivision.writer-global', '', ''),
  2570. ('smzip', 'application/vnd.stepmania.package', '', ''),
  2571. ('sm', 'application/vnd.stepmania.stepchart', '', ''),
  2572. ('sxc', 'application/vnd.sun.xml.calc', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2573. ('stc', 'application/vnd.sun.xml.calc.template', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2574. ('sxd', 'application/vnd.sun.xml.draw', 'mime-type-vector.svg', ''),
  2575. ('std', 'application/vnd.sun.xml.draw.template', '', ''),
  2576. ('sxi', 'application/vnd.sun.xml.impress', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2577. ('sti', 'application/vnd.sun.xml.impress.template', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2578. ('sxm', 'application/vnd.sun.xml.math', '', ''),
  2579. ('sxw', 'application/vnd.sun.xml.writer', 'mime-type-document.svg', ''),
  2580. ('sxg', 'application/vnd.sun.xml.writer.global', '', ''),
  2581. ('stw', 'application/vnd.sun.xml.writer.template', 'mime-type-document.svg', ''),
  2582. ('sus', 'application/vnd.sus-calendar', '', ''),
  2583. ('susp', 'application/vnd.sus-calendar', '', ''),
  2584. ('svd', 'application/vnd.svd', '', ''),
  2585. ('sis', 'application/vnd.symbian.install', '', ''),
  2586. ('sisx', 'application/vnd.symbian.install', '', ''),
  2587. ('xsm', 'application/vnd.syncml+xml', '', ''),
  2588. ('bdm', 'application/vnd.syncml.dm+wbxml', '', ''),
  2589. ('xdm', 'application/vnd.syncml.dm+xml', '', ''),
  2590. ('tao', 'application/vnd.tao.intent-module-archive', '', ''),
  2591. ('pcap', 'application/vnd.tcpdump.pcap', '', ''),
  2592. ('cap', 'application/vnd.tcpdump.pcap', '', ''),
  2593. ('dmp', 'application/vnd.tcpdump.pcap', '', ''),
  2594. ('tmo', 'application/vnd.tmobile-livetv', '', ''),
  2595. ('tpt', 'application/vnd.trid.tpt', '', ''),
  2596. ('mxs', 'application/vnd.triscape.mxs', '', ''),
  2597. ('tra', 'application/vnd.trueapp', '', ''),
  2598. ('ufd', 'application/vnd.ufdl', '', ''),
  2599. ('ufdl', 'application/vnd.ufdl', '', ''),
  2600. ('utz', 'application/vnd.uiq.theme', '', ''),
  2601. ('umj', 'application/vnd.umajin', '', ''),
  2602. ('unityweb', 'application/vnd.unity', '', ''),
  2603. ('uoml', 'application/vnd.uoml+xml', '', ''),
  2604. ('vcx', 'application/vnd.vcx', '', ''),
  2605. ('vsd', 'application/vnd.visio', '', ''),
  2606. ('vst', 'application/vnd.visio', '', ''),
  2607. ('vss', 'application/vnd.visio', 'mime-type-vector.svg', ''),
  2608. ('vsw', 'application/vnd.visio', '', ''),
  2609. ('vis', 'application/vnd.visionary', '', ''),
  2610. ('vsf', 'application/vnd.vsf', '', ''),
  2611. ('wbxml', 'application/vnd.wap.wbxml', '', ''),
  2612. ('wmlc', 'application/vnd.wap.wmlc', '', ''),
  2613. ('wmlsc', 'application/vnd.wap.wmlscriptc', '', ''),
  2614. ('wtb', 'application/vnd.webturbo', '', ''),
  2615. ('nbp', 'application/vnd.wolfram.player', '', ''),
  2616. ('wpd', 'application/vnd.wordperfect', '', ''),
  2617. ('wqd', 'application/vnd.wqd', '', ''),
  2618. ('stf', 'application/vnd.wt.stf', '', ''),
  2619. ('xar', 'application/vnd.xara', '', ''),
  2620. ('xfdl', 'application/vnd.xfdl', '', ''),
  2621. ('hvd', 'application/vnd.yamaha.hv-dic', '', ''),
  2622. ('hvs', 'application/vnd.yamaha.hv-script', '', ''),
  2623. ('hvp', 'application/vnd.yamaha.hv-voice', '', ''),
  2624. ('osf', 'application/vnd.yamaha.openscoreformat', '', ''),
  2625. ('osfpvg', 'application/vnd.yamaha.openscoreformat.osfpvg+xml', '', ''),
  2626. ('saf', 'application/vnd.yamaha.smaf-audio', '', ''),
  2627. ('spf', 'application/vnd.yamaha.smaf-phrase', '', ''),
  2628. ('cmp', 'application/vnd.yellowriver-custom-menu', '', ''),
  2629. ('zir', 'application/vnd.zul', '', ''),
  2630. ('zirz', 'application/vnd.zul', '', ''),
  2631. ('zaz', 'application/vnd.zzazz.deck+xml', '', ''),
  2632. ('vxml', 'application/voicexml+xml', '', ''),
  2633. ('wgt', 'application/widget', '', ''),
  2634. ('hlp', 'application/winhlp', '', ''),
  2635. ('wsdl', 'application/wsdl+xml', '', ''),
  2636. ('wspolicy', 'application/wspolicy+xml', '', ''),
  2637. ('7z', 'application/x-7z-compressed', 'mime-type-archive.svg', 'far file-archive'),
  2638. ('abw', 'application/x-abiword', '', ''),
  2639. ('ace', 'application/x-ace-compressed', 'mime-type-archive.svg', 'far file-archive'),
  2640. ('dmg', 'application/x-apple-diskimage', '', ''),
  2641. ('aab', 'application/x-authorware-bin', '', ''),
  2642. ('x32', 'application/x-authorware-bin', '', ''),
  2643. ('u32', 'application/x-authorware-bin', '', ''),
  2644. ('vox', 'application/x-authorware-bin', '', ''),
  2645. ('aam', 'application/x-authorware-map', '', ''),
  2646. ('aas', 'application/x-authorware-seg', '', ''),
  2647. ('bcpio', 'application/x-bcpio', '', ''),
  2648. ('torrent', 'application/x-bittorrent', '', ''),
  2649. ('blb', 'application/x-blorb', '', ''),
  2650. ('blorb', 'application/x-blorb', '', ''),
  2651. ('bz', 'application/x-bzip', '', ''),
  2652. ('bz2', 'application/x-bzip2', 'mime-type-archive.svg', 'far file-archive'),
  2653. ('boz', 'application/x-bzip2', '', ''),
  2654. ('cbr', 'application/x-cbr', '', ''),
  2655. ('cba', 'application/x-cbr', '', ''),
  2656. ('cbt', 'application/x-cbr', '', ''),
  2657. ('cbz', 'application/x-cbr', '', ''),
  2658. ('cb7', 'application/x-cbr', '', ''),
  2659. ('vcd', 'application/x-cdlink', '', ''),
  2660. ('cfs', 'application/x-cfs-compressed', '', ''),
  2661. ('chat', 'application/x-chat', '', ''),
  2662. ('pgn', 'application/x-chess-pgn', '', ''),
  2663. ('nsc', 'application/x-conference', '', ''),
  2664. ('cpio', 'application/x-cpio', '', ''),
  2665. ('csh', 'application/x-csh', '', 'far file-code'),
  2666. ('deb', 'application/x-debian-package', '', ''),
  2667. ('udeb', 'application/x-debian-package', '', ''),
  2668. ('dgc', 'application/x-dgc-compressed', '', ''),
  2669. ('dir', 'application/x-director', '', ''),
  2670. ('dcr', 'application/x-director', '', ''),
  2671. ('dxr', 'application/x-director', '', ''),
  2672. ('cst', 'application/x-director', '', ''),
  2673. ('cct', 'application/x-director', '', ''),
  2674. ('cxt', 'application/x-director', '', '');
  2675. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2676. ('w3d', 'application/x-director', '', ''),
  2677. ('fgd', 'application/x-director', '', ''),
  2678. ('swa', 'application/x-director', '', ''),
  2679. ('wad', 'application/x-doom', '', ''),
  2680. ('ncx', 'application/x-dtbncx+xml', '', ''),
  2681. ('dtb', 'application/x-dtbook+xml', '', ''),
  2682. ('res', 'application/x-dtbresource+xml', '', ''),
  2683. ('dvi', 'application/x-dvi', '', ''),
  2684. ('evy', 'application/x-envoy', '', ''),
  2685. ('eva', 'application/x-eva', '', ''),
  2686. ('bdf', 'application/x-font-bdf', '', ''),
  2687. ('gsf', 'application/x-font-ghostscript', '', ''),
  2688. ('psf', 'application/x-font-linux-psf', '', ''),
  2689. ('otf', 'application/x-font-otf', '', ''),
  2690. ('pcf', 'application/x-font-pcf', '', ''),
  2691. ('snf', 'application/x-font-snf', '', ''),
  2692. ('ttf', 'application/x-font-ttf', '', ''),
  2693. ('ttc', 'application/x-font-ttf', '', ''),
  2694. ('pfa', 'application/x-font-type1', '', ''),
  2695. ('pfb', 'application/x-font-type1', '', ''),
  2696. ('pfm', 'application/x-font-type1', '', ''),
  2697. ('afm', 'application/x-font-type1', '', ''),
  2698. ('woff', 'application/x-font-woff', '', ''),
  2699. ('arc', 'application/x-freearc', '', ''),
  2700. ('spl', 'application/x-futuresplash', '', ''),
  2701. ('gca', 'application/x-gca-compressed', '', ''),
  2702. ('ulx', 'application/x-glulx', '', ''),
  2703. ('gnumeric', 'application/x-gnumeric', '', ''),
  2704. ('gramps', 'application/x-gramps-xml', '', ''),
  2705. ('gtar', 'application/x-gtar', '', ''),
  2706. ('hdf', 'application/x-hdf', '', ''),
  2707. ('install', 'application/x-install-instructions', '', ''),
  2708. ('iso', 'application/x-iso9660-image', '', ''),
  2709. ('jnlp', 'application/x-java-jnlp-file', '', ''),
  2710. ('latex', 'application/x-latex', '', ''),
  2711. ('lzh', 'application/x-lzh-compressed', '', ''),
  2712. ('lha', 'application/x-lzh-compressed', '', ''),
  2713. ('mie', 'application/x-mie', '', ''),
  2714. ('prc', 'application/x-mobipocket-ebook', '', ''),
  2715. ('mobi', 'application/x-mobipocket-ebook', '', ''),
  2716. ('application', 'application/x-ms-application', '', ''),
  2717. ('lnk', 'application/x-ms-shortcut', '', ''),
  2718. ('wmd', 'application/x-ms-wmd', '', ''),
  2719. ('wmz', 'application/x-ms-wmz', '', ''),
  2720. ('xbap', 'application/x-ms-xbap', '', ''),
  2721. ('mdb', 'application/x-msaccess', '', ''),
  2722. ('obd', 'application/x-msbinder', '', ''),
  2723. ('crd', 'application/x-mscardfile', '', ''),
  2724. ('clp', 'application/x-msclip', '', ''),
  2725. ('exe', 'application/x-msdownload', '', ''),
  2726. ('dll', 'application/x-msdownload', '', ''),
  2727. ('com', 'application/x-msdownload', '', ''),
  2728. ('bat', 'application/x-msdownload', '', 'far file-code'),
  2729. ('msi', 'application/x-msdownload', '', ''),
  2730. ('mvb', 'application/x-msmediaview', '', ''),
  2731. ('m13', 'application/x-msmediaview', '', ''),
  2732. ('m14', 'application/x-msmediaview', '', ''),
  2733. ('wmf', 'application/x-msmetafile', '', ''),
  2734. ('emf', 'application/x-msmetafile', '', ''),
  2735. ('emz', 'application/x-msmetafile', '', ''),
  2736. ('mny', 'application/x-msmoney', '', ''),
  2737. ('pub', 'application/x-mspublisher', '', ''),
  2738. ('scd', 'application/x-msschedule', '', ''),
  2739. ('trm', 'application/x-msterminal', '', ''),
  2740. ('wri', 'application/x-mswrite', '', ''),
  2741. ('nc', 'application/x-netcdf', '', ''),
  2742. ('cdf', 'application/x-netcdf', '', ''),
  2743. ('nzb', 'application/x-nzb', '', ''),
  2744. ('p12', 'application/x-pkcs12', '', ''),
  2745. ('pfx', 'application/x-pkcs12', '', ''),
  2746. ('p7b', 'application/x-pkcs7-certificates', '', ''),
  2747. ('spc', 'application/x-pkcs7-certificates', '', ''),
  2748. ('p7r', 'application/x-pkcs7-certreqresp', '', ''),
  2749. ('rar', 'application/x-rar-compressed', 'mime-type-archive.svg', 'far file-archive'),
  2750. ('ris', 'application/x-research-info-systems', '', ''),
  2751. ('sh', 'application/x-sh', '', 'far file-code'),
  2752. ('shar', 'application/x-shar', '', ''),
  2753. ('swf', 'application/x-shockwave-flash', '', ''),
  2754. ('xap', 'application/x-silverlight-app', '', ''),
  2755. ('sql', 'text/x-sql', '', 'far file-code'),
  2756. ('sit', 'application/x-stuffit', '', ''),
  2757. ('sitx', 'application/x-stuffitx', '', ''),
  2758. ('srt', 'application/x-subrip', '', ''),
  2759. ('sv4cpio', 'application/x-sv4cpio', '', ''),
  2760. ('sv4crc', 'application/x-sv4crc', '', ''),
  2761. ('t3', 'application/x-t3vm-image', '', ''),
  2762. ('gam', 'application/x-tads', '', ''),
  2763. ('tar', 'application/x-tar', 'mime-type-archive.svg', 'far file-archive'),
  2764. ('tcl', 'application/x-tcl', '', ''),
  2765. ('tex', 'application/x-tex', '', ''),
  2766. ('tfm', 'application/x-tex-tfm', '', ''),
  2767. ('texinfo', 'application/x-texinfo', '', ''),
  2768. ('texi', 'application/x-texinfo', '', ''),
  2769. ('obj', 'application/x-tgif', '', ''),
  2770. ('ustar', 'application/x-ustar', '', ''),
  2771. ('src', 'application/x-wais-source', '', 'far file-code'),
  2772. ('der', 'application/x-x509-ca-cert', '', ''),
  2773. ('crt', 'application/x-x509-ca-cert', '', ''),
  2774. ('fig', 'application/x-xfig', '', ''),
  2775. ('xlf', 'application/x-xliff+xml', '', ''),
  2776. ('xpi', 'application/x-xpinstall', '', ''),
  2777. ('xz', 'application/x-xz', '', ''),
  2778. ('z1', 'application/x-zmachine', '', ''),
  2779. ('z2', 'application/x-zmachine', '', ''),
  2780. ('z3', 'application/x-zmachine', '', ''),
  2781. ('z4', 'application/x-zmachine', '', ''),
  2782. ('z5', 'application/x-zmachine', '', ''),
  2783. ('z6', 'application/x-zmachine', '', ''),
  2784. ('z7', 'application/x-zmachine', '', ''),
  2785. ('z8', 'application/x-zmachine', '', ''),
  2786. ('xaml', 'application/xaml+xml', '', ''),
  2787. ('xdf', 'application/xcap-diff+xml', '', ''),
  2788. ('xenc', 'application/xenc+xml', '', ''),
  2789. ('xhtml', 'application/xhtml+xml', '', 'far file-code'),
  2790. ('xht', 'application/xhtml+xml', '', ''),
  2791. ('xml', 'application/xml', '', 'far file-code'),
  2792. ('xsl', 'application/xml', '', 'far file-code'),
  2793. ('dtd', 'application/xml-dtd', '', 'far file-code'),
  2794. ('xop', 'application/xop+xml', '', ''),
  2795. ('xpl', 'application/xproc+xml', '', ''),
  2796. ('xslt', 'application/xslt+xml', '', 'far file-code'),
  2797. ('xspf', 'application/xspf+xml', '', ''),
  2798. ('mxml', 'application/xv+xml', '', ''),
  2799. ('xhvml', 'application/xv+xml', '', ''),
  2800. ('xvml', 'application/xv+xml', '', ''),
  2801. ('xvm', 'application/xv+xml', '', ''),
  2802. ('yang', 'application/yang', '', ''),
  2803. ('yin', 'application/yin+xml', '', ''),
  2804. ('zip', 'application/zip', 'mime-type-archive.svg', 'far file-archive'),
  2805. ('adp', 'audio/adpcm', 'mime-type-audio.svg', 'far file-audio'),
  2806. ('au', 'audio/basic', 'mime-type-audio.svg', 'far file-audio'),
  2807. ('snd', 'audio/basic', 'mime-type-audio.svg', 'far file-audio'),
  2808. ('mid', 'audio/midi', 'mime-type-audio.svg', 'far file-audio'),
  2809. ('midi', 'audio/midi', 'mime-type-audio.svg', 'far file-audio'),
  2810. ('kar', 'audio/midi', 'mime-type-audio.svg', 'far file-audio'),
  2811. ('rmi', 'audio/midi', 'mime-type-audio.svg', 'far file-audio'),
  2812. ('m4a', 'audio/mp4', 'mime-type-audio.svg', 'far file-audio'),
  2813. ('mp4a', 'audio/mp4', 'mime-type-audio.svg', 'far file-audio'),
  2814. ('m4p', 'audio/mp4a-latm', 'mime-type-audio.svg', 'far file-audio'),
  2815. ('mpga', 'audio/mpeg', 'mime-type-audio.svg', 'far file-audio'),
  2816. ('mp2', 'audio/mpeg', 'mime-type-audio.svg', 'far file-audio'),
  2817. ('mp2a', 'audio/mpeg', 'mime-type-audio.svg', 'far file-audio'),
  2818. ('mp3', 'audio/mpeg', 'mime-type-audio.svg', 'far file-audio'),
  2819. ('m2a', 'audio/mpeg', 'mime-type-audio.svg', 'far file-audio'),
  2820. ('m3a', 'audio/mpeg', 'mime-type-audio.svg', 'far file-audio'),
  2821. ('oga', 'audio/ogg', 'mime-type-audio.svg', 'far file-audio'),
  2822. ('ogg', 'audio/ogg', 'mime-type-audio.svg', 'far file-audio'),
  2823. ('spx', 'audio/ogg', 'mime-type-audio.svg', 'far file-audio'),
  2824. ('s3m', 'audio/s3m', 'mime-type-audio.svg', 'far file-audio'),
  2825. ('sil', 'audio/silk', 'mime-type-audio.svg', 'far file-audio'),
  2826. ('uva', 'audio/vnd.dece.audio', 'mime-type-audio.svg', 'far file-audio'),
  2827. ('uvva', 'audio/vnd.dece.audio', 'mime-type-audio.svg', 'far file-audio'),
  2828. ('eol', 'audio/vnd.digital-winds', 'mime-type-audio.svg', 'far file-audio'),
  2829. ('dra', 'audio/vnd.dra', 'mime-type-audio.svg', 'far file-audio'),
  2830. ('dts', 'audio/vnd.dts', 'mime-type-audio.svg', 'far file-audio'),
  2831. ('dtshd', 'audio/vnd.dts.hd', 'mime-type-audio.svg', 'far file-audio'),
  2832. ('lvp', 'audio/vnd.lucent.voice', 'mime-type-audio.svg', 'far file-audio'),
  2833. ('pya', 'audio/vnd.ms-playready.media.pya', 'mime-type-audio.svg', 'far file-audio'),
  2834. ('ecelp4800', 'audio/vnd.nuera.ecelp4800', 'mime-type-audio.svg', 'far file-audio'),
  2835. ('ecelp7470', 'audio/vnd.nuera.ecelp7470', 'mime-type-audio.svg', 'far file-audio'),
  2836. ('ecelp9600', 'audio/vnd.nuera.ecelp9600', 'mime-type-audio.svg', 'far file-audio'),
  2837. ('rip', 'audio/vnd.rip', 'mime-type-audio.svg', 'far file-audio'),
  2838. ('weba', 'audio/webm', 'mime-type-audio.svg', 'far file-audio'),
  2839. ('aac', 'audio/x-aac', 'mime-type-audio.svg', 'far file-audio'),
  2840. ('aif', 'audio/x-aiff', 'mime-type-audio.svg', 'far file-audio'),
  2841. ('aiff', 'audio/x-aiff', 'mime-type-audio.svg', 'far file-audio'),
  2842. ('aifc', 'audio/x-aiff', 'mime-type-audio.svg', 'far file-audio'),
  2843. ('caf', 'audio/x-caf', 'mime-type-audio.svg', 'far file-audio'),
  2844. ('flac', 'audio/x-flac', 'mime-type-audio.svg', 'far file-audio'),
  2845. ('mka', 'audio/x-matroska', 'mime-type-audio.svg', 'far file-audio'),
  2846. ('m3u', 'audio/x-mpegurl', 'mime-type-audio.svg', 'far file-audio'),
  2847. ('wax', 'audio/x-ms-wax', 'mime-type-audio.svg', 'far file-audio'),
  2848. ('wma', 'audio/x-ms-wma', 'mime-type-audio.svg', 'far file-audio'),
  2849. ('ram', 'audio/x-pn-realaudio', 'mime-type-audio.svg', 'far file-audio'),
  2850. ('ra', 'audio/x-pn-realaudio', 'mime-type-audio.svg', 'far file-audio'),
  2851. ('rmp', 'audio/x-pn-realaudio-plugin', 'mime-type-audio.svg', 'far file-audio'),
  2852. ('wav', 'audio/x-wav', 'mime-type-audio.svg', 'far file-audio'),
  2853. ('xm', 'audio/xm', 'mime-type-audio.svg', 'far file-audio'),
  2854. ('cdx', 'chemical/x-cdx', 'mime-type-vector.svg', ''),
  2855. ('cif', 'chemical/x-cif', '', ''),
  2856. ('cmdf', 'chemical/x-cmdf', '', ''),
  2857. ('cml', 'chemical/x-cml', '', ''),
  2858. ('csml', 'chemical/x-csml', '', ''),
  2859. ('xyz', 'chemical/x-xyz', '', ''),
  2860. ('bmp', 'image/bmp', 'mime-type-image.svg', 'far file-image'),
  2861. ('cgm', 'image/cgm', 'mime-type-image.svg', 'far file-image'),
  2862. ('g3', 'image/g3fax', 'mime-type-image.svg', 'far file-image'),
  2863. ('gif', 'image/gif', 'mime-type-image.svg', 'far file-image'),
  2864. ('ief', 'image/ief', 'mime-type-image.svg', 'far file-image'),
  2865. ('jp2', 'image/jp2', 'mime-type-image.svg', 'far file-image'),
  2866. ('jpeg', 'image/jpeg', 'mime-type-image.svg', 'far file-image'),
  2867. ('jpg', 'image/jpeg', 'mime-type-image.svg', 'far file-image'),
  2868. ('jpe', 'image/jpeg', 'mime-type-image.svg', 'far file-image'),
  2869. ('ktx', 'image/ktx', 'mime-type-image.svg', 'far file-image'),
  2870. ('pict', 'image/pict', 'mime-type-image.svg', 'far file-image'),
  2871. ('pic', 'image/pict', 'mime-type-image.svg', 'far file-image'),
  2872. ('pct', 'image/pict', 'mime-type-image.svg', 'far file-image'),
  2873. ('png', 'image/png', 'mime-type-png.svg', 'far file-image'),
  2874. ('btif', 'image/prs.btif', 'mime-type-image.svg', 'far file-image'),
  2875. ('sgi', 'image/sgi', 'mime-type-image.svg', 'far file-image');
  2876. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2877. ('svg', 'image/svg+xml', 'mime-type-image.svg', 'far file-image'),
  2878. ('svgz', 'image/svg+xml', 'mime-type-image.svg', 'far file-image'),
  2879. ('tiff', 'image/tiff', 'mime-type-image.svg', 'far file-image'),
  2880. ('tif', 'image/tiff', 'mime-type-image.svg', 'far file-image'),
  2881. ('psd', 'image/vnd.adobe.photoshop', 'mime-type-psd.svg', 'far file-image'),
  2882. ('uvi', 'image/vnd.dece.graphic', 'mime-type-image.svg', 'far file-image'),
  2883. ('uvvi', 'image/vnd.dece.graphic', 'mime-type-image.svg', 'far file-image'),
  2884. ('uvg', 'image/vnd.dece.graphic', 'mime-type-image.svg', 'far file-image'),
  2885. ('uvvg', 'image/vnd.dece.graphic', 'mime-type-image.svg', 'far file-image'),
  2886. ('sub', 'image/vnd.dvb.subtitle', 'mime-type-image.svg', 'far file-image'),
  2887. ('djvu', 'image/vnd.djvu', 'mime-type-image.svg', 'far file-image'),
  2888. ('djv', 'image/vnd.djvu', 'mime-type-image.svg', 'far file-image'),
  2889. ('dwg', 'image/vnd.dwg', 'mime-type-image.svg', 'far file-image'),
  2890. ('dxf', 'image/vnd.dxf', 'mime-type-image.svg', 'far file-image'),
  2891. ('fbs', 'image/vnd.fastbidsheet', 'mime-type-image.svg', 'far file-image'),
  2892. ('fpx', 'image/vnd.fpx', 'mime-type-image.svg', 'far file-image'),
  2893. ('fst', 'image/vnd.fst', 'mime-type-image.svg', 'far file-image'),
  2894. ('mmr', 'image/vnd.fujixerox.edmics-mmr', 'mime-type-image.svg', 'far file-image'),
  2895. ('rlc', 'image/vnd.fujixerox.edmics-rlc', 'mime-type-image.svg', 'far file-image'),
  2896. ('mdi', 'image/vnd.ms-modi', 'mime-type-image.svg', 'far file-image'),
  2897. ('wdp', 'image/vnd.ms-photo', 'mime-type-image.svg', 'far file-image'),
  2898. ('npx', 'image/vnd.net-fpx', 'mime-type-image.svg', 'far file-image'),
  2899. ('wbmp', 'image/vnd.wap.wbmp', 'mime-type-image.svg', 'far file-image'),
  2900. ('xif', 'image/vnd.xiff', 'mime-type-image.svg', 'far file-image'),
  2901. ('webp', 'image/webp', 'mime-type-image.svg', 'far file-image'),
  2902. ('3ds', 'image/x-3ds', 'mime-type-image.svg', 'far file-image'),
  2903. ('ras', 'image/x-cmu-raster', 'mime-type-image.svg', 'far file-image'),
  2904. ('cmx', 'image/x-cmx', 'mime-type-image.svg', 'far file-image'),
  2905. ('fh', 'image/x-freehand', 'mime-type-image.svg', 'far file-image'),
  2906. ('fhc', 'image/x-freehand', 'mime-type-image.svg', 'far file-image'),
  2907. ('fh4', 'image/x-freehand', 'mime-type-image.svg', 'far file-image'),
  2908. ('fh5', 'image/x-freehand', 'mime-type-image.svg', 'far file-image'),
  2909. ('fh7', 'image/x-freehand', 'mime-type-image.svg', 'far file-image'),
  2910. ('ico', 'image/x-icon', 'mime-type-image.svg', 'far file-image'),
  2911. ('pntg', 'image/x-macpaint', 'mime-type-image.svg', 'far file-image'),
  2912. ('pnt', 'image/x-macpaint', 'mime-type-image.svg', 'far file-image'),
  2913. ('mac', 'image/x-macpaint', 'mime-type-image.svg', 'far file-image'),
  2914. ('sid', 'image/x-mrsid-image', 'mime-type-image.svg', 'far file-image'),
  2915. ('pcx', 'image/x-pcx', 'mime-type-image.svg', 'far file-image'),
  2916. ('pnm', 'image/x-portable-anymap', 'mime-type-image.svg', 'far file-image'),
  2917. ('pbm', 'image/x-portable-bitmap', 'mime-type-image.svg', 'far file-image'),
  2918. ('pgm', 'image/x-portable-graymap', 'mime-type-image.svg', 'far file-image'),
  2919. ('ppm', 'image/x-portable-pixmap', 'mime-type-image.svg', 'far file-image'),
  2920. ('qtif', 'image/x-quicktime', 'mime-type-image.svg', 'far file-image'),
  2921. ('qti', 'image/x-quicktime', 'mime-type-image.svg', 'far file-image'),
  2922. ('rgb', 'image/x-rgb', 'mime-type-image.svg', 'far file-image'),
  2923. ('tga', 'image/x-tga', 'mime-type-image.svg', 'far file-image'),
  2924. ('xbm', 'image/x-xbitmap', 'mime-type-image.svg', 'far file-image'),
  2925. ('xpm', 'image/x-xpixmap', 'mime-type-image.svg', 'far file-image'),
  2926. ('xwd', 'image/x-xwindowdump', 'mime-type-image.svg', 'far file-image'),
  2927. ('eml', 'message/rfc822', '', ''),
  2928. ('mime', 'message/rfc822', '', ''),
  2929. ('igs', 'model/iges', '', ''),
  2930. ('iges', 'model/iges', '', ''),
  2931. ('msh', 'model/mesh', '', ''),
  2932. ('mesh', 'model/mesh', '', ''),
  2933. ('silo', 'model/mesh', '', ''),
  2934. ('dae', 'model/vnd.collada+xml', '', ''),
  2935. ('dwf', 'model/vnd.dwf', '', ''),
  2936. ('gdl', 'model/vnd.gdl', '', ''),
  2937. ('gtw', 'model/vnd.gtw', '', ''),
  2938. ('mts', 'model/vnd.mts', '', ''),
  2939. ('vtu', 'model/vnd.vtu', '', ''),
  2940. ('wrl', 'model/vrml', '', ''),
  2941. ('vrml', 'model/vrml', '', ''),
  2942. ('x3db', 'model/x3d+binary', '', ''),
  2943. ('x3dbz', 'model/x3d+binary', '', ''),
  2944. ('x3dv', 'model/x3d+vrml', '', ''),
  2945. ('x3dvz', 'model/x3d+vrml', '', ''),
  2946. ('x3d', 'model/x3d+xml', '', ''),
  2947. ('x3dz', 'model/x3d+xml', '', ''),
  2948. ('manifest', 'text/cache-manifest', '', 'far file-alt'),
  2949. ('appcache', 'text/cache-manifest', '', 'far file-alt'),
  2950. ('ics', 'text/calendar', '', 'far file-alt'),
  2951. ('ifb', 'text/calendar', '', 'far file-alt'),
  2952. ('css', 'text/css', '', 'far file-code'),
  2953. ('csv', 'text/csv', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2954. ('html', 'text/html', '', 'far file-code'),
  2955. ('htm', 'text/html', '', 'far file-code'),
  2956. ('n3', 'text/n3', '', 'far file-alt'),
  2957. ('txt', 'text/plain', 'mime-type-document.svg', 'far file-alt'),
  2958. ('text', 'text/plain', '', 'far file-alt'),
  2959. ('conf', 'text/plain', '', 'far file-alt'),
  2960. ('def', 'text/plain', '', 'far file-alt'),
  2961. ('list', 'text/plain', '', 'far file-alt'),
  2962. ('log', 'text/plain', '', 'far file-alt'),
  2963. ('in', 'text/plain', '', 'far file-alt'),
  2964. ('dsc', 'text/prs.lines.tag', '', 'far file-alt'),
  2965. ('rtx', 'text/richtext', '', 'far file-alt'),
  2966. ('sgml', 'text/sgml', '', 'far file-alt'),
  2967. ('sgm', 'text/sgml', '', 'far file-alt'),
  2968. ('tsv', 'text/tab-separated-values', '', 'far file-alt'),
  2969. ('t', 'text/troff', '', 'far file-alt'),
  2970. ('tr', 'text/troff', '', 'far file-alt'),
  2971. ('roff', 'text/troff', '', 'far file-alt'),
  2972. ('man', 'text/troff', '', 'far file-alt'),
  2973. ('me', 'text/troff', '', 'far file-alt'),
  2974. ('ms', 'text/troff', '', 'far file-alt'),
  2975. ('ttl', 'text/turtle', '', 'far file-code'),
  2976. ('uri', 'text/uri-list', '', 'far file-alt'),
  2977. ('uris', 'text/uri-list', '', 'far file-alt'),
  2978. ('urls', 'text/uri-list', '', 'far file-alt'),
  2979. ('address-card', 'text/vcard', '', 'far file-alt'),
  2980. ('curl', 'text/vnd.curl', '', 'far file-alt'),
  2981. ('dcurl', 'text/vnd.curl.dcurl', '', 'far file-alt'),
  2982. ('scurl', 'text/vnd.curl.scurl', '', 'far file-alt'),
  2983. ('mcurl', 'text/vnd.curl.mcurl', '', 'far file-alt'),
  2984. ('fly', 'text/vnd.fly', '', 'far file-alt'),
  2985. ('flx', 'text/vnd.fmi.flexstor', '', 'far file-alt'),
  2986. ('gv', 'text/vnd.graphviz', '', 'far file-alt'),
  2987. ('3dml', 'text/vnd.in3d.3dml', '', 'far file-alt'),
  2988. ('spot', 'text/vnd.in3d.spot', '', 'far file-alt'),
  2989. ('jad', 'text/vnd.sun.j2me.app-descriptor', '', 'far file-alt'),
  2990. ('wml', 'text/vnd.wap.wml', '', 'far file-alt'),
  2991. ('wmls', 'text/vnd.wap.wmlscript', '', 'far file-alt'),
  2992. ('s', 'text/x-asm', '', 'far file-alt'),
  2993. ('asm', 'text/x-asm', '', 'far file-code'),
  2994. ('c', 'text/x-c', '', 'far file-code'),
  2995. ('far closed-captioning', 'text/x-c', '', 'far file-code'),
  2996. ('cxx', 'text/x-c', '', 'far file-code'),
  2997. ('cpp', 'text/x-c', '', 'far file-code'),
  2998. ('h', 'text/x-c', '', 'far file-code'),
  2999. ('hh', 'text/x-c', '', 'far file-code'),
  3000. ('dic', 'text/x-c', '', 'far file-alt'),
  3001. ('f', 'text/x-fortran', '', 'far file-code'),
  3002. ('for', 'text/x-fortran', '', 'far file-code'),
  3003. ('f77', 'text/x-fortran', '', 'far file-alt'),
  3004. ('f90', 'text/x-fortran', '', 'far file-alt'),
  3005. ('java', 'text/x-java-source', '', 'far file-code'),
  3006. ('opml', 'text/x-opml', '', 'far file-alt'),
  3007. ('p', 'text/x-pascal', '', 'far file-alt'),
  3008. ('pas', 'text/x-pascal', '', 'far file-code'),
  3009. ('php', 'application/x-httpd-php', '', 'far file-code'),
  3010. ('coffee', 'text/x-coffeescript', '', 'far file-code'),
  3011. ('lsp', 'text/x-common-lisp', '', 'far file-code'),
  3012. ('lisp', 'text/x-common-lisp', '', 'far file-code'),
  3013. ('diff', 'text/x-diff', '', 'far file-code'),
  3014. ('go', 'text/x-go', '', 'far file-code'),
  3015. ('lua', 'text/x-lua', '', 'far file-code'),
  3016. ('pl', 'text/x-perl', '', 'far file-code'),
  3017. ('prl', 'text/x-perl', '', 'far file-code'),
  3018. ('perl', 'text/x-perl', '', 'far file-code'),
  3019. ('py', 'text/x-python', '', 'far file-code'),
  3020. ('nginx', 'text/nginx', '', 'far file-code'),
  3021. ('ini', 'text/x-ini', '', 'far file-alt'),
  3022. ('rb', 'text/x-ruby', '', 'far file-code'),
  3023. ('sass', 'text/x-sass', '', 'far file-code'),
  3024. ('bash', 'text/x-sh', '', 'far file-code'),
  3025. ('swift', 'text/x-swift', '', 'far file-code'),
  3026. ('vb', 'text/x-vb', '', 'far file-code'),
  3027. ('vbs', 'text/vbscript', '', 'far file-code'),
  3028. ('vue', 'text/x-vue', '', 'far file-code'),
  3029. ('yaml', 'text/x-yaml', '', 'far file-alt'),
  3030. ('md', 'text/x-markdown', '', 'far file-alt'),
  3031. ('xq', 'application/xquery', '', 'far file-code'),
  3032. ('xquery', 'application/xquery', '', 'far file-code'),
  3033. ('ps1', 'application/x-powershell', '', 'far file-code'),
  3034. ('aps', 'application/x-aspx', '', ''),
  3035. ('jsp', 'application/x-jsp', '', 'far file-code'),
  3036. ('nfo', 'text/x-nfo', '', 'far file-alt'),
  3037. ('etx', 'text/x-setext', '', 'far file-alt'),
  3038. ('sfv', 'text/x-sfv', '', 'far file-alt'),
  3039. ('uu', 'text/x-uuencode', '', 'far file-alt'),
  3040. ('vcs', 'text/x-vcalendar', '', 'far file-alt'),
  3041. ('vcf', 'text/x-vcard', '', 'far file-alt'),
  3042. ('3gp', 'video/3gpp', 'mime-type-video.svg', 'far file-video'),
  3043. ('3g2', 'video/3gpp2', 'mime-type-video.svg', 'far file-video'),
  3044. ('h261', 'video/h261', 'mime-type-video.svg', 'far file-video'),
  3045. ('h263', 'video/h263', 'mime-type-video.svg', 'far file-video'),
  3046. ('h264', 'video/h264', 'mime-type-video.svg', 'far file-video'),
  3047. ('jpgv', 'video/jpeg', 'mime-type-video.svg', 'far file-video'),
  3048. ('jpm', 'video/jpm', 'mime-type-video.svg', 'far file-video'),
  3049. ('jpgm', 'video/jpm', 'mime-type-video.svg', 'far file-video'),
  3050. ('mj2', 'video/mj2', 'mime-type-video.svg', 'far file-video'),
  3051. ('mjp2', 'video/mj2', 'mime-type-video.svg', 'far file-video'),
  3052. ('ts', 'video/mp2t', 'mime-type-video.svg', 'far file-video'),
  3053. ('mp4', 'video/mp4', 'mime-type-video.svg', 'far file-video'),
  3054. ('mp4v', 'video/mp4', 'mime-type-video.svg', 'far file-video'),
  3055. ('mpg4', 'video/mp4', 'mime-type-video.svg', 'far file-video'),
  3056. ('m4v', 'video/mp4', 'mime-type-video.svg', 'far file-video'),
  3057. ('mpeg', 'video/mpeg', 'mime-type-video.svg', 'far file-video'),
  3058. ('mpg', 'video/mpeg', 'mime-type-video.svg', 'far file-video'),
  3059. ('mpe', 'video/mpeg', 'mime-type-video.svg', 'far file-video'),
  3060. ('m1v', 'video/mpeg', 'mime-type-video.svg', 'far file-video'),
  3061. ('m2v', 'video/mpeg', 'mime-type-video.svg', 'far file-video'),
  3062. ('ogv', 'video/ogg', 'mime-type-video.svg', 'far file-video'),
  3063. ('qt', 'video/quicktime', 'mime-type-video.svg', 'far file-video'),
  3064. ('mov', 'video/quicktime', 'mime-type-video.svg', 'far file-video'),
  3065. ('uvh', 'video/vnd.dece.hd', 'mime-type-video.svg', 'far file-video'),
  3066. ('uvvh', 'video/vnd.dece.hd', 'mime-type-video.svg', 'far file-video'),
  3067. ('uvm', 'video/vnd.dece.mobile', 'mime-type-video.svg', 'far file-video'),
  3068. ('uvvm', 'video/vnd.dece.mobile', 'mime-type-video.svg', 'far file-video'),
  3069. ('uvp', 'video/vnd.dece.pd', 'mime-type-video.svg', 'far file-video'),
  3070. ('uvvp', 'video/vnd.dece.pd', 'mime-type-video.svg', 'far file-video');
  3071. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  3072. ('uvs', 'video/vnd.dece.sd', 'mime-type-video.svg', 'far file-video'),
  3073. ('uvvs', 'video/vnd.dece.sd', 'mime-type-video.svg', 'far file-video'),
  3074. ('uvv', 'video/vnd.dece.video', 'mime-type-video.svg', 'far file-video'),
  3075. ('uvvv', 'video/vnd.dece.video', 'mime-type-video.svg', 'far file-video'),
  3076. ('dvb', 'video/vnd.dvb.file', 'mime-type-video.svg', 'far file-video'),
  3077. ('fvt', 'video/vnd.fvt', 'mime-type-video.svg', 'far file-video'),
  3078. ('mxu', 'video/vnd.mpegurl', 'mime-type-video.svg', 'far file-video'),
  3079. ('m4u', 'video/vnd.mpegurl', 'mime-type-video.svg', 'far file-video'),
  3080. ('pyv', 'video/vnd.ms-playready.media.pyv', 'mime-type-video.svg', 'far file-video'),
  3081. ('uvu', 'video/vnd.uvvu.mp4', 'mime-type-video.svg', 'far file-video'),
  3082. ('uvvu', 'video/vnd.uvvu.mp4', 'mime-type-video.svg', 'far file-video'),
  3083. ('viv', 'video/vnd.vivo', 'mime-type-video.svg', 'far file-video'),
  3084. ('dv', 'video/x-dv', 'mime-type-video.svg', 'far file-video'),
  3085. ('dif', 'video/x-dv', 'mime-type-video.svg', 'far file-excel'),
  3086. ('webm', 'video/webm', 'mime-type-video.svg', 'far file-video'),
  3087. ('f4v', 'video/x-f4v', 'mime-type-video.svg', 'far file-video'),
  3088. ('fli', 'video/x-fli', 'mime-type-video.svg', 'far file-video'),
  3089. ('flv', 'video/x-flv', 'mime-type-video.svg', 'far file-video'),
  3090. ('mkv', 'video/x-matroska', 'mime-type-video.svg', 'far file-video'),
  3091. ('mk3d', 'video/x-matroska', 'mime-type-video.svg', 'far file-video'),
  3092. ('mks', 'video/x-matroska', 'mime-type-video.svg', 'far file-video'),
  3093. ('mng', 'video/x-mng', 'mime-type-video.svg', 'far file-video'),
  3094. ('asf', 'video/x-ms-asf', 'mime-type-video.svg', 'far file-video'),
  3095. ('asx', 'video/x-ms-asf', 'mime-type-video.svg', 'far file-video'),
  3096. ('vob', 'video/x-ms-vob', 'mime-type-video.svg', 'far file-video'),
  3097. ('wm', 'video/x-ms-wm', 'mime-type-video.svg', 'far file-video'),
  3098. ('wmv', 'video/x-ms-wmv', 'mime-type-video.svg', 'far file-video'),
  3099. ('wmx', 'video/x-ms-wmx', 'mime-type-video.svg', 'far file-video'),
  3100. ('wvx', 'video/x-ms-wvx', 'mime-type-video.svg', 'far file-video'),
  3101. ('avi', 'video/x-msvideo', 'mime-type-video.svg', 'far file-video'),
  3102. ('movie', 'video/x-sgi-movie', 'mime-type-video.svg', 'far file-video'),
  3103. ('smv', 'video/x-smv', 'mime-type-video.svg', 'far file-video'),
  3104. ('ice', 'x-conference/x-cooltalk', '', '');
  3105. -- --------------------------------------------------------
  3106. CREATE TABLE IF NOT EXISTS `sys_objects_uploader` (
  3107. `id` int(11) NOT NULL AUTO_INCREMENT,
  3108. `object` varchar(64) NOT NULL,
  3109. `active` tinyint(4) NOT NULL,
  3110. `override_class_name` varchar(255) NOT NULL,
  3111. `override_class_file` varchar(255) NOT NULL,
  3112. PRIMARY KEY (`id`),
  3113. UNIQUE KEY `object` (`object`)
  3114. );
  3115. INSERT INTO `sys_objects_uploader` (`object`, `active`, `override_class_name`, `override_class_file`) VALUES
  3116. ('sys_html5', 1, 'BxTemplUploaderHTML5', ''),
  3117. ('sys_video_recording', 1, 'BxTemplUploaderVideoRecording', ''),
  3118. ('sys_crop', 1, 'BxTemplUploaderCrop', ''),
  3119. ('sys_cmts_html5', 1, 'BxTemplCmtsUploaderHTML5', ''),
  3120. ('sys_settings_html5', 1, 'BxTemplStudioSettingsUploaderHTML5', ''),
  3121. ('sys_builder_page_html5', 1, 'BxTemplStudioBuilderPageUploaderHTML5', ''),
  3122. ('sys_std_crop_cover', 1, 'BxTemplStudioUploaderCropCover', '');
  3123. -- --------------------------------------------------------
  3124. CREATE TABLE IF NOT EXISTS `sys_objects_form` (
  3125. `id` int(11) NOT NULL AUTO_INCREMENT,
  3126. `object` varchar(64) NOT NULL,
  3127. `module` varchar(32) NOT NULL,
  3128. `title` varchar(255) NOT NULL,
  3129. `action` varchar(255) NOT NULL,
  3130. `form_attrs` text NOT NULL,
  3131. `submit_name` varchar(255) NOT NULL,
  3132. `table` varchar(255) NOT NULL,
  3133. `key` varchar(255) NOT NULL,
  3134. `uri` varchar(255) NOT NULL,
  3135. `uri_title` varchar(255) NOT NULL,
  3136. `params` text NOT NULL,
  3137. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3138. `active` tinyint(4) NOT NULL DEFAULT '0',
  3139. `parent_form` varchar(64) NOT NULL DEFAULT '',
  3140. `override_class_name` varchar(255) NOT NULL,
  3141. `override_class_file` varchar(255) NOT NULL,
  3142. PRIMARY KEY (`id`),
  3143. UNIQUE KEY `object` (`object`)
  3144. );
  3145. 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
  3146. ('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', ''),
  3147. ('sys_account', 'system', '_sys_form_account', '', '', 'a:2:{i:0;s:10:"do_publish";i:1;s:9:"do_submit";}', 'sys_accounts', 'id', '', '', 'a:1:{s:14:"checker_helper";s:26:"BxFormAccountCheckerHelper";}', 0, 1, 'BxTemplFormAccount', ''),
  3148. ('sys_profile', 'system', '_sys_form_profile', '', '', 'do_submit', 'sys_profiles', 'id', '', '', '', 0, 1, 'BxTemplFormProfile', ''),
  3149. ('sys_forgot_password', 'system', '_sys_form_forgot_password', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:33:"BxFormForgotPasswordCheckerHelper";}', 0, 1, 'BxTemplFormForgotPassword', ''),
  3150. ('sys_confirm_email', 'system', '_sys_form_confirm_email', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:31:"BxFormConfirmEmailCheckerHelper";}', 0, 1, 'BxTemplFormConfirmEmail', ''),
  3151. ('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', ''),
  3152. ('sys_unsubscribe', 'system', '_sys_form_unsubscribe', '', '', 'do_submit', 'sys_accounts', 'id', '', '', '', 0, 1, 'BxTemplFormAccount', ''),
  3153. ('sys_comment', 'system', '_sys_form_comment', 'cmts.php', 'a:3:{s:2:"id";s:20:"cmt-%s-form-%s-%d-%d";s:4:"name";s:20:"cmt-%s-form-%s-%d-%d";s:5:"class";s:14:"cmt-post-reply";}', 'cmt_submit', '', 'cmt_id', '', '', '', 0, 1, 'BxTemplCmtsForm', ''),
  3154. ('sys_review', 'system', '_sys_form_review', 'cmts.php', 'a:3:{s:2:"id";s:20:"cmt-%s-form-%s-%d-%d";s:4:"name";s:20:"cmt-%s-form-%s-%d-%d";s:5:"class";s:14:"cmt-post-reply";}', 'cmt_submit', '', 'cmt_id', '', '', '', 0, 1, 'BxTemplCmtsReviewsForm', ''),
  3155. ('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, '', ''),
  3156. ('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, '', ''),
  3157. ('sys_privacy_group_custom', 'system', '_sys_form_ps_group_custom', 'privacy.php', '', 'do_submit', 'sys_privacy_groups_custom', 'id', '', '', '', 0, 1, 'BxTemplPrivacyFormGroupCustom', ''),
  3158. ('sys_labels', 'system', '_sys_form_labels', 'label.php', '', 'do_submit', '', '', '', '', '', 0, 1, 'BxTemplLabelForm', ''),
  3159. ('sys_wiki', 'system', '_sys_form_wiki', '', '', 'do_submit', 'sys_pages_wiki_blocks', 'id', '', '', '', 0, 1, 'BxTemplFormWiki', ''),
  3160. ('sys_manage', 'system', '_sys_form_manage', '', '', 'a:2:{i:0;s:7:"do_send";i:1;s:9:"do_submit";}', '', '', '', '', '', 0, 1, '', ''),
  3161. ('sys_acl', 'system', '_sys_form_acl', '', '', 'do_submit', '', '', '', '', '', 0, 1, '', '');
  3162. CREATE TABLE IF NOT EXISTS `sys_form_displays` (
  3163. `id` int(11) NOT NULL AUTO_INCREMENT,
  3164. `display_name` varchar(64) NOT NULL,
  3165. `module` varchar(32) NOT NULL,
  3166. `object` varchar(64) NOT NULL,
  3167. `title` varchar(255) NOT NULL,
  3168. `view_mode` tinyint(4) NOT NULL DEFAULT '0',
  3169. PRIMARY KEY (`id`),
  3170. UNIQUE KEY `object_display_name` (`object`,`display_name`)
  3171. );
  3172. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  3173. ('sys_login', 'system', 'sys_login', '_sys_form_display_login', 0),
  3174. ('sys_login_step2', 'system', 'sys_login', '_sys_form_display_login_step2', 0),
  3175. ('sys_login_step3', 'system', 'sys_login', '_sys_form_display_login_step3', 0),
  3176. ('sys_account_create', 'system', 'sys_account', '_sys_form_display_account_create', 0),
  3177. ('sys_account_settings_email', 'system', 'sys_account', '_sys_form_display_account_settings_email', 0),
  3178. ('sys_account_settings_pwd', 'system', 'sys_account', '_sys_form_display_account_settings_password', 0),
  3179. ('sys_account_settings_info', 'system', 'sys_account', '_sys_form_display_account_settings_info', 0),
  3180. ('sys_account_settings_del_account', 'system', 'sys_account', '_sys_form_display_account_settings_delete', 0),
  3181. ('sys_profile_cf_set', 'system', 'sys_profile', '_sys_form_display_profile_cf_set', 0),
  3182. ('sys_profile_cf_manage', 'system', 'sys_profile', '_sys_form_display_profile_cf_manage', 0),
  3183. ('sys_forgot_password', 'system', 'sys_forgot_password', '_sys_form_display_forgot_password', 0),
  3184. ('sys_forgot_password_reset', 'system', 'sys_forgot_password', '_sys_form_display_forgot_password_reset', 0),
  3185. ('sys_confirm_phone_set_phone', 'system', 'sys_confirm_phone', '_sys_form_display_confirm_phone_set_phone', 0),
  3186. ('sys_confirm_phone_confirmation', 'system', 'sys_confirm_phone', '_sys_form_display_confirm_phone_confirmation', 0),
  3187. ('sys_confirm_email', 'system', 'sys_confirm_email', '_sys_form_display_confirm_email', 0),
  3188. ('sys_unsubscribe_updates', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_updates', 0),
  3189. ('sys_unsubscribe_news', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_news', 0),
  3190. ('sys_comment_post', 'system', 'sys_comment', '_sys_form_display_comment_post', 0),
  3191. ('sys_comment_edit', 'system', 'sys_comment', '_sys_form_display_comment_edit', 0),
  3192. ('sys_review_post', 'system', 'sys_review', '_sys_form_review_display_post', 0),
  3193. ('sys_review_edit', 'system', 'sys_review', '_sys_form_review_display_edit', 0),
  3194. ('sys_report_post', 'system', 'sys_report', '_sys_form_display_report_post', 0),
  3195. ('sys_favorite_add', 'system', 'sys_favorite', '_sys_form_display_favorite_add', 0),
  3196. ('sys_favorite_list_edit', 'system', 'sys_favorite', '_sys_form_display_favorite_list_edit', 0),
  3197. ('sys_privacy_group_custom_members', 'system', 'sys_privacy_group_custom', '_sys_form_display_ps_gc_members', 0),
  3198. ('sys_privacy_group_custom_memberships', 'system', 'sys_privacy_group_custom', '_sys_form_display_ps_gc_memberships', 0),
  3199. ('sys_labels_select', 'system', 'sys_labels', '_sys_form_labels_display_select', 0),
  3200. ('sys_wiki_edit', 'system', 'sys_wiki', '_sys_form_display_wiki_edit', 0),
  3201. ('sys_wiki_translate', 'system', 'sys_wiki', '_sys_form_display_wiki_translate', 0),
  3202. ('sys_manage_approve', 'system', 'sys_manage', '_sys_form_display_manage_approve', 0),
  3203. ('sys_acl_set', 'system', 'sys_acl', '_sys_form_display_acl_set', 0);
  3204. CREATE TABLE IF NOT EXISTS `sys_form_inputs` (
  3205. `id` int(11) NOT NULL AUTO_INCREMENT,
  3206. `object` varchar(64) NOT NULL,
  3207. `module` varchar(32) NOT NULL,
  3208. `name` varchar(255) NOT NULL,
  3209. `value` varchar(255) NOT NULL,
  3210. `values` text NOT NULL,
  3211. `checked` tinyint(4) NOT NULL DEFAULT '0',
  3212. `type` varchar(32) NOT NULL,
  3213. `caption_system` varchar(255) NOT NULL,
  3214. `caption` varchar(255) NOT NULL,
  3215. `info` varchar(255) NOT NULL,
  3216. `help` varchar(255) NOT NULL,
  3217. `icon` text NOT NULL,
  3218. `required` tinyint(4) NOT NULL DEFAULT '0',
  3219. `unique` tinyint(4) NOT NULL DEFAULT '0',
  3220. `collapsed` tinyint(4) NOT NULL DEFAULT '0',
  3221. `html` tinyint(4) NOT NULL DEFAULT '0',
  3222. `privacy` tinyint(4) NOT NULL DEFAULT '0',
  3223. `rateable` varchar(32) NOT NULL DEFAULT '',
  3224. `attrs` text NOT NULL,
  3225. `attrs_tr` text NOT NULL,
  3226. `attrs_wrapper` text NOT NULL,
  3227. `checker_func` varchar(32) NOT NULL,
  3228. `checker_params` text NOT NULL,
  3229. `checker_error` varchar(255) NOT NULL,
  3230. `db_pass` varchar(32) NOT NULL,
  3231. `db_params` text NOT NULL,
  3232. `editable` tinyint(4) NOT NULL DEFAULT '1',
  3233. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3234. PRIMARY KEY (`id`),
  3235. UNIQUE KEY `display_name` (`object`(64),`name`(127))
  3236. );
  3237. 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
  3238. ('sys_login', 'system', 'role', '1', '', 0, 'hidden', '_sys_form_login_input_caption_system_role', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3239. ('sys_login', 'system', 'relocate', '', '', 0, 'hidden', '_sys_form_login_input_caption_system_relocate', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3240. ('sys_login', 'system', 'ID', '', '', 0, 'text', '_sys_form_login_input_caption_system_id', '_sys_form_login_input_email', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3241. ('sys_login', 'system', 'Password', '', '', 0, 'password', '_sys_form_login_input_caption_system_password', '_sys_form_login_input_password', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3242. ('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),
  3243. ('sys_login', 'system', 'login', '_sys_form_login_input_submit', '', 0, 'submit', '_sys_form_login_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3244. ('sys_login', 'system', 'submit_text', '', '', 0, 'custom', '_sys_form_login_input_caption_system_submit_text', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3245. ('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),
  3246. ('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),
  3247. ('sys_login', 'system', 'back', '', '', '', 'value', '_sys_form_login_input_caption_system_back', '_sys_form_login_input_back', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
  3248. ('sys_login', 'system', 'do_checkcode', '_sys_form_login_input_checkcode', '', 0, 'submit', '_sys_form_login_input_caption_system_checkcode', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3249. ('sys_login', 'system', 'do_sendsms', '_sys_form_login_input_sendsms', '', 0, 'submit', '_sys_form_login_input_caption_system_sendsms', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3250. ('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),
  3251. ('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),
  3252. ('sys_account', 'system', 'password', '', '', 0, 'password', '_sys_form_login_input_caption_system_password', '_sys_form_account_input_password', '', 1, 0, 0, '', '', '', 'Password', 'a:1:{s:4:"preg";s:38:"~^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).{8,}~";}', '_sys_form_account_input_password_error', '', '', 0, 0),
  3253. ('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),
  3254. ('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),
  3255. ('sys_account', 'system', 'do_publish', '_sys_form_account_input_publish', '', 0, 'submit', '_sys_form_login_input_caption_system_do_publish', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3256. ('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),
  3257. ('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),
  3258. ('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),
  3259. ('sys_account', 'system', 'delete_content', '1', '', 0, 'hidden', '_sys_form_login_input_caption_system_delete_content', '', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3260. ('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),
  3261. ('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),
  3262. ('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),
  3263. ('sys_account', 'system', 'agreement', '', '', 0, 'custom', '_sys_form_login_input_caption_system_agreement', '_sys_form_account_input_agreement', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3264. ('sys_profile', 'system', 'cfw_value', '', '#!sys_content_filter', 0, 'checkbox_set', '_sys_form_profile_input_sys_cfw_value', '_sys_form_profile_input_cfw_value', '', 0, 0, 0, '', '', '', '', '', '', 'Set', '', 1, 0),
  3265. ('sys_profile', 'system', 'cfu_items', '', '#!sys_content_filter', 0, 'checkbox_set', '_sys_form_profile_input_sys_cfu_items', '_sys_form_profile_input_cfu_items', '', 0, 0, 0, '', '', '', '', '', '', 'Set', '', 1, 0),
  3266. ('sys_profile', 'system', 'cfu_locked', '1', '', 0, 'switcher', '_sys_form_profile_input_sys_cfu_locked', '_sys_form_profile_input_cfu_locked', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  3267. ('sys_profile', 'system', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3268. ('sys_profile', 'system', 'do_submit', '_sys_form_profile_input_do_submit', '', 0, 'submit', '_sys_form_profile_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3269. ('sys_profile', 'system', 'do_cancel', '_sys_form_profile_input_do_cancel', '', 0, 'button', '_sys_form_profile_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),
  3270. ('sys_forgot_password', 'system', 'key', '', '', 0, 'hidden', '_sys_form_forgot_password_input_caption_system_key', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3271. ('sys_forgot_password', 'system', 'password', '', '', 0, 'password', '_sys_form_forgot_password_input_caption_system_password_reset', '_sys_form_forgot_password_input_caption_password_reset', '', 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),
  3272. ('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),
  3273. ('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),
  3274. ('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),
  3275. ('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),
  3276. ('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),
  3277. ('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),
  3278. ('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),
  3279. ('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),
  3280. ('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),
  3281. ('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),
  3282. ('sys_unsubscribe', 'system', 'id', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3283. ('sys_unsubscribe', 'system', 'code', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_code', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3284. ('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),
  3285. ('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),
  3286. ('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),
  3287. ('sys_comment', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3288. ('sys_comment', 'system', 'id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3289. ('sys_comment', 'system', 'action', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3290. ('sys_comment', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3291. ('sys_comment', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3292. ('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),
  3293. ('sys_comment', 'system', 'cmt_anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3294. ('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),
  3295. ('sys_comment', 'system', 'cmt_cf', '', '#!sys_content_filter', 0, 'select', '_sys_form_entry_input_sys_cf', '_sys_form_entry_input_cf', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3296. ('sys_comment', 'system', 'cmt_controls', '', 'cmt_submit,cmt_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3297. ('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),
  3298. ('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),
  3299. ('sys_review', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3300. ('sys_review', 'system', 'id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3301. ('sys_review', 'system', 'action', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3302. ('sys_review', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3303. ('sys_review', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3304. ('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),
  3305. ('sys_review', 'system', 'cmt_mood', '', '', 0, 'custom', '_sys_form_review_input_caption_system_cmt_mood', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  3306. ('sys_review', 'system', 'cmt_anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3307. ('sys_review', '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_review_input_caption_system_cmt_image', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3308. ('sys_review', 'system', 'cmt_cf', '', '#!sys_content_filter', 0, 'select', '_sys_form_entry_input_sys_cf', '_sys_form_entry_input_cf', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3309. ('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),
  3310. ('sys_report', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3311. ('sys_report', 'system', 'object_id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_object_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3312. ('sys_report', 'system', 'action', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3313. ('sys_report', 'system', 'id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3314. ('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),
  3315. ('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),
  3316. ('sys_report', 'system', 'submit', '_sys_form_report_input_caption_submit', '', 0, 'submit', '_sys_form_report_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3317. ('sys_favorite', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3318. ('sys_favorite', 'system', 'list_id', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_list_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3319. ('sys_favorite', 'system', 'object_id', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_object_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3320. ('sys_favorite', 'system', 'action', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3321. ('sys_favorite', 'system', 'id', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3322. ('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),
  3323. ('sys_favorite', 'system', 'new_list', '_sys_form_favorite_input_caption_button_new_list', '', 0, 'button', '', '', '', 0, 0, 0, 'a:1:{s:7:"onclick";s:29:"{js_object}.showNewList(this)";}', '', '', '', '', '', 'Xss', '', 1, 0),
  3324. ('sys_favorite', 'system', 'title', '', '', 0, 'text', '_sys_form_favorite_input_caption_system_title', '_sys_form_favorite_input_caption_title', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3325. ('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),
  3326. ('sys_favorite', 'system', 'submit', '_sys_form_favorite_input_caption_submit', '', 0, 'submit', '_sys_form_favorite_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3327. ('sys_privacy_group_custom', 'system', 'profile_id', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_profile_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3328. ('sys_privacy_group_custom', 'system', 'content_id', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_content_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3329. ('sys_privacy_group_custom', 'system', 'object', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_object', '', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
  3330. ('sys_privacy_group_custom', 'system', 'action', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3331. ('sys_privacy_group_custom', 'system', 'group_id', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_group_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3332. ('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),
  3333. ('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),
  3334. ('sys_privacy_group_custom', 'system', 'memberships', '', '', 0, 'checkbox_set', '_sys_form_ps_gc_input_caption_system_memberships', '_sys_form_ps_gc_input_caption_memberships', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3335. ('sys_privacy_group_custom', 'system', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3336. ('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),
  3337. ('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),
  3338. ('sys_labels', 'system', 'name', '', '', 0, 'hidden', '_sys_form_labels_input_caption_system_name', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3339. ('sys_labels', 'system', 'action', '', '', 0, 'hidden', '_sys_form_labels_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3340. ('sys_labels', 'system', 'search', '', '', 0, 'custom', '_sys_form_labels_input_caption_system_search', '_sys_form_labels_input_caption_search', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3341. ('sys_labels', 'system', 'list', '', '', 0, 'custom', '_sys_form_labels_input_caption_system_list', '_sys_form_labels_input_caption_list', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3342. ('sys_labels', 'system', 'list_context', '', '', 0, 'custom', '_sys_form_labels_input_caption_system_list_context', '_sys_form_labels_input_caption_list_context', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3343. ('sys_labels', 'system', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3344. ('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),
  3345. ('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),
  3346. ('sys_wiki', 'system', 'block_id', '', '', 0, 'hidden', '', '_sys_form_wiki_input_caption_block_id', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3347. ('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),
  3348. ('sys_wiki', 'system', 'content_main', '', '', 0, 'custom', '', '_sys_form_wiki_input_caption_content_main', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3349. ('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),
  3350. ('sys_wiki', 'system', 'notes', '', '', 0, 'text', '', '_sys_form_wiki_input_caption_notes', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
  3351. ('sys_wiki', 'system', 'files', 'a:1:{i:0;s:9:"sys_html5";}', 'a:1:{s:9:"sys_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '', '_sys_form_wiki_input_caption_files', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3352. ('sys_wiki', 'system', 'do_submit', '_sys_submit', '', 0, 'submit', '_sys_form_wiki_input_caption_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3353. ('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),
  3354. ('sys_wiki', 'system', 'buttons', '', 'do_submit,close', 0, 'input_set', '_sys_form_wiki_buttons', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3355. ('sys_manage', 'system', 'content_id', '', '', 0, 'hidden', '', '_sys_form_manage_input_sys_content_id', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3356. ('sys_manage', 'system', 'notes', '', '', 0, 'textarea', '_sys_form_manage_input_sys_notes', '_sys_form_manage_input_notes', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
  3357. ('sys_manage', 'system', 'controls', '', 'do_send,do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3358. ('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),
  3359. ('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),
  3360. ('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),
  3361. ('sys_acl', 'system', 'profile_id', '', '', 0, 'hidden', '_sys_form_acl_input_sys_profile_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3362. ('sys_acl', 'system', 'card', '', '', 0, 'hidden', '_sys_form_acl_input_sys_card', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3363. ('sys_acl', 'system', 'level_id', '', '', 0, 'radio_set', '_sys_form_acl_input_sys_level_id', '_sys_form_acl_input_level_id', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  3364. ('sys_acl', 'system', 'duration', '', '', 0, 'text', '_sys_form_acl_input_sys_duration', '_sys_form_acl_input_duration', '_sys_form_acl_input_duration_inf', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  3365. ('sys_acl', 'system', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3366. ('sys_acl', 'system', 'do_submit', '_sys_form_acl_input_do_submit', '', 0, 'submit', '_sys_form_acl_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3367. ('sys_acl', 'system', 'do_cancel', '_sys_form_acl_input_do_cancel', '', 0, 'button', '_sys_form_acl_input_sys_do_cancel', '', '', 0, 0, 0, 'a:2:{s:5:"class";s:22:"bx-def-margin-sec-left";s:7:"onclick";s:65:"$(this).parents(''.bx-popup-applied:visible:first'').dolPopupHide()";}', '', '', '', '', '', '', '', 0, 0);
  3368. CREATE TABLE IF NOT EXISTS `sys_form_inputs_privacy` (
  3369. `id` int(11) NOT NULL AUTO_INCREMENT,
  3370. `input_id` int(11) unsigned NOT NULL default '0',
  3371. `author_id` int(11) unsigned NOT NULL default '0',
  3372. `allow_view_to` varchar(16) NOT NULL DEFAULT '3',
  3373. PRIMARY KEY (`id`),
  3374. UNIQUE KEY `input` (`input_id`,`author_id`)
  3375. );
  3376. CREATE TABLE IF NOT EXISTS `sys_form_display_inputs` (
  3377. `id` int(11) NOT NULL AUTO_INCREMENT,
  3378. `display_name` varchar(64) NOT NULL,
  3379. `input_name` varchar(32) NOT NULL,
  3380. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3381. `active` tinyint(4) NOT NULL DEFAULT '0',
  3382. `order` int(11) NOT NULL,
  3383. PRIMARY KEY (`id`),
  3384. UNIQUE KEY `display_input` (`display_name`,`input_name`)
  3385. );
  3386. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  3387. ('sys_login', 'role', 2147483647, 1, 1),
  3388. ('sys_login', 'relocate', 2147483647, 1, 2),
  3389. ('sys_login', 'ID', 2147483647, 1, 3),
  3390. ('sys_login', 'Password', 2147483647, 1, 4),
  3391. ('sys_login', 'rememberMe', 2147483647, 1, 5),
  3392. ('sys_login', 'submit_text', 2147483647, 1, 6),
  3393. ('sys_login', 'login', 2147483647, 1, 7),
  3394. ('sys_login_step2', 'phone', 2147483647, 1, 1),
  3395. ('sys_login_step2', 'do_sendsms', 2147483647, 1, 2),
  3396. ('sys_login_step2', 'relocate', 2147483647, 1, 3),
  3397. ('sys_login_step3', 'code', 2147483647, 1, 1),
  3398. ('sys_login_step3', 'do_checkcode', 2147483647, 1, 2),
  3399. ('sys_login_step3', 'back', 2147483647, 1, 3),
  3400. ('sys_login_step3', 'relocate', 2147483647, 1, 4),
  3401. ('sys_account_create', 'name', 2147483647, 1, 1),
  3402. ('sys_account_create', 'email', 2147483647, 1, 2),
  3403. ('sys_account_create', 'phone', 2147483647, 0, 3),
  3404. ('sys_account_create', 'password', 2147483647, 1, 4),
  3405. ('sys_account_create', 'receive_news', 2147483647, 1, 5),
  3406. ('sys_account_create', 'do_publish', 2147483647, 1, 6),
  3407. ('sys_account_create', 'agreement', 2147483647, 0, 7),
  3408. ('sys_account_settings_email', 'email', 2147483647, 1, 1),
  3409. ('sys_account_settings_email', 'password_current', 2147483647, 1, 2),
  3410. ('sys_account_settings_email', 'receive_updates', 2147483647, 1, 3),
  3411. ('sys_account_settings_email', 'receive_news', 2147483647, 1, 4),
  3412. ('sys_account_settings_email', 'do_submit', 2147483647, 1, 5),
  3413. ('sys_account_settings_pwd', 'password_current', 2147483647, 1, 1),
  3414. ('sys_account_settings_pwd', 'password', 2147483647, 1, 2),
  3415. ('sys_account_settings_pwd', 'password_confirm', 2147483647, 1, 3),
  3416. ('sys_account_settings_pwd', 'do_submit', 2147483647, 1, 4),
  3417. ('sys_account_settings_del_account', 'delete_content', 2147483647, 1, 0),
  3418. ('sys_account_settings_del_account', 'delete_confirm', 2147483647, 1, 1),
  3419. ('sys_account_settings_del_account', 'password_current', 2147483647, 1, 2),
  3420. ('sys_account_settings_del_account', 'do_submit', 2147483647, 1, 3),
  3421. ('sys_account_settings_info', 'name', 2147483647, 1, 1),
  3422. ('sys_account_settings_info', 'do_submit', 2147483647, 1, 2),
  3423. ('sys_profile_cf_set', 'cfw_value', 2147483647, 1, 1),
  3424. ('sys_profile_cf_set', 'do_submit', 2147483647, 1, 2),
  3425. ('sys_profile_cf_manage', 'cfu_items', 2147483647, 1, 1),
  3426. ('sys_profile_cf_manage', 'cfu_locked', 2147483647, 1, 2),
  3427. ('sys_profile_cf_manage', 'controls', 2147483647, 1, 3),
  3428. ('sys_profile_cf_manage', 'do_submit', 2147483647, 1, 4),
  3429. ('sys_profile_cf_manage', 'do_cancel', 2147483647, 1, 5),
  3430. ('sys_forgot_password', 'email', 2147483647, 1, 1),
  3431. ('sys_forgot_password', 'phone', 2147483647, 1, 2),
  3432. ('sys_forgot_password', 'captcha', 2147483647, 1, 3),
  3433. ('sys_forgot_password', 'do_submit', 2147483647, 1, 4),
  3434. ('sys_forgot_password_reset', 'key', 2147483647, 1, 1),
  3435. ('sys_forgot_password_reset', 'password', 2147483647, 1, 2),
  3436. ('sys_forgot_password_reset', 'captcha', 2147483647, 1, 3),
  3437. ('sys_forgot_password_reset', 'do_submit', 2147483647, 1, 4),
  3438. ('sys_confirm_email', 'code', 2147483647, 1, 1),
  3439. ('sys_confirm_email', 'do_submit', 2147483647, 1, 2),
  3440. ('sys_confirm_phone_set_phone', 'phone', 2147483647, 1, 1),
  3441. ('sys_confirm_phone_set_phone', 'do_sendsms', 2147483647, 1, 2),
  3442. ('sys_confirm_phone_confirmation', 'code', 2147483647, 1, 1),
  3443. ('sys_confirm_phone_confirmation', 'do_submit', 2147483647, 1, 2),
  3444. ('sys_unsubscribe_updates', 'id', 2147483647, 1, 1),
  3445. ('sys_unsubscribe_updates', 'code', 2147483647, 1, 2),
  3446. ('sys_unsubscribe_updates', 'receive_updates', 2147483647, 1, 3),
  3447. ('sys_unsubscribe_updates', 'do_submit', 2147483647, 1, 4),
  3448. ('sys_unsubscribe_news', 'id', 2147483647, 1, 1),
  3449. ('sys_unsubscribe_news', 'code', 2147483647, 1, 2),
  3450. ('sys_unsubscribe_news', 'receive_news', 2147483647, 1, 3),
  3451. ('sys_unsubscribe_news', 'do_submit', 2147483647, 1, 4),
  3452. ('sys_comment_post', 'sys', 2147483647, 1, 1),
  3453. ('sys_comment_post', 'id', 2147483647, 1, 2),
  3454. ('sys_comment_post', 'action', 2147483647, 1, 3),
  3455. ('sys_comment_post', 'cmt_id', 2147483647, 0, 4),
  3456. ('sys_comment_post', 'cmt_parent_id', 2147483647, 1, 5),
  3457. ('sys_comment_post', 'cmt_text', 2147483647, 1, 6),
  3458. ('sys_comment_post', 'cmt_cf', 2147483647, 1, 7),
  3459. ('sys_comment_post', 'cmt_submit', 2147483647, 1, 8),
  3460. ('sys_comment_post', 'cmt_image', 2147483647, 1, 9),
  3461. ('sys_comment_edit', 'sys', 2147483647, 1, 1),
  3462. ('sys_comment_edit', 'id', 2147483647, 1, 2),
  3463. ('sys_comment_edit', 'action', 2147483647, 1, 3),
  3464. ('sys_comment_edit', 'cmt_id', 2147483647, 1, 4),
  3465. ('sys_comment_edit', 'cmt_parent_id', 2147483647, 1, 5),
  3466. ('sys_comment_edit', 'cmt_text', 2147483647, 1, 6),
  3467. ('sys_comment_edit', 'cmt_cf', 2147483647, 1, 7),
  3468. ('sys_comment_edit', 'cmt_controls', 2147483647, 1, 8),
  3469. ('sys_comment_edit', 'cmt_submit', 2147483647, 1, 9),
  3470. ('sys_comment_edit', 'cmt_cancel', 2147483647, 1, 10),
  3471. ('sys_comment_edit', 'cmt_image', 2147483647, 1, 11),
  3472. ('sys_review_post', 'sys', 2147483647, 1, 1),
  3473. ('sys_review_post', 'id', 2147483647, 1, 2),
  3474. ('sys_review_post', 'action', 2147483647, 1, 3),
  3475. ('sys_review_post', 'cmt_id', 2147483647, 0, 4),
  3476. ('sys_review_post', 'cmt_parent_id', 2147483647, 1, 5),
  3477. ('sys_review_post', 'cmt_text', 2147483647, 1, 6),
  3478. ('sys_review_post', 'cmt_mood', 2147483647, 1, 7),
  3479. ('sys_review_post', 'cmt_cf', 2147483647, 1, 9),
  3480. ('sys_review_post', 'cmt_submit', 2147483647, 1, 10),
  3481. ('sys_review_post', 'cmt_image', 2147483647, 1, 11),
  3482. ('sys_review_edit', 'sys', 2147483647, 1, 1),
  3483. ('sys_review_edit', 'id', 2147483647, 1, 2),
  3484. ('sys_review_edit', 'action', 2147483647, 1, 3),
  3485. ('sys_review_edit', 'cmt_id', 2147483647, 1, 4),
  3486. ('sys_review_edit', 'cmt_parent_id', 2147483647, 1, 5),
  3487. ('sys_review_edit', 'cmt_text', 2147483647, 1, 6),
  3488. ('sys_review_edit', 'cmt_mood', 2147483647, 1, 7),
  3489. ('sys_review_edit', 'cmt_cf', 2147483647, 1, 9),
  3490. ('sys_review_edit', 'cmt_submit', 2147483647, 1, 10),
  3491. ('sys_review_edit', 'cmt_image', 2147483647, 1, 11),
  3492. ('sys_report_post', 'sys', 2147483647, 1, 1),
  3493. ('sys_report_post', 'object_id', 2147483647, 1, 2),
  3494. ('sys_report_post', 'action', 2147483647, 1, 3),
  3495. ('sys_report_post', 'id', 2147483647, 0, 4),
  3496. ('sys_report_post', 'type', 2147483647, 1, 5),
  3497. ('sys_report_post', 'text', 2147483647, 1, 6),
  3498. ('sys_report_post', 'submit', 2147483647, 1, 7),
  3499. ('sys_favorite_add', 'sys', 2147483647, 1, 1),
  3500. ('sys_favorite_add', 'object_id', 2147483647, 1, 2),
  3501. ('sys_favorite_add', 'action', 2147483647, 1, 3),
  3502. ('sys_favorite_add', 'id', 2147483647, 0, 4),
  3503. ('sys_favorite_add', 'list', 2147483647, 1, 5),
  3504. ('sys_favorite_add', 'new_list', 2147483647, 1, 6),
  3505. ('sys_favorite_add', 'title', 2147483647, 1, 7),
  3506. ('sys_favorite_add', 'allow_view_favorite_list_to', 2147483647, 1, 8),
  3507. ('sys_favorite_add', 'submit', 2147483647, 1, 9),
  3508. ('sys_favorite_list_edit', 'sys', 2147483647, 1, 1),
  3509. ('sys_favorite_list_edit', 'list_id', 2147483647, 1, 2),
  3510. ('sys_favorite_list_edit', 'object_id', 2147483647, 1, 3),
  3511. ('sys_favorite_list_edit', 'action', 2147483647, 1, 4),
  3512. ('sys_favorite_list_edit', 'title', 2147483647, 1, 5),
  3513. ('sys_favorite_list_edit', 'allow_view_favorite_list_to', 2147483647, 1, 6),
  3514. ('sys_favorite_list_edit', 'submit', 2147483647, 1, 7),
  3515. ('sys_privacy_group_custom_members', 'profile_id', 2147483647, 1, 1),
  3516. ('sys_privacy_group_custom_members', 'content_id', 2147483647, 1, 2),
  3517. ('sys_privacy_group_custom_members', 'object', 2147483647, 1, 3),
  3518. ('sys_privacy_group_custom_members', 'action', 2147483647, 1, 4),
  3519. ('sys_privacy_group_custom_members', 'group_id', 2147483647, 1, 5),
  3520. ('sys_privacy_group_custom_members', 'search', 2147483647, 1, 6),
  3521. ('sys_privacy_group_custom_members', 'list', 2147483647, 1, 7),
  3522. ('sys_privacy_group_custom_members', 'controls', 2147483647, 1, 8),
  3523. ('sys_privacy_group_custom_members', 'do_submit', 2147483647, 1, 9),
  3524. ('sys_privacy_group_custom_members', 'do_cancel', 2147483647, 1, 10),
  3525. ('sys_privacy_group_custom_memberships', 'profile_id', 2147483647, 1, 1),
  3526. ('sys_privacy_group_custom_memberships', 'content_id', 2147483647, 1, 2),
  3527. ('sys_privacy_group_custom_memberships', 'object', 2147483647, 1, 3),
  3528. ('sys_privacy_group_custom_memberships', 'action', 2147483647, 1, 4),
  3529. ('sys_privacy_group_custom_memberships', 'group_id', 2147483647, 1, 5),
  3530. ('sys_privacy_group_custom_memberships', 'memberships', 2147483647, 1, 6),
  3531. ('sys_privacy_group_custom_memberships', 'controls', 2147483647, 1, 7),
  3532. ('sys_privacy_group_custom_memberships', 'do_submit', 2147483647, 1, 8),
  3533. ('sys_privacy_group_custom_memberships', 'do_cancel', 2147483647, 1, 9),
  3534. ('sys_labels_select', 'name', 2147483647, 1, 1),
  3535. ('sys_labels_select', 'action', 2147483647, 1, 2),
  3536. ('sys_labels_select', 'search', 2147483647, 1, 3),
  3537. ('sys_labels_select', 'list', 2147483647, 1, 4),
  3538. ('sys_labels_select', 'list_context', 2147483647, 1, 5),
  3539. ('sys_labels_select', 'controls', 2147483647, 1, 6),
  3540. ('sys_labels_select', 'do_submit', 2147483647, 1, 7),
  3541. ('sys_labels_select', 'do_cancel', 2147483647, 1, 8),
  3542. ('sys_wiki_edit', 'block_id', 2147483647, 1, 1),
  3543. ('sys_wiki_edit', 'language', 2147483647, 1, 2),
  3544. ('sys_wiki_edit', 'content', 2147483647, 1, 3),
  3545. ('sys_wiki_edit', 'files', 2147483647, 1, 4),
  3546. ('sys_wiki_edit', 'notes', 2147483647, 1, 5),
  3547. ('sys_wiki_edit', 'do_submit', 2147483647, 1, 6),
  3548. ('sys_wiki_edit', 'close', 2147483647, 1, 7),
  3549. ('sys_wiki_edit', 'buttons', 2147483647, 1, 8),
  3550. ('sys_wiki_translate', 'block_id', 2147483647, 1, 1),
  3551. ('sys_wiki_translate', 'content_main', 2147483647, 1, 2),
  3552. ('sys_wiki_translate', 'language', 2147483647, 1, 3),
  3553. ('sys_wiki_translate', 'content', 2147483647, 1, 4),
  3554. ('sys_wiki_translate', 'files', 2147483647, 1, 5),
  3555. ('sys_wiki_translate', 'notes', 2147483647, 1, 6),
  3556. ('sys_wiki_translate', 'do_submit', 2147483647, 1, 7),
  3557. ('sys_wiki_translate', 'close', 2147483647, 1, 8),
  3558. ('sys_wiki_translate', 'buttons', 2147483647, 1, 9),
  3559. ('sys_manage_approve', 'content_id', 2147483647, 1, 1),
  3560. ('sys_manage_approve', 'notes', 2147483647, 1, 2),
  3561. ('sys_manage_approve', 'controls', 2147483647, 1, 3),
  3562. ('sys_manage_approve', 'do_send', 2147483647, 1, 4),
  3563. ('sys_manage_approve', 'do_submit', 2147483647, 1, 5),
  3564. ('sys_manage_approve', 'do_cancel', 2147483647, 1, 6),
  3565. ('sys_acl_set', 'profile_id', 2147483647, 1, 1),
  3566. ('sys_acl_set', 'card', 2147483647, 1, 2),
  3567. ('sys_acl_set', 'level_id', 2147483647, 1, 3),
  3568. ('sys_acl_set', 'duration', 2147483647, 1, 4),
  3569. ('sys_acl_set', 'controls', 2147483647, 1, 5),
  3570. ('sys_acl_set', 'do_submit', 2147483647, 1, 6),
  3571. ('sys_acl_set', 'do_cancel', 2147483647, 1, 7);
  3572. CREATE TABLE `sys_form_fields_ids` (
  3573. `id` int(11) NOT NULL AUTO_INCREMENT,
  3574. `object_form` varchar(64) NOT NULL default '',
  3575. `module` varchar(32) NOT NULL,
  3576. `field_name` varchar(255) NOT NULL default '',
  3577. `content_id` int(11) NOT NULL DEFAULT '0',
  3578. `author_id` int(10) NOT NULL DEFAULT '0',
  3579. `nested_content_id` int(10) NOT NULL default '0',
  3580. `rate` float NOT NULL default '0',
  3581. `votes` int(11) NOT NULL default '0',
  3582. `rrate` float NOT NULL DEFAULT '0',
  3583. `rvotes` int(11) NOT NULL DEFAULT '0',
  3584. PRIMARY KEY (`id`),
  3585. KEY `system_form_fields_id` (`object_form`, `content_id`, `nested_content_id`)
  3586. );
  3587. CREATE TABLE `sys_form_pre_lists` (
  3588. `id` int(11) NOT NULL AUTO_INCREMENT,
  3589. `module` varchar(32) NOT NULL default '',
  3590. `key` varchar(255) NOT NULL default '',
  3591. `title` varchar(255) NOT NULL default '',
  3592. `use_for_sets` tinyint(4) unsigned NOT NULL default '1',
  3593. `extendable` tinyint(4) unsigned NOT NULL default '1',
  3594. PRIMARY KEY (`id`),
  3595. UNIQUE KEY `key` (`key`(191)),
  3596. FULLTEXT KEY `ModuleAndKey` (`module`(32), `key`(159))
  3597. );
  3598. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`, `extendable`) VALUES
  3599. ('Country', '_adm_form_txt_pre_lists_country', 'system', '0', '1'),
  3600. ('Sex', '_adm_form_txt_pre_lists_sex', 'system', '1', '1'),
  3601. ('Language', '_adm_form_txt_pre_lists_language', 'system', '0', '1'),
  3602. ('Currency', '_adm_form_txt_pre_lists_currency', 'system', '0', '1'),
  3603. ('sys_report_types', '_sys_pre_lists_report_types', 'system', '0', '0'),
  3604. ('sys_vote_reactions', '_sys_pre_lists_vote_reactions', 'system', '0', '0'),
  3605. ('sys_relations', '_sys_pre_lists_relations', 'system', '0', '1'),
  3606. ('sys_content_filter', '_sys_pre_lists_content_filter', 'system', '1', '0'),
  3607. ('sys_studio_widget_types', '_sys_pre_lists_studio_widget_types', 'system', '0', '0'),
  3608. ('sys_colors', '_sys_pre_lists_colors', 'system', '0', '0');
  3609. CREATE TABLE `sys_form_pre_values` (
  3610. `id` int(11) NOT NULL AUTO_INCREMENT,
  3611. `Key` varchar(255) NOT NULL default '',
  3612. `Value` varchar(255) NOT NULL default '',
  3613. `Order` int(10) unsigned NOT NULL default '0',
  3614. `LKey` varchar(255) NOT NULL default '',
  3615. `LKey2` varchar(255) NOT NULL default '',
  3616. `Data` text NOT NULL default '',
  3617. PRIMARY KEY (`id`),
  3618. FULLTEXT KEY `KeyAndValue` (`Key`, `Value`)
  3619. );
  3620. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3621. ('Country', 'AF', 1, '__Afghanistan', ''),
  3622. ('Country', 'AX', 2, '__Aland_Islands', ''),
  3623. ('Country', 'AL', 3, '__Albania', ''),
  3624. ('Country', 'DZ', 4, '__Algeria', ''),
  3625. ('Country', 'AS', 5, '__American Samoa', ''),
  3626. ('Country', 'AD', 6, '__Andorra', ''),
  3627. ('Country', 'AO', 7, '__Angola', ''),
  3628. ('Country', 'AI', 8, '__Anguilla', ''),
  3629. ('Country', 'AQ', 9, '__Antarctica', ''),
  3630. ('Country', 'AG', 10, '__Antigua and Barbuda', ''),
  3631. ('Country', 'AR', 11, '__Argentina', ''),
  3632. ('Country', 'AM', 12, '__Armenia', ''),
  3633. ('Country', 'AW', 13, '__Aruba', ''),
  3634. ('Country', 'AU', 14, '__Australia', ''),
  3635. ('Country', 'AT', 15, '__Austria', ''),
  3636. ('Country', 'AZ', 16, '__Azerbaijan', ''),
  3637. ('Country', 'BH', 17, '__Bahrain', ''),
  3638. ('Country', 'BD', 18, '__Bangladesh', ''),
  3639. ('Country', 'BB', 19, '__Barbados', ''),
  3640. ('Country', 'BY', 20, '__Belarus', ''),
  3641. ('Country', 'BE', 21, '__Belgium', ''),
  3642. ('Country', 'BZ', 22, '__Belize', ''),
  3643. ('Country', 'BJ', 23, '__Benin', ''),
  3644. ('Country', 'BM', 24, '__Bermuda', ''),
  3645. ('Country', 'BT', 25, '__Bhutan', ''),
  3646. ('Country', 'BO', 26, '__Bolivia', ''),
  3647. ('Country', 'BA', 27, '__Bosnia and Herzegovina', ''),
  3648. ('Country', 'BW', 28, '__Botswana', ''),
  3649. ('Country', 'BV', 29, '__Bouvet Island', ''),
  3650. ('Country', 'BR', 30, '__Brazil', ''),
  3651. ('Country', 'IO', 31, '__British Indian Ocean Territory', ''),
  3652. ('Country', 'VG', 32, '__British Virgin Islands', ''),
  3653. ('Country', 'BN', 33, '__Brunei Darussalam', ''),
  3654. ('Country', 'BG', 34, '__Bulgaria', ''),
  3655. ('Country', 'BF', 35, '__Burkina Faso', ''),
  3656. ('Country', 'MM', 36, '__Burma', ''),
  3657. ('Country', 'BI', 37, '__Burundi', ''),
  3658. ('Country', 'KH', 38, '__Cambodia', ''),
  3659. ('Country', 'CM', 39, '__Cameroon', ''),
  3660. ('Country', 'CA', 40, '__Canada', ''),
  3661. ('Country', 'CV', 41, '__Cape Verde', ''),
  3662. ('Country', 'KY', 42, '__Cayman Islands', ''),
  3663. ('Country', 'CF', 43, '__Central African Republic', ''),
  3664. ('Country', 'TD', 44, '__Chad', ''),
  3665. ('Country', 'CL', 45, '__Chile', ''),
  3666. ('Country', 'CN', 46, '__China', ''),
  3667. ('Country', 'CX', 47, '__Christmas Island', ''),
  3668. ('Country', 'CC', 48, '__Cocos (Keeling) Islands', ''),
  3669. ('Country', 'CO', 49, '__Colombia', ''),
  3670. ('Country', 'KM', 50, '__Comoros', ''),
  3671. ('Country', 'CD', 51, '__Congo, Democratic Republic of the', ''),
  3672. ('Country', 'CG', 52, '__Congo, Republic of the', ''),
  3673. ('Country', 'CK', 53, '__Cook Islands', ''),
  3674. ('Country', 'CR', 54, '__Costa Rica', ''),
  3675. ('Country', 'CI', 55, '__Cote d''Ivoire', ''),
  3676. ('Country', 'HR', 56, '__Croatia', ''),
  3677. ('Country', 'CU', 57, '__Cuba', ''),
  3678. ('Country', 'CY', 58, '__Cyprus', ''),
  3679. ('Country', 'CZ', 59, '__Czech Republic', ''),
  3680. ('Country', 'DK', 60, '__Denmark', ''),
  3681. ('Country', 'DJ', 61, '__Djibouti', ''),
  3682. ('Country', 'DM', 62, '__Dominica', ''),
  3683. ('Country', 'DO', 63, '__Dominican Republic', ''),
  3684. ('Country', 'TL', 64, '__East Timor', ''),
  3685. ('Country', 'EC', 65, '__Ecuador', ''),
  3686. ('Country', 'EG', 66, '__Egypt', ''),
  3687. ('Country', 'SV', 67, '__El Salvador', ''),
  3688. ('Country', 'GQ', 68, '__Equatorial Guinea', ''),
  3689. ('Country', 'ER', 69, '__Eritrea', ''),
  3690. ('Country', 'EE', 70, '__Estonia', ''),
  3691. ('Country', 'ET', 71, '__Ethiopia', ''),
  3692. ('Country', 'FK', 72, '__Falkland Islands (Islas Malvinas)', ''),
  3693. ('Country', 'FO', 73, '__Faroe Islands', ''),
  3694. ('Country', 'FJ', 74, '__Fiji', ''),
  3695. ('Country', 'FI', 75, '__Finland', ''),
  3696. ('Country', 'FR', 76, '__France', ''),
  3697. ('Country', 'GF', 77, '__French Guiana', ''),
  3698. ('Country', 'PF', 78, '__French Polynesia', ''),
  3699. ('Country', 'TF', 79, '__French Southern and Antarctic Lands', ''),
  3700. ('Country', 'GA', 80, '__Gabon', ''),
  3701. ('Country', 'GE', 81, '__Georgia', ''),
  3702. ('Country', 'DE', 82, '__Germany', ''),
  3703. ('Country', 'GH', 83, '__Ghana', ''),
  3704. ('Country', 'GI', 84, '__Gibraltar', ''),
  3705. ('Country', 'GR', 85, '__Greece', ''),
  3706. ('Country', 'GL', 86, '__Greenland', ''),
  3707. ('Country', 'GD', 87, '__Grenada', ''),
  3708. ('Country', 'GP', 88, '__Guadeloupe', ''),
  3709. ('Country', 'GU', 89, '__Guam', ''),
  3710. ('Country', 'GT', 90, '__Guatemala', ''),
  3711. ('Country', 'GG', 91, '__Guernsey', ''),
  3712. ('Country', 'GN', 92, '__Guinea', ''),
  3713. ('Country', 'GW', 93, '__Guinea-Bissau', ''),
  3714. ('Country', 'GY', 94, '__Guyana', ''),
  3715. ('Country', 'HT', 95, '__Haiti', ''),
  3716. ('Country', 'HM', 96, '__Heard Island and McDonald Islands', ''),
  3717. ('Country', 'VA', 97, '__Holy See (Vatican City)', ''),
  3718. ('Country', 'HN', 98, '__Honduras', ''),
  3719. ('Country', 'HK', 99, '__Hong Kong (SAR)', ''),
  3720. ('Country', 'HU', 100, '__Hungary', ''),
  3721. ('Country', 'IS', 101, '__Iceland', ''),
  3722. ('Country', 'IN', 102, '__India', ''),
  3723. ('Country', 'ID', 103, '__Indonesia', ''),
  3724. ('Country', 'IR', 104, '__Iran', ''),
  3725. ('Country', 'IQ', 105, '__Iraq', ''),
  3726. ('Country', 'IE', 106, '__Ireland', ''),
  3727. ('Country', 'IM', 107, '__Isle_of_Man', ''),
  3728. ('Country', 'IL', 108, '__Israel', ''),
  3729. ('Country', 'IT', 109, '__Italy', ''),
  3730. ('Country', 'JM', 110, '__Jamaica', ''),
  3731. ('Country', 'JP', 111, '__Japan', ''),
  3732. ('Country', 'JE', 112, '__Jersey', ''),
  3733. ('Country', 'JO', 113, '__Jordan', ''),
  3734. ('Country', 'KZ', 114, '__Kazakhstan', ''),
  3735. ('Country', 'KE', 115, '__Kenya', ''),
  3736. ('Country', 'KI', 116, '__Kiribati', ''),
  3737. ('Country', 'KP', 117, '__Korea, North', ''),
  3738. ('Country', 'KR', 118, '__Korea, South', ''),
  3739. ('Country', 'KW', 119, '__Kuwait', ''),
  3740. ('Country', 'KG', 120, '__Kyrgyzstan', ''),
  3741. ('Country', 'LA', 121, '__Laos', ''),
  3742. ('Country', 'LV', 122, '__Latvia', ''),
  3743. ('Country', 'LB', 123, '__Lebanon', ''),
  3744. ('Country', 'LS', 124, '__Lesotho', ''),
  3745. ('Country', 'LR', 125, '__Liberia', ''),
  3746. ('Country', 'LY', 126, '__Libya', ''),
  3747. ('Country', 'LI', 127, '__Liechtenstein', ''),
  3748. ('Country', 'LT', 128, '__Lithuania', ''),
  3749. ('Country', 'LU', 129, '__Luxembourg', ''),
  3750. ('Country', 'MO', 130, '__Macao', ''),
  3751. ('Country', 'MK', 131, '__Macedonia, The Former Yugoslav Republic of', ''),
  3752. ('Country', 'MG', 132, '__Madagascar', ''),
  3753. ('Country', 'MW', 133, '__Malawi', ''),
  3754. ('Country', 'MY', 134, '__Malaysia', ''),
  3755. ('Country', 'MV', 135, '__Maldives', ''),
  3756. ('Country', 'ML', 136, '__Mali', ''),
  3757. ('Country', 'MT', 137, '__Malta', ''),
  3758. ('Country', 'MH', 138, '__Marshall Islands', ''),
  3759. ('Country', 'MQ', 139, '__Martinique', ''),
  3760. ('Country', 'MR', 140, '__Mauritania', ''),
  3761. ('Country', 'MU', 141, '__Mauritius', ''),
  3762. ('Country', 'YT', 142, '__Mayotte', ''),
  3763. ('Country', 'MX', 143, '__Mexico', ''),
  3764. ('Country', 'FM', 144, '__Micronesia, Federated States of', ''),
  3765. ('Country', 'MD', 145, '__Moldova', ''),
  3766. ('Country', 'MC', 146, '__Monaco', ''),
  3767. ('Country', 'MN', 147, '__Mongolia', ''),
  3768. ('Country', 'ME', 148, '__Montenegro', ''),
  3769. ('Country', 'MS', 149, '__Montserrat', ''),
  3770. ('Country', 'MA', 150, '__Morocco', ''),
  3771. ('Country', 'MZ', 151, '__Mozambique', ''),
  3772. ('Country', 'NA', 152, '__Namibia', ''),
  3773. ('Country', 'NR', 153, '__Nauru', ''),
  3774. ('Country', 'NP', 154, '__Nepal', ''),
  3775. ('Country', 'NL', 155, '__Netherlands', ''),
  3776. ('Country', 'AN', 156, '__Netherlands Antilles', ''),
  3777. ('Country', 'NC', 157, '__New Caledonia', ''),
  3778. ('Country', 'NZ', 158, '__New Zealand', ''),
  3779. ('Country', 'NI', 159, '__Nicaragua', ''),
  3780. ('Country', 'NE', 160, '__Niger', ''),
  3781. ('Country', 'NG', 161, '__Nigeria', ''),
  3782. ('Country', 'NU', 162, '__Niue', ''),
  3783. ('Country', 'NF', 163, '__Norfolk Island', ''),
  3784. ('Country', 'MP', 164, '__Northern Mariana Islands', ''),
  3785. ('Country', 'NO', 165, '__Norway', ''),
  3786. ('Country', 'OM', 166, '__Oman', ''),
  3787. ('Country', 'PK', 167, '__Pakistan', ''),
  3788. ('Country', 'PW', 168, '__Palau', ''),
  3789. ('Country', 'PS', 169, '__Palestinian Territory, Occupied', ''),
  3790. ('Country', 'PA', 170, '__Panama', ''),
  3791. ('Country', 'PG', 171, '__Papua New Guinea', ''),
  3792. ('Country', 'PY', 172, '__Paraguay', ''),
  3793. ('Country', 'PE', 173, '__Peru', ''),
  3794. ('Country', 'PH', 174, '__Philippines', ''),
  3795. ('Country', 'PN', 175, '__Pitcairn Islands', ''),
  3796. ('Country', 'PL', 176, '__Poland', ''),
  3797. ('Country', 'PT', 177, '__Portugal', ''),
  3798. ('Country', 'PR', 178, '__Puerto Rico', ''),
  3799. ('Country', 'QA', 179, '__Qatar', ''),
  3800. ('Country', 'RE', 180, '__Reunion', ''),
  3801. ('Country', 'RO', 181, '__Romania', ''),
  3802. ('Country', 'RU', 182, '__Russia', ''),
  3803. ('Country', 'RW', 183, '__Rwanda', ''),
  3804. ('Country', 'SH', 184, '__Saint Helena', ''),
  3805. ('Country', 'KN', 185, '__Saint Kitts and Nevis', ''),
  3806. ('Country', 'LC', 186, '__Saint Lucia', ''),
  3807. ('Country', 'PM', 187, '__Saint Pierre and Miquelon', ''),
  3808. ('Country', 'VC', 188, '__Saint Vincent and the Grenadines', ''),
  3809. ('Country', 'BL', 189, '__Saint_Barthelemy', ''),
  3810. ('Country', 'MF', 190, '__Saint_Martin_French_part', ''),
  3811. ('Country', 'WS', 191, '__Samoa', ''),
  3812. ('Country', 'SM', 192, '__San Marino', ''),
  3813. ('Country', 'ST', 193, '__Sao Tome and Principe', ''),
  3814. ('Country', 'SA', 194, '__Saudi Arabia', ''),
  3815. ('Country', 'SN', 195, '__Senegal', ''),
  3816. ('Country', 'RS', 196, '__Serbia', ''),
  3817. ('Country', 'SC', 197, '__Seychelles', ''),
  3818. ('Country', 'SL', 198, '__Sierra Leone', ''),
  3819. ('Country', 'SG', 199, '__Singapore', ''),
  3820. ('Country', 'SK', 200, '__Slovakia', ''),
  3821. ('Country', 'SI', 201, '__Slovenia', ''),
  3822. ('Country', 'SB', 202, '__Solomon Islands', ''),
  3823. ('Country', 'SO', 203, '__Somalia', ''),
  3824. ('Country', 'ZA', 204, '__South Africa', ''),
  3825. ('Country', 'GS', 205, '__South Georgia and the South Sandwich Islands', ''),
  3826. ('Country', 'ES', 206, '__Spain', ''),
  3827. ('Country', 'LK', 207, '__Sri Lanka', ''),
  3828. ('Country', 'SD', 208, '__Sudan', ''),
  3829. ('Country', 'SR', 209, '__Suriname', ''),
  3830. ('Country', 'SJ', 210, '__Svalbard', ''),
  3831. ('Country', 'SZ', 211, '__Swaziland', ''),
  3832. ('Country', 'SE', 212, '__Sweden', ''),
  3833. ('Country', 'CH', 213, '__Switzerland', ''),
  3834. ('Country', 'SY', 214, '__Syria', ''),
  3835. ('Country', 'TW', 215, '__Taiwan', ''),
  3836. ('Country', 'TJ', 216, '__Tajikistan', ''),
  3837. ('Country', 'TZ', 217, '__Tanzania', ''),
  3838. ('Country', 'TH', 218, '__Thailand', ''),
  3839. ('Country', 'BS', 219, '__The Bahamas', ''),
  3840. ('Country', 'GM', 220, '__The Gambia', ''),
  3841. ('Country', 'TG', 221, '__Togo', ''),
  3842. ('Country', 'TK', 222, '__Tokelau', ''),
  3843. ('Country', 'TO', 223, '__Tonga', ''),
  3844. ('Country', 'TT', 224, '__Trinidad and Tobago', ''),
  3845. ('Country', 'TN', 225, '__Tunisia', ''),
  3846. ('Country', 'TR', 226, '__Turkey', ''),
  3847. ('Country', 'TM', 227, '__Turkmenistan', ''),
  3848. ('Country', 'TC', 228, '__Turks and Caicos Islands', ''),
  3849. ('Country', 'TV', 229, '__Tuvalu', ''),
  3850. ('Country', 'UG', 230, '__Uganda', ''),
  3851. ('Country', 'UA', 231, '__Ukraine', ''),
  3852. ('Country', 'AE', 232, '__United Arab Emirates', ''),
  3853. ('Country', 'GB', 233, '__United Kingdom', ''),
  3854. ('Country', 'US', 234, '__United States', ''),
  3855. ('Country', 'UM', 235, '__United States Minor Outlying Islands', ''),
  3856. ('Country', 'UY', 236, '__Uruguay', ''),
  3857. ('Country', 'UZ', 237, '__Uzbekistan', ''),
  3858. ('Country', 'VU', 238, '__Vanuatu', ''),
  3859. ('Country', 'VE', 239, '__Venezuela', ''),
  3860. ('Country', 'VN', 240, '__Vietnam', ''),
  3861. ('Country', 'VI', 241, '__Virgin Islands', ''),
  3862. ('Country', 'WF', 242, '__Wallis and Futuna', ''),
  3863. ('Country', 'EH', 243, '__Western Sahara', ''),
  3864. ('Country', 'YE', 244, '__Yemen', ''),
  3865. ('Country', 'ZM', 245, '__Zambia', ''),
  3866. ('Country', 'ZW', 246, '__Zimbabwe', '');
  3867. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3868. ('Sex', '', 1, '_sys_not_specified', ''),
  3869. ('Sex', '1', 2, '_Male', '_LookinMale'),
  3870. ('Sex', '2', 3, '_Female', '_LookinFemale');
  3871. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3872. ('Language', '1', 1, '__English', ''),
  3873. ('Language', '2', 2, '__Afrikaans', ''),
  3874. ('Language', '3', 3, '__Arabic', ''),
  3875. ('Language', '4', 4, '__Bulgarian', ''),
  3876. ('Language', '5', 5, '__Burmese', ''),
  3877. ('Language', '6', 6, '__Cantonese', ''),
  3878. ('Language', '7', 7, '__Croatian', ''),
  3879. ('Language', '8', 8, '__Danish', ''),
  3880. ('Language', '9', 9, '__Dutch', ''),
  3881. ('Language', '10', 10, '__Esperanto', ''),
  3882. ('Language', '11', 11, '__Estonian', ''),
  3883. ('Language', '12', 12, '__Finnish', ''),
  3884. ('Language', '13', 13, '__French', ''),
  3885. ('Language', '14', 14, '__German', ''),
  3886. ('Language', '15', 15, '__Greek', ''),
  3887. ('Language', '16', 16, '__Gujrati', ''),
  3888. ('Language', '17', 17, '__Hebrew', ''),
  3889. ('Language', '18', 18, '__Hindi', ''),
  3890. ('Language', '19', 19, '__Hungarian', ''),
  3891. ('Language', '20', 20, '__Icelandic', ''),
  3892. ('Language', '21', 21, '__Indian', ''),
  3893. ('Language', '22', 22, '__Indonesian', ''),
  3894. ('Language', '23', 23, '__Italian', ''),
  3895. ('Language', '24', 24, '__Japanese', ''),
  3896. ('Language', '25', 25, '__Korean', ''),
  3897. ('Language', '26', 26, '__Latvian', ''),
  3898. ('Language', '27', 27, '__Lithuanian', ''),
  3899. ('Language', '28', 28, '__Malay', ''),
  3900. ('Language', '29', 29, '__Mandarin', ''),
  3901. ('Language', '30', 30, '__Marathi', ''),
  3902. ('Language', '31', 31, '__Moldovian', ''),
  3903. ('Language', '32', 32, '__Nepalese', ''),
  3904. ('Language', '33', 33, '__Norwegian', ''),
  3905. ('Language', '34', 34, '__Persian', ''),
  3906. ('Language', '35', 35, '__Polish', ''),
  3907. ('Language', '36', 36, '__Portuguese', ''),
  3908. ('Language', '37', 37, '__Punjabi', ''),
  3909. ('Language', '38', 38, '__Romanian', ''),
  3910. ('Language', '39', 39, '__Russian', ''),
  3911. ('Language', '40', 40, '__Serbian', ''),
  3912. ('Language', '41', 41, '__Spanish', ''),
  3913. ('Language', '42', 42, '__Swedish', ''),
  3914. ('Language', '43', 43, '__Tagalog', ''),
  3915. ('Language', '44', 44, '__Taiwanese', ''),
  3916. ('Language', '45', 45, '__Tamil', ''),
  3917. ('Language', '46', 46, '__Telugu', ''),
  3918. ('Language', '47', 47, '__Thai', ''),
  3919. ('Language', '48', 48, '__Tongan', ''),
  3920. ('Language', '49', 49, '__Turkish', ''),
  3921. ('Language', '50', 50, '__Ukrainian', ''),
  3922. ('Language', '51', 51, '__Urdu', ''),
  3923. ('Language', '52', 52, '__Vietnamese', ''),
  3924. ('Language', '53', 53, '__Visayan', '');
  3925. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3926. ('Currency', 'AUD', 1, '__AUD', '', 'a:1:{s:4:"sign";s:6:"A&#36;";}'),
  3927. ('Currency', 'CAD', 2, '__CAD', '', 'a:1:{s:4:"sign";s:6:"C&#36;";}'),
  3928. ('Currency', 'EUR', 3, '__EUR', '', 'a:1:{s:4:"sign";s:7:"&#8364;";}'),
  3929. ('Currency', 'GBP', 4, '__GBP', '', 'a:1:{s:4:"sign";s:6:"&#163;";}'),
  3930. ('Currency', 'USD', 5, '__USD', '', 'a:1:{s:4:"sign";s:5:"&#36;";}'),
  3931. ('Currency', 'YEN', 6, '__YEN', '', 'a:1:{s:4:"sign";s:6:"&#165;";}');
  3932. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3933. ('sys_report_types', 'spam', 1, '_sys_pre_lists_report_types_spam', ''),
  3934. ('sys_report_types', 'scam', 2, '_sys_pre_lists_report_types_scam', ''),
  3935. ('sys_report_types', 'fraud', 3, '_sys_pre_lists_report_types_fraud', ''),
  3936. ('sys_report_types', 'nude', 4, '_sys_pre_lists_report_types_nude', ''),
  3937. ('sys_report_types', 'other', 5, '_sys_pre_lists_report_types_other', '');
  3938. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3939. ('sys_vote_reactions', 'like', 1, '_sys_pre_lists_vote_reactions_like', '', 'a:7:{s:3:"use";s:5:"emoji";s:5:"emoji";s:4:"👍";s:4:"icon";s:12:"fa-thumbs-up";s:5:"image";s:904:"<svg aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 00-1.423-.23H5.904M14.25 9h2.25M5.904 18.75c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 01-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 10.203 4.167 9.75 5 9.75h1.053c.472 0 .745.556.5.96a8.958 8.958 0 00-1.302 4.665c0 1.194.232 2.333.654 3.375z" stroke-linecap="round" stroke-linejoin="round"></path></svg>";s:5:"color";s:20:"sys-colored col-gray";s:6:"weight";s:1:"1";s:7:"default";a:2:{s:5:"title";s:37:"_sys_pre_lists_vote_reactions_default";s:4:"icon";s:8:"fa-smile";}}'),
  3940. ('sys_vote_reactions', 'love', 2, '_sys_pre_lists_vote_reactions_love', '', 'a:6:{s:3:"use";s:5:"emoji";s:5:"emoji";s:4:"💓";s:4:"icon";s:8:"fa-heart";s:5:"image";s:499:"<svg aria-hidden="true" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z"></path></svg>";s:5:"color";s:20:"sys-colored col-red1";s:6:"weight";s:1:"1";}'),
  3941. ('sys_vote_reactions', 'joy', 3, '_sys_pre_lists_vote_reactions_joy', '', 'a:6:{s:3:"use";s:5:"emoji";s:5:"emoji";s:4:"😆";s:4:"icon";s:15:"fa-laugh-squint";s:5:"image";s:789:"<svg aria-hidden="true" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-2.625 6c-.54 0-.828.419-.936.634a1.96 1.96 0 00-.189.866c0 .298.059.605.189.866.108.215.395.634.936.634.54 0 .828-.419.936-.634.13-.26.189-.568.189-.866 0-.298-.059-.605-.189-.866-.108-.215-.395-.634-.936-.634zm4.314.634c.108-.215.395-.634.936-.634.54 0 .828.419.936.634.13.26.189.568.189.866 0 .298-.059.605-.189.866-.108.215-.395.634-.936.634-.54 0-.828-.419-.936-.634a1.96 1.96 0 01-.189-.866c0-.298.059-.605.189-.866zm2.023 6.828a.75.75 0 10-1.06-1.06 3.75 3.75 0 01-5.304 0 .75.75 0 00-1.06 1.06 5.25 5.25 0 007.424 0z" fill-rule="evenodd"></path></svg>";s:5:"color";s:20:"sys-colored col-red3";s:6:"weight";s:1:"1";}'),
  3942. ('sys_vote_reactions', 'surprise', 4, '_sys_pre_lists_vote_reactions_surprise', '', 'a:6:{s:3:"use";s:5:"emoji";s:5:"emoji";s:4:"😲";s:4:"icon";s:11:"fa-surprise";s:5:"image";s:551:"<svg aria-hidden="true" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9.375 3a1.875 1.875 0 000 3.75h1.875v4.5H3.375A1.875 1.875 0 011.5 9.375v-.75c0-1.036.84-1.875 1.875-1.875h3.193A3.375 3.375 0 0112 2.753a3.375 3.375 0 015.432 3.997h3.943c1.035 0 1.875.84 1.875 1.875v.75c0 1.036-.84 1.875-1.875 1.875H12.75v-4.5h1.875a1.875 1.875 0 10-1.875-1.875V6.75h-1.5V4.875C11.25 3.839 10.41 3 9.375 3zM11.25 12.75H3v6.75a2.25 2.25 0 002.25 2.25h6v-9zM12.75 12.75v9h6.75a2.25 2.25 0 002.25-2.25v-6.75h-9z"></path></svg>";s:5:"color";s:20:"sys-colored col-red3";s:6:"weight";s:1:"1";}'),
  3943. ('sys_vote_reactions', 'sadness', 5, '_sys_pre_lists_vote_reactions_sadness', '', 'a:6:{s:3:"use";s:5:"emoji";s:5:"emoji";s:4:"😥";s:4:"icon";s:11:"fa-sad-tear";s:5:"image";s:736:"<svg aria-hidden="true" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M16.5 4.478v.227a48.816 48.816 0 013.878.512.75.75 0 11-.256 1.478l-.209-.035-1.005 13.07a3 3 0 01-2.991 2.77H8.084a3 3 0 01-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 01-.256-1.478A48.567 48.567 0 017.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 013.369 0c1.603.051 2.815 1.387 2.815 2.951zm-6.136-1.452a51.196 51.196 0 013.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 00-6 0v-.113c0-.794.609-1.428 1.364-1.452zm-.355 5.945a.75.75 0 10-1.5.058l.347 9a.75.75 0 101.499-.058l-.346-9zm5.48.058a.75.75 0 10-1.498-.058l-.347 9a.75.75 0 001.5.058l.345-9z" fill-rule="evenodd"></path></svg>";s:5:"color";s:20:"sys-colored col-red3";s:6:"weight";s:1:"1";}'),
  3944. ('sys_vote_reactions', 'anger', 6, '_sys_pre_lists_vote_reactions_anger', '', 'a:6:{s:3:"use";s:5:"emoji";s:5:"emoji";s:4:"😠";s:4:"icon";s:8:"fa-angry";s:5:"image";s:858:"<svg aria-hidden="true" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-2.625 6c-.54 0-.828.419-.936.634a1.96 1.96 0 00-.189.866c0 .298.059.605.189.866.108.215.395.634.936.634.54 0 .828-.419.936-.634.13-.26.189-.568.189-.866 0-.298-.059-.605-.189-.866-.108-.215-.395-.634-.936-.634zm4.314.634c.108-.215.395-.634.936-.634.54 0 .828.419.936.634.13.26.189.568.189.866 0 .298-.059.605-.189.866-.108.215-.395.634-.936.634-.54 0-.828-.419-.936-.634a1.96 1.96 0 01-.189-.866c0-.298.059-.605.189-.866zm-4.34 7.964a.75.75 0 01-1.061-1.06 5.236 5.236 0 013.73-1.538 5.236 5.236 0 013.695 1.538.75.75 0 11-1.061 1.06 3.736 3.736 0 00-2.639-1.098 3.736 3.736 0 00-2.664 1.098z" fill-rule="evenodd"></path></svg>";s:5:"color";s:20:"sys-colored col-red3";s:6:"weight";s:1:"1";}');
  3945. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3946. ('sys_relations', '1', 1, '_sys_pre_lists_relations_husband', '', 'a:1:{i:0;s:1:"2";}'),
  3947. ('sys_relations', '2', 2, '_sys_pre_lists_relations_wife', '', 'a:1:{i:0;s:1:"1";}'),
  3948. ('sys_relations', '3', 3, '_sys_pre_lists_relations_father', '', 'a:2:{i:0;s:1:"5";i:1;s:1:"6";}'),
  3949. ('sys_relations', '4', 4, '_sys_pre_lists_relations_mother', '', 'a:2:{i:0;s:1:"5";i:1;s:1:"6";}'),
  3950. ('sys_relations', '5', 5, '_sys_pre_lists_relations_son', '', 'a:2:{i:0;s:1:"3";i:1;s:1:"4";}'),
  3951. ('sys_relations', '6', 6, '_sys_pre_lists_relations_daughter', '', 'a:2:{i:0;s:1:"3";i:1;s:1:"4";}'),
  3952. ('sys_relations', '7', 7, '_sys_pre_lists_relations_brother', '', 'a:2:{i:0;s:1:"7";i:1;s:1:"8";}'),
  3953. ('sys_relations', '8', 8, '_sys_pre_lists_relations_sister', '', 'a:2:{i:0;s:1:"7";i:1;s:1:"8";}');
  3954. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3955. ('sys_content_filter', 1, 1, '_sys_pre_lists_content_filter_g', '', ''),
  3956. ('sys_content_filter', 2, 2, '_sys_pre_lists_content_filter_pg', '', ''),
  3957. ('sys_content_filter', 3, 3, '_sys_pre_lists_content_filter_pg13', '', ''),
  3958. ('sys_content_filter', 4, 4, '_sys_pre_lists_content_filter_r', '', ''),
  3959. ('sys_content_filter', 5, 5, '_sys_pre_lists_content_filter_x', '', '');
  3960. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3961. ('sys_studio_widget_types', '', 1, '_sys_pre_lists_studio_widget_types_library', '', 'a:1:{s:4:"icon";s:15:"lmi-library.svg";}'),
  3962. ('sys_studio_widget_types', 'appearance', 2, '_sys_pre_lists_studio_widget_types_appearance', '', 'a:1:{s:4:"icon";s:18:"lmi-appearance.svg";}'),
  3963. ('sys_studio_widget_types', 'structure', 3, '_sys_pre_lists_studio_widget_types_structure', '', 'a:1:{s:4:"icon";s:17:"lmi-structure.svg";}'),
  3964. ('sys_studio_widget_types', 'content', 4, '_sys_pre_lists_studio_widget_types_content', '', 'a:1:{s:4:"icon";s:15:"lmi-content.svg";}'),
  3965. ('sys_studio_widget_types', 'users', 5, '_sys_pre_lists_studio_widget_types_users', '', 'a:1:{s:4:"icon";s:13:"lmi-users.svg";}'),
  3966. ('sys_studio_widget_types', 'configuration', 6, '_sys_pre_lists_studio_widget_types_configuration', '', 'a:1:{s:4:"icon";s:21:"lmi-configuration.svg";}'),
  3967. ('sys_studio_widget_types', 'extensions', 7, '_sys_pre_lists_studio_widget_types_extensions', '', 'a:1:{s:4:"icon";s:18:"lmi-extensions.svg";}'),
  3968. ('sys_studio_widget_types', 'integrations', 8, '_sys_pre_lists_studio_widget_types_integrations', '', 'a:1:{s:4:"icon";s:20:"lmi-integrations.svg";}'),
  3969. ('sys_studio_widget_types', 'favorites', 9, '_sys_pre_lists_studio_widget_types_favorites', '', 'a:1:{s:4:"icon";s:17:"lmi-favorites.svg";}');
  3970. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3971. ('sys_colors', 'slate-600', 2, '_sys_pre_lists_color_slate', '', ''),
  3972. ('sys_colors', 'gray-600', 3, '_sys_pre_lists_color_gray', '', ''),
  3973. ('sys_colors', 'zinc-600', 4, '_sys_pre_lists_color_zinc', '', ''),
  3974. ('sys_colors', 'neutral-600', 5, '_sys_pre_lists_color_neutral', '', ''),
  3975. ('sys_colors', 'stone-600', 6, '_sys_pre_lists_color_stone', '', ''),
  3976. ('sys_colors', 'red-600', 7, '_sys_pre_lists_color_red', '', ''),
  3977. ('sys_colors', 'orange-600', 8, '_sys_pre_lists_color_orange', '', ''),
  3978. ('sys_colors', 'amber-600', 9, '_sys_pre_lists_color_amber', '', ''),
  3979. ('sys_colors', 'yellow-600', 10, '_sys_pre_lists_color_yellow', '', ''),
  3980. ('sys_colors', 'lime-600', 11, '_sys_pre_lists_color_lime', '', ''),
  3981. ('sys_colors', 'green-600', 12, '_sys_pre_lists_color_green', '', ''),
  3982. ('sys_colors', 'emerald-600', 13, '_sys_pre_lists_color_emerald', '', ''),
  3983. ('sys_colors', 'teal-600', 14, '_sys_pre_lists_color_teal', '', ''),
  3984. ('sys_colors', 'cyan-600', 15, '_sys_pre_lists_color_cyan', '', ''),
  3985. ('sys_colors', 'sky-600', 16, '_sys_pre_lists_color_sky', '', ''),
  3986. ('sys_colors', 'blue-600', 17, '_sys_pre_lists_color_blue', '', ''),
  3987. ('sys_colors', 'indigo-600', 18, '_sys_pre_lists_color_indigo', '', ''),
  3988. ('sys_colors', 'violet-600', 19, '_sys_pre_lists_color_violet', '', ''),
  3989. ('sys_colors', 'purple-600', 20, '_sys_pre_lists_color_purple', '', ''),
  3990. ('sys_colors', 'fuchsia-600', 21, '_sys_pre_lists_color_fuchsia', '', ''),
  3991. ('sys_colors', 'pink-600', 22, '_sys_pre_lists_color_pink', '', ''),
  3992. ('sys_colors', 'rose-600', 23, '_sys_pre_lists_color_rose', '', '');
  3993. -- --------------------------------------------------------
  3994. CREATE TABLE IF NOT EXISTS `sys_menu_templates` (
  3995. `id` int(11) NOT NULL AUTO_INCREMENT,
  3996. `template` varchar(255) NOT NULL,
  3997. `title` varchar(255) NOT NULL,
  3998. `visible` tinyint(4) NOT NULL DEFAULT '1',
  3999. PRIMARY KEY (`id`)
  4000. );
  4001. INSERT INTO `sys_menu_templates` (`id`, `template`, `title`, `visible`) VALUES
  4002. (1, 'menu_empty.html', '_sys_menu_template_title_empty', 1),
  4003. (2, 'menu_footer.html', '_sys_menu_template_title_footer', 0),
  4004. (3, 'menu_horizontal.html', '_sys_menu_template_title_hor', 1),
  4005. (4, 'menu_vertical_lite.html', '_sys_menu_template_title_ver_lite', 1),
  4006. (5, 'menu_toolbar.html', '_sys_menu_template_title_toolbar', 0),
  4007. (6, 'menu_vertical.html', '_sys_menu_template_title_ver', 1),
  4008. (7, 'menu_floating_blocks.html', '_sys_menu_template_title_floating_blocks', 1),
  4009. (8, 'menu_main_submenu.html', '_sys_menu_template_title_main_submenu', 0),
  4010. (9, 'menu_buttons_hor.html', '_sys_menu_template_title_buttons_hor', 1),
  4011. (10, 'menu_inline.html', '_sys_menu_template_title_inline', 1),
  4012. (11, 'menu_interactive_vertical.html', '_sys_menu_template_title_interactive_vertical', 0),
  4013. (12, 'menu_account_popup.html', '_sys_menu_template_title_account_popup', 0),
  4014. (13, 'menu_account_notifications.html', '_sys_menu_template_title_account_notifications', 0),
  4015. (14, 'menu_floating_blocks_big.html', '_sys_menu_template_title_floating_blocks_big', 1),
  4016. (15, 'menu_custom_hor.html', '_sys_menu_template_title_custom_hor', 0),
  4017. (16, 'menu_buttons_ver.html', '_sys_menu_template_title_buttons_ver', 1),
  4018. (17, 'menu_inline_sbtn.html', '_sys_menu_template_title_inline_sbtn', 1),
  4019. (18, 'menu_main_submenu_more_auto.html', '_sys_menu_template_title_main_submenu_more_auto', 0),
  4020. (19, 'menu_floating_blocks_wide.html', '_sys_menu_template_title_floating_blocks_wide', 0),
  4021. (20, 'menu_custom_ver.html', '_sys_menu_template_title_custom_ver', 0),
  4022. (21, 'menu_vertical_more_less.html', '_sys_menu_template_title_vertical_more_less', 0),
  4023. (22, 'menu_interactive.html', '_sys_menu_template_title_interactive', 0),
  4024. (23, 'menu_buttons_icon_hor.html', '_sys_menu_template_title_buttons_icon_hor', 1),
  4025. (24, 'menu_floating_blocks_dash.html', '_sys_menu_template_title_floating_blocks_dash', 0),
  4026. (25, 'menu_block_submenu_hor.html', '_sys_menu_template_title_block_submenu_hor', 1),
  4027. (26, 'menu_block_submenu_ver.html', '_sys_menu_template_title_block_submenu_ver', 1),
  4028. (27, 'menu_profile_followings.html', '_sys_menu_template_title_profile_followings', 0),
  4029. (28, 'menu_main.html', '_sys_menu_template_title_main', 0),
  4030. (29, 'menu_add_content.html', '_sys_menu_template_title_add_content', 0),
  4031. (30, 'menu_panel.html', '_sys_menu_template_title_panel', 0),
  4032. (31, 'menu_main_in_panel.html', '_sys_menu_template_title_main_in_panel', 0);
  4033. CREATE TABLE IF NOT EXISTS `sys_objects_menu` (
  4034. `id` int(11) NOT NULL AUTO_INCREMENT,
  4035. `object` varchar(64) NOT NULL,
  4036. `title` varchar(255) NOT NULL,
  4037. `set_name` varchar(64) NOT NULL,
  4038. `module` varchar(32) NOT NULL,
  4039. `template_id` int(11) NOT NULL,
  4040. `persistent` tinyint(4) NOT NULL DEFAULT '0',
  4041. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  4042. `active` tinyint(4) NOT NULL DEFAULT '0',
  4043. `override_class_name` varchar(255) NOT NULL,
  4044. `override_class_file` varchar(255) NOT NULL,
  4045. PRIMARY KEY (`id`),
  4046. UNIQUE KEY `object` (`object`)
  4047. );
  4048. INSERT INTO `sys_objects_menu` (`object`, `title`, `set_name`, `module`, `template_id`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  4049. ('sys_site', '_sys_menu_title_main', 'sys_site', 'system', 28, 0, 1, 'BxTemplMenuSite', ''),
  4050. ('sys_site_in_panel', '_sys_menu_title_main_in_panel', 'sys_site', 'system', 31, 0, 1, 'BxTemplMenuSite', ''),
  4051. ('sys_application', '_sys_menu_title_application', 'sys_application', 'system', 28, 0, 1, 'BxTemplMenuSite', ''),
  4052. ('sys_homepage', '_sys_menu_title_homepage', 'sys_homepage', 'system', 7, 0, 1, 'BxTemplMenuHomepage', ''),
  4053. ('sys_homepage_submenu', '_sys_menu_title_homepage_submenu', 'sys_homepage_submenu', 'system', 8, 0, 1, '', ''),
  4054. ('sys_site_submenu', '_sys_menu_title_submenu', 'sys_site', 'system', 1, 0, 1, 'BxTemplMenuSubmenu', ''),
  4055. ('sys_site_manage', '_sys_menu_title_manage', '', 'system', 1, 0, 1, 'BxTemplMenuManage', ''),
  4056. ('sys_site_panel', '_sys_menu_title_panel', 'sys_site_panel', 'system', 30, 0, 1, 'BxTemplMenuPanel', ''),
  4057. ('sys_footer', '_sys_menu_title_footer', 'sys_footer', 'system', 2, 0, 1, 'BxTemplMenuFooter', ''),
  4058. ('sys_toolbar_site', '_sys_menu_title_toolbar_site', 'sys_toolbar_site', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  4059. ('sys_toolbar_member', '_sys_menu_title_toolbar_member', 'sys_toolbar_member', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  4060. ('sys_add_content', '_sys_menu_title_add_content', 'sys_add_content_links', 'system', 29, 0, 1, 'BxTemplMenuSite', ''),
  4061. ('sys_add_profile', '_sys_menu_title_add_profile', 'sys_add_profile_links', 'system', 14, 0, 1, 'BxTemplMenuProfileAdd', ''),
  4062. ('sys_add_profile_vertical', '_sys_menu_title_add_profile_vertical', 'sys_add_profile_links', 'system', 6, 0, 1, 'BxTemplMenuProfileAdd', ''),
  4063. ('sys_account_dashboard', '_sys_menu_title_account_dashboard', 'sys_account_dashboard', 'system', 8, 0, 1, 'BxTemplMenuAccountDashboard', ''),
  4064. ('sys_account_dashboard_manage_tools', '_sys_menu_title_account_dashboard_manage_tools', 'sys_account_dashboard_manage_tools', 'system', 24, 0, 1, 'BxTemplMenuDashboardManageTools', ''),
  4065. ('sys_account_settings_submenu', '_sys_menu_title_account_settings', 'sys_account_settings', 'system', 8, 0, 1, '', ''),
  4066. ('sys_profiles_create', '_sys_menu_title_profiles_create', 'sys_profiles_create', 'system', 4, 0, 1, '', ''),
  4067. ('sys_cmts_item_manage', '_sys_menu_title_cmts_item_manage', 'sys_cmts_item_manage', 'system', 20, 0, 1, 'BxTemplCmtsMenuManage', ''),
  4068. ('sys_cmts_item_actions', '_sys_menu_title_cmts_item_actions', 'sys_cmts_item_actions', 'system', 15, 0, 1, 'BxTemplCmtsMenuActions', ''),
  4069. ('sys_cmts_item_counters', '_sys_menu_title_cmts_item_counters', 'sys_cmts_item_counters', 'system', 15, 0, 1, 'BxTemplCmtsMenuActions', ''),
  4070. ('sys_cmts_item_meta', '_sys_menu_title_cmts_item_meta', 'sys_cmts_item_meta', 'system', 15, 0, 1, 'BxTemplCmtsMenuUnitMeta', ''),
  4071. ('sys_account_popup', '_sys_menu_title_account_popup', 'sys_account_popup', 'system', 12, 0, 1, 'BxTemplMenuAccountPopup', ''),
  4072. ('sys_account_notifications', '_sys_menu_title_account_notifications', 'sys_account_notifications', 'system', 19, 0, 1, 'BxTemplMenuAccountNotifications', ''),
  4073. ('sys_profile_stats', '_sys_menu_title_profile_stats', 'sys_profile_stats', 'system', 21, 0, 1, 'BxTemplMenuProfileStats', ''),
  4074. ('sys_tags_cloud', '_sys_menu_title_tags_cloud', '', 'system', 21, 0, 1, 'BxBaseMenuTagsCloud', ''),
  4075. ('sys_profile_followings', '_sys_menu_title_profile_followings', 'sys_profile_followings', 'system', 27, 0, 1, 'BxTemplMenuProfileFollowings', ''),
  4076. ('sys_switch_language_popup', '_sys_menu_title_switch_language_popup', 'sys_switch_language', 'system', 6, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  4077. ('sys_switch_language_inline', '_sys_menu_title_switch_language_inline', 'sys_switch_language', 'system', 3, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  4078. ('sys_switch_template', '_sys_menu_title_switch_template', 'sys_switch_template', 'system', 6, 0, 1, 'BxTemplMenuSwitchTemplate', ''),
  4079. ('sys_set_acl_level', '_sys_menu_title_set_acl_level', '', 'system', 6, 0, 1, 'BxTemplMenuSetAclLevel', ''),
  4080. ('sys_set_badges', '_sys_menu_title_set_badges', '', 'system', 6, 0, 1, 'BxTemplMenuSetBadges', ''),
  4081. ('sys_social_sharing', '_sys_menu_title_social_sharing', 'sys_social_sharing', 'system', 23, 0, 1, 'BxTemplMenuSocialSharing', ''),
  4082. ('sys_create_post', '_sys_menu_title_create_post', 'sys_add_content_links', 'system', 15, 0, 1, 'BxTemplMenuCreatePost', ''),
  4083. ('sys_dashboard_content', '_sys_menu_title_dashboard_content_manage', 'sys_dashboard_content_manage', 'system', 15, 0, 1, 'BxTemplMenuDashboardContentManage', ''),
  4084. ('sys_dashboard_reports', '_sys_menu_title_dashboard_reports_manage', 'sys_dashboard_reports_manage', 'system', 15, 0, 1, 'BxTemplMenuDashboardReportsManage', ''),
  4085. ('sys_add_relation', '_sys_menu_title_add_relation', '', 'system', 6, 0, 1, 'BxTemplMenuAddRelation', ''),
  4086. ('sys_vote_reactions_do', '_sys_menu_title_vote_reactions_do', '', 'system', 3, 0, 1, 'BxTemplVoteReactionsMenuDo', ''),
  4087. ('sys_wiki', '_sys_menu_title_wiki', 'sys_wiki', 'system', 6, 0, 1, 'BxTemplMenuWiki', ''),
  4088. ('sys_favorite_list', '_sys_menu_title_favorite_list', 'sys_favorite_list', 'system', 9, 0, 1, '', ''),
  4089. ('sys_con_submenu', '_sys_menu_title_con_submenu', 'sys_con_submenu', 'system', 8, 0, 1, 'BxTemplMenuSubmenuWithAddons', ''),
  4090. ('sys_studio_account_popup', '_sys_menu_title_studio_account_popup', 'sys_studio_account_popup', 'system', 4, 0, 1, 'BxTemplStudioMenuAccountPopup', '');
  4091. CREATE TABLE IF NOT EXISTS `sys_menu_sets` (
  4092. `set_name` varchar(64) NOT NULL,
  4093. `module` varchar(32) NOT NULL,
  4094. `title` varchar(255) NOT NULL,
  4095. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  4096. PRIMARY KEY (`set_name`)
  4097. );
  4098. INSERT INTO `sys_menu_sets` (`set_name`, `module`, `title`, `deletable`) VALUES
  4099. ('sys_site', 'system', '_sys_menu_set_title_site', 0),
  4100. ('sys_application', 'system', '_sys_menu_set_title_application', 0),
  4101. ('sys_homepage', 'system', '_sys_menu_set_title_homepage', 0),
  4102. ('sys_homepage_submenu', 'system', '_sys_menu_set_title_homepage_submenu', 0),
  4103. ('sys_site_panel', 'system', '_sys_menu_set_title_panel', 0),
  4104. ('sys_footer', 'system', '_sys_menu_set_title_footer', 0),
  4105. ('sys_toolbar_site', 'system', '_sys_menu_set_title_toolbar_site', 0),
  4106. ('sys_toolbar_member', 'system', '_sys_menu_set_title_toolbar_member', 0),
  4107. ('sys_account_popup', 'system', '_sys_menu_set_title_account_popup', 0),
  4108. ('sys_account_notifications', 'system', '_sys_menu_set_title_account_notifications', 0),
  4109. ('sys_add_content_links', 'system', '_sys_menu_set_title_add_content', 0),
  4110. ('sys_dashboard_content_manage', 'system', '_sys_menu_set_title_dashboard_content_manage', 0),
  4111. ('sys_dashboard_reports_manage', 'system', '_sys_menu_set_title_dashboard_reports_manage', 0),
  4112. ('sys_add_profile_links', 'system', '_sys_menu_set_title_add_profile', 0),
  4113. ('sys_account_dashboard', 'system', '_sys_menu_set_title_account_dashboard', 0),
  4114. ('sys_account_dashboard_manage_tools', 'system', '_sys_menu_set_title_account_dashboard_manage_tools', 0),
  4115. ('sys_account_settings', 'system', '_sys_menu_set_title_account_settings', 0),
  4116. ('sys_profiles_create', 'system', '_sys_menu_set_title_profile_create_links', 0),
  4117. ('sys_profile_stats', 'system', '_sys_menu_set_title_profile_stats', 0),
  4118. ('sys_profile_followings', 'system', '_sys_menu_set_title_profile_followings', 0),
  4119. ('sys_cmts_item_manage', 'system', '_sys_menu_set_title_cmts_item_manage', 0),
  4120. ('sys_cmts_item_actions', 'system', '_sys_menu_set_title_cmts_item_actions', 0),
  4121. ('sys_cmts_item_counters', 'system', '_sys_menu_set_title_cmts_item_counters', 0),
  4122. ('sys_cmts_item_meta', 'system', '_sys_menu_set_title_cmts_item_meta', 0),
  4123. ('sys_switch_language', 'system', '_sys_menu_set_title_switch_language', 0),
  4124. ('sys_switch_template', 'system', '_sys_menu_set_title_switch_template', 0),
  4125. ('sys_social_sharing', 'system', '_sys_menu_set_title_sys_social_sharing', 0),
  4126. ('sys_wiki', 'system', '_sys_menu_set_title_sys_wiki', 0),
  4127. ('sys_favorite_list', 'system', '_sys_menu_set_title_sys_favorite_list', 0),
  4128. ('sys_con_submenu', 'system', '_sys_menu_set_title_con_submenu', 0),
  4129. ('sys_studio_account_popup', 'system', '_sys_menu_set_title_studio_account_popup', 0);
  4130. CREATE TABLE IF NOT EXISTS `sys_menu_items` (
  4131. `id` int(11) NOT NULL AUTO_INCREMENT,
  4132. `parent_id` int(11) NOT NULL DEFAULT '0',
  4133. `set_name` varchar(64) NOT NULL,
  4134. `module` varchar(32) NOT NULL,
  4135. `name` varchar(255) NOT NULL,
  4136. `title_system` varchar(255) NOT NULL,
  4137. `title` varchar(255) NOT NULL,
  4138. `link` varchar(512) NOT NULL,
  4139. `onclick` varchar(255) NOT NULL,
  4140. `target` varchar(255) NOT NULL,
  4141. `icon` text NOT NULL,
  4142. `addon` text NOT NULL,
  4143. `addon_cache` tinyint(4) NOT NULL DEFAULT 0,
  4144. `markers` text NOT NULL,
  4145. `submenu_object` varchar(64) NOT NULL,
  4146. `submenu_popup` tinyint(4) NOT NULL DEFAULT '0',
  4147. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  4148. `visibility_custom` text NOT NULL,
  4149. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  4150. `hidden_on_cxt` varchar(255) NOT NULL DEFAULT '',
  4151. `hidden_on_pt` int(11) NOT NULL DEFAULT '0',
  4152. `hidden_on_col` int(11) NOT NULL DEFAULT '0',
  4153. `primary` tinyint(4) NOT NULL DEFAULT '0',
  4154. `collapsed` tinyint(4) NOT NULL DEFAULT '0',
  4155. `active` tinyint(4) NOT NULL DEFAULT '1',
  4156. `active_api` tinyint(4) NOT NULL DEFAULT '0',
  4157. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  4158. `editable` tinyint(4) NOT NULL DEFAULT '1',
  4159. `order` int(11) NOT NULL,
  4160. PRIMARY KEY (`id`)
  4161. );
  4162. -- site menu
  4163. 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
  4164. ('sys_site', 'system', 'home', '_sys_menu_item_title_system_home', '_sys_menu_item_title_home', '', '', '', 'home col-gray', '', 2147483647, 1, 1, 1),
  4165. ('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),
  4166. ('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),
  4167. ('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);
  4168. -- panel menu
  4169. 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
  4170. ('sys_site_panel', 'system', 'member-avatar', '_sys_menu_item_title_system_member_avatar', '', '', '', '', '', '', 2147483646, 1, 0, 1),
  4171. ('sys_site_panel', 'system', 'public-menu', '_sys_menu_item_title_system_public_menu', '', '', '', '', '', 'sys_site_in_panel', 2147483647, 0, 0, 2),
  4172. ('sys_site_panel', 'system', 'member-menu', '_sys_menu_item_title_system_member_menu', '', '', '', '', '', 'sys_profile_stats', 2147483646, 1, 0, 3),
  4173. ('sys_site_panel', 'system', 'member-followings', '_sys_menu_item_title_system_member_followings', '', '', '', '', '', 'sys_profile_followings', 2147483646, 1, 0, 4);
  4174. -- application menu
  4175. 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
  4176. ('sys_application', 'system', 'home', '_sys_menu_item_title_system_home', '_sys_menu_item_title_home', '', '', '', 'home col-gray-dark', '', 2147483647, 1, 1, 1),
  4177. ('sys_application', '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),
  4178. ('sys_application', '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);
  4179. -- homepage submenu
  4180. 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
  4181. ('sys_homepage_submenu', 'system', 'home', '_sys_menu_item_title_system_home', '_sys_menu_item_title_home', '', '', '', 'bolt', '', '', 2147483647, '', 0, 1, 1),
  4182. ('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),
  4183. ('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),
  4184. ('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);
  4185. -- footer menu
  4186. 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
  4187. ('sys_footer', 'system', 'about', '_sys_menu_item_title_system_about', '_sys_menu_item_title_about', 'page.php?i=about', '', '', '', '', 2147483647, 1, 1, 1),
  4188. ('sys_footer', 'system', 'terms', '_sys_menu_item_title_system_terms', '_sys_menu_item_title_terms', 'page.php?i=terms', '', '', '', '', 2147483647, 1, 1, 2),
  4189. ('sys_footer', 'system', 'privacy', '_sys_menu_item_title_system_privacy', '_sys_menu_item_title_privacy', 'page.php?i=privacy', '', '', '', '', 2147483647, 1, 1, 3),
  4190. ('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),
  4191. ('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),
  4192. ('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),
  4193. ('sys_footer', 'system', 'powered_by', '_sys_menu_item_title_system_powered_by', '', 'https://una.io', '', '_blank', '<svg width="167" height="28" viewBox="0 0 167 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.54 18.5C9.43733 18.5 9.358 18.472 9.302 18.416C9.246 18.3507 9.218 18.2713 9.218 18.178V9.036C9.218 8.93333 9.246 8.854 9.302 8.798C9.358 8.73267 9.43733 8.7 9.54 8.7H13.096C13.7867 8.7 14.384 8.812 14.888 9.036C15.4013 9.26 15.798 9.596 16.078 10.044C16.358 10.4827 16.498 11.0333 16.498 11.696C16.498 12.3587 16.358 12.9093 16.078 13.348C15.798 13.7867 15.4013 14.118 14.888 14.342C14.384 14.566 13.7867 14.678 13.096 14.678H10.618V18.178C10.618 18.2713 10.5853 18.3507 10.52 18.416C10.464 18.472 10.3847 18.5 10.282 18.5H9.54ZM10.604 13.502H13.026C13.7167 13.502 14.2347 13.348 14.58 13.04C14.9253 12.732 15.098 12.284 15.098 11.696C15.098 11.1173 14.93 10.6693 14.594 10.352C14.258 10.0347 13.7353 9.876 13.026 9.876H10.604V13.502ZM20.9047 18.64C20.1954 18.64 19.6027 18.5047 19.1267 18.234C18.6507 17.9633 18.2867 17.59 18.0347 17.114C17.7827 16.6287 17.6427 16.078 17.6147 15.462C17.6054 15.3033 17.6007 15.1027 17.6007 14.86C17.6007 14.608 17.6054 14.4073 17.6147 14.258C17.6427 13.6327 17.7827 13.082 18.0347 12.606C18.2961 12.13 18.6647 11.7567 19.1407 11.486C19.6167 11.2153 20.2047 11.08 20.9047 11.08C21.6047 11.08 22.1927 11.2153 22.6687 11.486C23.1447 11.7567 23.5087 12.13 23.7607 12.606C24.0221 13.082 24.1667 13.6327 24.1947 14.258C24.2041 14.4073 24.2087 14.608 24.2087 14.86C24.2087 15.1027 24.2041 15.3033 24.1947 15.462C24.1667 16.078 24.0267 16.6287 23.7747 17.114C23.5227 17.59 23.1587 17.9633 22.6827 18.234C22.2067 18.5047 21.6141 18.64 20.9047 18.64ZM20.9047 17.562C21.4834 17.562 21.9454 17.38 22.2907 17.016C22.6361 16.6427 22.8227 16.1013 22.8507 15.392C22.8601 15.252 22.8647 15.0747 22.8647 14.86C22.8647 14.6453 22.8601 14.468 22.8507 14.328C22.8227 13.6187 22.6361 13.082 22.2907 12.718C21.9454 12.3447 21.4834 12.158 20.9047 12.158C20.3261 12.158 19.8594 12.3447 19.5047 12.718C19.1594 13.082 18.9774 13.6187 18.9587 14.328C18.9494 14.468 18.9447 14.6453 18.9447 14.86C18.9447 15.0747 18.9494 15.252 18.9587 15.392C18.9774 16.1013 19.1594 16.6427 19.5047 17.016C19.8594 17.38 20.3261 17.562 20.9047 17.562ZM27.7024 18.5C27.581 18.5 27.4877 18.472 27.4224 18.416C27.357 18.3507 27.301 18.262 27.2544 18.15L25.2664 11.654C25.2477 11.6073 25.2384 11.5607 25.2384 11.514C25.2384 11.43 25.2664 11.36 25.3224 11.304C25.3877 11.248 25.4577 11.22 25.5324 11.22H26.1484C26.251 11.22 26.3304 11.248 26.3864 11.304C26.4424 11.36 26.4797 11.4113 26.4984 11.458L28.0524 16.736L29.7184 11.514C29.737 11.4487 29.7744 11.3833 29.8304 11.318C29.8957 11.2527 29.989 11.22 30.1104 11.22H30.5864C30.7077 11.22 30.801 11.2527 30.8664 11.318C30.9317 11.3833 30.969 11.4487 30.9784 11.514L32.6444 16.736L34.1984 11.458C34.2077 11.4113 34.2404 11.36 34.2964 11.304C34.3524 11.248 34.4317 11.22 34.5344 11.22H35.1504C35.2344 11.22 35.3044 11.248 35.3604 11.304C35.4164 11.36 35.4444 11.43 35.4444 11.514C35.4444 11.5607 35.435 11.6073 35.4164 11.654L33.4284 18.15C33.4004 18.262 33.349 18.3507 33.2744 18.416C33.209 18.472 33.111 18.5 32.9804 18.5H32.4344C32.313 18.5 32.2104 18.472 32.1264 18.416C32.0517 18.3507 32.0004 18.262 31.9724 18.15L30.3484 13.138L28.7244 18.15C28.687 18.262 28.631 18.3507 28.5564 18.416C28.4817 18.472 28.379 18.5 28.2484 18.5H27.7024ZM39.7016 18.64C38.7402 18.64 37.9749 18.346 37.4056 17.758C36.8362 17.1607 36.5236 16.3487 36.4676 15.322C36.4582 15.2007 36.4536 15.0467 36.4536 14.86C36.4536 14.664 36.4582 14.5053 36.4676 14.384C36.5049 13.7213 36.6589 13.1427 36.9296 12.648C37.2002 12.144 37.5689 11.7567 38.0356 11.486C38.5116 11.2153 39.0669 11.08 39.7016 11.08C40.4109 11.08 41.0036 11.2293 41.4796 11.528C41.9649 11.8267 42.3336 12.2513 42.5856 12.802C42.8376 13.3527 42.9636 13.9967 42.9636 14.734V14.972C42.9636 15.0747 42.9309 15.154 42.8656 15.21C42.8096 15.266 42.7349 15.294 42.6416 15.294H37.7976C37.7976 15.3033 37.7976 15.322 37.7976 15.35C37.7976 15.378 37.7976 15.4013 37.7976 15.42C37.8162 15.8027 37.9002 16.162 38.0496 16.498C38.1989 16.8247 38.4136 17.0907 38.6936 17.296C38.9736 17.5013 39.3096 17.604 39.7016 17.604C40.0376 17.604 40.3176 17.5527 40.5416 17.45C40.7656 17.3473 40.9476 17.2353 41.0876 17.114C41.2276 16.9833 41.3209 16.8853 41.3676 16.82C41.4516 16.6987 41.5169 16.6287 41.5636 16.61C41.6102 16.582 41.6849 16.568 41.7876 16.568H42.4596C42.5529 16.568 42.6276 16.596 42.6836 16.652C42.7489 16.6987 42.7769 16.7687 42.7676 16.862C42.7582 17.002 42.6836 17.1747 42.5436 17.38C42.4036 17.576 42.2029 17.772 41.9416 17.968C41.6802 18.164 41.3629 18.3273 40.9896 18.458C40.6162 18.5793 40.1869 18.64 39.7016 18.64ZM37.7976 14.328H41.6336V14.286C41.6336 13.866 41.5542 13.4927 41.3956 13.166C41.2462 12.8393 41.0269 12.5827 40.7376 12.396C40.4482 12.2 40.1029 12.102 39.7016 12.102C39.3002 12.102 38.9549 12.2 38.6656 12.396C38.3856 12.5827 38.1709 12.8393 38.0216 13.166C37.8722 13.4927 37.7976 13.866 37.7976 14.286V14.328ZM44.9596 18.5C44.8662 18.5 44.7869 18.472 44.7216 18.416C44.6656 18.3507 44.6376 18.2713 44.6376 18.178V11.556C44.6376 11.4627 44.6656 11.3833 44.7216 11.318C44.7869 11.2527 44.8662 11.22 44.9596 11.22H45.6036C45.6969 11.22 45.7762 11.2527 45.8416 11.318C45.9069 11.3833 45.9396 11.4627 45.9396 11.556V12.172C46.1262 11.8547 46.3829 11.6167 46.7096 11.458C47.0362 11.2993 47.4282 11.22 47.8856 11.22H48.4456C48.5389 11.22 48.6136 11.2527 48.6696 11.318C48.7256 11.374 48.7536 11.4487 48.7536 11.542V12.116C48.7536 12.2093 48.7256 12.284 48.6696 12.34C48.6136 12.396 48.5389 12.424 48.4456 12.424H47.6056C47.1016 12.424 46.7049 12.5733 46.4156 12.872C46.1262 13.1613 45.9816 13.558 45.9816 14.062V18.178C45.9816 18.2713 45.9489 18.3507 45.8836 18.416C45.8182 18.472 45.7389 18.5 45.6456 18.5H44.9596ZM52.7172 18.64C51.7559 18.64 50.9905 18.346 50.4212 17.758C49.8519 17.1607 49.5392 16.3487 49.4832 15.322C49.4739 15.2007 49.4692 15.0467 49.4692 14.86C49.4692 14.664 49.4739 14.5053 49.4832 14.384C49.5205 13.7213 49.6745 13.1427 49.9452 12.648C50.2159 12.144 50.5845 11.7567 51.0512 11.486C51.5272 11.2153 52.0825 11.08 52.7172 11.08C53.4265 11.08 54.0192 11.2293 54.4952 11.528C54.9805 11.8267 55.3492 12.2513 55.6012 12.802C55.8532 13.3527 55.9792 13.9967 55.9792 14.734V14.972C55.9792 15.0747 55.9465 15.154 55.8812 15.21C55.8252 15.266 55.7505 15.294 55.6572 15.294H50.8132C50.8132 15.3033 50.8132 15.322 50.8132 15.35C50.8132 15.378 50.8132 15.4013 50.8132 15.42C50.8319 15.8027 50.9159 16.162 51.0652 16.498C51.2145 16.8247 51.4292 17.0907 51.7092 17.296C51.9892 17.5013 52.3252 17.604 52.7172 17.604C53.0532 17.604 53.3332 17.5527 53.5572 17.45C53.7812 17.3473 53.9632 17.2353 54.1032 17.114C54.2432 16.9833 54.3365 16.8853 54.3832 16.82C54.4672 16.6987 54.5325 16.6287 54.5792 16.61C54.6259 16.582 54.7005 16.568 54.8032 16.568H55.4752C55.5685 16.568 55.6432 16.596 55.6992 16.652C55.7645 16.6987 55.7925 16.7687 55.7832 16.862C55.7739 17.002 55.6992 17.1747 55.5592 17.38C55.4192 17.576 55.2185 17.772 54.9572 17.968C54.6959 18.164 54.3785 18.3273 54.0052 18.458C53.6319 18.5793 53.2025 18.64 52.7172 18.64ZM50.8132 14.328H54.6492V14.286C54.6492 13.866 54.5699 13.4927 54.4112 13.166C54.2619 12.8393 54.0425 12.5827 53.7532 12.396C53.4639 12.2 53.1185 12.102 52.7172 12.102C52.3159 12.102 51.9705 12.2 51.6812 12.396C51.4012 12.5827 51.1865 12.8393 51.0372 13.166C50.8879 13.4927 50.8132 13.866 50.8132 14.286V14.328ZM60.3132 18.64C59.7999 18.64 59.3565 18.5513 58.9832 18.374C58.6099 18.1873 58.3019 17.94 58.0592 17.632C57.8259 17.3147 57.6485 16.9553 57.5272 16.554C57.4152 16.1527 57.3499 15.728 57.3312 15.28C57.3219 15.1307 57.3172 14.9907 57.3172 14.86C57.3172 14.7293 57.3219 14.5893 57.3312 14.44C57.3499 14.0013 57.4152 13.5813 57.5272 13.18C57.6485 12.7787 57.8259 12.4193 58.0592 12.102C58.3019 11.7847 58.6099 11.5373 58.9832 11.36C59.3565 11.1733 59.7999 11.08 60.3132 11.08C60.8639 11.08 61.3212 11.178 61.6852 11.374C62.0492 11.57 62.3479 11.8127 62.5812 12.102V8.882C62.5812 8.78867 62.6092 8.714 62.6652 8.658C62.7305 8.59267 62.8099 8.56 62.9032 8.56H63.5752C63.6685 8.56 63.7432 8.59267 63.7992 8.658C63.8645 8.714 63.8972 8.78867 63.8972 8.882V18.178C63.8972 18.2713 63.8645 18.3507 63.7992 18.416C63.7432 18.472 63.6685 18.5 63.5752 18.5H62.9452C62.8425 18.5 62.7632 18.472 62.7072 18.416C62.6512 18.3507 62.6232 18.2713 62.6232 18.178V17.59C62.3899 17.8887 62.0865 18.1407 61.7132 18.346C61.3399 18.542 60.8732 18.64 60.3132 18.64ZM60.6072 17.506C61.0739 17.506 61.4472 17.3987 61.7272 17.184C62.0072 16.9693 62.2172 16.6987 62.3572 16.372C62.4972 16.036 62.5719 15.6953 62.5812 15.35C62.5905 15.2007 62.5952 15.0233 62.5952 14.818C62.5952 14.6033 62.5905 14.4213 62.5812 14.272C62.5719 13.9453 62.4925 13.6233 62.3432 13.306C62.2032 12.9887 61.9885 12.7273 61.6992 12.522C61.4192 12.3167 61.0552 12.214 60.6072 12.214C60.1312 12.214 59.7532 12.3213 59.4732 12.536C59.1932 12.7413 58.9925 13.0167 58.8712 13.362C58.7499 13.698 58.6799 14.062 58.6612 14.454C58.6519 14.7247 58.6519 14.9953 58.6612 15.266C58.6799 15.658 58.7499 16.0267 58.8712 16.372C58.9925 16.708 59.1932 16.9833 59.4732 17.198C59.7532 17.4033 60.1312 17.506 60.6072 17.506ZM73.009 18.64C72.449 18.64 71.9823 18.542 71.609 18.346C71.2357 18.1407 70.937 17.8887 70.713 17.59V18.178C70.713 18.2713 70.6803 18.3507 70.615 18.416C70.559 18.472 70.4843 18.5 70.391 18.5H69.747C69.6537 18.5 69.5743 18.472 69.509 18.416C69.453 18.3507 69.425 18.2713 69.425 18.178V8.882C69.425 8.78867 69.453 8.714 69.509 8.658C69.5743 8.59267 69.6537 8.56 69.747 8.56H70.419C70.5217 8.56 70.601 8.59267 70.657 8.658C70.713 8.714 70.741 8.78867 70.741 8.882V12.102C70.9743 11.8127 71.273 11.57 71.637 11.374C72.0103 11.178 72.4677 11.08 73.009 11.08C73.5317 11.08 73.975 11.1733 74.339 11.36C74.7123 11.5373 75.0157 11.7847 75.249 12.102C75.4917 12.4193 75.6737 12.7787 75.795 13.18C75.9163 13.5813 75.9817 14.0013 75.991 14.44C76.0003 14.5893 76.005 14.7293 76.005 14.86C76.005 14.9907 76.0003 15.1307 75.991 15.28C75.9817 15.728 75.9163 16.1527 75.795 16.554C75.6737 16.9553 75.4917 17.3147 75.249 17.632C75.0157 17.94 74.7123 18.1873 74.339 18.374C73.975 18.5513 73.5317 18.64 73.009 18.64ZM72.715 17.506C73.2003 17.506 73.5783 17.4033 73.849 17.198C74.129 16.9833 74.3297 16.708 74.451 16.372C74.5723 16.0267 74.6423 15.658 74.661 15.266C74.6703 14.9953 74.6703 14.7247 74.661 14.454C74.6423 14.062 74.5723 13.698 74.451 13.362C74.3297 13.0167 74.129 12.7413 73.849 12.536C73.5783 12.3213 73.2003 12.214 72.715 12.214C72.2763 12.214 71.9123 12.3167 71.623 12.522C71.3337 12.7273 71.1143 12.9887 70.965 13.306C70.825 13.6233 70.7503 13.9453 70.741 14.272C70.7317 14.4213 70.727 14.6033 70.727 14.818C70.727 15.0233 70.7317 15.2007 70.741 15.35C70.7597 15.6953 70.8343 16.036 70.965 16.372C71.105 16.6987 71.315 16.9693 71.595 17.184C71.8843 17.3987 72.2577 17.506 72.715 17.506ZM78.7377 21.16C78.6631 21.16 78.5977 21.132 78.5417 21.076C78.4857 21.02 78.4577 20.9547 78.4577 20.88C78.4577 20.8427 78.4624 20.8053 78.4717 20.768C78.4811 20.7307 78.4997 20.684 78.5277 20.628L79.6057 18.066L76.9317 11.752C76.8851 11.64 76.8617 11.5607 76.8617 11.514C76.8617 11.43 76.8897 11.36 76.9457 11.304C77.0017 11.248 77.0717 11.22 77.1557 11.22H77.8417C77.9351 11.22 78.0097 11.2433 78.0657 11.29C78.1217 11.3367 78.1591 11.3927 78.1777 11.458L80.3057 16.554L82.4897 11.458C82.5177 11.3927 82.5551 11.3367 82.6017 11.29C82.6577 11.2433 82.7371 11.22 82.8397 11.22H83.4977C83.5817 11.22 83.6517 11.248 83.7077 11.304C83.7637 11.36 83.7917 11.4253 83.7917 11.5C83.7917 11.5467 83.7684 11.6307 83.7217 11.752L79.7457 20.922C79.7177 20.9873 79.6757 21.0433 79.6197 21.09C79.5731 21.1367 79.4984 21.16 79.3957 21.16H78.7377Z" fill="#478293"/><path d="M96.9739 9.94545C98.0069 8.91955 99.4297 8.28571 101.001 8.28571C101.165 8.28571 101.327 8.29263 101.488 8.3062C101.643 8.31927 101.784 8.2133 101.818 8.0616C102.142 6.60877 103.205 5.43424 104.591 4.95157C104.72 4.9065 104.733 4.71896 104.606 4.66953C103.487 4.23711 102.272 4 101.001 4C99.531 4 98.1355 4.317 96.8786 4.88633C96.7782 4.93184 96.7148 5.03261 96.7148 5.14291V9.84251C96.7148 9.97411 96.8806 10.0382 96.9739 9.94545Z" fill="#3E6B7C"/><path d="M106.937 22.0478C106.844 22.1164 106.715 22.0493 106.715 21.9337V14C106.715 13.8359 106.708 13.6733 106.694 13.5127C106.681 13.3578 106.787 13.2165 106.939 13.1827C108.392 12.8581 109.566 11.796 110.049 10.4098C110.094 10.2804 110.282 10.2671 110.331 10.395C110.763 11.5134 111.001 12.729 111.001 14C111.001 17.3 109.402 20.2266 106.937 22.0478Z" fill="#3E6B7C"/><path d="M108.857 8.99996C108.857 10.5779 107.578 11.8571 106 11.8571C104.422 11.8571 103.143 10.5779 103.143 8.99996C103.143 7.42201 104.422 6.14282 106 6.14282C107.578 6.14282 108.857 7.42201 108.857 8.99996Z" fill="#F97016"/><path d="M91.9516 17.5902C91.9065 17.7196 91.719 17.7329 91.6695 17.605C91.2371 16.4866 91 15.271 91 14C91 10.7001 92.5984 7.77346 95.0633 5.95217C95.1562 5.88354 95.2857 5.95082 95.2857 6.06629V14C95.2857 14.1642 95.2927 14.3267 95.3062 14.4873C95.3193 14.6422 95.2133 14.7835 95.0616 14.8174C93.6088 15.1419 92.4343 16.204 91.9516 17.5902Z" fill="#3E6B7C"/><path d="M105.122 23.1137C105.222 23.0682 105.286 22.9674 105.286 22.8572V18.1575C105.286 18.0259 105.12 17.9619 105.027 18.0546C103.994 19.0805 102.571 19.7143 101 19.7143C100.836 19.7143 100.673 19.7075 100.513 19.6939C100.358 19.6807 100.217 19.7867 100.183 19.9385C99.8581 21.3913 98.796 22.5657 97.4098 23.0484C97.2803 23.0936 97.2671 23.281 97.3949 23.3304C98.5133 23.7629 99.729 24 101 24C102.47 24 103.865 23.683 105.122 23.1137Z" fill="#3E6B7C"/><path d="M98.8569 19C98.8569 20.578 97.5777 21.8571 95.9997 21.8571C94.4218 21.8571 93.1426 20.578 93.1426 19C93.1426 17.422 94.4218 16.1428 95.9997 16.1428C97.5777 16.1428 98.8569 17.422 98.8569 19Z" fill="#F97016"/><path d="M128.5 14C128.5 16.4853 126.485 18.5 124 18.5C121.515 18.5 119.5 16.4853 119.5 14V8.75C119.5 8.33579 119.164 8 118.75 8C118.336 8 118 8.33579 118 8.75V14C118 17.3137 120.686 20 124 20C127.314 20 130 17.3137 130 14V8.75C130 8.33579 129.664 8 129.25 8C128.836 8 128.5 8.33579 128.5 8.75V14Z" fill="#3E6B7C"/><path d="M142.5 14V19.25C142.5 19.6642 142.836 20 143.25 20C143.664 20 144 19.6642 144 19.25V14C144 10.6863 141.314 8 138 8C134.686 8 132 10.6863 132 14V19.25C132 19.6642 132.336 20 132.75 20C133.164 20 133.5 19.6642 133.5 19.25V14C133.5 11.5147 135.515 9.5 138 9.5C140.485 9.5 142.5 11.5147 142.5 14Z" fill="#3E6B7C"/><path fill-rule="evenodd" clip-rule="evenodd" d="M156.5 17.9687V19.25C156.5 19.6642 156.836 20 157.25 20V20C157.664 20 158 19.6642 158 19.25V14C158 10.6863 155.314 8 152 8C148.686 8 146 10.6863 146 14C146 17.3137 148.686 20 152 20C153.792 20 155.401 19.2144 156.5 17.9687ZM156.5 14C156.5 16.4853 154.485 18.5 152 18.5C149.515 18.5 147.5 16.4853 147.5 14C147.5 11.5147 149.515 9.5 152 9.5C154.485 9.5 156.5 11.5147 156.5 14Z" fill="#3E6B7C"/><rect x="0.5" y="0.5" width="166" height="27" rx="7.5" stroke="#478293"/></svg>', '', 2147483647, 1, 1, 9999);
  4194. -- site toolbar menu
  4195. 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
  4196. ('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),
  4197. ('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);
  4198. -- member toolbar menu
  4199. INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `submenu_popup`, `visible_for_levels`, `hidden_on_pt`, `active`, `copyable`, `order`) VALUES
  4200. ('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, 0, 1, 1, 0),
  4201. ('sys_toolbar_member', 'system', 'apps', '_sys_menu_item_title_system_apps', '', 'javascript:void(0);', '', '', 'qrcode', '', '', 0, 2147483646, 3, 1, 1, 0),
  4202. ('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, 0, 1, 0, 1),
  4203. ('sys_toolbar_member', 'system', 'login', '_sys_menu_item_title_system_login', '', 'page.php?i=login', '', '', 'user', '', '', 0, 1, 0, 1, 0, 2);
  4204. -- account popup menu
  4205. 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
  4206. ('sys_account_popup', 'system', 'profile-active', '_sys_menu_item_title_system_ap_profile_active', '', '', '', '', '', '', '', 2147483646, 1, 1, 1),
  4207. ('sys_account_popup', 'system', 'profile-notifications', '_sys_menu_item_title_system_ap_profile_notifications', '', '', '', '', '', '', '', 2147483646, 1, 1, 2),
  4208. ('sys_account_popup', 'system', 'profile-switcher', '_sys_menu_item_title_system_ap_profile_switcher', '', '', '', '', '', '', '', 2147483646, 1, 1, 3),
  4209. ('sys_account_popup', 'system', 'profile-create', '_sys_menu_item_title_system_ap_profile_create', '', '', '', '', '', '', '', 2147483646, 1, 1, 4);
  4210. -- notifications menu in account popup
  4211. 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
  4212. ('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),
  4213. ('sys_account_notifications', 'system', 'profile', '_sys_menu_item_title_system_profile', '_sys_menu_item_title_profile', '{member_url}', '', '', 'user', '', '', 2147483644, 1, 1, 2),
  4214. ('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),
  4215. ('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),
  4216. ('sys_account_notifications', 'system', 'studio', '_sys_menu_item_title_system_studio', '_sys_menu_item_title_studio', '{studio_url}', '', '', 'wrench', '', '', 2147483646, 1, 0, 5),
  4217. ('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),
  4218. ('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),
  4219. ('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),
  4220. ('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);
  4221. -- account settings menu
  4222. INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `submenu_object`, `visible_for_levels`, `visibility_custom`, `active`, `copyable`, `order`) VALUES
  4223. ('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),
  4224. ('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),
  4225. ('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),
  4226. ('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),
  4227. ('sys_account_settings', 'system', 'profile-settings-cfilter', '_sys_menu_item_title_system_profile_settings_cfilter', '_sys_menu_item_title_profile_settings_cfilter', 'page.php?i=profile-settings-cfilter', '', '', 'filter', '', 2147483646, 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:18:"is_enabled_cfilter";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 1, 1, 5),
  4228. ('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);
  4229. -- account dashboard
  4230. 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
  4231. ('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),
  4232. ('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),
  4233. ('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),
  4234. ('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),
  4235. ('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', '', '', 192, 1, 1, 5),
  4236. ('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', '', '', 192, 1, 1, 6),
  4237. ('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', '', '', 192, 1, 1, 7);
  4238. -- comment manage menu
  4239. 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
  4240. ('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),
  4241. ('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),
  4242. ('sys_cmts_item_manage', 'system', 'item-report', '_sys_menu_item_title_system_cmts_item_report', '', 'javascript:void(0)', '', '', '', '', 2147483647, 1, 0, 0),
  4243. ('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),
  4244. ('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);
  4245. -- comment actions menu
  4246. 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
  4247. ('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),
  4248. ('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),
  4249. ('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),
  4250. ('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),
  4251. ('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),
  4252. ('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);
  4253. -- comment counters menu
  4254. 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
  4255. ('sys_cmts_item_counters', 'system', 'item-vote', '_sys_menu_item_title_system_cmts_item_vote', '', 'javascript:void(0)', '', '', '', '', '', 0, 2147483647, 1, 0, 1, 0),
  4256. ('sys_cmts_item_counters', 'system', 'item-reaction', '_sys_menu_item_title_system_cmts_item_reaction', '', 'javascript:void(0)', '', '', '', '', '', 0, 2147483647, 0, 0, 1, 1),
  4257. ('sys_cmts_item_counters', 'system', 'item-score', '_sys_menu_item_title_system_cmts_item_score', '', 'javascript:void(0)', '', '', '', '', '', 0, 2147483647, 0, 0, 1, 2);
  4258. -- comment meta info menu
  4259. 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
  4260. ('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),
  4261. ('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),
  4262. ('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),
  4263. ('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);
  4264. -- social sharing menu
  4265. 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
  4266. ('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),
  4267. ('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),
  4268. ('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),
  4269. ('sys_social_sharing', 'system', 'social-sharing-linked_in', '_sys_menu_item_title_system_social_sharing_linked_in', '_sys_menu_item_title_social_sharing_linked_in', 'https://www.linkedin.com/shareArticle?mini=true&url={url_encoded}', '', '_blank', 'fab linkedin', '', 2147483647, 1, 1, 4),
  4270. ('sys_social_sharing', 'system', 'social-sharing-whatsapp', '_sys_menu_item_title_system_social_sharing_whatsapp', '_sys_menu_item_title_social_sharing_whatsapp', 'https://wa.me/?text={url_encoded}', '', '_blank', 'fab whatsapp', '', 2147483647, 1, 1, 5);
  4271. -- dashboard manage tools
  4272. 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
  4273. ('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:3:{s:6:"module";s:6:"system";s:6:"method";s:27:"get_menu_addon_manage_tools";s:5:"class";s:17:"TemplCmtsServices";}', '', 192, 1, 0, 1),
  4274. ('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', '', '', 'history', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:27:"get_menu_addon_manage_tools";s:5:"class";s:18:"TemplAuditServices";}', '', 192, 1, 0, 2);
  4275. -- dashboard content
  4276. 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
  4277. ('sys_dashboard_content_manage', 'system', 'cmts', '_sys_menu_item_title_system_cmts_administration', '_sys_menu_item_title_cmts_administration', 'page.php?i=dashboard-content&module=cmts', '', '', '', '', '', 192, 1, 0, 1);
  4278. -- profile stats
  4279. 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
  4280. ('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),
  4281. ('sys_profile_stats', 'system', 'friend-suggestions', '_sys_menu_item_title_system_connections', '_sys_menu_item_title_connections', 'page.php?i=friend-suggestions', '', '', 'users', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:31:"get_unconfirmed_connections_num";s:6:"params";a:1:{i:0;s:20:"sys_profiles_friends";}s:5:"class";s:23:"TemplServiceConnections";}', '', 2147483646, 1, 1, 1);
  4282. -- wiki menu
  4283. 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
  4284. ('sys_wiki', 'system', 'edit', '', '_sys_menu_item_title_wiki_edit', '', '', '', 'edit', '', '', 0, 2147483646, '', 1, 0, 1, 1),
  4285. ('sys_wiki', 'system', 'delete-version', '', '_sys_menu_item_title_wiki_delete_version', '', '', '', 'times', '', '', 0, 2147483646, '', 1, 0, 1, 2),
  4286. ('sys_wiki', 'system', 'delete-block', '', '_sys_menu_item_title_wiki_delete_block', '', '', '', 'times-circle', '', '', 0, 2147483646, '', 1, 0, 1, 3),
  4287. ('sys_wiki', 'system', 'translate', '', '_sys_menu_item_title_wiki_translate', '', '', '', 'language', '', '', 0, 2147483646, '', 1, 0, 1, 4),
  4288. ('sys_wiki', 'system', 'history', '', '_sys_menu_item_title_wiki_history', '', '', '', 'history', '', '', 0, 2147483646, '', 1, 0, 1, 5);
  4289. -- favorite list menu
  4290. 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
  4291. ('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),
  4292. ('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);
  4293. -- connections submenu
  4294. 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
  4295. ('sys_con_submenu', 'system', 'friends', '', '_sys_menu_item_title_con_friends', 'page.php?i=friends', '', '', '', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:21:"profile_friends_count";s:5:"class";s:20:"TemplServiceProfiles";}', '', 2147483647, '', 1, 1, 1),
  4296. ('sys_con_submenu', 'system', 'friend-suggestions', '', '_sys_menu_item_title_recom_friends', 'page.php?i=friend-suggestions', '', '', '', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:36:"profile_recommendation_friends_count";s:5:"class";s:20:"TemplServiceProfiles";}', '', 2147483647, '', 1, 1, 2),
  4297. ('sys_con_submenu', 'system', 'friend-requests', '', '_sys_menu_item_title_con_friend_requests', 'page.php?i=friend-requests', '', '', '', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:30:"profile_friends_requests_count";s:5:"class";s:20:"TemplServiceProfiles";}', '', 2147483647, '', 1, 1, 3),
  4298. ('sys_con_submenu', 'system', 'sent-friend-requests', '', '_sys_menu_item_title_con_friend_requested', 'page.php?i=sent-friend-requests', '', '', '', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:35:"profile_sent_friends_requests_count";s:5:"class";s:20:"TemplServiceProfiles";}', '', 2147483647, '', 1, 1, 4),
  4299. ('sys_con_submenu', 'system', 'follow-suggestions', '', '_sys_menu_item_title_recom_subscriptions', 'page.php?i=follow-suggestions', '', '', '', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:38:"profile_recommendation_following_count";s:5:"class";s:20:"TemplServiceProfiles";}', '', 2147483647, '', 1, 1, 5),
  4300. ('sys_con_submenu', 'system', 'followers', '', '_sys_menu_item_title_con_followers', 'page.php?i=followers', '', '', '', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:23:"profile_followers_count";s:5:"class";s:20:"TemplServiceProfiles";}', '', 2147483647, '', 1, 1, 6),
  4301. ('sys_con_submenu', 'system', 'following', '', '_sys_menu_item_title_con_following', 'page.php?i=following', '', '', '', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:23:"profile_following_count";s:5:"class";s:20:"TemplServiceProfiles";}', '', 2147483647, '', 1, 1, 7);
  4302. -- studio: account menu
  4303. 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
  4304. ('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),
  4305. ('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),
  4306. ('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'', window);', '', 'ami-language.svg', '', 2147483647, 1, 0, 0, 3),
  4307. ('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);
  4308. -- --------------------------------------------------------
  4309. CREATE TABLE IF NOT EXISTS `sys_objects_grid` (
  4310. `id` int(11) NOT NULL AUTO_INCREMENT,
  4311. `object` varchar(64) NOT NULL,
  4312. `source_type` enum('Array','Sql') NOT NULL,
  4313. `source` text NOT NULL,
  4314. `table` varchar(255) NOT NULL,
  4315. `field_id` varchar(255) NOT NULL,
  4316. `field_order` varchar(255) NOT NULL,
  4317. `field_active` varchar(255) NOT NULL,
  4318. `order_get_field` varchar(255) NOT NULL DEFAULT 'order_field',
  4319. `order_get_dir` varchar(255) NOT NULL DEFAULT 'order_dir',
  4320. `paginate_url` varchar(255) NOT NULL,
  4321. `paginate_per_page` int(11) NOT NULL DEFAULT '10',
  4322. `paginate_simple` varchar(255) DEFAULT NULL,
  4323. `paginate_get_start` varchar(255) NOT NULL,
  4324. `paginate_get_per_page` varchar(255) NOT NULL,
  4325. `filter_fields` text NOT NULL,
  4326. `filter_fields_translatable` text NOT NULL,
  4327. `filter_mode` enum('like','fulltext','auto') NOT NULL DEFAULT 'auto',
  4328. `filter_get` varchar(255) NOT NULL DEFAULT 'filter',
  4329. `sorting_fields` text NOT NULL,
  4330. `sorting_fields_translatable` text NOT NULL,
  4331. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  4332. `responsive` tinyint(4) NOT NULL DEFAULT '1',
  4333. `show_total_count` tinyint(4) NOT NULL DEFAULT '1',
  4334. `override_class_name` varchar(255) NOT NULL,
  4335. `override_class_file` varchar(255) NOT NULL,
  4336. PRIMARY KEY (`id`),
  4337. UNIQUE KEY `object` (`object`)
  4338. );
  4339. -- GRIDS: studio
  4340. 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
  4341. ('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', ''),
  4342. ('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', ''),
  4343. ('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', ''),
  4344. ('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', ''),
  4345. ('sys_studio_acl', 'Sql', 'SELECT * FROM `sys_acl_levels` WHERE 1 ', 'sys_acl_levels', 'ID', 'Order', 'Active', '', 100, NULL, 'start', '', 'Description', 'Name', 'auto', '', '', 'BxTemplStudioPermissionsLevels', ''),
  4346. ('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', ''),
  4347. ('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', ''),
  4348. ('sys_studio_nav_sets', 'Sql', 'SELECT * FROM `sys_menu_sets` WHERE 1 ', 'sys_menu_sets', 'set_name', '', '', '', 100, NULL, 'start', '', '', 'title', 'auto', '', '', 'BxTemplStudioNavigationSets', ''),
  4349. ('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', ''),
  4350. ('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', ''),
  4351. ('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', ''),
  4352. ('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', ''),
  4353. ('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', ''),
  4354. ('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', ''),
  4355. ('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', ''),
  4356. ('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', ''),
  4357. ('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', ''),
  4358. ('sys_studio_search_forms_sortable_fields', 'Sql', 'SELECT * FROM `sys_search_extended_sorting_fields` WHERE 1 AND `object`=?', 'sys_search_extended_sorting_fields', 'id', 'order', 'active', '', 100, NULL, 'start', '', 'type', 'caption', 'like', '', '', 'BxTemplStudioFormsSearchSortableFields', ''),
  4359. ('sys_studio_labels', 'Sql', 'SELECT * FROM `sys_labels` WHERE 1 ', 'sys_labels', 'id', 'order', '', '', 1000, NULL, 'start', '', 'value', '', 'like', 'value', '', 'BxTemplStudioFormsLabels', ''),
  4360. ('sys_studio_categories', 'Sql', 'SELECT * FROM `sys_categories` WHERE 1 ', 'sys_categories', 'id', 'added', 'status', '', 20, NULL, 'start', '', 'value', '', 'like', '', '', 'BxTemplStudioFormsCategories', ''),
  4361. ('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', ''),
  4362. ('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', ''),
  4363. ('sys_badges_administration', 'Sql', 'SELECT * FROM `sys_badges` WHERE 1 ', 'sys_badges', 'id', 'added', '', '', 20, NULL, 'start', '', 'text', '', 'like', '', '', 'BxTemplStudioBadgesGrid', ''),
  4364. ('sys_reports_administration', 'Sql', 'WHERE 1 ', '', 'id', 'date', '', '', 20, NULL, 'start', '', 'text,type', '', 'like', '', '', 'BxTemplReportsGrid', '');
  4365. CREATE TABLE IF NOT EXISTS `sys_grid_fields` (
  4366. `id` int(11) NOT NULL AUTO_INCREMENT,
  4367. `object` varchar(64) NOT NULL,
  4368. `name` varchar(255) NOT NULL,
  4369. `title` varchar(255) NOT NULL,
  4370. `width` varchar(16) NOT NULL,
  4371. `translatable` tinyint(4) NOT NULL DEFAULT '0',
  4372. `chars_limit` int(11) NOT NULL DEFAULT '0',
  4373. `params` text NOT NULL,
  4374. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  4375. `order` int(11) NOT NULL,
  4376. PRIMARY KEY (`id`),
  4377. UNIQUE KEY `object_name` (`object`(64),`name`(127))
  4378. );
  4379. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  4380. ('sys_studio_lang_keys', 'checkbox', 'Select', '1%', 0, '', '', 1),
  4381. ('sys_studio_lang_keys', 'key', '_adm_pgt_txt_key', '24%', 0, '20', '', 2),
  4382. ('sys_studio_lang_keys', 'module', '_adm_pgt_txt_module', '15%', 0, '12', '', 3),
  4383. ('sys_studio_lang_keys', 'string', '_adm_pgt_txt_text', '30%', 0, '30', '', 4),
  4384. ('sys_studio_lang_keys', 'languages', '_adm_pgt_txt_languages', '10%', 0, '', '', 5),
  4385. ('sys_studio_lang_keys', 'actions', '', '20%', 0, '', '', 6),
  4386. ('sys_studio_lang_etemplates', 'NameSystem', '_adm_pgt_txt_etemplates_gl_name_system', '60%', 1, '58', '', 1),
  4387. ('sys_studio_lang_etemplates', 'Module', '_adm_pgt_txt_etemplates_gl_module', '20%', 0, '18', '', 2),
  4388. ('sys_studio_lang_etemplates', 'actions', '', '20%', 0, '', '', 3),
  4389. ('sys_studio_roles', 'order', '', '1%', 0, 0, '', 1),
  4390. ('sys_studio_roles', 'switcher', '', '5%', 0, 0, '', 2),
  4391. ('sys_studio_roles', 'title', '_adm_rl_txt_title', '24%', 1, 0, '', 3),
  4392. ('sys_studio_roles', 'description', '_adm_rl_txt_description', '35%', 1, 32, '', 4),
  4393. ('sys_studio_roles', 'actions_list', '_adm_rl_txt_actions', '15%', 0, 0, '', 5),
  4394. ('sys_studio_roles', 'actions', '', '20%', 0, 0, '', 6),
  4395. ('sys_studio_roles_actions', 'switcher', '', '10%', 0, 0, '', 1),
  4396. ('sys_studio_roles_actions', 'title', '_adm_rl_txt_title', '40%', 1, 32, '', 2),
  4397. ('sys_studio_roles_actions', 'description', '_adm_rl_txt_description', '50%', 1, 48, '', 3),
  4398. ('sys_studio_acl', 'Order', '', '1%', 0, '', '', 1),
  4399. ('sys_studio_acl', 'switcher', '_adm_prm_txt_enable', '5%', 0, '', '', 2),
  4400. ('sys_studio_acl', 'Icon', '_adm_prm_txt_icon', '5%', 0, '', '', 3),
  4401. ('sys_studio_acl', 'Name', '_adm_prm_txt_title', '29%', 1, '15', '', 4),
  4402. ('sys_studio_acl', 'ActionsList', '_adm_prm_txt_actions', '10%', 0, '', '', 5),
  4403. ('sys_studio_acl', 'QuotaSize', '_adm_prm_txt_storage', '10%', 0, '', '', 6),
  4404. ('sys_studio_acl', 'QuotaMaxFileSize', '_adm_prm_txt_max_file_size', '10%', 0, '', '', 7),
  4405. ('sys_studio_acl', 'QuotaNumber', '_adm_prm_txt_max_files', '10%', 0, '', '', 8),
  4406. ('sys_studio_acl', 'actions', '', '20%', 0, '', '', 9),
  4407. ('sys_studio_acl_actions', 'switcher', '_adm_prm_txt_enable', '10%', 0, '', '', 1),
  4408. ('sys_studio_acl_actions', 'Title', '_adm_prm_txt_title', '25%', 1, '25', '', 2),
  4409. ('sys_studio_acl_actions', 'Module', '_adm_prm_txt_module', '20%', 0, '18', '', 3),
  4410. ('sys_studio_acl_actions', 'Desc', '_adm_prm_txt_description', '25%', 0, '25', '', 4),
  4411. ('sys_studio_acl_actions', 'actions', '', '20%', 0, '', '', 5),
  4412. ('sys_studio_nav_menus', 'switcher', '', '10%', 0, '', '', 1),
  4413. ('sys_studio_nav_menus', 'title', '_adm_nav_txt_menus_gl_title', '17%', 0, '15', '', 2),
  4414. ('sys_studio_nav_menus', 'set_title', '_adm_nav_txt_menus_gl_set_title', '17%', 1, '15', '', 3),
  4415. ('sys_studio_nav_menus', 'items', '_adm_nav_txt_menus_gl_items', '10%', 0, '8', '', 4),
  4416. ('sys_studio_nav_menus', 'template_title', '_adm_nav_txt_menus_gl_template_title', '17%', 1, '15', '', 5),
  4417. ('sys_studio_nav_menus', 'module', '_adm_nav_txt_menus_gl_module', '12%', 0, '10', '', 6),
  4418. ('sys_studio_nav_menus', 'actions', '', '17%', 0, '', '', 7),
  4419. ('sys_studio_nav_sets', 'title', '_adm_nav_txt_sets_gl_title', '50%', 1, '48', '', 1),
  4420. ('sys_studio_nav_sets', 'module', '_adm_nav_txt_sets_gl_module', '15%', 0, '13', '', 2),
  4421. ('sys_studio_nav_sets', 'items', '_adm_nav_txt_sets_gl_items', '15%', 0, '13', '', 3),
  4422. ('sys_studio_nav_sets', 'actions', '', '20%', 0, '', '', 4),
  4423. ('sys_studio_nav_items', 'order', '', '1%', 0, '', '', 1),
  4424. ('sys_studio_nav_items', 'switcher', '', '9%', 0, '', '', 2),
  4425. ('sys_studio_nav_items', 'icon', '_adm_nav_txt_items_gl_icon', '5%', 0, '', '', 3),
  4426. ('sys_studio_nav_items', 'title_system', '_adm_nav_txt_items_gl_title_system', '23%', 1, '23', '', 4),
  4427. ('sys_studio_nav_items', 'link', '_adm_nav_txt_items_gl_link', '23%', 0, '23', '', 5),
  4428. ('sys_studio_nav_items', 'module', '_adm_nav_txt_items_gl_module', '12%', 0, '12', '', 6),
  4429. ('sys_studio_nav_items', 'visible_for_levels', '_adm_nav_txt_items_gl_visible', '10%', 0, '10', '', 7),
  4430. ('sys_studio_nav_items', 'actions', '', '17%', 0, '', '', 8),
  4431. ('sys_studio_nav_import', 'icon', '_adm_nav_txt_items_gl_icon', '10%', 0, '', '', 1),
  4432. ('sys_studio_nav_import', 'title_system', '_adm_nav_txt_items_gl_title_system', '30%', 1, '28', '', 2),
  4433. ('sys_studio_nav_import', 'link', '_adm_nav_txt_items_gl_link', '25%', 0, '23', '', 3),
  4434. ('sys_studio_nav_import', 'module', '_adm_nav_txt_items_gl_module', '15%', 0, '13', '', 4),
  4435. ('sys_studio_nav_import', 'actions', '', '20%', 0, '', '', 5),
  4436. ('sys_studio_forms', 'switcher', '', '10%', 0, '', '', 1),
  4437. ('sys_studio_forms', 'title', '_adm_form_txt_forms_gl_title', '40%', 1, '38', '', 2),
  4438. ('sys_studio_forms', 'module', '_adm_form_txt_forms_gl_module', '15%', 0, '13', '', 3),
  4439. ('sys_studio_forms', 'displays', '_adm_form_txt_forms_gl_displays', '15%', 0, '13', '', 4),
  4440. ('sys_studio_forms', 'actions', '', '20%', 0, '', '', 5),
  4441. ('sys_studio_forms_displays', 'display_title', '_adm_form_txt_displays_gl_title', '30%', 1, '48', '', 1),
  4442. ('sys_studio_forms_displays', 'module', '_adm_form_txt_displays_gl_module', '13%', 0, '11', '', 2),
  4443. ('sys_studio_forms_displays', 'form_title', '_adm_form_txt_displays_gl_form', '24%', 1, '22', '', 3),
  4444. ('sys_studio_forms_displays', 'fields', '_adm_form_txt_displays_gl_fields', '13%', 0, '11', '', 4),
  4445. ('sys_studio_forms_displays', 'actions', '', '20%', 0, '', '', 5),
  4446. ('sys_studio_forms_fields', 'order', '', '1%', 0, '', '', 1),
  4447. ('sys_studio_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  4448. ('sys_studio_forms_fields', 'type', '_adm_form_txt_fields_type', '5%', 0, '', '', 3),
  4449. ('sys_studio_forms_fields', 'caption_system', '_adm_form_txt_fields_caption_system', '40%', 1, '38', '', 4),
  4450. ('sys_studio_forms_fields', 'module', '_adm_form_txt_fields_module', '15%', 0, '13', '', 5),
  4451. ('sys_studio_forms_fields', 'visible_for_levels', '_adm_form_txt_fields_visible', '10%', 0, '10', '', 6),
  4452. ('sys_studio_forms_fields', 'actions', '', '20%', 0, '', '', 7),
  4453. ('sys_studio_forms_pre_lists', 'title', '_adm_form_txt_pre_lists_gl_title', '45%', 1, '50', '', 1),
  4454. ('sys_studio_forms_pre_lists', 'values', '_adm_form_txt_pre_lists_gl_values', '12%', 0, '10', '', 2),
  4455. ('sys_studio_forms_pre_lists', 'module', '_adm_form_txt_pre_lists_gl_module', '13%', 0, '11', '', 3),
  4456. ('sys_studio_forms_pre_lists', 'use_for_sets', '_adm_form_txt_pre_lists_gl_use_for_sets', '10%', 0, '8', '', 4),
  4457. ('sys_studio_forms_pre_lists', 'actions', '', '20%', 0, '', '', 5),
  4458. ('sys_studio_forms_pre_values', 'checkbox', '', '1%', 0, '', '', 1),
  4459. ('sys_studio_forms_pre_values', 'order', '', '1%', 0, '', '', 2),
  4460. ('sys_studio_forms_pre_values', 'LKey', '_adm_form_txt_pre_values_gl_lkey', '78%', 1, '75', '', 3),
  4461. ('sys_studio_forms_pre_values', 'actions', '', '20%', 0, '', '', 4),
  4462. ('sys_studio_search_forms', 'switcher', '', '10%', 0, '', '', 1),
  4463. ('sys_studio_search_forms', 'title', '_adm_form_txt_search_forms_title', '35%', 1, '38', '', 2),
  4464. ('sys_studio_search_forms', 'module', '_adm_form_txt_search_forms_module', '15%', 0, '13', '', 3),
  4465. ('sys_studio_search_forms', 'fields', '_adm_form_txt_search_forms_fields', '10%', 0, '13', '', 4),
  4466. ('sys_studio_search_forms', 'sortable_fields', '_adm_form_txt_search_forms_sortable_fields', '10%', 0, '13', '', 5),
  4467. ('sys_studio_search_forms', 'actions', '', '20%', 0, '', '', 6),
  4468. ('sys_studio_search_forms_fields', 'order', '', '1%', 0, '', '', 1),
  4469. ('sys_studio_search_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  4470. ('sys_studio_search_forms_fields', 'type', '_adm_form_txt_search_forms_fields_type', '15%', 0, '', '', 3),
  4471. ('sys_studio_search_forms_fields', 'caption', '_adm_form_txt_search_forms_fields_caption', '40%', 1, '38', '', 4),
  4472. ('sys_studio_search_forms_fields', 'search_type', '_adm_form_txt_search_forms_fields_search_type', '15%', 0, '', '', 5),
  4473. ('sys_studio_search_forms_fields', 'actions', '', '20%', 0, '', '', 6),
  4474. ('sys_studio_search_forms_sortable_fields', 'order', '', '1%', 0, '', '', 1),
  4475. ('sys_studio_search_forms_sortable_fields', 'switcher', '', '9%', 0, '', '', 2),
  4476. ('sys_studio_search_forms_sortable_fields', 'caption', '_adm_form_txt_search_forms_sortable_fields_caption', '50%', 1, '38', '', 3),
  4477. ('sys_studio_search_forms_sortable_fields', 'direction', '_adm_form_txt_search_forms_sortable_fields_direction', '40%', 0, '', '', 4),
  4478. ('sys_studio_labels', 'order', '', '1%', 0, 0, '', 1),
  4479. ('sys_studio_labels', 'value', '_adm_form_txt_labels_value', '70%', 0, 38, '', 2),
  4480. ('sys_studio_labels', 'items', '_adm_form_txt_labels_items', '10%', 0, 0, '', 3),
  4481. ('sys_studio_labels', 'actions', '', '19%', 0, 0, '', 4),
  4482. ('sys_studio_categories', 'checkbox', '_sys_select', '2%', 0, 0, '', 1),
  4483. ('sys_studio_categories', 'switcher', '_adm_prm_txt_enable', '8%', 0, 0, '', 2),
  4484. ('sys_studio_categories', 'value', '_adm_form_txt_categories_value', '25%', 0, 35, '', 3),
  4485. ('sys_studio_categories', 'module', '_adm_form_txt_categories_module', '15%', 0, 35, '', 4),
  4486. ('sys_studio_categories', 'author', '_adm_form_txt_categories_author', '15%', 0, 35, '', 5),
  4487. ('sys_studio_categories', 'added', '_adm_form_txt_categories_added', '15%', 1, 25, '', 6),
  4488. ('sys_studio_categories', 'actions', '', '20%', 0, 0, '', 7),
  4489. ('sys_studio_groups_roles', 'order', '', '2%', 0, 0, '', 1),
  4490. ('sys_studio_groups_roles', 'LKey', '_adm_rl_txt_title', '40%', 1, 0, '', 2),
  4491. ('sys_studio_groups_roles', 'actions_list', '_adm_rl_txt_actions', '10%', 0, 35, '', 3),
  4492. ('sys_studio_groups_roles', 'actions', '', '48%', 0, 0, '', 4),
  4493. ('sys_audit_administration', 'added', '_adm_form_txt_audit_added', '15%', 1, 25, '', 1),
  4494. ('sys_audit_administration', 'profile_id', '_adm_form_txt_audit_profile', '15%', 1, 25, '', 2),
  4495. ('sys_audit_administration', 'content_id', '_adm_form_txt_audit_content', '20%', 1, 25, '', 3),
  4496. ('sys_audit_administration', 'author_id', '_adm_form_txt_audit_author_content', '10%', 1, 25, '', 4),
  4497. ('sys_audit_administration', 'content_module', '_adm_form_txt_audit_module', '10%', 1, 25, '', 5),
  4498. ('sys_audit_administration', 'context_profile_id', '_adm_pgt_txt_audit_context', '15%', 1, 25, '', 6),
  4499. ('sys_audit_administration', 'action_lang_key', '_adm_pgt_txt_audit_action', '15%', 1, 25, '', 7),
  4500. ('sys_badges_administration', 'checkbox', '_sys_select', '2%', 0, 0, '', 1),
  4501. ('sys_badges_administration', 'view', '_adm_form_txt_badges_view', '15%', 1, 0, '', 2),
  4502. ('sys_badges_administration', 'module', '_adm_form_txt_badges_module', '15%', 1, 25, '', 3),
  4503. ('sys_badges_administration', 'text', '_adm_pgt_txt_badges_text', '28%', 1, 35, '', 4),
  4504. ('sys_badges_administration', 'icon', '_adm_pgt_txt_badges_icon', '20%', 1, 0, '', 5),
  4505. ('sys_badges_administration', 'actions', '', '20%', 0, 0, '', 6),
  4506. ('sys_reports_administration', 'object', '_adm_form_txt_reports_object', '10%', 1, 25, '', 1),
  4507. ('sys_reports_administration', 'author', '_adm_form_txt_reports_author', '10%', 1, 25, '', 2),
  4508. ('sys_reports_administration', 'type', '_adm_form_txt_reports_type', '10%', 1, 25, '', 3),
  4509. ('sys_reports_administration', 'text', '_adm_form_txt_reports_text', '10%', 1, 25, '', 4),
  4510. ('sys_reports_administration', 'date', '_adm_form_txt_reports_date', '10%', 1, 25, '', 5),
  4511. ('sys_reports_administration', 'status', '_adm_form_txt_reports_status', '10%', 1, 25, '', 6),
  4512. ('sys_reports_administration', 'checked_by', '_adm_form_txt_reports_checked_by', '10%', 1, 25, '', 7),
  4513. ('sys_reports_administration', 'notes', '_adm_form_txt_reports_notes', '10%', 1, 25, '', 8),
  4514. ('sys_reports_administration', 'comments', '_adm_form_txt_reports_comments', '10%', 1, 25, '', 8),
  4515. ('sys_reports_administration', 'actions', '', '10%', 0, '', '', 9);
  4516. CREATE TABLE IF NOT EXISTS `sys_grid_actions` (
  4517. `id` int(11) NOT NULL AUTO_INCREMENT,
  4518. `object` varchar(64) NOT NULL,
  4519. `type` enum('bulk','single','independent') NOT NULL,
  4520. `name` varchar(255) NOT NULL,
  4521. `title` varchar(255) NOT NULL,
  4522. `icon` varchar(255) NOT NULL,
  4523. `icon_only` tinyint(4) NOT NULL DEFAULT '0',
  4524. `confirm` tinyint(4) NOT NULL DEFAULT '1',
  4525. `active` tinyint(4) NOT NULL DEFAULT '1',
  4526. `order` int(11) NOT NULL,
  4527. PRIMARY KEY (`id`),
  4528. UNIQUE KEY `object_name_type` (`object`(64),`type`,`name`(123))
  4529. );
  4530. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`) VALUES
  4531. ('sys_studio_lang_keys', 'bulk', 'delete', '_adm_pgt_btn_delete', '', 1, 1),
  4532. ('sys_studio_lang_keys', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4533. ('sys_studio_lang_keys', 'single', 'delete', '', 'remove', 1, 2),
  4534. ('sys_studio_lang_keys', 'independent', 'add', '_adm_pgt_btn_add_new_key', '', 0, 1),
  4535. ('sys_studio_lang_etemplates', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4536. ('sys_studio_acl', 'independent', 'add', '_adm_prm_btn_add_level', '', 0, 1),
  4537. ('sys_studio_acl', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4538. ('sys_studio_acl', 'single', 'delete', '', 'remove', 1, 2),
  4539. ('sys_studio_acl_actions', 'single', 'options', '', 'cog', 0, 1),
  4540. ('sys_studio_nav_menus', 'independent', 'add', '_adm_nav_btn_menus_create', '', 0, 1),
  4541. ('sys_studio_nav_menus', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4542. ('sys_studio_nav_menus', 'single', 'delete', '', 'remove', 1, 2),
  4543. ('sys_studio_nav_sets', 'independent', 'add', '_adm_nav_btn_sets_create', '', 0, 1),
  4544. ('sys_studio_nav_sets', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4545. ('sys_studio_nav_sets', 'single', 'delete', '', 'remove', 1, 2),
  4546. ('sys_studio_nav_items', 'independent', 'import', '_adm_nav_btn_items_gl_import', '', 0, 1),
  4547. ('sys_studio_nav_items', 'independent', 'add', '_adm_nav_btn_items_gl_create', '', 0, 2),
  4548. ('sys_studio_nav_items', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4549. ('sys_studio_nav_items', 'single', 'delete', '', 'remove', 1, 2),
  4550. ('sys_studio_nav_items', 'single', 'show_to', '_adm_nav_btn_items_gl_visible', '', 0, 3),
  4551. ('sys_studio_nav_import', 'single', 'import', '', 'plus', 0, 1),
  4552. ('sys_studio_nav_import', 'bulk', 'done', '_adm_nav_btn_items_done', '', 0, 1),
  4553. ('sys_studio_forms', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4554. ('sys_studio_forms_displays', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4555. ('sys_studio_forms_fields', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4556. ('sys_studio_forms_fields', 'single', 'delete', '', 'remove', 1, 2),
  4557. ('sys_studio_forms_fields', 'single', 'show_to', '_adm_form_btn_fields_visible', '', 0, 3),
  4558. ('sys_studio_forms_fields', 'independent', 'add', '_adm_form_btn_fields_create', '', 0, 1),
  4559. ('sys_studio_forms_pre_lists', 'independent', 'add', '_adm_form_btn_pre_lists_create', '', 0, 1),
  4560. ('sys_studio_forms_pre_lists', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4561. ('sys_studio_forms_pre_lists', 'single', 'delete', '', 'remove', 1, 2),
  4562. ('sys_studio_forms_pre_values', 'independent', 'add', '_adm_form_btn_pre_values_create', '', 0, 1),
  4563. ('sys_studio_forms_pre_values', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4564. ('sys_studio_forms_pre_values', 'single', 'delete', '', 'remove', 1, 2),
  4565. ('sys_studio_forms_pre_values', 'bulk', 'delete', '_adm_form_btn_pre_values_delete', '', 1, 1),
  4566. ('sys_studio_search_forms', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4567. ('sys_studio_search_forms_fields', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4568. ('sys_studio_search_forms_fields', 'independent', 'reset', '_adm_form_btn_search_forms_fields_reset', '', 0, 1),
  4569. ('sys_studio_search_forms_sortable_fields', 'independent', 'reset', '_adm_form_btn_search_forms_sortable_fields_reset', '', 0, 1),
  4570. ('sys_studio_labels', 'independent', 'back', '_adm_form_btn_labels_back', '', 0, 1),
  4571. ('sys_studio_labels', 'independent', 'add', '_adm_form_btn_labels_add', '', 0, 2),
  4572. ('sys_studio_labels', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4573. ('sys_studio_labels', 'single', 'delete', '', 'remove', 1, 2),
  4574. ('sys_studio_categories', 'bulk', 'delete', '_adm_form_btn_categories_delete', '', 1, 1),
  4575. ('sys_studio_categories', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4576. ('sys_studio_categories', 'single', 'delete', '', 'remove', 1, 2),
  4577. ('sys_studio_categories', 'independent', 'add', '_adm_form_btn_categories_add', '', 0, 1),
  4578. ('sys_studio_groups_roles', 'independent', 'add', '_adm_rl_btn_role_add', '', 0, 1),
  4579. ('sys_studio_groups_roles', 'single', 'edit', '_adm_rl_btn_role_edit', 'pencil-alt', 0, 1),
  4580. ('sys_studio_groups_roles', 'single', 'delete', '_adm_rl_btn_role_delete', 'remove', 1, 3),
  4581. ('sys_badges_administration', 'bulk', 'delete', '_adm_form_btn_badges_delete', '', 1, 1),
  4582. ('sys_badges_administration', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4583. ('sys_badges_administration', 'single', 'delete', '', 'remove', 1, 2),
  4584. ('sys_badges_administration', 'single', 'delete_icon', '', '', 1, 3),
  4585. ('sys_badges_administration', 'independent', 'add', '_adm_form_btn_badges_add', '', 0, 1);
  4586. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`, `icon_only`) VALUES
  4587. ('sys_reports_administration', 'single', 'check_in', '_adm_form_btn_reports_check_in', 'lock-open', 0, 1, 1),
  4588. ('sys_reports_administration', 'single', 'check_out', '_adm_form_btn_reports_check_out', 'lock', 0, 2, 1),
  4589. ('sys_reports_administration', 'single', 'audit', '_adm_form_btn_reports_audit', 'history', 0, 3, 1);
  4590. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4591. ('sys_studio_roles', 'independent', 'add', '_adm_rl_btn_role_add', '', 0, 0, 1),
  4592. ('sys_studio_roles', 'single', 'edit', '_adm_rl_btn_role_edit', 'pencil-alt', 1, 0, 1),
  4593. ('sys_studio_roles', 'single', 'delete', '_adm_rl_btn_role_delete', 'remove', 1, 1, 2);
  4594. -- GRIDS: moderation tools
  4595. 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
  4596. ('sys_cmts_administration', 'Sql', '', 'sys_cmts_ids', 'cmt_id', 'cmt_time', 'status_admin', '', 20, NULL, 'start', '', 'cmt_text,email', '', 'like', 'reports', '', 192, 'BxTemplCmtsGridAdministration', '');
  4597. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  4598. ('sys_cmts_administration', 'checkbox', '_sys_select', '2%', 0, '0', '', 1),
  4599. ('sys_cmts_administration', 'switcher', '_sys_cmts_administration_grid_column_title_adm_active', '8%', 0, '', '', 2),
  4600. ('sys_cmts_administration', 'reports', '_sys_txt_reports_title', '5%', 0, '0', '', 3),
  4601. ('sys_cmts_administration', 'cmt_text', '_sys_cmts_administration_grid_column_title_adm_cmt_text', '30%', 0, '25', '', 4),
  4602. ('sys_cmts_administration', 'cmt_time', '_sys_cmts_administration_grid_column_title_adm_cmt_time', '15%', 1, '25', '', 5),
  4603. ('sys_cmts_administration', 'cmt_author_id', '_sys_cmts_administration_grid_column_title_adm_cmt_author_id', '20%', 0, '25', '', 6),
  4604. ('sys_cmts_administration', 'actions', '', '20%', 0, '', '', 7);
  4605. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4606. ('sys_cmts_administration', 'bulk', 'delete', '_sys_cmts_administration_grid_action_title_adm_delete', '', 0, 1, 1),
  4607. ('sys_cmts_administration', 'single', 'delete', '_sys_cmts_administration_grid_action_title_adm_delete', 'remove', 1, 1, 1);
  4608. -- GRID: Storage managers
  4609. 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
  4610. ('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', ''),
  4611. ('sys_studio_strg_images', 'Sql', 'SELECT * FROM `sys_images` WHERE 1 ', 'sys_images', 'id', '', '', '', 20, NULL, 'start', '', 'file_name', '', 'auto', 'file_name,added', '', 'BxTemplStudioStoragesImages', '');
  4612. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  4613. -- Storages: Files
  4614. ('sys_studio_strg_files', 'checkbox', '', '1%', 0, '', '', 1),
  4615. ('sys_studio_strg_files', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  4616. ('sys_studio_strg_files', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  4617. ('sys_studio_strg_files', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  4618. ('sys_studio_strg_files', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  4619. ('sys_studio_strg_files', 'actions', '', '25%', 0, '', '', 6),
  4620. -- Storages: Images
  4621. ('sys_studio_strg_images', 'checkbox', '', '1%', 0, '', '', 1),
  4622. ('sys_studio_strg_images', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  4623. ('sys_studio_strg_images', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  4624. ('sys_studio_strg_images', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  4625. ('sys_studio_strg_images', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  4626. ('sys_studio_strg_images', 'actions', '', '25%', 0, '', '', 6);
  4627. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4628. -- Storages: Files
  4629. ('sys_studio_strg_files', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  4630. ('sys_studio_strg_files', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  4631. ('sys_studio_strg_files', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 2),
  4632. ('sys_studio_strg_files', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1),
  4633. -- Storages: Images
  4634. ('sys_studio_strg_images', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  4635. ('sys_studio_strg_images', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  4636. ('sys_studio_strg_images', 'single', 'resize', '_adm_strg_btn_resize', 'compress', 1, 0, 2),
  4637. ('sys_studio_strg_images', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 3),
  4638. ('sys_studio_strg_images', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1);
  4639. -- GRID: connections
  4640. 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
  4641. ('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', ''),
  4642. ('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', ''),
  4643. ('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', ''),
  4644. ('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', ''),
  4645. ('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', ''),
  4646. ('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', '');
  4647. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `params`, `hidden_on`, `order`) VALUES
  4648. ('sys_grid_connections', 'name', '_sys_name', '40%', '', '', 1),
  4649. ('sys_grid_connections', 'info', '', '30%', '', '1', 2),
  4650. ('sys_grid_connections', 'actions', '', '30%', '', '', 3),
  4651. ('sys_grid_connections_requests', 'name', '_sys_name', '40%', '', '', 1),
  4652. ('sys_grid_connections_requests', 'info', '', '30%', '', '1', 2),
  4653. ('sys_grid_connections_requests', 'actions', '', '30%', '', '', 3),
  4654. ('sys_grid_subscriptions', 'name', '_sys_name', '70%', '', '', 1),
  4655. ('sys_grid_subscriptions', 'actions', '', '30%', '', '', 2),
  4656. ('sys_grid_subscribed_me', 'name', '_sys_name', '70%', '', '', 1),
  4657. ('sys_grid_subscribed_me', 'actions', '', '30%', '', '', 2),
  4658. ('sys_grid_relations', 'name', '_sys_name', '40%', '', '', 1),
  4659. ('sys_grid_relations', 'relation', '_sys_relation', '15%', '', '', 2),
  4660. ('sys_grid_relations', 'mutual', '_sys_status', '15%', '', '', 3),
  4661. ('sys_grid_relations', 'actions', '', '30%', '', '', 4),
  4662. ('sys_grid_related_me', 'name', '_sys_name', '40%', '', '', 1),
  4663. ('sys_grid_related_me', 'relation', '_sys_relation', '15%', '', '', 2),
  4664. ('sys_grid_related_me', 'mutual', '_sys_status', '15%', '', '', 3),
  4665. ('sys_grid_related_me', 'actions', '', '30%', '', '', 4);
  4666. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4667. ('sys_grid_connections', 'single', 'accept', '_sys_accept', '', 0, 0, 1),
  4668. ('sys_grid_connections', 'single', 'delete', '', 'remove', 0, 1, 2),
  4669. ('sys_grid_connections', 'single', 'add_friend', '_sys_add_friend', 'plus', 0, 0, 3),
  4670. ('sys_grid_connections_requests', 'single', 'accept', '_sys_accept', '', 0, 0, 1),
  4671. ('sys_grid_connections_requests', 'single', 'delete', '', 'remove', 0, 1, 2),
  4672. ('sys_grid_subscriptions', 'single', 'subscribe', '_sys_subscribe', 'check', 0, 0, 1),
  4673. ('sys_grid_subscriptions', 'single', 'delete', '', 'remove', 0, 1, 2),
  4674. ('sys_grid_subscribed_me', 'single', 'subscribe', '_sys_subscribe', 'check', 0, 0, 1),
  4675. ('sys_grid_relations', 'single', 'delete', '_Delete', 'remove', 1, 1, 1),
  4676. ('sys_grid_related_me', 'single', 'confirm', '_sys_confirm', 'check-circle', 1, 0, 1),
  4677. ('sys_grid_related_me', 'single', 'decline', '_sys_decline', 'times-circle', 1, 1, 2),
  4678. ('sys_grid_related_me', 'single', 'add', '_sys_add_relation', 'plus-circle', 1, 0, 3),
  4679. ('sys_grid_related_me', 'single', 'delete', '_Delete', 'remove', 1, 1, 4);
  4680. -- GRID: queues
  4681. INSERT INTO `sys_objects_grid` (`object`, `source_type`, `source`, `table`, `field_id`, `field_order`, `field_active`, `order_get_field`, `order_get_dir`, `paginate_url`, `paginate_per_page`, `paginate_simple`, `paginate_get_start`, `paginate_get_per_page`, `filter_fields`, `filter_fields_translatable`, `filter_mode`, `filter_get`, `sorting_fields`, `sorting_fields_translatable`, `visible_for_levels`, `responsive`, `show_total_count`, `override_class_name`, `override_class_file`) VALUES
  4682. ('sys_queues', 'Array', '', '', 'id', '', '', 'order_field', 'order_dir', '', 10, NULL, 'start', '', '', '', 'auto', 'filter', '', '', 128, 0, 0, 'BxDolGridQueues', '');
  4683. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `hidden_on`, `order`) VALUES
  4684. ('sys_queues', 'name', '_Name', '40%', 1, 0, '', '', 1),
  4685. ('sys_queues', 'all', '_all', '20%', 0, 0, '', '', 2),
  4686. ('sys_queues', 'failed', '_Failed', '20%', 0, 0, '', '', 3),
  4687. ('sys_queues', 'actions', '', '20%', 0, 0, '', '', 4);
  4688. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4689. ('sys_queues', 'single', 'clear', '', 'eraser', 0, 1, 1);
  4690. -- GRID: API Origins
  4691. 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
  4692. ('sys_studio_api_origins', 'Sql', 'SELECT * FROM `sys_api_origins` WHERE 1 ', 'sys_api_origins', 'id', 'order', '', '', 20, NULL, 'start', '', 'url', '', 'like', '', '', 'BxDolStudioApiOrigins', '');
  4693. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `hidden_on`, `order`) VALUES
  4694. ('sys_studio_api_origins', 'order', '', '1%', 0, 0, '', '', 1),
  4695. ('sys_studio_api_origins', 'url', '_sys_txt_url', '80%', 0, 0, '', '', 2),
  4696. ('sys_studio_api_origins', 'actions', '', '19%', 0, 0, '', '', 3);
  4697. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4698. ('sys_studio_api_origins', 'single', 'delete', '_Delete', 'remove', 1, 1, 1),
  4699. ('sys_studio_api_origins', 'independent', 'add', '_adm_form_btn_field_add', '', 0, 0, 1);
  4700. -- GRID: API Keys
  4701. 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
  4702. ('sys_studio_api_keys', 'Sql', 'SELECT * FROM `sys_api_keys` WHERE 1 ', 'sys_api_keys', 'id', 'order', '', '', 20, NULL, 'start', '', 'key,title', '', 'like', '', '', 'BxDolStudioApiKeys', '');
  4703. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `hidden_on`, `order`) VALUES
  4704. ('sys_studio_api_keys', 'order', '', '1%', 0, 0, '', '', 1),
  4705. ('sys_studio_api_keys', 'title', '_Name', '40%', 0, 0, '', '', 2),
  4706. ('sys_studio_api_keys', 'key', '_sys_txt_api_key', '40%', 0, 0, '', '', 3),
  4707. ('sys_studio_api_keys', 'actions', '', '19%', 0, 0, '', '', 4);
  4708. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4709. ('sys_studio_api_keys', 'single', 'delete', '_Delete', 'remove', 1, 1, 1),
  4710. ('sys_studio_api_keys', 'independent', 'add', '_adm_form_btn_field_add', '', 0, 0, 1);
  4711. -- --------------------------------------------------------
  4712. CREATE TABLE IF NOT EXISTS `sys_objects_connection` (
  4713. `id` int(11) NOT NULL AUTO_INCREMENT,
  4714. `object` varchar(64) NOT NULL,
  4715. `table` varchar(255) NOT NULL,
  4716. `profile_initiator` tinyint(4) NOT NULL DEFAULT '1',
  4717. `profile_content` tinyint(4) NOT NULL DEFAULT '0',
  4718. `type` enum('one-way','mutual') NOT NULL,
  4719. `override_class_name` varchar(255) NOT NULL,
  4720. `override_class_file` varchar(255) NOT NULL,
  4721. PRIMARY KEY (`id`),
  4722. UNIQUE KEY `object` (`object`)
  4723. );
  4724. INSERT INTO `sys_objects_connection` (`object`, `table`, `profile_initiator`, `profile_content`, `type`, `override_class_name`, `override_class_file`) VALUES
  4725. ('sys_profiles_friends', 'sys_profiles_conn_friends', 1, 1, 'mutual', '', ''),
  4726. ('sys_profiles_subscriptions', 'sys_profiles_conn_subscriptions', 1, 1, 'one-way', '', ''),
  4727. ('sys_profiles_relations', 'sys_profiles_conn_relations', 1, 1, 'mutual', 'BxDolRelation', ''),
  4728. ('sys_profiles_bans', 'sys_profiles_conn_bans', 1, 1, 'one-way', 'BxDolBan', '');
  4729. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_bans` (
  4730. `id` int(11) NOT NULL AUTO_INCREMENT,
  4731. `module` varchar(32) NOT NULL DEFAULT '',
  4732. `initiator` int(11) NOT NULL,
  4733. `content` int(11) NOT NULL,
  4734. `added` int(10) unsigned NOT NULL,
  4735. PRIMARY KEY (`id`),
  4736. UNIQUE KEY `initiator` (`initiator`,`content`),
  4737. KEY `content` (`content`)
  4738. );
  4739. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_relations` (
  4740. `id` int(11) NOT NULL AUTO_INCREMENT,
  4741. `initiator` int(11) NOT NULL DEFAULT '0',
  4742. `content` int(11) NOT NULL DEFAULT '0',
  4743. `relation` int(11) NOT NULL DEFAULT '0',
  4744. `mutual` tinyint(4) NOT NULL DEFAULT '0',
  4745. `added` int(11) unsigned NOT NULL DEFAULT '0',
  4746. PRIMARY KEY (`id`),
  4747. UNIQUE KEY `initiator` (`initiator`,`content`),
  4748. KEY `content` (`content`)
  4749. );
  4750. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_subscriptions` (
  4751. `id` int(11) NOT NULL AUTO_INCREMENT,
  4752. `initiator` int(11) NOT NULL,
  4753. `content` int(11) NOT NULL,
  4754. `added` int(10) unsigned NOT NULL,
  4755. PRIMARY KEY (`id`),
  4756. UNIQUE KEY `initiator` (`initiator`,`content`),
  4757. KEY `content` (`content`)
  4758. );
  4759. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_friends` (
  4760. `id` int(11) NOT NULL AUTO_INCREMENT,
  4761. `initiator` int(11) NOT NULL,
  4762. `content` int(11) NOT NULL,
  4763. `mutual` tinyint(4) NOT NULL,
  4764. `added` int(10) unsigned NOT NULL,
  4765. PRIMARY KEY (`id`),
  4766. UNIQUE KEY `initiator` (`initiator`,`content`),
  4767. KEY `content` (`content`)
  4768. );
  4769. -- --------------------------------------------------------
  4770. CREATE TABLE IF NOT EXISTS `sys_objects_transcoder` (
  4771. `id` int(11) NOT NULL AUTO_INCREMENT,
  4772. `object` varchar(64) NOT NULL,
  4773. `storage_object` varchar(64) NOT NULL,
  4774. `source_type` enum('Folder','Storage','Proxy') NOT NULL,
  4775. `source_params` text NOT NULL,
  4776. `private` enum('auto','yes','no') NOT NULL,
  4777. `atime_tracking` int(11) NOT NULL,
  4778. `atime_pruning` int(11) NOT NULL,
  4779. `ts` int(11) NOT NULL DEFAULT '0',
  4780. `override_class_name` varchar(255) NOT NULL,
  4781. `override_class_file` varchar(255) NOT NULL,
  4782. PRIMARY KEY (`id`),
  4783. UNIQUE KEY `object` (`object`)
  4784. );
  4785. 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
  4786. ('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', '', ''),
  4787. ('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', '', ''),
  4788. ('sys_icon_android', 'sys_images_resized', 'Storage', 'a:2:{s:6:"object";s:10:"sys_images";s:14:"disable_retina";b:1;}', 'no', '0', '0', '0', '', ''),
  4789. ('sys_icon_android_splash', 'sys_images_resized', 'Storage', 'a:2:{s:6:"object";s:10:"sys_images";s:14:"disable_retina";b:1;}', 'no', '0', '0', '0', '', ''),
  4790. ('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', '', ''),
  4791. ('sys_icon_favicon', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  4792. ('sys_cover', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  4793. ('sys_cover_unit_profile', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  4794. ('sys_cover_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  4795. ('sys_builder_page_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  4796. ('sys_builder_page_embed', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  4797. ('sys_cmts_images_preview', 'sys_cmts_images_preview', 'Storage', 'a:1:{s:6:"object";s:15:"sys_cmts_images";}', 'no', '1', '2592000', '0', '', ''),
  4798. ('sys_custom_images', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:17:"sys_images_custom";}', 'no', '1', '2592000', '0', '', ''),
  4799. ('sys_images_editor', 'sys_images_editor_resized', 'Storage', 'a:1:{s:6:"object";s:17:"sys_images_editor";}', 'no', '1', '2592000', '0', '', ''),
  4800. ('sys_wiki_images_preview', 'sys_wiki_images_resized', 'Storage', 'a:1:{s:6:"object";s:14:"sys_wiki_files";}', 'no', '1', '2592000', '0', '', '');
  4801. CREATE TABLE IF NOT EXISTS `sys_transcoder_images_files` (
  4802. `id` int(11) NOT NULL AUTO_INCREMENT,
  4803. `transcoder_object` varchar(64) NOT NULL,
  4804. `file_id` int(11) NOT NULL,
  4805. `handler` varchar(255) NOT NULL,
  4806. `atime` int(11) NOT NULL,
  4807. `data` text NOT NULL,
  4808. PRIMARY KEY (`id`),
  4809. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  4810. KEY `atime` (`atime`),
  4811. KEY `file_id` (`file_id`)
  4812. );
  4813. CREATE TABLE IF NOT EXISTS `sys_transcoder_videos_files` (
  4814. `id` int(11) NOT NULL AUTO_INCREMENT,
  4815. `transcoder_object` varchar(64) NOT NULL,
  4816. `file_id` int(11) NOT NULL,
  4817. `handler` varchar(255) NOT NULL,
  4818. `atime` int(11) NOT NULL,
  4819. PRIMARY KEY (`id`),
  4820. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  4821. KEY `atime` (`atime`),
  4822. KEY `file_id` (`file_id`)
  4823. );
  4824. CREATE TABLE IF NOT EXISTS `sys_transcoder_audio_files` (
  4825. `id` int(11) NOT NULL AUTO_INCREMENT,
  4826. `transcoder_object` varchar(64) NOT NULL,
  4827. `file_id` int(11) NOT NULL,
  4828. `handler` varchar(255) NOT NULL,
  4829. `atime` int(11) NOT NULL,
  4830. PRIMARY KEY (`id`),
  4831. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  4832. KEY `atime` (`atime`),
  4833. KEY `file_id` (`file_id`)
  4834. );
  4835. CREATE TABLE IF NOT EXISTS `sys_transcoder_filters` (
  4836. `id` int(11) NOT NULL AUTO_INCREMENT,
  4837. `transcoder_object` varchar(64) NOT NULL,
  4838. `filter` varchar(32) NOT NULL,
  4839. `filter_params` text NOT NULL,
  4840. `order` int(11) NOT NULL DEFAULT '0',
  4841. PRIMARY KEY (`id`),
  4842. KEY `transcoder_object` (`transcoder_object`)
  4843. );
  4844. INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
  4845. ('sys_image_resize', 'ResizeVar', '', '0'),
  4846. ('sys_icon_apple', 'Resize', 'a:3:{s:1:"w";s:3:"180";s:1:"h";s:3:"180";s:13:"square_resize";s:1:"1";}', '0'),
  4847. ('sys_icon_android', 'Resize', 'a:3:{s:1:"w";s:3:"192";s:1:"h";s:3:"192";s:13:"square_resize";s:1:"1";}', '0'),
  4848. ('sys_icon_android_splash', 'Resize', 'a:3:{s:1:"w";s:3:"512";s:1:"h";s:3:"512";s:13:"square_resize";s:1:"1";}', '0'),
  4849. ('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'),
  4850. ('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'),
  4851. ('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'),
  4852. ('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'),
  4853. ('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'),
  4854. ('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'),
  4855. ('sys_builder_page_embed', 'ResizeVar', '', '0'),
  4856. ('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'),
  4857. ('sys_custom_images', 'ResizeVar', '', '0'),
  4858. ('sys_images_editor', 'Resize', 'a:2:{s:1:"w";s:4:"1600";s:1:"h";s:4:"1600";}', '0'),
  4859. ('sys_wiki_images_preview', 'Resize', 'a:4:{s:1:"w";s:2:"52";s:1:"h";s:2:"52";s:13:"square_resize";s:1:"1";s:10:"force_type";s:3:"jpg";}', '0');
  4860. CREATE TABLE IF NOT EXISTS `sys_transcoder_queue` (
  4861. `id` int(11) NOT NULL AUTO_INCREMENT,
  4862. `transcoder_object` varchar(64) NOT NULL,
  4863. `profile_id` int(10) unsigned NOT NULL,
  4864. `file_url_source` varchar(255) NOT NULL,
  4865. `file_id_source` varchar(255) NOT NULL,
  4866. `file_url_result` varchar(255) NOT NULL,
  4867. `file_ext_result` varchar(255) NOT NULL,
  4868. `file_id_result` int(11) NOT NULL,
  4869. `server` varchar(255) NOT NULL,
  4870. `status` enum('pending','processing','complete','failed','delete') NOT NULL,
  4871. `pid` int(10) UNSIGNED NOT NULL DEFAULT '0',
  4872. `added` int(11) NOT NULL,
  4873. `changed` int(11) NOT NULL,
  4874. `log` text NOT NULL,
  4875. PRIMARY KEY (`id`),
  4876. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`file_id_source`(127))
  4877. );
  4878. CREATE TABLE `sys_transcoder_queue_files` (
  4879. `id` int(11) NOT NULL AUTO_INCREMENT,
  4880. `profile_id` int(10) unsigned NOT NULL,
  4881. `remote_id` varchar(128) NOT NULL,
  4882. `path` varchar(255) NOT NULL,
  4883. `file_name` varchar(255) NOT NULL,
  4884. `mime_type` varchar(128) NOT NULL,
  4885. `ext` varchar(32) NOT NULL,
  4886. `size` bigint(20) NOT NULL,
  4887. `added` int(11) NOT NULL,
  4888. `modified` int(11) NOT NULL,
  4889. `private` int(11) NOT NULL,
  4890. PRIMARY KEY (`id`),
  4891. UNIQUE KEY `remote_id` (`remote_id`)
  4892. );
  4893. -- --------------------------------------------------------
  4894. CREATE TABLE IF NOT EXISTS `sys_objects_page` (
  4895. `id` int(11) NOT NULL AUTO_INCREMENT,
  4896. `author` int(11) NOT NULL DEFAULT '0',
  4897. `added` int(11) NOT NULL DEFAULT '0',
  4898. `object` varchar(64) NOT NULL,
  4899. `uri` varchar(255) NOT NULL,
  4900. `title_system` varchar(255) NOT NULL,
  4901. `title` varchar(255) NOT NULL,
  4902. `module` varchar(32) NOT NULL,
  4903. `cover` tinyint(4) NOT NULL DEFAULT '1',
  4904. `cover_image` int(11) NOT NULL DEFAULT '0',
  4905. `cover_title` varchar(255) NOT NULL DEFAULT '',
  4906. `type_id` int(11) NOT NULL DEFAULT '1',
  4907. `layout_id` int(11) NOT NULL,
  4908. `sticky_columns` tinyint(4) NOT NULL DEFAULT '0',
  4909. `submenu` varchar(64) NOT NULL DEFAULT '',
  4910. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  4911. `visible_for_levels_editable` tinyint(4) NOT NULL DEFAULT '1',
  4912. `url` varchar(255) NOT NULL,
  4913. `content_info` varchar(64) NOT NULL,
  4914. `meta_title` varchar(255) NOT NULL,
  4915. `meta_description` text NOT NULL,
  4916. `meta_keywords` text NOT NULL,
  4917. `meta_robots` varchar(255) NOT NULL,
  4918. `cache_lifetime` int(11) NOT NULL DEFAULT '0',
  4919. `cache_editable` tinyint(4) NOT NULL DEFAULT '1',
  4920. `inj_head` text NOT NULL,
  4921. `inj_footer` text NOT NULL,
  4922. `deletable` tinyint(1) NOT NULL,
  4923. `override_class_name` varchar(255) NOT NULL,
  4924. `override_class_file` varchar(255) NOT NULL,
  4925. PRIMARY KEY (`id`),
  4926. UNIQUE KEY `object` (`object`),
  4927. UNIQUE KEY `uri` (`uri`(191))
  4928. );
  4929. 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
  4930. ('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),
  4931. ('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),
  4932. ('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),
  4933. ('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),
  4934. ('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),
  4935. ('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),
  4936. ('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),
  4937. ('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),
  4938. ('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),
  4939. ('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),
  4940. ('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),
  4941. ('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),
  4942. ('sys_login', 'login', '_sys_page_title_system_login', '_sys_page_title_login', 'system', 0, 18, '', 2147483647, 1, 'page.php?i=login', '', '', '', 0, 1, 0, '', '', 0),
  4943. ('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),
  4944. ('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),
  4945. ('sys_logout', 'logout', '', '_sys_page_title_logout', 'system', 0, 18, '', 2147483647, 0, 'page.php?i=logout', '', '', '', 0, 0, 0, '', '', 0),
  4946. ('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),
  4947. ('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),
  4948. ('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),
  4949. ('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),
  4950. ('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),
  4951. ('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),
  4952. ('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),
  4953. ('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),
  4954. ('sys_profile_settings_cfilter', 'profile-settings-cfilter', '_sys_page_title_system_profile_settings_cfilter', '_sys_page_title_profile_settings_cfilter', 'system', 1, 5, '', 2147483647, 1, 'page.php?i=profile-settings-cfilter', '', '', '', 0, 1, 0, '', '', 0),
  4955. ('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),
  4956. ('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),
  4957. ('sys_std_dashboard', '', '_sys_page_title_system_studio_dashboard', '_sys_page_title_studio_dashboard', 'system', 1, 4, '', 2147483647, 1, '', '', '', '', 0, 1, 0, '', '', 0),
  4958. ('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),
  4959. ('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),
  4960. ('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),
  4961. ('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),
  4962. ('sys_redirect', 'redirect', '', '_sys_page_title_redirect', 'system', 0, 18, '', 2147483647, 1, 'page.php?i=redirect', '', '', '', 0, 1, 0, '', '', 0),
  4963. ('sys_sub_wiki_pages_list', 'wiki-pages-list', '', '_sys_page_title_wiki_pages_list', 'system', 1, 5, '', 2147483647, 1, '', '', '', '', 0, 1, 0, '', '', 0),
  4964. ('sys_sub_wiki_page_contents', 'wiki-page-contents', '', '_sys_page_title_wiki_page_contents', 'system', 1, 5, '', 2147483647, 1, '', '', '', '', 0, 1, 0, '', '', 0),
  4965. ('sys_con_friends', 'friends', '_sys_page_title_system_con_friends', '_sys_page_title_con_friends', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=friends', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0),
  4966. ('sys_con_friend_requests', 'friend-requests', '_sys_page_title_system_con_friend_requests', '_sys_page_title_con_friend_requests', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=friend-requests', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0),
  4967. ('sys_con_friend_requested', 'sent-friend-requests', '_sys_page_title_system_con_friend_requested', '_sys_page_title_con_friend_requested', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=sent-friend-requests', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0),
  4968. ('sys_con_following', 'following', '_sys_page_title_system_con_following', '_sys_page_title_con_following', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=following', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0),
  4969. ('sys_con_followers', 'followers', '_sys_page_title_system_con_followers', '_sys_page_title_con_followers', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=followers', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0),
  4970. ('sys_recom_friends', 'friend-suggestions', '_sys_page_title_system_recom_friends', '_sys_page_title_recom_friends', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=friend-suggestions', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0),
  4971. ('sys_recom_subscriptions', 'follow-suggestions', '_sys_page_title_system_recom_subscriptions', '_sys_page_title_recom_subscriptions', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=follow-suggestions', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0);
  4972. CREATE TABLE IF NOT EXISTS `sys_pages_types` (
  4973. `id` int(11) NOT NULL AUTO_INCREMENT,
  4974. `title` varchar(255) NOT NULL,
  4975. `template` varchar(255) NOT NULL,
  4976. `order` int(11) NOT NULL,
  4977. PRIMARY KEY (`id`)
  4978. );
  4979. INSERT INTO `sys_pages_types` (`id`, `title`, `template`, `order`) VALUES
  4980. (1, '_sys_page_type_default', '', 1),
  4981. (2, '_sys_page_type_wo_hf', 'pt_wo_hf.html', 2),
  4982. (3, '_sys_page_type_standard', 'pt_standard.html', 3),
  4983. (4, '_sys_page_type_application', 'pt_application.html', 4);
  4984. CREATE TABLE IF NOT EXISTS `sys_pages_layouts` (
  4985. `id` int(11) NOT NULL AUTO_INCREMENT,
  4986. `name` varchar(64) NOT NULL,
  4987. `icon` varchar(255) NOT NULL,
  4988. `title` varchar(255) NOT NULL,
  4989. `template` varchar(255) NOT NULL,
  4990. `cells_number` int(11) NOT NULL,
  4991. PRIMARY KEY (`id`),
  4992. UNIQUE KEY `name` (`name`)
  4993. );
  4994. INSERT INTO `sys_pages_layouts` (`id`, `name`, `icon`, `title`, `template`, `cells_number`) VALUES
  4995. (1, 'bar_left', 'layout_bar_left.png', '_sys_layout_bar_left', 'layout_bar_left.html', 2),
  4996. (2, 'bar_right', 'layout_bar_right.png', '_sys_layout_bar_right', 'layout_bar_right.html', 2),
  4997. (3, '3_columns', 'layout_3_columns.png', '_sys_layout_3_columns', 'layout_3_columns.html', 3),
  4998. (4, '2_columns', 'layout_2_columns.png', '_sys_layout_2_columns', 'layout_2_columns.html', 2),
  4999. (5, '1_column', 'layout_1_column.png', '_sys_layout_1_column', 'layout_1_column.html', 1),
  5000. (6, 'top_area_bar_left', 'layout_top_area_bar_left.png', '_sys_layout_top_area_bar_left', 'layout_top_area_bar_left.html', 3),
  5001. (7, 'top_area_bar_right', 'layout_top_area_bar_right.png', '_sys_layout_top_area_bar_right', 'layout_top_area_bar_right.html', 3),
  5002. (8, 'top_area_3_columns', 'layout_top_area_3_columns.png', '_sys_layout_top_area_3_columns', 'layout_top_area_3_columns.html', 4),
  5003. (9, 'top_area_2_columns', 'layout_top_area_2_columns.png', '_sys_layout_top_area_2_columns', 'layout_top_area_2_columns.html', 3),
  5004. (10, 'topbottom_area_2_columns', 'layout_topbottom_area_2_columns.png', '_sys_layout_topbottom_area_2_columns', 'layout_topbottom_area_2_columns.html', 4),
  5005. (11, 'bottom_area_2_columns', 'layout_bottom_area_2_columns.png', '_sys_layout_bottom_area_2_columns', 'layout_bottom_area_2_columns.html', 3),
  5006. (12, 'topbottom_area_bar_right', 'layout_topbottom_area_bar_right.png', '_sys_layout_topbottom_area_bar_right', 'layout_topbottom_area_bar_right.html', 4),
  5007. (13, 'topbottom_area_bar_left', 'layout_topbottom_area_bar_left.png', '_sys_layout_topbottom_area_bar_left', 'layout_topbottom_area_bar_left.html', 4),
  5008. (14, 'bar_content_bar', 'layout_bar_content_bar.png', '_sys_layout_bar_content_bar', 'layout_bar_content_bar.html', 3),
  5009. (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),
  5010. (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),
  5011. (17, 'topbottom_area_col1_col5', 'layout_topbottom_area_col1_col5.png', '_sys_layout_topbottom_area_col1_col5', 'layout_topbottom_area_col1_col5.html', 4),
  5012. (18, '1_column_thin', 'layout_1_column_thin.png', '_sys_layout_1_column_thin', 'layout_1_column_thin.html', 1),
  5013. (19, '1_column_half', 'layout_1_column_half.png', '_sys_layout_1_column_half', 'layout_1_column_half.html', 1),
  5014. (20, '1_column_wiki', 'layout_1_column_wiki.png', '_sys_layout_1_column_wiki', 'layout_1_column_wiki.html', 1),
  5015. (21, 'topbottom_area_col2_col5_col3', 'layout_topbottom_area_col2_col5_col3.png', '_sys_layout_topbottom_area_col2_col5_col3', 'layout_topbottom_area_col2_col5_col3.html', 5);
  5016. CREATE TABLE IF NOT EXISTS `sys_pages_design_boxes` (
  5017. `id` int(11) NOT NULL,
  5018. `title` varchar(255) NOT NULL,
  5019. `template` varchar(255) NOT NULL,
  5020. `order` int(11) NOT NULL,
  5021. PRIMARY KEY (`id`)
  5022. );
  5023. INSERT INTO `sys_pages_design_boxes` (`id`, `title`, `template`, `order`) VALUES
  5024. (0, '_sys_designbox_0', 'designbox_0.html', '2'),
  5025. (1, '_sys_designbox_1', 'designbox_1.html', '8'),
  5026. (2, '_sys_designbox_2', 'designbox_2.html', '1'),
  5027. (3, '_sys_designbox_3', 'designbox_3.html', '4'),
  5028. (4, '_sys_designbox_4', 'designbox_4.html', '6'),
  5029. (10, '_sys_designbox_10', 'designbox_10.html', '3'),
  5030. (11, '_sys_designbox_11', 'designbox_11.html', '9'),
  5031. (13, '_sys_designbox_13', 'designbox_13.html', '5'),
  5032. (14, '_sys_designbox_14', 'designbox_14.html', '7');
  5033. CREATE TABLE IF NOT EXISTS `sys_pages_content_placeholders` (
  5034. `id` int(11) NOT NULL AUTO_INCREMENT,
  5035. `module` varchar(32) NOT NULL,
  5036. `title` varchar(255) NOT NULL,
  5037. `template` varchar(255) NOT NULL,
  5038. `order` int(11) NOT NULL,
  5039. PRIMARY KEY (`id`)
  5040. );
  5041. INSERT INTO `sys_pages_content_placeholders` (`id`, `module`, `title`, `template`, `order`) VALUES
  5042. (1, 'system', '_sys_page_content_ph_loading_indicator', 'block_async_loading_indicator.html', 1),
  5043. (2, 'system', '_sys_page_content_ph_text', 'block_async_text.html', 2),
  5044. (3, 'system', '_sys_page_content_ph_image', 'block_async_image.html', 3),
  5045. (4, 'system', '_sys_page_content_ph_create_post', 'block_async_create_post.html', 4),
  5046. (100, 'system', '_sys_page_content_ph_profile_units', 'block_async_profile_units.html', 100),
  5047. (110, 'system', '_sys_page_content_ph_text_units_list', 'block_async_text_units_list.html', 110),
  5048. (120, 'system', '_sys_page_content_ph_text_units_gallery', 'block_async_text_units_gallery.html', 120);
  5049. CREATE TABLE IF NOT EXISTS `sys_pages_blocks` (
  5050. `id` int(11) NOT NULL AUTO_INCREMENT,
  5051. `object` varchar(64) NOT NULL,
  5052. `cell_id` int(11) NOT NULL DEFAULT '1',
  5053. `module` varchar(32) NOT NULL,
  5054. `title_system` varchar(255) NOT NULL,
  5055. `title` varchar(255) NOT NULL,
  5056. `designbox_id` int(11) NOT NULL DEFAULT '11',
  5057. `class` varchar(128) NOT NULL DEFAULT '',
  5058. `submenu` varchar(64) NOT NULL DEFAULT '',
  5059. `tabs` tinyint(4) NOT NULL DEFAULT '0',
  5060. `async` int(11) NOT NULL DEFAULT '0',
  5061. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  5062. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  5063. `type` enum('raw','html','lang','image','rss','menu','custom','service','wiki') NOT NULL DEFAULT 'raw',
  5064. `content` text NOT NULL,
  5065. `content_empty` varchar(255) NOT NULL DEFAULT '',
  5066. `text` mediumtext NOT NULL,
  5067. `text_updated` int(11) NOT NULL,
  5068. `help` varchar(255) NOT NULL,
  5069. `cache_lifetime` int(11) NOT NULL DEFAULT '0',
  5070. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  5071. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  5072. `active` tinyint(4) NOT NULL DEFAULT '1',
  5073. `active_api` tinyint(4) NOT NULL DEFAULT '0',
  5074. `order` int(11) NOT NULL,
  5075. PRIMARY KEY (`id`),
  5076. KEY `object` (`object`),
  5077. FULLTEXT KEY `text` (`text`)
  5078. );
  5079. -- skeleton blocks
  5080. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  5081. ('', 0, 'skeletons', '_sys_block_type_raw', 11, 2147483647, 'raw', '', 0, 1, 1, 0),
  5082. ('', 0, 'skeletons', '_sys_block_type_html', 11, 2147483647, 'html', '', 0, 1, 1, 0),
  5083. ('', 0, 'skeletons', '_sys_block_type_rss', 11, 2147483647, 'rss', '', 0, 1, 1, 0),
  5084. ('', 0, 'skeletons', '_sys_block_type_image', 11, 2147483647, 'image', '', 0, 1, 1, 0),
  5085. ('', 0, 'skeletons', '_sys_block_type_lang', 11, 2147483647, 'lang', '', 0, 1, 1, 0),
  5086. ('', 0, 'skeletons', '_sys_block_type_menu', 11, 2147483647, 'menu', '', 0, 1, 1, 0),
  5087. ('', 0, 'skeletons', '_sys_block_type_wiki', 11, 2147483647, 'wiki', '', 0, 1, 1, 0),
  5088. ('', 0, 'skeletons', '_sys_block_type_custom', 11, 2147483647, 'custom', '', 0, 1, 1, 0),
  5089. ('', 0, 'skeletons', '_sys_block_type_service', 11, 2147483647, 'service', '', 0, 0, 1, 0);
  5090. -- service blocks
  5091. SET @iBlockOrder = IFNULL((SELECT `order` FROM `sys_pages_blocks` WHERE `object` = '' AND `cell_id` = 0 ORDER BY `order` DESC LIMIT 1), 0);
  5092. 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
  5093. ('', 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),
  5094. ('', 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),
  5095. ('', 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),
  5096. ('', 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),
  5097. ('', 0, 'system', '_sys_page_block_title_sys_author', '_sys_page_block_title_author', 3, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"get_block_author";s:6:"params";a:2:{i:0;s:8:"{module}";i:1;s:4:"{id}";}s:5:"class";s:13:"TemplServices";}', 0, 1, 1, @iBlockOrder + 5),
  5098. ('', 0, 'system', '_sys_page_block_title_sys_recom_friends', '_sys_page_block_title_recom_friends', 11, 1, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:30:"browse_recommendations_friends";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, @iBlockOrder + 6),
  5099. ('', 0, 'system', '_sys_page_block_title_sys_recom_subscriptions', '_sys_page_block_title_recom_subscriptions', 11, 1, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:36:"browse_recommendations_subscriptions";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, @iBlockOrder + 6);
  5100. -- content blocks
  5101. 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
  5102. ('sys_home', 0, 'system', '', '_sys_page_block_title_profile_avatar', 13, 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, 1, 1, 1),
  5103. ('sys_home', 0, 'system', '', '_sys_page_block_title_profile_menu', 13, 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, 1, 1, 2),
  5104. ('sys_home', 0, 'system', '', '_sys_page_block_title_profile_followings', 13, 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, 1, 1, 3),
  5105. ('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),
  5106. ('sys_home', 1, 'system', '', '_sys_page_block_title_homepage_menu', 13, 0, 0, 2147483647, 'menu', 'sys_homepage', 0, 1, 1, 0),
  5107. ('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),
  5108. ('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),
  5109. ('sys_about', 1, 'system', '', '_sys_page_block_title_about', 11, 0, 0, 2147483647, 'lang', '_sys_page_lang_block_about', 0, 1, 1, 1),
  5110. ('sys_terms', 1, 'system', '', '_sys_page_block_title_terms', 11, 0, 0, 2147483647, 'lang', '_sys_page_lang_block_terms', 0, 1, 1, 1),
  5111. ('sys_privacy', 1, 'system', '', '_sys_page_block_title_privacy', 11, 0, 0, 2147483647, 'lang', '_sys_page_lang_block_privacy', 0, 1, 1, 1),
  5112. ('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),
  5113. ('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),
  5114. ('sys_dashboard', 1, 'system', '', '_sys_page_block_title_manage_tools', 11, 0, 0, 192, 'menu', 'sys_account_dashboard_manage_tools', 0, 1, 1, 3),
  5115. ('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),
  5116. ('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),
  5117. ('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),
  5118. ('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),
  5119. ('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),
  5120. ('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),
  5121. ('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),
  5122. ('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),
  5123. ('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),
  5124. ('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),
  5125. ('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),
  5126. ('sys_logout', 1, 'system', '', '_sys_page_block_title_logout', 11, 0, 0, 2147483647, 'service', 'a:3:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:6:\"logout\";s:5:\"class\";s:17:\"TemplServiceLogin\";}', 0, 1, 1, 1),
  5127. ('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),
  5128. ('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),
  5129. ('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),
  5130. ('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),
  5131. ('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),
  5132. ('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),
  5133. ('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),
  5134. ('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),
  5135. ('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:28:"account_profile_switcher_all";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 2),
  5136. ('sys_profile_settings_cfilter', 1, 'system', '', '_sys_page_block_title_profile_settings_cfilter', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:24:"profile_settings_cfilter";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 2),
  5137. ('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),
  5138. ('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),
  5139. ('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),
  5140. ('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),
  5141. ('sys_redirect', 1, 'system', '', '_sys_page_block_title_redirect', 11, 0, 0, 2147483647, 'service', 'a:3:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:8:\"redirect\";s:5:\"class\";s:13:\"TemplServices\";}', 0, 1, 1, 1),
  5142. ('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),
  5143. ('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),
  5144. ('sys_sub_wiki_pages_list', 1, 'system', '', '_sys_page_block_title_wiki_pages_list', 0, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:10:"pages_list";s:6:"params";a:0:{}s:5:"class";s:16:"TemplServiceWiki";}', 0, 1, 1, 1),
  5145. ('sys_sub_wiki_page_contents', 1, 'system', '', '_sys_page_block_title_wiki_page_contents', 0, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:13:"page_contents";s:6:"params";a:0:{}s:5:"class";s:16:"TemplServiceWiki";}', 0, 1, 1, 1),
  5146. ('sys_con_friends', 1, 'system', '', '_sys_page_block_title_con_friends', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:14:"browse_friends";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 0, 1, 1),
  5147. ('sys_con_friend_requests', 1, 'system', '', '_sys_page_block_title_con_friend_requests', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:22:"browse_friend_requests";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 0, 1, 1),
  5148. ('sys_con_friend_requested', 1, 'system', '', '_sys_page_block_title_con_friend_requested', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:23:"browse_friend_requested";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 0, 1, 1),
  5149. ('sys_con_following', 1, 'system', '', '_sys_page_block_title_con_following', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"browse_subscriptions";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 0, 1, 1),
  5150. ('sys_con_followers', 1, 'system', '', '_sys_page_block_title_con_followers', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"browse_subscribed_me";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 0, 1, 1),
  5151. ('sys_recom_friends', 1, 'system', '', '_sys_page_block_title_recom_friends', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:30:"browse_recommendations_friends";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 0, 1, 1),
  5152. ('sys_recom_subscriptions', 1, 'system', '', '_sys_page_block_title_recom_subscriptions', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:36:"browse_recommendations_subscriptions";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 0, 1, 1),
  5153. -- studio dashboard blocks
  5154. ('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),
  5155. ('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),
  5156. ('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),
  5157. ('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),
  5158. ('sys_std_dashboard', 2, 'system', '', '_sys_page_block_title_std_dash_queues', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"get_block_queues";s:6:"params";a:0:{}s:5:"class";s:20:"TemplStudioDashboard";}', 0, 0, 1, 3);
  5159. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `tabs`, `async`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `active_api`, `order`) VALUES
  5160. ('sys_cmts_view', 1, 'system', '_sys_page_block_title_system_cmts_view_author', '_cmt_page_view_title_author', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"get_block_author";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, 0, 1, 1),
  5161. ('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, 2);
  5162. -- --------------------------------------------------------
  5163. CREATE TABLE `sys_labels` (
  5164. `id` int(11) NOT NULL AUTO_INCREMENT,
  5165. `module` varchar(32) NOT NULL,
  5166. `parent` int(11) NOT NULL DEFAULT 0,
  5167. `level` int(11) NOT NULL DEFAULT 0,
  5168. `order` int(11) NOT NULL DEFAULT 0,
  5169. `value` varchar(128) NOT NULL,
  5170. PRIMARY KEY (id),
  5171. UNIQUE KEY `value` (`value`)
  5172. );
  5173. -- --------------------------------------------------------
  5174. CREATE TABLE `sys_objects_metatags` (
  5175. `id` int(11) NOT NULL AUTO_INCREMENT,
  5176. `object` varchar(64) NOT NULL,
  5177. `module` varchar(32) NOT NULL,
  5178. `table_keywords` varchar(255) NOT NULL,
  5179. `table_locations` varchar(255) NOT NULL,
  5180. `table_mentions` varchar(255) NOT NULL,
  5181. `override_class_name` varchar(255) NOT NULL,
  5182. `override_class_file` varchar(255) NOT NULL,
  5183. PRIMARY KEY (`id`),
  5184. UNIQUE KEY `object` (`object`)
  5185. );
  5186. INSERT INTO `sys_objects_metatags` (`object`, `table_keywords`, `table_locations`, `table_mentions`, `override_class_name`, `override_class_file`) VALUES
  5187. ('sys_cmts', 'sys_cmts_meta_keywords', '', 'sys_cmts_meta_mentions', '', '');
  5188. -- --------------------------------------------------------
  5189. CREATE TABLE `sys_objects_category` (
  5190. `id` int(11) NOT NULL AUTO_INCREMENT,
  5191. `object` varchar(64) NOT NULL,
  5192. `module` varchar(32) NOT NULL,
  5193. `search_object` varchar(64) NOT NULL,
  5194. `form_object` varchar(64) NOT NULL,
  5195. `list_name` varchar(255) NOT NULL,
  5196. `table` varchar(255) NOT NULL,
  5197. `field` varchar(255) NOT NULL,
  5198. `join` varchar(255) NOT NULL,
  5199. `where` varchar(255) NOT NULL,
  5200. `override_class_name` varchar(255) NOT NULL,
  5201. `override_class_file` varchar(255) NOT NULL,
  5202. PRIMARY KEY (`id`),
  5203. UNIQUE KEY `object` (`object`),
  5204. UNIQUE KEY `form_object` (`form_object`(64),`list_name`(127))
  5205. );
  5206. -- --------------------------------------------------------
  5207. CREATE TABLE IF NOT EXISTS `sys_categories` (
  5208. `id` int(11) NOT NULL AUTO_INCREMENT,
  5209. `author` int(11) NOT NULL,
  5210. `added` int(11) NOT NULL,
  5211. `module` varchar(32) NOT NULL,
  5212. `value` varchar(100) NOT NULL,
  5213. `status` enum ('active', 'hidden') NOT NULL DEFAULT 'active',
  5214. PRIMARY KEY (`id`)
  5215. );
  5216. CREATE TABLE IF NOT EXISTS `sys_categories2objects` (
  5217. `id` int(11) NOT NULL AUTO_INCREMENT,
  5218. `module` varchar(32) NOT NULL,
  5219. `object_id` int(11) NOT NULL,
  5220. `category_id` int(11) NOT NULL,
  5221. PRIMARY KEY (`id`)
  5222. );
  5223. -- --------------------------------------------------------
  5224. --
  5225. -- Table structure for table `sys_objects_live_updates`
  5226. --
  5227. CREATE TABLE `sys_objects_live_updates` (
  5228. `id` int(11) unsigned NOT NULL auto_increment,
  5229. `name` varchar(50) NOT NULL default '',
  5230. `init` tinyint(4) NOT NULL DEFAULT '0',
  5231. `frequency` tinyint(4) NOT NULL DEFAULT '1',
  5232. `service_call` text NOT NULL default '',
  5233. `active` tinyint(4) NOT NULL DEFAULT '1',
  5234. PRIMARY KEY (`id`),
  5235. UNIQUE KEY `name` (`name`)
  5236. );
  5237. INSERT INTO `sys_objects_live_updates`(`name`, `init`, `frequency`, `service_call`, `active`) VALUES
  5238. ('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),
  5239. ('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),
  5240. ('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);
  5241. -- --------------------------------------------------------
  5242. --
  5243. -- Table structure for table `sys_objects_payments`
  5244. --
  5245. CREATE TABLE IF NOT EXISTS `sys_objects_payments` (
  5246. `id` int(11) NOT NULL AUTO_INCREMENT,
  5247. `object` varchar(32) NOT NULL,
  5248. `title` varchar(255) NOT NULL,
  5249. `uri` varchar(32) NOT NULL default '',
  5250. PRIMARY KEY (`id`),
  5251. UNIQUE KEY `object` (`object`),
  5252. UNIQUE KEY `uri` (`uri`)
  5253. );
  5254. -- --------------------------------------------------------
  5255. --
  5256. -- Logs Objects
  5257. --
  5258. CREATE TABLE `sys_objects_logs` (
  5259. `id` int(11) NOT NULL AUTO_INCREMENT,
  5260. `object` varchar(64) NOT NULL,
  5261. `module` varchar(32) NOT NULL,
  5262. `logs_storage` varchar(32) NOT NULL,
  5263. `title` varchar(255) NOT NULL,
  5264. `active` tinyint(4) NOT NULL DEFAULT '1',
  5265. `class_name` varchar(255) NOT NULL,
  5266. `class_file` varchar(255) NOT NULL,
  5267. PRIMARY KEY (`id`)
  5268. );
  5269. INSERT INTO `sys_objects_logs` (`object`, `module`, `logs_storage`, `title`, `active`, `class_name`, `class_file`) VALUES
  5270. ('sys_debug', 'system', 'Auto', '_sys_log_debug', 1, '', ''),
  5271. ('sys_twilio', 'system', 'Auto', '_sys_log_twilio', 1, '', ''),
  5272. ('sys_push', 'system', 'Auto', '_sys_log_push', 1, '', ''),
  5273. ('sys_payments', 'system', 'Auto', '_sys_log_payments', 1, '', ''),
  5274. ('sys_cron_jobs', 'system', 'Auto', '_sys_log_cron_jobs', 0, '', ''),
  5275. ('sys_transcoder', 'system', 'Auto', '_sys_log_transcoder', 1, '', '');
  5276. -- --------------------------------------------------------
  5277. --
  5278. -- Location Field Objects
  5279. --
  5280. CREATE TABLE `sys_objects_location_field` (
  5281. `id` int(11) NOT NULL AUTO_INCREMENT,
  5282. `object` varchar(64) NOT NULL,
  5283. `module` varchar(32) NOT NULL,
  5284. `title` varchar(255) NOT NULL,
  5285. `class_name` varchar(255) NOT NULL,
  5286. `class_file` varchar(255) NOT NULL,
  5287. PRIMARY KEY (`id`)
  5288. );
  5289. INSERT INTO `sys_objects_location_field` (`object`, `module`, `title`, `class_name`, `class_file`) VALUES
  5290. ('sys_google', 'system', '_sys_location_field_google', 'BxDolLocationFieldGoogle', ''),
  5291. ('sys_plain', 'system', '_sys_location_field_plain', 'BxDolLocationFieldNominatim', '');
  5292. -- --------------------------------------------------------
  5293. --
  5294. -- Location Map Objects
  5295. --
  5296. CREATE TABLE `sys_objects_location_map` (
  5297. `id` int(11) NOT NULL AUTO_INCREMENT,
  5298. `object` varchar(64) NOT NULL,
  5299. `module` varchar(32) NOT NULL,
  5300. `title` varchar(255) NOT NULL,
  5301. `class_name` varchar(255) NOT NULL,
  5302. `class_file` varchar(255) NOT NULL,
  5303. PRIMARY KEY (`id`)
  5304. );
  5305. INSERT INTO `sys_objects_location_map` (`object`, `module`, `title`, `class_name`, `class_file`) VALUES
  5306. ('sys_google_static', 'system', '_sys_location_map_google_static', 'BxDolLocationMapGoogleStatic', ''),
  5307. ('sys_leaflet', 'system', '_sys_location_map_leaflet', 'BxDolLocationMapLeaflet', '');
  5308. -- --------------------------------------------------------
  5309. --
  5310. -- WIKI Objects
  5311. --
  5312. CREATE TABLE IF NOT EXISTS `sys_objects_wiki` (
  5313. `id` int(11) NOT NULL AUTO_INCREMENT,
  5314. `object` varchar(64) NOT NULL,
  5315. `uri` varchar(32) NOT NULL,
  5316. `title` varchar(255) NOT NULL,
  5317. `module` varchar(32) NOT NULL,
  5318. `override_class_name` varchar(255) NOT NULL,
  5319. `override_class_file` varchar(255) NOT NULL,
  5320. PRIMARY KEY (`id`),
  5321. UNIQUE KEY `object` (`object`),
  5322. UNIQUE KEY `uri` (`uri`)
  5323. );
  5324. INSERT INTO `sys_objects_wiki` (`object`, `uri`, `title`, `module`, `override_class_name`, `override_class_file`) VALUES
  5325. ('system', 'sys', '_sys_wiki_system_title', 'system', '', '');
  5326. CREATE TABLE IF NOT EXISTS `sys_pages_wiki_blocks` (
  5327. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  5328. `block_id` int(11) NOT NULL,
  5329. `revision` int(11) NOT NULL,
  5330. `language` varchar(5) NOT NULL,
  5331. `main_lang` tinyint(4) NOT NULL DEFAULT '0',
  5332. `profile_id` int(10) UNSIGNED NOT NULL,
  5333. `content` mediumtext NOT NULL,
  5334. `unsafe` tinyint(4) NOT NULL DEFAULT '0',
  5335. `notes` varchar(255) NOT NULL,
  5336. `added` int(11) NOT NULL,
  5337. PRIMARY KEY (`id`),
  5338. UNIQUE KEY `block_lang_rev` (`block_id`,`language`,`revision`)
  5339. );
  5340. -- --------------------------------------------------------
  5341. --
  5342. -- Rewrite Rules
  5343. --
  5344. CREATE TABLE IF NOT EXISTS `sys_rewrite_rules` (
  5345. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  5346. `preg` varchar(255) NOT NULL,
  5347. `service` varchar(255) NOT NULL,
  5348. `active` tinyint(4) NOT NULL DEFAULT '1',
  5349. PRIMARY KEY (`id`)
  5350. );
  5351. INSERT INTO `sys_rewrite_rules` (`preg`, `service`, `active`) VALUES
  5352. ('^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');
  5353. -- --------------------------------------------------------
  5354. --
  5355. -- SEO Links
  5356. --
  5357. CREATE TABLE `sys_seo_links` (
  5358. `id` int(11) NOT NULL AUTO_INCREMENT,
  5359. `module` varchar(32) NOT NULL,
  5360. `page_uri` varchar(255) NOT NULL,
  5361. `param_name` varchar(32) NOT NULL,
  5362. `param_value` varchar(32) NOT NULL,
  5363. `uri` varchar(50) NOT NULL,
  5364. `added` int(48) NOT NULL,
  5365. PRIMARY KEY (`id`),
  5366. UNIQUE KEY `module_page_param` (`module`,`page_uri`(109),`param_value`),
  5367. UNIQUE KEY `module_page_uri` (`module`,`page_uri`(109),`uri`),
  5368. KEY `param_name_value` (`param_name`,`param_value`)
  5369. );
  5370. CREATE TABLE `sys_seo_uri_rewrites` (
  5371. `id` int(11) NOT NULL AUTO_INCREMENT,
  5372. `uri_orig` varchar(255) NOT NULL,
  5373. `uri_rewrite` varchar(255) NOT NULL,
  5374. PRIMARY KEY (`id`),
  5375. UNIQUE KEY `uri_orig` (`uri_orig`(191)),
  5376. UNIQUE KEY `uri_rewrite` (`uri_rewrite`(191))
  5377. );
  5378. -- --------------------------------------------------------
  5379. CREATE TABLE `sys_api_keys` (
  5380. `id` int(11) NOT NULL AUTO_INCREMENT,
  5381. `title` varchar(255) NOT NULL,
  5382. `key` varchar(48) NOT NULL,
  5383. `order` int(11) NOT NULL,
  5384. PRIMARY KEY (`id`)
  5385. );
  5386. CREATE TABLE `sys_api_origins` (
  5387. `id` int(11) NOT NULL AUTO_INCREMENT,
  5388. `url` varchar(255) NOT NULL,
  5389. `order` int(11) NOT NULL,
  5390. PRIMARY KEY (`id`)
  5391. );
  5392. -- --------------------------------------------------------
  5393. --
  5394. -- Table structure for table `sys_preloader`
  5395. --
  5396. CREATE TABLE IF NOT EXISTS `sys_preloader` (
  5397. `id` int(11) NOT NULL AUTO_INCREMENT,
  5398. `module` varchar(32) NOT NULL,
  5399. `type` varchar(16) NOT NULL,
  5400. `content` varchar(255) NOT NULL,
  5401. `active` tinyint(4) NOT NULL DEFAULT '1',
  5402. `order` int(11) unsigned NOT NULL default '0',
  5403. PRIMARY KEY (`id`)
  5404. );
  5405. INSERT INTO `sys_preloader`(`module`, `type`, `content`, `active`, `order`) VALUES
  5406. ('system', 'css_system', '{dir_plugins_public}marka/|marka.min.css', 1, 1),
  5407. ('system', 'css_system', '{dir_plugins_public}at.js/css/|jquery.atwho.min.css', 1, 2),
  5408. ('system', 'css_system', '{dir_plugins_public}prism/|prism.css', 1, 3),
  5409. ('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:12:"BaseServices";}', 1, 4),
  5410. ('system', 'css_system', 'common.css', 1, 10),
  5411. ('system', 'css_system', 'default.less', 1, 11),
  5412. ('system', 'css_system', 'general.css', 1, 12),
  5413. ('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:5:"icons";}s:5:"class";s:12:"BaseServices";}', 1, 13),
  5414. ('system', 'css_system', 'colors.css', 1, 14),
  5415. ('system', 'css_system', 'forms.css', 1, 15),
  5416. ('system', 'css_system', 'media-desktop.css', 1, 20),
  5417. ('system', 'css_system', 'media-tablet.css', 1, 21),
  5418. ('system', 'css_system', 'media-phone.css', 1, 22),
  5419. ('system', 'css_system', 'media-print.css', 1, 23),
  5420. ('system', 'css_system', 'cmts.css', 1, 30),
  5421. ('system', 'css_system', 'favorite.css', 1, 31),
  5422. ('system', 'css_system', 'feature.css', 1, 32),
  5423. ('system', 'css_system', 'report.css', 1, 33),
  5424. ('system', 'css_system', 'score.css', 1, 34),
  5425. ('system', 'css_system', 'view.css', 1, 35),
  5426. ('system', 'css_system', 'vote.css', 1, 36),
  5427. ('system', 'css_system', '{dir_plugins_public}spin.js/|spin.css', 1, 37),
  5428. ('system', 'js_system', 'pusher/pusher.min.js', 1, 0),
  5429. ('system', 'js_system', 'jquery/jquery.min.js', 1, 1),
  5430. ('system', 'js_system', 'jquery/jquery-migrate.min.js', 1, 2),
  5431. ('system', 'js_system', 'jquery-ui/jquery-ui.min.js', 1, 3),
  5432. ('system', 'js_system', 'jquery.easing.js', 1, 4),
  5433. ('system', 'js_system', 'jquery.cookie.min.js', 1, 5),
  5434. ('system', 'js_system', 'jquery.form.min.js', 1, 6),
  5435. ('system', 'js_system', 'spin.js/spin.js', 1, 7),
  5436. ('system', 'js_system', 'moment-with-locales.js', 1, 8),
  5437. ('system', 'js_system', 'marka/marka.min.js', 1, 9),
  5438. ('system', 'js_system', 'headroom.min.js', 1, 10),
  5439. ('system', 'js_system', 'at.js/js/jquery.atwho.min.js', 1, 11),
  5440. ('system', 'js_system', 'prism/prism.js', 1, 12),
  5441. ('system', 'js_system', 'htmx/htmx.min.js', 1, 13),
  5442. ('system', 'js_system', 'htmx/head-support.js', 1, 14),
  5443. ('system', 'js_system', 'functions.js', 1, 20),
  5444. ('system', 'js_system', 'jquery.webForms.js', 1, 21),
  5445. ('system', 'js_system', 'jquery.dolPopup.js', 1, 22),
  5446. ('system', 'js_system', 'jquery.dolConverLinks.js', 1, 23),
  5447. ('system', 'js_system', 'jquery.anim.js', 1, 24),
  5448. ('system', 'js_system', 'jquery.ba-resize.min.js', 1, 25),
  5449. ('system', 'js_system', 'BxDolCmts.js', 1, 30),
  5450. ('system', 'js_system', 'BxDolFavorite.js', 1, 31),
  5451. ('system', 'js_system', 'BxDolFeature.js', 1, 32),
  5452. ('system', 'js_system', 'BxDolReport.js', 1, 33),
  5453. ('system', 'js_system', 'BxDolScore.js', 1, 34),
  5454. ('system', 'js_system', 'BxDolView.js', 1, 35),
  5455. ('system', 'js_system', 'BxDolVote.js', 1, 36),
  5456. ('system', 'js_system', 'BxDolVoteLikes.js', 1, 37),
  5457. ('system', 'js_system', 'BxDolVoteReactions.js', 1, 38),
  5458. ('system', 'js_system', 'BxDolVoteStars.js', 1, 39),
  5459. ('system', 'js_system', 'BxDolCmtsReviews.js', 1, 40),
  5460. ('system', 'js_system', 'BxDolMenuMoreAuto.js', 1, 41),
  5461. ('system', 'js_system', 'BxDolForm.js', 1, 42),
  5462. ('system', 'js_system', 'BxDolNestedForm.js', 1, 43),
  5463. ('system', 'js_system', 'BxDolConnection.js', 1, 44),
  5464. ('system', 'js_system', 'BxDolSockets.js', 1, 45),
  5465. ('system', 'js_translation', '_Are_you_sure', 1, 1),
  5466. ('system', 'js_translation', '_error occured', 1, 2),
  5467. ('system', 'js_translation', '_sys_loading', 1, 3),
  5468. ('system', 'js_translation', '_copyright', 1, 4),
  5469. ('system', 'js_translation', '_sys_redirect_confirmation', 1, 5),
  5470. ('system', 'js_translation', '_sys_form_input_password_show', 1, 6),
  5471. ('system', 'js_translation', '_sys_form_input_password_hide', 1, 7);
  5472. -- --------------------------------------------------------
  5473. --
  5474. -- Table structure for table `sys_std_roles`
  5475. --
  5476. CREATE TABLE `sys_std_roles` (
  5477. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  5478. `name` varchar(64) NOT NULL default '',
  5479. `title` varchar(255) NOT NULL,
  5480. `description` varchar(255) NOT NULL default '',
  5481. `active` tinyint(4) NOT NULL DEFAULT '1',
  5482. `order` int(11) NOT NULL default '0',
  5483. PRIMARY KEY (`id`),
  5484. UNIQUE KEY `name` (`name`),
  5485. FULLTEXT KEY `searchable` (`title`, `description`)
  5486. );
  5487. INSERT INTO `sys_std_roles` (`id`, `name`, `title`, `description`, `active`, `order`) VALUES
  5488. (1, 'master', '_adm_rl_txt_role_master', '_adm_rl_txt_role_master_dsc', 1, 1),
  5489. (2, 'operator', '_adm_rl_txt_role_operator', '_adm_rl_txt_role_operator_dsc', 1, 2);
  5490. -- --------------------------------------------------------
  5491. --
  5492. -- Table structure for table `sys_std_roles_actions`
  5493. --
  5494. CREATE TABLE `sys_std_roles_actions` (
  5495. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  5496. `name` varchar(64) NOT NULL default '',
  5497. `title` varchar(255) NOT NULL,
  5498. `description` varchar(255) NOT NULL,
  5499. PRIMARY KEY (`id`),
  5500. FULLTEXT KEY `searchable` (`title`, `description`)
  5501. );
  5502. -- --------------------------------------------------------
  5503. --
  5504. -- Table structure for table `sys_std_roles_actions2roles`
  5505. --
  5506. CREATE TABLE `sys_std_roles_actions2roles` (
  5507. `role_id` int(11) unsigned NOT NULL default '0',
  5508. `action_id` int(11) unsigned NOT NULL default '0',
  5509. PRIMARY KEY (`role_id`, `action_id`)
  5510. );
  5511. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5512. ('manage roles', '_adm_rl_txt_action_manage_roles', '_adm_rl_txt_action_manage_roles_dsc');
  5513. SET @iIdActionManageRoles = LAST_INSERT_ID();
  5514. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5515. ('manage apps', '_adm_rl_txt_action_manage_apps', '_adm_rl_txt_action_manage_apps_dsc');
  5516. SET @iIdActionManageApps = LAST_INSERT_ID();
  5517. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5518. ('use appearance', '_adm_rl_txt_action_use_appearance', '_adm_rl_txt_action_use_appearance_dsc');
  5519. SET @iIdActionUseAppearance = LAST_INSERT_ID();
  5520. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5521. ('use structure', '_adm_rl_txt_action_use_structure', '_adm_rl_txt_action_use_structure_dsc');
  5522. SET @iIdActionUseStructure = LAST_INSERT_ID();
  5523. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5524. ('use content', '_adm_rl_txt_action_use_content', '_adm_rl_txt_action_use_content_dsc');
  5525. SET @iIdActionUseContent = LAST_INSERT_ID();
  5526. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5527. ('use users', '_adm_rl_txt_action_use_users', '_adm_rl_txt_action_use_users_dsc');
  5528. SET @iIdActionUseUsers = LAST_INSERT_ID();
  5529. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5530. ('use configuration', '_adm_rl_txt_action_use_configuration', '_adm_rl_txt_action_use_configuration_dsc');
  5531. SET @iIdActionUseConfiguration = LAST_INSERT_ID();
  5532. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5533. ('use extensions', '_adm_rl_txt_action_use_extensions', '_adm_rl_txt_action_use_extensions_dsc');
  5534. SET @iIdActionUseExtensions = LAST_INSERT_ID();
  5535. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5536. ('use integrations', '_adm_rl_txt_action_use_integrations', '_adm_rl_txt_action_use_integrations_dsc');
  5537. SET @iIdActionUseIntegrations = LAST_INSERT_ID();
  5538. SET @iMaster = 1;
  5539. SET @iOperator = 2;
  5540. INSERT INTO `sys_std_roles_actions2roles` (`role_id`, `action_id`) VALUES
  5541. -- manage roles
  5542. (@iMaster, @iIdActionManageRoles),
  5543. (@iMaster, @iIdActionManageApps),
  5544. -- use appearance
  5545. (@iMaster, @iIdActionUseAppearance),
  5546. (@iOperator, @iIdActionUseAppearance),
  5547. -- use structure
  5548. (@iMaster, @iIdActionUseStructure),
  5549. (@iOperator, @iIdActionUseStructure),
  5550. -- use content
  5551. (@iMaster, @iIdActionUseContent),
  5552. (@iOperator, @iIdActionUseContent),
  5553. -- use users
  5554. (@iMaster, @iIdActionUseUsers),
  5555. (@iOperator, @iIdActionUseUsers),
  5556. -- use configuration
  5557. (@iMaster, @iIdActionUseConfiguration),
  5558. (@iOperator, @iIdActionUseConfiguration),
  5559. -- use extensions
  5560. (@iMaster, @iIdActionUseExtensions),
  5561. (@iOperator, @iIdActionUseExtensions),
  5562. -- use integrations
  5563. (@iMaster, @iIdActionUseIntegrations),
  5564. (@iOperator, @iIdActionUseIntegrations);
  5565. -- --------------------------------------------------------
  5566. --
  5567. -- Table structure for table `sys_std_roles_members`
  5568. --
  5569. CREATE TABLE `sys_std_roles_members` (
  5570. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  5571. `account_id` int(11) unsigned NOT NULL default '0',
  5572. `role` int(11) unsigned NOT NULL DEFAULT '0',
  5573. PRIMARY KEY (`id`),
  5574. UNIQUE KEY `account` (`account_id`)
  5575. );
  5576. -- --------------------------------------------------------
  5577. --
  5578. -- Table structure for table `sys_std_pages`
  5579. --
  5580. CREATE TABLE `sys_std_pages` (
  5581. `id` int(11) unsigned NOT NULL auto_increment,
  5582. `index` int(11) unsigned NOT NULL default '0',
  5583. `name` varchar(64) NOT NULL default '',
  5584. `header` varchar(255) NOT NULL default '',
  5585. `caption` varchar(255) NOT NULL default '',
  5586. `icon` varchar(255) NOT NULL default '',
  5587. PRIMARY KEY (`id`),
  5588. UNIQUE KEY `name` (`name`)
  5589. );
  5590. -- --------------------------------------------------------
  5591. --
  5592. -- Table structure for table `sys_std_widgets`
  5593. --
  5594. CREATE TABLE `sys_std_widgets` (
  5595. `id` int(11) unsigned NOT NULL auto_increment,
  5596. `page_id` varchar(255) NOT NULL default '',
  5597. `module` varchar(32) NOT NULL default '',
  5598. `type` varchar(32) NOT NULL default '',
  5599. `url` varchar(255) NOT NULL default '',
  5600. `click` text NOT NULL default '',
  5601. `icon` varchar(255) NOT NULL default '',
  5602. `caption` varchar(255) NOT NULL default '',
  5603. `cnt_notices` text NOT NULL default '',
  5604. `cnt_actions` text NOT NULL default '',
  5605. `featured` tinyint(4) unsigned NOT NULL default '0',
  5606. PRIMARY KEY (`ID`),
  5607. UNIQUE KEY `widget-page` (`id`, `page_id`(187))
  5608. );
  5609. --
  5610. -- Table structure for table `sys_std_widgets_bookmarks`
  5611. --
  5612. CREATE TABLE `sys_std_widgets_bookmarks` (
  5613. `id` int(11) NOT NULL AUTO_INCREMENT,
  5614. `widget_id` int(11) unsigned NOT NULL default '0',
  5615. `profile_id` int(11) unsigned NOT NULL default '0',
  5616. `bookmark` tinyint(4) unsigned NOT NULL default '0',
  5617. PRIMARY KEY (`id`),
  5618. UNIQUE KEY `bookmark` (`widget_id`, `profile_id`)
  5619. );
  5620. -- --------------------------------------------------------
  5621. --
  5622. -- Table structure for table `sys_std_pages_widgets`
  5623. --
  5624. CREATE TABLE `sys_std_pages_widgets` (
  5625. `id` int(11) unsigned NOT NULL auto_increment,
  5626. `page_id` int(11) unsigned NOT NULL default '0',
  5627. `widget_id` int(11) unsigned NOT NULL default '0',
  5628. `order` int(11) unsigned NOT NULL default '0',
  5629. PRIMARY KEY (`id`),
  5630. UNIQUE KEY `wid_pag` (`widget_id`, `page_id`)
  5631. );
  5632. --
  5633. -- Dumping data for table `sys_std_pages`
  5634. --
  5635. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5636. (3, 'home', '_adm_page_cpt_home', '_adm_page_cpt_home', '');
  5637. SET @iIdHome = LAST_INSERT_ID();
  5638. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5639. (4, 'dashboard', '_adm_page_cpt_dashboard', '_adm_page_cpt_dashboard', 'wi-dashboard.svg');
  5640. SET @iIdDashboard = LAST_INSERT_ID();
  5641. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5642. (3, 'settings', '_adm_page_cpt_settings', '_adm_page_cpt_settings', 'wi-settings.svg');
  5643. SET @iIdSettings = LAST_INSERT_ID();
  5644. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5645. (3, 'store', '_adm_page_cpt_store', '_adm_page_cpt_store', 'wi-store.svg');
  5646. SET @iIdStore = LAST_INSERT_ID();
  5647. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5648. (3, 'designer', '_adm_page_cpt_designer', '_adm_page_cpt_designer', 'wi-designer.svg');
  5649. SET @iIdDesigner = LAST_INSERT_ID();
  5650. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5651. (3, 'polyglot', '_adm_page_cpt_polyglot', '_adm_page_cpt_polyglot', 'wi-polyglot.svg');
  5652. SET @iIdPolyglot = LAST_INSERT_ID();
  5653. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5654. (3, 'builder_pages', '_adm_page_cpt_builder_pages', '_adm_page_cpt_builder_pages', 'wi-bld-pages.svg');
  5655. SET @iIdBuilderPages = LAST_INSERT_ID();
  5656. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5657. (3, 'builder_menus', '_adm_page_cpt_builder_menus', '_adm_page_cpt_builder_menus', 'wi-bld-navigation.svg');
  5658. SET @iIdBuilderMenus = LAST_INSERT_ID();
  5659. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5660. (3, 'builder_forms', '_adm_page_cpt_builder_forms', '_adm_page_cpt_builder_forms', 'wi-bld-forms.svg');
  5661. SET @iIdBuilderForms = LAST_INSERT_ID();
  5662. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5663. (3, 'builder_permissions', '_adm_page_cpt_builder_permissions', '_adm_page_cpt_builder_permissions', 'wi-bld-permissions.svg');
  5664. SET @iIdBuilderPermissions = LAST_INSERT_ID();
  5665. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5666. (3, 'builder_roles', '_adm_page_cpt_builder_roles', '_adm_page_cpt_builder_roles', 'wi-bld-roles.svg');
  5667. SET @iIdBuilderRoles = LAST_INSERT_ID();
  5668. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5669. (3, 'storages', '_adm_page_cpt_storages', '_adm_page_cpt_storages', 'wi-storages.svg');
  5670. SET @iIdManagerStorages = LAST_INSERT_ID();
  5671. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5672. (3, 'audit', '_adm_page_cpt_audit', '_adm_page_cpt_audit', 'wi-audit.svg');
  5673. SET @iIdAudit = LAST_INSERT_ID();
  5674. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5675. (3, 'badges', '_adm_page_cpt_badges', '_adm_page_cpt_badges', 'wi-badges.svg');
  5676. SET @iIdBadges = LAST_INSERT_ID();
  5677. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5678. (3, 'api', '_adm_page_cpt_api', '_adm_page_cpt_api', 'wi-api.svg');
  5679. SET @iIdAPI = LAST_INSERT_ID();
  5680. --
  5681. -- Dumping data for table `sys_std_widgets` and `sys_std_pages_widgets`
  5682. -- Home Page
  5683. --
  5684. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5685. (@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";}');
  5686. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 3);
  5687. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5688. (@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";}');
  5689. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 2);
  5690. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`, `featured`) VALUES
  5691. (@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);
  5692. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  5693. --
  5694. -- Templates Page
  5695. --
  5696. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5697. (@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";}');
  5698. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 6);
  5699. --
  5700. -- Languages Page
  5701. --
  5702. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5703. (@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";}');
  5704. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 5);
  5705. --
  5706. -- Builders Page
  5707. --
  5708. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5709. (@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";}');
  5710. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 7);
  5711. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5712. (@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";}');
  5713. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 8);
  5714. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5715. (@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";}');
  5716. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 9);
  5717. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5718. (@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";}');
  5719. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 10);
  5720. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5721. (@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";}');
  5722. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 11);
  5723. --
  5724. -- Storages Page
  5725. --
  5726. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5727. (@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";}');
  5728. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 4);
  5729. --
  5730. -- Audit Page
  5731. --
  5732. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5733. (@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";}');
  5734. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 12);
  5735. --
  5736. -- Badges Page
  5737. --
  5738. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5739. (@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";}');
  5740. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 13);
  5741. --
  5742. -- API Page
  5743. --
  5744. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5745. (@iIdAPI, 'system', 'configuration', '{url_studio}api.php', '', 'wi-api.svg', '_adm_wgt_cpt_api', '', '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";}');
  5746. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 14);