system.sql 431 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581
  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_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_curl_timeout', '_adm_stg_cpt_option_sys_default_curl_timeout', '300', 'digit', '', '', '', '', 140),
  287. (@iCategoryId, 'sys_curl_ssl_allow_untrusted', '_adm_stg_cpt_option_sys_ssl_allow_untrusted', '', 'checkbox', '', '', '', '', 145),
  288. (@iCategoryId, 'sys_csp_frame_ancestors', '_adm_stg_cpt_option_sys_csp_frame_ancestors', '*', 'digit', '', '', '', '', 150),
  289. (@iCategoryId, 'sys_samesite_cookies', '_adm_stg_cpt_option_sys_samesite_cookies', 'Lax', 'select', 'None,Lax,Strict', '', '', '', 152),
  290. (@iCategoryId, 'sys_notify_to_approve_by_role', '_adm_stg_cpt_option_sys_notify_to_approve_by_role', '', 'checkbox', '', '', '', '', 160),
  291. (@iCategoryId, 'sys_fixed_header', '_adm_stg_cpt_option_sys_fixed_header', '', 'checkbox', '', '', '', '', 170),
  292. (@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),
  293. (@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),
  294. (@iCategoryId, 'sys_css_icons_default', '_adm_stg_cpt_option_sys_css_icons_default', 'icons.css', 'digit', '', '', '', '', 182),
  295. (@iCategoryId, 'sys_files_ext_images', '_adm_stg_cpt_option_sys_files_ext_images', 'jpg,jpeg,jpe,gif,png,webp', 'digit', '', '', '', '', 200),
  296. (@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),
  297. (@iCategoryId, 'sys_files_ext_audio', '_adm_stg_cpt_option_sys_files_ext_audio', 'mp3,m4a,m4b,wma,wav,3gp', 'digit', '', '', '', '', 220),
  298. (@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),
  299. (@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),
  300. (@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);
  301. --
  302. -- CATEGORY (HIDDEN): System
  303. --
  304. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'system', '_adm_stg_cpt_category_system', 1, 1);
  305. SET @iCategoryId = LAST_INSERT_ID();
  306. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  307. (@iCategoryId, 'site_email_html_template_header', '_adm_stg_cpt_option_site_email_html_template_header', '<html>\r\n <head></head>\r\n <body bgcolor="#eee" style="margin:0; padding:0;">\r\n <div style="padding:20px; background-color:#eee;">\r\n <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">\r\n <tr><td valign="top">\r\n <div style="color:#333; padding:20px; border:1px solid #ccc; border-radius:3px; background-color:#fff; font:14px Helvetica, Arial, sans-serif;">\r\n <div style="border-bottom:2px solid #eee; padding-bottom:10px; margin-bottom:20px; font-weight:bold; font-size:22px; color:#999;">{site_name}</div>', 'text', '', '', '', 1),
  308. (@iCategoryId, 'site_email_html_template_footer', '_adm_stg_cpt_option_site_email_html_template_footer', '\r\n </div>\r\n </td></tr>\r\n <tr><td valign="top">\r\n <div style="margin-top:5px; text-align:center; color:#999; font:11px Helvetica, Arial, sans-serif;">{about_us}&nbsp;&nbsp;&nbsp;{unsubscribe}</div>\r\n </td></tr>\r\n </table>\r\n </div>\r\n </body>\r\n</html>', 'text', '', '', '', 2),
  309. (@iCategoryId, 'sys_site_icon', '', '0', 'digit', '', '', '', 15),
  310. (@iCategoryId, 'sys_site_icon_svg', '', '0', 'digit', '', '', '', 16),
  311. (@iCategoryId, 'sys_site_icon_apple', '', '0', 'digit', '', '', '', 17),
  312. (@iCategoryId, 'sys_site_icon_android', '', '0', 'digit', '', '', '', 18),
  313. (@iCategoryId, 'sys_site_icon_android_splash', '', '0', 'digit', '', '', '', 19),
  314. (@iCategoryId, 'sys_site_logo', '', '0', 'digit', '', '', '', 20),
  315. (@iCategoryId, 'sys_site_logo_alt', '_adm_dsg_txt_alt_text', '0', 'text', '', '', '', 21),
  316. (@iCategoryId, 'sys_site_logo_aspect_ratio', '_adm_stg_cpt_option_sys_site_logo_aspect_ratio', '', 'digit', '', '', '', 22),
  317. -- (@iCategoryId, 'sys_site_logo_width', '_adm_stg_cpt_option_sys_site_logo_width', '240', 'digit', '', '', '', 23),
  318. -- (@iCategoryId, 'sys_site_logo_height', '_adm_stg_cpt_option_sys_site_logo_height', '48', 'digit', '', '', '', 24),
  319. (@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),
  320. (@iCategoryId, 'sys_site_splash_enabled', '', '', 'checkbox', '', '', '', 26),
  321. (@iCategoryId, 'sys_site_cover_common', '', '0', 'digit', '', '', '', 27),
  322. (@iCategoryId, 'sys_unit_cover_profile', '', '0', 'digit', '', '', '', 28),
  323. (@iCategoryId, 'sys_site_cover_disabled', '', '', 'checkbox', '', '', '', 29);
  324. --
  325. -- CATEGORY (HIDDEN): Languages
  326. --
  327. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'languages', '_adm_stg_cpt_category_languages', 1, 2);
  328. SET @iCategoryId = LAST_INSERT_ID();
  329. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  330. (@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),
  331. (@iCategoryId, 'lang_subst_from_en', '_adm_stg_cpt_option_lang_subst_from_en', 'on', 'checkbox', '', '', '', 2),
  332. (@iCategoryId, 'sys_format_date', '_adm_stg_cpt_option_sys_format_date', 'D MMM YYYY', 'digit', '', '', '', 3),
  333. (@iCategoryId, 'sys_format_time', '_adm_stg_cpt_option_sys_format_time', 'HH:mm', 'digit', '', '', '', 4),
  334. (@iCategoryId, 'sys_format_datetime', '_adm_stg_cpt_option_sys_format_datetime', 'D MMM YYYY h:mm:ss a', 'digit', '', '', '', 5),
  335. (@iCategoryId, 'sys_format_timeago', '_adm_stg_cpt_option_sys_format_timeago', 432000, 'digit', '', '', '', 6),
  336. (@iCategoryId, 'sys_format_input_24h', '_adm_stg_cpt_option_sys_format_input_24h', 'on', 'checkbox', '', '', '', 24);
  337. --
  338. -- CATEGORY (HIDDEN): Templates
  339. --
  340. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'templates', '_adm_stg_cpt_category_templates', 1, 3);
  341. SET @iCategoryId = LAST_INSERT_ID();
  342. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  343. (@iCategoryId, '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),
  344. (@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),
  345. (@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);
  346. --
  347. -- CATEGORY: Cache
  348. --
  349. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'cache', '_adm_stg_cpt_category_cache', 0, 4);
  350. SET @iCategoryId = LAST_INSERT_ID();
  351. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  352. (@iCategoryId, 'sys_db_cache_enable', '_adm_stg_cpt_option_sys_db_cache_enable', 'on', 'checkbox', '', '', '', 10),
  353. (@iCategoryId, 'sys_db_cache_engine', '_adm_stg_cpt_option_sys_db_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 11),
  354. (@iCategoryId, 'sys_cache_memcache_host', '_adm_stg_cpt_option_sys_cache_memcache_host', '', 'digit', '', '', '', 20),
  355. (@iCategoryId, 'sys_cache_memcache_port', '_adm_stg_cpt_option_sys_cache_memcache_port', '11211', 'digit', '', '', '', 21),
  356. (@iCategoryId, 'sys_page_cache_enable', '_adm_stg_cpt_option_sys_page_cache_enable', 'on', 'checkbox', '', '', '', 30),
  357. (@iCategoryId, 'sys_page_cache_engine', '_adm_stg_cpt_option_sys_page_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 31),
  358. (@iCategoryId, 'sys_pb_cache_enable', '_adm_stg_cpt_option_sys_pb_cache_enable', 'on', 'checkbox', '', '', '', 40),
  359. (@iCategoryId, 'sys_pb_cache_engine', '_adm_stg_cpt_option_sys_pb_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 41),
  360. (@iCategoryId, 'sys_template_cache_enable', '_adm_stg_cpt_option_sys_template_cache_enable', 'on', 'checkbox', '', '', '', 50),
  361. (@iCategoryId, 'sys_template_cache_engine', '_adm_stg_cpt_option_sys_template_cache_engine', 'FileHtml', 'select', 'FileHtml,Memcache,APC,XCache', '', '', 51),
  362. (@iCategoryId, 'sys_template_cache_css_enable', '_adm_stg_cpt_option_sys_template_cache_css_enable', 'on', 'checkbox', '', '', '', 55),
  363. (@iCategoryId, 'sys_template_cache_js_enable', '_adm_stg_cpt_option_sys_template_cache_js_enable', 'on', 'checkbox', '', '', '', 56),
  364. (@iCategoryId, 'sys_template_cache_minify_css_enable', '_adm_stg_cpt_option_sys_template_cache_minify_css_enable', 'on', 'checkbox', '', '', '', 57),
  365. (@iCategoryId, 'sys_template_cache_minify_js_enable', '_adm_stg_cpt_option_sys_template_cache_minify_js_enable', 'on', 'checkbox', '', '', '', 58),
  366. (@iCategoryId, 'sys_template_cache_compress_enable', '_adm_stg_cpt_option_sys_template_cache_compress_enable', 'on', 'checkbox', '', '', '', 59);
  367. --
  368. -- CATEGORY: General
  369. --
  370. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'general', '_adm_stg_cpt_category_general', 0, 6);
  371. SET @iCategoryId = LAST_INSERT_ID();
  372. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  373. (@iCategoryId, 'sys_oauth_key', '_adm_stg_cpt_option_sys_oauth_key', '', 'digit', '', '', '', 20),
  374. (@iCategoryId, 'sys_oauth_secret', '_adm_stg_cpt_option_sys_oauth_secret', '', 'digit', '', '', '', 21),
  375. (@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),
  376. (@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),
  377. (@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),
  378. (@iCategoryId, 'client_image_resize_width', '_adm_stg_cpt_option_client_image_resize_width', '0', 'digit', '', '', '', 42),
  379. (@iCategoryId, 'client_image_resize_height', '_adm_stg_cpt_option_client_image_resize_height', '0', 'digit', '', '', '', 43),
  380. (@iCategoryId, 'useLikeOperator', '_adm_stg_cpt_option_use_like_operator', 'on', 'checkbox', '', '', '', 45),
  381. (@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),
  382. (@iCategoryId, 'sys_embedly_api_key', '_adm_stg_cpt_option_sys_embedly_api_key', '', 'digit', '', '', '', 80),
  383. (@iCategoryId, 'sys_iframely_api_key', '_adm_stg_cpt_option_sys_iframely_api_key', '', 'digit', '', '', '', 90);
  384. --
  385. -- CATEGORY: Permalinks
  386. --
  387. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'permalinks', '_adm_stg_cpt_category_permalinks', 0, 9);
  388. SET @iCategoryId = LAST_INSERT_ID();
  389. INSERT INTO `sys_options` (`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  390. (@iCategoryId, 'permalinks_pages', '_adm_stg_cpt_option_permalinks_pages', 'on', 'checkbox', '', '', '', 1),
  391. (@iCategoryId, 'permalinks_modules', '_adm_stg_cpt_option_permalinks_modules', 'on', 'checkbox', '', '', '', 2),
  392. (@iCategoryId, 'permalinks_storage', '_adm_stg_cpt_option_permalinks_storage', 'on', 'checkbox', '', '', '', 3),
  393. (@iCategoryId, 'permalinks_seo_links', '_adm_stg_cpt_option_permalinks_seo_links', 'on', 'checkbox', '', '', '', 10),
  394. (@iCategoryId, 'permalinks_seo_links_redirects', '_adm_stg_cpt_option_permalinks_seo_links_redirects', 'on', 'checkbox', '', '', '', 12);
  395. --
  396. -- CATEGORY: Security
  397. --
  398. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'security', '_adm_stg_cpt_category_security', 0, 11);
  399. SET @iCategoryId = LAST_INSERT_ID();
  400. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  401. (@iCategoryId, 'sys_security_form_token_enable', '_adm_stg_cpt_option_sys_security_form_token_enable', 'on', 'checkbox', '', '', '', 10),
  402. (@iCategoryId, 'sys_security_form_token_lifetime', '_adm_stg_cpt_option_sys_security_form_token_lifetime', '86400', 'digit', '', '', '', 11),
  403. (@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),
  404. (@iCategoryId, 'sys_recaptcha_key_public', '_adm_stg_cpt_option_sys_recaptcha_key_public', '', 'digit', '', '', '', 20),
  405. (@iCategoryId, 'sys_recaptcha_key_private', '_adm_stg_cpt_option_sys_recaptcha_key_private', '', 'digit', '', '', '', 21),
  406. (@iCategoryId, 'sys_add_nofollow', '_adm_stg_cpt_option_sys_add_nofollow', 'on', 'checkbox', '', '', '', 30),
  407. (@iCategoryId, 'sys_confirmation_before_redirect', '_adm_stg_cpt_option_sys_confirmation_before_redirect', 'on', 'checkbox', '', '', '', 31),
  408. (@iCategoryId, 'sys_security_block_content_after_n_reports', '_adm_stg_cpt_option_sys_security_block_content_after_n_reports', '0', 'digit', '', '', '', 35),
  409. (@iCategoryId, 'sys_cf_enable', '_adm_stg_cpt_option_sys_cf_enable', '', 'checkbox', '', '', '', 40),
  410. (@iCategoryId, 'sys_cf_enable_comments', '_adm_stg_cpt_option_sys_cf_enable_comments', '', 'checkbox', '', '', '', 41),
  411. (@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),
  412. (@iCategoryId, 'sys_lock_from_unauthenticated', '_adm_stg_cpt_option_sys_lock_from_unauthenticated', '', 'checkbox', '', '', '', 50),
  413. (@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);
  414. --
  415. -- CATEGORY: Site Settings
  416. --
  417. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'site_settings','_adm_stg_cpt_category_site_settings', 0, 12);
  418. SET @iCategoryId = LAST_INSERT_ID();
  419. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  420. (@iCategoryId, 'site_title', '_adm_stg_cpt_option_site_title', 'Community', 'digit', '', '', '', 1),
  421. (@iCategoryId, 'site_email', '_adm_stg_cpt_option_site_email', 'admin@example.com', 'digit', '', '', '', 2),
  422. (@iCategoryId, 'site_email_notify', '_adm_stg_cpt_option_site_email_notify', 'admin@example.com', 'digit', '', '', '', 3),
  423. (@iCategoryId, 'site_tour_home', '_adm_stg_cpt_option_site_tour_home', 'on', 'checkbox', '', '', '', 6),
  424. (@iCategoryId, 'site_tour_studio', '_adm_stg_cpt_option_site_tour_studio', 'on', 'checkbox', '', '', '', 7),
  425. (@iCategoryId, 'sys_autoupdate', '_adm_stg_cpt_option_sys_autoupdate', 'on', 'checkbox', '', '', '', 10),
  426. (@iCategoryId, 'sys_autoupdate_force_modified_files', '_adm_stg_cpt_option_sys_autoupdate_force_modified_files', '', 'checkbox', '', '', '', 12),
  427. (@iCategoryId, 'smart_app_banner', '_adm_stg_cpt_option_smart_app_banner', '', 'checkbox', '', '', '', 14),
  428. (@iCategoryId, 'smart_app_banner_ios_app_id', '_adm_stg_cpt_option_smart_app_banner_ios_app_id', '', 'digit', '', '', '', 15),
  429. (@iCategoryId, 'sys_per_page_search_keyword_single', '_adm_stg_cpt_option_sys_per_page_search_keyword_single', '24', 'digit', '', '', '', 20),
  430. (@iCategoryId, 'sys_per_page_search_keyword_plural', '_adm_stg_cpt_option_sys_per_page_search_keyword_plural', '3', 'digit', '', '', '', 21),
  431. (@iCategoryId, 'sys_live_search_limit', '_adm_stg_cpt_option_sys_live_search_limit', '5', 'digit', '', '', '', 22),
  432. (@iCategoryId, 'sys_metatags_hashtags_max', '_adm_stg_cpt_option_sys_metatags_hashtags_max', '9', 'digit', '', '', '', 30),
  433. (@iCategoryId, 'sys_metatags_mentions_max', '_adm_stg_cpt_option_sys_metatags_mentions_max', '9', 'digit', '', '', '', 31),
  434. (@iCategoryId, 'sys_attach_links_max', '_adm_stg_cpt_option_sys_attach_links_max', '0', 'digit', '', '', '', 35),
  435. (@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),
  436. (@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),
  437. (@iCategoryId, 'sys_treat_cxt_in_cxt_as_cnt', '_adm_stg_cpt_option_sys_treat_cxt_in_cxt_as_cnt', 'on', 'checkbox', '', '', '', 51),
  438. (@iCategoryId, 'sys_vote_reactions_quick_mode', '_adm_stg_cpt_option_sys_vote_reactions_quick_mode', 'on', 'checkbox', '', '', '', 60),
  439. (@iCategoryId, 'sys_cmts_enable_auto_approve', '_adm_stg_cpt_option_sys_cmts_enable_auto_approve', 'on', 'checkbox', '', '', '', 70),
  440. (@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);
  441. --
  442. -- CATEGORY: Storage
  443. --
  444. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'storage', '_adm_stg_cpt_category_storage', 0, 13);
  445. SET @iCategoryId = LAST_INSERT_ID();
  446. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  447. (@iCategoryId, 'sys_storage_default', '_adm_stg_cpt_option_sys_storage_default', 'Local', 'select', 'Local,S3,S3v4,S3v4alt', '', '', 1),
  448. (@iCategoryId, 'sys_storage_s3_access_key', '_adm_stg_cpt_option_sys_storage_s3_access_key', '', 'digit', '', '', '', 2),
  449. (@iCategoryId, 'sys_storage_s3_secret_key', '_adm_stg_cpt_option_sys_storage_s3_secret_key', '', 'digit', '', '', '', 3),
  450. (@iCategoryId, 'sys_storage_s3_bucket', '_adm_stg_cpt_option_sys_storage_s3_bucket', '', 'digit', '', '', '', 4),
  451. (@iCategoryId, 'sys_storage_s3_domain', '_adm_stg_cpt_option_sys_storage_s3_domain', '', 'digit', '', '', '', 5),
  452. (@iCategoryId, 'sys_storage_s3_endpoint', '_adm_stg_cpt_option_sys_storage_s3_endpoint', '', 'digit', '', '', '', 6),
  453. (@iCategoryId, 'sys_storage_s3_sig_ver', '_adm_stg_cpt_option_sys_storage_s3_sig_ver', 'v2', 'select', 'v2,v4', '', '', 7),
  454. (@iCategoryId, 'sys_storage_s3_region', '_adm_stg_cpt_option_sys_storage_s3_region', '', 'digit', '', '', '', 8);
  455. --
  456. -- CATEGORY: Account
  457. --
  458. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'account', '_adm_stg_cpt_category_account', 0, 14);
  459. SET @iCategoryId = LAST_INSERT_ID();
  460. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  461. (@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),
  462. (@iCategoryId, 'sys_account_autoapproval', '_adm_stg_cpt_option_sys_account_autoapproval', 'on', 'checkbox', '', '', '', 10),
  463. (@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),
  464. (@iCategoryId, 'sys_account_activation_2fa_enable', '_adm_stg_cpt_option_sys_account_2fa_enable', '', 'checkbox', '', '', '', 13),
  465. (@iCategoryId, 'sys_account_activation_2fa_lifetime', '_adm_stg_cpt_option_sys_account_2fa_lifetime', '0', 'digit', '', '', '', 14),
  466. (@iCategoryId, 'sys_account_auto_profile_creation', '_adm_stg_cpt_option_sys_account_auto_profile_creation', 'on', 'checkbox', '', '', '', 15),
  467. (@iCategoryId, 'sys_account_hide_unconfirmed_accounts', '_adm_stg_cpt_option_sys_account_hide_unconfirmed_accounts', 'on', 'checkbox', '', '', '', 17),
  468. (@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),
  469. (@iCategoryId, 'sys_account_limit_profiles_number', '_adm_stg_cpt_option_sys_account_limit_profiles_number', '0', 'digit', '', '', '', 21),
  470. (@iCategoryId, 'sys_account_limit_incorrect_login_attempts', '_adm_stg_cpt_option_sys_account_limit_incorrect_login_attempts', '6', 'digit', '', '', '', 22),
  471. (@iCategoryId, 'sys_account_reset_password_key_lifetime', '_adm_stg_cpt_option_sys_account_reset_password_key_lifetime', '259200', 'digit', '', '', '', 30),
  472. (@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),
  473. (@iCategoryId, 'sys_account_reset_password_redirect_custom', '_adm_stg_cpt_option_sys_account_reset_password_redirect_custom', '', 'digit', '', '', '', 32),
  474. (@iCategoryId, 'sys_account_disable_login_form', '_adm_stg_cpt_option_sys_account_disable_login_form', '', 'checkbox', '', '', '', 40),
  475. (@iCategoryId, 'sys_account_disable_join_form', '_adm_stg_cpt_option_sys_account_disable_join_form', '', 'checkbox', '', '', '', 42),
  476. (@iCategoryId, 'sys_account_allow_plus_in_email', '_adm_stg_cpt_option_sys_allow_plus_in_email', 'on', 'checkbox', '', '', '', 50),
  477. (@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),
  478. (@iCategoryId, 'sys_account_accounts_pruning_interval', '_adm_stg_cpt_option_sys_accounts_pruning_interval', '0', 'digit', '', '', '', 56),
  479. (@iCategoryId, 'sys_account_accounts_password_log_count', '_adm_stg_cpt_option_sys_accounts_password_log_count', '0', 'digit', '', '', '', 57),
  480. (@iCategoryId, 'sys_account_accounts_force_password_change_after_expiration', '_adm_stg_cpt_option_sys_accounts_force_password_change_after_expiration', '', 'checkbox', '', '', '', 58),
  481. (@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),
  482. (@iCategoryId, 'sys_account_switch_to_profile_redirect_custom', '_adm_stg_cpt_option_sys_account_switch_to_profile_redirect_custom', '', 'digit', '', '', '', 61);
  483. --
  484. -- CATEGORY: ACL
  485. --
  486. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'acl', '_adm_stg_cpt_category_acl', 0, 15);
  487. SET @iCategoryId = LAST_INSERT_ID();
  488. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  489. (@iCategoryId, 'sys_acl_expire_notification_days', '_adm_stg_cpt_option_sys_acl_expire_notification_days', '1', 'digit', '', '', '', 1),
  490. (@iCategoryId, 'sys_acl_expire_notify_once', '_adm_stg_cpt_option_sys_acl_expire_notify_once', 'on', 'checkbox', '', '', '', 2);
  491. --
  492. -- CATEGORY: Notifications
  493. --
  494. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'notifications', '_adm_stg_cpt_category_notifications', 0, 16);
  495. SET @iCategoryId = LAST_INSERT_ID();
  496. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  497. (@iCategoryId, 'enable_notification_pruning', '_adm_stg_cpt_option_enable_notification_pruning', '', 'checkbox', '', '', '', 1),
  498. (@iCategoryId, 'enable_notification_account', '_adm_stg_cpt_option_enable_notification_account', 'on', 'checkbox', '', '', '', 2),
  499. (@iCategoryId, 'sys_eq_send_per_start', '_adm_stg_cpt_option_sys_eq_send_per_start', '500', 'digit', '', '', '', 10),
  500. (@iCategoryId, 'sys_eq_send_per_start_to_recipient', '_adm_stg_cpt_option_sys_eq_send_per_start_to_recipient', '2', 'digit', '', '', '', 11);
  501. --
  502. -- CATEGORY: Push Notifications
  503. --
  504. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'notifications_push', '_adm_stg_cpt_category_notifications_push', 0, 17);
  505. SET @iCategoryId = LAST_INSERT_ID();
  506. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  507. (@iCategoryId, 'sys_push_app_id', '_adm_stg_cpt_option_sys_push_app_id', '', 'digit', '', '', '', 1),
  508. (@iCategoryId, 'sys_push_rest_api', '_adm_stg_cpt_option_sys_push_rest_api', '', 'digit', '', '', '', 2),
  509. (@iCategoryId, 'sys_push_short_name', '_adm_stg_cpt_option_sys_push_short_name', '', 'digit', '', '', '', 3),
  510. (@iCategoryId, 'sys_push_safari_id', '_adm_stg_cpt_option_sys_push_safari_id', '', 'digit', '', '', '', 4),
  511. (@iCategoryId, 'sys_push_queue_send_per_start', '_adm_stg_cpt_option_sys_push_queue_send_per_start', '500', 'digit', '', '', '', 10),
  512. (@iCategoryId, 'sys_push_queue_send_per_start_to_recipient', '_adm_stg_cpt_option_sys_push_queue_send_per_start_to_recipient', '2', 'digit', '', '', '', 11);
  513. --
  514. -- CATEGORY: Twilio gate settings
  515. --
  516. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'twilio_gate', '_adm_stg_cpt_category_twilio_gate', 0, 18);
  517. SET @iCategoryId = LAST_INSERT_ID();
  518. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  519. (@iCategoryId, 'sys_twilio_gate_sid', '_adm_stg_cpt_option_sys_twilio_gate_sid', '', 'digit', '', '', '', 1),
  520. (@iCategoryId, 'sys_twilio_gate_token', '_adm_stg_cpt_option_sys_twilio_gate_token', '', 'digit', '', '', '', 2),
  521. (@iCategoryId, 'sys_twilio_gate_from_number', '_adm_stg_cpt_option_sys_twilio_gate_from_number', '', 'digit', '', '', '', 3);
  522. --
  523. -- CATEGORY: Location
  524. --
  525. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'location', '_adm_stg_cpt_category_location', 0, 20);
  526. SET @iCategoryId = LAST_INSERT_ID();
  527. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  528. (@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),
  529. (@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),
  530. (@iCategoryId, 'sys_location_map_zoom_default', '_adm_stg_cpt_option_sys_location_map_zoom_default', '7', 'digit', '', '', '', 20),
  531. (@iCategoryId, 'sys_maps_api_key', '_adm_stg_cpt_option_sys_maps_api_key', '', 'digit', '', '', '', 30),
  532. (@iCategoryId, 'sys_nominatim_server', '_adm_stg_cpt_option_sys_nominatim_server', 'https://nominatim.openstreetmap.org', 'digit', '', '', '', 40),
  533. (@iCategoryId, 'sys_nominatim_email', '_adm_stg_cpt_option_sys_nominatim_email', '', 'digit', '', '', '', 42),
  534. (@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),
  535. (@iCategoryId, 'sys_location_normalize_names', '_adm_stg_cpt_option_sys_location_normalize_names', '', 'checkbox', '', '', '', 60);
  536. --
  537. -- CATEGORY: Social Settings
  538. --
  539. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'social_settings','_adm_stg_cpt_category_social_settings', 0, 21);
  540. SET @iCategoryId = LAST_INSERT_ID();
  541. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  542. (@iCategoryId, 'site_login_social_compact', '_adm_stg_cpt_option_site_login_social_compact', 'on', 'checkbox', '', '', '', 1),
  543. (@iCategoryId, 'sys_a2a_enable', '_adm_stg_cpt_option_sys_a2a_enable', '', 'checkbox', '', '', '', 10),
  544. (@iCategoryId, 'sys_a2a_code', '_adm_stg_cpt_option_sys_a2a_code', '', 'code', '', '', '', 11);
  545. --
  546. -- CATEGORY: Sockets
  547. --
  548. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'sockets', '_adm_stg_cpt_category_sockets', 0, 22);
  549. SET @iCategoryId = LAST_INSERT_ID();
  550. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  551. (@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),
  552. (@iCategoryId, 'sys_sockets_url', '_adm_stg_cpt_option_sys_sockets_url', '', 'digit', '', '', '', 2),
  553. (@iCategoryId, 'sys_sockets_app_id', '_adm_stg_cpt_option_sys_sockets_app_id', '', 'digit', '', '', '', 3),
  554. (@iCategoryId, 'sys_sockets_key', '_adm_stg_cpt_option_sys_sockets_key', '', 'digit', '', '', '', 4),
  555. (@iCategoryId, 'sys_sockets_secret', '_adm_stg_cpt_option_sys_sockets_secret', '', 'digit', '', '', '', 5);
  556. --
  557. -- CATEGORY (HIDDEN): Audit
  558. --
  559. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'audit', '_adm_stg_cpt_category_audit', 1, 2);
  560. SET @iCategoryId = LAST_INSERT_ID();
  561. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  562. (@iCategoryId, 'sys_audit_enable', '_adm_stg_cpt_option_sys_audit_enable', '', 'checkbox', '', '', '', 1),
  563. (@iCategoryId, 'sys_audit_max_records', '_adm_stg_cpt_option_sys_audit_max_records', '10000', 'digit', '', '', '', 2),
  564. (@iCategoryId, 'sys_audit_days_before_expire', '_adm_stg_cpt_option_sys_audit_days_before_expire', '365', 'digit', '', '', '', 3),
  565. (@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);
  566. --
  567. -- CATEGORY (HIDDEN): API (general)
  568. --
  569. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'api_general', '_adm_stg_cpt_category_api_general', 1, 2);
  570. SET @iCategoryId = LAST_INSERT_ID();
  571. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  572. (@iCategoryId, 'sys_api_enable', '_adm_stg_cpt_option_sys_api_enable', '', 'checkbox', '', '', '', 1),
  573. (@iCategoryId, 'sys_api_access_by_origin', '_adm_stg_cpt_option_sys_api_access_by_origin', '', 'checkbox', '', '', '', 10),
  574. (@iCategoryId, 'sys_api_access_by_key', '_adm_stg_cpt_option_sys_api_access_by_key', '', 'checkbox', '', '', '', 20),
  575. (@iCategoryId, 'sys_api_access_unsafe_services', '_adm_stg_cpt_option_sys_api_access_unsafe_services', '', 'checkbox', '', '', '', 30),
  576. (@iCategoryId, 'sys_api_cookie_path', '_adm_stg_cpt_option_sys_api_cookie_path', '/', 'digit', '', '', '', 40),
  577. (@iCategoryId, 'sys_api_cookie_secure', '_adm_stg_cpt_option_sys_api_cookie_secure', '', 'checkbox', '', '', '', 42),
  578. (@iCategoryId, 'sys_api_cookie_samesite', '_adm_stg_cpt_option_sys_api_cookie_samesite', 'Lax', 'select', 'None,Lax,Strict', '', '', 44);
  579. --
  580. -- CATEGORY (HIDDEN): API (layout)
  581. --
  582. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'api_layout', '_adm_stg_cpt_category_api_layout', 1, 2);
  583. SET @iCategoryId = LAST_INSERT_ID();
  584. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  585. (@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),
  586. (@iCategoryId, 'sys_api_comments_flat', '_adm_stg_cpt_option_sys_api_comments_flat', '', 'checkbox', '', '', '', 10),
  587. (@iCategoryId, 'sys_api_search_sections', '_adm_stg_cpt_option_sys_api_search_sections', 'bx_posts,bx_persons,bx_groups', 'digit', '', '', '', 20),
  588. (@iCategoryId, 'sys_api_extended_units', '_adm_stg_cpt_option_sys_api_extended_units', '', 'checkbox', '', '', '', 30);
  589. --
  590. -- CATEGORY (HIDDEN): PWA
  591. --
  592. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'pwa', '_adm_stg_cpt_category_pwa', 1, 2);
  593. SET @iCategoryId = LAST_INSERT_ID();
  594. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  595. (@iCategoryId, 'sys_pwa_name', '_adm_stg_cpt_option_sys_pwa_name', '', 'digit', '', '', '', 1),
  596. (@iCategoryId, 'sys_pwa_short_name', '_adm_stg_cpt_option_sys_pwa_short_name', '', 'digit', '', '', '', 2),
  597. (@iCategoryId, 'sys_pwa_description', '_adm_stg_cpt_option_sys_pwa_description', '', 'text', '', '', '', 3),
  598. (@iCategoryId, 'sys_pwa_background_color', '_adm_stg_cpt_option_sys_pwa_background_color', '', 'digit', '', '', '', 4),
  599. (@iCategoryId, 'sys_pwa_theme_color', '_adm_stg_cpt_option_sys_pwa_theme_color', '', 'digit', '', '', '', 5);
  600. --
  601. -- Table structure for table `sys_options_mixes`
  602. --
  603. CREATE TABLE `sys_options_mixes` (
  604. `id` int(11) unsigned NOT NULL auto_increment,
  605. `type` varchar(64) NOT NULL default '',
  606. `category` varchar(64) NOT NULL default '',
  607. `name` varchar(64) NOT NULL default '',
  608. `title` varchar(64) NOT NULL default '',
  609. `dark` tinyint(1) NOT NULL default '0',
  610. `active` tinyint(1) NOT NULL default '0',
  611. `published` tinyint(1) NOT NULL default '0',
  612. `editable` tinyint(1) NOT NULL default '1',
  613. PRIMARY KEY (`id`),
  614. UNIQUE KEY `name`(`name`)
  615. );
  616. --
  617. -- Table structure for table `sys_options_mixes2options`
  618. --
  619. CREATE TABLE `sys_options_mixes2options` (
  620. `id` int(11) NOT NULL AUTO_INCREMENT,
  621. `option` varchar(64) NOT NULL default '',
  622. `mix_id` int(11) unsigned NOT NULL default '0',
  623. `value` mediumtext NOT NULL,
  624. PRIMARY KEY (`id`),
  625. UNIQUE KEY `value`(`option`, `mix_id`)
  626. );
  627. -- --------------------------------------------------------
  628. CREATE TABLE `sys_localization_categories` (
  629. `ID` int(6) unsigned NOT NULL auto_increment,
  630. `Name` varchar(255) NOT NULL default '',
  631. PRIMARY KEY (`ID`),
  632. UNIQUE KEY `Name` (`Name`(191))
  633. );
  634. INSERT INTO `sys_localization_categories` VALUES
  635. (1, 'System'),
  636. (2, 'Custom');
  637. CREATE TABLE `sys_localization_keys` (
  638. `ID` int(10) unsigned NOT NULL auto_increment,
  639. `IDCategory` int(6) unsigned NOT NULL default '0',
  640. `Key` varchar(255) character set utf8 collate utf8_bin NOT NULL default '',
  641. PRIMARY KEY (`ID`),
  642. UNIQUE KEY `Key` (`Key`(191)),
  643. FULLTEXT KEY `KeyFilter` (`Key`(191))
  644. );
  645. CREATE TABLE `sys_localization_languages` (
  646. `ID` int(10) unsigned NOT NULL auto_increment,
  647. `Name` varchar(5) NOT NULL default '',
  648. `Flag` varchar(2) NOT NULL default '',
  649. `Title` varchar(255) NOT NULL default '',
  650. `Direction` enum('LTR','RTL') NOT NULL DEFAULT 'LTR',
  651. `LanguageCountry` varchar(8) NOT NULL,
  652. `Enabled` tinyint(1) unsigned NOT NULL default '0',
  653. PRIMARY KEY (`ID`),
  654. UNIQUE KEY `Name` (`Name`)
  655. );
  656. CREATE TABLE `sys_localization_strings` (
  657. `IDKey` int(10) unsigned NOT NULL default '0',
  658. `IDLanguage` int(10) unsigned NOT NULL default '0',
  659. `String` mediumtext NOT NULL,
  660. PRIMARY KEY (`IDKey`,`IDLanguage`),
  661. FULLTEXT KEY `String` (`String`)
  662. );
  663. -- --------------------------------------------------------
  664. CREATE TABLE `sys_acl_actions` (
  665. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  666. `Module` varchar(32) NOT NULL,
  667. `Name` varchar(255) NOT NULL default '',
  668. `AdditionalParamName` varchar(80) default NULL,
  669. `Title` varchar(255) NOT NULL,
  670. `Desc` varchar(255) NOT NULL,
  671. `Countable` tinyint(4) NOT NULL DEFAULT '0',
  672. `DisabledForLevels` int(10) unsigned NOT NULL DEFAULT '3',
  673. PRIMARY KEY (`ID`),
  674. FULLTEXT KEY `ModuleAndName` (`Module`, `Name`)
  675. );
  676. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  677. ('system', 'connect', NULL, '_sys_acl_action_connect', '', 1, 3);
  678. SET @iIdActionConnect = LAST_INSERT_ID();
  679. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  680. ('system', 'vote', NULL, '_sys_acl_action_vote', '', 1, 0);
  681. SET @iIdActionVote = LAST_INSERT_ID();
  682. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  683. ('system', 'vote_view', NULL, '_sys_acl_action_vote_view', '', 1, 0);
  684. SET @iIdActionVoteView = LAST_INSERT_ID();
  685. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  686. ('system', 'vote_view_voters', NULL, '_sys_acl_action_vote_view_voters', '', 1, 0);
  687. SET @iIdActionVoteViewVoters = LAST_INSERT_ID();
  688. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  689. ('system', 'report', NULL, '_sys_acl_action_report', '', 1, 0);
  690. SET @iIdActionReport = LAST_INSERT_ID();
  691. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  692. ('system', 'report_view', NULL, '_sys_acl_action_report_view', '', 0, 0);
  693. SET @iIdActionReportView = LAST_INSERT_ID();
  694. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  695. ('system', 'favorite', NULL, '_sys_acl_action_favorite', '', 1, 0);
  696. SET @iIdActionFavorite = LAST_INSERT_ID();
  697. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  698. ('system', 'favorite_view', NULL, '_sys_acl_action_favorite_view', '', 0, 0);
  699. SET @iIdActionFavoriteView = LAST_INSERT_ID();
  700. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  701. ('system', 'feature', NULL, '_sys_acl_action_feature', '', 0, 0);
  702. SET @iIdActionFeature = LAST_INSERT_ID();
  703. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  704. ('system', 'view_view', NULL, '_sys_acl_action_view_view', '', 0, 0);
  705. SET @iIdActionViewView = LAST_INSERT_ID();
  706. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  707. ('system', 'view_view_viewers_own', NULL, '_sys_acl_action_view_view_viewers_own', '', 0, 0);
  708. SET @iIdActionViewViewViewers = LAST_INSERT_ID();
  709. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  710. ('system', 'comments post', NULL, '_sys_acl_action_comments_post', '', 1, 0);
  711. SET @iIdActionCmtPost = LAST_INSERT_ID();
  712. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  713. ('system', 'comments edit own', NULL, '_sys_acl_action_comments_edit_own', '', 0, 3);
  714. SET @iIdActionCmtEditOwn = LAST_INSERT_ID();
  715. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  716. ('system', 'comments remove own', NULL, '_sys_acl_action_comments_remove_own', '', 1, 3);
  717. SET @iIdActionCmtRemoveOwn = LAST_INSERT_ID();
  718. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  719. ('system', 'comments edit all', NULL, '_sys_acl_action_comments_edit_all', '', 1, 3);
  720. SET @iIdActionCmtEditAll = LAST_INSERT_ID();
  721. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  722. ('system', 'comments remove all', NULL, '_sys_acl_action_comments_remove_all', '', 1, 3);
  723. SET @iIdActionCmtRemoveAll = LAST_INSERT_ID();
  724. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  725. ('system', 'comments remove in own content', NULL, '_sys_acl_action_comments_remove_in_own_content', '', 1, 3);
  726. SET @iIdActionCmtRemoveInOwnContent = LAST_INSERT_ID();
  727. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  728. ('system', 'comments remove in group context', NULL, '_sys_acl_action_comments_remove_in_group_context', '', 1, 3);
  729. SET @iIdActionCmtRemoveInGroupContext = LAST_INSERT_ID();
  730. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  731. ('system', 'comments pin', NULL, '_sys_acl_action_comments_pin', '', 1, 3);
  732. SET @iIdActionCmtPin = LAST_INSERT_ID();
  733. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  734. ('system', 'create account', NULL, '_sys_acl_action_create_account', '_sys_acl_action_create_account_desc', 0, 2147483646);
  735. SET @iIdActionAccountCreate = LAST_INSERT_ID();
  736. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  737. ('system', 'delete account', NULL, '_sys_acl_action_delete_account', '_sys_acl_action_delete_account_desc', 0, 1);
  738. SET @iIdActionAccountDelete = LAST_INSERT_ID();
  739. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  740. ('system', 'set acl level', NULL, '_sys_acl_action_set_acl_level', '_sys_acl_action_set_acl_level_desc', 0, 3);
  741. SET @iIdActionSetAclLevel = LAST_INSERT_ID();
  742. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  743. ('system', 'set badge', NULL, '_sys_acl_action_set_badge', '_sys_acl_action_set_badge_desc', 0, 3);
  744. SET @iIdActionSetBadge = LAST_INSERT_ID();
  745. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  746. ('system', 'set acl as privacy', NULL, '_sys_acl_action_set_acl_as_privacy', '_sys_acl_action_set_acl_as_privacy_desc', 0, 3);
  747. SET @iIdActionSetAclAsPrivacy = LAST_INSERT_ID();
  748. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  749. ('system', 'set form fields privacy', NULL, '_sys_acl_action_set_form_fields_privacy', '_sys_acl_action_set_form_fields_privacy_desc', 0, 3);
  750. SET @iIdActionSetFormFieldsPrivacy = LAST_INSERT_ID();
  751. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  752. ('system', 'chart view', NULL, '_sys_acl_action_chart_view', '_sys_acl_action_chart_view_desc', 0, 3);
  753. SET @iIdActionChartView = LAST_INSERT_ID();
  754. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  755. ('system', 'post links', NULL, '_sys_acl_action_post_links', '_sys_acl_action_post_links_desc', 0, 0);
  756. SET @iIdActionPostLinks = LAST_INSERT_ID();
  757. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  758. ('system', 'use macros', NULL, '_sys_acl_action_use_macros', '_sys_acl_action_use_macros_desc', 0, 0);
  759. SET @iIdActionUseMacros = LAST_INSERT_ID();
  760. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  761. ('system', 'switch to any profile', NULL, '_sys_acl_action_switch_to_any_profile', '_sys_acl_action_switch_to_any_profile_desc', 0, 0);
  762. SET @iIdActionSwitchToAnyProfile = LAST_INSERT_ID();
  763. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  764. ('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);
  765. SET @iIdActionShowMembershipLevelsInPrivacyGroups = LAST_INSERT_ID();
  766. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  767. ('system', 'show membership private info', NULL, '_sys_acl_action_show_membership_private_info', '_sys_acl_action_show_membership_private_info_desc', 0, 0);
  768. SET @iIdActionShowMembershipPrivateInfo = LAST_INSERT_ID();
  769. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  770. ('system', 'wiki add block', NULL, '_sys_acl_action_add_block', '', 0, 1);
  771. SET @iIdActionWikiAddBlock = LAST_INSERT_ID();
  772. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  773. ('system', 'wiki edit block', NULL, '_sys_acl_action_edit_block', '', 0, 0);
  774. SET @iIdActionWikiEditBlock = LAST_INSERT_ID();
  775. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  776. ('system', 'wiki translate block', NULL, '_sys_acl_action_translate_block', '', 0, 0);
  777. SET @iIdActionWikiTranslateBlock = LAST_INSERT_ID();
  778. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  779. ('system', 'wiki delete version', NULL, '_sys_acl_action_delete_version', '', 0, 1);
  780. SET @iIdActionWikiDeleteVersion = LAST_INSERT_ID();
  781. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  782. ('system', 'wiki delete block', NULL, '_sys_acl_action_delete_block', '', 0, 1);
  783. SET @iIdActionWikiDeleteBlock = LAST_INSERT_ID();
  784. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  785. ('system', 'wiki history', NULL, '_sys_acl_action_history', '', 0, 0);
  786. SET @iIdActionWikiHistory = LAST_INSERT_ID();
  787. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  788. ('system', 'wiki unsafe', NULL, '_sys_acl_action_unsafe', '', 0, 0);
  789. SET @iIdActionWikiUnsafe = LAST_INSERT_ID();
  790. CREATE TABLE `sys_acl_actions_track` (
  791. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  792. `IDMember` int(10) unsigned NOT NULL default '0',
  793. `ActionsLeft` int(10) unsigned NOT NULL DEFAULT '0',
  794. `ValidSince` datetime default NULL,
  795. PRIMARY KEY (`IDAction`,`IDMember`)
  796. );
  797. CREATE TABLE `sys_acl_matrix` (
  798. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  799. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  800. `AllowedCount` int(10) unsigned DEFAULT NULL,
  801. `AllowedPeriodLen` int(10) unsigned DEFAULT NULL,
  802. `AllowedPeriodStart` datetime default NULL,
  803. `AllowedPeriodEnd` datetime default NULL,
  804. `AdditionalParamValue` varchar(255) default NULL,
  805. PRIMARY KEY (`IDLevel`,`IDAction`)
  806. );
  807. SET @iUnauthenticated = 1;
  808. SET @iAccount = 2;
  809. SET @iStandard = 3;
  810. SET @iUnconfirmed = 4;
  811. SET @iPending = 5;
  812. SET @iSuspended = 6;
  813. SET @iModerator = 7;
  814. SET @iAdministrator = 8;
  815. SET @iPremium = 9;
  816. INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES
  817. -- connect
  818. (@iStandard, @iIdActionConnect),
  819. (@iModerator, @iIdActionConnect),
  820. (@iAdministrator, @iIdActionConnect),
  821. (@iPremium, @iIdActionConnect),
  822. -- vote
  823. (@iStandard, @iIdActionVote),
  824. (@iModerator, @iIdActionVote),
  825. (@iAdministrator, @iIdActionVote),
  826. (@iPremium, @iIdActionVote),
  827. -- vote view
  828. (@iStandard, @iIdActionVoteView),
  829. (@iModerator, @iIdActionVoteView),
  830. (@iAdministrator, @iIdActionVoteView),
  831. (@iPremium, @iIdActionVoteView),
  832. -- vote view voters
  833. (@iStandard, @iIdActionVoteViewVoters),
  834. (@iModerator, @iIdActionVoteViewVoters),
  835. (@iAdministrator, @iIdActionVoteViewVoters),
  836. (@iPremium, @iIdActionVoteViewVoters),
  837. -- report
  838. (@iStandard, @iIdActionReport),
  839. (@iModerator, @iIdActionReport),
  840. (@iAdministrator, @iIdActionReport),
  841. (@iPremium, @iIdActionReport),
  842. -- report view
  843. (@iModerator, @iIdActionReportView),
  844. (@iAdministrator, @iIdActionReportView),
  845. -- favorite
  846. (@iStandard, @iIdActionFavorite),
  847. (@iModerator, @iIdActionFavorite),
  848. (@iAdministrator, @iIdActionFavorite),
  849. (@iPremium, @iIdActionFavorite),
  850. -- favorite view
  851. (@iUnauthenticated, @iIdActionFavoriteView),
  852. (@iAccount, @iIdActionFavoriteView),
  853. (@iStandard, @iIdActionFavoriteView),
  854. (@iUnconfirmed, @iIdActionFavoriteView),
  855. (@iPending, @iIdActionFavoriteView),
  856. (@iModerator, @iIdActionFavoriteView),
  857. (@iAdministrator, @iIdActionFavoriteView),
  858. (@iPremium, @iIdActionFavoriteView),
  859. -- feature
  860. (@iModerator, @iIdActionFeature),
  861. (@iAdministrator, @iIdActionFeature),
  862. -- view view
  863. (@iUnauthenticated, @iIdActionViewView),
  864. (@iAccount, @iIdActionViewView),
  865. (@iStandard, @iIdActionViewView),
  866. (@iUnconfirmed, @iIdActionViewView),
  867. (@iPending, @iIdActionViewView),
  868. (@iModerator, @iIdActionViewView),
  869. (@iAdministrator, @iIdActionViewView),
  870. (@iPremium, @iIdActionViewView),
  871. -- view view viewers
  872. (@iModerator, @iIdActionViewViewViewers),
  873. (@iAdministrator, @iIdActionViewViewViewers),
  874. -- comments post
  875. (@iStandard, @iIdActionCmtPost),
  876. (@iModerator, @iIdActionCmtPost),
  877. (@iAdministrator, @iIdActionCmtPost),
  878. (@iPremium, @iIdActionCmtPost),
  879. -- comments edit own
  880. (@iStandard, @iIdActionCmtEditOwn),
  881. (@iModerator, @iIdActionCmtEditOwn),
  882. (@iAdministrator, @iIdActionCmtEditOwn),
  883. (@iPremium, @iIdActionCmtEditOwn),
  884. -- comments remove own
  885. (@iStandard, @iIdActionCmtRemoveOwn),
  886. (@iModerator, @iIdActionCmtRemoveOwn),
  887. (@iAdministrator, @iIdActionCmtRemoveOwn),
  888. (@iPremium, @iIdActionCmtRemoveOwn),
  889. -- comments edit all
  890. (@iModerator, @iIdActionCmtEditAll),
  891. (@iAdministrator, @iIdActionCmtEditAll),
  892. -- comments remove all
  893. (@iModerator, @iIdActionCmtRemoveAll),
  894. (@iAdministrator, @iIdActionCmtRemoveAll),
  895. -- comments remove in own content
  896. (@iModerator, @iIdActionCmtRemoveInOwnContent),
  897. (@iAdministrator, @iIdActionCmtRemoveInOwnContent),
  898. -- comments remove in group context
  899. (@iModerator, @iIdActionCmtRemoveInGroupContext),
  900. (@iAdministrator, @iIdActionCmtRemoveInGroupContext),
  901. -- comments pin
  902. (@iModerator, @iIdActionCmtPin),
  903. (@iAdministrator, @iIdActionCmtPin),
  904. -- account create
  905. (@iUnauthenticated, @iIdActionAccountCreate),
  906. -- account delete
  907. (@iAccount, @iIdActionAccountDelete),
  908. (@iStandard, @iIdActionAccountDelete),
  909. (@iUnconfirmed, @iIdActionAccountDelete),
  910. (@iPending, @iIdActionAccountDelete),
  911. (@iModerator, @iIdActionAccountDelete),
  912. (@iAdministrator, @iIdActionAccountDelete),
  913. (@iPremium, @iIdActionAccountDelete),
  914. -- set acl level
  915. (@iAdministrator, @iIdActionSetAclLevel),
  916. -- set badge
  917. (@iAdministrator, @iIdActionSetBadge),
  918. -- set acl as privacy
  919. (@iAdministrator, @iIdActionSetAclAsPrivacy),
  920. -- set form fields privacy
  921. (@iAccount, @iIdActionSetFormFieldsPrivacy),
  922. (@iStandard, @iIdActionSetFormFieldsPrivacy),
  923. (@iUnconfirmed, @iIdActionSetFormFieldsPrivacy),
  924. (@iPending, @iIdActionSetFormFieldsPrivacy),
  925. (@iModerator, @iIdActionSetFormFieldsPrivacy),
  926. (@iAdministrator, @iIdActionSetFormFieldsPrivacy),
  927. (@iPremium, @iIdActionSetFormFieldsPrivacy),
  928. -- view charts
  929. (@iAdministrator, @iIdActionChartView),
  930. -- post links
  931. (@iStandard, @iIdActionPostLinks),
  932. (@iModerator, @iIdActionPostLinks),
  933. (@iAdministrator, @iIdActionPostLinks),
  934. (@iPremium, @iIdActionPostLinks),
  935. -- use macros
  936. (@iModerator, @iIdActionUseMacros),
  937. (@iAdministrator, @iIdActionUseMacros),
  938. -- switch to any profile
  939. (@iAdministrator, @iIdActionSwitchToAnyProfile),
  940. -- show membership levels in privacy groups
  941. (@iAdministrator, @iIdActionShowMembershipLevelsInPrivacyGroups),
  942. -- show membership private info
  943. (@iModerator, @iIdActionShowMembershipPrivateInfo),
  944. (@iAdministrator, @iIdActionShowMembershipPrivateInfo);
  945. CREATE TABLE `sys_acl_levels` (
  946. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  947. `Name` varchar(100) NOT NULL default '',
  948. `Icon` text NOT NULL default '',
  949. `Description` varchar(255) NOT NULL default '',
  950. `Active` enum('yes','no') NOT NULL default 'no',
  951. `Purchasable` enum('yes','no') NOT NULL default 'yes',
  952. `Removable` enum('yes','no') NOT NULL default 'yes',
  953. `QuotaSize` bigint(20) NOT NULL,
  954. `QuotaNumber` int(11) NOT NULL,
  955. `QuotaMaxFileSize` bigint(20) NOT NULL,
  956. `Order` int(11) NOT NULL default '0',
  957. `PasswordExpired` int(11) NOT NULL default '0',
  958. `PasswordExpiredNotify` int(11) NOT NULL default '0',
  959. PRIMARY KEY (`ID`),
  960. UNIQUE KEY `Name` (`Name`),
  961. FULLTEXT KEY `Description` (`Description`)
  962. );
  963. INSERT INTO `sys_acl_levels` (`ID`, `Name`, `Icon`, `Description`, `Active`, `Purchasable`, `Removable`, `QuotaSize`, `QuotaNumber`, `QuotaMaxFileSize`, `Order`) VALUES
  964. (1, '_adm_prm_txt_level_unauthenticated', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 1),
  965. (2, '_adm_prm_txt_level_account', 'user col-green1', '', 'yes', 'no', 'no', 0, 0, 0, 2),
  966. (3, '_adm_prm_txt_level_standard', 'user col-red1', '', 'yes', 'no', 'no', 0, 0, 0, 3),
  967. (4, '_adm_prm_txt_level_unconfirmed', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 4),
  968. (5, '_adm_prm_txt_level_pending', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 5),
  969. (6, '_adm_prm_txt_level_suspended', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 6),
  970. (7, '_adm_prm_txt_level_moderator', 'user-secret col-blue3', '', 'yes', 'no', 'no', 0, 0, 0, 7),
  971. (8, '_adm_prm_txt_level_administrator', 'user-secret col-blue3', '', 'yes', 'no', 'no', 0, 0, 0, 8),
  972. (9, '_adm_prm_txt_level_premium', 'user col-red3', '', 'yes', 'yes', 'no', 0, 0, 0, 9);
  973. -- --------------------------------------------------------
  974. --
  975. -- Table structure for table `boon_sys_sessions`
  976. --
  977. CREATE TABLE IF NOT EXISTS `sys_sessions` (
  978. `id` varchar(32) NOT NULL default '',
  979. `user_id` int(10) unsigned NOT NULL default '0',
  980. `data` text,
  981. `date` int(10) unsigned NOT NULL default '0',
  982. PRIMARY KEY (`id`),
  983. KEY `user_id` (`user_id`),
  984. KEY `date` (`date`)
  985. );
  986. -- --------------------------------------------------------
  987. --
  988. -- Table structure for table `sys_acl_levels_members`
  989. --
  990. CREATE TABLE `sys_acl_levels_members` (
  991. `IDMember` int(10) unsigned NOT NULL default '0',
  992. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  993. `DateStarts` datetime NOT NULL default '0000-00-00 00:00:00',
  994. `DateExpires` datetime default NULL,
  995. `State` varchar(16) NOT NULL default '',
  996. `TransactionID` varchar(16) NOT NULL default '',
  997. PRIMARY KEY (`IDMember`,`IDLevel`,`DateStarts`)
  998. );
  999. -- --------------------------------------------------------
  1000. CREATE TABLE `sys_accounts` (
  1001. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1002. `profile_id` int(10) unsigned NOT NULL,
  1003. `name` varchar(255) NOT NULL,
  1004. `email` varchar(255) NOT NULL,
  1005. `email_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  1006. `phone` varchar(255) NOT NULL,
  1007. `phone_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  1008. `receive_updates` tinyint(4) NOT NULL DEFAULT '1',
  1009. `receive_news` tinyint(4) NOT NULL DEFAULT '1',
  1010. `password` varchar(40) NOT NULL,
  1011. `salt` varchar(10) NOT NULL,
  1012. `role` tinyint(4) NOT NULL DEFAULT '1',
  1013. `lang_id` int(10) unsigned NOT NULL DEFAULT '0',
  1014. `added` int(11) NOT NULL DEFAULT '0',
  1015. `changed` int(11) NOT NULL DEFAULT '0',
  1016. `logged` int(11) NOT NULL DEFAULT '0',
  1017. `ip` varchar(40) NOT NULL DEFAULT '',
  1018. `referred` varchar(255) NOT NULL DEFAULT '',
  1019. `login_attempts` tinyint(4) NOT NULL DEFAULT '0',
  1020. `locked` tinyint(4) NOT NULL DEFAULT '0',
  1021. `password_expired` int(11) NOT NULL DEFAULT '0',
  1022. `active` int(11) NOT NULL DEFAULT '0',
  1023. PRIMARY KEY (`id`),
  1024. UNIQUE KEY `email` (`email`(191)),
  1025. KEY `added` (`added`),
  1026. KEY `profile_id` (`profile_id`)
  1027. );
  1028. CREATE TABLE `sys_accounts_password` (
  1029. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1030. `account_id` int(10) NOT NULL,
  1031. `password` varchar(40) NOT NULL,
  1032. `password_changed` int(11) NOT NULL DEFAULT '0',
  1033. `salt` varchar(10) NOT NULL,
  1034. PRIMARY KEY (`id`)
  1035. );
  1036. CREATE TABLE IF NOT EXISTS `sys_profiles` (
  1037. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1038. `account_id` int(10) unsigned NOT NULL,
  1039. `type` varchar(32) NOT NULL,
  1040. `content_id` int(10) unsigned NOT NULL,
  1041. `cfw_value` int(10) unsigned NOT NULL DEFAULT '2147483647',
  1042. `cfw_items` int(10) unsigned NOT NULL DEFAULT '2147483647',
  1043. `cfu_items` int(10) unsigned NOT NULL DEFAULT '2147483647',
  1044. `cfu_locked` tinyint(4) NOT NULL DEFAULT '0',
  1045. `status` enum('active','pending','suspended') NOT NULL DEFAULT 'active',
  1046. PRIMARY KEY (`id`),
  1047. UNIQUE KEY `account_type_content` (`account_id`,`type`,`content_id`),
  1048. KEY `content_type` (`content_id`,`type`)
  1049. );
  1050. -- --------------------------------------------------------
  1051. --
  1052. -- Table structure for table 'sys_statistics'
  1053. --
  1054. CREATE TABLE `sys_statistics` (
  1055. `id` int(11) unsigned NOT NULL auto_increment,
  1056. `module` varchar(32) NOT NULL default '',
  1057. `name` varchar(64) NOT NULL default '',
  1058. `title` varchar(255) NOT NULL default '',
  1059. `link` varchar(255) NOT NULL default '',
  1060. `icon` varchar(32) NOT NULL default '',
  1061. `query` text NOT NULL default '',
  1062. `order` int(11) NOT NULL default '0',
  1063. PRIMARY KEY (`ID`),
  1064. UNIQUE KEY `name` (`name`)
  1065. );
  1066. INSERT INTO `sys_statistics` (`module`, `name`, `title`, `link`, `icon`, `query`, `order`) VALUES
  1067. ('system', 'sys_accounts', '_sys_accounts', '', 'user', 'SELECT COUNT(*) FROM `sys_accounts` WHERE 1', 1);
  1068. -- --------------------------------------------------------
  1069. --
  1070. -- Table structure for table 'sys_objects_rss'
  1071. --
  1072. CREATE TABLE `sys_objects_rss` (
  1073. `id` int(11) NOT NULL auto_increment,
  1074. `object` varchar(64) NOT NULL,
  1075. `class_name` varchar(32) NOT NULL default '',
  1076. `class_file` varchar(256) NOT NULL default '',
  1077. PRIMARY KEY (`id`)
  1078. );
  1079. INSERT INTO `sys_objects_rss` (`object`, `class_name`, `class_file`) VALUES
  1080. ('sys_boonex', 'BxDolRssBoonEx', ''),
  1081. ('sys_page_block', 'BxDolRssPageBlock', ''),
  1082. ('sys_studio_page_help', 'BxDolStudioRssPageHelp', ''),
  1083. ('sys_studio_module_help', 'BxDolStudioRssModuleHelp', '');
  1084. -- --------------------------------------------------------
  1085. --
  1086. -- Table structure for table 'sys_objects_search'
  1087. --
  1088. CREATE TABLE `sys_objects_search` (
  1089. `ID` int(10) unsigned NOT NULL auto_increment,
  1090. `ObjectName` varchar(64) NOT NULL default '',
  1091. `Title` varchar(50) NOT NULL default '',
  1092. `Order` int(11) NOT NULL,
  1093. `GlobalSearch` tinyint(4) NOT NULL DEFAULT '1',
  1094. `ClassName` varchar(50) NOT NULL default '',
  1095. `ClassPath` varchar(100) NOT NULL default '',
  1096. PRIMARY KEY (`ID`)
  1097. );
  1098. INSERT INTO `sys_objects_search` (`ObjectName`, `Title`, `Order`, `ClassName`, `ClassPath`) VALUES
  1099. ('sys_pages', '_sys_pages', 1, 'BxTemplPagesSearchResult', '');
  1100. -- --------------------------------------------------------
  1101. --
  1102. -- Table structure for table 'sys_objects_search_extended'
  1103. --
  1104. CREATE TABLE `sys_objects_search_extended` (
  1105. `id` int(10) unsigned NOT NULL auto_increment,
  1106. `object` varchar(64) NOT NULL default '',
  1107. `object_content_info` varchar(64) NOT NULL default '',
  1108. `module` varchar(32) NOT NULL default '',
  1109. `title` varchar(255) NOT NULL default '',
  1110. `filter` tinyint(4) NOT NULL DEFAULT '0',
  1111. `active` tinyint(4) NOT NULL DEFAULT '0',
  1112. `class_name` varchar(32) NOT NULL default '',
  1113. `class_file` varchar(255) NOT NULL default '',
  1114. PRIMARY KEY (`id`),
  1115. UNIQUE KEY `object` (`object`)
  1116. );
  1117. -- --------------------------------------------------------
  1118. --
  1119. -- Table structure for table 'sys_search_extended_fields'
  1120. --
  1121. CREATE TABLE `sys_search_extended_fields` (
  1122. `id` int(10) unsigned NOT NULL auto_increment,
  1123. `object` varchar(64) NOT NULL default '',
  1124. `name` varchar(255) NOT NULL default '',
  1125. `type` varchar(32) NOT NULL default '',
  1126. `caption` varchar(255) NOT NULL default '',
  1127. `info` varchar(255) NOT NULL default '',
  1128. `values` text NOT NULL default '',
  1129. `pass` varchar(32) NOT NULL,
  1130. `search_type` varchar(32) NOT NULL default '',
  1131. `search_value` varchar(255) NOT NULL default '',
  1132. `search_operator` varchar(32) NOT NULL default '',
  1133. `active` tinyint(4) NOT NULL DEFAULT '0',
  1134. `order` int(11) NOT NULL default '0',
  1135. PRIMARY KEY (`id`),
  1136. UNIQUE KEY `field` (`object`(64), `name`(127))
  1137. );
  1138. -- --------------------------------------------------------
  1139. --
  1140. -- Table structure for table 'sys_search_extended_fields'
  1141. --
  1142. CREATE TABLE `sys_search_extended_sorting_fields` (
  1143. `id` int(10) unsigned NOT NULL auto_increment,
  1144. `object` varchar(64) NOT NULL default '',
  1145. `name` varchar(255) NOT NULL default '',
  1146. `direction` varchar(32) NOT NULL default '',
  1147. `caption` varchar(255) NOT NULL default '',
  1148. `active` tinyint(4) NOT NULL DEFAULT '0',
  1149. `order` int(11) NOT NULL default '0',
  1150. PRIMARY KEY (`id`),
  1151. UNIQUE KEY `field` (`object`(64), `name`(127) , `direction`(32))
  1152. );
  1153. -- --------------------------------------------------------
  1154. --
  1155. -- Table structure for table `sys_objects_vote`
  1156. --
  1157. CREATE TABLE `sys_objects_vote` (
  1158. `ID` int(11) unsigned NOT NULL auto_increment,
  1159. `Name` varchar(50) NOT NULL default '',
  1160. `Module` varchar(32) NOT NULL default '',
  1161. `TableMain` varchar(50) NOT NULL default '',
  1162. `TableTrack` varchar(50) NOT NULL default '',
  1163. `PostTimeout` int(11) NOT NULL default '0',
  1164. `MinValue` tinyint(4) NOT NULL default '1',
  1165. `MaxValue` tinyint(4) NOT NULL default '5',
  1166. `Pruning` int(11) NOT NULL default '31536000',
  1167. `IsUndo` tinyint(1) NOT NULL default '0',
  1168. `IsOn` tinyint(1) NOT NULL default '1',
  1169. `TriggerTable` varchar(32) NOT NULL default '',
  1170. `TriggerFieldId` varchar(32) NOT NULL default '',
  1171. `TriggerFieldAuthor` varchar(32) NOT NULL default '',
  1172. `TriggerFieldRate` varchar(32) NOT NULL default '',
  1173. `TriggerFieldRateCount` varchar(32) NOT NULL default '',
  1174. `ClassName` varchar(32) NOT NULL default '',
  1175. `ClassFile` varchar(256) NOT NULL default '',
  1176. PRIMARY KEY (`ID`)
  1177. );
  1178. INSERT INTO `sys_objects_vote` (`Name`, `Module`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
  1179. ('sys_cmts', 'system', 'sys_cmts_votes', 'sys_cmts_votes_track', '604800', '1', '1', '0', '1', 'sys_cmts_ids', 'id', 'author_id', 'rate', 'votes', 'BxTemplCmtsVoteLikes', ''),
  1180. ('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', ''),
  1181. ('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', '', ''),
  1182. ('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', '');
  1183. -- --------------------------------------------------------
  1184. --
  1185. -- Table structure for table `sys_objects_score`
  1186. --
  1187. CREATE TABLE `sys_objects_score` (
  1188. `id` int(11) unsigned NOT NULL auto_increment,
  1189. `name` varchar(50) NOT NULL default '',
  1190. `module` varchar(32) NOT NULL,
  1191. `table_main` varchar(50) NOT NULL default '',
  1192. `table_track` varchar(50) NOT NULL default '',
  1193. `post_timeout` int(11) NOT NULL default '0',
  1194. `pruning` int(11) NOT NULL default '31536000',
  1195. `is_on` tinyint(1) NOT NULL default '1',
  1196. `trigger_table` varchar(32) NOT NULL default '',
  1197. `trigger_field_id` varchar(32) NOT NULL default '',
  1198. `trigger_field_author` varchar(32) NOT NULL default '',
  1199. `trigger_field_score` varchar(32) NOT NULL default '',
  1200. `trigger_field_cup` varchar(32) NOT NULL default '',
  1201. `trigger_field_cdown` varchar(32) NOT NULL default '',
  1202. `class_name` varchar(32) NOT NULL default '',
  1203. `class_file` varchar(256) NOT NULL default '',
  1204. PRIMARY KEY (`ID`)
  1205. );
  1206. 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
  1207. ('sys_cmts', 'system', 'sys_cmts_scores', 'sys_cmts_scores_track', '604800', '0', 'sys_cmts_ids', 'id', 'author_id', 'score', 'sc_up', 'sc_down', 'BxTemplCmtsScore', '');
  1208. -- -------------------------------------------------------
  1209. CREATE TABLE `sys_modules` (
  1210. `id` int(11) unsigned NOT NULL auto_increment,
  1211. `type` varchar(16) NOT NULL default 'module',
  1212. `name` varchar(32) NOT NULL default '',
  1213. `title` varchar(255) NOT NULL default '',
  1214. `vendor` varchar(64) NOT NULL default '',
  1215. `version` varchar(32) NOT NULL default '',
  1216. `help_url` varchar(128) NOT NULL default '',
  1217. `path` varchar(255) NOT NULL default '',
  1218. `uri` varchar(32) NOT NULL default '',
  1219. `class_prefix` varchar(32) NOT NULL default '',
  1220. `db_prefix` varchar(32) NOT NULL default '',
  1221. `lang_category` varchar(64) NOT NULL default '',
  1222. `dependencies` varchar(255) NOT NULL default '',
  1223. `date` int(11) unsigned NOT NULL default '0',
  1224. `enabled` tinyint(1) NOT NULL default '0',
  1225. `pending_uninstall` tinyint(4) NOT NULL,
  1226. `hash` varchar(32) NOT NULL default '',
  1227. `updated` int(11) unsigned NOT NULL default '0',
  1228. PRIMARY KEY (`id`),
  1229. UNIQUE KEY `name` (`name`),
  1230. UNIQUE KEY `path` (`path`(191)),
  1231. UNIQUE KEY `uri` (`uri`),
  1232. UNIQUE KEY `class_prefix` (`class_prefix`),
  1233. UNIQUE KEY `db_prefix` (`db_prefix`)
  1234. );
  1235. INSERT INTO `sys_modules` (`type`, `name`, `title`, `vendor`, `version`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `dependencies`, `date`, `enabled`) VALUES
  1236. ('module', 'system', 'System', 'UNA, Inc', '9', '', 'system', 'Bx', 'sys_', 'System', '', UNIX_TIMESTAMP(), 1);
  1237. CREATE TABLE `sys_modules_file_tracks` (
  1238. `id` int(11) unsigned NOT NULL auto_increment,
  1239. `module_id` int(11) unsigned NOT NULL default '0',
  1240. `file` varchar(255) NOT NULL default '',
  1241. `hash` varchar(64) NOT NULL default '',
  1242. PRIMARY KEY (`id`)
  1243. );
  1244. CREATE TABLE `sys_modules_relations` (
  1245. `id` int(11) unsigned NOT NULL auto_increment,
  1246. `module` varchar(32) NOT NULL default '',
  1247. `on_install` varchar(255) NOT NULL default '',
  1248. `on_uninstall` varchar(255) NOT NULL default '',
  1249. `on_enable` varchar(255) NOT NULL default '',
  1250. `on_disable` varchar(255) NOT NULL default '',
  1251. PRIMARY KEY (`id`)
  1252. );
  1253. -- --------------------------------------------------------
  1254. CREATE TABLE IF NOT EXISTS `sys_files` (
  1255. `id` int(11) NOT NULL AUTO_INCREMENT,
  1256. `profile_id` int(10) unsigned NOT NULL,
  1257. `remote_id` varchar(128) NOT NULL,
  1258. `path` varchar(255) NOT NULL,
  1259. `file_name` varchar(255) NOT NULL,
  1260. `mime_type` varchar(128) NOT NULL,
  1261. `ext` varchar(32) NOT NULL,
  1262. `size` bigint(20) NOT NULL,
  1263. `added` int(11) NOT NULL,
  1264. `modified` int(11) NOT NULL,
  1265. `private` int(11) NOT NULL,
  1266. PRIMARY KEY (`id`),
  1267. UNIQUE KEY `remote_id` (`remote_id`)
  1268. );
  1269. CREATE TABLE `sys_images` (
  1270. `id` int(11) NOT NULL AUTO_INCREMENT,
  1271. `profile_id` int(10) unsigned NOT NULL,
  1272. `remote_id` varchar(128) NOT NULL,
  1273. `path` varchar(255) NOT NULL,
  1274. `file_name` varchar(255) NOT NULL,
  1275. `mime_type` varchar(128) NOT NULL,
  1276. `ext` varchar(32) NOT NULL,
  1277. `size` bigint(20) NOT NULL,
  1278. `added` int(11) NOT NULL,
  1279. `modified` int(11) NOT NULL,
  1280. `private` int(11) NOT NULL,
  1281. PRIMARY KEY (`id`),
  1282. UNIQUE KEY `remote_id` (`remote_id`)
  1283. );
  1284. CREATE TABLE `sys_images_custom` (
  1285. `id` int(11) NOT NULL AUTO_INCREMENT,
  1286. `profile_id` int(10) unsigned NOT NULL,
  1287. `remote_id` varchar(128) NOT NULL,
  1288. `path` varchar(255) NOT NULL,
  1289. `file_name` varchar(255) NOT NULL,
  1290. `mime_type` varchar(128) NOT NULL,
  1291. `ext` varchar(32) NOT NULL,
  1292. `size` bigint(20) NOT NULL,
  1293. `added` int(11) NOT NULL,
  1294. `modified` int(11) NOT NULL,
  1295. `private` int(11) NOT NULL,
  1296. PRIMARY KEY (`id`),
  1297. UNIQUE KEY `remote_id` (`remote_id`)
  1298. );
  1299. CREATE TABLE `sys_images_resized` (
  1300. `id` int(11) NOT NULL AUTO_INCREMENT,
  1301. `profile_id` int(10) unsigned NOT NULL,
  1302. `remote_id` varchar(128) NOT NULL,
  1303. `path` varchar(255) NOT NULL,
  1304. `file_name` varchar(255) NOT NULL,
  1305. `mime_type` varchar(128) NOT NULL,
  1306. `ext` varchar(32) NOT NULL,
  1307. `size` bigint(20) NOT NULL,
  1308. `added` int(11) NOT NULL,
  1309. `modified` int(11) NOT NULL,
  1310. `private` int(11) NOT NULL,
  1311. PRIMARY KEY (`id`),
  1312. UNIQUE KEY `remote_id` (`remote_id`)
  1313. );
  1314. CREATE TABLE `sys_images_editor` (
  1315. `id` int(11) NOT NULL AUTO_INCREMENT,
  1316. `profile_id` int(10) unsigned NOT NULL,
  1317. `remote_id` varchar(128) NOT NULL,
  1318. `path` varchar(255) NOT NULL,
  1319. `file_name` varchar(255) NOT NULL,
  1320. `mime_type` varchar(128) NOT NULL,
  1321. `ext` varchar(32) NOT NULL,
  1322. `size` bigint(20) NOT NULL,
  1323. `added` int(11) NOT NULL,
  1324. `modified` int(11) NOT NULL,
  1325. `private` int(11) NOT NULL,
  1326. PRIMARY KEY (`id`),
  1327. UNIQUE KEY `remote_id` (`remote_id`)
  1328. );
  1329. CREATE TABLE `sys_images_editor_resized` (
  1330. `id` int(11) NOT NULL AUTO_INCREMENT,
  1331. `profile_id` int(10) unsigned NOT NULL,
  1332. `remote_id` varchar(128) NOT NULL,
  1333. `path` varchar(255) NOT NULL,
  1334. `file_name` varchar(255) NOT NULL,
  1335. `mime_type` varchar(128) NOT NULL,
  1336. `ext` varchar(32) NOT NULL,
  1337. `size` bigint(20) NOT NULL,
  1338. `added` int(11) NOT NULL,
  1339. `modified` int(11) NOT NULL,
  1340. `private` int(11) NOT NULL,
  1341. PRIMARY KEY (`id`),
  1342. UNIQUE KEY `remote_id` (`remote_id`)
  1343. );
  1344. CREATE TABLE IF NOT EXISTS `sys_wiki_files` (
  1345. `id` int(11) NOT NULL AUTO_INCREMENT,
  1346. `profile_id` int(10) unsigned NOT NULL,
  1347. `remote_id` varchar(128) NOT NULL,
  1348. `path` varchar(255) NOT NULL,
  1349. `file_name` varchar(255) NOT NULL,
  1350. `mime_type` varchar(128) NOT NULL,
  1351. `ext` varchar(32) NOT NULL,
  1352. `size` bigint(20) NOT NULL,
  1353. `added` int(11) NOT NULL,
  1354. `modified` int(11) NOT NULL,
  1355. `private` int(11) NOT NULL,
  1356. PRIMARY KEY (`id`),
  1357. UNIQUE KEY `remote_id` (`remote_id`)
  1358. );
  1359. CREATE TABLE IF NOT EXISTS `sys_wiki_images_resized` (
  1360. `id` int(11) NOT NULL AUTO_INCREMENT,
  1361. `profile_id` int(10) unsigned NOT NULL,
  1362. `remote_id` varchar(128) NOT NULL,
  1363. `path` varchar(255) NOT NULL,
  1364. `file_name` varchar(255) NOT NULL,
  1365. `mime_type` varchar(128) NOT NULL,
  1366. `ext` varchar(32) NOT NULL,
  1367. `size` bigint(20) NOT NULL,
  1368. `added` int(11) NOT NULL,
  1369. `modified` int(11) NOT NULL,
  1370. `private` int(11) NOT NULL,
  1371. PRIMARY KEY (`id`),
  1372. UNIQUE KEY `remote_id` (`remote_id`)
  1373. );
  1374. -- --------------------------------------------------------
  1375. CREATE TABLE IF NOT EXISTS `sys_cmts_images` (
  1376. `id` int(11) NOT NULL AUTO_INCREMENT,
  1377. `profile_id` int(10) unsigned NOT NULL,
  1378. `remote_id` varchar(128) NOT NULL,
  1379. `path` varchar(255) NOT NULL,
  1380. `file_name` varchar(255) NOT NULL,
  1381. `mime_type` varchar(128) NOT NULL,
  1382. `ext` varchar(32) NOT NULL,
  1383. `size` bigint(20) NOT NULL,
  1384. `added` int(11) NOT NULL,
  1385. `modified` int(11) NOT NULL,
  1386. `private` int(11) NOT NULL,
  1387. PRIMARY KEY (`id`),
  1388. UNIQUE KEY `remote_id` (`remote_id`)
  1389. );
  1390. CREATE TABLE IF NOT EXISTS `sys_cmts_images_preview` (
  1391. `id` int(11) NOT NULL AUTO_INCREMENT,
  1392. `profile_id` int(10) unsigned NOT NULL,
  1393. `remote_id` varchar(128) NOT NULL,
  1394. `path` varchar(255) NOT NULL,
  1395. `file_name` varchar(255) NOT NULL,
  1396. `mime_type` varchar(128) NOT NULL,
  1397. `ext` varchar(32) NOT NULL,
  1398. `size` bigint(20) NOT NULL,
  1399. `added` int(11) NOT NULL,
  1400. `modified` int(11) NOT NULL,
  1401. `private` int(11) NOT NULL,
  1402. PRIMARY KEY (`id`),
  1403. UNIQUE KEY `remote_id` (`remote_id`)
  1404. );
  1405. CREATE TABLE IF NOT EXISTS `sys_cmts_images2entries` (
  1406. `id` int(11) NOT NULL AUTO_INCREMENT,
  1407. `system_id` int(11) NOT NULL DEFAULT '0',
  1408. `cmt_id` int(11) NOT NULL DEFAULT '0',
  1409. `image_id` int(11) NOT NULL DEFAULT '0',
  1410. PRIMARY KEY (`id`),
  1411. UNIQUE KEY `image` (`system_id`,`cmt_id`,`image_id`)
  1412. );
  1413. CREATE TABLE IF NOT EXISTS `sys_cmts_ids` (
  1414. `id` int(11) NOT NULL AUTO_INCREMENT,
  1415. `system_id` int(11) NOT NULL DEFAULT '0',
  1416. `cmt_id` int(11) NOT NULL DEFAULT '0',
  1417. `author_id` int(11) NOT NULL DEFAULT '0',
  1418. `rate` float NOT NULL default '0',
  1419. `votes` int(11) NOT NULL default '0',
  1420. `rrate` float NOT NULL default '0',
  1421. `rvotes` int(11) NOT NULL default '0',
  1422. `score` int(11) NOT NULL default '0',
  1423. `sc_up` int(11) NOT NULL default '0',
  1424. `sc_down` int(11) NOT NULL default '0',
  1425. `reports` int(11) NOT NULL default '0',
  1426. `status_admin` enum('active','hidden','pending') NOT NULL DEFAULT 'active',
  1427. PRIMARY KEY (`id`),
  1428. UNIQUE KEY `system_cmt_id` (`system_id`,`cmt_id`)
  1429. );
  1430. CREATE TABLE IF NOT EXISTS `sys_cmts_meta_keywords` (
  1431. `id` int(11) NOT NULL AUTO_INCREMENT,
  1432. `object_id` int(10) unsigned NOT NULL,
  1433. `keyword` varchar(255) NOT NULL,
  1434. PRIMARY KEY (`id`),
  1435. KEY `object_id` (`object_id`),
  1436. KEY `keyword` (`keyword`)
  1437. );
  1438. CREATE TABLE IF NOT EXISTS `sys_cmts_meta_mentions` (
  1439. `id` int(11) NOT NULL AUTO_INCREMENT,
  1440. `object_id` int(10) unsigned NOT NULL,
  1441. `profile_id` int(10) unsigned NOT NULL,
  1442. PRIMARY KEY (`id`),
  1443. KEY `object_id` (`object_id`),
  1444. KEY `profile_id` (`profile_id`)
  1445. );
  1446. CREATE TABLE IF NOT EXISTS `sys_cmts_votes` (
  1447. `id` int(11) NOT NULL AUTO_INCREMENT,
  1448. `object_id` int(11) NOT NULL default '0',
  1449. `count` int(11) NOT NULL default '0',
  1450. `sum` int(11) NOT NULL default '0',
  1451. PRIMARY KEY (`id`),
  1452. UNIQUE KEY `object_id` (`object_id`)
  1453. );
  1454. CREATE TABLE IF NOT EXISTS `sys_cmts_votes_track` (
  1455. `id` int(11) NOT NULL AUTO_INCREMENT,
  1456. `object_id` int(11) NOT NULL default '0',
  1457. `author_id` int(11) NOT NULL default '0',
  1458. `author_nip` int(11) unsigned NOT NULL default '0',
  1459. `value` tinyint(4) NOT NULL default '0',
  1460. `date` int(11) NOT NULL default '0',
  1461. PRIMARY KEY (`id`),
  1462. KEY `vote` (`object_id`, `author_nip`)
  1463. );
  1464. CREATE TABLE IF NOT EXISTS `sys_cmts_reactions` (
  1465. `id` int(11) NOT NULL AUTO_INCREMENT,
  1466. `object_id` int(11) NOT NULL default '0',
  1467. `reaction` varchar(32) NOT NULL default '',
  1468. `count` int(11) NOT NULL default '0',
  1469. `sum` int(11) NOT NULL default '0',
  1470. PRIMARY KEY (`id`),
  1471. UNIQUE KEY `reaction` (`object_id`, `reaction`)
  1472. );
  1473. CREATE TABLE IF NOT EXISTS `sys_cmts_reactions_track` (
  1474. `id` int(11) NOT NULL AUTO_INCREMENT,
  1475. `object_id` int(11) NOT NULL default '0',
  1476. `author_id` int(11) NOT NULL default '0',
  1477. `author_nip` int(11) unsigned NOT NULL default '0',
  1478. `reaction` varchar(32) NOT NULL default '',
  1479. `value` tinyint(4) NOT NULL default '0',
  1480. `date` int(11) NOT NULL default '0',
  1481. PRIMARY KEY (`id`),
  1482. KEY `vote` (`object_id`, `author_nip`)
  1483. );
  1484. CREATE TABLE IF NOT EXISTS `sys_form_fields_votes` (
  1485. `id` int(11) NOT NULL AUTO_INCREMENT,
  1486. `object_id` int(11) NOT NULL default '0',
  1487. `count` int(11) NOT NULL default '0',
  1488. `sum` int(11) NOT NULL default '0',
  1489. PRIMARY KEY (`id`),
  1490. UNIQUE KEY `object_id` (`object_id`)
  1491. );
  1492. CREATE TABLE IF NOT EXISTS `sys_form_fields_votes_track` (
  1493. `id` int(11) NOT NULL AUTO_INCREMENT,
  1494. `object_id` int(11) NOT NULL default '0',
  1495. `author_id` int(11) NOT NULL default '0',
  1496. `author_nip` int(11) unsigned NOT NULL default '0',
  1497. `value` tinyint(4) NOT NULL default '0',
  1498. `date` int(11) NOT NULL default '0',
  1499. PRIMARY KEY (`id`),
  1500. KEY `vote` (`object_id`, `author_nip`)
  1501. );
  1502. CREATE TABLE IF NOT EXISTS `sys_form_fields_reaction` (
  1503. `id` int(11) NOT NULL AUTO_INCREMENT,
  1504. `object_id` int(11) NOT NULL default '0',
  1505. `reaction` varchar(32) NOT NULL default '',
  1506. `count` int(11) NOT NULL default '0',
  1507. `sum` int(11) NOT NULL default '0',
  1508. PRIMARY KEY (`id`),
  1509. UNIQUE KEY `reaction` (`object_id`, `reaction`)
  1510. );
  1511. CREATE TABLE IF NOT EXISTS `sys_form_fields_reaction_track` (
  1512. `id` int(11) NOT NULL AUTO_INCREMENT,
  1513. `object_id` int(11) NOT NULL default '0',
  1514. `author_id` int(11) NOT NULL default '0',
  1515. `author_nip` int(11) unsigned NOT NULL default '0',
  1516. `reaction` varchar(32) NOT NULL default '',
  1517. `value` tinyint(4) NOT NULL default '0',
  1518. `date` int(11) NOT NULL default '0',
  1519. PRIMARY KEY (`id`),
  1520. KEY `vote` (`object_id`, `author_nip`)
  1521. );
  1522. CREATE TABLE IF NOT EXISTS `sys_cmts_reports` (
  1523. `id` int(11) NOT NULL AUTO_INCREMENT,
  1524. `object_id` int(11) NOT NULL default '0',
  1525. `count` int(11) NOT NULL default '0',
  1526. PRIMARY KEY (`id`),
  1527. UNIQUE KEY `object_id` (`object_id`)
  1528. );
  1529. CREATE TABLE IF NOT EXISTS `sys_cmts_reports_track` (
  1530. `id` int(11) NOT NULL AUTO_INCREMENT,
  1531. `object_id` int(11) NOT NULL default '0',
  1532. `author_id` int(11) NOT NULL default '0',
  1533. `author_nip` int(11) unsigned NOT NULL default '0',
  1534. `type` varchar(32) NOT NULL default '',
  1535. `text` text NOT NULL default '',
  1536. `date` int(11) NOT NULL default '0',
  1537. `checked_by` int(11) NOT NULL default '0',
  1538. `status` tinyint(11) NOT NULL default '0',
  1539. PRIMARY KEY (`id`),
  1540. KEY `report` (`object_id`, `author_nip`)
  1541. );
  1542. CREATE TABLE IF NOT EXISTS `sys_cmts_scores` (
  1543. `id` int(11) NOT NULL AUTO_INCREMENT,
  1544. `object_id` int(11) NOT NULL default '0',
  1545. `count_up` int(11) NOT NULL default '0',
  1546. `count_down` int(11) NOT NULL default '0',
  1547. PRIMARY KEY (`id`),
  1548. UNIQUE KEY `object_id` (`object_id`)
  1549. );
  1550. CREATE TABLE IF NOT EXISTS `sys_cmts_scores_track` (
  1551. `id` int(11) NOT NULL AUTO_INCREMENT,
  1552. `object_id` int(11) NOT NULL default '0',
  1553. `author_id` int(11) NOT NULL default '0',
  1554. `author_nip` int(11) unsigned NOT NULL default '0',
  1555. `type` varchar(8) NOT NULL default '',
  1556. `date` int(11) NOT NULL default '0',
  1557. PRIMARY KEY (`id`),
  1558. KEY `vote` (`object_id`, `author_nip`)
  1559. );
  1560. -- --------------------------------------------------------
  1561. CREATE TABLE `sys_injections` (
  1562. `id` int(11) unsigned NOT NULL auto_increment,
  1563. `name` varchar(128) NOT NULL default '',
  1564. `page_index` int(11) NOT NULL default '0',
  1565. `key` varchar(128) NOT NULL default '',
  1566. `type` enum('text', 'service') NOT NULL default 'text',
  1567. `data` text NOT NULL default '',
  1568. `replace` TINYINT NOT NULL DEFAULT '0',
  1569. `active` TINYINT NOT NULL DEFAULT '1',
  1570. PRIMARY KEY (`id`)
  1571. );
  1572. INSERT INTO `sys_injections`(`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
  1573. ('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),
  1574. ('sys_head', 0, 'injection_head', 'text', '', 0, 1),
  1575. ('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),
  1576. ('sys_body', 0, 'injection_footer', 'text', '', 0, 1);
  1577. -- --------------------------------------------------------
  1578. CREATE TABLE `sys_injections_admin` (
  1579. `id` int(11) unsigned NOT NULL auto_increment,
  1580. `name` varchar(128) NOT NULL default '',
  1581. `page_index` int(11) NOT NULL default '0',
  1582. `key` varchar(128) NOT NULL default '',
  1583. `type` enum('text','service') NOT NULL default 'text',
  1584. `data` text NOT NULL,
  1585. `replace` tinyint(4) NOT NULL default '0',
  1586. `active` tinyint(4) NOT NULL default '1',
  1587. PRIMARY KEY (`id`)
  1588. );
  1589. -- --------------------------------------------------------
  1590. CREATE TABLE `sys_permalinks` (
  1591. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1592. `standard` varchar(128) NOT NULL DEFAULT '',
  1593. `permalink` varchar(128) NOT NULL DEFAULT '',
  1594. `check` varchar(64) NOT NULL DEFAULT '',
  1595. `compare_by_prefix` tinyint(4) NOT NULL DEFAULT '0',
  1596. PRIMARY KEY (`id`),
  1597. UNIQUE KEY `check` (`standard`(80),`permalink`(80),`check`(30))
  1598. );
  1599. INSERT INTO `sys_permalinks` (`standard`, `permalink`, `check`, `compare_by_prefix`) VALUES
  1600. ('page.php?i=', 'page/', 'permalinks_pages', 1),
  1601. ('modules/?r=', 'm/', 'permalinks_modules', 1),
  1602. ('storage.php?o=', 's/', 'permalinks_storage', 1);
  1603. -- --------------------------------------------------------
  1604. CREATE TABLE `sys_audit` (
  1605. `id` int(11) unsigned NOT NULL auto_increment,
  1606. `added` int(11) NOT NULL,
  1607. `profile_id` int(10) NOT NULL,
  1608. `profile_title` varchar(255) NOT NULL,
  1609. `content_id` int(10) NOT NULL,
  1610. `content_title` varchar(255) NOT NULL,
  1611. `content_module` varchar(32) NOT NULL default '',
  1612. `content_info_object` varchar(32) NOT NULL default '',
  1613. `context_profile_id` int(10) NOT NULL,
  1614. `context_profile_title` varchar(255) NOT NULL,
  1615. `action_lang_key` varchar(255) NOT NULL,
  1616. `action_lang_key_params` text NOT NULL,
  1617. `extras` text NOT NULL,
  1618. PRIMARY KEY (`id`)
  1619. );
  1620. CREATE TABLE `sys_alerts_handlers` (
  1621. `id` int(11) unsigned NOT NULL auto_increment,
  1622. `name` varchar(128) NOT NULL default '',
  1623. `class` varchar(128) NOT NULL default '',
  1624. `file` varchar(255) NOT NULL default '',
  1625. `service_call` text NOT NULL default '',
  1626. `active` tinyint(4) NOT NULL default '1',
  1627. PRIMARY KEY (`id`),
  1628. UNIQUE KEY `name` (`name`)
  1629. );
  1630. CREATE TABLE `sys_alerts` (
  1631. `id` int(11) unsigned NOT NULL auto_increment,
  1632. `unit` varchar(128) NOT NULL default '',
  1633. `action` varchar(32) NOT NULL default 'none',
  1634. `handler_id` int(11) NOT NULL default '0',
  1635. PRIMARY KEY (`id`),
  1636. UNIQUE KEY `alert_handler` (`unit`, `action`, `handler_id`)
  1637. );
  1638. CREATE TABLE `sys_alerts_cache_triggers` (
  1639. `id` int(11) UNSIGNED NOT NULL auto_increment,
  1640. `unit` varchar(128) NOT NULL DEFAULT '',
  1641. `action` varchar(32) NOT NULL DEFAULT '',
  1642. `cache_key` varchar(255) NOT NULL DEFAULT '',
  1643. PRIMARY KEY (`id`)
  1644. );
  1645. INSERT INTO `sys_alerts_cache_triggers` (`unit`, `action`, `cache_key`) VALUES
  1646. ('sys_profiles_subscriptions', 'connection_added', 'menu_sys_profile_stats_profile-stats-subscribed-me_{content}_{_hash}.php');
  1647. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1648. ('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";}');
  1649. SET @iIdHandler = LAST_INSERT_ID();
  1650. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1651. ('system', 'save_setting', @iIdHandler);
  1652. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1653. ('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";}');
  1654. SET @iIdHandler = LAST_INSERT_ID();
  1655. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1656. ('sys_images_custom', 'file_deleted', @iIdHandler);
  1657. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1658. ('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";}');
  1659. SET @iIdHandler = LAST_INSERT_ID();
  1660. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1661. ('system', 'save_setting', @iIdHandler);
  1662. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1663. ('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";}');
  1664. SET @iHandler = LAST_INSERT_ID();
  1665. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1666. ('system', 'save_setting', @iHandler);
  1667. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1668. ('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";}');
  1669. SET @iHandler = LAST_INSERT_ID();
  1670. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1671. ('system', 'installed', @iHandler);
  1672. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1673. ('sys_connections', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:26:"alert_response_connections";s:5:"class";s:23:"TemplServiceConnections";}');
  1674. SET @iHandler = LAST_INSERT_ID();
  1675. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1676. ('sys_profiles_friends', 'connection_added', @iHandler),
  1677. ('sys_profiles_friends', 'connection_removed', @iHandler);
  1678. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1679. ('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";}');
  1680. SET @iIdHandler = LAST_INSERT_ID();
  1681. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1682. ('sys_cmts_images', 'file_deleted', @iIdHandler);
  1683. -- --------------------------------------------------------
  1684. CREATE TABLE `sys_badges` (
  1685. `id` int(11) unsigned NOT NULL auto_increment,
  1686. `added` int(11) NOT NULL,
  1687. `module` varchar(32) NOT NULL default '',
  1688. `text` varchar(255) NOT NULL default '',
  1689. `icon` text NOT NULL default '',
  1690. `color` varchar(32) NOT NULL default '',
  1691. `fontcolor` varchar(32) NOT NULL default '',
  1692. `is_icon_only` tinyint(4) NOT NULL default '1',
  1693. PRIMARY KEY (`id`)
  1694. );
  1695. CREATE TABLE `sys_badges2objects` (
  1696. `id` int(11) unsigned NOT NULL auto_increment,
  1697. `badge_id` int(11) NOT NULL,
  1698. `object_id` int(11) NOT NULL,
  1699. `module` varchar(32) NOT NULL,
  1700. `added` int(11) NOT NULL,
  1701. PRIMARY KEY (`id`),
  1702. UNIQUE KEY `badge_object` (`object_id`, `badge_id`)
  1703. );
  1704. -- --------------------------------------------------------
  1705. CREATE TABLE `sys_objects_report` (
  1706. `id` int(11) NOT NULL auto_increment,
  1707. `name` varchar(64) NOT NULL,
  1708. `module` varchar(32) NOT NULL default '',
  1709. `table_main` varchar(32) NOT NULL,
  1710. `table_track` varchar(32) NOT NULL,
  1711. `pruning` int(11) NOT NULL default '31536000',
  1712. `is_on` tinyint(4) NOT NULL default '1',
  1713. `base_url` varchar(256) NOT NULL default '',
  1714. `object_comment` varchar(64) NOT NULL,
  1715. `trigger_table` varchar(32) NOT NULL,
  1716. `trigger_field_id` varchar(32) NOT NULL,
  1717. `trigger_field_author` varchar(32) NOT NULL,
  1718. `trigger_field_count` varchar(32) NOT NULL,
  1719. `class_name` varchar(32) NOT NULL default '',
  1720. `class_file` varchar(256) NOT NULL default '',
  1721. PRIMARY KEY (`id`)
  1722. );
  1723. 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
  1724. ('sys_cmts', 'system', 'sys_cmts_reports', 'sys_cmts_reports_track', '1', '', 'sys_cmts_ids', 'id', 'author_id', 'reports', '', '');
  1725. -- --------------------------------------------------------
  1726. CREATE TABLE `sys_objects_view` (
  1727. `id` int(11) NOT NULL auto_increment,
  1728. `name` varchar(64) NOT NULL,
  1729. `module` varchar(32) NOT NULL default '',
  1730. `table_track` varchar(32) NOT NULL,
  1731. `period` int(11) NOT NULL default '86400',
  1732. `pruning` int(11) NOT NULL default '31536000',
  1733. `is_on` tinyint(4) NOT NULL default '1',
  1734. `trigger_table` varchar(32) NOT NULL,
  1735. `trigger_field_id` varchar(32) NOT NULL,
  1736. `trigger_field_author` varchar(32) NOT NULL,
  1737. `trigger_field_count` varchar(32) NOT NULL,
  1738. `class_name` varchar(32) NOT NULL default '',
  1739. `class_file` varchar(256) NOT NULL default '',
  1740. PRIMARY KEY (`id`)
  1741. );
  1742. -- --------------------------------------------------------
  1743. CREATE TABLE `sys_objects_favorite` (
  1744. `id` int(11) NOT NULL auto_increment,
  1745. `name` varchar(64) NOT NULL,
  1746. `table_track` varchar(32) NOT NULL,
  1747. `table_lists` varchar(32) NOT NULL,
  1748. `pruning` int(11) NOT NULL default '31536000',
  1749. `is_on` tinyint(4) NOT NULL default '1',
  1750. `is_undo` tinyint(4) NOT NULL default '1',
  1751. `is_public` tinyint(4) NOT NULL default '1',
  1752. `base_url` varchar(256) NOT NULL default '',
  1753. `trigger_table` varchar(32) NOT NULL,
  1754. `trigger_field_id` varchar(32) NOT NULL,
  1755. `trigger_field_author` varchar(32) NOT NULL,
  1756. `trigger_field_count` varchar(32) NOT NULL,
  1757. `class_name` varchar(32) NOT NULL default '',
  1758. `class_file` varchar(256) NOT NULL default '',
  1759. PRIMARY KEY (`id`)
  1760. );
  1761. -- --------------------------------------------------------
  1762. CREATE TABLE `sys_objects_feature` (
  1763. `id` int(11) NOT NULL auto_increment,
  1764. `name` varchar(64) NOT NULL,
  1765. `module` varchar(32) NOT NULL default '',
  1766. `is_on` tinyint(4) NOT NULL default '1',
  1767. `is_undo` tinyint(4) NOT NULL default '1',
  1768. `base_url` varchar(256) NOT NULL default '',
  1769. `trigger_table` varchar(32) NOT NULL,
  1770. `trigger_field_id` varchar(32) NOT NULL,
  1771. `trigger_field_author` varchar(32) NOT NULL,
  1772. `trigger_field_flag` varchar(32) NOT NULL,
  1773. `class_name` varchar(32) NOT NULL default '',
  1774. `class_file` varchar(256) NOT NULL default '',
  1775. PRIMARY KEY (`id`)
  1776. );
  1777. -- --------------------------------------------------------
  1778. CREATE TABLE `sys_objects_chart` (
  1779. `id` int(11) NOT NULL AUTO_INCREMENT,
  1780. `object` varchar(32) NOT NULL,
  1781. `title` varchar(255) NOT NULL,
  1782. `table` varchar(255) NOT NULL,
  1783. `field_date_ts` varchar(255) NOT NULL,
  1784. `field_date_dt` varchar(255) NOT NULL,
  1785. `field_status` varchar(255) NOT NULL,
  1786. `column_date` int(11) NOT NULL DEFAULT '0',
  1787. `column_count` int(11) NOT NULL DEFAULT '1',
  1788. `type` varchar(255) NOT NULL,
  1789. `options` text NOT NULL,
  1790. `query` text NOT NULL,
  1791. `active` tinyint(4) NOT NULL DEFAULT '1',
  1792. `order` int(11) NOT NULL,
  1793. `class_name` varchar(32) NOT NULL default '',
  1794. `class_file` varchar(256) NOT NULL default '',
  1795. PRIMARY KEY (`id`),
  1796. UNIQUE KEY `object` (`object`)
  1797. );
  1798. INSERT INTO `sys_objects_chart` (`object`, `title`, `table`, `field_date_ts`, `field_date_dt`, `field_status`, `query`, `active`, `order`, `class_name`, `class_file`) VALUES
  1799. ('sys_accounts_growth', '_sys_chart_accounts_growth', 'sys_accounts', 'added', '', '', '', 1, 1, 'BxDolChartGrowth', ''),
  1800. ('sys_accounts_growth_speed', '_sys_chart_accounts_growth_speed', 'sys_accounts', 'added', '', '', '', 1, 1, 'BxDolChartGrowthSpeed', '');
  1801. -- --------------------------------------------------------
  1802. CREATE TABLE `sys_objects_content_info` (
  1803. `id` int(11) NOT NULL auto_increment,
  1804. `name` varchar(64) NOT NULL,
  1805. `title` varchar(128) NOT NULL,
  1806. `alert_unit` varchar(32) NOT NULL,
  1807. `alert_action_add` varchar(32) NOT NULL,
  1808. `alert_action_update` varchar(32) NOT NULL,
  1809. `alert_action_delete` varchar(32) NOT NULL,
  1810. `class_name` varchar(32) NOT NULL default '',
  1811. `class_file` varchar(256) NOT NULL default '',
  1812. PRIMARY KEY (`id`),
  1813. UNIQUE KEY `name` (`name`),
  1814. UNIQUE KEY `alert_add` (`alert_unit` ,`alert_action_add`),
  1815. UNIQUE KEY `alert_update` (`alert_unit` ,`alert_action_update`),
  1816. UNIQUE KEY `alert_delete` (`alert_unit` ,`alert_action_delete`)
  1817. );
  1818. -- --------------------------------------------------------
  1819. CREATE TABLE `sys_content_info_grids` (
  1820. `id` int(11) NOT NULL auto_increment,
  1821. `object` varchar(64) NOT NULL,
  1822. `grid_object` varchar(64) NOT NULL,
  1823. `grid_field_id` varchar(64) NOT NULL,
  1824. `condition` text NOT NULL default '',
  1825. `selection` varchar(256) NOT NULL default '',
  1826. PRIMARY KEY (`id`),
  1827. UNIQUE KEY `grid_object` (`grid_object`)
  1828. );
  1829. -- --------------------------------------------------------
  1830. CREATE TABLE `sys_objects_privacy` (
  1831. `id` int(11) NOT NULL auto_increment,
  1832. `object` varchar(64) NOT NULL default '',
  1833. `module` varchar(64) NOT NULL default '',
  1834. `action` varchar(255) NOT NULL default '',
  1835. `title` varchar(255) NOT NULL default '',
  1836. `default_group` varchar(255) NOT NULL default '1',
  1837. `spaces` varchar(255) NOT NULL DEFAULT 'all',
  1838. `table` varchar(255) NOT NULL default '',
  1839. `table_field_id` varchar(255) NOT NULL default '',
  1840. `table_field_author` varchar(255) NOT NULL default '',
  1841. `override_class_name` varchar(255) NOT NULL default '',
  1842. `override_class_file` varchar(255) NOT NULL default '',
  1843. PRIMARY KEY (`id`),
  1844. UNIQUE KEY `object` (`object`),
  1845. UNIQUE KEY `action` (`module`(64), `action`(127))
  1846. );
  1847. 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
  1848. ('sys_form_inputs_allow_view_to', 'system', 'view', '_sys_privacy_forms_input_allow_view_to', '3', 'sys_form_inputs_privacy', 'id', 'author_id', '', '');
  1849. CREATE TABLE `sys_privacy_defaults` (
  1850. `owner_id` int(11) NOT NULL default '0',
  1851. `action_id` int(11) NOT NULL default '0',
  1852. `group_id` int(11) NOT NULL default '0',
  1853. PRIMARY KEY (`owner_id`, `action_id`)
  1854. );
  1855. CREATE TABLE `sys_privacy_groups` (
  1856. `id` int(11) unsigned NOT NULL auto_increment,
  1857. `title` varchar(255) NOT NULL default '',
  1858. `check` text NOT NULL default '',
  1859. `active` tinyint(4) NOT NULL default '1',
  1860. `visible` tinyint(4) NOT NULL default '1',
  1861. PRIMARY KEY (`id`)
  1862. );
  1863. INSERT INTO `sys_privacy_groups`(`id`, `title`, `check`, `active`, `visible`) VALUES
  1864. ('1', '', '', 1, 0),
  1865. ('2', '_sys_ps_group_title_me_only', '@me_only', 1, 1),
  1866. ('3', '_sys_ps_group_title_public', '@public', 1, 1),
  1867. ('4', '_sys_ps_group_title_members', '@members', 0, 0),
  1868. ('5', '_sys_ps_group_title_friends', '@friends', 1, 1),
  1869. ('6', '_sys_ps_group_title_friends_selected', '@friends_selected_by_object', 1, 1),
  1870. ('7', '_sys_ps_group_title_relations', '@relations', 1, 1),
  1871. ('8', '_sys_ps_group_title_relations_selected', '@relations_selected_by_object', 1, 1),
  1872. ('9', '_sys_ps_group_title_memberships_selected', '@memberships_selected_by_object', 1, 1),
  1873. ('99', '_sys_ps_group_title_custom', '@custom_by_object', 0, 0);
  1874. CREATE TABLE `sys_privacy_groups_custom` (
  1875. `id` int(11) unsigned NOT NULL auto_increment,
  1876. `profile_id` int(11) NOT NULL default '0',
  1877. `content_id` int(11) NOT NULL default '0',
  1878. `object` varchar(64) NOT NULL default '',
  1879. `group_id` int(11) NOT NULL default '0',
  1880. PRIMARY KEY (`id`),
  1881. UNIQUE KEY `content_privacy` (`profile_id`, `content_id`, `object`)
  1882. );
  1883. CREATE TABLE `sys_privacy_groups_custom_members` (
  1884. `group_id` int(11) NOT NULL default '0',
  1885. `member_id` int(11) NOT NULL default '0',
  1886. PRIMARY KEY (`group_id`, `member_id`)
  1887. );
  1888. CREATE TABLE `sys_privacy_groups_custom_memberships` (
  1889. `group_id` int(11) NOT NULL default '0',
  1890. `membership_id` int(11) NOT NULL default '0',
  1891. PRIMARY KEY (`group_id`, `membership_id`)
  1892. );
  1893. -- --------------------------------------------------------
  1894. CREATE TABLE `sys_objects_recommendation` (
  1895. `id` int(11) NOT NULL auto_increment,
  1896. `name` varchar(64) NOT NULL default '',
  1897. `module` varchar(64) NOT NULL default '',
  1898. `connection` varchar(64) NOT NULL default '',
  1899. `content_info` varchar(64) NOT NULL default '',
  1900. `countable` tinyint(4) NOT NULL DEFAULT '1',
  1901. `active` tinyint(4) NOT NULL DEFAULT '1',
  1902. `class_name` varchar(32) NOT NULL default '',
  1903. `class_file` varchar(256) NOT NULL default '',
  1904. PRIMARY KEY (`id`),
  1905. UNIQUE KEY `name` (`name`)
  1906. );
  1907. CREATE TABLE `sys_recommendation_criteria` (
  1908. `id` int(11) NOT NULL auto_increment,
  1909. `object_id` int(11) NOT NULL default '0',
  1910. `name` varchar(64) NOT NULL default '',
  1911. `source_type` enum ('sql', 'service') NOT NULL,
  1912. `source` text NOT NULL,
  1913. `params` text NOT NULL,
  1914. `weight` float NOT NULL default '0',
  1915. `active` tinyint(4) NOT NULL DEFAULT '1',
  1916. PRIMARY KEY (`id`),
  1917. UNIQUE KEY `criterion` (`object_id`, `name`)
  1918. );
  1919. INSERT INTO `sys_objects_recommendation` (`name`, `module`, `connection`, `content_info`, `countable`, `active`, `class_name`, `class_file`) VALUES
  1920. ('sys_friends', 'system', 'sys_profiles_friends', '', 1, 1, 'BxTemplRecommendationProfile', '');
  1921. SET @iRecFriends = LAST_INSERT_ID();
  1922. INSERT INTO `sys_recommendation_criteria` (`object_id`, `name`, `source_type`, `source`, `params`, `weight`, `active`) VALUES
  1923. (@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),
  1924. (@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),
  1925. (@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),
  1926. (@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);
  1927. INSERT INTO `sys_objects_recommendation` (`name`, `module`, `connection`, `content_info`, `countable`, `active`, `class_name`, `class_file`) VALUES
  1928. ('sys_subscriptions', 'system', 'sys_profiles_subscriptions', '', 1, 1, 'BxTemplRecommendationProfile', '');
  1929. SET @iRecSubscriptions = LAST_INSERT_ID();
  1930. INSERT INTO `sys_recommendation_criteria` (`object_id`, `name`, `source_type`, `source`, `params`, `weight`, `active`) VALUES
  1931. (@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),
  1932. (@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);
  1933. CREATE TABLE `sys_recommendation_data` (
  1934. `id` int(11) NOT NULL auto_increment,
  1935. `profile_id` int(11) NOT NULL default '0',
  1936. `object_id` int(11) NOT NULL default '0',
  1937. `item_id` int(11) NOT NULL default '0',
  1938. `item_type` varchar(64) NOT NULL default '',
  1939. `item_value` int(11) NOT NULL default '0',
  1940. `item_reducer` int(11) NOT NULL default '0',
  1941. PRIMARY KEY (`id`),
  1942. UNIQUE KEY `recommendation` (`profile_id`, `object_id`, `item_id`)
  1943. );
  1944. -- --------------------------------------------------------
  1945. CREATE TABLE `sys_cron_jobs` (
  1946. `id` int(11) unsigned NOT NULL auto_increment,
  1947. `name` varchar(128) NOT NULL default '',
  1948. `time` varchar(128) NOT NULL default '*',
  1949. `class` varchar(128) NOT NULL default '',
  1950. `file` varchar(255) NOT NULL default '',
  1951. `service_call` text NOT NULL default '',
  1952. `ts` int(11) NOT NULL,
  1953. `timing` float NOT NULL,
  1954. PRIMARY KEY (`id`)
  1955. );
  1956. INSERT INTO `sys_cron_jobs` (`name`, `time`, `class`, `file`, `service_call`) VALUES
  1957. ('pruning', '0 0 * * *', 'BxDolCronPruning', 'inc/classes/BxDolCronPruning.php', ''),
  1958. ('sys_acl', '0 0 * * *', 'BxDolCronAcl', 'inc/classes/BxDolCronAcl.php', ''),
  1959. ('sys_account', '0 0 * * *', 'BxDolCronAccount', 'inc/classes/BxDolCronAccount.php', ''),
  1960. ('sys_profile', '0 0 * * *', 'BxDolCronProfile', 'inc/classes/BxDolCronProfile.php', ''),
  1961. ('sys_upgrade', '0 3 * * *', 'BxDolCronUpgradeCheck', 'inc/classes/BxDolCronUpgradeCheck.php', ''),
  1962. ('sys_upgrade_modules', '30 2 * * *', 'BxDolCronUpgradeModulesCheck', 'inc/classes/BxDolCronUpgradeModulesCheck.php', ''),
  1963. ('sys_storage', '* * * * *', 'BxDolCronStorage', 'inc/classes/BxDolCronStorage.php', ''),
  1964. ('sys_transcoder', '* * * * *', 'BxDolCronTranscoder', 'inc/classes/BxDolCronTranscoder.php', ''),
  1965. ('sys_queue_email', '* * * * *', 'BxDolCronQueueEmail', 'inc/classes/BxDolCronQueueEmail.php', ''),
  1966. ('sys_queue_push', '* * * * *', 'BxDolCronQueuePush', 'inc/classes/BxDolCronQueuePush.php', ''),
  1967. ('sys_audit_clean', '* * * * *', 'BxDolCronAudit', 'inc/classes/BxDolCronAudit.php', '');
  1968. -- --------------------------------------------------------
  1969. CREATE TABLE IF NOT EXISTS `sys_objects_storage` (
  1970. `id` int(11) NOT NULL AUTO_INCREMENT,
  1971. `object` varchar(64) NOT NULL,
  1972. `engine` varchar(32) NOT NULL,
  1973. `params` text NOT NULL,
  1974. `token_life` int(11) NOT NULL,
  1975. `cache_control` int(11) NOT NULL,
  1976. `levels` tinyint(4) NOT NULL,
  1977. `table_files` varchar(64) NOT NULL,
  1978. `ext_mode` enum('allow-deny','deny-allow') NOT NULL,
  1979. `ext_allow` text NOT NULL,
  1980. `ext_deny` text NOT NULL,
  1981. `quota_size` int(11) NOT NULL,
  1982. `current_size` int(11) NOT NULL,
  1983. `quota_number` int(11) NOT NULL,
  1984. `current_number` int(11) NOT NULL,
  1985. `max_file_size` int(11) NOT NULL,
  1986. `ts` int(11) NOT NULL,
  1987. PRIMARY KEY (`id`),
  1988. UNIQUE KEY `object` (`object`)
  1989. );
  1990. 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
  1991. ('sys_images', 'Local', '', 360, 2592000, 0, 'sys_images', 'allow-deny', '{image},svg', '', 0, 0, 0, 0, 0, 0),
  1992. ('sys_images_custom', 'Local', '', 360, 2592000, 0, 'sys_images_custom', 'allow-deny', '{image},svg', '', 0, 0, 0, 0, 0, 0),
  1993. ('sys_images_resized', 'Local', '', 360, 2592000, 0, 'sys_images_resized', 'allow-deny', '{image},svg', '', 0, 0, 0, 0, 0, 0),
  1994. ('sys_cmts_images', 'Local', '', 360, 2592000, 3, 'sys_cmts_images', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  1995. ('sys_cmts_images_preview', 'Local', '', 360, 2592000, 3, 'sys_cmts_images_preview', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  1996. ('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),
  1997. ('sys_files', 'Local', '', 360, 2592000, 3, 'sys_files', 'deny-allow', '', '{dangerous}', 0, 0, 0, 0, 0, 0),
  1998. ('sys_images_editor', 'Local', '', 360, 2592000, 3, 'sys_images_editor', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  1999. ('sys_images_editor_resized', 'Local', '', 360, 2592000, 3, 'sys_images_editor_resized', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  2000. ('sys_wiki_files', 'Local', '', 360, 2592000, 3, 'sys_wiki_files', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  2001. ('sys_wiki_images_resized', 'Local', '', 360, 2592000, 3, 'sys_wiki_images_resized', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0);
  2002. CREATE TABLE IF NOT EXISTS `sys_storage_user_quotas` (
  2003. `profile_id` int(11) NOT NULL,
  2004. `current_size` bigint(20) NOT NULL,
  2005. `current_number` int(11) NOT NULL,
  2006. `ts` int(11) NOT NULL,
  2007. PRIMARY KEY (`profile_id`)
  2008. );
  2009. CREATE TABLE IF NOT EXISTS `sys_storage_tokens` (
  2010. `iid` int(11) NOT NULL AUTO_INCREMENT,
  2011. `id` int(11) NOT NULL,
  2012. `object` varchar(64) NOT NULL,
  2013. `hash` varchar(32) NOT NULL,
  2014. `created` int(10) unsigned NOT NULL,
  2015. PRIMARY KEY (`iid`),
  2016. UNIQUE KEY `id` (`id`,`object`,`hash`),
  2017. KEY `created` (`created`)
  2018. );
  2019. CREATE TABLE IF NOT EXISTS `sys_storage_ghosts` (
  2020. `iid` int(11) NOT NULL AUTO_INCREMENT,
  2021. `id` int(11) NOT NULL,
  2022. `profile_id` int(10) unsigned NOT NULL,
  2023. `object` varchar(64) NOT NULL,
  2024. `content_id` int(11) NOT NULL,
  2025. `created` int(10) unsigned NOT NULL,
  2026. `order` int(11) NOT NULL default '0',
  2027. PRIMARY KEY (`iid`),
  2028. UNIQUE KEY `id` (`id`,`object`),
  2029. KEY `created` (`created`),
  2030. KEY `profile_object_content` (`profile_id`,`object`,`content_id`)
  2031. );
  2032. CREATE TABLE IF NOT EXISTS `sys_storage_deletions` (
  2033. `id` int(11) NOT NULL AUTO_INCREMENT,
  2034. `object` varchar(64) NOT NULL,
  2035. `file_id` int(11) NOT NULL,
  2036. `requested` int(10) unsigned NOT NULL,
  2037. PRIMARY KEY (`id`),
  2038. UNIQUE KEY `object_file_id` (`object`,`file_id`),
  2039. KEY `requested` (`requested`)
  2040. );
  2041. CREATE TABLE IF NOT EXISTS `sys_storage_mime_types` (
  2042. `ext` varchar(32) NOT NULL,
  2043. `mime_type` varchar(128) NOT NULL,
  2044. `icon` varchar(255) NOT NULL,
  2045. `icon_font` varchar(255) NOT NULL,
  2046. PRIMARY KEY (`ext`)
  2047. );
  2048. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2049. ('ez', 'application/andrew-inset', '', ''),
  2050. ('aw', 'application/applixware', '', ''),
  2051. ('atom', 'application/atom+xml', '', ''),
  2052. ('atomcat', 'application/atomcat+xml', '', ''),
  2053. ('atomsvc', 'application/atomsvc+xml', '', ''),
  2054. ('ccxml', 'application/ccxml+xml', '', ''),
  2055. ('cdmia', 'application/cdmi-capability', '', ''),
  2056. ('cdmic', 'application/cdmi-container', '', ''),
  2057. ('cdmid', 'application/cdmi-domain', '', ''),
  2058. ('cdmio', 'application/cdmi-object', '', ''),
  2059. ('cdmiq', 'application/cdmi-queue', '', ''),
  2060. ('cu', 'application/cu-seeme', '', ''),
  2061. ('davmount', 'application/davmount+xml', '', ''),
  2062. ('dbk', 'application/docbook+xml', '', ''),
  2063. ('dssc', 'application/dssc+der', '', ''),
  2064. ('xdssc', 'application/dssc+xml', '', ''),
  2065. ('ecma', 'application/ecmascript', '', ''),
  2066. ('emma', 'application/emma+xml', '', ''),
  2067. ('epub', 'application/epub+zip', '', ''),
  2068. ('exi', 'application/exi', '', ''),
  2069. ('pfr', 'application/font-tdpfr', '', ''),
  2070. ('gml', 'application/gml+xml', '', ''),
  2071. ('gpx', 'application/gpx+xml', '', ''),
  2072. ('gxf', 'application/gxf', '', ''),
  2073. ('stk', 'application/hyperstudio', '', ''),
  2074. ('ink', 'application/inkml+xml', '', ''),
  2075. ('inkml', 'application/inkml+xml', '', ''),
  2076. ('ipfix', 'application/ipfix', '', ''),
  2077. ('jar', 'application/java-archive', '', ''),
  2078. ('ser', 'application/java-serialized-object', '', ''),
  2079. ('class', 'application/java-vm', '', ''),
  2080. ('js', 'application/javascript', '', 'far file-code'),
  2081. ('json', 'application/json', '', 'far file-code'),
  2082. ('jsonml', 'application/jsonml+json', '', ''),
  2083. ('lostxml', 'application/lost+xml', '', ''),
  2084. ('hqx', 'application/mac-binhex40', '', ''),
  2085. ('cpt', 'application/mac-compactpro', '', ''),
  2086. ('mads', 'application/mads+xml', '', ''),
  2087. ('mrc', 'application/marc', '', ''),
  2088. ('mrcx', 'application/marcxml+xml', '', ''),
  2089. ('ma', 'application/mathematica', '', ''),
  2090. ('nb', 'application/mathematica', '', ''),
  2091. ('mb', 'application/mathematica', '', ''),
  2092. ('mathml', 'application/mathml+xml', '', ''),
  2093. ('mbox', 'application/mbox', '', 'far file-code'),
  2094. ('mscml', 'application/mediaservercontrol+xml', '', ''),
  2095. ('metalink', 'application/metalink+xml', '', ''),
  2096. ('meta4', 'application/metalink4+xml', '', ''),
  2097. ('mets', 'application/mets+xml', '', ''),
  2098. ('mods', 'application/mods+xml', '', ''),
  2099. ('m21', 'application/mp21', '', ''),
  2100. ('mp21', 'application/mp21', '', ''),
  2101. ('mp4s', 'application/mp4', '', ''),
  2102. ('doc', 'application/msword', 'mime-type-document.svg', 'far file-word'),
  2103. ('dot', 'application/msword', '', ''),
  2104. ('mxf', 'application/mxf', '', ''),
  2105. ('bin', 'application/octet-stream', '', ''),
  2106. ('dms', 'application/octet-stream', '', ''),
  2107. ('lrf', 'application/octet-stream', '', ''),
  2108. ('mar', 'application/octet-stream', '', ''),
  2109. ('so', 'application/octet-stream', '', ''),
  2110. ('dist', 'application/octet-stream', '', ''),
  2111. ('distz', 'application/octet-stream', '', ''),
  2112. ('pkg', 'application/octet-stream', '', ''),
  2113. ('bpk', 'application/octet-stream', '', ''),
  2114. ('dump', 'application/octet-stream', '', ''),
  2115. ('elc', 'application/octet-stream', '', ''),
  2116. ('deploy', 'application/octet-stream', '', ''),
  2117. ('mobipocket-ebook', 'application/octet-stream', '', ''),
  2118. ('oda', 'application/oda', '', ''),
  2119. ('opf', 'application/oebps-package+xml', '', ''),
  2120. ('ogx', 'application/ogg', '', ''),
  2121. ('omdoc', 'application/omdoc+xml', '', ''),
  2122. ('onetoc', 'application/onenote', '', ''),
  2123. ('onetoc2', 'application/onenote', '', ''),
  2124. ('onetmp', 'application/onenote', '', ''),
  2125. ('onepkg', 'application/onenote', '', ''),
  2126. ('oxps', 'application/oxps', '', ''),
  2127. ('xer', 'application/patch-ops-error+xml', '', ''),
  2128. ('pdf', 'application/pdf', 'mime-type-document.svg', 'far file-pdf'),
  2129. ('pgp', 'application/pgp-encrypted', '', 'far file-code'),
  2130. ('asc', 'application/pgp-signature', '', 'far file-code'),
  2131. ('sig', 'application/pgp-signature', '', 'far file-code'),
  2132. ('prf', 'application/pics-rules', '', ''),
  2133. ('p10', 'application/pkcs10', 'mime-type-vector.svg', ''),
  2134. ('p7m', 'application/pkcs7-mime', '', ''),
  2135. ('p7c', 'application/pkcs7-mime', '', ''),
  2136. ('p7s', 'application/pkcs7-signature', '', ''),
  2137. ('p8', 'application/pkcs8', '', ''),
  2138. ('ac', 'application/pkix-attr-cert', '', ''),
  2139. ('cer', 'application/pkix-cert', '', ''),
  2140. ('crl', 'application/pkix-crl', '', ''),
  2141. ('pkipath', 'application/pkix-pkipath', '', ''),
  2142. ('pki', 'application/pkixcmp', '', ''),
  2143. ('pls', 'application/pls+xml', '', ''),
  2144. ('ai', 'application/postscript', 'mime-type-vector.svg', ''),
  2145. ('eps', 'application/postscript', '', ''),
  2146. ('ps', 'application/postscript', 'mime-type-vector.svg', ''),
  2147. ('cww', 'application/prs.cww', '', ''),
  2148. ('pskcxml', 'application/pskc+xml', '', ''),
  2149. ('rdf', 'application/rdf+xml', '', 'far file-code'),
  2150. ('rif', 'application/reginfo+xml', '', ''),
  2151. ('rnc', 'application/relax-ng-compact-syntax', '', ''),
  2152. ('rl', 'application/resource-lists+xml', '', ''),
  2153. ('rld', 'application/resource-lists-diff+xml', '', ''),
  2154. ('rs', 'application/rls-services+xml', '', ''),
  2155. ('gbr', 'application/rpki-ghostbusters', '', ''),
  2156. ('mft', 'application/rpki-manifest', '', ''),
  2157. ('roa', 'application/rpki-roa', '', ''),
  2158. ('rsd', 'application/rsd+xml', '', ''),
  2159. ('rss', 'application/rss+xml', '', 'far file-code'),
  2160. ('rtf', 'application/rtf', 'mime-type-document.svg', ''),
  2161. ('sbml', 'application/sbml+xml', '', ''),
  2162. ('scq', 'application/scvp-cv-request', '', ''),
  2163. ('scs', 'application/scvp-cv-response', '', ''),
  2164. ('spq', 'application/scvp-vp-request', '', ''),
  2165. ('spp', 'application/scvp-vp-response', '', ''),
  2166. ('sdp', 'application/sdp', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2167. ('setpay', 'application/set-payment-initiation', '', ''),
  2168. ('setreg', 'application/set-registration-initiation', '', ''),
  2169. ('shf', 'application/shf+xml', '', ''),
  2170. ('smi', 'application/smil+xml', '', ''),
  2171. ('smil', 'application/smil+xml', '', ''),
  2172. ('rq', 'application/sparql-query', '', 'far file-code'),
  2173. ('srx', 'application/sparql-results+xml', '', ''),
  2174. ('gram', 'application/srgs', '', ''),
  2175. ('grxml', 'application/srgs+xml', '', ''),
  2176. ('sru', 'application/sru+xml', '', ''),
  2177. ('ssdl', 'application/ssdl+xml', '', ''),
  2178. ('ssml', 'application/ssml+xml', '', ''),
  2179. ('tei', 'application/tei+xml', '', ''),
  2180. ('teicorpus', 'application/tei+xml', '', ''),
  2181. ('tfi', 'application/thraud+xml', '', ''),
  2182. ('tsd', 'application/timestamped-data', '', ''),
  2183. ('plb', 'application/vnd.3gpp.pic-bw-large', '', ''),
  2184. ('psb', 'application/vnd.3gpp.pic-bw-small', '', ''),
  2185. ('pvb', 'application/vnd.3gpp.pic-bw-var', '', ''),
  2186. ('tcap', 'application/vnd.3gpp2.tcap', '', ''),
  2187. ('pwn', 'application/vnd.3m.post-it-notes', '', ''),
  2188. ('aso', 'application/vnd.accpac.simply.aso', '', ''),
  2189. ('imp', 'application/vnd.accpac.simply.imp', '', ''),
  2190. ('acu', 'application/vnd.acucobol', '', ''),
  2191. ('atc', 'application/vnd.acucorp', '', ''),
  2192. ('acutc', 'application/vnd.acucorp', '', ''),
  2193. ('air', 'application/vnd.adobe.air-application-installer-package+zip', '', ''),
  2194. ('fcdt', 'application/vnd.adobe.formscentral.fcdt', '', ''),
  2195. ('fxp', 'application/vnd.adobe.fxp', '', ''),
  2196. ('fxpl', 'application/vnd.adobe.fxp', '', ''),
  2197. ('xdp', 'application/vnd.adobe.xdp+xml', '', ''),
  2198. ('xfdf', 'application/vnd.adobe.xfdf', '', ''),
  2199. ('ahead', 'application/vnd.ahead.space', '', ''),
  2200. ('azf', 'application/vnd.airzip.filesecure.azf', '', ''),
  2201. ('azs', 'application/vnd.airzip.filesecure.azs', '', ''),
  2202. ('azw', 'application/vnd.amazon.ebook', '', ''),
  2203. ('acc', 'application/vnd.americandynamics.acc', '', ''),
  2204. ('ami', 'application/vnd.amiga.ami', '', ''),
  2205. ('apk', 'application/vnd.android.package-archive', '', ''),
  2206. ('cii', 'application/vnd.anser-web-certificate-issue-initiation', '', ''),
  2207. ('fti', 'application/vnd.anser-web-funds-transfer-initiation', '', ''),
  2208. ('atx', 'application/vnd.antix.game-component', '', ''),
  2209. ('mpkg', 'application/vnd.apple.installer+xml', '', ''),
  2210. ('m3u8', 'application/vnd.apple.mpegurl', '', ''),
  2211. ('swi', 'application/vnd.aristanetworks.swi', '', ''),
  2212. ('iota', 'application/vnd.astraea-software.iota', '', ''),
  2213. ('aep', 'application/vnd.audiograph', '', ''),
  2214. ('mpm', 'application/vnd.blueice.multipass', '', ''),
  2215. ('bmi', 'application/vnd.bmi', '', ''),
  2216. ('rep', 'application/vnd.businessobjects', '', ''),
  2217. ('cdxml', 'application/vnd.chemdraw+xml', '', ''),
  2218. ('mmd', 'application/vnd.chipnuts.karaoke-mmd', '', ''),
  2219. ('cdy', 'application/vnd.cinderella', '', ''),
  2220. ('cla', 'application/vnd.claymore', '', ''),
  2221. ('rp9', 'application/vnd.cloanto.rp9', '', ''),
  2222. ('c4g', 'application/vnd.clonk.c4group', '', ''),
  2223. ('c4d', 'application/vnd.clonk.c4group', '', ''),
  2224. ('c4f', 'application/vnd.clonk.c4group', '', ''),
  2225. ('c4p', 'application/vnd.clonk.c4group', '', ''),
  2226. ('c4u', 'application/vnd.clonk.c4group', '', ''),
  2227. ('c11amc', 'application/vnd.cluetrust.cartomobile-config', '', ''),
  2228. ('c11amz', 'application/vnd.cluetrust.cartomobile-config-pkg', '', ''),
  2229. ('csp', 'application/vnd.commonspace', '', ''),
  2230. ('cdbcmsg', 'application/vnd.contact.cmsg', '', ''),
  2231. ('cmc', 'application/vnd.cosmocaller', '', ''),
  2232. ('clkx', 'application/vnd.crick.clicker', '', ''),
  2233. ('clkk', 'application/vnd.crick.clicker.keyboard', '', ''),
  2234. ('clkp', 'application/vnd.crick.clicker.palette', '', ''),
  2235. ('clkt', 'application/vnd.crick.clicker.template', '', ''),
  2236. ('clkw', 'application/vnd.crick.clicker.wordbank', '', ''),
  2237. ('wbs', 'application/vnd.criticaltools.wbs+xml', '', ''),
  2238. ('pml', 'application/vnd.ctc-posml', '', ''),
  2239. ('ppd', 'application/vnd.cups-ppd', '', ''),
  2240. ('car', 'application/vnd.curl.car', '', ''),
  2241. ('pcurl', 'application/vnd.curl.pcurl', '', ''),
  2242. ('dart', 'application/vnd.dart', '', ''),
  2243. ('rdz', 'application/vnd.data-vision.rdz', '', ''),
  2244. ('uvf', 'application/vnd.dece.data', '', ''),
  2245. ('uvvf', 'application/vnd.dece.data', '', ''),
  2246. ('uvd', 'application/vnd.dece.data', '', ''),
  2247. ('uvvd', 'application/vnd.dece.data', '', ''),
  2248. ('uvt', 'application/vnd.dece.ttml+xml', '', ''),
  2249. ('uvvt', 'application/vnd.dece.ttml+xml', '', ''),
  2250. ('uvx', 'application/vnd.dece.unspecified', '', ''),
  2251. ('uvvx', 'application/vnd.dece.unspecified', '', ''),
  2252. ('uvz', 'application/vnd.dece.zip', '', ''),
  2253. ('uvvz', 'application/vnd.dece.zip', '', ''),
  2254. ('fe_launch', 'application/vnd.denovo.fcselayout-link', '', ''),
  2255. ('dna', 'application/vnd.dna', '', ''),
  2256. ('mlp', 'application/vnd.dolby.mlp', '', ''),
  2257. ('dpg', 'application/vnd.dpgraph', '', ''),
  2258. ('dfac', 'application/vnd.dreamfactory', '', ''),
  2259. ('kpxx', 'application/vnd.ds-keypoint', '', ''),
  2260. ('ait', 'application/vnd.dvb.ait', 'mime-type-vector.svg', ''),
  2261. ('svc', 'application/vnd.dvb.service', '', '');
  2262. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2263. ('geo', 'application/vnd.dynageo', '', ''),
  2264. ('mag', 'application/vnd.ecowin.chart', '', ''),
  2265. ('nml', 'application/vnd.enliven', '', ''),
  2266. ('esf', 'application/vnd.epson.esf', '', ''),
  2267. ('msf', 'application/vnd.epson.msf', '', ''),
  2268. ('qam', 'application/vnd.epson.quickanime', '', ''),
  2269. ('slt', 'application/vnd.epson.salt', '', ''),
  2270. ('ssf', 'application/vnd.epson.ssf', '', ''),
  2271. ('es3', 'application/vnd.eszigno3+xml', '', ''),
  2272. ('et3', 'application/vnd.eszigno3+xml', '', ''),
  2273. ('ez2', 'application/vnd.ezpix-album', '', ''),
  2274. ('ez3', 'application/vnd.ezpix-package', '', ''),
  2275. ('fdf', 'application/vnd.fdf', '', ''),
  2276. ('mseed', 'application/vnd.fdsn.mseed', '', ''),
  2277. ('seed', 'application/vnd.fdsn.seed', '', ''),
  2278. ('dataless', 'application/vnd.fdsn.seed', '', ''),
  2279. ('gph', 'application/vnd.flographit', '', ''),
  2280. ('ftc', 'application/vnd.fluxtime.clip', '', ''),
  2281. ('fm', 'application/vnd.framemaker', '', ''),
  2282. ('frame', 'application/vnd.framemaker', '', ''),
  2283. ('maker', 'application/vnd.framemaker', '', ''),
  2284. ('book', 'application/vnd.framemaker', '', ''),
  2285. ('fnc', 'application/vnd.frogans.fnc', '', ''),
  2286. ('ltf', 'application/vnd.frogans.ltf', '', ''),
  2287. ('fsc', 'application/vnd.fsc.weblaunch', '', ''),
  2288. ('oas', 'application/vnd.fujitsu.oasys', '', ''),
  2289. ('oa2', 'application/vnd.fujitsu.oasys2', '', ''),
  2290. ('oa3', 'application/vnd.fujitsu.oasys3', '', ''),
  2291. ('fg5', 'application/vnd.fujitsu.oasysgp', '', ''),
  2292. ('bh2', 'application/vnd.fujitsu.oasysprs', '', ''),
  2293. ('ddd', 'application/vnd.fujixerox.ddd', '', ''),
  2294. ('xdw', 'application/vnd.fujixerox.docuworks', '', ''),
  2295. ('xbd', 'application/vnd.fujixerox.docuworks.binder', '', ''),
  2296. ('fzs', 'application/vnd.fuzzysheet', '', ''),
  2297. ('txd', 'application/vnd.genomatix.tuxedo', '', ''),
  2298. ('ggb', 'application/vnd.geogebra.file', '', ''),
  2299. ('ggt', 'application/vnd.geogebra.tool', '', ''),
  2300. ('gex', 'application/vnd.geometry-explorer', '', ''),
  2301. ('gre', 'application/vnd.geometry-explorer', '', ''),
  2302. ('gxt', 'application/vnd.geonext', '', ''),
  2303. ('g2w', 'application/vnd.geoplan', '', ''),
  2304. ('g3w', 'application/vnd.geospace', '', ''),
  2305. ('gmx', 'application/vnd.gmx', '', ''),
  2306. ('kml', 'application/vnd.google-earth.kml+xml', '', ''),
  2307. ('kmz', 'application/vnd.google-earth.kmz', '', ''),
  2308. ('gqf', 'application/vnd.grafeq', '', ''),
  2309. ('gqs', 'application/vnd.grafeq', '', ''),
  2310. ('gac', 'application/vnd.groove-account', '', ''),
  2311. ('ghf', 'application/vnd.groove-help', '', ''),
  2312. ('gim', 'application/vnd.groove-identity-message', '', ''),
  2313. ('grv', 'application/vnd.groove-injector', '', ''),
  2314. ('gtm', 'application/vnd.groove-tool-message', '', ''),
  2315. ('tpl', 'application/vnd.groove-tool-template', '', 'far file-code'),
  2316. ('vcg', 'application/vnd.groove-vcard', '', ''),
  2317. ('hal', 'application/vnd.hal+xml', '', ''),
  2318. ('zmm', 'application/vnd.handheld-entertainment+xml', '', ''),
  2319. ('hbci', 'application/vnd.hbci', '', ''),
  2320. ('les', 'application/vnd.hhe.lesson-player', '', ''),
  2321. ('hpgl', 'application/vnd.hp-hpgl', 'mime-type-vector.svg', ''),
  2322. ('hpid', 'application/vnd.hp-hpid', '', ''),
  2323. ('hps', 'application/vnd.hp-hps', '', ''),
  2324. ('jlt', 'application/vnd.hp-jlyt', '', ''),
  2325. ('pcl', 'application/vnd.hp-pcl', '', ''),
  2326. ('pclxl', 'application/vnd.hp-pclxl', '', ''),
  2327. ('sfd-hdstx', 'application/vnd.hydrostatix.sof-data', '', ''),
  2328. ('mpy', 'application/vnd.ibm.minipay', '', ''),
  2329. ('afp', 'application/vnd.ibm.modcap', '', ''),
  2330. ('listafp', 'application/vnd.ibm.modcap', '', ''),
  2331. ('list3820', 'application/vnd.ibm.modcap', '', ''),
  2332. ('irm', 'application/vnd.ibm.rights-management', '', ''),
  2333. ('sc', 'application/vnd.ibm.secure-container', '', ''),
  2334. ('icc', 'application/vnd.iccprofile', '', ''),
  2335. ('icm', 'application/vnd.iccprofile', '', ''),
  2336. ('igl', 'application/vnd.igloader', '', ''),
  2337. ('ivp', 'application/vnd.immervision-ivp', '', ''),
  2338. ('ivu', 'application/vnd.immervision-ivu', '', ''),
  2339. ('igm', 'application/vnd.insors.igm', '', ''),
  2340. ('xpw', 'application/vnd.intercon.formnet', '', ''),
  2341. ('xpx', 'application/vnd.intercon.formnet', '', ''),
  2342. ('i2g', 'application/vnd.intergeo', '', ''),
  2343. ('qbo', 'application/vnd.intu.qbo', '', ''),
  2344. ('qfx', 'application/vnd.intu.qfx', '', ''),
  2345. ('rcprofile', 'application/vnd.ipunplugged.rcprofile', '', ''),
  2346. ('irp', 'application/vnd.irepository.package+xml', '', ''),
  2347. ('xpr', 'application/vnd.is-xpr', '', ''),
  2348. ('fcs', 'application/vnd.isac.fcs', '', ''),
  2349. ('jam', 'application/vnd.jam', '', ''),
  2350. ('rms', 'application/vnd.jcp.javame.midlet-rms', '', ''),
  2351. ('jisp', 'application/vnd.jisp', '', ''),
  2352. ('joda', 'application/vnd.joost.joda-archive', '', ''),
  2353. ('ktz', 'application/vnd.kahootz', '', ''),
  2354. ('ktr', 'application/vnd.kahootz', '', ''),
  2355. ('karbon', 'application/vnd.kde.karbon', '', ''),
  2356. ('chrt', 'application/vnd.kde.kchart', '', ''),
  2357. ('kfo', 'application/vnd.kde.kformula', '', ''),
  2358. ('flw', 'application/vnd.kde.kivio', '', ''),
  2359. ('kon', 'application/vnd.kde.kontour', '', ''),
  2360. ('kpr', 'application/vnd.kde.kpresenter', '', ''),
  2361. ('kpt', 'application/vnd.kde.kpresenter', '', ''),
  2362. ('ksp', 'application/vnd.kde.kspread', '', ''),
  2363. ('kwd', 'application/vnd.kde.kword', '', ''),
  2364. ('kwt', 'application/vnd.kde.kword', '', ''),
  2365. ('htke', 'application/vnd.kenameaapp', '', ''),
  2366. ('kia', 'application/vnd.kidspiration', '', ''),
  2367. ('kne', 'application/vnd.kinar', '', ''),
  2368. ('knp', 'application/vnd.kinar', '', ''),
  2369. ('skp', 'application/vnd.koan', '', ''),
  2370. ('skd', 'application/vnd.koan', '', ''),
  2371. ('skt', 'application/vnd.koan', '', ''),
  2372. ('skm', 'application/vnd.koan', '', ''),
  2373. ('sse', 'application/vnd.kodak-descriptor', '', ''),
  2374. ('lasxml', 'application/vnd.las.las+xml', '', ''),
  2375. ('lbd', 'application/vnd.llamagraphics.life-balance.desktop', '', ''),
  2376. ('lbe', 'application/vnd.llamagraphics.life-balance.exchange+xml', '', ''),
  2377. ('123', 'application/vnd.lotus-1-2-3', '', ''),
  2378. ('apr', 'application/vnd.lotus-approach', '', ''),
  2379. ('pre', 'application/vnd.lotus-freelance', '', ''),
  2380. ('nsf', 'application/vnd.lotus-notes', '', ''),
  2381. ('org', 'application/vnd.lotus-organizer', '', ''),
  2382. ('scm', 'application/vnd.lotus-screencam', '', ''),
  2383. ('lwp', 'application/vnd.lotus-wordpro', '', ''),
  2384. ('portpkg', 'application/vnd.macports.portpkg', '', ''),
  2385. ('mcd', 'application/vnd.mcd', '', ''),
  2386. ('mc1', 'application/vnd.medcalcdata', '', ''),
  2387. ('cdkey', 'application/vnd.mediastation.cdkey', '', ''),
  2388. ('mwf', 'application/vnd.mfer', '', ''),
  2389. ('mfm', 'application/vnd.mfmp', '', ''),
  2390. ('flo', 'application/vnd.micrografx.flo', '', ''),
  2391. ('igx', 'application/vnd.micrografx.igx', '', ''),
  2392. ('mif', 'application/vnd.mif', '', ''),
  2393. ('daf', 'application/vnd.mobius.daf', '', ''),
  2394. ('dis', 'application/vnd.mobius.dis', '', ''),
  2395. ('mbk', 'application/vnd.mobius.mbk', '', ''),
  2396. ('mqy', 'application/vnd.mobius.mqy', '', ''),
  2397. ('msl', 'application/vnd.mobius.msl', '', ''),
  2398. ('plc', 'application/vnd.mobius.plc', '', ''),
  2399. ('txf', 'application/vnd.mobius.txf', '', ''),
  2400. ('mpn', 'application/vnd.mophun.application', '', ''),
  2401. ('mpc', 'application/vnd.mophun.certificate', '', ''),
  2402. ('xul', 'application/vnd.mozilla.xul+xml', '', ''),
  2403. ('cil', 'application/vnd.ms-artgalry', 'mime-type-vector.svg', ''),
  2404. ('taxi', 'application/vnd.ms-cab-compressed', 'mime-type-archive.svg', 'far file-archive'),
  2405. ('xls', 'application/vnd.ms-excel', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2406. ('xlm', 'application/vnd.ms-excel', '', ''),
  2407. ('xla', 'application/vnd.ms-excel', '', ''),
  2408. ('xlc', 'application/vnd.ms-excel', '', ''),
  2409. ('xlt', 'application/vnd.ms-excel', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2410. ('xlw', 'application/vnd.ms-excel', '', ''),
  2411. ('xlam', 'application/vnd.ms-excel.addin.macroenabled.12', '', ''),
  2412. ('xlsb', 'application/vnd.ms-excel.sheet.binary.macroenabled.12', '', ''),
  2413. ('xlsm', 'application/vnd.ms-excel.sheet.macroenabled.12', '', ''),
  2414. ('xltm', 'application/vnd.ms-excel.template.macroenabled.12', '', ''),
  2415. ('eot', 'application/vnd.ms-fontobject', '', ''),
  2416. ('chm', 'application/vnd.ms-htmlhelp', '', ''),
  2417. ('ims', 'application/vnd.ms-ims', '', ''),
  2418. ('lrm', 'application/vnd.ms-lrm', '', ''),
  2419. ('thmx', 'application/vnd.ms-officetheme', '', ''),
  2420. ('cat', 'application/vnd.ms-pki.seccat', '', ''),
  2421. ('stl', 'application/vnd.ms-pki.stl', '', ''),
  2422. ('ppt', 'application/vnd.ms-powerpoint', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2423. ('pps', 'application/vnd.ms-powerpoint', '', ''),
  2424. ('pot', 'application/vnd.ms-powerpoint', '', ''),
  2425. ('ppam', 'application/vnd.ms-powerpoint.addin.macroenabled.12', '', ''),
  2426. ('pptm', 'application/vnd.ms-powerpoint.presentation.macroenabled.12', '', ''),
  2427. ('sldm', 'application/vnd.ms-powerpoint.slide.macroenabled.12', '', ''),
  2428. ('ppsm', 'application/vnd.ms-powerpoint.slideshow.macroenabled.12', '', ''),
  2429. ('potm', 'application/vnd.ms-powerpoint.template.macroenabled.12', '', ''),
  2430. ('mpp', 'application/vnd.ms-project', '', ''),
  2431. ('mpt', 'application/vnd.ms-project', '', ''),
  2432. ('docm', 'application/vnd.ms-word.document.macroenabled.12', '', ''),
  2433. ('dotm', 'application/vnd.ms-word.template.macroenabled.12', '', ''),
  2434. ('wps', 'application/vnd.ms-works', '', ''),
  2435. ('wks', 'application/vnd.ms-works', '', ''),
  2436. ('wcm', 'application/vnd.ms-works', '', ''),
  2437. ('wdb', 'application/vnd.ms-works', '', ''),
  2438. ('wpl', 'application/vnd.ms-wpl', '', ''),
  2439. ('xps', 'application/vnd.ms-xpsdocument', '', ''),
  2440. ('mseq', 'application/vnd.mseq', '', ''),
  2441. ('mus', 'application/vnd.musician', '', ''),
  2442. ('msty', 'application/vnd.muvee.style', '', ''),
  2443. ('taglet', 'application/vnd.mynfc', '', ''),
  2444. ('nlu', 'application/vnd.neurolanguage.nlu', '', ''),
  2445. ('ntf', 'application/vnd.nitf', '', ''),
  2446. ('nitf', 'application/vnd.nitf', '', ''),
  2447. ('nnd', 'application/vnd.noblenet-directory', '', ''),
  2448. ('nns', 'application/vnd.noblenet-sealer', '', ''),
  2449. ('nnw', 'application/vnd.noblenet-web', '', ''),
  2450. ('ngdat', 'application/vnd.nokia.n-gage.data', '', ''),
  2451. ('n-gage', 'application/vnd.nokia.n-gage.symbian.install', '', ''),
  2452. ('rpst', 'application/vnd.nokia.radio-preset', '', ''),
  2453. ('rpss', 'application/vnd.nokia.radio-presets', '', ''),
  2454. ('edm', 'application/vnd.novadigm.edm', '', ''),
  2455. ('edx', 'application/vnd.novadigm.edx', '', ''),
  2456. ('ext', 'application/vnd.novadigm.ext', '', ''),
  2457. ('odc', 'application/vnd.oasis.opendocument.chart', '', ''),
  2458. ('otc', 'application/vnd.oasis.opendocument.chart-template', '', ''),
  2459. ('odb', 'application/vnd.oasis.opendocument.database', '', ''),
  2460. ('odf', 'application/vnd.oasis.opendocument.formula', '', ''),
  2461. ('odft', 'application/vnd.oasis.opendocument.formula-template', '', '');
  2462. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2463. ('odg', 'application/vnd.oasis.opendocument.graphics', 'mime-type-vector.svg', ''),
  2464. ('otg', 'application/vnd.oasis.opendocument.graphics-template', '', ''),
  2465. ('odi', 'application/vnd.oasis.opendocument.image', '', ''),
  2466. ('oti', 'application/vnd.oasis.opendocument.image-template', '', ''),
  2467. ('odp', 'application/vnd.oasis.opendocument.presentation', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2468. ('otp', 'application/vnd.oasis.opendocument.presentation-template', '', ''),
  2469. ('ods', 'application/vnd.oasis.opendocument.spreadsheet', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2470. ('ots', 'application/vnd.oasis.opendocument.spreadsheet-template', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2471. ('odt', 'application/vnd.oasis.opendocument.text', 'mime-type-document.svg', ''),
  2472. ('odm', 'application/vnd.oasis.opendocument.text-master', '', ''),
  2473. ('ott', 'application/vnd.oasis.opendocument.text-template', 'mime-type-document.svg', ''),
  2474. ('oth', 'application/vnd.oasis.opendocument.text-web', '', ''),
  2475. ('xo', 'application/vnd.olpc-sugar', '', ''),
  2476. ('dd2', 'application/vnd.oma.dd2+xml', '', ''),
  2477. ('oxt', 'application/vnd.openofficeorg.extension', '', ''),
  2478. ('pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2479. ('sldx', 'application/vnd.openxmlformats-officedocument.presentationml.slide', '', ''),
  2480. ('ppsx', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', '', ''),
  2481. ('potx', 'application/vnd.openxmlformats-officedocument.presentationml.template', '', ''),
  2482. ('xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2483. ('xltx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', '', ''),
  2484. ('docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'mime-type-document.svg', 'far file-word'),
  2485. ('dotx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', '', ''),
  2486. ('mgp', 'application/vnd.osgeo.mapguide.package', '', ''),
  2487. ('dp', 'application/vnd.osgi.dp', '', ''),
  2488. ('esa', 'application/vnd.osgi.subsystem', '', ''),
  2489. ('pdb', 'application/vnd.palm', 'mime-type-document.svg', ''),
  2490. ('pqa', 'application/vnd.palm', '', ''),
  2491. ('oprc', 'application/vnd.palm', '', ''),
  2492. ('paw', 'application/vnd.pawaafile', '', ''),
  2493. ('str', 'application/vnd.pg.format', '', ''),
  2494. ('ei6', 'application/vnd.pg.osasli', '', ''),
  2495. ('efif', 'application/vnd.picsel', '', ''),
  2496. ('wg', 'application/vnd.pmi.widget', '', ''),
  2497. ('plf', 'application/vnd.pocketlearn', '', ''),
  2498. ('pbd', 'application/vnd.powerbuilder6', '', ''),
  2499. ('box', 'application/vnd.previewsystems.box', '', ''),
  2500. ('mgz', 'application/vnd.proteus.magazine', '', ''),
  2501. ('qps', 'application/vnd.publishare-delta-tree', '', ''),
  2502. ('ptid', 'application/vnd.pvi.ptid1', '', ''),
  2503. ('qxd', 'application/vnd.quark.quarkxpress', '', ''),
  2504. ('qxt', 'application/vnd.quark.quarkxpress', '', ''),
  2505. ('qwd', 'application/vnd.quark.quarkxpress', '', ''),
  2506. ('qwt', 'application/vnd.quark.quarkxpress', '', ''),
  2507. ('qxl', 'application/vnd.quark.quarkxpress', '', ''),
  2508. ('qxb', 'application/vnd.quark.quarkxpress', '', ''),
  2509. ('bed', 'application/vnd.realvnc.bed', '', ''),
  2510. ('mxl', 'application/vnd.recordare.musicxml', '', ''),
  2511. ('musicxml', 'application/vnd.recordare.musicxml+xml', '', ''),
  2512. ('cryptonote', 'application/vnd.rig.cryptonote', '', ''),
  2513. ('cod', 'application/vnd.rim.cod', '', ''),
  2514. ('rm', 'application/vnd.rn-realmedia', '', ''),
  2515. ('rmvb', 'application/vnd.rn-realmedia-vbr', '', ''),
  2516. ('link66', 'application/vnd.route66.link66+xml', '', ''),
  2517. ('st', 'application/vnd.sailingtracker.track', '', ''),
  2518. ('see', 'application/vnd.seemail', '', ''),
  2519. ('sema', 'application/vnd.sema', '', ''),
  2520. ('semd', 'application/vnd.semd', '', ''),
  2521. ('semf', 'application/vnd.semf', '', ''),
  2522. ('ifm', 'application/vnd.shana.informed.formdata', '', ''),
  2523. ('itp', 'application/vnd.shana.informed.formtemplate', '', ''),
  2524. ('iif', 'application/vnd.shana.informed.interchange', '', ''),
  2525. ('ipk', 'application/vnd.shana.informed.package', '', ''),
  2526. ('twd', 'application/vnd.simtech-mindmapper', '', ''),
  2527. ('twds', 'application/vnd.simtech-mindmapper', '', ''),
  2528. ('mmf', 'application/vnd.smaf', '', ''),
  2529. ('teacher', 'application/vnd.smart.teacher', '', ''),
  2530. ('sdkm', 'application/vnd.solent.sdkm+xml', '', ''),
  2531. ('sdkd', 'application/vnd.solent.sdkm+xml', '', ''),
  2532. ('dxp', 'application/vnd.spotfire.dxp', '', ''),
  2533. ('sfs', 'application/vnd.spotfire.sfs', '', ''),
  2534. ('sdc', 'application/vnd.stardivision.calc', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2535. ('sda', 'application/vnd.stardivision.draw', '', ''),
  2536. ('sdd', 'application/vnd.stardivision.impress', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2537. ('smf', 'application/vnd.stardivision.math', '', ''),
  2538. ('sdw', 'application/vnd.stardivision.writer', 'mime-type-document.svg', ''),
  2539. ('vor', 'application/vnd.stardivision.writer', '', ''),
  2540. ('sgl', 'application/vnd.stardivision.writer-global', '', ''),
  2541. ('smzip', 'application/vnd.stepmania.package', '', ''),
  2542. ('sm', 'application/vnd.stepmania.stepchart', '', ''),
  2543. ('sxc', 'application/vnd.sun.xml.calc', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2544. ('stc', 'application/vnd.sun.xml.calc.template', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2545. ('sxd', 'application/vnd.sun.xml.draw', 'mime-type-vector.svg', ''),
  2546. ('std', 'application/vnd.sun.xml.draw.template', '', ''),
  2547. ('sxi', 'application/vnd.sun.xml.impress', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2548. ('sti', 'application/vnd.sun.xml.impress.template', 'mime-type-presentation.svg', 'far file-powerpoint'),
  2549. ('sxm', 'application/vnd.sun.xml.math', '', ''),
  2550. ('sxw', 'application/vnd.sun.xml.writer', 'mime-type-document.svg', ''),
  2551. ('sxg', 'application/vnd.sun.xml.writer.global', '', ''),
  2552. ('stw', 'application/vnd.sun.xml.writer.template', 'mime-type-document.svg', ''),
  2553. ('sus', 'application/vnd.sus-calendar', '', ''),
  2554. ('susp', 'application/vnd.sus-calendar', '', ''),
  2555. ('svd', 'application/vnd.svd', '', ''),
  2556. ('sis', 'application/vnd.symbian.install', '', ''),
  2557. ('sisx', 'application/vnd.symbian.install', '', ''),
  2558. ('xsm', 'application/vnd.syncml+xml', '', ''),
  2559. ('bdm', 'application/vnd.syncml.dm+wbxml', '', ''),
  2560. ('xdm', 'application/vnd.syncml.dm+xml', '', ''),
  2561. ('tao', 'application/vnd.tao.intent-module-archive', '', ''),
  2562. ('pcap', 'application/vnd.tcpdump.pcap', '', ''),
  2563. ('cap', 'application/vnd.tcpdump.pcap', '', ''),
  2564. ('dmp', 'application/vnd.tcpdump.pcap', '', ''),
  2565. ('tmo', 'application/vnd.tmobile-livetv', '', ''),
  2566. ('tpt', 'application/vnd.trid.tpt', '', ''),
  2567. ('mxs', 'application/vnd.triscape.mxs', '', ''),
  2568. ('tra', 'application/vnd.trueapp', '', ''),
  2569. ('ufd', 'application/vnd.ufdl', '', ''),
  2570. ('ufdl', 'application/vnd.ufdl', '', ''),
  2571. ('utz', 'application/vnd.uiq.theme', '', ''),
  2572. ('umj', 'application/vnd.umajin', '', ''),
  2573. ('unityweb', 'application/vnd.unity', '', ''),
  2574. ('uoml', 'application/vnd.uoml+xml', '', ''),
  2575. ('vcx', 'application/vnd.vcx', '', ''),
  2576. ('vsd', 'application/vnd.visio', '', ''),
  2577. ('vst', 'application/vnd.visio', '', ''),
  2578. ('vss', 'application/vnd.visio', 'mime-type-vector.svg', ''),
  2579. ('vsw', 'application/vnd.visio', '', ''),
  2580. ('vis', 'application/vnd.visionary', '', ''),
  2581. ('vsf', 'application/vnd.vsf', '', ''),
  2582. ('wbxml', 'application/vnd.wap.wbxml', '', ''),
  2583. ('wmlc', 'application/vnd.wap.wmlc', '', ''),
  2584. ('wmlsc', 'application/vnd.wap.wmlscriptc', '', ''),
  2585. ('wtb', 'application/vnd.webturbo', '', ''),
  2586. ('nbp', 'application/vnd.wolfram.player', '', ''),
  2587. ('wpd', 'application/vnd.wordperfect', '', ''),
  2588. ('wqd', 'application/vnd.wqd', '', ''),
  2589. ('stf', 'application/vnd.wt.stf', '', ''),
  2590. ('xar', 'application/vnd.xara', '', ''),
  2591. ('xfdl', 'application/vnd.xfdl', '', ''),
  2592. ('hvd', 'application/vnd.yamaha.hv-dic', '', ''),
  2593. ('hvs', 'application/vnd.yamaha.hv-script', '', ''),
  2594. ('hvp', 'application/vnd.yamaha.hv-voice', '', ''),
  2595. ('osf', 'application/vnd.yamaha.openscoreformat', '', ''),
  2596. ('osfpvg', 'application/vnd.yamaha.openscoreformat.osfpvg+xml', '', ''),
  2597. ('saf', 'application/vnd.yamaha.smaf-audio', '', ''),
  2598. ('spf', 'application/vnd.yamaha.smaf-phrase', '', ''),
  2599. ('cmp', 'application/vnd.yellowriver-custom-menu', '', ''),
  2600. ('zir', 'application/vnd.zul', '', ''),
  2601. ('zirz', 'application/vnd.zul', '', ''),
  2602. ('zaz', 'application/vnd.zzazz.deck+xml', '', ''),
  2603. ('vxml', 'application/voicexml+xml', '', ''),
  2604. ('wgt', 'application/widget', '', ''),
  2605. ('hlp', 'application/winhlp', '', ''),
  2606. ('wsdl', 'application/wsdl+xml', '', ''),
  2607. ('wspolicy', 'application/wspolicy+xml', '', ''),
  2608. ('7z', 'application/x-7z-compressed', 'mime-type-archive.svg', 'far file-archive'),
  2609. ('abw', 'application/x-abiword', '', ''),
  2610. ('ace', 'application/x-ace-compressed', 'mime-type-archive.svg', 'far file-archive'),
  2611. ('dmg', 'application/x-apple-diskimage', '', ''),
  2612. ('aab', 'application/x-authorware-bin', '', ''),
  2613. ('x32', 'application/x-authorware-bin', '', ''),
  2614. ('u32', 'application/x-authorware-bin', '', ''),
  2615. ('vox', 'application/x-authorware-bin', '', ''),
  2616. ('aam', 'application/x-authorware-map', '', ''),
  2617. ('aas', 'application/x-authorware-seg', '', ''),
  2618. ('bcpio', 'application/x-bcpio', '', ''),
  2619. ('torrent', 'application/x-bittorrent', '', ''),
  2620. ('blb', 'application/x-blorb', '', ''),
  2621. ('blorb', 'application/x-blorb', '', ''),
  2622. ('bz', 'application/x-bzip', '', ''),
  2623. ('bz2', 'application/x-bzip2', 'mime-type-archive.svg', 'far file-archive'),
  2624. ('boz', 'application/x-bzip2', '', ''),
  2625. ('cbr', 'application/x-cbr', '', ''),
  2626. ('cba', 'application/x-cbr', '', ''),
  2627. ('cbt', 'application/x-cbr', '', ''),
  2628. ('cbz', 'application/x-cbr', '', ''),
  2629. ('cb7', 'application/x-cbr', '', ''),
  2630. ('vcd', 'application/x-cdlink', '', ''),
  2631. ('cfs', 'application/x-cfs-compressed', '', ''),
  2632. ('chat', 'application/x-chat', '', ''),
  2633. ('pgn', 'application/x-chess-pgn', '', ''),
  2634. ('nsc', 'application/x-conference', '', ''),
  2635. ('cpio', 'application/x-cpio', '', ''),
  2636. ('csh', 'application/x-csh', '', 'far file-code'),
  2637. ('deb', 'application/x-debian-package', '', ''),
  2638. ('udeb', 'application/x-debian-package', '', ''),
  2639. ('dgc', 'application/x-dgc-compressed', '', ''),
  2640. ('dir', 'application/x-director', '', ''),
  2641. ('dcr', 'application/x-director', '', ''),
  2642. ('dxr', 'application/x-director', '', ''),
  2643. ('cst', 'application/x-director', '', ''),
  2644. ('cct', 'application/x-director', '', ''),
  2645. ('cxt', 'application/x-director', '', '');
  2646. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2647. ('w3d', 'application/x-director', '', ''),
  2648. ('fgd', 'application/x-director', '', ''),
  2649. ('swa', 'application/x-director', '', ''),
  2650. ('wad', 'application/x-doom', '', ''),
  2651. ('ncx', 'application/x-dtbncx+xml', '', ''),
  2652. ('dtb', 'application/x-dtbook+xml', '', ''),
  2653. ('res', 'application/x-dtbresource+xml', '', ''),
  2654. ('dvi', 'application/x-dvi', '', ''),
  2655. ('evy', 'application/x-envoy', '', ''),
  2656. ('eva', 'application/x-eva', '', ''),
  2657. ('bdf', 'application/x-font-bdf', '', ''),
  2658. ('gsf', 'application/x-font-ghostscript', '', ''),
  2659. ('psf', 'application/x-font-linux-psf', '', ''),
  2660. ('otf', 'application/x-font-otf', '', ''),
  2661. ('pcf', 'application/x-font-pcf', '', ''),
  2662. ('snf', 'application/x-font-snf', '', ''),
  2663. ('ttf', 'application/x-font-ttf', '', ''),
  2664. ('ttc', 'application/x-font-ttf', '', ''),
  2665. ('pfa', 'application/x-font-type1', '', ''),
  2666. ('pfb', 'application/x-font-type1', '', ''),
  2667. ('pfm', 'application/x-font-type1', '', ''),
  2668. ('afm', 'application/x-font-type1', '', ''),
  2669. ('woff', 'application/x-font-woff', '', ''),
  2670. ('arc', 'application/x-freearc', '', ''),
  2671. ('spl', 'application/x-futuresplash', '', ''),
  2672. ('gca', 'application/x-gca-compressed', '', ''),
  2673. ('ulx', 'application/x-glulx', '', ''),
  2674. ('gnumeric', 'application/x-gnumeric', '', ''),
  2675. ('gramps', 'application/x-gramps-xml', '', ''),
  2676. ('gtar', 'application/x-gtar', '', ''),
  2677. ('hdf', 'application/x-hdf', '', ''),
  2678. ('install', 'application/x-install-instructions', '', ''),
  2679. ('iso', 'application/x-iso9660-image', '', ''),
  2680. ('jnlp', 'application/x-java-jnlp-file', '', ''),
  2681. ('latex', 'application/x-latex', '', ''),
  2682. ('lzh', 'application/x-lzh-compressed', '', ''),
  2683. ('lha', 'application/x-lzh-compressed', '', ''),
  2684. ('mie', 'application/x-mie', '', ''),
  2685. ('prc', 'application/x-mobipocket-ebook', '', ''),
  2686. ('mobi', 'application/x-mobipocket-ebook', '', ''),
  2687. ('application', 'application/x-ms-application', '', ''),
  2688. ('lnk', 'application/x-ms-shortcut', '', ''),
  2689. ('wmd', 'application/x-ms-wmd', '', ''),
  2690. ('wmz', 'application/x-ms-wmz', '', ''),
  2691. ('xbap', 'application/x-ms-xbap', '', ''),
  2692. ('mdb', 'application/x-msaccess', '', ''),
  2693. ('obd', 'application/x-msbinder', '', ''),
  2694. ('crd', 'application/x-mscardfile', '', ''),
  2695. ('clp', 'application/x-msclip', '', ''),
  2696. ('exe', 'application/x-msdownload', '', ''),
  2697. ('dll', 'application/x-msdownload', '', ''),
  2698. ('com', 'application/x-msdownload', '', ''),
  2699. ('bat', 'application/x-msdownload', '', 'far file-code'),
  2700. ('msi', 'application/x-msdownload', '', ''),
  2701. ('mvb', 'application/x-msmediaview', '', ''),
  2702. ('m13', 'application/x-msmediaview', '', ''),
  2703. ('m14', 'application/x-msmediaview', '', ''),
  2704. ('wmf', 'application/x-msmetafile', '', ''),
  2705. ('emf', 'application/x-msmetafile', '', ''),
  2706. ('emz', 'application/x-msmetafile', '', ''),
  2707. ('mny', 'application/x-msmoney', '', ''),
  2708. ('pub', 'application/x-mspublisher', '', ''),
  2709. ('scd', 'application/x-msschedule', '', ''),
  2710. ('trm', 'application/x-msterminal', '', ''),
  2711. ('wri', 'application/x-mswrite', '', ''),
  2712. ('nc', 'application/x-netcdf', '', ''),
  2713. ('cdf', 'application/x-netcdf', '', ''),
  2714. ('nzb', 'application/x-nzb', '', ''),
  2715. ('p12', 'application/x-pkcs12', '', ''),
  2716. ('pfx', 'application/x-pkcs12', '', ''),
  2717. ('p7b', 'application/x-pkcs7-certificates', '', ''),
  2718. ('spc', 'application/x-pkcs7-certificates', '', ''),
  2719. ('p7r', 'application/x-pkcs7-certreqresp', '', ''),
  2720. ('rar', 'application/x-rar-compressed', 'mime-type-archive.svg', 'far file-archive'),
  2721. ('ris', 'application/x-research-info-systems', '', ''),
  2722. ('sh', 'application/x-sh', '', 'far file-code'),
  2723. ('shar', 'application/x-shar', '', ''),
  2724. ('swf', 'application/x-shockwave-flash', '', ''),
  2725. ('xap', 'application/x-silverlight-app', '', ''),
  2726. ('sql', 'text/x-sql', '', 'far file-code'),
  2727. ('sit', 'application/x-stuffit', '', ''),
  2728. ('sitx', 'application/x-stuffitx', '', ''),
  2729. ('srt', 'application/x-subrip', '', ''),
  2730. ('sv4cpio', 'application/x-sv4cpio', '', ''),
  2731. ('sv4crc', 'application/x-sv4crc', '', ''),
  2732. ('t3', 'application/x-t3vm-image', '', ''),
  2733. ('gam', 'application/x-tads', '', ''),
  2734. ('tar', 'application/x-tar', 'mime-type-archive.svg', 'far file-archive'),
  2735. ('tcl', 'application/x-tcl', '', ''),
  2736. ('tex', 'application/x-tex', '', ''),
  2737. ('tfm', 'application/x-tex-tfm', '', ''),
  2738. ('texinfo', 'application/x-texinfo', '', ''),
  2739. ('texi', 'application/x-texinfo', '', ''),
  2740. ('obj', 'application/x-tgif', '', ''),
  2741. ('ustar', 'application/x-ustar', '', ''),
  2742. ('src', 'application/x-wais-source', '', 'far file-code'),
  2743. ('der', 'application/x-x509-ca-cert', '', ''),
  2744. ('crt', 'application/x-x509-ca-cert', '', ''),
  2745. ('fig', 'application/x-xfig', '', ''),
  2746. ('xlf', 'application/x-xliff+xml', '', ''),
  2747. ('xpi', 'application/x-xpinstall', '', ''),
  2748. ('xz', 'application/x-xz', '', ''),
  2749. ('z1', 'application/x-zmachine', '', ''),
  2750. ('z2', 'application/x-zmachine', '', ''),
  2751. ('z3', 'application/x-zmachine', '', ''),
  2752. ('z4', 'application/x-zmachine', '', ''),
  2753. ('z5', 'application/x-zmachine', '', ''),
  2754. ('z6', 'application/x-zmachine', '', ''),
  2755. ('z7', 'application/x-zmachine', '', ''),
  2756. ('z8', 'application/x-zmachine', '', ''),
  2757. ('xaml', 'application/xaml+xml', '', ''),
  2758. ('xdf', 'application/xcap-diff+xml', '', ''),
  2759. ('xenc', 'application/xenc+xml', '', ''),
  2760. ('xhtml', 'application/xhtml+xml', '', 'far file-code'),
  2761. ('xht', 'application/xhtml+xml', '', ''),
  2762. ('xml', 'application/xml', '', 'far file-code'),
  2763. ('xsl', 'application/xml', '', 'far file-code'),
  2764. ('dtd', 'application/xml-dtd', '', 'far file-code'),
  2765. ('xop', 'application/xop+xml', '', ''),
  2766. ('xpl', 'application/xproc+xml', '', ''),
  2767. ('xslt', 'application/xslt+xml', '', 'far file-code'),
  2768. ('xspf', 'application/xspf+xml', '', ''),
  2769. ('mxml', 'application/xv+xml', '', ''),
  2770. ('xhvml', 'application/xv+xml', '', ''),
  2771. ('xvml', 'application/xv+xml', '', ''),
  2772. ('xvm', 'application/xv+xml', '', ''),
  2773. ('yang', 'application/yang', '', ''),
  2774. ('yin', 'application/yin+xml', '', ''),
  2775. ('zip', 'application/zip', 'mime-type-archive.svg', 'far file-archive'),
  2776. ('adp', 'audio/adpcm', 'mime-type-audio.svg', 'far file-audio'),
  2777. ('au', 'audio/basic', 'mime-type-audio.svg', 'far file-audio'),
  2778. ('snd', 'audio/basic', 'mime-type-audio.svg', 'far file-audio'),
  2779. ('mid', 'audio/midi', 'mime-type-audio.svg', 'far file-audio'),
  2780. ('midi', 'audio/midi', 'mime-type-audio.svg', 'far file-audio'),
  2781. ('kar', 'audio/midi', 'mime-type-audio.svg', 'far file-audio'),
  2782. ('rmi', 'audio/midi', 'mime-type-audio.svg', 'far file-audio'),
  2783. ('m4a', 'audio/mp4', 'mime-type-audio.svg', 'far file-audio'),
  2784. ('mp4a', 'audio/mp4', 'mime-type-audio.svg', 'far file-audio'),
  2785. ('m4p', 'audio/mp4a-latm', 'mime-type-audio.svg', 'far file-audio'),
  2786. ('mpga', 'audio/mpeg', 'mime-type-audio.svg', 'far file-audio'),
  2787. ('mp2', 'audio/mpeg', 'mime-type-audio.svg', 'far file-audio'),
  2788. ('mp2a', 'audio/mpeg', 'mime-type-audio.svg', 'far file-audio'),
  2789. ('mp3', 'audio/mpeg', 'mime-type-audio.svg', 'far file-audio'),
  2790. ('m2a', 'audio/mpeg', 'mime-type-audio.svg', 'far file-audio'),
  2791. ('m3a', 'audio/mpeg', 'mime-type-audio.svg', 'far file-audio'),
  2792. ('oga', 'audio/ogg', 'mime-type-audio.svg', 'far file-audio'),
  2793. ('ogg', 'audio/ogg', 'mime-type-audio.svg', 'far file-audio'),
  2794. ('spx', 'audio/ogg', 'mime-type-audio.svg', 'far file-audio'),
  2795. ('s3m', 'audio/s3m', 'mime-type-audio.svg', 'far file-audio'),
  2796. ('sil', 'audio/silk', 'mime-type-audio.svg', 'far file-audio'),
  2797. ('uva', 'audio/vnd.dece.audio', 'mime-type-audio.svg', 'far file-audio'),
  2798. ('uvva', 'audio/vnd.dece.audio', 'mime-type-audio.svg', 'far file-audio'),
  2799. ('eol', 'audio/vnd.digital-winds', 'mime-type-audio.svg', 'far file-audio'),
  2800. ('dra', 'audio/vnd.dra', 'mime-type-audio.svg', 'far file-audio'),
  2801. ('dts', 'audio/vnd.dts', 'mime-type-audio.svg', 'far file-audio'),
  2802. ('dtshd', 'audio/vnd.dts.hd', 'mime-type-audio.svg', 'far file-audio'),
  2803. ('lvp', 'audio/vnd.lucent.voice', 'mime-type-audio.svg', 'far file-audio'),
  2804. ('pya', 'audio/vnd.ms-playready.media.pya', 'mime-type-audio.svg', 'far file-audio'),
  2805. ('ecelp4800', 'audio/vnd.nuera.ecelp4800', 'mime-type-audio.svg', 'far file-audio'),
  2806. ('ecelp7470', 'audio/vnd.nuera.ecelp7470', 'mime-type-audio.svg', 'far file-audio'),
  2807. ('ecelp9600', 'audio/vnd.nuera.ecelp9600', 'mime-type-audio.svg', 'far file-audio'),
  2808. ('rip', 'audio/vnd.rip', 'mime-type-audio.svg', 'far file-audio'),
  2809. ('weba', 'audio/webm', 'mime-type-audio.svg', 'far file-audio'),
  2810. ('aac', 'audio/x-aac', 'mime-type-audio.svg', 'far file-audio'),
  2811. ('aif', 'audio/x-aiff', 'mime-type-audio.svg', 'far file-audio'),
  2812. ('aiff', 'audio/x-aiff', 'mime-type-audio.svg', 'far file-audio'),
  2813. ('aifc', 'audio/x-aiff', 'mime-type-audio.svg', 'far file-audio'),
  2814. ('caf', 'audio/x-caf', 'mime-type-audio.svg', 'far file-audio'),
  2815. ('flac', 'audio/x-flac', 'mime-type-audio.svg', 'far file-audio'),
  2816. ('mka', 'audio/x-matroska', 'mime-type-audio.svg', 'far file-audio'),
  2817. ('m3u', 'audio/x-mpegurl', 'mime-type-audio.svg', 'far file-audio'),
  2818. ('wax', 'audio/x-ms-wax', 'mime-type-audio.svg', 'far file-audio'),
  2819. ('wma', 'audio/x-ms-wma', 'mime-type-audio.svg', 'far file-audio'),
  2820. ('ram', 'audio/x-pn-realaudio', 'mime-type-audio.svg', 'far file-audio'),
  2821. ('ra', 'audio/x-pn-realaudio', 'mime-type-audio.svg', 'far file-audio'),
  2822. ('rmp', 'audio/x-pn-realaudio-plugin', 'mime-type-audio.svg', 'far file-audio'),
  2823. ('wav', 'audio/x-wav', 'mime-type-audio.svg', 'far file-audio'),
  2824. ('xm', 'audio/xm', 'mime-type-audio.svg', 'far file-audio'),
  2825. ('cdx', 'chemical/x-cdx', 'mime-type-vector.svg', ''),
  2826. ('cif', 'chemical/x-cif', '', ''),
  2827. ('cmdf', 'chemical/x-cmdf', '', ''),
  2828. ('cml', 'chemical/x-cml', '', ''),
  2829. ('csml', 'chemical/x-csml', '', ''),
  2830. ('xyz', 'chemical/x-xyz', '', ''),
  2831. ('bmp', 'image/bmp', 'mime-type-image.svg', 'far file-image'),
  2832. ('cgm', 'image/cgm', 'mime-type-image.svg', 'far file-image'),
  2833. ('g3', 'image/g3fax', 'mime-type-image.svg', 'far file-image'),
  2834. ('gif', 'image/gif', 'mime-type-image.svg', 'far file-image'),
  2835. ('ief', 'image/ief', 'mime-type-image.svg', 'far file-image'),
  2836. ('jp2', 'image/jp2', 'mime-type-image.svg', 'far file-image'),
  2837. ('jpeg', 'image/jpeg', 'mime-type-image.svg', 'far file-image'),
  2838. ('jpg', 'image/jpeg', 'mime-type-image.svg', 'far file-image'),
  2839. ('jpe', 'image/jpeg', 'mime-type-image.svg', 'far file-image'),
  2840. ('ktx', 'image/ktx', 'mime-type-image.svg', 'far file-image'),
  2841. ('pict', 'image/pict', 'mime-type-image.svg', 'far file-image'),
  2842. ('pic', 'image/pict', 'mime-type-image.svg', 'far file-image'),
  2843. ('pct', 'image/pict', 'mime-type-image.svg', 'far file-image'),
  2844. ('png', 'image/png', 'mime-type-png.svg', 'far file-image'),
  2845. ('btif', 'image/prs.btif', 'mime-type-image.svg', 'far file-image'),
  2846. ('sgi', 'image/sgi', 'mime-type-image.svg', 'far file-image');
  2847. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2848. ('svg', 'image/svg+xml', 'mime-type-image.svg', 'far file-image'),
  2849. ('svgz', 'image/svg+xml', 'mime-type-image.svg', 'far file-image'),
  2850. ('tiff', 'image/tiff', 'mime-type-image.svg', 'far file-image'),
  2851. ('tif', 'image/tiff', 'mime-type-image.svg', 'far file-image'),
  2852. ('psd', 'image/vnd.adobe.photoshop', 'mime-type-psd.svg', 'far file-image'),
  2853. ('uvi', 'image/vnd.dece.graphic', 'mime-type-image.svg', 'far file-image'),
  2854. ('uvvi', 'image/vnd.dece.graphic', 'mime-type-image.svg', 'far file-image'),
  2855. ('uvg', 'image/vnd.dece.graphic', 'mime-type-image.svg', 'far file-image'),
  2856. ('uvvg', 'image/vnd.dece.graphic', 'mime-type-image.svg', 'far file-image'),
  2857. ('sub', 'image/vnd.dvb.subtitle', 'mime-type-image.svg', 'far file-image'),
  2858. ('djvu', 'image/vnd.djvu', 'mime-type-image.svg', 'far file-image'),
  2859. ('djv', 'image/vnd.djvu', 'mime-type-image.svg', 'far file-image'),
  2860. ('dwg', 'image/vnd.dwg', 'mime-type-image.svg', 'far file-image'),
  2861. ('dxf', 'image/vnd.dxf', 'mime-type-image.svg', 'far file-image'),
  2862. ('fbs', 'image/vnd.fastbidsheet', 'mime-type-image.svg', 'far file-image'),
  2863. ('fpx', 'image/vnd.fpx', 'mime-type-image.svg', 'far file-image'),
  2864. ('fst', 'image/vnd.fst', 'mime-type-image.svg', 'far file-image'),
  2865. ('mmr', 'image/vnd.fujixerox.edmics-mmr', 'mime-type-image.svg', 'far file-image'),
  2866. ('rlc', 'image/vnd.fujixerox.edmics-rlc', 'mime-type-image.svg', 'far file-image'),
  2867. ('mdi', 'image/vnd.ms-modi', 'mime-type-image.svg', 'far file-image'),
  2868. ('wdp', 'image/vnd.ms-photo', 'mime-type-image.svg', 'far file-image'),
  2869. ('npx', 'image/vnd.net-fpx', 'mime-type-image.svg', 'far file-image'),
  2870. ('wbmp', 'image/vnd.wap.wbmp', 'mime-type-image.svg', 'far file-image'),
  2871. ('xif', 'image/vnd.xiff', 'mime-type-image.svg', 'far file-image'),
  2872. ('webp', 'image/webp', 'mime-type-image.svg', 'far file-image'),
  2873. ('3ds', 'image/x-3ds', 'mime-type-image.svg', 'far file-image'),
  2874. ('ras', 'image/x-cmu-raster', 'mime-type-image.svg', 'far file-image'),
  2875. ('cmx', 'image/x-cmx', 'mime-type-image.svg', 'far file-image'),
  2876. ('fh', 'image/x-freehand', 'mime-type-image.svg', 'far file-image'),
  2877. ('fhc', 'image/x-freehand', 'mime-type-image.svg', 'far file-image'),
  2878. ('fh4', 'image/x-freehand', 'mime-type-image.svg', 'far file-image'),
  2879. ('fh5', 'image/x-freehand', 'mime-type-image.svg', 'far file-image'),
  2880. ('fh7', 'image/x-freehand', 'mime-type-image.svg', 'far file-image'),
  2881. ('ico', 'image/x-icon', 'mime-type-image.svg', 'far file-image'),
  2882. ('pntg', 'image/x-macpaint', 'mime-type-image.svg', 'far file-image'),
  2883. ('pnt', 'image/x-macpaint', 'mime-type-image.svg', 'far file-image'),
  2884. ('mac', 'image/x-macpaint', 'mime-type-image.svg', 'far file-image'),
  2885. ('sid', 'image/x-mrsid-image', 'mime-type-image.svg', 'far file-image'),
  2886. ('pcx', 'image/x-pcx', 'mime-type-image.svg', 'far file-image'),
  2887. ('pnm', 'image/x-portable-anymap', 'mime-type-image.svg', 'far file-image'),
  2888. ('pbm', 'image/x-portable-bitmap', 'mime-type-image.svg', 'far file-image'),
  2889. ('pgm', 'image/x-portable-graymap', 'mime-type-image.svg', 'far file-image'),
  2890. ('ppm', 'image/x-portable-pixmap', 'mime-type-image.svg', 'far file-image'),
  2891. ('qtif', 'image/x-quicktime', 'mime-type-image.svg', 'far file-image'),
  2892. ('qti', 'image/x-quicktime', 'mime-type-image.svg', 'far file-image'),
  2893. ('rgb', 'image/x-rgb', 'mime-type-image.svg', 'far file-image'),
  2894. ('tga', 'image/x-tga', 'mime-type-image.svg', 'far file-image'),
  2895. ('xbm', 'image/x-xbitmap', 'mime-type-image.svg', 'far file-image'),
  2896. ('xpm', 'image/x-xpixmap', 'mime-type-image.svg', 'far file-image'),
  2897. ('xwd', 'image/x-xwindowdump', 'mime-type-image.svg', 'far file-image'),
  2898. ('eml', 'message/rfc822', '', ''),
  2899. ('mime', 'message/rfc822', '', ''),
  2900. ('igs', 'model/iges', '', ''),
  2901. ('iges', 'model/iges', '', ''),
  2902. ('msh', 'model/mesh', '', ''),
  2903. ('mesh', 'model/mesh', '', ''),
  2904. ('silo', 'model/mesh', '', ''),
  2905. ('dae', 'model/vnd.collada+xml', '', ''),
  2906. ('dwf', 'model/vnd.dwf', '', ''),
  2907. ('gdl', 'model/vnd.gdl', '', ''),
  2908. ('gtw', 'model/vnd.gtw', '', ''),
  2909. ('mts', 'model/vnd.mts', '', ''),
  2910. ('vtu', 'model/vnd.vtu', '', ''),
  2911. ('wrl', 'model/vrml', '', ''),
  2912. ('vrml', 'model/vrml', '', ''),
  2913. ('x3db', 'model/x3d+binary', '', ''),
  2914. ('x3dbz', 'model/x3d+binary', '', ''),
  2915. ('x3dv', 'model/x3d+vrml', '', ''),
  2916. ('x3dvz', 'model/x3d+vrml', '', ''),
  2917. ('x3d', 'model/x3d+xml', '', ''),
  2918. ('x3dz', 'model/x3d+xml', '', ''),
  2919. ('manifest', 'text/cache-manifest', '', 'far file-alt'),
  2920. ('appcache', 'text/cache-manifest', '', 'far file-alt'),
  2921. ('ics', 'text/calendar', '', 'far file-alt'),
  2922. ('ifb', 'text/calendar', '', 'far file-alt'),
  2923. ('css', 'text/css', '', 'far file-code'),
  2924. ('csv', 'text/csv', 'mime-type-spreadsheet.svg', 'far file-excel'),
  2925. ('html', 'text/html', '', 'far file-code'),
  2926. ('htm', 'text/html', '', 'far file-code'),
  2927. ('n3', 'text/n3', '', 'far file-alt'),
  2928. ('txt', 'text/plain', 'mime-type-document.svg', 'far file-alt'),
  2929. ('text', 'text/plain', '', 'far file-alt'),
  2930. ('conf', 'text/plain', '', 'far file-alt'),
  2931. ('def', 'text/plain', '', 'far file-alt'),
  2932. ('list', 'text/plain', '', 'far file-alt'),
  2933. ('log', 'text/plain', '', 'far file-alt'),
  2934. ('in', 'text/plain', '', 'far file-alt'),
  2935. ('dsc', 'text/prs.lines.tag', '', 'far file-alt'),
  2936. ('rtx', 'text/richtext', '', 'far file-alt'),
  2937. ('sgml', 'text/sgml', '', 'far file-alt'),
  2938. ('sgm', 'text/sgml', '', 'far file-alt'),
  2939. ('tsv', 'text/tab-separated-values', '', 'far file-alt'),
  2940. ('t', 'text/troff', '', 'far file-alt'),
  2941. ('tr', 'text/troff', '', 'far file-alt'),
  2942. ('roff', 'text/troff', '', 'far file-alt'),
  2943. ('man', 'text/troff', '', 'far file-alt'),
  2944. ('me', 'text/troff', '', 'far file-alt'),
  2945. ('ms', 'text/troff', '', 'far file-alt'),
  2946. ('ttl', 'text/turtle', '', 'far file-code'),
  2947. ('uri', 'text/uri-list', '', 'far file-alt'),
  2948. ('uris', 'text/uri-list', '', 'far file-alt'),
  2949. ('urls', 'text/uri-list', '', 'far file-alt'),
  2950. ('address-card', 'text/vcard', '', 'far file-alt'),
  2951. ('curl', 'text/vnd.curl', '', 'far file-alt'),
  2952. ('dcurl', 'text/vnd.curl.dcurl', '', 'far file-alt'),
  2953. ('scurl', 'text/vnd.curl.scurl', '', 'far file-alt'),
  2954. ('mcurl', 'text/vnd.curl.mcurl', '', 'far file-alt'),
  2955. ('fly', 'text/vnd.fly', '', 'far file-alt'),
  2956. ('flx', 'text/vnd.fmi.flexstor', '', 'far file-alt'),
  2957. ('gv', 'text/vnd.graphviz', '', 'far file-alt'),
  2958. ('3dml', 'text/vnd.in3d.3dml', '', 'far file-alt'),
  2959. ('spot', 'text/vnd.in3d.spot', '', 'far file-alt'),
  2960. ('jad', 'text/vnd.sun.j2me.app-descriptor', '', 'far file-alt'),
  2961. ('wml', 'text/vnd.wap.wml', '', 'far file-alt'),
  2962. ('wmls', 'text/vnd.wap.wmlscript', '', 'far file-alt'),
  2963. ('s', 'text/x-asm', '', 'far file-alt'),
  2964. ('asm', 'text/x-asm', '', 'far file-code'),
  2965. ('c', 'text/x-c', '', 'far file-code'),
  2966. ('far closed-captioning', 'text/x-c', '', 'far file-code'),
  2967. ('cxx', 'text/x-c', '', 'far file-code'),
  2968. ('cpp', 'text/x-c', '', 'far file-code'),
  2969. ('h', 'text/x-c', '', 'far file-code'),
  2970. ('hh', 'text/x-c', '', 'far file-code'),
  2971. ('dic', 'text/x-c', '', 'far file-alt'),
  2972. ('f', 'text/x-fortran', '', 'far file-code'),
  2973. ('for', 'text/x-fortran', '', 'far file-code'),
  2974. ('f77', 'text/x-fortran', '', 'far file-alt'),
  2975. ('f90', 'text/x-fortran', '', 'far file-alt'),
  2976. ('java', 'text/x-java-source', '', 'far file-code'),
  2977. ('opml', 'text/x-opml', '', 'far file-alt'),
  2978. ('p', 'text/x-pascal', '', 'far file-alt'),
  2979. ('pas', 'text/x-pascal', '', 'far file-code'),
  2980. ('php', 'application/x-httpd-php', '', 'far file-code'),
  2981. ('coffee', 'text/x-coffeescript', '', 'far file-code'),
  2982. ('lsp', 'text/x-common-lisp', '', 'far file-code'),
  2983. ('lisp', 'text/x-common-lisp', '', 'far file-code'),
  2984. ('diff', 'text/x-diff', '', 'far file-code'),
  2985. ('go', 'text/x-go', '', 'far file-code'),
  2986. ('lua', 'text/x-lua', '', 'far file-code'),
  2987. ('pl', 'text/x-perl', '', 'far file-code'),
  2988. ('prl', 'text/x-perl', '', 'far file-code'),
  2989. ('perl', 'text/x-perl', '', 'far file-code'),
  2990. ('py', 'text/x-python', '', 'far file-code'),
  2991. ('nginx', 'text/nginx', '', 'far file-code'),
  2992. ('ini', 'text/x-ini', '', 'far file-alt'),
  2993. ('rb', 'text/x-ruby', '', 'far file-code'),
  2994. ('sass', 'text/x-sass', '', 'far file-code'),
  2995. ('bash', 'text/x-sh', '', 'far file-code'),
  2996. ('swift', 'text/x-swift', '', 'far file-code'),
  2997. ('vb', 'text/x-vb', '', 'far file-code'),
  2998. ('vbs', 'text/vbscript', '', 'far file-code'),
  2999. ('vue', 'text/x-vue', '', 'far file-code'),
  3000. ('yaml', 'text/x-yaml', '', 'far file-alt'),
  3001. ('md', 'text/x-markdown', '', 'far file-alt'),
  3002. ('xq', 'application/xquery', '', 'far file-code'),
  3003. ('xquery', 'application/xquery', '', 'far file-code'),
  3004. ('ps1', 'application/x-powershell', '', 'far file-code'),
  3005. ('aps', 'application/x-aspx', '', ''),
  3006. ('jsp', 'application/x-jsp', '', 'far file-code'),
  3007. ('nfo', 'text/x-nfo', '', 'far file-alt'),
  3008. ('etx', 'text/x-setext', '', 'far file-alt'),
  3009. ('sfv', 'text/x-sfv', '', 'far file-alt'),
  3010. ('uu', 'text/x-uuencode', '', 'far file-alt'),
  3011. ('vcs', 'text/x-vcalendar', '', 'far file-alt'),
  3012. ('vcf', 'text/x-vcard', '', 'far file-alt'),
  3013. ('3gp', 'video/3gpp', 'mime-type-video.svg', 'far file-video'),
  3014. ('3g2', 'video/3gpp2', 'mime-type-video.svg', 'far file-video'),
  3015. ('h261', 'video/h261', 'mime-type-video.svg', 'far file-video'),
  3016. ('h263', 'video/h263', 'mime-type-video.svg', 'far file-video'),
  3017. ('h264', 'video/h264', 'mime-type-video.svg', 'far file-video'),
  3018. ('jpgv', 'video/jpeg', 'mime-type-video.svg', 'far file-video'),
  3019. ('jpm', 'video/jpm', 'mime-type-video.svg', 'far file-video'),
  3020. ('jpgm', 'video/jpm', 'mime-type-video.svg', 'far file-video'),
  3021. ('mj2', 'video/mj2', 'mime-type-video.svg', 'far file-video'),
  3022. ('mjp2', 'video/mj2', 'mime-type-video.svg', 'far file-video'),
  3023. ('ts', 'video/mp2t', 'mime-type-video.svg', 'far file-video'),
  3024. ('mp4', 'video/mp4', 'mime-type-video.svg', 'far file-video'),
  3025. ('mp4v', 'video/mp4', 'mime-type-video.svg', 'far file-video'),
  3026. ('mpg4', 'video/mp4', 'mime-type-video.svg', 'far file-video'),
  3027. ('m4v', 'video/mp4', 'mime-type-video.svg', 'far file-video'),
  3028. ('mpeg', 'video/mpeg', 'mime-type-video.svg', 'far file-video'),
  3029. ('mpg', 'video/mpeg', 'mime-type-video.svg', 'far file-video'),
  3030. ('mpe', 'video/mpeg', 'mime-type-video.svg', 'far file-video'),
  3031. ('m1v', 'video/mpeg', 'mime-type-video.svg', 'far file-video'),
  3032. ('m2v', 'video/mpeg', 'mime-type-video.svg', 'far file-video'),
  3033. ('ogv', 'video/ogg', 'mime-type-video.svg', 'far file-video'),
  3034. ('qt', 'video/quicktime', 'mime-type-video.svg', 'far file-video'),
  3035. ('mov', 'video/quicktime', 'mime-type-video.svg', 'far file-video'),
  3036. ('uvh', 'video/vnd.dece.hd', 'mime-type-video.svg', 'far file-video'),
  3037. ('uvvh', 'video/vnd.dece.hd', 'mime-type-video.svg', 'far file-video'),
  3038. ('uvm', 'video/vnd.dece.mobile', 'mime-type-video.svg', 'far file-video'),
  3039. ('uvvm', 'video/vnd.dece.mobile', 'mime-type-video.svg', 'far file-video'),
  3040. ('uvp', 'video/vnd.dece.pd', 'mime-type-video.svg', 'far file-video'),
  3041. ('uvvp', 'video/vnd.dece.pd', 'mime-type-video.svg', 'far file-video');
  3042. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  3043. ('uvs', 'video/vnd.dece.sd', 'mime-type-video.svg', 'far file-video'),
  3044. ('uvvs', 'video/vnd.dece.sd', 'mime-type-video.svg', 'far file-video'),
  3045. ('uvv', 'video/vnd.dece.video', 'mime-type-video.svg', 'far file-video'),
  3046. ('uvvv', 'video/vnd.dece.video', 'mime-type-video.svg', 'far file-video'),
  3047. ('dvb', 'video/vnd.dvb.file', 'mime-type-video.svg', 'far file-video'),
  3048. ('fvt', 'video/vnd.fvt', 'mime-type-video.svg', 'far file-video'),
  3049. ('mxu', 'video/vnd.mpegurl', 'mime-type-video.svg', 'far file-video'),
  3050. ('m4u', 'video/vnd.mpegurl', 'mime-type-video.svg', 'far file-video'),
  3051. ('pyv', 'video/vnd.ms-playready.media.pyv', 'mime-type-video.svg', 'far file-video'),
  3052. ('uvu', 'video/vnd.uvvu.mp4', 'mime-type-video.svg', 'far file-video'),
  3053. ('uvvu', 'video/vnd.uvvu.mp4', 'mime-type-video.svg', 'far file-video'),
  3054. ('viv', 'video/vnd.vivo', 'mime-type-video.svg', 'far file-video'),
  3055. ('dv', 'video/x-dv', 'mime-type-video.svg', 'far file-video'),
  3056. ('dif', 'video/x-dv', 'mime-type-video.svg', 'far file-excel'),
  3057. ('webm', 'video/webm', 'mime-type-video.svg', 'far file-video'),
  3058. ('f4v', 'video/x-f4v', 'mime-type-video.svg', 'far file-video'),
  3059. ('fli', 'video/x-fli', 'mime-type-video.svg', 'far file-video'),
  3060. ('flv', 'video/x-flv', 'mime-type-video.svg', 'far file-video'),
  3061. ('mkv', 'video/x-matroska', 'mime-type-video.svg', 'far file-video'),
  3062. ('mk3d', 'video/x-matroska', 'mime-type-video.svg', 'far file-video'),
  3063. ('mks', 'video/x-matroska', 'mime-type-video.svg', 'far file-video'),
  3064. ('mng', 'video/x-mng', 'mime-type-video.svg', 'far file-video'),
  3065. ('asf', 'video/x-ms-asf', 'mime-type-video.svg', 'far file-video'),
  3066. ('asx', 'video/x-ms-asf', 'mime-type-video.svg', 'far file-video'),
  3067. ('vob', 'video/x-ms-vob', 'mime-type-video.svg', 'far file-video'),
  3068. ('wm', 'video/x-ms-wm', 'mime-type-video.svg', 'far file-video'),
  3069. ('wmv', 'video/x-ms-wmv', 'mime-type-video.svg', 'far file-video'),
  3070. ('wmx', 'video/x-ms-wmx', 'mime-type-video.svg', 'far file-video'),
  3071. ('wvx', 'video/x-ms-wvx', 'mime-type-video.svg', 'far file-video'),
  3072. ('avi', 'video/x-msvideo', 'mime-type-video.svg', 'far file-video'),
  3073. ('movie', 'video/x-sgi-movie', 'mime-type-video.svg', 'far file-video'),
  3074. ('smv', 'video/x-smv', 'mime-type-video.svg', 'far file-video'),
  3075. ('ice', 'x-conference/x-cooltalk', '', '');
  3076. -- --------------------------------------------------------
  3077. CREATE TABLE IF NOT EXISTS `sys_objects_uploader` (
  3078. `id` int(11) NOT NULL AUTO_INCREMENT,
  3079. `object` varchar(64) NOT NULL,
  3080. `active` tinyint(4) NOT NULL,
  3081. `override_class_name` varchar(255) NOT NULL,
  3082. `override_class_file` varchar(255) NOT NULL,
  3083. PRIMARY KEY (`id`),
  3084. UNIQUE KEY `object` (`object`)
  3085. );
  3086. INSERT INTO `sys_objects_uploader` (`object`, `active`, `override_class_name`, `override_class_file`) VALUES
  3087. ('sys_html5', 1, 'BxTemplUploaderHTML5', ''),
  3088. ('sys_video_recording', 1, 'BxTemplUploaderVideoRecording', ''),
  3089. ('sys_crop', 1, 'BxTemplUploaderCrop', ''),
  3090. ('sys_cmts_html5', 1, 'BxTemplCmtsUploaderHTML5', ''),
  3091. ('sys_settings_html5', 1, 'BxTemplStudioSettingsUploaderHTML5', ''),
  3092. ('sys_builder_page_html5', 1, 'BxTemplStudioBuilderPageUploaderHTML5', ''),
  3093. ('sys_std_crop_cover', 1, 'BxTemplStudioUploaderCropCover', '');
  3094. -- --------------------------------------------------------
  3095. CREATE TABLE IF NOT EXISTS `sys_objects_form` (
  3096. `id` int(11) NOT NULL AUTO_INCREMENT,
  3097. `object` varchar(64) NOT NULL,
  3098. `module` varchar(32) NOT NULL,
  3099. `title` varchar(255) NOT NULL,
  3100. `action` varchar(255) NOT NULL,
  3101. `form_attrs` text NOT NULL,
  3102. `submit_name` varchar(255) NOT NULL,
  3103. `table` varchar(255) NOT NULL,
  3104. `key` varchar(255) NOT NULL,
  3105. `uri` varchar(255) NOT NULL,
  3106. `uri_title` varchar(255) NOT NULL,
  3107. `params` text NOT NULL,
  3108. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3109. `active` tinyint(4) NOT NULL DEFAULT '0',
  3110. `parent_form` varchar(64) NOT NULL DEFAULT '',
  3111. `override_class_name` varchar(255) NOT NULL,
  3112. `override_class_file` varchar(255) NOT NULL,
  3113. PRIMARY KEY (`id`),
  3114. UNIQUE KEY `object` (`object`)
  3115. );
  3116. 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
  3117. ('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', ''),
  3118. ('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', ''),
  3119. ('sys_profile', 'system', '_sys_form_profile', '', '', 'do_submit', 'sys_profiles', 'id', '', '', '', 0, 1, 'BxTemplFormProfile', ''),
  3120. ('sys_forgot_password', 'system', '_sys_form_forgot_password', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:33:"BxFormForgotPasswordCheckerHelper";}', 0, 1, 'BxTemplFormForgotPassword', ''),
  3121. ('sys_confirm_email', 'system', '_sys_form_confirm_email', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:31:"BxFormConfirmEmailCheckerHelper";}', 0, 1, 'BxTemplFormConfirmEmail', ''),
  3122. ('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', ''),
  3123. ('sys_unsubscribe', 'system', '_sys_form_unsubscribe', '', '', 'do_submit', 'sys_accounts', 'id', '', '', '', 0, 1, 'BxTemplFormAccount', ''),
  3124. ('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', ''),
  3125. ('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', ''),
  3126. ('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, '', ''),
  3127. ('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, '', ''),
  3128. ('sys_privacy_group_custom', 'system', '_sys_form_ps_group_custom', 'privacy.php', '', 'do_submit', 'sys_privacy_groups_custom', 'id', '', '', '', 0, 1, 'BxTemplPrivacyFormGroupCustom', ''),
  3129. ('sys_labels', 'system', '_sys_form_labels', 'label.php', '', 'do_submit', '', '', '', '', '', 0, 1, 'BxTemplLabelForm', ''),
  3130. ('sys_wiki', 'system', '_sys_form_wiki', '', '', 'do_submit', 'sys_pages_wiki_blocks', 'id', '', '', '', 0, 1, 'BxTemplFormWiki', ''),
  3131. ('sys_manage', 'system', '_sys_form_manage', '', '', 'a:2:{i:0;s:7:"do_send";i:1;s:9:"do_submit";}', '', '', '', '', '', 0, 1, '', ''),
  3132. ('sys_acl', 'system', '_sys_form_acl', '', '', 'do_submit', '', '', '', '', '', 0, 1, '', '');
  3133. CREATE TABLE IF NOT EXISTS `sys_form_displays` (
  3134. `id` int(11) NOT NULL AUTO_INCREMENT,
  3135. `display_name` varchar(64) NOT NULL,
  3136. `module` varchar(32) NOT NULL,
  3137. `object` varchar(64) NOT NULL,
  3138. `title` varchar(255) NOT NULL,
  3139. `view_mode` tinyint(4) NOT NULL DEFAULT '0',
  3140. PRIMARY KEY (`id`),
  3141. UNIQUE KEY `object_display_name` (`object`,`display_name`)
  3142. );
  3143. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  3144. ('sys_login', 'system', 'sys_login', '_sys_form_display_login', 0),
  3145. ('sys_login_step2', 'system', 'sys_login', '_sys_form_display_login_step2', 0),
  3146. ('sys_login_step3', 'system', 'sys_login', '_sys_form_display_login_step3', 0),
  3147. ('sys_account_create', 'system', 'sys_account', '_sys_form_display_account_create', 0),
  3148. ('sys_account_settings_email', 'system', 'sys_account', '_sys_form_display_account_settings_email', 0),
  3149. ('sys_account_settings_pwd', 'system', 'sys_account', '_sys_form_display_account_settings_password', 0),
  3150. ('sys_account_settings_info', 'system', 'sys_account', '_sys_form_display_account_settings_info', 0),
  3151. ('sys_account_settings_del_account', 'system', 'sys_account', '_sys_form_display_account_settings_delete', 0),
  3152. ('sys_profile_cf_set', 'system', 'sys_profile', '_sys_form_display_profile_cf_set', 0),
  3153. ('sys_profile_cf_manage', 'system', 'sys_profile', '_sys_form_display_profile_cf_manage', 0),
  3154. ('sys_forgot_password', 'system', 'sys_forgot_password', '_sys_form_display_forgot_password', 0),
  3155. ('sys_forgot_password_reset', 'system', 'sys_forgot_password', '_sys_form_display_forgot_password_reset', 0),
  3156. ('sys_confirm_phone_set_phone', 'system', 'sys_confirm_phone', '_sys_form_display_confirm_phone_set_phone', 0),
  3157. ('sys_confirm_phone_confirmation', 'system', 'sys_confirm_phone', '_sys_form_display_confirm_phone_confirmation', 0),
  3158. ('sys_confirm_email', 'system', 'sys_confirm_email', '_sys_form_display_confirm_email', 0),
  3159. ('sys_unsubscribe_updates', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_updates', 0),
  3160. ('sys_unsubscribe_news', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_news', 0),
  3161. ('sys_comment_post', 'system', 'sys_comment', '_sys_form_display_comment_post', 0),
  3162. ('sys_comment_edit', 'system', 'sys_comment', '_sys_form_display_comment_edit', 0),
  3163. ('sys_review_post', 'system', 'sys_review', '_sys_form_review_display_post', 0),
  3164. ('sys_review_edit', 'system', 'sys_review', '_sys_form_review_display_edit', 0),
  3165. ('sys_report_post', 'system', 'sys_report', '_sys_form_display_report_post', 0),
  3166. ('sys_favorite_add', 'system', 'sys_favorite', '_sys_form_display_favorite_add', 0),
  3167. ('sys_favorite_list_edit', 'system', 'sys_favorite', '_sys_form_display_favorite_list_edit', 0),
  3168. ('sys_privacy_group_custom_members', 'system', 'sys_privacy_group_custom', '_sys_form_display_ps_gc_members', 0),
  3169. ('sys_privacy_group_custom_memberships', 'system', 'sys_privacy_group_custom', '_sys_form_display_ps_gc_memberships', 0),
  3170. ('sys_labels_select', 'system', 'sys_labels', '_sys_form_labels_display_select', 0),
  3171. ('sys_wiki_edit', 'system', 'sys_wiki', '_sys_form_display_wiki_edit', 0),
  3172. ('sys_wiki_translate', 'system', 'sys_wiki', '_sys_form_display_wiki_translate', 0),
  3173. ('sys_manage_approve', 'system', 'sys_manage', '_sys_form_display_manage_approve', 0),
  3174. ('sys_acl_set', 'system', 'sys_acl', '_sys_form_display_acl_set', 0);
  3175. CREATE TABLE IF NOT EXISTS `sys_form_inputs` (
  3176. `id` int(11) NOT NULL AUTO_INCREMENT,
  3177. `object` varchar(64) NOT NULL,
  3178. `module` varchar(32) NOT NULL,
  3179. `name` varchar(255) NOT NULL,
  3180. `value` varchar(255) NOT NULL,
  3181. `values` text NOT NULL,
  3182. `checked` tinyint(4) NOT NULL DEFAULT '0',
  3183. `type` varchar(32) NOT NULL,
  3184. `caption_system` varchar(255) NOT NULL,
  3185. `caption` varchar(255) NOT NULL,
  3186. `info` varchar(255) NOT NULL,
  3187. `help` varchar(255) NOT NULL,
  3188. `icon` text NOT NULL,
  3189. `required` tinyint(4) NOT NULL DEFAULT '0',
  3190. `unique` tinyint(4) NOT NULL DEFAULT '0',
  3191. `collapsed` tinyint(4) NOT NULL DEFAULT '0',
  3192. `html` tinyint(4) NOT NULL DEFAULT '0',
  3193. `privacy` tinyint(4) NOT NULL DEFAULT '0',
  3194. `rateable` varchar(32) NOT NULL DEFAULT '',
  3195. `attrs` text NOT NULL,
  3196. `attrs_tr` text NOT NULL,
  3197. `attrs_wrapper` text NOT NULL,
  3198. `checker_func` varchar(32) NOT NULL,
  3199. `checker_params` text NOT NULL,
  3200. `checker_error` varchar(255) NOT NULL,
  3201. `db_pass` varchar(32) NOT NULL,
  3202. `db_params` text NOT NULL,
  3203. `editable` tinyint(4) NOT NULL DEFAULT '1',
  3204. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3205. PRIMARY KEY (`id`),
  3206. UNIQUE KEY `display_name` (`object`(64),`name`(127))
  3207. );
  3208. 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
  3209. ('sys_login', 'system', 'role', '1', '', 0, 'hidden', '_sys_form_login_input_caption_system_role', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3210. ('sys_login', 'system', 'relocate', '', '', 0, 'hidden', '_sys_form_login_input_caption_system_relocate', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3211. ('sys_login', 'system', 'ID', '', '', 0, 'text', '_sys_form_login_input_caption_system_id', '_sys_form_login_input_email', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3212. ('sys_login', 'system', 'Password', '', '', 0, 'password', '_sys_form_login_input_caption_system_password', '_sys_form_login_input_password', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3213. ('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),
  3214. ('sys_login', 'system', 'login', '_sys_form_login_input_submit', '', 0, 'submit', '_sys_form_login_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3215. ('sys_login', 'system', 'submit_text', '', '', 0, 'custom', '_sys_form_login_input_caption_system_submit_text', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3216. ('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),
  3217. ('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),
  3218. ('sys_login', 'system', 'back', '', '', '', 'value', '_sys_form_login_input_caption_system_back', '_sys_form_login_input_back', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
  3219. ('sys_login', 'system', 'do_checkcode', '_sys_form_login_input_checkcode', '', 0, 'submit', '_sys_form_login_input_caption_system_checkcode', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3220. ('sys_login', 'system', 'do_sendsms', '_sys_form_login_input_sendsms', '', 0, 'submit', '_sys_form_login_input_caption_system_sendsms', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3221. ('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),
  3222. ('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),
  3223. ('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),
  3224. ('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),
  3225. ('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),
  3226. ('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),
  3227. ('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),
  3228. ('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),
  3229. ('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),
  3230. ('sys_account', 'system', 'delete_content', '1', '', 0, 'hidden', '_sys_form_login_input_caption_system_delete_content', '', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3231. ('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),
  3232. ('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),
  3233. ('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),
  3234. ('sys_account', 'system', 'agreement', '', '', 0, 'custom', '_sys_form_login_input_caption_system_agreement', '_sys_form_account_input_agreement', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3235. ('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),
  3236. ('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),
  3237. ('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),
  3238. ('sys_profile', 'system', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3239. ('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),
  3240. ('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),
  3241. ('sys_forgot_password', 'system', 'key', '', '', 0, 'hidden', '_sys_form_forgot_password_input_caption_system_key', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3242. ('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),
  3243. ('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),
  3244. ('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),
  3245. ('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),
  3246. ('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),
  3247. ('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),
  3248. ('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),
  3249. ('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),
  3250. ('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),
  3251. ('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),
  3252. ('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),
  3253. ('sys_unsubscribe', 'system', 'id', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3254. ('sys_unsubscribe', 'system', 'code', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_code', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3255. ('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),
  3256. ('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),
  3257. ('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),
  3258. ('sys_comment', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3259. ('sys_comment', 'system', 'id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3260. ('sys_comment', 'system', 'action', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3261. ('sys_comment', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3262. ('sys_comment', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3263. ('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),
  3264. ('sys_comment', 'system', 'cmt_anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3265. ('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),
  3266. ('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),
  3267. ('sys_comment', 'system', 'cmt_controls', '', 'cmt_submit,cmt_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3268. ('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),
  3269. ('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),
  3270. ('sys_review', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3271. ('sys_review', 'system', 'id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3272. ('sys_review', 'system', 'action', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3273. ('sys_review', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3274. ('sys_review', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3275. ('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),
  3276. ('sys_review', 'system', 'cmt_mood', '', '', 0, 'custom', '_sys_form_review_input_caption_system_cmt_mood', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  3277. ('sys_review', 'system', 'cmt_anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3278. ('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),
  3279. ('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),
  3280. ('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),
  3281. ('sys_report', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3282. ('sys_report', 'system', 'object_id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_object_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3283. ('sys_report', 'system', 'action', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3284. ('sys_report', 'system', 'id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3285. ('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),
  3286. ('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),
  3287. ('sys_report', 'system', 'submit', '_sys_form_report_input_caption_submit', '', 0, 'submit', '_sys_form_report_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3288. ('sys_favorite', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3289. ('sys_favorite', 'system', 'list_id', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_list_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3290. ('sys_favorite', 'system', 'object_id', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_object_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3291. ('sys_favorite', 'system', 'action', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3292. ('sys_favorite', 'system', 'id', '', '', 0, 'hidden', '_sys_form_favorite_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3293. ('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),
  3294. ('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),
  3295. ('sys_favorite', 'system', 'title', '', '', 0, 'text', '_sys_form_favorite_input_caption_system_title', '_sys_form_favorite_input_caption_title', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3296. ('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),
  3297. ('sys_favorite', 'system', 'submit', '_sys_form_favorite_input_caption_submit', '', 0, 'submit', '_sys_form_favorite_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3298. ('sys_privacy_group_custom', 'system', 'profile_id', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_profile_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3299. ('sys_privacy_group_custom', 'system', 'content_id', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_content_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3300. ('sys_privacy_group_custom', 'system', 'object', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_object', '', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
  3301. ('sys_privacy_group_custom', 'system', 'action', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3302. ('sys_privacy_group_custom', 'system', 'group_id', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_group_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3303. ('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),
  3304. ('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),
  3305. ('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),
  3306. ('sys_privacy_group_custom', 'system', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3307. ('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),
  3308. ('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),
  3309. ('sys_labels', 'system', 'name', '', '', 0, 'hidden', '_sys_form_labels_input_caption_system_name', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3310. ('sys_labels', 'system', 'action', '', '', 0, 'hidden', '_sys_form_labels_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3311. ('sys_labels', 'system', 'search', '', '', 0, 'custom', '_sys_form_labels_input_caption_system_search', '_sys_form_labels_input_caption_search', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3312. ('sys_labels', 'system', 'list', '', '', 0, 'custom', '_sys_form_labels_input_caption_system_list', '_sys_form_labels_input_caption_list', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3313. ('sys_labels', 'system', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3314. ('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),
  3315. ('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),
  3316. ('sys_wiki', 'system', 'block_id', '', '', 0, 'hidden', '', '_sys_form_wiki_input_caption_block_id', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3317. ('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),
  3318. ('sys_wiki', 'system', 'content_main', '', '', 0, 'custom', '', '_sys_form_wiki_input_caption_content_main', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3319. ('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),
  3320. ('sys_wiki', 'system', 'notes', '', '', 0, 'text', '', '_sys_form_wiki_input_caption_notes', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
  3321. ('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),
  3322. ('sys_wiki', 'system', 'do_submit', '_sys_submit', '', 0, 'submit', '_sys_form_wiki_input_caption_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3323. ('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),
  3324. ('sys_wiki', 'system', 'buttons', '', 'do_submit,close', 0, 'input_set', '_sys_form_wiki_buttons', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  3325. ('sys_manage', 'system', 'content_id', '', '', 0, 'hidden', '', '_sys_form_manage_input_sys_content_id', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3326. ('sys_manage', 'system', 'notes', '', '', 0, 'textarea', '_sys_form_manage_input_sys_notes', '_sys_form_manage_input_notes', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
  3327. ('sys_manage', 'system', 'controls', '', 'do_send,do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3328. ('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),
  3329. ('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),
  3330. ('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),
  3331. ('sys_acl', 'system', 'profile_id', '', '', 0, 'hidden', '_sys_form_acl_input_sys_profile_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3332. ('sys_acl', 'system', 'card', '', '', 0, 'hidden', '_sys_form_acl_input_sys_card', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  3333. ('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),
  3334. ('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),
  3335. ('sys_acl', 'system', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  3336. ('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),
  3337. ('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);
  3338. CREATE TABLE IF NOT EXISTS `sys_form_inputs_privacy` (
  3339. `id` int(11) NOT NULL AUTO_INCREMENT,
  3340. `input_id` int(11) unsigned NOT NULL default '0',
  3341. `author_id` int(11) unsigned NOT NULL default '0',
  3342. `allow_view_to` varchar(16) NOT NULL DEFAULT '3',
  3343. PRIMARY KEY (`id`),
  3344. UNIQUE KEY `input` (`input_id`,`author_id`)
  3345. );
  3346. CREATE TABLE IF NOT EXISTS `sys_form_display_inputs` (
  3347. `id` int(11) NOT NULL AUTO_INCREMENT,
  3348. `display_name` varchar(64) NOT NULL,
  3349. `input_name` varchar(32) NOT NULL,
  3350. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3351. `active` tinyint(4) NOT NULL DEFAULT '0',
  3352. `order` int(11) NOT NULL,
  3353. PRIMARY KEY (`id`),
  3354. UNIQUE KEY `display_input` (`display_name`,`input_name`)
  3355. );
  3356. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  3357. ('sys_login', 'role', 2147483647, 1, 1),
  3358. ('sys_login', 'relocate', 2147483647, 1, 2),
  3359. ('sys_login', 'ID', 2147483647, 1, 3),
  3360. ('sys_login', 'Password', 2147483647, 1, 4),
  3361. ('sys_login', 'rememberMe', 2147483647, 1, 5),
  3362. ('sys_login', 'submit_text', 2147483647, 1, 6),
  3363. ('sys_login', 'login', 2147483647, 1, 7),
  3364. ('sys_login_step2', 'phone', 2147483647, 1, 1),
  3365. ('sys_login_step2', 'do_sendsms', 2147483647, 1, 2),
  3366. ('sys_login_step2', 'relocate', 2147483647, 1, 3),
  3367. ('sys_login_step3', 'code', 2147483647, 1, 1),
  3368. ('sys_login_step3', 'do_checkcode', 2147483647, 1, 2),
  3369. ('sys_login_step3', 'back', 2147483647, 1, 3),
  3370. ('sys_login_step3', 'relocate', 2147483647, 1, 4),
  3371. ('sys_account_create', 'name', 2147483647, 1, 1),
  3372. ('sys_account_create', 'email', 2147483647, 1, 2),
  3373. ('sys_account_create', 'phone', 2147483647, 0, 3),
  3374. ('sys_account_create', 'password', 2147483647, 1, 4),
  3375. ('sys_account_create', 'receive_news', 2147483647, 1, 5),
  3376. ('sys_account_create', 'do_publish', 2147483647, 1, 6),
  3377. ('sys_account_create', 'agreement', 2147483647, 0, 7),
  3378. ('sys_account_settings_email', 'email', 2147483647, 1, 1),
  3379. ('sys_account_settings_email', 'password_current', 2147483647, 1, 2),
  3380. ('sys_account_settings_email', 'receive_updates', 2147483647, 1, 3),
  3381. ('sys_account_settings_email', 'receive_news', 2147483647, 1, 4),
  3382. ('sys_account_settings_email', 'do_submit', 2147483647, 1, 5),
  3383. ('sys_account_settings_pwd', 'password_current', 2147483647, 1, 1),
  3384. ('sys_account_settings_pwd', 'password', 2147483647, 1, 2),
  3385. ('sys_account_settings_pwd', 'password_confirm', 2147483647, 1, 3),
  3386. ('sys_account_settings_pwd', 'do_submit', 2147483647, 1, 4),
  3387. ('sys_account_settings_del_account', 'delete_content', 2147483647, 1, 0),
  3388. ('sys_account_settings_del_account', 'delete_confirm', 2147483647, 1, 1),
  3389. ('sys_account_settings_del_account', 'password_current', 2147483647, 1, 2),
  3390. ('sys_account_settings_del_account', 'do_submit', 2147483647, 1, 3),
  3391. ('sys_account_settings_info', 'name', 2147483647, 1, 1),
  3392. ('sys_account_settings_info', 'do_submit', 2147483647, 1, 2),
  3393. ('sys_profile_cf_set', 'cfw_value', 2147483647, 1, 1),
  3394. ('sys_profile_cf_set', 'do_submit', 2147483647, 1, 2),
  3395. ('sys_profile_cf_manage', 'cfu_items', 2147483647, 1, 1),
  3396. ('sys_profile_cf_manage', 'cfu_locked', 2147483647, 1, 2),
  3397. ('sys_profile_cf_manage', 'controls', 2147483647, 1, 3),
  3398. ('sys_profile_cf_manage', 'do_submit', 2147483647, 1, 4),
  3399. ('sys_profile_cf_manage', 'do_cancel', 2147483647, 1, 5),
  3400. ('sys_forgot_password', 'email', 2147483647, 1, 1),
  3401. ('sys_forgot_password', 'phone', 2147483647, 1, 2),
  3402. ('sys_forgot_password', 'captcha', 2147483647, 1, 3),
  3403. ('sys_forgot_password', 'do_submit', 2147483647, 1, 4),
  3404. ('sys_forgot_password_reset', 'key', 2147483647, 1, 1),
  3405. ('sys_forgot_password_reset', 'password', 2147483647, 1, 2),
  3406. ('sys_forgot_password_reset', 'captcha', 2147483647, 1, 3),
  3407. ('sys_forgot_password_reset', 'do_submit', 2147483647, 1, 4),
  3408. ('sys_confirm_email', 'code', 2147483647, 1, 1),
  3409. ('sys_confirm_email', 'do_submit', 2147483647, 1, 2),
  3410. ('sys_confirm_phone_set_phone', 'phone', 2147483647, 1, 1),
  3411. ('sys_confirm_phone_set_phone', 'do_sendsms', 2147483647, 1, 2),
  3412. ('sys_confirm_phone_confirmation', 'code', 2147483647, 1, 1),
  3413. ('sys_confirm_phone_confirmation', 'do_submit', 2147483647, 1, 2),
  3414. ('sys_unsubscribe_updates', 'id', 2147483647, 1, 1),
  3415. ('sys_unsubscribe_updates', 'code', 2147483647, 1, 2),
  3416. ('sys_unsubscribe_updates', 'receive_updates', 2147483647, 1, 3),
  3417. ('sys_unsubscribe_updates', 'do_submit', 2147483647, 1, 4),
  3418. ('sys_unsubscribe_news', 'id', 2147483647, 1, 1),
  3419. ('sys_unsubscribe_news', 'code', 2147483647, 1, 2),
  3420. ('sys_unsubscribe_news', 'receive_news', 2147483647, 1, 3),
  3421. ('sys_unsubscribe_news', 'do_submit', 2147483647, 1, 4),
  3422. ('sys_comment_post', 'sys', 2147483647, 1, 1),
  3423. ('sys_comment_post', 'id', 2147483647, 1, 2),
  3424. ('sys_comment_post', 'action', 2147483647, 1, 3),
  3425. ('sys_comment_post', 'cmt_id', 2147483647, 0, 4),
  3426. ('sys_comment_post', 'cmt_parent_id', 2147483647, 1, 5),
  3427. ('sys_comment_post', 'cmt_text', 2147483647, 1, 6),
  3428. ('sys_comment_post', 'cmt_cf', 2147483647, 1, 7),
  3429. ('sys_comment_post', 'cmt_submit', 2147483647, 1, 8),
  3430. ('sys_comment_post', 'cmt_image', 2147483647, 1, 9),
  3431. ('sys_comment_edit', 'sys', 2147483647, 1, 1),
  3432. ('sys_comment_edit', 'id', 2147483647, 1, 2),
  3433. ('sys_comment_edit', 'action', 2147483647, 1, 3),
  3434. ('sys_comment_edit', 'cmt_id', 2147483647, 1, 4),
  3435. ('sys_comment_edit', 'cmt_parent_id', 2147483647, 1, 5),
  3436. ('sys_comment_edit', 'cmt_text', 2147483647, 1, 6),
  3437. ('sys_comment_edit', 'cmt_cf', 2147483647, 1, 7),
  3438. ('sys_comment_edit', 'cmt_controls', 2147483647, 1, 8),
  3439. ('sys_comment_edit', 'cmt_submit', 2147483647, 1, 9),
  3440. ('sys_comment_edit', 'cmt_cancel', 2147483647, 1, 10),
  3441. ('sys_comment_edit', 'cmt_image', 2147483647, 1, 11),
  3442. ('sys_review_post', 'sys', 2147483647, 1, 1),
  3443. ('sys_review_post', 'id', 2147483647, 1, 2),
  3444. ('sys_review_post', 'action', 2147483647, 1, 3),
  3445. ('sys_review_post', 'cmt_id', 2147483647, 0, 4),
  3446. ('sys_review_post', 'cmt_parent_id', 2147483647, 1, 5),
  3447. ('sys_review_post', 'cmt_text', 2147483647, 1, 6),
  3448. ('sys_review_post', 'cmt_mood', 2147483647, 1, 7),
  3449. ('sys_review_post', 'cmt_cf', 2147483647, 1, 9),
  3450. ('sys_review_post', 'cmt_submit', 2147483647, 1, 10),
  3451. ('sys_review_post', 'cmt_image', 2147483647, 1, 11),
  3452. ('sys_review_edit', 'sys', 2147483647, 1, 1),
  3453. ('sys_review_edit', 'id', 2147483647, 1, 2),
  3454. ('sys_review_edit', 'action', 2147483647, 1, 3),
  3455. ('sys_review_edit', 'cmt_id', 2147483647, 1, 4),
  3456. ('sys_review_edit', 'cmt_parent_id', 2147483647, 1, 5),
  3457. ('sys_review_edit', 'cmt_text', 2147483647, 1, 6),
  3458. ('sys_review_edit', 'cmt_mood', 2147483647, 1, 7),
  3459. ('sys_review_edit', 'cmt_cf', 2147483647, 1, 9),
  3460. ('sys_review_edit', 'cmt_submit', 2147483647, 1, 10),
  3461. ('sys_review_edit', 'cmt_image', 2147483647, 1, 11),
  3462. ('sys_report_post', 'sys', 2147483647, 1, 1),
  3463. ('sys_report_post', 'object_id', 2147483647, 1, 2),
  3464. ('sys_report_post', 'action', 2147483647, 1, 3),
  3465. ('sys_report_post', 'id', 2147483647, 0, 4),
  3466. ('sys_report_post', 'type', 2147483647, 1, 5),
  3467. ('sys_report_post', 'text', 2147483647, 1, 6),
  3468. ('sys_report_post', 'submit', 2147483647, 1, 7),
  3469. ('sys_favorite_add', 'sys', 2147483647, 1, 1),
  3470. ('sys_favorite_add', 'object_id', 2147483647, 1, 2),
  3471. ('sys_favorite_add', 'action', 2147483647, 1, 3),
  3472. ('sys_favorite_add', 'id', 2147483647, 0, 4),
  3473. ('sys_favorite_add', 'list', 2147483647, 1, 5),
  3474. ('sys_favorite_add', 'new_list', 2147483647, 1, 6),
  3475. ('sys_favorite_add', 'title', 2147483647, 1, 7),
  3476. ('sys_favorite_add', 'allow_view_favorite_list_to', 2147483647, 1, 8),
  3477. ('sys_favorite_add', 'submit', 2147483647, 1, 9),
  3478. ('sys_favorite_list_edit', 'sys', 2147483647, 1, 1),
  3479. ('sys_favorite_list_edit', 'list_id', 2147483647, 1, 2),
  3480. ('sys_favorite_list_edit', 'object_id', 2147483647, 1, 3),
  3481. ('sys_favorite_list_edit', 'action', 2147483647, 1, 4),
  3482. ('sys_favorite_list_edit', 'title', 2147483647, 1, 5),
  3483. ('sys_favorite_list_edit', 'allow_view_favorite_list_to', 2147483647, 1, 6),
  3484. ('sys_favorite_list_edit', 'submit', 2147483647, 1, 7),
  3485. ('sys_privacy_group_custom_members', 'profile_id', 2147483647, 1, 1),
  3486. ('sys_privacy_group_custom_members', 'content_id', 2147483647, 1, 2),
  3487. ('sys_privacy_group_custom_members', 'object', 2147483647, 1, 3),
  3488. ('sys_privacy_group_custom_members', 'action', 2147483647, 1, 4),
  3489. ('sys_privacy_group_custom_members', 'group_id', 2147483647, 1, 5),
  3490. ('sys_privacy_group_custom_members', 'search', 2147483647, 1, 6),
  3491. ('sys_privacy_group_custom_members', 'list', 2147483647, 1, 7),
  3492. ('sys_privacy_group_custom_members', 'controls', 2147483647, 1, 8),
  3493. ('sys_privacy_group_custom_members', 'do_submit', 2147483647, 1, 9),
  3494. ('sys_privacy_group_custom_members', 'do_cancel', 2147483647, 1, 10),
  3495. ('sys_privacy_group_custom_memberships', 'profile_id', 2147483647, 1, 1),
  3496. ('sys_privacy_group_custom_memberships', 'content_id', 2147483647, 1, 2),
  3497. ('sys_privacy_group_custom_memberships', 'object', 2147483647, 1, 3),
  3498. ('sys_privacy_group_custom_memberships', 'action', 2147483647, 1, 4),
  3499. ('sys_privacy_group_custom_memberships', 'group_id', 2147483647, 1, 5),
  3500. ('sys_privacy_group_custom_memberships', 'memberships', 2147483647, 1, 6),
  3501. ('sys_privacy_group_custom_memberships', 'controls', 2147483647, 1, 7),
  3502. ('sys_privacy_group_custom_memberships', 'do_submit', 2147483647, 1, 8),
  3503. ('sys_privacy_group_custom_memberships', 'do_cancel', 2147483647, 1, 9),
  3504. ('sys_labels_select', 'name', 2147483647, 1, 1),
  3505. ('sys_labels_select', 'action', 2147483647, 1, 2),
  3506. ('sys_labels_select', 'search', 2147483647, 1, 3),
  3507. ('sys_labels_select', 'list', 2147483647, 1, 4),
  3508. ('sys_labels_select', 'controls', 2147483647, 1, 5),
  3509. ('sys_labels_select', 'do_submit', 2147483647, 1, 6),
  3510. ('sys_labels_select', 'do_cancel', 2147483647, 1, 7),
  3511. ('sys_wiki_edit', 'block_id', 2147483647, 1, 1),
  3512. ('sys_wiki_edit', 'language', 2147483647, 1, 2),
  3513. ('sys_wiki_edit', 'content', 2147483647, 1, 3),
  3514. ('sys_wiki_edit', 'files', 2147483647, 1, 4),
  3515. ('sys_wiki_edit', 'notes', 2147483647, 1, 5),
  3516. ('sys_wiki_edit', 'do_submit', 2147483647, 1, 6),
  3517. ('sys_wiki_edit', 'close', 2147483647, 1, 7),
  3518. ('sys_wiki_edit', 'buttons', 2147483647, 1, 8),
  3519. ('sys_wiki_translate', 'block_id', 2147483647, 1, 1),
  3520. ('sys_wiki_translate', 'content_main', 2147483647, 1, 2),
  3521. ('sys_wiki_translate', 'language', 2147483647, 1, 3),
  3522. ('sys_wiki_translate', 'content', 2147483647, 1, 4),
  3523. ('sys_wiki_translate', 'files', 2147483647, 1, 5),
  3524. ('sys_wiki_translate', 'notes', 2147483647, 1, 6),
  3525. ('sys_wiki_translate', 'do_submit', 2147483647, 1, 7),
  3526. ('sys_wiki_translate', 'close', 2147483647, 1, 8),
  3527. ('sys_wiki_translate', 'buttons', 2147483647, 1, 9),
  3528. ('sys_manage_approve', 'content_id', 2147483647, 1, 1),
  3529. ('sys_manage_approve', 'notes', 2147483647, 1, 2),
  3530. ('sys_manage_approve', 'controls', 2147483647, 1, 3),
  3531. ('sys_manage_approve', 'do_send', 2147483647, 1, 4),
  3532. ('sys_manage_approve', 'do_submit', 2147483647, 1, 5),
  3533. ('sys_manage_approve', 'do_cancel', 2147483647, 1, 6),
  3534. ('sys_acl_set', 'profile_id', 2147483647, 1, 1),
  3535. ('sys_acl_set', 'card', 2147483647, 1, 2),
  3536. ('sys_acl_set', 'level_id', 2147483647, 1, 3),
  3537. ('sys_acl_set', 'duration', 2147483647, 1, 4),
  3538. ('sys_acl_set', 'controls', 2147483647, 1, 5),
  3539. ('sys_acl_set', 'do_submit', 2147483647, 1, 6),
  3540. ('sys_acl_set', 'do_cancel', 2147483647, 1, 7);
  3541. CREATE TABLE `sys_form_fields_ids` (
  3542. `id` int(11) NOT NULL AUTO_INCREMENT,
  3543. `object_form` varchar(64) NOT NULL default '',
  3544. `module` varchar(32) NOT NULL,
  3545. `field_name` varchar(255) NOT NULL default '',
  3546. `content_id` int(11) NOT NULL DEFAULT '0',
  3547. `author_id` int(10) NOT NULL DEFAULT '0',
  3548. `nested_content_id` int(10) NOT NULL default '0',
  3549. `rate` float NOT NULL default '0',
  3550. `votes` int(11) NOT NULL default '0',
  3551. `rrate` float NOT NULL DEFAULT '0',
  3552. `rvotes` int(11) NOT NULL DEFAULT '0',
  3553. PRIMARY KEY (`id`),
  3554. KEY `system_form_fields_id` (`object_form`, `content_id`, `nested_content_id`)
  3555. );
  3556. CREATE TABLE `sys_form_pre_lists` (
  3557. `id` int(11) NOT NULL AUTO_INCREMENT,
  3558. `module` varchar(32) NOT NULL default '',
  3559. `key` varchar(255) NOT NULL default '',
  3560. `title` varchar(255) NOT NULL default '',
  3561. `use_for_sets` tinyint(4) unsigned NOT NULL default '1',
  3562. `extendable` tinyint(4) unsigned NOT NULL default '1',
  3563. PRIMARY KEY (`id`),
  3564. UNIQUE KEY `key` (`key`(191)),
  3565. FULLTEXT KEY `ModuleAndKey` (`module`(32), `key`(159))
  3566. );
  3567. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`, `extendable`) VALUES
  3568. ('Country', '_adm_form_txt_pre_lists_country', 'system', '0', '1'),
  3569. ('Sex', '_adm_form_txt_pre_lists_sex', 'system', '1', '1'),
  3570. ('Language', '_adm_form_txt_pre_lists_language', 'system', '0', '1'),
  3571. ('Currency', '_adm_form_txt_pre_lists_currency', 'system', '0', '1'),
  3572. ('sys_report_types', '_sys_pre_lists_report_types', 'system', '0', '0'),
  3573. ('sys_vote_reactions', '_sys_pre_lists_vote_reactions', 'system', '0', '0'),
  3574. ('sys_relations', '_sys_pre_lists_relations', 'system', '0', '1'),
  3575. ('sys_content_filter', '_sys_pre_lists_content_filter', 'system', '1', '0'),
  3576. ('sys_studio_widget_types', '_sys_pre_lists_studio_widget_types', 'system', '0', '0'),
  3577. ('sys_colors', '_sys_pre_lists_colors', 'system', '0', '0');
  3578. CREATE TABLE `sys_form_pre_values` (
  3579. `id` int(11) NOT NULL AUTO_INCREMENT,
  3580. `Key` varchar(255) NOT NULL default '',
  3581. `Value` varchar(255) NOT NULL default '',
  3582. `Order` int(10) unsigned NOT NULL default '0',
  3583. `LKey` varchar(255) NOT NULL default '',
  3584. `LKey2` varchar(255) NOT NULL default '',
  3585. `Data` text NOT NULL default '',
  3586. PRIMARY KEY (`id`),
  3587. FULLTEXT KEY `KeyAndValue` (`Key`, `Value`)
  3588. );
  3589. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3590. ('Country', 'AF', 1, '__Afghanistan', ''),
  3591. ('Country', 'AX', 2, '__Aland_Islands', ''),
  3592. ('Country', 'AL', 3, '__Albania', ''),
  3593. ('Country', 'DZ', 4, '__Algeria', ''),
  3594. ('Country', 'AS', 5, '__American Samoa', ''),
  3595. ('Country', 'AD', 6, '__Andorra', ''),
  3596. ('Country', 'AO', 7, '__Angola', ''),
  3597. ('Country', 'AI', 8, '__Anguilla', ''),
  3598. ('Country', 'AQ', 9, '__Antarctica', ''),
  3599. ('Country', 'AG', 10, '__Antigua and Barbuda', ''),
  3600. ('Country', 'AR', 11, '__Argentina', ''),
  3601. ('Country', 'AM', 12, '__Armenia', ''),
  3602. ('Country', 'AW', 13, '__Aruba', ''),
  3603. ('Country', 'AU', 14, '__Australia', ''),
  3604. ('Country', 'AT', 15, '__Austria', ''),
  3605. ('Country', 'AZ', 16, '__Azerbaijan', ''),
  3606. ('Country', 'BH', 17, '__Bahrain', ''),
  3607. ('Country', 'BD', 18, '__Bangladesh', ''),
  3608. ('Country', 'BB', 19, '__Barbados', ''),
  3609. ('Country', 'BY', 20, '__Belarus', ''),
  3610. ('Country', 'BE', 21, '__Belgium', ''),
  3611. ('Country', 'BZ', 22, '__Belize', ''),
  3612. ('Country', 'BJ', 23, '__Benin', ''),
  3613. ('Country', 'BM', 24, '__Bermuda', ''),
  3614. ('Country', 'BT', 25, '__Bhutan', ''),
  3615. ('Country', 'BO', 26, '__Bolivia', ''),
  3616. ('Country', 'BA', 27, '__Bosnia and Herzegovina', ''),
  3617. ('Country', 'BW', 28, '__Botswana', ''),
  3618. ('Country', 'BV', 29, '__Bouvet Island', ''),
  3619. ('Country', 'BR', 30, '__Brazil', ''),
  3620. ('Country', 'IO', 31, '__British Indian Ocean Territory', ''),
  3621. ('Country', 'VG', 32, '__British Virgin Islands', ''),
  3622. ('Country', 'BN', 33, '__Brunei Darussalam', ''),
  3623. ('Country', 'BG', 34, '__Bulgaria', ''),
  3624. ('Country', 'BF', 35, '__Burkina Faso', ''),
  3625. ('Country', 'MM', 36, '__Burma', ''),
  3626. ('Country', 'BI', 37, '__Burundi', ''),
  3627. ('Country', 'KH', 38, '__Cambodia', ''),
  3628. ('Country', 'CM', 39, '__Cameroon', ''),
  3629. ('Country', 'CA', 40, '__Canada', ''),
  3630. ('Country', 'CV', 41, '__Cape Verde', ''),
  3631. ('Country', 'KY', 42, '__Cayman Islands', ''),
  3632. ('Country', 'CF', 43, '__Central African Republic', ''),
  3633. ('Country', 'TD', 44, '__Chad', ''),
  3634. ('Country', 'CL', 45, '__Chile', ''),
  3635. ('Country', 'CN', 46, '__China', ''),
  3636. ('Country', 'CX', 47, '__Christmas Island', ''),
  3637. ('Country', 'CC', 48, '__Cocos (Keeling) Islands', ''),
  3638. ('Country', 'CO', 49, '__Colombia', ''),
  3639. ('Country', 'KM', 50, '__Comoros', ''),
  3640. ('Country', 'CD', 51, '__Congo, Democratic Republic of the', ''),
  3641. ('Country', 'CG', 52, '__Congo, Republic of the', ''),
  3642. ('Country', 'CK', 53, '__Cook Islands', ''),
  3643. ('Country', 'CR', 54, '__Costa Rica', ''),
  3644. ('Country', 'CI', 55, '__Cote d''Ivoire', ''),
  3645. ('Country', 'HR', 56, '__Croatia', ''),
  3646. ('Country', 'CU', 57, '__Cuba', ''),
  3647. ('Country', 'CY', 58, '__Cyprus', ''),
  3648. ('Country', 'CZ', 59, '__Czech Republic', ''),
  3649. ('Country', 'DK', 60, '__Denmark', ''),
  3650. ('Country', 'DJ', 61, '__Djibouti', ''),
  3651. ('Country', 'DM', 62, '__Dominica', ''),
  3652. ('Country', 'DO', 63, '__Dominican Republic', ''),
  3653. ('Country', 'TL', 64, '__East Timor', ''),
  3654. ('Country', 'EC', 65, '__Ecuador', ''),
  3655. ('Country', 'EG', 66, '__Egypt', ''),
  3656. ('Country', 'SV', 67, '__El Salvador', ''),
  3657. ('Country', 'GQ', 68, '__Equatorial Guinea', ''),
  3658. ('Country', 'ER', 69, '__Eritrea', ''),
  3659. ('Country', 'EE', 70, '__Estonia', ''),
  3660. ('Country', 'ET', 71, '__Ethiopia', ''),
  3661. ('Country', 'FK', 72, '__Falkland Islands (Islas Malvinas)', ''),
  3662. ('Country', 'FO', 73, '__Faroe Islands', ''),
  3663. ('Country', 'FJ', 74, '__Fiji', ''),
  3664. ('Country', 'FI', 75, '__Finland', ''),
  3665. ('Country', 'FR', 76, '__France', ''),
  3666. ('Country', 'GF', 77, '__French Guiana', ''),
  3667. ('Country', 'PF', 78, '__French Polynesia', ''),
  3668. ('Country', 'TF', 79, '__French Southern and Antarctic Lands', ''),
  3669. ('Country', 'GA', 80, '__Gabon', ''),
  3670. ('Country', 'GE', 81, '__Georgia', ''),
  3671. ('Country', 'DE', 82, '__Germany', ''),
  3672. ('Country', 'GH', 83, '__Ghana', ''),
  3673. ('Country', 'GI', 84, '__Gibraltar', ''),
  3674. ('Country', 'GR', 85, '__Greece', ''),
  3675. ('Country', 'GL', 86, '__Greenland', ''),
  3676. ('Country', 'GD', 87, '__Grenada', ''),
  3677. ('Country', 'GP', 88, '__Guadeloupe', ''),
  3678. ('Country', 'GU', 89, '__Guam', ''),
  3679. ('Country', 'GT', 90, '__Guatemala', ''),
  3680. ('Country', 'GG', 91, '__Guernsey', ''),
  3681. ('Country', 'GN', 92, '__Guinea', ''),
  3682. ('Country', 'GW', 93, '__Guinea-Bissau', ''),
  3683. ('Country', 'GY', 94, '__Guyana', ''),
  3684. ('Country', 'HT', 95, '__Haiti', ''),
  3685. ('Country', 'HM', 96, '__Heard Island and McDonald Islands', ''),
  3686. ('Country', 'VA', 97, '__Holy See (Vatican City)', ''),
  3687. ('Country', 'HN', 98, '__Honduras', ''),
  3688. ('Country', 'HK', 99, '__Hong Kong (SAR)', ''),
  3689. ('Country', 'HU', 100, '__Hungary', ''),
  3690. ('Country', 'IS', 101, '__Iceland', ''),
  3691. ('Country', 'IN', 102, '__India', ''),
  3692. ('Country', 'ID', 103, '__Indonesia', ''),
  3693. ('Country', 'IR', 104, '__Iran', ''),
  3694. ('Country', 'IQ', 105, '__Iraq', ''),
  3695. ('Country', 'IE', 106, '__Ireland', ''),
  3696. ('Country', 'IM', 107, '__Isle_of_Man', ''),
  3697. ('Country', 'IL', 108, '__Israel', ''),
  3698. ('Country', 'IT', 109, '__Italy', ''),
  3699. ('Country', 'JM', 110, '__Jamaica', ''),
  3700. ('Country', 'JP', 111, '__Japan', ''),
  3701. ('Country', 'JE', 112, '__Jersey', ''),
  3702. ('Country', 'JO', 113, '__Jordan', ''),
  3703. ('Country', 'KZ', 114, '__Kazakhstan', ''),
  3704. ('Country', 'KE', 115, '__Kenya', ''),
  3705. ('Country', 'KI', 116, '__Kiribati', ''),
  3706. ('Country', 'KP', 117, '__Korea, North', ''),
  3707. ('Country', 'KR', 118, '__Korea, South', ''),
  3708. ('Country', 'KW', 119, '__Kuwait', ''),
  3709. ('Country', 'KG', 120, '__Kyrgyzstan', ''),
  3710. ('Country', 'LA', 121, '__Laos', ''),
  3711. ('Country', 'LV', 122, '__Latvia', ''),
  3712. ('Country', 'LB', 123, '__Lebanon', ''),
  3713. ('Country', 'LS', 124, '__Lesotho', ''),
  3714. ('Country', 'LR', 125, '__Liberia', ''),
  3715. ('Country', 'LY', 126, '__Libya', ''),
  3716. ('Country', 'LI', 127, '__Liechtenstein', ''),
  3717. ('Country', 'LT', 128, '__Lithuania', ''),
  3718. ('Country', 'LU', 129, '__Luxembourg', ''),
  3719. ('Country', 'MO', 130, '__Macao', ''),
  3720. ('Country', 'MK', 131, '__Macedonia, The Former Yugoslav Republic of', ''),
  3721. ('Country', 'MG', 132, '__Madagascar', ''),
  3722. ('Country', 'MW', 133, '__Malawi', ''),
  3723. ('Country', 'MY', 134, '__Malaysia', ''),
  3724. ('Country', 'MV', 135, '__Maldives', ''),
  3725. ('Country', 'ML', 136, '__Mali', ''),
  3726. ('Country', 'MT', 137, '__Malta', ''),
  3727. ('Country', 'MH', 138, '__Marshall Islands', ''),
  3728. ('Country', 'MQ', 139, '__Martinique', ''),
  3729. ('Country', 'MR', 140, '__Mauritania', ''),
  3730. ('Country', 'MU', 141, '__Mauritius', ''),
  3731. ('Country', 'YT', 142, '__Mayotte', ''),
  3732. ('Country', 'MX', 143, '__Mexico', ''),
  3733. ('Country', 'FM', 144, '__Micronesia, Federated States of', ''),
  3734. ('Country', 'MD', 145, '__Moldova', ''),
  3735. ('Country', 'MC', 146, '__Monaco', ''),
  3736. ('Country', 'MN', 147, '__Mongolia', ''),
  3737. ('Country', 'ME', 148, '__Montenegro', ''),
  3738. ('Country', 'MS', 149, '__Montserrat', ''),
  3739. ('Country', 'MA', 150, '__Morocco', ''),
  3740. ('Country', 'MZ', 151, '__Mozambique', ''),
  3741. ('Country', 'NA', 152, '__Namibia', ''),
  3742. ('Country', 'NR', 153, '__Nauru', ''),
  3743. ('Country', 'NP', 154, '__Nepal', ''),
  3744. ('Country', 'NL', 155, '__Netherlands', ''),
  3745. ('Country', 'AN', 156, '__Netherlands Antilles', ''),
  3746. ('Country', 'NC', 157, '__New Caledonia', ''),
  3747. ('Country', 'NZ', 158, '__New Zealand', ''),
  3748. ('Country', 'NI', 159, '__Nicaragua', ''),
  3749. ('Country', 'NE', 160, '__Niger', ''),
  3750. ('Country', 'NG', 161, '__Nigeria', ''),
  3751. ('Country', 'NU', 162, '__Niue', ''),
  3752. ('Country', 'NF', 163, '__Norfolk Island', ''),
  3753. ('Country', 'MP', 164, '__Northern Mariana Islands', ''),
  3754. ('Country', 'NO', 165, '__Norway', ''),
  3755. ('Country', 'OM', 166, '__Oman', ''),
  3756. ('Country', 'PK', 167, '__Pakistan', ''),
  3757. ('Country', 'PW', 168, '__Palau', ''),
  3758. ('Country', 'PS', 169, '__Palestinian Territory, Occupied', ''),
  3759. ('Country', 'PA', 170, '__Panama', ''),
  3760. ('Country', 'PG', 171, '__Papua New Guinea', ''),
  3761. ('Country', 'PY', 172, '__Paraguay', ''),
  3762. ('Country', 'PE', 173, '__Peru', ''),
  3763. ('Country', 'PH', 174, '__Philippines', ''),
  3764. ('Country', 'PN', 175, '__Pitcairn Islands', ''),
  3765. ('Country', 'PL', 176, '__Poland', ''),
  3766. ('Country', 'PT', 177, '__Portugal', ''),
  3767. ('Country', 'PR', 178, '__Puerto Rico', ''),
  3768. ('Country', 'QA', 179, '__Qatar', ''),
  3769. ('Country', 'RE', 180, '__Reunion', ''),
  3770. ('Country', 'RO', 181, '__Romania', ''),
  3771. ('Country', 'RU', 182, '__Russia', ''),
  3772. ('Country', 'RW', 183, '__Rwanda', ''),
  3773. ('Country', 'SH', 184, '__Saint Helena', ''),
  3774. ('Country', 'KN', 185, '__Saint Kitts and Nevis', ''),
  3775. ('Country', 'LC', 186, '__Saint Lucia', ''),
  3776. ('Country', 'PM', 187, '__Saint Pierre and Miquelon', ''),
  3777. ('Country', 'VC', 188, '__Saint Vincent and the Grenadines', ''),
  3778. ('Country', 'BL', 189, '__Saint_Barthelemy', ''),
  3779. ('Country', 'MF', 190, '__Saint_Martin_French_part', ''),
  3780. ('Country', 'WS', 191, '__Samoa', ''),
  3781. ('Country', 'SM', 192, '__San Marino', ''),
  3782. ('Country', 'ST', 193, '__Sao Tome and Principe', ''),
  3783. ('Country', 'SA', 194, '__Saudi Arabia', ''),
  3784. ('Country', 'SN', 195, '__Senegal', ''),
  3785. ('Country', 'RS', 196, '__Serbia', ''),
  3786. ('Country', 'SC', 197, '__Seychelles', ''),
  3787. ('Country', 'SL', 198, '__Sierra Leone', ''),
  3788. ('Country', 'SG', 199, '__Singapore', ''),
  3789. ('Country', 'SK', 200, '__Slovakia', ''),
  3790. ('Country', 'SI', 201, '__Slovenia', ''),
  3791. ('Country', 'SB', 202, '__Solomon Islands', ''),
  3792. ('Country', 'SO', 203, '__Somalia', ''),
  3793. ('Country', 'ZA', 204, '__South Africa', ''),
  3794. ('Country', 'GS', 205, '__South Georgia and the South Sandwich Islands', ''),
  3795. ('Country', 'ES', 206, '__Spain', ''),
  3796. ('Country', 'LK', 207, '__Sri Lanka', ''),
  3797. ('Country', 'SD', 208, '__Sudan', ''),
  3798. ('Country', 'SR', 209, '__Suriname', ''),
  3799. ('Country', 'SJ', 210, '__Svalbard', ''),
  3800. ('Country', 'SZ', 211, '__Swaziland', ''),
  3801. ('Country', 'SE', 212, '__Sweden', ''),
  3802. ('Country', 'CH', 213, '__Switzerland', ''),
  3803. ('Country', 'SY', 214, '__Syria', ''),
  3804. ('Country', 'TW', 215, '__Taiwan', ''),
  3805. ('Country', 'TJ', 216, '__Tajikistan', ''),
  3806. ('Country', 'TZ', 217, '__Tanzania', ''),
  3807. ('Country', 'TH', 218, '__Thailand', ''),
  3808. ('Country', 'BS', 219, '__The Bahamas', ''),
  3809. ('Country', 'GM', 220, '__The Gambia', ''),
  3810. ('Country', 'TG', 221, '__Togo', ''),
  3811. ('Country', 'TK', 222, '__Tokelau', ''),
  3812. ('Country', 'TO', 223, '__Tonga', ''),
  3813. ('Country', 'TT', 224, '__Trinidad and Tobago', ''),
  3814. ('Country', 'TN', 225, '__Tunisia', ''),
  3815. ('Country', 'TR', 226, '__Turkey', ''),
  3816. ('Country', 'TM', 227, '__Turkmenistan', ''),
  3817. ('Country', 'TC', 228, '__Turks and Caicos Islands', ''),
  3818. ('Country', 'TV', 229, '__Tuvalu', ''),
  3819. ('Country', 'UG', 230, '__Uganda', ''),
  3820. ('Country', 'UA', 231, '__Ukraine', ''),
  3821. ('Country', 'AE', 232, '__United Arab Emirates', ''),
  3822. ('Country', 'GB', 233, '__United Kingdom', ''),
  3823. ('Country', 'US', 234, '__United States', ''),
  3824. ('Country', 'UM', 235, '__United States Minor Outlying Islands', ''),
  3825. ('Country', 'UY', 236, '__Uruguay', ''),
  3826. ('Country', 'UZ', 237, '__Uzbekistan', ''),
  3827. ('Country', 'VU', 238, '__Vanuatu', ''),
  3828. ('Country', 'VE', 239, '__Venezuela', ''),
  3829. ('Country', 'VN', 240, '__Vietnam', ''),
  3830. ('Country', 'VI', 241, '__Virgin Islands', ''),
  3831. ('Country', 'WF', 242, '__Wallis and Futuna', ''),
  3832. ('Country', 'EH', 243, '__Western Sahara', ''),
  3833. ('Country', 'YE', 244, '__Yemen', ''),
  3834. ('Country', 'ZM', 245, '__Zambia', ''),
  3835. ('Country', 'ZW', 246, '__Zimbabwe', '');
  3836. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3837. ('Sex', '', 1, '_sys_not_specified', ''),
  3838. ('Sex', '1', 2, '_Male', '_LookinMale'),
  3839. ('Sex', '2', 3, '_Female', '_LookinFemale');
  3840. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3841. ('Language', '1', 1, '__English', ''),
  3842. ('Language', '2', 2, '__Afrikaans', ''),
  3843. ('Language', '3', 3, '__Arabic', ''),
  3844. ('Language', '4', 4, '__Bulgarian', ''),
  3845. ('Language', '5', 5, '__Burmese', ''),
  3846. ('Language', '6', 6, '__Cantonese', ''),
  3847. ('Language', '7', 7, '__Croatian', ''),
  3848. ('Language', '8', 8, '__Danish', ''),
  3849. ('Language', '9', 9, '__Dutch', ''),
  3850. ('Language', '10', 10, '__Esperanto', ''),
  3851. ('Language', '11', 11, '__Estonian', ''),
  3852. ('Language', '12', 12, '__Finnish', ''),
  3853. ('Language', '13', 13, '__French', ''),
  3854. ('Language', '14', 14, '__German', ''),
  3855. ('Language', '15', 15, '__Greek', ''),
  3856. ('Language', '16', 16, '__Gujrati', ''),
  3857. ('Language', '17', 17, '__Hebrew', ''),
  3858. ('Language', '18', 18, '__Hindi', ''),
  3859. ('Language', '19', 19, '__Hungarian', ''),
  3860. ('Language', '20', 20, '__Icelandic', ''),
  3861. ('Language', '21', 21, '__Indian', ''),
  3862. ('Language', '22', 22, '__Indonesian', ''),
  3863. ('Language', '23', 23, '__Italian', ''),
  3864. ('Language', '24', 24, '__Japanese', ''),
  3865. ('Language', '25', 25, '__Korean', ''),
  3866. ('Language', '26', 26, '__Latvian', ''),
  3867. ('Language', '27', 27, '__Lithuanian', ''),
  3868. ('Language', '28', 28, '__Malay', ''),
  3869. ('Language', '29', 29, '__Mandarin', ''),
  3870. ('Language', '30', 30, '__Marathi', ''),
  3871. ('Language', '31', 31, '__Moldovian', ''),
  3872. ('Language', '32', 32, '__Nepalese', ''),
  3873. ('Language', '33', 33, '__Norwegian', ''),
  3874. ('Language', '34', 34, '__Persian', ''),
  3875. ('Language', '35', 35, '__Polish', ''),
  3876. ('Language', '36', 36, '__Portuguese', ''),
  3877. ('Language', '37', 37, '__Punjabi', ''),
  3878. ('Language', '38', 38, '__Romanian', ''),
  3879. ('Language', '39', 39, '__Russian', ''),
  3880. ('Language', '40', 40, '__Serbian', ''),
  3881. ('Language', '41', 41, '__Spanish', ''),
  3882. ('Language', '42', 42, '__Swedish', ''),
  3883. ('Language', '43', 43, '__Tagalog', ''),
  3884. ('Language', '44', 44, '__Taiwanese', ''),
  3885. ('Language', '45', 45, '__Tamil', ''),
  3886. ('Language', '46', 46, '__Telugu', ''),
  3887. ('Language', '47', 47, '__Thai', ''),
  3888. ('Language', '48', 48, '__Tongan', ''),
  3889. ('Language', '49', 49, '__Turkish', ''),
  3890. ('Language', '50', 50, '__Ukrainian', ''),
  3891. ('Language', '51', 51, '__Urdu', ''),
  3892. ('Language', '52', 52, '__Vietnamese', ''),
  3893. ('Language', '53', 53, '__Visayan', '');
  3894. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3895. ('Currency', 'AUD', 1, '__AUD', '', 'a:1:{s:4:"sign";s:6:"A&#36;";}'),
  3896. ('Currency', 'CAD', 2, '__CAD', '', 'a:1:{s:4:"sign";s:6:"C&#36;";}'),
  3897. ('Currency', 'EUR', 3, '__EUR', '', 'a:1:{s:4:"sign";s:7:"&#8364;";}'),
  3898. ('Currency', 'GBP', 4, '__GBP', '', 'a:1:{s:4:"sign";s:6:"&#163;";}'),
  3899. ('Currency', 'USD', 5, '__USD', '', 'a:1:{s:4:"sign";s:5:"&#36;";}'),
  3900. ('Currency', 'YEN', 6, '__YEN', '', 'a:1:{s:4:"sign";s:6:"&#165;";}');
  3901. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3902. ('sys_report_types', 'spam', 1, '_sys_pre_lists_report_types_spam', ''),
  3903. ('sys_report_types', 'scam', 2, '_sys_pre_lists_report_types_scam', ''),
  3904. ('sys_report_types', 'fraud', 3, '_sys_pre_lists_report_types_fraud', ''),
  3905. ('sys_report_types', 'nude', 4, '_sys_pre_lists_report_types_nude', ''),
  3906. ('sys_report_types', 'other', 5, '_sys_pre_lists_report_types_other', '');
  3907. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3908. ('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";}}'),
  3909. ('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";}'),
  3910. ('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";}'),
  3911. ('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";}'),
  3912. ('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";}'),
  3913. ('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";}');
  3914. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3915. ('sys_relations', '1', 1, '_sys_pre_lists_relations_husband', '', 'a:1:{i:0;s:1:"2";}'),
  3916. ('sys_relations', '2', 2, '_sys_pre_lists_relations_wife', '', 'a:1:{i:0;s:1:"1";}'),
  3917. ('sys_relations', '3', 3, '_sys_pre_lists_relations_father', '', 'a:2:{i:0;s:1:"5";i:1;s:1:"6";}'),
  3918. ('sys_relations', '4', 4, '_sys_pre_lists_relations_mother', '', 'a:2:{i:0;s:1:"5";i:1;s:1:"6";}'),
  3919. ('sys_relations', '5', 5, '_sys_pre_lists_relations_son', '', 'a:2:{i:0;s:1:"3";i:1;s:1:"4";}'),
  3920. ('sys_relations', '6', 6, '_sys_pre_lists_relations_daughter', '', 'a:2:{i:0;s:1:"3";i:1;s:1:"4";}'),
  3921. ('sys_relations', '7', 7, '_sys_pre_lists_relations_brother', '', 'a:2:{i:0;s:1:"7";i:1;s:1:"8";}'),
  3922. ('sys_relations', '8', 8, '_sys_pre_lists_relations_sister', '', 'a:2:{i:0;s:1:"7";i:1;s:1:"8";}');
  3923. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3924. ('sys_content_filter', 1, 1, '_sys_pre_lists_content_filter_g', '', ''),
  3925. ('sys_content_filter', 2, 2, '_sys_pre_lists_content_filter_pg', '', ''),
  3926. ('sys_content_filter', 3, 3, '_sys_pre_lists_content_filter_pg13', '', ''),
  3927. ('sys_content_filter', 4, 4, '_sys_pre_lists_content_filter_r', '', ''),
  3928. ('sys_content_filter', 5, 5, '_sys_pre_lists_content_filter_x', '', '');
  3929. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3930. ('sys_studio_widget_types', '', 1, '_sys_pre_lists_studio_widget_types_library', '', 'a:1:{s:4:"icon";s:15:"lmi-library.svg";}'),
  3931. ('sys_studio_widget_types', 'appearance', 2, '_sys_pre_lists_studio_widget_types_appearance', '', 'a:1:{s:4:"icon";s:18:"lmi-appearance.svg";}'),
  3932. ('sys_studio_widget_types', 'structure', 3, '_sys_pre_lists_studio_widget_types_structure', '', 'a:1:{s:4:"icon";s:17:"lmi-structure.svg";}'),
  3933. ('sys_studio_widget_types', 'content', 4, '_sys_pre_lists_studio_widget_types_content', '', 'a:1:{s:4:"icon";s:15:"lmi-content.svg";}'),
  3934. ('sys_studio_widget_types', 'users', 5, '_sys_pre_lists_studio_widget_types_users', '', 'a:1:{s:4:"icon";s:13:"lmi-users.svg";}'),
  3935. ('sys_studio_widget_types', 'configuration', 6, '_sys_pre_lists_studio_widget_types_configuration', '', 'a:1:{s:4:"icon";s:21:"lmi-configuration.svg";}'),
  3936. ('sys_studio_widget_types', 'extensions', 7, '_sys_pre_lists_studio_widget_types_extensions', '', 'a:1:{s:4:"icon";s:18:"lmi-extensions.svg";}'),
  3937. ('sys_studio_widget_types', 'integrations', 8, '_sys_pre_lists_studio_widget_types_integrations', '', 'a:1:{s:4:"icon";s:20:"lmi-integrations.svg";}'),
  3938. ('sys_studio_widget_types', 'favorites', 9, '_sys_pre_lists_studio_widget_types_favorites', '', 'a:1:{s:4:"icon";s:17:"lmi-favorites.svg";}');
  3939. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3940. ('sys_colors', 'slate-600', 2, '_sys_pre_lists_color_slate', '', ''),
  3941. ('sys_colors', 'gray-600', 3, '_sys_pre_lists_color_gray', '', ''),
  3942. ('sys_colors', 'zinc-600', 4, '_sys_pre_lists_color_zinc', '', ''),
  3943. ('sys_colors', 'neutral-600', 5, '_sys_pre_lists_color_neutral', '', ''),
  3944. ('sys_colors', 'stone-600', 6, '_sys_pre_lists_color_stone', '', ''),
  3945. ('sys_colors', 'red-600', 7, '_sys_pre_lists_color_red', '', ''),
  3946. ('sys_colors', 'orange-600', 8, '_sys_pre_lists_color_orange', '', ''),
  3947. ('sys_colors', 'amber-600', 9, '_sys_pre_lists_color_amber', '', ''),
  3948. ('sys_colors', 'yellow-600', 10, '_sys_pre_lists_color_yellow', '', ''),
  3949. ('sys_colors', 'lime-600', 11, '_sys_pre_lists_color_lime', '', ''),
  3950. ('sys_colors', 'green-600', 12, '_sys_pre_lists_color_green', '', ''),
  3951. ('sys_colors', 'emerald-600', 13, '_sys_pre_lists_color_emerald', '', ''),
  3952. ('sys_colors', 'teal-600', 14, '_sys_pre_lists_color_teal', '', ''),
  3953. ('sys_colors', 'cyan-600', 15, '_sys_pre_lists_color_cyan', '', ''),
  3954. ('sys_colors', 'sky-600', 16, '_sys_pre_lists_color_sky', '', ''),
  3955. ('sys_colors', 'blue-600', 17, '_sys_pre_lists_color_blue', '', ''),
  3956. ('sys_colors', 'indigo-600', 18, '_sys_pre_lists_color_indigo', '', ''),
  3957. ('sys_colors', 'violet-600', 19, '_sys_pre_lists_color_violet', '', ''),
  3958. ('sys_colors', 'purple-600', 20, '_sys_pre_lists_color_purple', '', ''),
  3959. ('sys_colors', 'fuchsia-600', 21, '_sys_pre_lists_color_fuchsia', '', ''),
  3960. ('sys_colors', 'pink-600', 22, '_sys_pre_lists_color_pink', '', ''),
  3961. ('sys_colors', 'rose-600', 23, '_sys_pre_lists_color_rose', '', '');
  3962. -- --------------------------------------------------------
  3963. CREATE TABLE IF NOT EXISTS `sys_menu_templates` (
  3964. `id` int(11) NOT NULL AUTO_INCREMENT,
  3965. `template` varchar(255) NOT NULL,
  3966. `title` varchar(255) NOT NULL,
  3967. `visible` tinyint(4) NOT NULL DEFAULT '1',
  3968. PRIMARY KEY (`id`)
  3969. );
  3970. INSERT INTO `sys_menu_templates` (`id`, `template`, `title`, `visible`) VALUES
  3971. (1, 'menu_empty.html', '_sys_menu_template_title_empty', 1),
  3972. (2, 'menu_footer.html', '_sys_menu_template_title_footer', 0),
  3973. (3, 'menu_horizontal.html', '_sys_menu_template_title_hor', 1),
  3974. (4, 'menu_vertical_lite.html', '_sys_menu_template_title_ver_lite', 1),
  3975. (5, 'menu_toolbar.html', '_sys_menu_template_title_toolbar', 0),
  3976. (6, 'menu_vertical.html', '_sys_menu_template_title_ver', 1),
  3977. (7, 'menu_floating_blocks.html', '_sys_menu_template_title_floating_blocks', 1),
  3978. (8, 'menu_main_submenu.html', '_sys_menu_template_title_main_submenu', 0),
  3979. (9, 'menu_buttons_hor.html', '_sys_menu_template_title_buttons_hor', 1),
  3980. (10, 'menu_inline.html', '_sys_menu_template_title_inline', 1),
  3981. (11, 'menu_interactive_vertical.html', '_sys_menu_template_title_interactive_vertical', 0),
  3982. (12, 'menu_account_popup.html', '_sys_menu_template_title_account_popup', 0),
  3983. (13, 'menu_account_notifications.html', '_sys_menu_template_title_account_notifications', 0),
  3984. (14, 'menu_floating_blocks_big.html', '_sys_menu_template_title_floating_blocks_big', 1),
  3985. (15, 'menu_custom_hor.html', '_sys_menu_template_title_custom_hor', 0),
  3986. (16, 'menu_buttons_ver.html', '_sys_menu_template_title_buttons_ver', 1),
  3987. (17, 'menu_inline_sbtn.html', '_sys_menu_template_title_inline_sbtn', 1),
  3988. (18, 'menu_main_submenu_more_auto.html', '_sys_menu_template_title_main_submenu_more_auto', 0),
  3989. (19, 'menu_floating_blocks_wide.html', '_sys_menu_template_title_floating_blocks_wide', 0),
  3990. (20, 'menu_custom_ver.html', '_sys_menu_template_title_custom_ver', 0),
  3991. (21, 'menu_vertical_more_less.html', '_sys_menu_template_title_vertical_more_less', 0),
  3992. (22, 'menu_interactive.html', '_sys_menu_template_title_interactive', 0),
  3993. (23, 'menu_buttons_icon_hor.html', '_sys_menu_template_title_buttons_icon_hor', 1),
  3994. (24, 'menu_floating_blocks_dash.html', '_sys_menu_template_title_floating_blocks_dash', 0),
  3995. (25, 'menu_block_submenu_hor.html', '_sys_menu_template_title_block_submenu_hor', 1),
  3996. (26, 'menu_block_submenu_ver.html', '_sys_menu_template_title_block_submenu_ver', 1),
  3997. (27, 'menu_profile_followings.html', '_sys_menu_template_title_profile_followings', 0),
  3998. (28, 'menu_main.html', '_sys_menu_template_title_main', 0),
  3999. (29, 'menu_add_content.html', '_sys_menu_template_title_add_content', 0),
  4000. (30, 'menu_panel.html', '_sys_menu_template_title_panel', 0),
  4001. (31, 'menu_main_in_panel.html', '_sys_menu_template_title_main_in_panel', 0);
  4002. CREATE TABLE IF NOT EXISTS `sys_objects_menu` (
  4003. `id` int(11) NOT NULL AUTO_INCREMENT,
  4004. `object` varchar(64) NOT NULL,
  4005. `title` varchar(255) NOT NULL,
  4006. `set_name` varchar(64) NOT NULL,
  4007. `module` varchar(32) NOT NULL,
  4008. `template_id` int(11) NOT NULL,
  4009. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  4010. `active` tinyint(4) NOT NULL DEFAULT '0',
  4011. `override_class_name` varchar(255) NOT NULL,
  4012. `override_class_file` varchar(255) NOT NULL,
  4013. PRIMARY KEY (`id`),
  4014. UNIQUE KEY `object` (`object`)
  4015. );
  4016. INSERT INTO `sys_objects_menu` (`object`, `title`, `set_name`, `module`, `template_id`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  4017. ('sys_site', '_sys_menu_title_main', 'sys_site', 'system', 28, 0, 1, 'BxTemplMenuSite', ''),
  4018. ('sys_site_in_panel', '_sys_menu_title_main_in_panel', 'sys_site', 'system', 31, 0, 1, 'BxTemplMenuSite', ''),
  4019. ('sys_application', '_sys_menu_title_application', 'sys_application', 'system', 28, 0, 1, 'BxTemplMenuSite', ''),
  4020. ('sys_homepage', '_sys_menu_title_homepage', 'sys_homepage', 'system', 7, 0, 1, 'BxTemplMenuHomepage', ''),
  4021. ('sys_homepage_submenu', '_sys_menu_title_homepage_submenu', 'sys_homepage_submenu', 'system', 8, 0, 1, '', ''),
  4022. ('sys_site_submenu', '_sys_menu_title_submenu', 'sys_site', 'system', 1, 0, 1, 'BxTemplMenuSubmenu', ''),
  4023. ('sys_site_panel', '_sys_menu_title_panel', 'sys_site_panel', 'system', 30, 0, 1, 'BxTemplMenuPanel', ''),
  4024. ('sys_footer', '_sys_menu_title_footer', 'sys_footer', 'system', 2, 0, 1, 'BxTemplMenuFooter', ''),
  4025. ('sys_toolbar_site', '_sys_menu_title_toolbar_site', 'sys_toolbar_site', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  4026. ('sys_toolbar_member', '_sys_menu_title_toolbar_member', 'sys_toolbar_member', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  4027. ('sys_add_content', '_sys_menu_title_add_content', 'sys_add_content_links', 'system', 29, 0, 1, 'BxTemplMenuSite', ''),
  4028. ('sys_add_profile', '_sys_menu_title_add_profile', 'sys_add_profile_links', 'system', 14, 0, 1, 'BxTemplMenuProfileAdd', ''),
  4029. ('sys_add_profile_vertical', '_sys_menu_title_add_profile_vertical', 'sys_add_profile_links', 'system', 6, 0, 1, 'BxTemplMenuProfileAdd', ''),
  4030. ('sys_account_dashboard', '_sys_menu_title_account_dashboard', 'sys_account_dashboard', 'system', 8, 0, 1, 'BxTemplMenuAccountDashboard', ''),
  4031. ('sys_account_dashboard_manage_tools', '_sys_menu_title_account_dashboard_manage_tools', 'sys_account_dashboard_manage_tools', 'system', 24, 0, 1, 'BxTemplMenuDashboardManageTools', ''),
  4032. ('sys_account_settings_submenu', '_sys_menu_title_account_settings', 'sys_account_settings', 'system', 8, 0, 1, '', ''),
  4033. ('sys_profiles_create', '_sys_menu_title_profiles_create', 'sys_profiles_create', 'system', 4, 0, 1, '', ''),
  4034. ('sys_cmts_item_manage', '_sys_menu_title_cmts_item_manage', 'sys_cmts_item_manage', 'system', 20, 0, 1, 'BxTemplCmtsMenuManage', ''),
  4035. ('sys_cmts_item_actions', '_sys_menu_title_cmts_item_actions', 'sys_cmts_item_actions', 'system', 15, 0, 1, 'BxTemplCmtsMenuActions', ''),
  4036. ('sys_cmts_item_counters', '_sys_menu_title_cmts_item_counters', 'sys_cmts_item_counters', 'system', 15, 0, 1, 'BxTemplCmtsMenuActions', ''),
  4037. ('sys_cmts_item_meta', '_sys_menu_title_cmts_item_meta', 'sys_cmts_item_meta', 'system', 15, 0, 1, 'BxTemplCmtsMenuUnitMeta', ''),
  4038. ('sys_account_popup', '_sys_menu_title_account_popup', 'sys_account_popup', 'system', 12, 0, 1, 'BxTemplMenuAccountPopup', ''),
  4039. ('sys_account_notifications', '_sys_menu_title_account_notifications', 'sys_account_notifications', 'system', 19, 0, 1, 'BxTemplMenuAccountNotifications', ''),
  4040. ('sys_profile_stats', '_sys_menu_title_profile_stats', 'sys_profile_stats', 'system', 21, 0, 1, 'BxTemplMenuProfileStats', ''),
  4041. ('sys_tags_cloud', '_sys_menu_title_tags_cloud', '', 'system', 21, 0, 1, 'BxBaseMenuTagsCloud', ''),
  4042. ('sys_profile_followings', '_sys_menu_title_profile_followings', 'sys_profile_followings', 'system', 27, 0, 1, 'BxTemplMenuProfileFollowings', ''),
  4043. ('sys_switch_language_popup', '_sys_menu_title_switch_language_popup', 'sys_switch_language', 'system', 6, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  4044. ('sys_switch_language_inline', '_sys_menu_title_switch_language_inline', 'sys_switch_language', 'system', 3, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  4045. ('sys_switch_template', '_sys_menu_title_switch_template', 'sys_switch_template', 'system', 6, 0, 1, 'BxTemplMenuSwitchTemplate', ''),
  4046. ('sys_set_acl_level', '_sys_menu_title_set_acl_level', '', 'system', 6, 0, 1, 'BxTemplMenuSetAclLevel', ''),
  4047. ('sys_set_badges', '_sys_menu_title_set_badges', '', 'system', 6, 0, 1, 'BxTemplMenuSetBadges', ''),
  4048. ('sys_social_sharing', '_sys_menu_title_social_sharing', 'sys_social_sharing', 'system', 23, 0, 1, 'BxTemplMenuSocialSharing', ''),
  4049. ('sys_create_post', '_sys_menu_title_create_post', 'sys_add_content_links', 'system', 15, 0, 1, 'BxTemplMenuCreatePost', ''),
  4050. ('sys_dashboard_content', '_sys_menu_title_dashboard_content_manage', 'sys_dashboard_content_manage', 'system', 15, 0, 1, 'BxTemplMenuDashboardContentManage', ''),
  4051. ('sys_dashboard_reports', '_sys_menu_title_dashboard_reports_manage', 'sys_dashboard_reports_manage', 'system', 15, 0, 1, 'BxTemplMenuDashboardReportsManage', ''),
  4052. ('sys_add_relation', '_sys_menu_title_add_relation', '', 'system', 6, 0, 1, 'BxTemplMenuAddRelation', ''),
  4053. ('sys_vote_reactions_do', '_sys_menu_title_vote_reactions_do', '', 'system', 3, 0, 1, 'BxTemplVoteReactionsMenuDo', ''),
  4054. ('sys_wiki', '_sys_menu_title_wiki', 'sys_wiki', 'system', 6, 0, 1, 'BxTemplMenuWiki', ''),
  4055. ('sys_favorite_list', '_sys_menu_title_favorite_list', 'sys_favorite_list', 'system', 9, 0, 1, '', ''),
  4056. ('sys_con_submenu', '_sys_menu_title_con_submenu', 'sys_con_submenu', 'system', 8, 0, 1, '', ''),
  4057. ('sys_studio_account_popup', '_sys_menu_title_studio_account_popup', 'sys_studio_account_popup', 'system', 4, 0, 1, 'BxTemplStudioMenuAccountPopup', '');
  4058. CREATE TABLE IF NOT EXISTS `sys_menu_sets` (
  4059. `set_name` varchar(64) NOT NULL,
  4060. `module` varchar(32) NOT NULL,
  4061. `title` varchar(255) NOT NULL,
  4062. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  4063. PRIMARY KEY (`set_name`)
  4064. );
  4065. INSERT INTO `sys_menu_sets` (`set_name`, `module`, `title`, `deletable`) VALUES
  4066. ('sys_site', 'system', '_sys_menu_set_title_site', 0),
  4067. ('sys_application', 'system', '_sys_menu_set_title_application', 0),
  4068. ('sys_homepage', 'system', '_sys_menu_set_title_homepage', 0),
  4069. ('sys_homepage_submenu', 'system', '_sys_menu_set_title_homepage_submenu', 0),
  4070. ('sys_site_panel', 'system', '_sys_menu_set_title_panel', 0),
  4071. ('sys_footer', 'system', '_sys_menu_set_title_footer', 0),
  4072. ('sys_toolbar_site', 'system', '_sys_menu_set_title_toolbar_site', 0),
  4073. ('sys_toolbar_member', 'system', '_sys_menu_set_title_toolbar_member', 0),
  4074. ('sys_account_popup', 'system', '_sys_menu_set_title_account_popup', 0),
  4075. ('sys_account_notifications', 'system', '_sys_menu_set_title_account_notifications', 0),
  4076. ('sys_add_content_links', 'system', '_sys_menu_set_title_add_content', 0),
  4077. ('sys_dashboard_content_manage', 'system', '_sys_menu_set_title_dashboard_content_manage', 0),
  4078. ('sys_dashboard_reports_manage', 'system', '_sys_menu_set_title_dashboard_reports_manage', 0),
  4079. ('sys_add_profile_links', 'system', '_sys_menu_set_title_add_profile', 0),
  4080. ('sys_account_dashboard', 'system', '_sys_menu_set_title_account_dashboard', 0),
  4081. ('sys_account_dashboard_manage_tools', 'system', '_sys_menu_set_title_account_dashboard_manage_tools', 0),
  4082. ('sys_account_settings', 'system', '_sys_menu_set_title_account_settings', 0),
  4083. ('sys_profiles_create', 'system', '_sys_menu_set_title_profile_create_links', 0),
  4084. ('sys_profile_stats', 'system', '_sys_menu_set_title_profile_stats', 0),
  4085. ('sys_profile_followings', 'system', '_sys_menu_set_title_profile_followings', 0),
  4086. ('sys_cmts_item_manage', 'system', '_sys_menu_set_title_cmts_item_manage', 0),
  4087. ('sys_cmts_item_actions', 'system', '_sys_menu_set_title_cmts_item_actions', 0),
  4088. ('sys_cmts_item_counters', 'system', '_sys_menu_set_title_cmts_item_counters', 0),
  4089. ('sys_cmts_item_meta', 'system', '_sys_menu_set_title_cmts_item_meta', 0),
  4090. ('sys_switch_language', 'system', '_sys_menu_set_title_switch_language', 0),
  4091. ('sys_switch_template', 'system', '_sys_menu_set_title_switch_template', 0),
  4092. ('sys_social_sharing', 'system', '_sys_menu_set_title_sys_social_sharing', 0),
  4093. ('sys_wiki', 'system', '_sys_menu_set_title_sys_wiki', 0),
  4094. ('sys_favorite_list', 'system', '_sys_menu_set_title_sys_favorite_list', 0),
  4095. ('sys_con_submenu', 'system', '_sys_menu_set_title_con_submenu', 0),
  4096. ('sys_studio_account_popup', 'system', '_sys_menu_set_title_studio_account_popup', 0);
  4097. CREATE TABLE IF NOT EXISTS `sys_menu_items` (
  4098. `id` int(11) NOT NULL AUTO_INCREMENT,
  4099. `parent_id` int(11) NOT NULL DEFAULT '0',
  4100. `set_name` varchar(64) NOT NULL,
  4101. `module` varchar(32) NOT NULL,
  4102. `name` varchar(255) NOT NULL,
  4103. `title_system` varchar(255) NOT NULL,
  4104. `title` varchar(255) NOT NULL,
  4105. `link` varchar(512) NOT NULL,
  4106. `onclick` varchar(255) NOT NULL,
  4107. `target` varchar(255) NOT NULL,
  4108. `icon` text NOT NULL,
  4109. `addon` text NOT NULL,
  4110. `addon_cache` tinyint(4) NOT NULL DEFAULT 0,
  4111. `markers` text NOT NULL,
  4112. `submenu_object` varchar(64) NOT NULL,
  4113. `submenu_popup` tinyint(4) NOT NULL DEFAULT '0',
  4114. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  4115. `visibility_custom` text NOT NULL,
  4116. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  4117. `hidden_on_cxt` varchar(255) NOT NULL DEFAULT '',
  4118. `hidden_on_pt` int(11) NOT NULL DEFAULT '0',
  4119. `hidden_on_col` int(11) NOT NULL DEFAULT '0',
  4120. `primary` tinyint(4) NOT NULL DEFAULT '0',
  4121. `collapsed` tinyint(4) NOT NULL DEFAULT '0',
  4122. `active` tinyint(4) NOT NULL DEFAULT '1',
  4123. `active_api` tinyint(4) NOT NULL DEFAULT '0',
  4124. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  4125. `editable` tinyint(4) NOT NULL DEFAULT '1',
  4126. `order` int(11) NOT NULL,
  4127. PRIMARY KEY (`id`)
  4128. );
  4129. -- site menu
  4130. 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
  4131. ('sys_site', 'system', 'home', '_sys_menu_item_title_system_home', '_sys_menu_item_title_home', '', '', '', 'home col-gray', '', 2147483647, 1, 1, 1),
  4132. ('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),
  4133. ('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),
  4134. ('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);
  4135. -- panel menu
  4136. 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
  4137. ('sys_site_panel', 'system', 'member-avatar', '_sys_menu_item_title_system_member_avatar', '', '', '', '', '', '', 2147483646, 1, 0, 1),
  4138. ('sys_site_panel', 'system', 'public-menu', '_sys_menu_item_title_system_public_menu', '', '', '', '', '', 'sys_site_in_panel', 2147483647, 0, 0, 2),
  4139. ('sys_site_panel', 'system', 'member-menu', '_sys_menu_item_title_system_member_menu', '', '', '', '', '', 'sys_profile_stats', 2147483646, 1, 0, 3),
  4140. ('sys_site_panel', 'system', 'member-followings', '_sys_menu_item_title_system_member_followings', '', '', '', '', '', 'sys_profile_followings', 2147483646, 1, 0, 4);
  4141. -- application menu
  4142. 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
  4143. ('sys_application', 'system', 'home', '_sys_menu_item_title_system_home', '_sys_menu_item_title_home', '', '', '', 'home col-gray-dark', '', 2147483647, 1, 1, 1),
  4144. ('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),
  4145. ('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);
  4146. -- homepage submenu
  4147. 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
  4148. ('sys_homepage_submenu', 'system', 'home', '_sys_menu_item_title_system_home', '_sys_menu_item_title_home', '', '', '', 'bolt', '', '', 2147483647, '', 0, 1, 1),
  4149. ('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),
  4150. ('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),
  4151. ('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);
  4152. -- footer menu
  4153. 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
  4154. ('sys_footer', 'system', 'about', '_sys_menu_item_title_system_about', '_sys_menu_item_title_about', 'page.php?i=about', '', '', '', '', 2147483647, 1, 1, 1),
  4155. ('sys_footer', 'system', 'terms', '_sys_menu_item_title_system_terms', '_sys_menu_item_title_terms', 'page.php?i=terms', '', '', '', '', 2147483647, 1, 1, 2),
  4156. ('sys_footer', 'system', 'privacy', '_sys_menu_item_title_system_privacy', '_sys_menu_item_title_privacy', 'page.php?i=privacy', '', '', '', '', 2147483647, 1, 1, 3),
  4157. ('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),
  4158. ('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),
  4159. ('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),
  4160. ('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);
  4161. -- site toolbar menu
  4162. 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
  4163. ('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),
  4164. ('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);
  4165. -- member toolbar menu
  4166. 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
  4167. ('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),
  4168. ('sys_toolbar_member', 'system', 'apps', '_sys_menu_item_title_system_apps', '', 'javascript:void(0);', '', '', 'qrcode', '', '', 0, 2147483646, 3, 1, 1, 0),
  4169. ('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),
  4170. ('sys_toolbar_member', 'system', 'login', '_sys_menu_item_title_system_login', '', 'page.php?i=login', '', '', 'user', '', '', 0, 1, 0, 1, 0, 2);
  4171. -- account popup menu
  4172. 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
  4173. ('sys_account_popup', 'system', 'profile-active', '_sys_menu_item_title_system_ap_profile_active', '', '', '', '', '', '', '', 2147483646, 1, 1, 1),
  4174. ('sys_account_popup', 'system', 'profile-notifications', '_sys_menu_item_title_system_ap_profile_notifications', '', '', '', '', '', '', '', 2147483646, 1, 1, 2),
  4175. ('sys_account_popup', 'system', 'profile-switcher', '_sys_menu_item_title_system_ap_profile_switcher', '', '', '', '', '', '', '', 2147483646, 1, 1, 3),
  4176. ('sys_account_popup', 'system', 'profile-create', '_sys_menu_item_title_system_ap_profile_create', '', '', '', '', '', '', '', 2147483646, 1, 1, 4);
  4177. -- notifications menu in account popup
  4178. 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
  4179. ('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),
  4180. ('sys_account_notifications', 'system', 'profile', '_sys_menu_item_title_system_profile', '_sys_menu_item_title_profile', '{member_url}', '', '', 'user', '', '', 2147483644, 1, 1, 2),
  4181. ('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),
  4182. ('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),
  4183. ('sys_account_notifications', 'system', 'studio', '_sys_menu_item_title_system_studio', '_sys_menu_item_title_studio', '{studio_url}', '', '', 'wrench', '', '', 2147483646, 1, 0, 5),
  4184. ('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),
  4185. ('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),
  4186. ('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),
  4187. ('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);
  4188. -- account settings menu
  4189. 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
  4190. ('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),
  4191. ('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),
  4192. ('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),
  4193. ('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),
  4194. ('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),
  4195. ('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);
  4196. -- account dashboard
  4197. 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
  4198. ('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),
  4199. ('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),
  4200. ('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),
  4201. ('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),
  4202. ('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),
  4203. ('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),
  4204. ('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);
  4205. -- comment manage menu
  4206. 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
  4207. ('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),
  4208. ('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),
  4209. ('sys_cmts_item_manage', 'system', 'item-report', '_sys_menu_item_title_system_cmts_item_report', '', 'javascript:void(0)', '', '', '', '', 2147483647, 1, 0, 0),
  4210. ('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),
  4211. ('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);
  4212. -- comment actions menu
  4213. 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
  4214. ('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),
  4215. ('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),
  4216. ('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),
  4217. ('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),
  4218. ('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),
  4219. ('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);
  4220. -- comment counters menu
  4221. 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
  4222. ('sys_cmts_item_counters', 'system', 'item-vote', '_sys_menu_item_title_system_cmts_item_vote', '', 'javascript:void(0)', '', '', '', '', '', 0, 2147483647, 1, 0, 1, 0),
  4223. ('sys_cmts_item_counters', 'system', 'item-reaction', '_sys_menu_item_title_system_cmts_item_reaction', '', 'javascript:void(0)', '', '', '', '', '', 0, 2147483647, 0, 0, 1, 1),
  4224. ('sys_cmts_item_counters', 'system', 'item-score', '_sys_menu_item_title_system_cmts_item_score', '', 'javascript:void(0)', '', '', '', '', '', 0, 2147483647, 0, 0, 1, 2);
  4225. -- comment meta info menu
  4226. 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
  4227. ('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),
  4228. ('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),
  4229. ('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),
  4230. ('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);
  4231. -- social sharing menu
  4232. 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
  4233. ('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),
  4234. ('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),
  4235. ('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),
  4236. ('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),
  4237. ('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);
  4238. -- dashboard manage tools
  4239. 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
  4240. ('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),
  4241. ('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);
  4242. -- dashboard content
  4243. 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
  4244. ('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);
  4245. -- profile stats
  4246. 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
  4247. ('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),
  4248. ('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);
  4249. -- wiki menu
  4250. 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
  4251. ('sys_wiki', 'system', 'edit', '', '_sys_menu_item_title_wiki_edit', '', '', '', 'edit', '', '', 0, 2147483646, '', 1, 0, 1, 1),
  4252. ('sys_wiki', 'system', 'delete-version', '', '_sys_menu_item_title_wiki_delete_version', '', '', '', 'times', '', '', 0, 2147483646, '', 1, 0, 1, 2),
  4253. ('sys_wiki', 'system', 'delete-block', '', '_sys_menu_item_title_wiki_delete_block', '', '', '', 'times-circle', '', '', 0, 2147483646, '', 1, 0, 1, 3),
  4254. ('sys_wiki', 'system', 'translate', '', '_sys_menu_item_title_wiki_translate', '', '', '', 'language', '', '', 0, 2147483646, '', 1, 0, 1, 4),
  4255. ('sys_wiki', 'system', 'history', '', '_sys_menu_item_title_wiki_history', '', '', '', 'history', '', '', 0, 2147483646, '', 1, 0, 1, 5);
  4256. -- favorite list menu
  4257. 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
  4258. ('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),
  4259. ('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);
  4260. -- connections submenu
  4261. 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
  4262. ('sys_con_submenu', 'system', 'friends', '', '_sys_menu_item_title_con_friends', 'page.php?i=friends', '', '', '', '', '', 2147483647, '', 1, 1, 1),
  4263. ('sys_con_submenu', 'system', 'friend-suggestions', '', '_sys_menu_item_title_recom_friends', 'page.php?i=friend-suggestions', '', '', '', '', '', 2147483647, '', 1, 1, 2),
  4264. ('sys_con_submenu', 'system', 'friend-requests', '', '_sys_menu_item_title_con_friend_requests', 'page.php?i=friend-requests', '', '', '', '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";}', '', 2147483647, '', 1, 1, 3),
  4265. ('sys_con_submenu', 'system', 'sent-friend-requests', '', '_sys_menu_item_title_con_friend_requested', 'page.php?i=sent-friend-requests', '', '', '', '', '', 2147483647, '', 1, 1, 4),
  4266. ('sys_con_submenu', 'system', 'follow-suggestions', '', '_sys_menu_item_title_recom_subscriptions', 'page.php?i=follow-suggestions', '', '', '', '', '', 2147483647, '', 1, 1, 5),
  4267. ('sys_con_submenu', 'system', 'followers', '', '_sys_menu_item_title_con_followers', 'page.php?i=followers', '', '', '', '', '', 2147483647, '', 1, 1, 6),
  4268. ('sys_con_submenu', 'system', 'following', '', '_sys_menu_item_title_con_following', 'page.php?i=following', '', '', '', '', '', 2147483647, '', 1, 1, 7);
  4269. -- studio: account menu
  4270. 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
  4271. ('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),
  4272. ('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),
  4273. ('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),
  4274. ('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);
  4275. -- --------------------------------------------------------
  4276. CREATE TABLE IF NOT EXISTS `sys_objects_grid` (
  4277. `id` int(11) NOT NULL AUTO_INCREMENT,
  4278. `object` varchar(64) NOT NULL,
  4279. `source_type` enum('Array','Sql') NOT NULL,
  4280. `source` text NOT NULL,
  4281. `table` varchar(255) NOT NULL,
  4282. `field_id` varchar(255) NOT NULL,
  4283. `field_order` varchar(255) NOT NULL,
  4284. `field_active` varchar(255) NOT NULL,
  4285. `order_get_field` varchar(255) NOT NULL DEFAULT 'order_field',
  4286. `order_get_dir` varchar(255) NOT NULL DEFAULT 'order_dir',
  4287. `paginate_url` varchar(255) NOT NULL,
  4288. `paginate_per_page` int(11) NOT NULL DEFAULT '10',
  4289. `paginate_simple` varchar(255) DEFAULT NULL,
  4290. `paginate_get_start` varchar(255) NOT NULL,
  4291. `paginate_get_per_page` varchar(255) NOT NULL,
  4292. `filter_fields` text NOT NULL,
  4293. `filter_fields_translatable` text NOT NULL,
  4294. `filter_mode` enum('like','fulltext','auto') NOT NULL DEFAULT 'auto',
  4295. `filter_get` varchar(255) NOT NULL DEFAULT 'filter',
  4296. `sorting_fields` text NOT NULL,
  4297. `sorting_fields_translatable` text NOT NULL,
  4298. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  4299. `responsive` tinyint(4) NOT NULL DEFAULT '1',
  4300. `show_total_count` tinyint(4) NOT NULL DEFAULT '1',
  4301. `override_class_name` varchar(255) NOT NULL,
  4302. `override_class_file` varchar(255) NOT NULL,
  4303. PRIMARY KEY (`id`),
  4304. UNIQUE KEY `object` (`object`)
  4305. );
  4306. -- GRIDS: studio
  4307. 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
  4308. ('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', ''),
  4309. ('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', ''),
  4310. ('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', ''),
  4311. ('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', ''),
  4312. ('sys_studio_acl', 'Sql', 'SELECT * FROM `sys_acl_levels` WHERE 1 ', 'sys_acl_levels', 'ID', 'Order', 'Active', '', 100, NULL, 'start', '', 'Description', 'Name', 'auto', '', '', 'BxTemplStudioPermissionsLevels', ''),
  4313. ('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', ''),
  4314. ('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', ''),
  4315. ('sys_studio_nav_sets', 'Sql', 'SELECT * FROM `sys_menu_sets` WHERE 1 ', 'sys_menu_sets', 'set_name', '', '', '', 100, NULL, 'start', '', '', 'title', 'auto', '', '', 'BxTemplStudioNavigationSets', ''),
  4316. ('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', ''),
  4317. ('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', ''),
  4318. ('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', ''),
  4319. ('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', ''),
  4320. ('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', ''),
  4321. ('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', ''),
  4322. ('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', ''),
  4323. ('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', ''),
  4324. ('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', ''),
  4325. ('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', ''),
  4326. ('sys_studio_labels', 'Sql', 'SELECT * FROM `sys_labels` WHERE 1 ', 'sys_labels', 'id', 'order', '', '', 1000, NULL, 'start', '', 'value', '', 'like', 'value', '', 'BxTemplStudioFormsLabels', ''),
  4327. ('sys_studio_categories', 'Sql', 'SELECT * FROM `sys_categories` WHERE 1 ', 'sys_categories', 'id', 'added', 'status', '', 20, NULL, 'start', '', 'value', '', 'like', '', '', 'BxTemplStudioFormsCategories', ''),
  4328. ('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', ''),
  4329. ('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', ''),
  4330. ('sys_badges_administration', 'Sql', 'SELECT * FROM `sys_badges` WHERE 1 ', 'sys_badges', 'id', 'added', '', '', 20, NULL, 'start', '', 'text', '', 'like', '', '', 'BxTemplStudioBadgesGrid', ''),
  4331. ('sys_reports_administration', 'Sql', 'WHERE 1 ', '', 'id', 'date', '', '', 20, NULL, 'start', '', 'text,type', '', 'like', '', '', 'BxTemplReportsGrid', '');
  4332. CREATE TABLE IF NOT EXISTS `sys_grid_fields` (
  4333. `id` int(11) NOT NULL AUTO_INCREMENT,
  4334. `object` varchar(64) NOT NULL,
  4335. `name` varchar(255) NOT NULL,
  4336. `title` varchar(255) NOT NULL,
  4337. `width` varchar(16) NOT NULL,
  4338. `translatable` tinyint(4) NOT NULL DEFAULT '0',
  4339. `chars_limit` int(11) NOT NULL DEFAULT '0',
  4340. `params` text NOT NULL,
  4341. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  4342. `order` int(11) NOT NULL,
  4343. PRIMARY KEY (`id`),
  4344. UNIQUE KEY `object_name` (`object`(64),`name`(127))
  4345. );
  4346. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  4347. ('sys_studio_lang_keys', 'checkbox', 'Select', '1%', 0, '', '', 1),
  4348. ('sys_studio_lang_keys', 'key', '_adm_pgt_txt_key', '24%', 0, '20', '', 2),
  4349. ('sys_studio_lang_keys', 'module', '_adm_pgt_txt_module', '15%', 0, '12', '', 3),
  4350. ('sys_studio_lang_keys', 'string', '_adm_pgt_txt_text', '30%', 0, '30', '', 4),
  4351. ('sys_studio_lang_keys', 'languages', '_adm_pgt_txt_languages', '10%', 0, '', '', 5),
  4352. ('sys_studio_lang_keys', 'actions', '', '20%', 0, '', '', 6),
  4353. ('sys_studio_lang_etemplates', 'NameSystem', '_adm_pgt_txt_etemplates_gl_name_system', '60%', 1, '58', '', 1),
  4354. ('sys_studio_lang_etemplates', 'Module', '_adm_pgt_txt_etemplates_gl_module', '20%', 0, '18', '', 2),
  4355. ('sys_studio_lang_etemplates', 'actions', '', '20%', 0, '', '', 3),
  4356. ('sys_studio_roles', 'order', '', '1%', 0, 0, '', 1),
  4357. ('sys_studio_roles', 'switcher', '', '5%', 0, 0, '', 2),
  4358. ('sys_studio_roles', 'title', '_adm_rl_txt_title', '24%', 1, 0, '', 3),
  4359. ('sys_studio_roles', 'description', '_adm_rl_txt_description', '35%', 1, 32, '', 4),
  4360. ('sys_studio_roles', 'actions_list', '_adm_rl_txt_actions', '15%', 0, 0, '', 5),
  4361. ('sys_studio_roles', 'actions', '', '20%', 0, 0, '', 6),
  4362. ('sys_studio_roles_actions', 'switcher', '', '10%', 0, 0, '', 1),
  4363. ('sys_studio_roles_actions', 'title', '_adm_rl_txt_title', '40%', 1, 32, '', 2),
  4364. ('sys_studio_roles_actions', 'description', '_adm_rl_txt_description', '50%', 1, 48, '', 3),
  4365. ('sys_studio_acl', 'Order', '', '1%', 0, '', '', 1),
  4366. ('sys_studio_acl', 'switcher', '_adm_prm_txt_enable', '5%', 0, '', '', 2),
  4367. ('sys_studio_acl', 'Icon', '_adm_prm_txt_icon', '5%', 0, '', '', 3),
  4368. ('sys_studio_acl', 'Name', '_adm_prm_txt_title', '29%', 1, '15', '', 4),
  4369. ('sys_studio_acl', 'ActionsList', '_adm_prm_txt_actions', '10%', 0, '', '', 5),
  4370. ('sys_studio_acl', 'QuotaSize', '_adm_prm_txt_storage', '10%', 0, '', '', 6),
  4371. ('sys_studio_acl', 'QuotaMaxFileSize', '_adm_prm_txt_max_file_size', '10%', 0, '', '', 7),
  4372. ('sys_studio_acl', 'QuotaNumber', '_adm_prm_txt_max_files', '10%', 0, '', '', 8),
  4373. ('sys_studio_acl', 'actions', '', '20%', 0, '', '', 9),
  4374. ('sys_studio_acl_actions', 'switcher', '_adm_prm_txt_enable', '10%', 0, '', '', 1),
  4375. ('sys_studio_acl_actions', 'Title', '_adm_prm_txt_title', '25%', 1, '25', '', 2),
  4376. ('sys_studio_acl_actions', 'Module', '_adm_prm_txt_module', '20%', 0, '18', '', 3),
  4377. ('sys_studio_acl_actions', 'Desc', '_adm_prm_txt_description', '25%', 0, '25', '', 4),
  4378. ('sys_studio_acl_actions', 'actions', '', '20%', 0, '', '', 5),
  4379. ('sys_studio_nav_menus', 'switcher', '', '10%', 0, '', '', 1),
  4380. ('sys_studio_nav_menus', 'title', '_adm_nav_txt_menus_gl_title', '17%', 0, '15', '', 2),
  4381. ('sys_studio_nav_menus', 'set_title', '_adm_nav_txt_menus_gl_set_title', '17%', 1, '15', '', 3),
  4382. ('sys_studio_nav_menus', 'items', '_adm_nav_txt_menus_gl_items', '10%', 0, '8', '', 4),
  4383. ('sys_studio_nav_menus', 'template_title', '_adm_nav_txt_menus_gl_template_title', '17%', 1, '15', '', 5),
  4384. ('sys_studio_nav_menus', 'module', '_adm_nav_txt_menus_gl_module', '12%', 0, '10', '', 6),
  4385. ('sys_studio_nav_menus', 'actions', '', '17%', 0, '', '', 7),
  4386. ('sys_studio_nav_sets', 'title', '_adm_nav_txt_sets_gl_title', '50%', 1, '48', '', 1),
  4387. ('sys_studio_nav_sets', 'module', '_adm_nav_txt_sets_gl_module', '15%', 0, '13', '', 2),
  4388. ('sys_studio_nav_sets', 'items', '_adm_nav_txt_sets_gl_items', '15%', 0, '13', '', 3),
  4389. ('sys_studio_nav_sets', 'actions', '', '20%', 0, '', '', 4),
  4390. ('sys_studio_nav_items', 'order', '', '1%', 0, '', '', 1),
  4391. ('sys_studio_nav_items', 'switcher', '', '9%', 0, '', '', 2),
  4392. ('sys_studio_nav_items', 'icon', '_adm_nav_txt_items_gl_icon', '5%', 0, '', '', 3),
  4393. ('sys_studio_nav_items', 'title_system', '_adm_nav_txt_items_gl_title_system', '23%', 1, '23', '', 4),
  4394. ('sys_studio_nav_items', 'link', '_adm_nav_txt_items_gl_link', '23%', 0, '23', '', 5),
  4395. ('sys_studio_nav_items', 'module', '_adm_nav_txt_items_gl_module', '12%', 0, '12', '', 6),
  4396. ('sys_studio_nav_items', 'visible_for_levels', '_adm_nav_txt_items_gl_visible', '10%', 0, '10', '', 7),
  4397. ('sys_studio_nav_items', 'actions', '', '17%', 0, '', '', 8),
  4398. ('sys_studio_nav_import', 'icon', '_adm_nav_txt_items_gl_icon', '10%', 0, '', '', 1),
  4399. ('sys_studio_nav_import', 'title_system', '_adm_nav_txt_items_gl_title_system', '30%', 1, '28', '', 2),
  4400. ('sys_studio_nav_import', 'link', '_adm_nav_txt_items_gl_link', '25%', 0, '23', '', 3),
  4401. ('sys_studio_nav_import', 'module', '_adm_nav_txt_items_gl_module', '15%', 0, '13', '', 4),
  4402. ('sys_studio_nav_import', 'actions', '', '20%', 0, '', '', 5),
  4403. ('sys_studio_forms', 'switcher', '', '10%', 0, '', '', 1),
  4404. ('sys_studio_forms', 'title', '_adm_form_txt_forms_gl_title', '40%', 1, '38', '', 2),
  4405. ('sys_studio_forms', 'module', '_adm_form_txt_forms_gl_module', '15%', 0, '13', '', 3),
  4406. ('sys_studio_forms', 'displays', '_adm_form_txt_forms_gl_displays', '15%', 0, '13', '', 4),
  4407. ('sys_studio_forms', 'actions', '', '20%', 0, '', '', 5),
  4408. ('sys_studio_forms_displays', 'display_title', '_adm_form_txt_displays_gl_title', '30%', 1, '48', '', 1),
  4409. ('sys_studio_forms_displays', 'module', '_adm_form_txt_displays_gl_module', '13%', 0, '11', '', 2),
  4410. ('sys_studio_forms_displays', 'form_title', '_adm_form_txt_displays_gl_form', '24%', 1, '22', '', 3),
  4411. ('sys_studio_forms_displays', 'fields', '_adm_form_txt_displays_gl_fields', '13%', 0, '11', '', 4),
  4412. ('sys_studio_forms_displays', 'actions', '', '20%', 0, '', '', 5),
  4413. ('sys_studio_forms_fields', 'order', '', '1%', 0, '', '', 1),
  4414. ('sys_studio_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  4415. ('sys_studio_forms_fields', 'type', '_adm_form_txt_fields_type', '5%', 0, '', '', 3),
  4416. ('sys_studio_forms_fields', 'caption_system', '_adm_form_txt_fields_caption_system', '40%', 1, '38', '', 4),
  4417. ('sys_studio_forms_fields', 'module', '_adm_form_txt_fields_module', '15%', 0, '13', '', 5),
  4418. ('sys_studio_forms_fields', 'visible_for_levels', '_adm_form_txt_fields_visible', '10%', 0, '10', '', 6),
  4419. ('sys_studio_forms_fields', 'actions', '', '20%', 0, '', '', 7),
  4420. ('sys_studio_forms_pre_lists', 'title', '_adm_form_txt_pre_lists_gl_title', '45%', 1, '50', '', 1),
  4421. ('sys_studio_forms_pre_lists', 'values', '_adm_form_txt_pre_lists_gl_values', '12%', 0, '10', '', 2),
  4422. ('sys_studio_forms_pre_lists', 'module', '_adm_form_txt_pre_lists_gl_module', '13%', 0, '11', '', 3),
  4423. ('sys_studio_forms_pre_lists', 'use_for_sets', '_adm_form_txt_pre_lists_gl_use_for_sets', '10%', 0, '8', '', 4),
  4424. ('sys_studio_forms_pre_lists', 'actions', '', '20%', 0, '', '', 5),
  4425. ('sys_studio_forms_pre_values', 'checkbox', '', '1%', 0, '', '', 1),
  4426. ('sys_studio_forms_pre_values', 'order', '', '1%', 0, '', '', 2),
  4427. ('sys_studio_forms_pre_values', 'LKey', '_adm_form_txt_pre_values_gl_lkey', '78%', 1, '75', '', 3),
  4428. ('sys_studio_forms_pre_values', 'actions', '', '20%', 0, '', '', 4),
  4429. ('sys_studio_search_forms', 'switcher', '', '10%', 0, '', '', 1),
  4430. ('sys_studio_search_forms', 'title', '_adm_form_txt_search_forms_title', '35%', 1, '38', '', 2),
  4431. ('sys_studio_search_forms', 'module', '_adm_form_txt_search_forms_module', '15%', 0, '13', '', 3),
  4432. ('sys_studio_search_forms', 'fields', '_adm_form_txt_search_forms_fields', '10%', 0, '13', '', 4),
  4433. ('sys_studio_search_forms', 'sortable_fields', '_adm_form_txt_search_forms_sortable_fields', '10%', 0, '13', '', 5),
  4434. ('sys_studio_search_forms', 'actions', '', '20%', 0, '', '', 6),
  4435. ('sys_studio_search_forms_fields', 'order', '', '1%', 0, '', '', 1),
  4436. ('sys_studio_search_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  4437. ('sys_studio_search_forms_fields', 'type', '_adm_form_txt_search_forms_fields_type', '15%', 0, '', '', 3),
  4438. ('sys_studio_search_forms_fields', 'caption', '_adm_form_txt_search_forms_fields_caption', '40%', 1, '38', '', 4),
  4439. ('sys_studio_search_forms_fields', 'search_type', '_adm_form_txt_search_forms_fields_search_type', '15%', 0, '', '', 5),
  4440. ('sys_studio_search_forms_fields', 'actions', '', '20%', 0, '', '', 6),
  4441. ('sys_studio_search_forms_sortable_fields', 'order', '', '1%', 0, '', '', 1),
  4442. ('sys_studio_search_forms_sortable_fields', 'switcher', '', '9%', 0, '', '', 2),
  4443. ('sys_studio_search_forms_sortable_fields', 'caption', '_adm_form_txt_search_forms_sortable_fields_caption', '50%', 1, '38', '', 3),
  4444. ('sys_studio_search_forms_sortable_fields', 'direction', '_adm_form_txt_search_forms_sortable_fields_direction', '40%', 0, '', '', 4),
  4445. ('sys_studio_labels', 'order', '', '1%', 0, 0, '', 1),
  4446. ('sys_studio_labels', 'value', '_adm_form_txt_labels_value', '70%', 0, 38, '', 2),
  4447. ('sys_studio_labels', 'items', '_adm_form_txt_labels_items', '10%', 0, 0, '', 3),
  4448. ('sys_studio_labels', 'actions', '', '19%', 0, 0, '', 4),
  4449. ('sys_studio_categories', 'checkbox', '_sys_select', '2%', 0, 0, '', 1),
  4450. ('sys_studio_categories', 'switcher', '_adm_prm_txt_enable', '8%', 0, 0, '', 2),
  4451. ('sys_studio_categories', 'value', '_adm_form_txt_categories_value', '25%', 0, 35, '', 3),
  4452. ('sys_studio_categories', 'module', '_adm_form_txt_categories_module', '15%', 0, 35, '', 4),
  4453. ('sys_studio_categories', 'author', '_adm_form_txt_categories_author', '15%', 0, 35, '', 5),
  4454. ('sys_studio_categories', 'added', '_adm_form_txt_categories_added', '15%', 1, 25, '', 6),
  4455. ('sys_studio_categories', 'actions', '', '20%', 0, 0, '', 7),
  4456. ('sys_studio_groups_roles', 'order', '', '2%', 0, 0, '', 1),
  4457. ('sys_studio_groups_roles', 'LKey', '_adm_rl_txt_title', '40%', 1, 0, '', 2),
  4458. ('sys_studio_groups_roles', 'actions_list', '_adm_rl_txt_actions', '10%', 0, 35, '', 3),
  4459. ('sys_studio_groups_roles', 'actions', '', '48%', 0, 0, '', 4),
  4460. ('sys_audit_administration', 'added', '_adm_form_txt_audit_added', '15%', 1, 25, '', 1),
  4461. ('sys_audit_administration', 'profile_id', '_adm_form_txt_audit_profile', '15%', 1, 25, '', 2),
  4462. ('sys_audit_administration', 'content_id', '_adm_form_txt_audit_content', '20%', 1, 25, '', 3),
  4463. ('sys_audit_administration', 'author_id', '_adm_form_txt_audit_author_content', '10%', 1, 25, '', 4),
  4464. ('sys_audit_administration', 'content_module', '_adm_form_txt_audit_module', '10%', 1, 25, '', 5),
  4465. ('sys_audit_administration', 'context_profile_id', '_adm_pgt_txt_audit_context', '15%', 1, 25, '', 6),
  4466. ('sys_audit_administration', 'action_lang_key', '_adm_pgt_txt_audit_action', '15%', 1, 25, '', 7),
  4467. ('sys_badges_administration', 'checkbox', '_sys_select', '2%', 0, 0, '', 1),
  4468. ('sys_badges_administration', 'view', '_adm_form_txt_badges_view', '15%', 1, 0, '', 2),
  4469. ('sys_badges_administration', 'module', '_adm_form_txt_badges_module', '15%', 1, 25, '', 3),
  4470. ('sys_badges_administration', 'text', '_adm_pgt_txt_badges_text', '28%', 1, 35, '', 4),
  4471. ('sys_badges_administration', 'icon', '_adm_pgt_txt_badges_icon', '20%', 1, 0, '', 5),
  4472. ('sys_badges_administration', 'actions', '', '20%', 0, 0, '', 6),
  4473. ('sys_reports_administration', 'object', '_adm_form_txt_reports_object', '10%', 1, 25, '', 1),
  4474. ('sys_reports_administration', 'author', '_adm_form_txt_reports_author', '10%', 1, 25, '', 2),
  4475. ('sys_reports_administration', 'type', '_adm_form_txt_reports_type', '10%', 1, 25, '', 3),
  4476. ('sys_reports_administration', 'text', '_adm_form_txt_reports_text', '10%', 1, 25, '', 4),
  4477. ('sys_reports_administration', 'date', '_adm_form_txt_reports_date', '10%', 1, 25, '', 5),
  4478. ('sys_reports_administration', 'status', '_adm_form_txt_reports_status', '10%', 1, 25, '', 6),
  4479. ('sys_reports_administration', 'checked_by', '_adm_form_txt_reports_checked_by', '10%', 1, 25, '', 7),
  4480. ('sys_reports_administration', 'notes', '_adm_form_txt_reports_notes', '10%', 1, 25, '', 8),
  4481. ('sys_reports_administration', 'comments', '_adm_form_txt_reports_comments', '10%', 1, 25, '', 8),
  4482. ('sys_reports_administration', 'actions', '', '10%', 0, '', '', 9);
  4483. CREATE TABLE IF NOT EXISTS `sys_grid_actions` (
  4484. `id` int(11) NOT NULL AUTO_INCREMENT,
  4485. `object` varchar(64) NOT NULL,
  4486. `type` enum('bulk','single','independent') NOT NULL,
  4487. `name` varchar(255) NOT NULL,
  4488. `title` varchar(255) NOT NULL,
  4489. `icon` varchar(255) NOT NULL,
  4490. `icon_only` tinyint(4) NOT NULL DEFAULT '0',
  4491. `confirm` tinyint(4) NOT NULL DEFAULT '1',
  4492. `active` tinyint(4) NOT NULL DEFAULT '1',
  4493. `order` int(11) NOT NULL,
  4494. PRIMARY KEY (`id`),
  4495. UNIQUE KEY `object_name_type` (`object`(64),`type`,`name`(123))
  4496. );
  4497. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`) VALUES
  4498. ('sys_studio_lang_keys', 'bulk', 'delete', '_adm_pgt_btn_delete', '', 1, 1),
  4499. ('sys_studio_lang_keys', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4500. ('sys_studio_lang_keys', 'single', 'delete', '', 'remove', 1, 2),
  4501. ('sys_studio_lang_keys', 'independent', 'add', '_adm_pgt_btn_add_new_key', '', 0, 1),
  4502. ('sys_studio_lang_etemplates', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4503. ('sys_studio_acl', 'independent', 'add', '_adm_prm_btn_add_level', '', 0, 1),
  4504. ('sys_studio_acl', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4505. ('sys_studio_acl', 'single', 'delete', '', 'remove', 1, 2),
  4506. ('sys_studio_acl_actions', 'single', 'options', '', 'cog', 0, 1),
  4507. ('sys_studio_nav_menus', 'independent', 'add', '_adm_nav_btn_menus_create', '', 0, 1),
  4508. ('sys_studio_nav_menus', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4509. ('sys_studio_nav_menus', 'single', 'delete', '', 'remove', 1, 2),
  4510. ('sys_studio_nav_sets', 'independent', 'add', '_adm_nav_btn_sets_create', '', 0, 1),
  4511. ('sys_studio_nav_sets', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4512. ('sys_studio_nav_sets', 'single', 'delete', '', 'remove', 1, 2),
  4513. ('sys_studio_nav_items', 'independent', 'import', '_adm_nav_btn_items_gl_import', '', 0, 1),
  4514. ('sys_studio_nav_items', 'independent', 'add', '_adm_nav_btn_items_gl_create', '', 0, 2),
  4515. ('sys_studio_nav_items', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4516. ('sys_studio_nav_items', 'single', 'delete', '', 'remove', 1, 2),
  4517. ('sys_studio_nav_items', 'single', 'show_to', '_adm_nav_btn_items_gl_visible', '', 0, 3),
  4518. ('sys_studio_nav_import', 'single', 'import', '', 'plus', 0, 1),
  4519. ('sys_studio_nav_import', 'bulk', 'done', '_adm_nav_btn_items_done', '', 0, 1),
  4520. ('sys_studio_forms', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4521. ('sys_studio_forms_displays', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4522. ('sys_studio_forms_fields', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4523. ('sys_studio_forms_fields', 'single', 'delete', '', 'remove', 1, 2),
  4524. ('sys_studio_forms_fields', 'single', 'show_to', '_adm_form_btn_fields_visible', '', 0, 3),
  4525. ('sys_studio_forms_fields', 'independent', 'add', '_adm_form_btn_fields_create', '', 0, 1),
  4526. ('sys_studio_forms_pre_lists', 'independent', 'add', '_adm_form_btn_pre_lists_create', '', 0, 1),
  4527. ('sys_studio_forms_pre_lists', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4528. ('sys_studio_forms_pre_lists', 'single', 'delete', '', 'remove', 1, 2),
  4529. ('sys_studio_forms_pre_values', 'independent', 'add', '_adm_form_btn_pre_values_create', '', 0, 1),
  4530. ('sys_studio_forms_pre_values', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4531. ('sys_studio_forms_pre_values', 'single', 'delete', '', 'remove', 1, 2),
  4532. ('sys_studio_forms_pre_values', 'bulk', 'delete', '_adm_form_btn_pre_values_delete', '', 1, 1),
  4533. ('sys_studio_search_forms', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4534. ('sys_studio_search_forms_fields', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4535. ('sys_studio_search_forms_fields', 'independent', 'reset', '_adm_form_btn_search_forms_fields_reset', '', 0, 1),
  4536. ('sys_studio_search_forms_sortable_fields', 'independent', 'reset', '_adm_form_btn_search_forms_sortable_fields_reset', '', 0, 1),
  4537. ('sys_studio_labels', 'independent', 'back', '_adm_form_btn_labels_back', '', 0, 1),
  4538. ('sys_studio_labels', 'independent', 'add', '_adm_form_btn_labels_add', '', 0, 2),
  4539. ('sys_studio_labels', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4540. ('sys_studio_labels', 'single', 'delete', '', 'remove', 1, 2),
  4541. ('sys_studio_categories', 'bulk', 'delete', '_adm_form_btn_categories_delete', '', 1, 1),
  4542. ('sys_studio_categories', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4543. ('sys_studio_categories', 'single', 'delete', '', 'remove', 1, 2),
  4544. ('sys_studio_categories', 'independent', 'add', '_adm_form_btn_categories_add', '', 0, 1),
  4545. ('sys_studio_groups_roles', 'independent', 'add', '_adm_rl_btn_role_add', '', 0, 1),
  4546. ('sys_studio_groups_roles', 'single', 'edit', '_adm_rl_btn_role_edit', 'pencil-alt', 0, 1),
  4547. ('sys_studio_groups_roles', 'single', 'delete', '_adm_rl_btn_role_delete', 'remove', 1, 3),
  4548. ('sys_badges_administration', 'bulk', 'delete', '_adm_form_btn_badges_delete', '', 1, 1),
  4549. ('sys_badges_administration', 'single', 'edit', '', 'pencil-alt', 0, 1),
  4550. ('sys_badges_administration', 'single', 'delete', '', 'remove', 1, 2),
  4551. ('sys_badges_administration', 'single', 'delete_icon', '', '', 1, 3),
  4552. ('sys_badges_administration', 'independent', 'add', '_adm_form_btn_badges_add', '', 0, 1);
  4553. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`, `icon_only`) VALUES
  4554. ('sys_reports_administration', 'single', 'check_in', '_adm_form_btn_reports_check_in', 'lock-open', 0, 1, 1),
  4555. ('sys_reports_administration', 'single', 'check_out', '_adm_form_btn_reports_check_out', 'lock', 0, 2, 1),
  4556. ('sys_reports_administration', 'single', 'audit', '_adm_form_btn_reports_audit', 'history', 0, 3, 1);
  4557. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4558. ('sys_studio_roles', 'independent', 'add', '_adm_rl_btn_role_add', '', 0, 0, 1),
  4559. ('sys_studio_roles', 'single', 'edit', '_adm_rl_btn_role_edit', 'pencil-alt', 1, 0, 1),
  4560. ('sys_studio_roles', 'single', 'delete', '_adm_rl_btn_role_delete', 'remove', 1, 1, 2);
  4561. -- GRIDS: moderation tools
  4562. 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
  4563. ('sys_cmts_administration', 'Sql', '', 'sys_cmts_ids', 'cmt_id', 'cmt_time', 'status_admin', '', 20, NULL, 'start', '', 'cmt_text,email', '', 'like', 'reports', '', 192, 'BxTemplCmtsGridAdministration', '');
  4564. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  4565. ('sys_cmts_administration', 'checkbox', '_sys_select', '2%', 0, '0', '', 1),
  4566. ('sys_cmts_administration', 'switcher', '_sys_cmts_administration_grid_column_title_adm_active', '8%', 0, '', '', 2),
  4567. ('sys_cmts_administration', 'reports', '_sys_txt_reports_title', '5%', 0, '0', '', 3),
  4568. ('sys_cmts_administration', 'cmt_text', '_sys_cmts_administration_grid_column_title_adm_cmt_text', '30%', 0, '25', '', 4),
  4569. ('sys_cmts_administration', 'cmt_time', '_sys_cmts_administration_grid_column_title_adm_cmt_time', '15%', 1, '25', '', 5),
  4570. ('sys_cmts_administration', 'cmt_author_id', '_sys_cmts_administration_grid_column_title_adm_cmt_author_id', '20%', 0, '25', '', 6),
  4571. ('sys_cmts_administration', 'actions', '', '20%', 0, '', '', 7);
  4572. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4573. ('sys_cmts_administration', 'bulk', 'delete', '_sys_cmts_administration_grid_action_title_adm_delete', '', 0, 1, 1),
  4574. ('sys_cmts_administration', 'single', 'delete', '_sys_cmts_administration_grid_action_title_adm_delete', 'remove', 1, 1, 1);
  4575. -- GRID: Storage managers
  4576. 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
  4577. ('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', ''),
  4578. ('sys_studio_strg_images', 'Sql', 'SELECT * FROM `sys_images` WHERE 1 ', 'sys_images', 'id', '', '', '', 20, NULL, 'start', '', 'file_name', '', 'auto', 'file_name,added', '', 'BxTemplStudioStoragesImages', '');
  4579. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  4580. -- Storages: Files
  4581. ('sys_studio_strg_files', 'checkbox', '', '1%', 0, '', '', 1),
  4582. ('sys_studio_strg_files', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  4583. ('sys_studio_strg_files', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  4584. ('sys_studio_strg_files', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  4585. ('sys_studio_strg_files', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  4586. ('sys_studio_strg_files', 'actions', '', '25%', 0, '', '', 6),
  4587. -- Storages: Images
  4588. ('sys_studio_strg_images', 'checkbox', '', '1%', 0, '', '', 1),
  4589. ('sys_studio_strg_images', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  4590. ('sys_studio_strg_images', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  4591. ('sys_studio_strg_images', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  4592. ('sys_studio_strg_images', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  4593. ('sys_studio_strg_images', 'actions', '', '25%', 0, '', '', 6);
  4594. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4595. -- Storages: Files
  4596. ('sys_studio_strg_files', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  4597. ('sys_studio_strg_files', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  4598. ('sys_studio_strg_files', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 2),
  4599. ('sys_studio_strg_files', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1),
  4600. -- Storages: Images
  4601. ('sys_studio_strg_images', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  4602. ('sys_studio_strg_images', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  4603. ('sys_studio_strg_images', 'single', 'resize', '_adm_strg_btn_resize', 'compress', 1, 0, 2),
  4604. ('sys_studio_strg_images', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 3),
  4605. ('sys_studio_strg_images', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1);
  4606. -- GRID: connections
  4607. 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
  4608. ('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', ''),
  4609. ('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', ''),
  4610. ('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', ''),
  4611. ('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', ''),
  4612. ('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', ''),
  4613. ('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', '');
  4614. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `params`, `hidden_on`, `order`) VALUES
  4615. ('sys_grid_connections', 'name', '_sys_name', '40%', '', '', 1),
  4616. ('sys_grid_connections', 'info', '', '30%', '', '1', 2),
  4617. ('sys_grid_connections', 'actions', '', '30%', '', '', 3),
  4618. ('sys_grid_connections_requests', 'name', '_sys_name', '40%', '', '', 1),
  4619. ('sys_grid_connections_requests', 'info', '', '30%', '', '1', 2),
  4620. ('sys_grid_connections_requests', 'actions', '', '30%', '', '', 3),
  4621. ('sys_grid_subscriptions', 'name', '_sys_name', '70%', '', '', 1),
  4622. ('sys_grid_subscriptions', 'actions', '', '30%', '', '', 2),
  4623. ('sys_grid_subscribed_me', 'name', '_sys_name', '70%', '', '', 1),
  4624. ('sys_grid_subscribed_me', 'actions', '', '30%', '', '', 2),
  4625. ('sys_grid_relations', 'name', '_sys_name', '40%', '', '', 1),
  4626. ('sys_grid_relations', 'relation', '_sys_relation', '15%', '', '', 2),
  4627. ('sys_grid_relations', 'mutual', '_sys_status', '15%', '', '', 3),
  4628. ('sys_grid_relations', 'actions', '', '30%', '', '', 4),
  4629. ('sys_grid_related_me', 'name', '_sys_name', '40%', '', '', 1),
  4630. ('sys_grid_related_me', 'relation', '_sys_relation', '15%', '', '', 2),
  4631. ('sys_grid_related_me', 'mutual', '_sys_status', '15%', '', '', 3),
  4632. ('sys_grid_related_me', 'actions', '', '30%', '', '', 4);
  4633. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4634. ('sys_grid_connections', 'single', 'accept', '_sys_accept', '', 0, 0, 1),
  4635. ('sys_grid_connections', 'single', 'delete', '', 'remove', 0, 1, 2),
  4636. ('sys_grid_connections', 'single', 'add_friend', '_sys_add_friend', 'plus', 0, 0, 3),
  4637. ('sys_grid_connections_requests', 'single', 'accept', '_sys_accept', '', 0, 0, 1),
  4638. ('sys_grid_connections_requests', 'single', 'delete', '', 'remove', 0, 1, 2),
  4639. ('sys_grid_subscriptions', 'single', 'subscribe', '_sys_subscribe', 'check', 0, 0, 1),
  4640. ('sys_grid_subscriptions', 'single', 'delete', '', 'remove', 0, 1, 2),
  4641. ('sys_grid_subscribed_me', 'single', 'subscribe', '_sys_subscribe', 'check', 0, 0, 1),
  4642. ('sys_grid_relations', 'single', 'delete', '_Delete', 'remove', 1, 1, 1),
  4643. ('sys_grid_related_me', 'single', 'confirm', '_sys_confirm', 'check-circle', 1, 0, 1),
  4644. ('sys_grid_related_me', 'single', 'decline', '_sys_decline', 'times-circle', 1, 1, 2),
  4645. ('sys_grid_related_me', 'single', 'add', '_sys_add_relation', 'plus-circle', 1, 0, 3),
  4646. ('sys_grid_related_me', 'single', 'delete', '_Delete', 'remove', 1, 1, 4);
  4647. -- GRID: queues
  4648. 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
  4649. ('sys_queues', 'Array', '', '', 'id', '', '', 'order_field', 'order_dir', '', 10, NULL, 'start', '', '', '', 'auto', 'filter', '', '', 128, 0, 0, 'BxDolGridQueues', '');
  4650. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `hidden_on`, `order`) VALUES
  4651. ('sys_queues', 'name', '_Name', '40%', 1, 0, '', '', 1),
  4652. ('sys_queues', 'all', '_all', '20%', 0, 0, '', '', 2),
  4653. ('sys_queues', 'failed', '_Failed', '20%', 0, 0, '', '', 3),
  4654. ('sys_queues', 'actions', '', '20%', 0, 0, '', '', 4);
  4655. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4656. ('sys_queues', 'single', 'clear', '', 'eraser', 0, 1, 1);
  4657. -- GRID: API Origins
  4658. 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
  4659. ('sys_studio_api_origins', 'Sql', 'SELECT * FROM `sys_api_origins` WHERE 1 ', 'sys_api_origins', 'id', 'order', '', '', 20, NULL, 'start', '', 'url', '', 'like', '', '', 'BxDolStudioApiOrigins', '');
  4660. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `hidden_on`, `order`) VALUES
  4661. ('sys_studio_api_origins', 'order', '', '1%', 0, 0, '', '', 1),
  4662. ('sys_studio_api_origins', 'url', '_sys_txt_url', '80%', 0, 0, '', '', 2),
  4663. ('sys_studio_api_origins', 'actions', '', '19%', 0, 0, '', '', 3);
  4664. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4665. ('sys_studio_api_origins', 'single', 'delete', '_Delete', 'remove', 1, 1, 1),
  4666. ('sys_studio_api_origins', 'independent', 'add', '_adm_form_btn_field_add', '', 0, 0, 1);
  4667. -- GRID: API Keys
  4668. 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
  4669. ('sys_studio_api_keys', 'Sql', 'SELECT * FROM `sys_api_keys` WHERE 1 ', 'sys_api_keys', 'id', 'order', '', '', 20, NULL, 'start', '', 'key,title', '', 'like', '', '', 'BxDolStudioApiKeys', '');
  4670. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `hidden_on`, `order`) VALUES
  4671. ('sys_studio_api_keys', 'order', '', '1%', 0, 0, '', '', 1),
  4672. ('sys_studio_api_keys', 'title', '_Name', '40%', 0, 0, '', '', 2),
  4673. ('sys_studio_api_keys', 'key', '_sys_txt_api_key', '40%', 0, 0, '', '', 3),
  4674. ('sys_studio_api_keys', 'actions', '', '19%', 0, 0, '', '', 4);
  4675. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  4676. ('sys_studio_api_keys', 'single', 'delete', '_Delete', 'remove', 1, 1, 1),
  4677. ('sys_studio_api_keys', 'independent', 'add', '_adm_form_btn_field_add', '', 0, 0, 1);
  4678. -- --------------------------------------------------------
  4679. CREATE TABLE IF NOT EXISTS `sys_objects_connection` (
  4680. `id` int(11) NOT NULL AUTO_INCREMENT,
  4681. `object` varchar(64) NOT NULL,
  4682. `table` varchar(255) NOT NULL,
  4683. `profile_initiator` tinyint(4) NOT NULL DEFAULT '1',
  4684. `profile_content` tinyint(4) NOT NULL DEFAULT '0',
  4685. `type` enum('one-way','mutual') NOT NULL,
  4686. `override_class_name` varchar(255) NOT NULL,
  4687. `override_class_file` varchar(255) NOT NULL,
  4688. PRIMARY KEY (`id`),
  4689. UNIQUE KEY `object` (`object`)
  4690. );
  4691. INSERT INTO `sys_objects_connection` (`object`, `table`, `profile_initiator`, `profile_content`, `type`, `override_class_name`, `override_class_file`) VALUES
  4692. ('sys_profiles_friends', 'sys_profiles_conn_friends', 1, 1, 'mutual', '', ''),
  4693. ('sys_profiles_subscriptions', 'sys_profiles_conn_subscriptions', 1, 1, 'one-way', '', ''),
  4694. ('sys_profiles_relations', 'sys_profiles_conn_relations', 1, 1, 'mutual', 'BxDolRelation', '');
  4695. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_relations` (
  4696. `id` int(11) NOT NULL AUTO_INCREMENT,
  4697. `initiator` int(11) NOT NULL DEFAULT '0',
  4698. `content` int(11) NOT NULL DEFAULT '0',
  4699. `relation` int(11) NOT NULL DEFAULT '0',
  4700. `mutual` tinyint(4) NOT NULL DEFAULT '0',
  4701. `added` int(11) unsigned NOT NULL DEFAULT '0',
  4702. PRIMARY KEY (`id`),
  4703. UNIQUE KEY `initiator` (`initiator`,`content`),
  4704. KEY `content` (`content`)
  4705. );
  4706. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_subscriptions` (
  4707. `id` int(11) NOT NULL AUTO_INCREMENT,
  4708. `initiator` int(11) NOT NULL,
  4709. `content` int(11) NOT NULL,
  4710. `added` int(10) unsigned NOT NULL,
  4711. PRIMARY KEY (`id`),
  4712. UNIQUE KEY `initiator` (`initiator`,`content`),
  4713. KEY `content` (`content`)
  4714. );
  4715. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_friends` (
  4716. `id` int(11) NOT NULL AUTO_INCREMENT,
  4717. `initiator` int(11) NOT NULL,
  4718. `content` int(11) NOT NULL,
  4719. `mutual` tinyint(4) NOT NULL,
  4720. `added` int(10) unsigned NOT NULL,
  4721. PRIMARY KEY (`id`),
  4722. UNIQUE KEY `initiator` (`initiator`,`content`),
  4723. KEY `content` (`content`)
  4724. );
  4725. -- --------------------------------------------------------
  4726. CREATE TABLE IF NOT EXISTS `sys_objects_transcoder` (
  4727. `id` int(11) NOT NULL AUTO_INCREMENT,
  4728. `object` varchar(64) NOT NULL,
  4729. `storage_object` varchar(64) NOT NULL,
  4730. `source_type` enum('Folder','Storage','Proxy') NOT NULL,
  4731. `source_params` text NOT NULL,
  4732. `private` enum('auto','yes','no') NOT NULL,
  4733. `atime_tracking` int(11) NOT NULL,
  4734. `atime_pruning` int(11) NOT NULL,
  4735. `ts` int(11) NOT NULL DEFAULT '0',
  4736. `override_class_name` varchar(255) NOT NULL,
  4737. `override_class_file` varchar(255) NOT NULL,
  4738. PRIMARY KEY (`id`),
  4739. UNIQUE KEY `object` (`object`)
  4740. );
  4741. 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
  4742. ('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', '', ''),
  4743. ('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', '', ''),
  4744. ('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', '', ''),
  4745. ('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', '', ''),
  4746. ('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', '', ''),
  4747. ('sys_icon_favicon', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  4748. ('sys_cover', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  4749. ('sys_cover_unit_profile', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  4750. ('sys_cover_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  4751. ('sys_builder_page_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  4752. ('sys_builder_page_embed', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  4753. ('sys_cmts_images_preview', 'sys_cmts_images_preview', 'Storage', 'a:1:{s:6:"object";s:15:"sys_cmts_images";}', 'no', '1', '2592000', '0', '', ''),
  4754. ('sys_custom_images', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:17:"sys_images_custom";}', 'no', '1', '2592000', '0', '', ''),
  4755. ('sys_images_editor', 'sys_images_editor_resized', 'Storage', 'a:1:{s:6:"object";s:17:"sys_images_editor";}', 'no', '1', '2592000', '0', '', ''),
  4756. ('sys_wiki_images_preview', 'sys_wiki_images_resized', 'Storage', 'a:1:{s:6:"object";s:14:"sys_wiki_files";}', 'no', '1', '2592000', '0', '', '');
  4757. CREATE TABLE IF NOT EXISTS `sys_transcoder_images_files` (
  4758. `id` int(11) NOT NULL AUTO_INCREMENT,
  4759. `transcoder_object` varchar(64) NOT NULL,
  4760. `file_id` int(11) NOT NULL,
  4761. `handler` varchar(255) NOT NULL,
  4762. `atime` int(11) NOT NULL,
  4763. `data` text NOT NULL,
  4764. PRIMARY KEY (`id`),
  4765. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  4766. KEY `atime` (`atime`),
  4767. KEY `file_id` (`file_id`)
  4768. );
  4769. CREATE TABLE IF NOT EXISTS `sys_transcoder_videos_files` (
  4770. `id` int(11) NOT NULL AUTO_INCREMENT,
  4771. `transcoder_object` varchar(64) NOT NULL,
  4772. `file_id` int(11) NOT NULL,
  4773. `handler` varchar(255) NOT NULL,
  4774. `atime` int(11) NOT NULL,
  4775. PRIMARY KEY (`id`),
  4776. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  4777. KEY `atime` (`atime`),
  4778. KEY `file_id` (`file_id`)
  4779. );
  4780. CREATE TABLE IF NOT EXISTS `sys_transcoder_audio_files` (
  4781. `id` int(11) NOT NULL AUTO_INCREMENT,
  4782. `transcoder_object` varchar(64) NOT NULL,
  4783. `file_id` int(11) NOT NULL,
  4784. `handler` varchar(255) NOT NULL,
  4785. `atime` int(11) NOT NULL,
  4786. PRIMARY KEY (`id`),
  4787. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  4788. KEY `atime` (`atime`),
  4789. KEY `file_id` (`file_id`)
  4790. );
  4791. CREATE TABLE IF NOT EXISTS `sys_transcoder_filters` (
  4792. `id` int(11) NOT NULL AUTO_INCREMENT,
  4793. `transcoder_object` varchar(64) NOT NULL,
  4794. `filter` varchar(32) NOT NULL,
  4795. `filter_params` text NOT NULL,
  4796. `order` int(11) NOT NULL DEFAULT '0',
  4797. PRIMARY KEY (`id`),
  4798. KEY `transcoder_object` (`transcoder_object`)
  4799. );
  4800. INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
  4801. ('sys_image_resize', 'ResizeVar', '', '0'),
  4802. ('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'),
  4803. ('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'),
  4804. ('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'),
  4805. ('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'),
  4806. ('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'),
  4807. ('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'),
  4808. ('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'),
  4809. ('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'),
  4810. ('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'),
  4811. ('sys_builder_page_embed', 'ResizeVar', '', '0'),
  4812. ('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'),
  4813. ('sys_custom_images', 'ResizeVar', '', '0'),
  4814. ('sys_images_editor', 'Resize', 'a:2:{s:1:"w";s:4:"1600";s:1:"h";s:4:"1600";}', '0'),
  4815. ('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');
  4816. CREATE TABLE IF NOT EXISTS `sys_transcoder_queue` (
  4817. `id` int(11) NOT NULL AUTO_INCREMENT,
  4818. `transcoder_object` varchar(64) NOT NULL,
  4819. `profile_id` int(10) unsigned NOT NULL,
  4820. `file_url_source` varchar(255) NOT NULL,
  4821. `file_id_source` varchar(255) NOT NULL,
  4822. `file_url_result` varchar(255) NOT NULL,
  4823. `file_ext_result` varchar(255) NOT NULL,
  4824. `file_id_result` int(11) NOT NULL,
  4825. `server` varchar(255) NOT NULL,
  4826. `status` enum('pending','processing','complete','failed','delete') NOT NULL,
  4827. `pid` int(10) UNSIGNED NOT NULL DEFAULT '0',
  4828. `added` int(11) NOT NULL,
  4829. `changed` int(11) NOT NULL,
  4830. `log` text NOT NULL,
  4831. PRIMARY KEY (`id`),
  4832. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`file_id_source`(127))
  4833. );
  4834. CREATE TABLE `sys_transcoder_queue_files` (
  4835. `id` int(11) NOT NULL AUTO_INCREMENT,
  4836. `profile_id` int(10) unsigned NOT NULL,
  4837. `remote_id` varchar(128) NOT NULL,
  4838. `path` varchar(255) NOT NULL,
  4839. `file_name` varchar(255) NOT NULL,
  4840. `mime_type` varchar(128) NOT NULL,
  4841. `ext` varchar(32) NOT NULL,
  4842. `size` bigint(20) NOT NULL,
  4843. `added` int(11) NOT NULL,
  4844. `modified` int(11) NOT NULL,
  4845. `private` int(11) NOT NULL,
  4846. PRIMARY KEY (`id`),
  4847. UNIQUE KEY `remote_id` (`remote_id`)
  4848. );
  4849. -- --------------------------------------------------------
  4850. CREATE TABLE IF NOT EXISTS `sys_objects_page` (
  4851. `id` int(11) NOT NULL AUTO_INCREMENT,
  4852. `author` int(11) NOT NULL DEFAULT '0',
  4853. `added` int(11) NOT NULL DEFAULT '0',
  4854. `object` varchar(64) NOT NULL,
  4855. `uri` varchar(255) NOT NULL,
  4856. `title_system` varchar(255) NOT NULL,
  4857. `title` varchar(255) NOT NULL,
  4858. `module` varchar(32) NOT NULL,
  4859. `cover` tinyint(4) NOT NULL DEFAULT '1',
  4860. `cover_image` int(11) NOT NULL DEFAULT '0',
  4861. `cover_title` varchar(255) NOT NULL DEFAULT '',
  4862. `type_id` int(11) NOT NULL DEFAULT '1',
  4863. `layout_id` int(11) NOT NULL,
  4864. `sticky_columns` tinyint(4) NOT NULL DEFAULT '0',
  4865. `submenu` varchar(64) NOT NULL DEFAULT '',
  4866. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  4867. `visible_for_levels_editable` tinyint(4) NOT NULL DEFAULT '1',
  4868. `url` varchar(255) NOT NULL,
  4869. `content_info` varchar(64) NOT NULL,
  4870. `meta_description` text NOT NULL,
  4871. `meta_keywords` text NOT NULL,
  4872. `meta_robots` varchar(255) NOT NULL,
  4873. `cache_lifetime` int(11) NOT NULL DEFAULT '0',
  4874. `cache_editable` tinyint(4) NOT NULL DEFAULT '1',
  4875. `inj_head` text NOT NULL,
  4876. `inj_footer` text NOT NULL,
  4877. `deletable` tinyint(1) NOT NULL,
  4878. `override_class_name` varchar(255) NOT NULL,
  4879. `override_class_file` varchar(255) NOT NULL,
  4880. PRIMARY KEY (`id`),
  4881. UNIQUE KEY `object` (`object`),
  4882. UNIQUE KEY `uri` (`uri`(191))
  4883. );
  4884. 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
  4885. ('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),
  4886. ('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),
  4887. ('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),
  4888. ('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),
  4889. ('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),
  4890. ('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),
  4891. ('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),
  4892. ('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),
  4893. ('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),
  4894. ('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),
  4895. ('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),
  4896. ('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),
  4897. ('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),
  4898. ('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),
  4899. ('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),
  4900. ('sys_logout', 'logout', '', '_sys_page_title_logout', 'system', 0, 18, '', 2147483647, 0, 'page.php?i=logout', '', '', '', 0, 0, 0, '', '', 0),
  4901. ('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),
  4902. ('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),
  4903. ('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),
  4904. ('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),
  4905. ('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),
  4906. ('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),
  4907. ('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),
  4908. ('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),
  4909. ('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),
  4910. ('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),
  4911. ('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),
  4912. ('sys_std_dashboard', '', '_sys_page_title_system_studio_dashboard', '_sys_page_title_studio_dashboard', 'system', 1, 4, '', 2147483647, 1, '', '', '', '', 0, 1, 0, '', '', 0),
  4913. ('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),
  4914. ('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),
  4915. ('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),
  4916. ('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),
  4917. ('sys_redirect', 'redirect', '', '_sys_page_title_redirect', 'system', 0, 18, '', 2147483647, 1, 'page.php?i=redirect', '', '', '', 0, 1, 0, '', '', 0),
  4918. ('sys_sub_wiki_pages_list', 'wiki-pages-list', '', '_sys_page_title_wiki_pages_list', 'system', 1, 5, '', 2147483647, 1, '', '', '', '', 0, 1, 0, '', '', 0),
  4919. ('sys_sub_wiki_page_contents', 'wiki-page-contents', '', '_sys_page_title_wiki_page_contents', 'system', 1, 5, '', 2147483647, 1, '', '', '', '', 0, 1, 0, '', '', 0),
  4920. ('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),
  4921. ('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),
  4922. ('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),
  4923. ('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),
  4924. ('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),
  4925. ('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),
  4926. ('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);
  4927. CREATE TABLE IF NOT EXISTS `sys_pages_types` (
  4928. `id` int(11) NOT NULL AUTO_INCREMENT,
  4929. `title` varchar(255) NOT NULL,
  4930. `template` varchar(255) NOT NULL,
  4931. `order` int(11) NOT NULL,
  4932. PRIMARY KEY (`id`)
  4933. );
  4934. INSERT INTO `sys_pages_types` (`id`, `title`, `template`, `order`) VALUES
  4935. (1, '_sys_page_type_default', '', 1),
  4936. (2, '_sys_page_type_wo_hf', 'pt_wo_hf.html', 2),
  4937. (3, '_sys_page_type_standard', 'pt_standard.html', 3),
  4938. (4, '_sys_page_type_application', 'pt_application.html', 4);
  4939. CREATE TABLE IF NOT EXISTS `sys_pages_layouts` (
  4940. `id` int(11) NOT NULL AUTO_INCREMENT,
  4941. `name` varchar(64) NOT NULL,
  4942. `icon` varchar(255) NOT NULL,
  4943. `title` varchar(255) NOT NULL,
  4944. `template` varchar(255) NOT NULL,
  4945. `cells_number` int(11) NOT NULL,
  4946. PRIMARY KEY (`id`),
  4947. UNIQUE KEY `name` (`name`)
  4948. );
  4949. INSERT INTO `sys_pages_layouts` (`id`, `name`, `icon`, `title`, `template`, `cells_number`) VALUES
  4950. (1, 'bar_left', 'layout_bar_left.png', '_sys_layout_bar_left', 'layout_bar_left.html', 2),
  4951. (2, 'bar_right', 'layout_bar_right.png', '_sys_layout_bar_right', 'layout_bar_right.html', 2),
  4952. (3, '3_columns', 'layout_3_columns.png', '_sys_layout_3_columns', 'layout_3_columns.html', 3),
  4953. (4, '2_columns', 'layout_2_columns.png', '_sys_layout_2_columns', 'layout_2_columns.html', 2),
  4954. (5, '1_column', 'layout_1_column.png', '_sys_layout_1_column', 'layout_1_column.html', 1),
  4955. (6, 'top_area_bar_left', 'layout_top_area_bar_left.png', '_sys_layout_top_area_bar_left', 'layout_top_area_bar_left.html', 3),
  4956. (7, 'top_area_bar_right', 'layout_top_area_bar_right.png', '_sys_layout_top_area_bar_right', 'layout_top_area_bar_right.html', 3),
  4957. (8, 'top_area_3_columns', 'layout_top_area_3_columns.png', '_sys_layout_top_area_3_columns', 'layout_top_area_3_columns.html', 4),
  4958. (9, 'top_area_2_columns', 'layout_top_area_2_columns.png', '_sys_layout_top_area_2_columns', 'layout_top_area_2_columns.html', 3),
  4959. (10, 'topbottom_area_2_columns', 'layout_topbottom_area_2_columns.png', '_sys_layout_topbottom_area_2_columns', 'layout_topbottom_area_2_columns.html', 4),
  4960. (11, 'bottom_area_2_columns', 'layout_bottom_area_2_columns.png', '_sys_layout_bottom_area_2_columns', 'layout_bottom_area_2_columns.html', 3),
  4961. (12, 'topbottom_area_bar_right', 'layout_topbottom_area_bar_right.png', '_sys_layout_topbottom_area_bar_right', 'layout_topbottom_area_bar_right.html', 4),
  4962. (13, 'topbottom_area_bar_left', 'layout_topbottom_area_bar_left.png', '_sys_layout_topbottom_area_bar_left', 'layout_topbottom_area_bar_left.html', 4),
  4963. (14, 'bar_content_bar', 'layout_bar_content_bar.png', '_sys_layout_bar_content_bar', 'layout_bar_content_bar.html', 3),
  4964. (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),
  4965. (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),
  4966. (17, 'topbottom_area_col1_col5', 'layout_topbottom_area_col1_col5.png', '_sys_layout_topbottom_area_col1_col5', 'layout_topbottom_area_col1_col5.html', 4),
  4967. (18, '1_column_thin', 'layout_1_column_thin.png', '_sys_layout_1_column_thin', 'layout_1_column_thin.html', 1),
  4968. (19, '1_column_half', 'layout_1_column_half.png', '_sys_layout_1_column_half', 'layout_1_column_half.html', 1),
  4969. (20, '1_column_wiki', 'layout_1_column_wiki.png', '_sys_layout_1_column_wiki', 'layout_1_column_wiki.html', 1),
  4970. (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);
  4971. CREATE TABLE IF NOT EXISTS `sys_pages_design_boxes` (
  4972. `id` int(11) NOT NULL,
  4973. `title` varchar(255) NOT NULL,
  4974. `template` varchar(255) NOT NULL,
  4975. `order` int(11) NOT NULL,
  4976. PRIMARY KEY (`id`)
  4977. );
  4978. INSERT INTO `sys_pages_design_boxes` (`id`, `title`, `template`, `order`) VALUES
  4979. (0, '_sys_designbox_0', 'designbox_0.html', '2'),
  4980. (1, '_sys_designbox_1', 'designbox_1.html', '8'),
  4981. (2, '_sys_designbox_2', 'designbox_2.html', '1'),
  4982. (3, '_sys_designbox_3', 'designbox_3.html', '4'),
  4983. (4, '_sys_designbox_4', 'designbox_4.html', '6'),
  4984. (10, '_sys_designbox_10', 'designbox_10.html', '3'),
  4985. (11, '_sys_designbox_11', 'designbox_11.html', '9'),
  4986. (13, '_sys_designbox_13', 'designbox_13.html', '5'),
  4987. (14, '_sys_designbox_14', 'designbox_14.html', '7');
  4988. CREATE TABLE IF NOT EXISTS `sys_pages_content_placeholders` (
  4989. `id` int(11) NOT NULL AUTO_INCREMENT,
  4990. `module` varchar(32) NOT NULL,
  4991. `title` varchar(255) NOT NULL,
  4992. `template` varchar(255) NOT NULL,
  4993. `order` int(11) NOT NULL,
  4994. PRIMARY KEY (`id`)
  4995. );
  4996. INSERT INTO `sys_pages_content_placeholders` (`id`, `module`, `title`, `template`, `order`) VALUES
  4997. (1, 'system', '_sys_page_content_ph_loading_indicator', 'block_async_loading_indicator.html', 1),
  4998. (2, 'system', '_sys_page_content_ph_text', 'block_async_text.html', 2),
  4999. (3, 'system', '_sys_page_content_ph_image', 'block_async_image.html', 3),
  5000. (4, 'system', '_sys_page_content_ph_create_post', 'block_async_create_post.html', 4),
  5001. (100, 'system', '_sys_page_content_ph_profile_units', 'block_async_profile_units.html', 100),
  5002. (110, 'system', '_sys_page_content_ph_text_units_list', 'block_async_text_units_list.html', 110),
  5003. (120, 'system', '_sys_page_content_ph_text_units_gallery', 'block_async_text_units_gallery.html', 120);
  5004. CREATE TABLE IF NOT EXISTS `sys_pages_blocks` (
  5005. `id` int(11) NOT NULL AUTO_INCREMENT,
  5006. `object` varchar(64) NOT NULL,
  5007. `cell_id` int(11) NOT NULL DEFAULT '1',
  5008. `module` varchar(32) NOT NULL,
  5009. `title_system` varchar(255) NOT NULL,
  5010. `title` varchar(255) NOT NULL,
  5011. `designbox_id` int(11) NOT NULL DEFAULT '11',
  5012. `class` varchar(128) NOT NULL DEFAULT '',
  5013. `submenu` varchar(64) NOT NULL DEFAULT '',
  5014. `tabs` tinyint(4) NOT NULL DEFAULT '0',
  5015. `async` int(11) NOT NULL DEFAULT '0',
  5016. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  5017. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  5018. `type` enum('raw','html','lang','image','rss','menu','custom','service','wiki') NOT NULL DEFAULT 'raw',
  5019. `content` text NOT NULL,
  5020. `content_empty` varchar(255) NOT NULL DEFAULT '',
  5021. `text` mediumtext NOT NULL,
  5022. `text_updated` int(11) NOT NULL,
  5023. `help` varchar(255) NOT NULL,
  5024. `cache_lifetime` int(11) NOT NULL DEFAULT '0',
  5025. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  5026. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  5027. `active` tinyint(4) NOT NULL DEFAULT '1',
  5028. `active_api` tinyint(4) NOT NULL DEFAULT '0',
  5029. `order` int(11) NOT NULL,
  5030. PRIMARY KEY (`id`),
  5031. KEY `object` (`object`),
  5032. FULLTEXT KEY `text` (`text`)
  5033. );
  5034. -- skeleton blocks
  5035. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  5036. ('', 0, 'skeletons', '_sys_block_type_raw', 11, 2147483647, 'raw', '', 0, 1, 1, 0),
  5037. ('', 0, 'skeletons', '_sys_block_type_html', 11, 2147483647, 'html', '', 0, 1, 1, 0),
  5038. ('', 0, 'skeletons', '_sys_block_type_rss', 11, 2147483647, 'rss', '', 0, 1, 1, 0),
  5039. ('', 0, 'skeletons', '_sys_block_type_image', 11, 2147483647, 'image', '', 0, 1, 1, 0),
  5040. ('', 0, 'skeletons', '_sys_block_type_lang', 11, 2147483647, 'lang', '', 0, 1, 1, 0),
  5041. ('', 0, 'skeletons', '_sys_block_type_menu', 11, 2147483647, 'menu', '', 0, 1, 1, 0),
  5042. ('', 0, 'skeletons', '_sys_block_type_wiki', 11, 2147483647, 'wiki', '', 0, 1, 1, 0),
  5043. ('', 0, 'skeletons', '_sys_block_type_custom', 11, 2147483647, 'custom', '', 0, 1, 1, 0),
  5044. ('', 0, 'skeletons', '_sys_block_type_service', 11, 2147483647, 'service', '', 0, 0, 1, 0);
  5045. -- service blocks
  5046. SET @iBlockOrder = IFNULL((SELECT `order` FROM `sys_pages_blocks` WHERE `object` = '' AND `cell_id` = 0 ORDER BY `order` DESC LIMIT 1), 0);
  5047. 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
  5048. ('', 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),
  5049. ('', 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),
  5050. ('', 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),
  5051. ('', 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),
  5052. ('', 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),
  5053. ('', 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),
  5054. ('', 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);
  5055. -- content blocks
  5056. 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
  5057. ('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),
  5058. ('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),
  5059. ('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),
  5060. ('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),
  5061. ('sys_home', 1, 'system', '', '_sys_page_block_title_homepage_menu', 13, 0, 0, 2147483647, 'menu', 'sys_homepage', 0, 1, 1, 0),
  5062. ('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),
  5063. ('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),
  5064. ('sys_about', 1, 'system', '', '_sys_page_block_title_about', 11, 0, 0, 2147483647, 'lang', '_sys_page_lang_block_about', 0, 1, 1, 1),
  5065. ('sys_terms', 1, 'system', '', '_sys_page_block_title_terms', 11, 0, 0, 2147483647, 'lang', '_sys_page_lang_block_terms', 0, 1, 1, 1),
  5066. ('sys_privacy', 1, 'system', '', '_sys_page_block_title_privacy', 11, 0, 0, 2147483647, 'lang', '_sys_page_lang_block_privacy', 0, 1, 1, 1),
  5067. ('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),
  5068. ('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),
  5069. ('sys_dashboard', 1, 'system', '', '_sys_page_block_title_manage_tools', 11, 0, 0, 192, 'menu', 'sys_account_dashboard_manage_tools', 0, 1, 1, 3),
  5070. ('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),
  5071. ('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),
  5072. ('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),
  5073. ('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),
  5074. ('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),
  5075. ('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),
  5076. ('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),
  5077. ('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),
  5078. ('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),
  5079. ('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),
  5080. ('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),
  5081. ('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),
  5082. ('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),
  5083. ('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),
  5084. ('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),
  5085. ('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),
  5086. ('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),
  5087. ('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),
  5088. ('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),
  5089. ('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),
  5090. ('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),
  5091. ('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),
  5092. ('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),
  5093. ('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),
  5094. ('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),
  5095. ('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),
  5096. ('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),
  5097. ('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),
  5098. ('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),
  5099. ('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),
  5100. ('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),
  5101. ('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),
  5102. ('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, 1, 1, 1),
  5103. ('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, 1, 1, 1),
  5104. ('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, 1, 1, 1),
  5105. ('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, 1, 1, 1),
  5106. ('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, 1, 1, 1),
  5107. ('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, 1, 1, 1),
  5108. ('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, 1, 1, 1),
  5109. -- studio dashboard blocks
  5110. ('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),
  5111. ('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),
  5112. ('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),
  5113. ('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),
  5114. ('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);
  5115. -- --------------------------------------------------------
  5116. CREATE TABLE `sys_labels` (
  5117. `id` int(11) NOT NULL AUTO_INCREMENT,
  5118. `module` varchar(32) NOT NULL,
  5119. `parent` int(11) NOT NULL DEFAULT 0,
  5120. `level` int(11) NOT NULL DEFAULT 0,
  5121. `order` int(11) NOT NULL DEFAULT 0,
  5122. `value` varchar(128) NOT NULL,
  5123. PRIMARY KEY (id),
  5124. UNIQUE KEY `value` (`value`)
  5125. );
  5126. -- --------------------------------------------------------
  5127. CREATE TABLE `sys_objects_metatags` (
  5128. `id` int(11) NOT NULL AUTO_INCREMENT,
  5129. `object` varchar(64) NOT NULL,
  5130. `module` varchar(32) NOT NULL,
  5131. `table_keywords` varchar(255) NOT NULL,
  5132. `table_locations` varchar(255) NOT NULL,
  5133. `table_mentions` varchar(255) NOT NULL,
  5134. `override_class_name` varchar(255) NOT NULL,
  5135. `override_class_file` varchar(255) NOT NULL,
  5136. PRIMARY KEY (`id`),
  5137. UNIQUE KEY `object` (`object`)
  5138. );
  5139. INSERT INTO `sys_objects_metatags` (`object`, `table_keywords`, `table_locations`, `table_mentions`, `override_class_name`, `override_class_file`) VALUES
  5140. ('sys_cmts', 'sys_cmts_meta_keywords', '', 'sys_cmts_meta_mentions', '', '');
  5141. -- --------------------------------------------------------
  5142. CREATE TABLE `sys_objects_category` (
  5143. `id` int(11) NOT NULL AUTO_INCREMENT,
  5144. `object` varchar(64) NOT NULL,
  5145. `module` varchar(32) NOT NULL,
  5146. `search_object` varchar(64) NOT NULL,
  5147. `form_object` varchar(64) NOT NULL,
  5148. `list_name` varchar(255) NOT NULL,
  5149. `table` varchar(255) NOT NULL,
  5150. `field` varchar(255) NOT NULL,
  5151. `join` varchar(255) NOT NULL,
  5152. `where` varchar(255) NOT NULL,
  5153. `override_class_name` varchar(255) NOT NULL,
  5154. `override_class_file` varchar(255) NOT NULL,
  5155. PRIMARY KEY (`id`),
  5156. UNIQUE KEY `object` (`object`),
  5157. UNIQUE KEY `form_object` (`form_object`(64),`list_name`(127))
  5158. );
  5159. -- --------------------------------------------------------
  5160. CREATE TABLE IF NOT EXISTS `sys_categories` (
  5161. `id` int(11) NOT NULL AUTO_INCREMENT,
  5162. `author` int(11) NOT NULL,
  5163. `added` int(11) NOT NULL,
  5164. `module` varchar(32) NOT NULL,
  5165. `value` varchar(100) NOT NULL,
  5166. `status` enum ('active', 'hidden') NOT NULL DEFAULT 'active',
  5167. PRIMARY KEY (`id`)
  5168. );
  5169. CREATE TABLE IF NOT EXISTS `sys_categories2objects` (
  5170. `id` int(11) NOT NULL AUTO_INCREMENT,
  5171. `module` varchar(32) NOT NULL,
  5172. `object_id` int(11) NOT NULL,
  5173. `category_id` int(11) NOT NULL,
  5174. PRIMARY KEY (`id`)
  5175. );
  5176. -- --------------------------------------------------------
  5177. --
  5178. -- Table structure for table `sys_objects_live_updates`
  5179. --
  5180. CREATE TABLE `sys_objects_live_updates` (
  5181. `id` int(11) unsigned NOT NULL auto_increment,
  5182. `name` varchar(50) NOT NULL default '',
  5183. `init` tinyint(4) NOT NULL DEFAULT '0',
  5184. `frequency` tinyint(4) NOT NULL DEFAULT '1',
  5185. `service_call` text NOT NULL default '',
  5186. `active` tinyint(4) NOT NULL DEFAULT '1',
  5187. PRIMARY KEY (`id`),
  5188. UNIQUE KEY `name` (`name`)
  5189. );
  5190. INSERT INTO `sys_objects_live_updates`(`name`, `init`, `frequency`, `service_call`, `active`) VALUES
  5191. ('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),
  5192. ('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),
  5193. ('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);
  5194. -- --------------------------------------------------------
  5195. --
  5196. -- Table structure for table `sys_objects_payments`
  5197. --
  5198. CREATE TABLE IF NOT EXISTS `sys_objects_payments` (
  5199. `id` int(11) NOT NULL AUTO_INCREMENT,
  5200. `object` varchar(32) NOT NULL,
  5201. `title` varchar(255) NOT NULL,
  5202. `uri` varchar(32) NOT NULL default '',
  5203. PRIMARY KEY (`id`),
  5204. UNIQUE KEY `object` (`object`),
  5205. UNIQUE KEY `uri` (`uri`)
  5206. );
  5207. -- --------------------------------------------------------
  5208. --
  5209. -- Logs Objects
  5210. --
  5211. CREATE TABLE `sys_objects_logs` (
  5212. `id` int(11) NOT NULL AUTO_INCREMENT,
  5213. `object` varchar(64) NOT NULL,
  5214. `module` varchar(32) NOT NULL,
  5215. `logs_storage` varchar(32) NOT NULL,
  5216. `title` varchar(255) NOT NULL,
  5217. `active` tinyint(4) NOT NULL DEFAULT '1',
  5218. `class_name` varchar(255) NOT NULL,
  5219. `class_file` varchar(255) NOT NULL,
  5220. PRIMARY KEY (`id`)
  5221. );
  5222. INSERT INTO `sys_objects_logs` (`object`, `module`, `logs_storage`, `title`, `active`, `class_name`, `class_file`) VALUES
  5223. ('sys_debug', 'system', 'Auto', '_sys_log_debug', 1, '', ''),
  5224. ('sys_twilio', 'system', 'Auto', '_sys_log_twilio', 1, '', ''),
  5225. ('sys_push', 'system', 'Auto', '_sys_log_push', 1, '', ''),
  5226. ('sys_payments', 'system', 'Auto', '_sys_log_payments', 1, '', ''),
  5227. ('sys_cron_jobs', 'system', 'Auto', '_sys_log_cron_jobs', 0, '', ''),
  5228. ('sys_transcoder', 'system', 'Auto', '_sys_log_transcoder', 1, '', '');
  5229. -- --------------------------------------------------------
  5230. --
  5231. -- Location Field Objects
  5232. --
  5233. CREATE TABLE `sys_objects_location_field` (
  5234. `id` int(11) NOT NULL AUTO_INCREMENT,
  5235. `object` varchar(64) NOT NULL,
  5236. `module` varchar(32) NOT NULL,
  5237. `title` varchar(255) NOT NULL,
  5238. `class_name` varchar(255) NOT NULL,
  5239. `class_file` varchar(255) NOT NULL,
  5240. PRIMARY KEY (`id`)
  5241. );
  5242. INSERT INTO `sys_objects_location_field` (`object`, `module`, `title`, `class_name`, `class_file`) VALUES
  5243. ('sys_google', 'system', '_sys_location_field_google', 'BxDolLocationFieldGoogle', ''),
  5244. ('sys_plain', 'system', '_sys_location_field_plain', 'BxDolLocationFieldNominatim', '');
  5245. -- --------------------------------------------------------
  5246. --
  5247. -- Location Map Objects
  5248. --
  5249. CREATE TABLE `sys_objects_location_map` (
  5250. `id` int(11) NOT NULL AUTO_INCREMENT,
  5251. `object` varchar(64) NOT NULL,
  5252. `module` varchar(32) NOT NULL,
  5253. `title` varchar(255) NOT NULL,
  5254. `class_name` varchar(255) NOT NULL,
  5255. `class_file` varchar(255) NOT NULL,
  5256. PRIMARY KEY (`id`)
  5257. );
  5258. INSERT INTO `sys_objects_location_map` (`object`, `module`, `title`, `class_name`, `class_file`) VALUES
  5259. ('sys_google_static', 'system', '_sys_location_map_google_static', 'BxDolLocationMapGoogleStatic', ''),
  5260. ('sys_leaflet', 'system', '_sys_location_map_leaflet', 'BxDolLocationMapLeaflet', '');
  5261. -- --------------------------------------------------------
  5262. --
  5263. -- WIKI Objects
  5264. --
  5265. CREATE TABLE IF NOT EXISTS `sys_objects_wiki` (
  5266. `id` int(11) NOT NULL AUTO_INCREMENT,
  5267. `object` varchar(64) NOT NULL,
  5268. `uri` varchar(32) NOT NULL,
  5269. `title` varchar(255) NOT NULL,
  5270. `module` varchar(32) NOT NULL,
  5271. `override_class_name` varchar(255) NOT NULL,
  5272. `override_class_file` varchar(255) NOT NULL,
  5273. PRIMARY KEY (`id`),
  5274. UNIQUE KEY `object` (`object`),
  5275. UNIQUE KEY `uri` (`uri`)
  5276. );
  5277. INSERT INTO `sys_objects_wiki` (`object`, `uri`, `title`, `module`, `override_class_name`, `override_class_file`) VALUES
  5278. ('system', 'sys', '_sys_wiki_system_title', 'system', '', '');
  5279. CREATE TABLE IF NOT EXISTS `sys_pages_wiki_blocks` (
  5280. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  5281. `block_id` int(11) NOT NULL,
  5282. `revision` int(11) NOT NULL,
  5283. `language` varchar(5) NOT NULL,
  5284. `main_lang` tinyint(4) NOT NULL DEFAULT '0',
  5285. `profile_id` int(10) UNSIGNED NOT NULL,
  5286. `content` mediumtext NOT NULL,
  5287. `unsafe` tinyint(4) NOT NULL DEFAULT '0',
  5288. `notes` varchar(255) NOT NULL,
  5289. `added` int(11) NOT NULL,
  5290. PRIMARY KEY (`id`),
  5291. UNIQUE KEY `block_lang_rev` (`block_id`,`language`,`revision`)
  5292. );
  5293. -- --------------------------------------------------------
  5294. --
  5295. -- Rewrite Rules
  5296. --
  5297. CREATE TABLE IF NOT EXISTS `sys_rewrite_rules` (
  5298. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  5299. `preg` varchar(255) NOT NULL,
  5300. `service` varchar(255) NOT NULL,
  5301. `active` tinyint(4) NOT NULL DEFAULT '1',
  5302. PRIMARY KEY (`id`)
  5303. );
  5304. INSERT INTO `sys_rewrite_rules` (`preg`, `service`, `active`) VALUES
  5305. ('^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');
  5306. -- --------------------------------------------------------
  5307. --
  5308. -- SEO Links
  5309. --
  5310. CREATE TABLE `sys_seo_links` (
  5311. `id` int(11) NOT NULL AUTO_INCREMENT,
  5312. `module` varchar(32) NOT NULL,
  5313. `page_uri` varchar(255) NOT NULL,
  5314. `param_name` varchar(32) NOT NULL,
  5315. `param_value` varchar(32) NOT NULL,
  5316. `uri` varchar(50) NOT NULL,
  5317. `added` int(48) NOT NULL,
  5318. PRIMARY KEY (`id`),
  5319. UNIQUE KEY `module_page_param` (`module`,`page_uri`(109),`param_value`),
  5320. UNIQUE KEY `module_page_uri` (`module`,`page_uri`(109),`uri`),
  5321. KEY `param_name_value` (`param_name`,`param_value`)
  5322. );
  5323. CREATE TABLE `sys_seo_uri_rewrites` (
  5324. `id` int(11) NOT NULL AUTO_INCREMENT,
  5325. `uri_orig` varchar(255) NOT NULL,
  5326. `uri_rewrite` varchar(255) NOT NULL,
  5327. PRIMARY KEY (`id`),
  5328. UNIQUE KEY `uri_orig` (`uri_orig`(191)),
  5329. UNIQUE KEY `uri_rewrite` (`uri_rewrite`(191))
  5330. );
  5331. -- --------------------------------------------------------
  5332. CREATE TABLE `sys_api_keys` (
  5333. `id` int(11) NOT NULL AUTO_INCREMENT,
  5334. `title` varchar(255) NOT NULL,
  5335. `key` varchar(48) NOT NULL,
  5336. `order` int(11) NOT NULL,
  5337. PRIMARY KEY (`id`)
  5338. );
  5339. CREATE TABLE `sys_api_origins` (
  5340. `id` int(11) NOT NULL AUTO_INCREMENT,
  5341. `url` varchar(255) NOT NULL,
  5342. `order` int(11) NOT NULL,
  5343. PRIMARY KEY (`id`)
  5344. );
  5345. -- --------------------------------------------------------
  5346. --
  5347. -- Table structure for table `sys_preloader`
  5348. --
  5349. CREATE TABLE IF NOT EXISTS `sys_preloader` (
  5350. `id` int(11) NOT NULL AUTO_INCREMENT,
  5351. `module` varchar(32) NOT NULL,
  5352. `type` varchar(16) NOT NULL,
  5353. `content` varchar(255) NOT NULL,
  5354. `active` tinyint(4) NOT NULL DEFAULT '1',
  5355. `order` int(11) unsigned NOT NULL default '0',
  5356. PRIMARY KEY (`id`)
  5357. );
  5358. INSERT INTO `sys_preloader`(`module`, `type`, `content`, `active`, `order`) VALUES
  5359. ('system', 'css_system', '{dir_plugins_public}marka/|marka.min.css', 1, 1),
  5360. ('system', 'css_system', '{dir_plugins_public}at.js/css/|jquery.atwho.min.css', 1, 2),
  5361. ('system', 'css_system', '{dir_plugins_public}prism/|prism.css', 1, 3),
  5362. ('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),
  5363. ('system', 'css_system', 'common.css', 1, 10),
  5364. ('system', 'css_system', 'default.less', 1, 11),
  5365. ('system', 'css_system', 'general.css', 1, 12),
  5366. ('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),
  5367. ('system', 'css_system', 'colors.css', 1, 14),
  5368. ('system', 'css_system', 'forms.css', 1, 15),
  5369. ('system', 'css_system', 'media-desktop.css', 1, 20),
  5370. ('system', 'css_system', 'media-tablet.css', 1, 21),
  5371. ('system', 'css_system', 'media-phone.css', 1, 22),
  5372. ('system', 'css_system', 'media-print.css', 1, 23),
  5373. ('system', 'css_system', 'cmts.css', 1, 30),
  5374. ('system', 'css_system', 'favorite.css', 1, 31),
  5375. ('system', 'css_system', 'feature.css', 1, 32),
  5376. ('system', 'css_system', 'report.css', 1, 33),
  5377. ('system', 'css_system', 'score.css', 1, 34),
  5378. ('system', 'css_system', 'view.css', 1, 35),
  5379. ('system', 'css_system', 'vote.css', 1, 36),
  5380. ('system', 'css_system', '{dir_plugins_public}spin.js/|spin.css', 1, 37),
  5381. ('system', 'js_system', 'pusher/pusher.min.js', 1, 0),
  5382. ('system', 'js_system', 'jquery/jquery.min.js', 1, 1),
  5383. ('system', 'js_system', 'jquery/jquery-migrate.min.js', 1, 2),
  5384. ('system', 'js_system', 'jquery-ui/jquery-ui.min.js', 1, 3),
  5385. ('system', 'js_system', 'jquery.easing.js', 1, 4),
  5386. ('system', 'js_system', 'jquery.cookie.min.js', 1, 5),
  5387. ('system', 'js_system', 'jquery.form.min.js', 1, 6),
  5388. ('system', 'js_system', 'spin.js/spin.js', 1, 7),
  5389. ('system', 'js_system', 'moment-with-locales.js', 1, 8),
  5390. ('system', 'js_system', 'marka/marka.min.js', 1, 9),
  5391. ('system', 'js_system', 'headroom.min.js', 1, 10),
  5392. ('system', 'js_system', 'at.js/js/jquery.atwho.min.js', 1, 11),
  5393. ('system', 'js_system', 'prism/prism.js', 1, 12),
  5394. ('system', 'js_system', 'functions.js', 1, 20),
  5395. ('system', 'js_system', 'jquery.webForms.js', 1, 21),
  5396. ('system', 'js_system', 'jquery.dolPopup.js', 1, 22),
  5397. ('system', 'js_system', 'jquery.dolConverLinks.js', 1, 23),
  5398. ('system', 'js_system', 'jquery.anim.js', 1, 24),
  5399. ('system', 'js_system', 'jquery.ba-resize.min.js', 1, 25),
  5400. ('system', 'js_system', 'BxDolCmts.js', 1, 30),
  5401. ('system', 'js_system', 'BxDolFavorite.js', 1, 31),
  5402. ('system', 'js_system', 'BxDolFeature.js', 1, 32),
  5403. ('system', 'js_system', 'BxDolReport.js', 1, 33),
  5404. ('system', 'js_system', 'BxDolScore.js', 1, 34),
  5405. ('system', 'js_system', 'BxDolView.js', 1, 35),
  5406. ('system', 'js_system', 'BxDolVote.js', 1, 36),
  5407. ('system', 'js_system', 'BxDolVoteLikes.js', 1, 37),
  5408. ('system', 'js_system', 'BxDolVoteReactions.js', 1, 38),
  5409. ('system', 'js_system', 'BxDolVoteStars.js', 1, 39),
  5410. ('system', 'js_system', 'BxDolCmtsReviews.js', 1, 40),
  5411. ('system', 'js_system', 'BxDolMenuMoreAuto.js', 1, 41),
  5412. ('system', 'js_system', 'BxDolForm.js', 1, 42),
  5413. ('system', 'js_system', 'BxDolNestedForm.js', 1, 43),
  5414. ('system', 'js_system', 'BxDolConnection.js', 1, 44),
  5415. ('system', 'js_system', 'BxDolSockets.js', 1, 45),
  5416. ('system', 'js_translation', '_Are_you_sure', 1, 1),
  5417. ('system', 'js_translation', '_error occured', 1, 2),
  5418. ('system', 'js_translation', '_sys_loading', 1, 3),
  5419. ('system', 'js_translation', '_copyright', 1, 4),
  5420. ('system', 'js_translation', '_sys_redirect_confirmation', 1, 5);
  5421. -- --------------------------------------------------------
  5422. --
  5423. -- Table structure for table `sys_std_roles`
  5424. --
  5425. CREATE TABLE `sys_std_roles` (
  5426. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  5427. `name` varchar(64) NOT NULL default '',
  5428. `title` varchar(255) NOT NULL,
  5429. `description` varchar(255) NOT NULL default '',
  5430. `active` tinyint(4) NOT NULL DEFAULT '1',
  5431. `order` int(11) NOT NULL default '0',
  5432. PRIMARY KEY (`id`),
  5433. UNIQUE KEY `name` (`name`),
  5434. FULLTEXT KEY `searchable` (`title`, `description`)
  5435. );
  5436. INSERT INTO `sys_std_roles` (`id`, `name`, `title`, `description`, `active`, `order`) VALUES
  5437. (1, 'master', '_adm_rl_txt_role_master', '_adm_rl_txt_role_master_dsc', 1, 1),
  5438. (2, 'operator', '_adm_rl_txt_role_operator', '_adm_rl_txt_role_operator_dsc', 1, 2);
  5439. -- --------------------------------------------------------
  5440. --
  5441. -- Table structure for table `sys_std_roles_actions`
  5442. --
  5443. CREATE TABLE `sys_std_roles_actions` (
  5444. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  5445. `name` varchar(64) NOT NULL default '',
  5446. `title` varchar(255) NOT NULL,
  5447. `description` varchar(255) NOT NULL,
  5448. PRIMARY KEY (`id`),
  5449. FULLTEXT KEY `searchable` (`title`, `description`)
  5450. );
  5451. -- --------------------------------------------------------
  5452. --
  5453. -- Table structure for table `sys_std_roles_actions2roles`
  5454. --
  5455. CREATE TABLE `sys_std_roles_actions2roles` (
  5456. `role_id` int(11) unsigned NOT NULL default '0',
  5457. `action_id` int(11) unsigned NOT NULL default '0',
  5458. PRIMARY KEY (`role_id`, `action_id`)
  5459. );
  5460. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5461. ('manage roles', '_adm_rl_txt_action_manage_roles', '_adm_rl_txt_action_manage_roles_dsc');
  5462. SET @iIdActionManageRoles = LAST_INSERT_ID();
  5463. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5464. ('manage apps', '_adm_rl_txt_action_manage_apps', '_adm_rl_txt_action_manage_apps_dsc');
  5465. SET @iIdActionManageApps = LAST_INSERT_ID();
  5466. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5467. ('use appearance', '_adm_rl_txt_action_use_appearance', '_adm_rl_txt_action_use_appearance_dsc');
  5468. SET @iIdActionUseAppearance = LAST_INSERT_ID();
  5469. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5470. ('use structure', '_adm_rl_txt_action_use_structure', '_adm_rl_txt_action_use_structure_dsc');
  5471. SET @iIdActionUseStructure = LAST_INSERT_ID();
  5472. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5473. ('use content', '_adm_rl_txt_action_use_content', '_adm_rl_txt_action_use_content_dsc');
  5474. SET @iIdActionUseContent = LAST_INSERT_ID();
  5475. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5476. ('use users', '_adm_rl_txt_action_use_users', '_adm_rl_txt_action_use_users_dsc');
  5477. SET @iIdActionUseUsers = LAST_INSERT_ID();
  5478. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5479. ('use configuration', '_adm_rl_txt_action_use_configuration', '_adm_rl_txt_action_use_configuration_dsc');
  5480. SET @iIdActionUseConfiguration = LAST_INSERT_ID();
  5481. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5482. ('use extensions', '_adm_rl_txt_action_use_extensions', '_adm_rl_txt_action_use_extensions_dsc');
  5483. SET @iIdActionUseExtensions = LAST_INSERT_ID();
  5484. INSERT INTO `sys_std_roles_actions` (`name`, `title`, `description`) VALUES
  5485. ('use integrations', '_adm_rl_txt_action_use_integrations', '_adm_rl_txt_action_use_integrations_dsc');
  5486. SET @iIdActionUseIntegrations = LAST_INSERT_ID();
  5487. SET @iMaster = 1;
  5488. SET @iOperator = 2;
  5489. INSERT INTO `sys_std_roles_actions2roles` (`role_id`, `action_id`) VALUES
  5490. -- manage roles
  5491. (@iMaster, @iIdActionManageRoles),
  5492. (@iMaster, @iIdActionManageApps),
  5493. -- use appearance
  5494. (@iMaster, @iIdActionUseAppearance),
  5495. (@iOperator, @iIdActionUseAppearance),
  5496. -- use structure
  5497. (@iMaster, @iIdActionUseStructure),
  5498. (@iOperator, @iIdActionUseStructure),
  5499. -- use content
  5500. (@iMaster, @iIdActionUseContent),
  5501. (@iOperator, @iIdActionUseContent),
  5502. -- use users
  5503. (@iMaster, @iIdActionUseUsers),
  5504. (@iOperator, @iIdActionUseUsers),
  5505. -- use configuration
  5506. (@iMaster, @iIdActionUseConfiguration),
  5507. (@iOperator, @iIdActionUseConfiguration),
  5508. -- use extensions
  5509. (@iMaster, @iIdActionUseExtensions),
  5510. (@iOperator, @iIdActionUseExtensions),
  5511. -- use integrations
  5512. (@iMaster, @iIdActionUseIntegrations),
  5513. (@iOperator, @iIdActionUseIntegrations);
  5514. -- --------------------------------------------------------
  5515. --
  5516. -- Table structure for table `sys_std_roles_members`
  5517. --
  5518. CREATE TABLE `sys_std_roles_members` (
  5519. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  5520. `account_id` int(11) unsigned NOT NULL default '0',
  5521. `role` int(11) unsigned NOT NULL DEFAULT '0',
  5522. PRIMARY KEY (`id`),
  5523. UNIQUE KEY `account` (`account_id`)
  5524. );
  5525. -- --------------------------------------------------------
  5526. --
  5527. -- Table structure for table `sys_std_pages`
  5528. --
  5529. CREATE TABLE `sys_std_pages` (
  5530. `id` int(11) unsigned NOT NULL auto_increment,
  5531. `index` int(11) unsigned NOT NULL default '0',
  5532. `name` varchar(64) NOT NULL default '',
  5533. `header` varchar(255) NOT NULL default '',
  5534. `caption` varchar(255) NOT NULL default '',
  5535. `icon` varchar(255) NOT NULL default '',
  5536. PRIMARY KEY (`id`),
  5537. UNIQUE KEY `name` (`name`)
  5538. );
  5539. -- --------------------------------------------------------
  5540. --
  5541. -- Table structure for table `sys_std_widgets`
  5542. --
  5543. CREATE TABLE `sys_std_widgets` (
  5544. `id` int(11) unsigned NOT NULL auto_increment,
  5545. `page_id` varchar(255) NOT NULL default '',
  5546. `module` varchar(32) NOT NULL default '',
  5547. `type` varchar(32) NOT NULL default '',
  5548. `url` varchar(255) NOT NULL default '',
  5549. `click` text NOT NULL default '',
  5550. `icon` varchar(255) NOT NULL default '',
  5551. `caption` varchar(255) NOT NULL default '',
  5552. `cnt_notices` text NOT NULL default '',
  5553. `cnt_actions` text NOT NULL default '',
  5554. `featured` tinyint(4) unsigned NOT NULL default '0',
  5555. PRIMARY KEY (`ID`),
  5556. UNIQUE KEY `widget-page` (`id`, `page_id`(187))
  5557. );
  5558. --
  5559. -- Table structure for table `sys_std_widgets_bookmarks`
  5560. --
  5561. CREATE TABLE `sys_std_widgets_bookmarks` (
  5562. `id` int(11) NOT NULL AUTO_INCREMENT,
  5563. `widget_id` int(11) unsigned NOT NULL default '0',
  5564. `profile_id` int(11) unsigned NOT NULL default '0',
  5565. `bookmark` tinyint(4) unsigned NOT NULL default '0',
  5566. PRIMARY KEY (`id`),
  5567. UNIQUE KEY `bookmark` (`widget_id`, `profile_id`)
  5568. );
  5569. -- --------------------------------------------------------
  5570. --
  5571. -- Table structure for table `sys_std_pages_widgets`
  5572. --
  5573. CREATE TABLE `sys_std_pages_widgets` (
  5574. `id` int(11) unsigned NOT NULL auto_increment,
  5575. `page_id` int(11) unsigned NOT NULL default '0',
  5576. `widget_id` int(11) unsigned NOT NULL default '0',
  5577. `order` int(11) unsigned NOT NULL default '0',
  5578. PRIMARY KEY (`id`),
  5579. UNIQUE KEY `wid_pag` (`widget_id`, `page_id`)
  5580. );
  5581. --
  5582. -- Dumping data for table `sys_std_pages`
  5583. --
  5584. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5585. (3, 'home', '_adm_page_cpt_home', '_adm_page_cpt_home', '');
  5586. SET @iIdHome = LAST_INSERT_ID();
  5587. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5588. (4, 'dashboard', '_adm_page_cpt_dashboard', '_adm_page_cpt_dashboard', 'wi-dashboard.svg');
  5589. SET @iIdDashboard = LAST_INSERT_ID();
  5590. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5591. (3, 'settings', '_adm_page_cpt_settings', '_adm_page_cpt_settings', 'wi-settings.svg');
  5592. SET @iIdSettings = LAST_INSERT_ID();
  5593. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5594. (3, 'store', '_adm_page_cpt_store', '_adm_page_cpt_store', 'wi-store.svg');
  5595. SET @iIdStore = LAST_INSERT_ID();
  5596. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5597. (3, 'designer', '_adm_page_cpt_designer', '_adm_page_cpt_designer', 'wi-designer.svg');
  5598. SET @iIdDesigner = LAST_INSERT_ID();
  5599. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5600. (3, 'polyglot', '_adm_page_cpt_polyglot', '_adm_page_cpt_polyglot', 'wi-polyglot.svg');
  5601. SET @iIdPolyglot = LAST_INSERT_ID();
  5602. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5603. (3, 'builder_pages', '_adm_page_cpt_builder_pages', '_adm_page_cpt_builder_pages', 'wi-bld-pages.svg');
  5604. SET @iIdBuilderPages = LAST_INSERT_ID();
  5605. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5606. (3, 'builder_menus', '_adm_page_cpt_builder_menus', '_adm_page_cpt_builder_menus', 'wi-bld-navigation.svg');
  5607. SET @iIdBuilderMenus = LAST_INSERT_ID();
  5608. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5609. (3, 'builder_forms', '_adm_page_cpt_builder_forms', '_adm_page_cpt_builder_forms', 'wi-bld-forms.svg');
  5610. SET @iIdBuilderForms = LAST_INSERT_ID();
  5611. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5612. (3, 'builder_permissions', '_adm_page_cpt_builder_permissions', '_adm_page_cpt_builder_permissions', 'wi-bld-permissions.svg');
  5613. SET @iIdBuilderPermissions = LAST_INSERT_ID();
  5614. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5615. (3, 'builder_roles', '_adm_page_cpt_builder_roles', '_adm_page_cpt_builder_roles', 'wi-bld-roles.svg');
  5616. SET @iIdBuilderRoles = LAST_INSERT_ID();
  5617. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5618. (3, 'storages', '_adm_page_cpt_storages', '_adm_page_cpt_storages', 'wi-storages.svg');
  5619. SET @iIdManagerStorages = LAST_INSERT_ID();
  5620. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5621. (3, 'audit', '_adm_page_cpt_audit', '_adm_page_cpt_audit', 'wi-audit.svg');
  5622. SET @iIdAudit = LAST_INSERT_ID();
  5623. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5624. (3, 'badges', '_adm_page_cpt_badges', '_adm_page_cpt_badges', 'wi-badges.svg');
  5625. SET @iIdBadges = LAST_INSERT_ID();
  5626. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  5627. (3, 'api', '_adm_page_cpt_api', '_adm_page_cpt_api', 'wi-api.svg');
  5628. SET @iIdAPI = LAST_INSERT_ID();
  5629. --
  5630. -- Dumping data for table `sys_std_widgets` and `sys_std_pages_widgets`
  5631. -- Home Page
  5632. --
  5633. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5634. (@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";}');
  5635. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 3);
  5636. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5637. (@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";}');
  5638. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 2);
  5639. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`, `featured`) VALUES
  5640. (@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);
  5641. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  5642. --
  5643. -- Templates Page
  5644. --
  5645. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5646. (@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";}');
  5647. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 6);
  5648. --
  5649. -- Languages Page
  5650. --
  5651. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5652. (@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";}');
  5653. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 5);
  5654. --
  5655. -- Builders Page
  5656. --
  5657. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5658. (@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";}');
  5659. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 7);
  5660. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5661. (@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";}');
  5662. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 8);
  5663. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5664. (@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";}');
  5665. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 9);
  5666. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5667. (@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";}');
  5668. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 10);
  5669. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5670. (@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";}');
  5671. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 11);
  5672. --
  5673. -- Storages Page
  5674. --
  5675. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5676. (@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";}');
  5677. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 4);
  5678. --
  5679. -- Audit Page
  5680. --
  5681. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5682. (@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";}');
  5683. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 12);
  5684. --
  5685. -- Badges Page
  5686. --
  5687. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5688. (@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";}');
  5689. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 13);
  5690. --
  5691. -- API Page
  5692. --
  5693. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  5694. (@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";}');
  5695. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 14);