system.sql 294 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990
  1. --
  2. -- Database
  3. --
  4. -- --------------------------------------------------------
  5. DROP TABLE IF EXISTS `sys_keys`, `sys_objects_editor`, `sys_objects_player`, `sys_objects_embeds`, `sys_objects_file_handlers`, `sys_objects_captcha`, `sys_objects_cmts`, `sys_cmts_images`, `sys_cmts_images_preview`, `sys_cmts_images2entries`, `sys_cmts_ids`, `sys_cmts_meta_keywords`, `sys_cmts_meta_mentions`, `sys_cmts_votes`, `sys_cmts_votes_track`, `sys_cmts_reactions`, `sys_cmts_reactions_track`, `sys_cmts_reports`, `sys_cmts_reports_track`, `sys_cmts_scores`, `sys_cmts_scores_track`, `sys_email_templates`, `sys_queue_push`, `sys_queue_email`, `sys_options`, sys_options_types, `sys_options_categories`, `sys_options_mixes`, `sys_options_mixes2options`, `sys_localization_categories`, `sys_localization_keys`, `sys_localization_languages`, `sys_localization_strings`, `sys_acl_actions`, `sys_acl_actions_track`, `sys_acl_matrix`, `sys_acl_levels`, `sys_sessions`, `sys_acl_levels_members`, `sys_objects_rss`, `sys_objects_search`, `sys_objects_search_extended`, `sys_search_extended_fields`, `sys_statistics`, `sys_audit`, `sys_alerts`, `sys_alerts_handlers`, `sys_injections`, `sys_injections_admin`, `sys_modules`, `sys_modules_file_tracks`, `sys_modules_relations`, `sys_permalinks`, `sys_objects_privacy`, `sys_privacy_defaults`, `sys_privacy_groups`, `sys_privacy_groups_custom`, `sys_privacy_groups_custom_members`, `sys_objects_auths`, `sys_objects_score`, `sys_objects_vote`, `sys_objects_report`, `sys_objects_view`, `sys_objects_favorite`, `sys_objects_feature`, `sys_objects_chart`, `sys_objects_content_info`, `sys_content_info_grids`, `sys_cron_jobs`, `sys_objects_storage`, `sys_objects_uploader`, `sys_storage_user_quotas`, `sys_storage_tokens`, `sys_storage_ghosts`, `sys_storage_deletions`, `sys_storage_mime_types`, `sys_objects_transcoder`, `sys_transcoder_images_files`, `sys_transcoder_videos_files`, `sys_transcoder_audio_files`, `sys_transcoder_filters`, `sys_transcoder_queue`, `sys_transcoder_queue_files`, `sys_accounts`, `sys_profiles`, `sys_objects_form`, `sys_form_displays`, `sys_form_inputs`, `sys_form_display_inputs`, `sys_form_pre_lists`, `sys_form_pre_values`, `sys_menu_templates`, `sys_objects_menu`, `sys_menu_sets`, `sys_menu_items`, `sys_objects_grid`, `sys_grid_fields`, `sys_grid_actions`, `sys_objects_connection`, `sys_profiles_conn_relations`, `sys_profiles_conn_subscriptions`, `sys_profiles_conn_friends`, `sys_objects_page`, `sys_pages_types`, `sys_pages_layouts`, `sys_pages_design_boxes`, `sys_pages_blocks`, `sys_labels`, `sys_objects_metatags`, `sys_objects_category`, `sys_objects_live_updates`, `sys_objects_payments`, `sys_files`, `sys_images`, `sys_images_custom`, `sys_images_resized`, `sys_preloader`, `sys_std_pages`, `sys_std_widgets`, `sys_std_pages_widgets`, `sys_categories`, `sys_categories2objects`;
  6. ALTER DATABASE DEFAULT CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
  7. SET NAMES 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
  8. -- --------------------------------------------------------
  9. CREATE TABLE `sys_keys` (
  10. `key` varchar(32) NOT NULL,
  11. `data` text NOT NULL,
  12. `expire` int(11) NOT NULL,
  13. PRIMARY KEY (`key`)
  14. );
  15. -- --------------------------------------------------------
  16. CREATE TABLE `sys_objects_editor` (
  17. `id` int(11) NOT NULL AUTO_INCREMENT,
  18. `object` varchar(64) NOT NULL,
  19. `title` varchar(255) NOT NULL,
  20. `skin` varchar(255) NOT NULL,
  21. `override_class_name` varchar(255) NOT NULL,
  22. `override_class_file` varchar(255) NOT NULL,
  23. PRIMARY KEY (`id`),
  24. UNIQUE KEY `object` (`object`)
  25. );
  26. INSERT INTO `sys_objects_editor` (`object`, `title`, `skin`, `override_class_name`, `override_class_file`) VALUES
  27. ('sys_tinymce', 'TinyMCE', 'lightgray', 'BxTemplEditorTinyMCE', '');
  28. -- --------------------------------------------------------
  29. CREATE TABLE `sys_objects_player` (
  30. `id` int(11) NOT NULL AUTO_INCREMENT,
  31. `object` varchar(64) NOT NULL,
  32. `title` varchar(255) NOT NULL,
  33. `skin` varchar(255) NOT NULL,
  34. `override_class_name` varchar(255) NOT NULL,
  35. `override_class_file` varchar(255) NOT NULL,
  36. PRIMARY KEY (`id`),
  37. UNIQUE KEY `object` (`object`)
  38. );
  39. INSERT INTO `sys_objects_player` (`object`, `title`, `skin`, `override_class_name`, `override_class_file`) VALUES
  40. ('sys_html5', 'HTML5', '', 'BxTemplPlayerHtml5', '');
  41. -- --------------------------------------------------------
  42. CREATE TABLE `sys_objects_embeds` (
  43. `id` int(11) NOT NULL AUTO_INCREMENT,
  44. `object` varchar(64) NOT NULL,
  45. `title` varchar(255) NOT NULL,
  46. `override_class_name` varchar(255) NOT NULL,
  47. `override_class_file` varchar(255) NOT NULL,
  48. PRIMARY KEY (`id`),
  49. UNIQUE KEY `object` (`object`)
  50. );
  51. INSERT INTO `sys_objects_embeds` (`object`, `title`, `override_class_name`, `override_class_file`) VALUES
  52. ('sys_embedly', 'Embedly', 'BxTemplEmbedEmbedly', ''),
  53. ('sys_iframely', 'Iframely', 'BxTemplEmbedIframely', '');
  54. -- --------------------------------------------------------
  55. CREATE TABLE IF NOT EXISTS `sys_objects_file_handlers` (
  56. `id` int(11) NOT NULL AUTO_INCREMENT,
  57. `object` varchar(64) NOT NULL,
  58. `title` varchar(255) NOT NULL,
  59. `preg_ext` text NOT NULL,
  60. `active` tinyint(4) NOT NULL,
  61. `order` int(11) NOT NULL,
  62. `override_class_name` varchar(255) NOT NULL,
  63. `override_class_file` varchar(255) NOT NULL,
  64. PRIMARY KEY (`id`),
  65. UNIQUE KEY `object` (`object`)
  66. );
  67. INSERT INTO `sys_objects_file_handlers` (`object`, `title`, `preg_ext`, `active`, `order`, `override_class_name`, `override_class_file`) VALUES
  68. ('sys_ms_viewer', '_sys_file_handlers_ms_viewer', '/\\.(doc|docx|xls|xlsx|ppt|pptx)$/i', 1, 1, 'BxTemplFileHandlerMsViewer', ''),
  69. ('sys_google_viewer', '_sys_file_handlers_google_viewer', '/\\.(pdf|doc|docx|xls|xlsx|ppt|pptx|ai|svg|ps|tif|tiff)$/i', 1, 2, 'BxTemplFileHandlerGoogleViewer', ''),
  70. ('sys_images_viewer', '_sys_file_handlers_images_viewer', '/\\.(jpg|jpeg|png|gif|webp)$/i', 1, 3, 'BxTemplFileHandlerImagesViewer', ''),
  71. ('sys_code_viewer', '_sys_file_handlers_code_viewer', '/\\.(1st|aspx|asp|json|js|jsp|java|php|xml|html|htm|rdf|xsd|xsl|xslt|sax|rss|cfm|js|asm|pl|prl|bas|b|vbs|fs|src|cs|ws|cgi|bat|py|c|cpp|cc|cp|h|hh|cxx|hxx|c++|m|lua|swift|sh|as|cob|tpl|lsp|x|cmd|rb|cbl|pas|pp|vb|f|perl|jl|lol|bal|pli|css|less|sass|saas|bcc|coffee|jade|j|tea|c#|sas|diff|pro|for|sh|bsh|bash|twig|csh|lisp|lsp|cobol|pl|d|git|rb|hrl|cr|inp|a|go|as3|m|sql|md|txt|csv)$/i', 1, 4, 'BxTemplFileHandlerCodeViewer', '');
  72. -- --------------------------------------------------------
  73. CREATE TABLE `sys_objects_captcha` (
  74. `id` int(11) NOT NULL AUTO_INCREMENT,
  75. `object` varchar(64) NOT NULL,
  76. `title` varchar(255) NOT NULL,
  77. `override_class_name` varchar(255) NOT NULL,
  78. `override_class_file` varchar(255) NOT NULL,
  79. PRIMARY KEY (`id`)
  80. );
  81. INSERT INTO `sys_objects_captcha` (`object`, `title`, `override_class_name`, `override_class_file`) VALUES
  82. ('sys_recaptcha', 'reCAPTCHA', 'BxTemplCaptchaReCAPTCHA', ''),
  83. ('sys_recaptcha_new', 'reCAPTCHA New', 'BxTemplCaptchaReCAPTCHANew', ''),
  84. ('sys_recaptcha_invisible', 'reCAPTCHA Invisible', 'BxTemplCaptchaReCAPTCHAInvisible', '');
  85. -- --------------------------------------------------------
  86. CREATE TABLE `sys_objects_auths` (
  87. `ID` int(10) unsigned NOT NULL auto_increment,
  88. `Name` varchar(64) NOT NULL,
  89. `Title` varchar(128) NOT NULL,
  90. `Link` varchar(255) NOT NULL,
  91. `OnClick` varchar(255) NOT NULL,
  92. `Icon` varchar(64) NOT NULL,
  93. `Style` varchar(255) NOT NULL,
  94. PRIMARY KEY (`ID`)
  95. );
  96. -- --------------------------------------------------------
  97. --
  98. -- Table structure for table `sys_objects_cmts`
  99. --
  100. CREATE TABLE `sys_objects_cmts` (
  101. `ID` int(10) unsigned NOT NULL auto_increment,
  102. `Name` varchar(64) NOT NULL,
  103. `Module` varchar(32) NOT NULL,
  104. `Table` varchar(50) NOT NULL,
  105. `CharsPostMin` int(10) NOT NULL,
  106. `CharsPostMax` int(10) NOT NULL,
  107. `CharsDisplayMax` int(10) NOT NULL,
  108. `Html` smallint(1) NOT NULL,
  109. `PerView` smallint(6) NOT NULL,
  110. `PerViewReplies` smallint(6) NOT NULL,
  111. `BrowseType` varchar(50) NOT NULL,
  112. `IsBrowseSwitch` smallint(1) NOT NULL,
  113. `PostFormPosition` varchar(50) NOT NULL,
  114. `NumberOfLevels` smallint(6) NOT NULL,
  115. `IsDisplaySwitch` smallint(1) NOT NULL,
  116. `IsRatable` smallint(1) NOT NULL,
  117. `ViewingThreshold` smallint(6) NOT NULL,
  118. `IsOn` smallint(1) NOT NULL,
  119. `RootStylePrefix` varchar(16) NOT NULL default 'cmt',
  120. `BaseUrl` varchar(256) NOT NULL,
  121. `ObjectVote` varchar(64) NOT NULL default '',
  122. `ObjectReaction` varchar(64) NOT NULL default '',
  123. `ObjectScore` varchar(64) NOT NULL default '',
  124. `ObjectReport` varchar(64) NOT NULL default '',
  125. `TriggerTable` varchar(32) NOT NULL,
  126. `TriggerFieldId` varchar(32) NOT NULL,
  127. `TriggerFieldAuthor` varchar(32) NOT NULL,
  128. `TriggerFieldTitle` varchar(32) NOT NULL,
  129. `TriggerFieldComments` varchar(32) NOT NULL,
  130. `ClassName` varchar(32) NOT NULL,
  131. `ClassFile` varchar(256) NOT NULL,
  132. PRIMARY KEY (`ID`)
  133. );
  134. -- --------------------------------------------------------
  135. CREATE TABLE `sys_queue_push` (
  136. `id` int(11) NOT NULL auto_increment,
  137. `profile_id` int(11) NOT NULL default '0',
  138. `message` text NOT NULL default '',
  139. PRIMARY KEY (`id`)
  140. );
  141. -- --------------------------------------------------------
  142. CREATE TABLE `sys_queue_email` (
  143. `id` int(11) NOT NULL auto_increment,
  144. `email` varchar(64) NOT NULL default '',
  145. `subject` varchar(255) NOT NULL default '',
  146. `body` text NOT NULL default '',
  147. `params` text NOT NULL default '',
  148. PRIMARY KEY (`id`)
  149. );
  150. -- --------------------------------------------------------
  151. CREATE TABLE IF NOT EXISTS `sys_email_templates` (
  152. `ID` int(11) unsigned NOT NULL auto_increment,
  153. `Module` varchar(32) NOT NULL,
  154. `NameSystem` varchar(255) NOT NULL,
  155. `Name` varchar(255) NOT NULL,
  156. `Subject` varchar(255) NOT NULL,
  157. `Body` varchar(255) NOT NULL,
  158. PRIMARY KEY (`ID`)
  159. );
  160. INSERT INTO `sys_email_templates` (`Module`, `NameSystem`, `Name`, `Subject`, `Body`) VALUES
  161. ('system', '_sys_et_txt_name_system_admin_email', 't_AdminEmail', '_sys_et_txt_subject_admin_email', '_sys_et_txt_body_admin_email'),
  162. ('system', '_sys_et_txt_name_system_confirmation', 't_Confirmation', '_sys_et_txt_subject_confirmation', '_sys_et_txt_body_confirmation'),
  163. ('system', '_sys_et_txt_name_system_forgot', 't_Forgot', '_sys_et_txt_subject_forgot', '_sys_et_txt_body_forgot'),
  164. ('system', '_sys_et_txt_name_system_password_reset', 't_PasswordReset', '_sys_et_txt_subject_password_reset', '_sys_et_txt_body_password_reset'),
  165. ('system', '_sys_et_txt_name_system_mem_expiration', 't_MemExpiration', '_sys_et_txt_subject_mem_expiration', '_sys_et_txt_body_mem_expiration'),
  166. ('system', '_sys_et_txt_name_system_mem_changed', 't_MemChanged', '_sys_et_txt_subject_mem_changed', '_sys_et_txt_body_mem_changed'),
  167. ('system', '_sys_et_txt_name_system_comment_replied', 't_CommentReplied', '_sys_et_txt_subject_comment_replied', '_sys_et_txt_body_comment_replied'),
  168. ('system', '_sys_et_txt_name_system_reported', 't_Reported', '_sys_et_txt_subject_system_reported', '_sys_et_txt_body_system_reported'),
  169. ('system', '_sys_et_txt_name_system_delayed_module_uninstall', 't_DelayedModuleUninstall', '_sys_et_txt_subject_delayed_module_uninstall', '_sys_et_txt_body_delayed_module_uninstall'),
  170. ('system', '_sys_et_txt_name_system_account', 't_Account', '_sys_et_txt_subject_account', '_sys_et_txt_body_account'),
  171. ('system', '_sys_et_txt_name_system_pruning', 't_Pruning', '_sys_et_txt_subject_pruning', '_sys_et_txt_body_pruning'),
  172. ('system', '_sys_et_txt_name_profile_change_status_active', 't_ChangeStatusActive', '_sys_et_txt_subject_profile_change_status_active', '_sys_et_txt_body_profile_change_status_active'),
  173. ('system', '_sys_et_txt_name_profile_change_status_suspended', 't_ChangeStatusSuspended', '_sys_et_txt_subject_profile_change_status_suspended', '_sys_et_txt_body_profile_change_status_suspended'),
  174. ('system', '_sys_et_txt_name_profile_change_status_pending', 't_ChangeStatusPending', '_sys_et_txt_subject_profile_change_status_pending', '_sys_et_txt_body_profile_change_status_pending'),
  175. ('system', '_sys_et_txt_name_upgrade_failed', 't_UpgradeFailed', '_sys_et_txt_subject_upgrade_failed', '_sys_et_txt_body_upgrade_failed'),
  176. ('system', '_sys_et_txt_name_upgrade_modules_failed', 't_UpgradeModulesFailed', '_sys_et_txt_subject_upgrade_modules_failed', '_sys_et_txt_body_upgrade_modules_failed'),
  177. ('system', '_sys_et_txt_name_upgrade_success', 't_UpgradeSuccess', '_sys_et_txt_subject_upgrade_success', '_sys_et_txt_body_upgrade_success'),
  178. ('system', '_sys_et_txt_name_upgrade_modules_success', 't_UpgradeModulesSuccess', '_sys_et_txt_subject_upgrade_modules_success', '_sys_et_txt_body_upgrade_modules_success'),
  179. ('system', '_sys_et_txt_name_bg_operation_failed', 't_BgOperationFailed', '_sys_et_txt_subject_bg_operation_failed', '_sys_et_txt_body_bg_operation_failed');
  180. -- --------------------------------------------------------
  181. --
  182. -- Table structure for table `sys_options`
  183. --
  184. CREATE TABLE `sys_options` (
  185. `id` int(11) unsigned NOT NULL auto_increment,
  186. `category_id` int(11) unsigned NOT NULL default '0',
  187. `name` varchar(64) NOT NULL default '',
  188. `caption` varchar(255) NOT NULL default '',
  189. `value` mediumtext NOT NULL,
  190. `type` enum('value','digit','text','checkbox','select','combobox','file','image','list','rlist','rgb','rgba') NOT NULL default 'digit',
  191. `extra` text NOT NULL default '',
  192. `check` varchar(32) NOT NULL,
  193. `check_params` text NOT NULL,
  194. `check_error` varchar(255) NOT NULL default '',
  195. `order` int(11) default '0',
  196. PRIMARY KEY (`id`),
  197. UNIQUE KEY `name`(`name`),
  198. KEY `category_id` (`category_id`)
  199. );
  200. --
  201. -- Table structure for table `sys_options_categories`
  202. --
  203. CREATE TABLE `sys_options_categories` (
  204. `id` int(11) unsigned NOT NULL auto_increment,
  205. `type_id` int(11) unsigned NOT NULL default '0',
  206. `name` varchar(64) NOT NULL default '',
  207. `caption` varchar(64) NOT NULL default '',
  208. `hidden` tinyint(1) NOT NULL default '0',
  209. `order` int(11) default '0',
  210. PRIMARY KEY (`id`),
  211. UNIQUE KEY `name`(`name`)
  212. );
  213. --
  214. -- Table structure for table `sys_options_types`
  215. --
  216. CREATE TABLE `sys_options_types` (
  217. `id` int(11) unsigned NOT NULL auto_increment,
  218. `group` varchar(64) NOT NULL default '',
  219. `name` varchar(64) NOT NULL default '',
  220. `caption` varchar(64) NOT NULL default '',
  221. `icon` varchar(255) NOT NULL default '',
  222. `order` int(11) default '0',
  223. PRIMARY KEY (`id`),
  224. UNIQUE KEY `name`(`name`)
  225. );
  226. --
  227. -- Dumping data for tables `sys_options_types`
  228. --
  229. INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES ('system', 'system', '_adm_stg_cpt_type_system', 'cogs', 1);
  230. SET @iTypeId = LAST_INSERT_ID();
  231. --
  232. -- CATEGORY (HIDDEN): Hidden
  233. --
  234. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'hidden', '_adm_stg_cpt_category_hidden', 1, 0);
  235. SET @iCategoryId = LAST_INSERT_ID();
  236. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  237. (@iCategoryId, 'sys_cron_time', '_adm_stg_cpt_option_sys_cron_time', '0', 'digit', '', '', '', 2),
  238. (@iCategoryId, 'sys_install_time', '_adm_stg_cpt_option_sys_install_time', '0', 'digit', '', '', '', 3),
  239. (@iCategoryId, 'sys_upgrade_channel', '_adm_stg_cpt_option_sys_upgrade_channel', 'stable', 'select', 'stable,beta', '', '', 4),
  240. (@iCategoryId, 'sys_revision', '_adm_stg_cpt_option_sys_revision', '0', 'digit', '', '', '', 5),
  241. (@iCategoryId, 'sys_eq_time', '_adm_stg_cpt_option_sys_eq_time', '0', 'digit', '', '', '', 6),
  242. (@iCategoryId, 'sys_push_queue_time', '_adm_stg_cpt_option_sys_push_queue_time', '0', 'digit', '', '', '', 7),
  243. (@iCategoryId, 'sys_ftp_login', '_adm_stg_cpt_option_sys_ftp_login', '', 'digit', '', '', '', 10),
  244. (@iCategoryId, 'sys_ftp_password', '_adm_stg_cpt_option_sys_ftp_password', '', 'digit', '', '', '', 11),
  245. (@iCategoryId, 'sys_ftp_dir', '_adm_stg_cpt_option_sys_ftp_dir', '', 'digit', '', '', '', 12),
  246. (@iCategoryId, 'sys_template_cache_image_enable', '_adm_stg_cpt_option_sys_template_cache_image_enable', '', 'checkbox', '', '', '', 20),
  247. (@iCategoryId, 'sys_template_cache_image_max_size', '_adm_stg_cpt_option_sys_template_cache_image_max_size', '5', 'digit', '', '', '', 21),
  248. (@iCategoryId, 'sys_email_attachable_email_templates', '_adm_stg_cpt_option_sys_email_attachable_email_templates', '', 'digit', '', '', '', 31),
  249. (@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),
  250. (@iCategoryId, 'sys_redirect_after_email_confirmation', '_adm_stg_cpt_option_sys_redirect_after_email_confirmation', '', 'digit', '', '', '', 41),
  251. (@iCategoryId, 'sys_editor_default', '_adm_stg_cpt_option_sys_editor_default', 'sys_tinymce', 'digit', '', '', '', 50),
  252. (@iCategoryId, 'sys_captcha_default', '_adm_stg_cpt_option_sys_captcha_default', 'sys_recaptcha_new', 'digit', '', '', '', 51),
  253. (@iCategoryId, 'sys_player_default', '_adm_stg_cpt_option_sys_player_default', 'sys_html5', 'digit', '', '', '', 55),
  254. (@iCategoryId, 'sys_player_default_format', '_adm_stg_cpt_option_sys_player_default_format', 'sd', 'select', 'sd,hd', '', '', 56),
  255. (@iCategoryId, 'sys_live_updates_interval', '_adm_stg_cpt_option_sys_live_updates_interval', '10000', 'digit', '', '', '', 60),
  256. (@iCategoryId, 'sys_tinymce_plugins_mini', '_adm_stg_cpt_option_sys_tinymce_plugins_mini', 'autolink,image,link,lists,paste,fullscreen', 'digit', '', '', '', 70),
  257. (@iCategoryId, 'sys_tinymce_toolbar_mini', '_adm_stg_cpt_option_sys_tinymce_toolbar_mini', 'bold italic underline removeformat | bullist numlist | alignleft aligncenter alignright | blockquote | link unlink image | fullscreen', 'digit', '', '', '', 71),
  258. (@iCategoryId, 'sys_tinymce_plugins_standard', '_adm_stg_cpt_option_sys_tinymce_plugins_standard', 'advlist,autolink,autosave,code,hr,image,link,lists,media,paste,fullscreen', 'digit', '', '', '', 73),
  259. (@iCategoryId, 'sys_tinymce_toolbar_standard', '_adm_stg_cpt_option_sys_tinymce_toolbar_standard', 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | fullscreen', 'digit', '', '', '', 74),
  260. (@iCategoryId, 'sys_tinymce_plugins_full', '_adm_stg_cpt_option_sys_tinymce_plugins_full', 'advlist,anchor,autolink,autoresize,autosave,charmap,code,emoticons,hr,image,link,lists,media,nonbreaking,pagebreak,preview,paste,save,searchreplace,table,textcolor,visualblocks,fullscreen', 'digit', '', '', '', 76),
  261. (@iCategoryId, 'sys_tinymce_toolbar_full', '_adm_stg_cpt_option_sys_tinymce_toolbar_full', 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image, preview media | forecolor emoticons | fullscreen', 'digit', '', '', '', 77),
  262. (@iCategoryId, 'sys_search_keyword_min_len', '_adm_stg_cpt_option_sys_search_keyword_min_len', '1', 'digit', '', '', '', 80),
  263. (@iCategoryId, 'sys_relations', '_adm_stg_cpt_option_sys_relations', '', 'list', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:21:"get_options_relations";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', '', '', 90),
  264. (@iCategoryId, 'enable_gd', '_adm_stg_cpt_option_enable_gd', 'on', 'checkbox', '', '', '', 100),
  265. (@iCategoryId, 'sys_transcoder_queue_storage', '_adm_stg_cpt_option_sys_transcoder_queue_storage', '', 'checkbox', '', '', '', 105);
  266. --
  267. -- CATEGORY (HIDDEN): System
  268. --
  269. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'system', '_adm_stg_cpt_category_system', 1, 1);
  270. SET @iCategoryId = LAST_INSERT_ID();
  271. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  272. (@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),
  273. (@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),
  274. (@iCategoryId, 'sys_site_logo', '', '0', 'digit', '', '', '', 20),
  275. (@iCategoryId, 'sys_site_logo_alt', '_adm_dsg_txt_alt_text', '0', 'text', '', '', '', 21),
  276. (@iCategoryId, 'sys_site_icon', '', '0', 'digit', '', '', '', 22),
  277. (@iCategoryId, 'sys_site_logo_width', '_adm_stg_cpt_option_sys_site_logo_width', '240', 'digit', '', '', '', 23),
  278. (@iCategoryId, 'sys_site_logo_height', '_adm_stg_cpt_option_sys_site_logo_height', '48', 'digit', '', '', '', 24),
  279. (@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),
  280. (@iCategoryId, 'sys_site_splash_enabled', '', '', 'checkbox', '', '', '', 26),
  281. (@iCategoryId, 'sys_site_cover_common', '', '0', 'digit', '', '', '', 27),
  282. (@iCategoryId, 'sys_unit_cover_profile', '', '0', 'digit', '', '', '', 28);
  283. --
  284. -- CATEGORY (HIDDEN): Languages
  285. --
  286. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'languages', '_adm_stg_cpt_category_languages', 1, 2);
  287. SET @iCategoryId = LAST_INSERT_ID();
  288. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  289. (@iCategoryId, '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),
  290. (@iCategoryId, 'lang_subst_from_en', '_adm_stg_cpt_option_lang_subst_from_en', 'on', 'checkbox', '', '', '', 2),
  291. (@iCategoryId, 'sys_format_date', '_adm_stg_cpt_option_sys_format_date', 'D MMM YYYY', 'digit', '', '', '', 3),
  292. (@iCategoryId, 'sys_format_time', '_adm_stg_cpt_option_sys_format_time', 'HH:mm', 'digit', '', '', '', 4),
  293. (@iCategoryId, 'sys_format_datetime', '_adm_stg_cpt_option_sys_format_datetime', 'D MMM YYYY h:mm:ss a', 'digit', '', '', '', 5),
  294. (@iCategoryId, 'sys_format_timeago', '_adm_stg_cpt_option_sys_format_timeago', 432000, 'digit', '', '', '', 6);
  295. --
  296. -- CATEGORY (HIDDEN): Templates
  297. --
  298. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'templates', '_adm_stg_cpt_category_templates', 1, 3);
  299. SET @iCategoryId = LAST_INSERT_ID();
  300. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  301. (@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);
  302. --
  303. -- CATEGORY: Cache
  304. --
  305. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'cache', '_adm_stg_cpt_category_cache', 0, 4);
  306. SET @iCategoryId = LAST_INSERT_ID();
  307. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  308. (@iCategoryId, 'sys_db_cache_enable', '_adm_stg_cpt_option_sys_db_cache_enable', 'on', 'checkbox', '', '', '', 10),
  309. (@iCategoryId, 'sys_db_cache_engine', '_adm_stg_cpt_option_sys_db_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 11),
  310. (@iCategoryId, 'sys_cache_memcache_host', '_adm_stg_cpt_option_sys_cache_memcache_host', '', 'digit', '', '', '', 20),
  311. (@iCategoryId, 'sys_cache_memcache_port', '_adm_stg_cpt_option_sys_cache_memcache_port', '11211', 'digit', '', '', '', 21),
  312. (@iCategoryId, 'sys_page_cache_enable', '_adm_stg_cpt_option_sys_page_cache_enable', 'on', 'checkbox', '', '', '', 30),
  313. (@iCategoryId, 'sys_page_cache_engine', '_adm_stg_cpt_option_sys_page_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 31),
  314. (@iCategoryId, 'sys_pb_cache_enable', '_adm_stg_cpt_option_sys_pb_cache_enable', 'on', 'checkbox', '', '', '', 40),
  315. (@iCategoryId, 'sys_pb_cache_engine', '_adm_stg_cpt_option_sys_pb_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 41),
  316. (@iCategoryId, 'sys_template_cache_enable', '_adm_stg_cpt_option_sys_template_cache_enable', 'on', 'checkbox', '', '', '', 50),
  317. (@iCategoryId, 'sys_template_cache_engine', '_adm_stg_cpt_option_sys_template_cache_engine', 'FileHtml', 'select', 'FileHtml,Memcache,APC,XCache', '', '', 51),
  318. (@iCategoryId, 'sys_template_cache_css_enable', '_adm_stg_cpt_option_sys_template_cache_css_enable', 'on', 'checkbox', '', '', '', 55),
  319. (@iCategoryId, 'sys_template_cache_js_enable', '_adm_stg_cpt_option_sys_template_cache_js_enable', 'on', 'checkbox', '', '', '', 56),
  320. (@iCategoryId, 'sys_template_cache_minify_css_enable', '_adm_stg_cpt_option_sys_template_cache_minify_css_enable', 'on', 'checkbox', '', '', '', 57),
  321. (@iCategoryId, 'sys_template_cache_minify_js_enable', '_adm_stg_cpt_option_sys_template_cache_minify_js_enable', 'on', 'checkbox', '', '', '', 58),
  322. (@iCategoryId, 'sys_template_cache_compress_enable', '_adm_stg_cpt_option_sys_template_cache_compress_enable', 'on', 'checkbox', '', '', '', 59);
  323. --
  324. -- CATEGORY: General
  325. --
  326. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'general', '_adm_stg_cpt_category_general', 0, 6);
  327. SET @iCategoryId = LAST_INSERT_ID();
  328. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  329. (@iCategoryId, 'sys_oauth_key', '_adm_stg_cpt_option_sys_oauth_key', '', 'digit', '', '', '', 20),
  330. (@iCategoryId, 'sys_oauth_secret', '_adm_stg_cpt_option_sys_oauth_secret', '', 'digit', '', '', '', 21),
  331. (@iCategoryId, 'currency_code', '_adm_stg_cpt_option_currency_code', 'USD', 'select', 'USD,EURO', 'Avail', '_adm_stg_err_option_currency_code', 30),
  332. (@iCategoryId, 'currency_sign', '_adm_stg_cpt_option_currency_sign', '&#36;', 'digit', '', 'Avail', '_adm_stg_err_option_currency_sign', 31),
  333. (@iCategoryId, 'client_image_resize_width', '_adm_stg_cpt_option_client_image_resize_width', '2048', 'digit', '', '', '', 42),
  334. (@iCategoryId, 'client_image_resize_height', '_adm_stg_cpt_option_client_image_resize_height', '2048', 'digit', '', '', '', 43),
  335. (@iCategoryId, 'useLikeOperator', '_adm_stg_cpt_option_use_like_operator', 'on', 'checkbox', '', '', '', 45),
  336. (@iCategoryId, 'sys_default_payment', '_adm_stg_cpt_option_sys_default_payment', '', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:12:"get_payments";s:5:"class";s:21:"TemplPaymentsServices";}', '', '', 60),
  337. (@iCategoryId, 'sys_maps_api_key', '_adm_stg_cpt_option_sys_maps_api_key', '', 'digit', '', '', '', 70),
  338. (@iCategoryId, 'sys_embed_default', '_adm_stg_cpt_option_sys_embed_default', 'sys_embedly', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:25:"get_options_embed_default";s:5:"class";s:13:"TemplServices";}', '', '', 79),
  339. (@iCategoryId, 'sys_embedly_api_key', '_adm_stg_cpt_option_sys_embedly_api_key', '', 'digit', '', '', '', 80),
  340. (@iCategoryId, 'sys_iframely_api_key', '_adm_stg_cpt_option_sys_iframely_api_key', '', 'digit', '', '', '', 90);
  341. --
  342. -- CATEGORY: Permalinks
  343. --
  344. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'permalinks', '_adm_stg_cpt_category_permalinks', 0, 9);
  345. SET @iCategoryId = LAST_INSERT_ID();
  346. INSERT INTO `sys_options` (`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  347. (@iCategoryId, 'permalinks_pages', '_adm_stg_cpt_option_permalinks_pages', 'on', 'checkbox', '', '', '', 1),
  348. (@iCategoryId, 'permalinks_modules', '_adm_stg_cpt_option_permalinks_modules', 'on', 'checkbox', '', '', '', 2),
  349. (@iCategoryId, 'permalinks_storage', '_adm_stg_cpt_option_permalinks_storage', 'on', 'checkbox', '', '', '', 3);
  350. --
  351. -- CATEGORY: Security
  352. --
  353. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'security', '_adm_stg_cpt_category_security', 0, 11);
  354. SET @iCategoryId = LAST_INSERT_ID();
  355. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  356. (@iCategoryId, 'sys_security_form_token_enable', '_adm_stg_cpt_option_sys_security_form_token_enable', 'on', 'checkbox', '', '', '', 10),
  357. (@iCategoryId, 'sys_security_form_token_lifetime', '_adm_stg_cpt_option_sys_security_form_token_lifetime', '86400', 'digit', '', '', '', 11),
  358. (@iCategoryId, 'sys_recaptcha_key_public', '_adm_stg_cpt_option_sys_recaptcha_key_public', '', 'digit', '', '', '', 20),
  359. (@iCategoryId, 'sys_recaptcha_key_private', '_adm_stg_cpt_option_sys_recaptcha_key_private', '', 'digit', '', '', '', 21),
  360. (@iCategoryId, 'sys_add_nofollow', '_adm_stg_cpt_option_sys_add_nofollow', 'on', 'checkbox', '', '', '', 30);
  361. --
  362. -- CATEGORY: Site Settings
  363. --
  364. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'site_settings','_adm_stg_cpt_category_site_settings', 0, 12);
  365. SET @iCategoryId = LAST_INSERT_ID();
  366. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  367. (@iCategoryId, 'site_title', '_adm_stg_cpt_option_site_title', 'Community', 'digit', '', '', '', 1),
  368. (@iCategoryId, 'site_email', '_adm_stg_cpt_option_site_email', 'admin@example.com', 'digit', '', '', '', 2),
  369. (@iCategoryId, 'site_email_notify', '_adm_stg_cpt_option_site_email_notify', 'admin@example.com', 'digit', '', '', '', 3),
  370. (@iCategoryId, 'site_tour_home', '_adm_stg_cpt_option_site_tour_home', 'on', 'checkbox', '', '', '', 6),
  371. (@iCategoryId, 'site_tour_studio', '_adm_stg_cpt_option_site_tour_studio', 'on', 'checkbox', '', '', '', 7),
  372. (@iCategoryId, 'add_to_mobile_homepage', '_adm_stg_cpt_option_add_to_mobile_homepage', 'on', 'checkbox', '', '', '', 8),
  373. (@iCategoryId, 'site_login_social_compact', '_adm_stg_cpt_option_site_login_social_compact', '', 'checkbox', '', '', '', 9),
  374. (@iCategoryId, 'sys_autoupdate', '_adm_stg_cpt_option_sys_autoupdate', 'on', 'checkbox', '', '', '', 10),
  375. (@iCategoryId, 'sys_autoupdate_force_modified_files', '_adm_stg_cpt_option_sys_autoupdate_force_modified_files', '', 'checkbox', '', '', '', 12),
  376. (@iCategoryId, 'sys_per_page_search_keyword_single', '_adm_stg_cpt_option_sys_per_page_search_keyword_single', '24', 'digit', '', '', '', 20),
  377. (@iCategoryId, 'sys_per_page_search_keyword_plural', '_adm_stg_cpt_option_sys_per_page_search_keyword_plural', '3', 'digit', '', '', '', 21),
  378. (@iCategoryId, 'sys_metatags_hashtags_max', '_adm_stg_cpt_option_sys_metatags_hashtags_max', '9', 'digit', '', '', '', 30),
  379. (@iCategoryId, 'sys_metatags_mentions_max', '_adm_stg_cpt_option_sys_metatags_mentions_max', '9', 'digit', '', '', '', 31),
  380. (@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);
  381. --
  382. -- CATEGORY: Storage
  383. --
  384. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'storage', '_adm_stg_cpt_category_storage', 0, 13);
  385. SET @iCategoryId = LAST_INSERT_ID();
  386. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  387. (@iCategoryId, 'sys_storage_default', '_adm_stg_cpt_option_sys_storage_default', 'Local', 'select', 'Local,S3', '', '', 1),
  388. (@iCategoryId, 'sys_storage_s3_access_key', '_adm_stg_cpt_option_sys_storage_s3_access_key', '', 'digit', '', '', '', 2),
  389. (@iCategoryId, 'sys_storage_s3_secret_key', '_adm_stg_cpt_option_sys_storage_s3_secret_key', '', 'digit', '', '', '', 3),
  390. (@iCategoryId, 'sys_storage_s3_bucket', '_adm_stg_cpt_option_sys_storage_s3_bucket', '', 'digit', '', '', '', 4),
  391. (@iCategoryId, 'sys_storage_s3_domain', '_adm_stg_cpt_option_sys_storage_s3_domain', '', 'digit', '', '', '', 5);
  392. --
  393. -- CATEGORY: Account
  394. --
  395. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'account', '_adm_stg_cpt_category_account', 0, 14);
  396. SET @iCategoryId = LAST_INSERT_ID();
  397. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  398. (@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),
  399. (@iCategoryId, 'sys_account_autoapproval', '_adm_stg_cpt_option_sys_account_autoapproval', 'on', 'checkbox', '', '', '', 10),
  400. (@iCategoryId, 'sys_account_activation_letter', '_adm_stg_cpt_option_sys_account_activation_letter', '', 'checkbox', '', '', '', 11),
  401. (@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),
  402. (@iCategoryId, 'sys_account_activation_2fa_enable', '_adm_stg_cpt_option_sys_account_2fa_enable', '', 'checkbox', '', '', '', 13),
  403. (@iCategoryId, 'sys_account_auto_profile_creation', '_adm_stg_cpt_option_sys_account_auto_profile_creation', 'on', 'checkbox', '', '', '', 15),
  404. (@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),
  405. (@iCategoryId, 'sys_account_limit_profiles_number', '_adm_stg_cpt_option_sys_account_limit_profiles_number', '0', 'digit', '', '', '', 21),
  406. (@iCategoryId, 'sys_account_limit_incorrect_login_attempts', '_adm_stg_cpt_option_sys_account_limit_incorrect_login_attempts', '6', 'digit', '', '', '', 22);
  407. --
  408. -- CATEGORY: ACL
  409. --
  410. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'acl', '_adm_stg_cpt_category_acl', 0, 15);
  411. SET @iCategoryId = LAST_INSERT_ID();
  412. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  413. (@iCategoryId, 'sys_acl_expire_notification_days', '_adm_stg_cpt_option_sys_acl_expire_notification_days', '1', 'digit', '', '', '', 1),
  414. (@iCategoryId, 'sys_acl_expire_notify_once', '_adm_stg_cpt_option_sys_acl_expire_notify_once', 'on', 'checkbox', '', '', '', 2);
  415. --
  416. -- CATEGORY: Notifications
  417. --
  418. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'notifications', '_adm_stg_cpt_category_notifications', 0, 16);
  419. SET @iCategoryId = LAST_INSERT_ID();
  420. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  421. (@iCategoryId, 'enable_notification_pruning', '_adm_stg_cpt_option_enable_notification_pruning', '', 'checkbox', '', '', '', 1),
  422. (@iCategoryId, 'enable_notification_account', '_adm_stg_cpt_option_enable_notification_account', 'on', 'checkbox', '', '', '', 2),
  423. (@iCategoryId, 'sys_eq_send_per_start', '_adm_stg_cpt_option_sys_eq_send_per_start', '500', 'digit', '', '', '', 10),
  424. (@iCategoryId, 'sys_eq_send_per_start_to_recipient', '_adm_stg_cpt_option_sys_eq_send_per_start_to_recipient', '2', 'digit', '', '', '', 11);
  425. --
  426. -- CATEGORY: Push Notifications
  427. --
  428. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'notifications_push', '_adm_stg_cpt_category_notifications_push', 0, 17);
  429. SET @iCategoryId = LAST_INSERT_ID();
  430. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  431. (@iCategoryId, 'sys_push_app_id', '_adm_stg_cpt_option_sys_push_app_id', '', 'digit', '', '', '', 1),
  432. (@iCategoryId, 'sys_push_rest_api', '_adm_stg_cpt_option_sys_push_rest_api', '', 'digit', '', '', '', 2),
  433. (@iCategoryId, 'sys_push_short_name', '_adm_stg_cpt_option_sys_push_short_name', '', 'digit', '', '', '', 3),
  434. (@iCategoryId, 'sys_push_safari_id', '_adm_stg_cpt_option_sys_push_safari_id', '', 'digit', '', '', '', 4),
  435. (@iCategoryId, 'sys_push_queue_send_per_start', '_adm_stg_cpt_option_sys_push_queue_send_per_start', '500', 'digit', '', '', '', 10),
  436. (@iCategoryId, 'sys_push_queue_send_per_start_to_recipient', '_adm_stg_cpt_option_sys_push_queue_send_per_start_to_recipient', '2', 'digit', '', '', '', 11);
  437. --
  438. -- CATEGORY: Twilio gate settings
  439. --
  440. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'twilio_gate', '_adm_stg_cpt_category_twilio_gate', 0, 18);
  441. SET @iCategoryId = LAST_INSERT_ID();
  442. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  443. (@iCategoryId, 'sys_twilio_gate_sid', '_adm_stg_cpt_option_sys_twilio_gate_sid', '', 'digit', '', '', '', 1),
  444. (@iCategoryId, 'sys_twilio_gate_token', '_adm_stg_cpt_option_sys_twilio_gate_token', '', 'digit', '', '', '', 2),
  445. (@iCategoryId, 'sys_twilio_gate_from_number', '_adm_stg_cpt_option_sys_twilio_gate_from_number', '', 'digit', '', '', '', 3);
  446. --
  447. -- CATEGORY (HIDDEN): Audit
  448. --
  449. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'audit', '_adm_stg_cpt_category_audit', 1, 2);
  450. SET @iCategoryId = LAST_INSERT_ID();
  451. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  452. (@iCategoryId, 'sys_audit_enable', '_adm_stg_cpt_option_sys_audit_enable', '', 'checkbox', '', '', '', 1),
  453. (@iCategoryId, 'sys_audit_max_records', '_adm_stg_cpt_option_sys_audit_max_records', '10000', 'digit', '', '', '', 2),
  454. (@iCategoryId, 'sys_audit_days_before_expire', '_adm_stg_cpt_option_sys_audit_days_before_expire', '365', 'digit', '', '', '', 3),
  455. (@iCategoryId, 'sys_audit_acl_levels', '_adm_stg_cpt_option_sys_audit_acl_levels', '7,8', 'digit', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:15:"get_memberships";s:6:"params";a:0:{}s:5:"class";s:16:"TemplAclServices";}', '', '', 4);
  456. --
  457. -- Table structure for table `sys_options_mixes`
  458. --
  459. CREATE TABLE `sys_options_mixes` (
  460. `id` int(11) unsigned NOT NULL auto_increment,
  461. `type` varchar(64) NOT NULL default '',
  462. `category` varchar(64) NOT NULL default '',
  463. `name` varchar(64) NOT NULL default '',
  464. `title` varchar(64) NOT NULL default '',
  465. `active` tinyint(1) NOT NULL default '0',
  466. `published` tinyint(1) NOT NULL default '0',
  467. `editable` tinyint(1) NOT NULL default '1',
  468. PRIMARY KEY (`id`),
  469. UNIQUE KEY `name`(`name`)
  470. );
  471. --
  472. -- Table structure for table `sys_options_mixes2options`
  473. --
  474. CREATE TABLE `sys_options_mixes2options` (
  475. `option` varchar(64) NOT NULL default '',
  476. `mix_id` int(11) unsigned NOT NULL default '0',
  477. `value` mediumtext NOT NULL,
  478. UNIQUE KEY `value`(`option`, `mix_id`)
  479. );
  480. -- --------------------------------------------------------
  481. CREATE TABLE `sys_localization_categories` (
  482. `ID` int(6) unsigned NOT NULL auto_increment,
  483. `Name` varchar(255) NOT NULL default '',
  484. PRIMARY KEY (`ID`),
  485. UNIQUE KEY `Name` (`Name`(191))
  486. );
  487. INSERT INTO `sys_localization_categories` VALUES
  488. (1, 'System'),
  489. (2, 'Custom');
  490. CREATE TABLE `sys_localization_keys` (
  491. `ID` int(10) unsigned NOT NULL auto_increment,
  492. `IDCategory` int(6) unsigned NOT NULL default '0',
  493. `Key` varchar(255) character set utf8 collate utf8_bin NOT NULL default '',
  494. PRIMARY KEY (`ID`),
  495. UNIQUE KEY `Key` (`Key`(191)),
  496. FULLTEXT KEY `KeyFilter` (`Key`(191))
  497. );
  498. CREATE TABLE `sys_localization_languages` (
  499. `ID` int(10) unsigned NOT NULL auto_increment,
  500. `Name` varchar(5) NOT NULL default '',
  501. `Flag` varchar(2) NOT NULL default '',
  502. `Title` varchar(255) NOT NULL default '',
  503. `Direction` enum('LTR','RTL') NOT NULL DEFAULT 'LTR',
  504. `LanguageCountry` varchar(8) NOT NULL,
  505. `Enabled` tinyint(1) unsigned NOT NULL default '0',
  506. PRIMARY KEY (`ID`),
  507. UNIQUE KEY `Name` (`Name`)
  508. );
  509. CREATE TABLE `sys_localization_strings` (
  510. `IDKey` int(10) unsigned NOT NULL default '0',
  511. `IDLanguage` int(10) unsigned NOT NULL default '0',
  512. `String` mediumtext NOT NULL,
  513. PRIMARY KEY (`IDKey`,`IDLanguage`),
  514. FULLTEXT KEY `String` (`String`)
  515. );
  516. -- --------------------------------------------------------
  517. CREATE TABLE `sys_acl_actions` (
  518. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  519. `Module` varchar(32) NOT NULL,
  520. `Name` varchar(255) NOT NULL default '',
  521. `AdditionalParamName` varchar(80) default NULL,
  522. `Title` varchar(255) NOT NULL,
  523. `Desc` varchar(255) NOT NULL,
  524. `Countable` tinyint(4) NOT NULL DEFAULT '0',
  525. `DisabledForLevels` int(10) unsigned NOT NULL DEFAULT '3',
  526. PRIMARY KEY (`ID`),
  527. FULLTEXT KEY `ModuleAndName` (`Module`, `Name`)
  528. );
  529. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  530. ('system', 'connect', NULL, '_sys_acl_action_connect', '', 1, 3);
  531. SET @iIdActionConnect = LAST_INSERT_ID();
  532. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  533. ('system', 'vote', NULL, '_sys_acl_action_vote', '', 1, 0);
  534. SET @iIdActionVote = LAST_INSERT_ID();
  535. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  536. ('system', 'vote_view', NULL, '_sys_acl_action_vote_view', '', 1, 0);
  537. SET @iIdActionVoteView = LAST_INSERT_ID();
  538. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  539. ('system', 'vote_view_voters', NULL, '_sys_acl_action_vote_view_voters', '', 1, 0);
  540. SET @iIdActionVoteViewVoters = LAST_INSERT_ID();
  541. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  542. ('system', 'report', NULL, '_sys_acl_action_report', '', 1, 0);
  543. SET @iIdActionReport = LAST_INSERT_ID();
  544. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  545. ('system', 'report_view', NULL, '_sys_acl_action_report_view', '', 0, 0);
  546. SET @iIdActionReportView = LAST_INSERT_ID();
  547. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  548. ('system', 'favorite', NULL, '_sys_acl_action_favorite', '', 1, 0);
  549. SET @iIdActionFavorite = LAST_INSERT_ID();
  550. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  551. ('system', 'favorite_view', NULL, '_sys_acl_action_favorite_view', '', 0, 0);
  552. SET @iIdActionFavoriteView = LAST_INSERT_ID();
  553. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  554. ('system', 'feature', NULL, '_sys_acl_action_feature', '', 0, 0);
  555. SET @iIdActionFeature = LAST_INSERT_ID();
  556. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  557. ('system', 'view_view', NULL, '_sys_acl_action_view_view', '', 0, 0);
  558. SET @iIdActionViewView = LAST_INSERT_ID();
  559. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  560. ('system', 'view_view_viewers_own', NULL, '_sys_acl_action_view_view_viewers_own', '', 0, 0);
  561. SET @iIdActionViewViewViewers = LAST_INSERT_ID();
  562. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  563. ('system', 'comments post', NULL, '_sys_acl_action_comments_post', '', 1, 3);
  564. SET @iIdActionCmtPost = LAST_INSERT_ID();
  565. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  566. ('system', 'comments edit own', NULL, '_sys_acl_action_comments_edit_own', '', 0, 3);
  567. SET @iIdActionCmtEditOwn = LAST_INSERT_ID();
  568. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  569. ('system', 'comments remove own', NULL, '_sys_acl_action_comments_remove_own', '', 1, 3);
  570. SET @iIdActionCmtRemoveOwn = LAST_INSERT_ID();
  571. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  572. ('system', 'comments edit all', NULL, '_sys_acl_action_comments_edit_all', '', 1, 3);
  573. SET @iIdActionCmtEditAll = LAST_INSERT_ID();
  574. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  575. ('system', 'comments remove all', NULL, '_sys_acl_action_comments_remove_all', '', 1, 3);
  576. SET @iIdActionCmtRemoveAll = LAST_INSERT_ID();
  577. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  578. ('system', 'create account', NULL, '_sys_acl_action_create_account', '_sys_acl_action_create_account_desc', 0, 2147483646);
  579. SET @iIdActionAccountCreate = LAST_INSERT_ID();
  580. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  581. ('system', 'delete account', NULL, '_sys_acl_action_delete_account', '_sys_acl_action_delete_account_desc', 0, 1);
  582. SET @iIdActionAccountDelete = LAST_INSERT_ID();
  583. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  584. ('system', 'set acl level', NULL, '_sys_acl_action_set_acl_level', '_sys_acl_action_set_acl_level_desc', 0, 3);
  585. SET @iIdActionSetAclLevel = LAST_INSERT_ID();
  586. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  587. ('system', 'set acl as privacy', NULL, '_sys_acl_action_set_acl_as_privacy', '_sys_acl_action_set_acl_as_privacy_desc', 0, 3);
  588. SET @iIdActionSetAclAsPrivacy = LAST_INSERT_ID();
  589. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  590. ('system', 'chart view', NULL, '_sys_acl_action_chart_view', '_sys_acl_action_chart_view_desc', 0, 3);
  591. SET @iIdActionChartView = LAST_INSERT_ID();
  592. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  593. ('system', 'post links', NULL, '_sys_acl_action_post_links', '_sys_acl_action_post_links_desc', 0, 0);
  594. SET @iIdActionPostLinks = LAST_INSERT_ID();
  595. CREATE TABLE `sys_acl_actions_track` (
  596. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  597. `IDMember` int(10) unsigned NOT NULL default '0',
  598. `ActionsLeft` int(10) unsigned NOT NULL DEFAULT '0',
  599. `ValidSince` datetime default NULL,
  600. PRIMARY KEY (`IDAction`,`IDMember`)
  601. );
  602. CREATE TABLE `sys_acl_matrix` (
  603. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  604. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  605. `AllowedCount` int(10) unsigned DEFAULT NULL,
  606. `AllowedPeriodLen` int(10) unsigned DEFAULT NULL,
  607. `AllowedPeriodStart` datetime default NULL,
  608. `AllowedPeriodEnd` datetime default NULL,
  609. `AdditionalParamValue` varchar(255) default NULL,
  610. PRIMARY KEY (`IDLevel`,`IDAction`)
  611. );
  612. SET @iUnauthenticated = 1;
  613. SET @iAccount = 2;
  614. SET @iStandard = 3;
  615. SET @iUnconfirmed = 4;
  616. SET @iPending = 5;
  617. SET @iSuspended = 6;
  618. SET @iModerator = 7;
  619. SET @iAdministrator = 8;
  620. SET @iPremium = 9;
  621. INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES
  622. -- connect
  623. (@iStandard, @iIdActionConnect),
  624. (@iModerator, @iIdActionConnect),
  625. (@iAdministrator, @iIdActionConnect),
  626. (@iPremium, @iIdActionConnect),
  627. -- vote
  628. (@iStandard, @iIdActionVote),
  629. (@iModerator, @iIdActionVote),
  630. (@iAdministrator, @iIdActionVote),
  631. (@iPremium, @iIdActionVote),
  632. -- vote view
  633. (@iStandard, @iIdActionVoteView),
  634. (@iModerator, @iIdActionVoteView),
  635. (@iAdministrator, @iIdActionVoteView),
  636. (@iPremium, @iIdActionVoteView),
  637. -- vote view voters
  638. (@iStandard, @iIdActionVoteViewVoters),
  639. (@iModerator, @iIdActionVoteViewVoters),
  640. (@iAdministrator, @iIdActionVoteViewVoters),
  641. (@iPremium, @iIdActionVoteViewVoters),
  642. -- report
  643. (@iStandard, @iIdActionReport),
  644. (@iModerator, @iIdActionReport),
  645. (@iAdministrator, @iIdActionReport),
  646. (@iPremium, @iIdActionReport),
  647. -- report view
  648. (@iModerator, @iIdActionReportView),
  649. (@iAdministrator, @iIdActionReportView),
  650. -- favorite
  651. (@iStandard, @iIdActionFavorite),
  652. (@iModerator, @iIdActionFavorite),
  653. (@iAdministrator, @iIdActionFavorite),
  654. (@iPremium, @iIdActionFavorite),
  655. -- favorite view
  656. (@iUnauthenticated, @iIdActionFavoriteView),
  657. (@iAccount, @iIdActionFavoriteView),
  658. (@iStandard, @iIdActionFavoriteView),
  659. (@iUnconfirmed, @iIdActionFavoriteView),
  660. (@iPending, @iIdActionFavoriteView),
  661. (@iModerator, @iIdActionFavoriteView),
  662. (@iAdministrator, @iIdActionFavoriteView),
  663. (@iPremium, @iIdActionFavoriteView),
  664. -- feature
  665. (@iModerator, @iIdActionFeature),
  666. (@iAdministrator, @iIdActionFeature),
  667. -- view view
  668. (@iUnauthenticated, @iIdActionViewView),
  669. (@iAccount, @iIdActionViewView),
  670. (@iStandard, @iIdActionViewView),
  671. (@iUnconfirmed, @iIdActionViewView),
  672. (@iPending, @iIdActionViewView),
  673. (@iModerator, @iIdActionViewView),
  674. (@iAdministrator, @iIdActionViewView),
  675. (@iPremium, @iIdActionViewView),
  676. -- view view viewers
  677. (@iModerator, @iIdActionViewViewViewers),
  678. (@iAdministrator, @iIdActionViewViewViewers),
  679. -- comments post
  680. (@iStandard, @iIdActionCmtPost),
  681. (@iModerator, @iIdActionCmtPost),
  682. (@iAdministrator, @iIdActionCmtPost),
  683. (@iPremium, @iIdActionCmtPost),
  684. -- comments edit own
  685. (@iStandard, @iIdActionCmtEditOwn),
  686. (@iModerator, @iIdActionCmtEditOwn),
  687. (@iAdministrator, @iIdActionCmtEditOwn),
  688. (@iPremium, @iIdActionCmtEditOwn),
  689. -- comments remove own
  690. (@iStandard, @iIdActionCmtRemoveOwn),
  691. (@iModerator, @iIdActionCmtRemoveOwn),
  692. (@iAdministrator, @iIdActionCmtRemoveOwn),
  693. (@iPremium, @iIdActionCmtRemoveOwn),
  694. -- comments edit all
  695. (@iModerator, @iIdActionCmtEditAll),
  696. (@iAdministrator, @iIdActionCmtEditAll),
  697. -- comments remove all
  698. (@iModerator, @iIdActionCmtRemoveAll),
  699. (@iAdministrator, @iIdActionCmtRemoveAll),
  700. -- account create
  701. (@iUnauthenticated, @iIdActionAccountCreate),
  702. -- account delete
  703. (@iAccount, @iIdActionAccountDelete),
  704. (@iStandard, @iIdActionAccountDelete),
  705. (@iUnconfirmed, @iIdActionAccountDelete),
  706. (@iPending, @iIdActionAccountDelete),
  707. (@iModerator, @iIdActionAccountDelete),
  708. (@iAdministrator, @iIdActionAccountDelete),
  709. (@iPremium, @iIdActionAccountDelete),
  710. -- set acl level
  711. (@iAdministrator, @iIdActionSetAclLevel),
  712. -- set acl as privacy
  713. (@iAdministrator, @iIdActionSetAclAsPrivacy),
  714. -- view charts
  715. (@iAdministrator, @iIdActionChartView),
  716. -- post links
  717. (@iStandard, @iIdActionPostLinks),
  718. (@iModerator, @iIdActionPostLinks),
  719. (@iAdministrator, @iIdActionPostLinks),
  720. (@iPremium, @iIdActionPostLinks);
  721. CREATE TABLE `sys_acl_levels` (
  722. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  723. `Name` varchar(100) NOT NULL default '',
  724. `Icon` varchar(255) NOT NULL default '',
  725. `Description` varchar(255) NOT NULL default '',
  726. `Active` enum('yes','no') NOT NULL default 'no',
  727. `Purchasable` enum('yes','no') NOT NULL default 'yes',
  728. `Removable` enum('yes','no') NOT NULL default 'yes',
  729. `QuotaSize` bigint(20) NOT NULL,
  730. `QuotaNumber` int(11) NOT NULL,
  731. `QuotaMaxFileSize` int(11) NOT NULL,
  732. `Order` int(11) NOT NULL default '0',
  733. PRIMARY KEY (`ID`),
  734. UNIQUE KEY `Name` (`Name`),
  735. FULLTEXT KEY `Description` (`Description`)
  736. );
  737. INSERT INTO `sys_acl_levels` (`ID`, `Name`, `Icon`, `Description`, `Active`, `Purchasable`, `Removable`, `QuotaSize`, `QuotaNumber`, `QuotaMaxFileSize`, `Order`) VALUES
  738. (1, '_adm_prm_txt_level_unauthenticated', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 1),
  739. (2, '_adm_prm_txt_level_account', 'user col-green1', '', 'yes', 'no', 'no', 0, 0, 0, 2),
  740. (3, '_adm_prm_txt_level_standard', 'user col-red1', '', 'yes', 'no', 'no', 0, 0, 0, 3),
  741. (4, '_adm_prm_txt_level_unconfirmed', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 4),
  742. (5, '_adm_prm_txt_level_pending', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 5),
  743. (6, '_adm_prm_txt_level_suspended', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 6),
  744. (7, '_adm_prm_txt_level_moderator', 'user-secret bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 7),
  745. (8, '_adm_prm_txt_level_administrator', 'user-secret bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 8),
  746. (9, '_adm_prm_txt_level_premium', 'user col-red3', '', 'yes', 'yes', 'no', 0, 0, 0, 9);
  747. -- --------------------------------------------------------
  748. --
  749. -- Table structure for table `boon_sys_sessions`
  750. --
  751. CREATE TABLE IF NOT EXISTS `sys_sessions` (
  752. `id` varchar(32) NOT NULL default '',
  753. `user_id` int(10) unsigned NOT NULL default '0',
  754. `data` text,
  755. `date` int(10) unsigned NOT NULL default '0',
  756. PRIMARY KEY (`id`),
  757. KEY `user_id` (`user_id`),
  758. KEY `date` (`date`)
  759. );
  760. -- --------------------------------------------------------
  761. --
  762. -- Table structure for table `sys_acl_levels_members`
  763. --
  764. CREATE TABLE `sys_acl_levels_members` (
  765. `IDMember` int(10) unsigned NOT NULL default '0',
  766. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  767. `DateStarts` datetime NOT NULL default '0000-00-00 00:00:00',
  768. `DateExpires` datetime default NULL,
  769. `TransactionID` varchar(16) NOT NULL default '',
  770. PRIMARY KEY (`IDMember`,`IDLevel`,`DateStarts`)
  771. );
  772. -- --------------------------------------------------------
  773. CREATE TABLE `sys_accounts` (
  774. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  775. `profile_id` int(10) unsigned NOT NULL,
  776. `name` varchar(255) NOT NULL,
  777. `email` varchar(255) NOT NULL,
  778. `email_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  779. `phone` varchar(255) NOT NULL,
  780. `phone_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  781. `receive_updates` tinyint(4) NOT NULL DEFAULT '1',
  782. `receive_news` tinyint(4) NOT NULL DEFAULT '1',
  783. `password` varchar(40) NOT NULL,
  784. `salt` varchar(10) NOT NULL,
  785. `role` tinyint(4) NOT NULL DEFAULT '1',
  786. `lang_id` int(10) unsigned NOT NULL DEFAULT '0',
  787. `added` int(11) NOT NULL DEFAULT '0',
  788. `changed` int(11) NOT NULL DEFAULT '0',
  789. `logged` int(11) NOT NULL DEFAULT '0',
  790. `ip` varchar(40) NOT NULL DEFAULT '',
  791. `reffered` varchar(255) NOT NULL DEFAULT '',
  792. `login_attempts` tinyint(4) NOT NULL DEFAULT '0',
  793. `locked` tinyint(4) NOT NULL DEFAULT '0',
  794. PRIMARY KEY (`id`),
  795. UNIQUE KEY `email` (`email`(191)),
  796. KEY `added` (`added`),
  797. KEY `profile_id` (`profile_id`)
  798. );
  799. CREATE TABLE IF NOT EXISTS `sys_profiles` (
  800. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  801. `account_id` int(10) unsigned NOT NULL,
  802. `type` varchar(32) NOT NULL,
  803. `content_id` int(10) unsigned NOT NULL,
  804. `status` enum('active','pending','suspended') NOT NULL DEFAULT 'active',
  805. PRIMARY KEY (`id`),
  806. UNIQUE KEY `account_type_content` (`account_id`,`type`,`content_id`),
  807. KEY `content_type` (`content_id`,`type`)
  808. );
  809. -- --------------------------------------------------------
  810. --
  811. -- Table structure for table 'sys_statistics'
  812. --
  813. CREATE TABLE `sys_statistics` (
  814. `id` int(11) unsigned NOT NULL auto_increment,
  815. `module` varchar(32) NOT NULL default '',
  816. `name` varchar(64) NOT NULL default '',
  817. `title` varchar(255) NOT NULL default '',
  818. `link` varchar(255) NOT NULL default '',
  819. `icon` varchar(32) NOT NULL default '',
  820. `query` text NOT NULL default '',
  821. `order` int(11) NOT NULL default '0',
  822. PRIMARY KEY (`ID`),
  823. UNIQUE KEY `name` (`name`)
  824. );
  825. INSERT INTO `sys_statistics` (`module`, `name`, `title`, `link`, `icon`, `query`, `order`) VALUES
  826. ('system', 'sys_accounts', '_sys_accounts', '', 'user', 'SELECT COUNT(*) FROM `sys_accounts` WHERE 1', 1);
  827. -- --------------------------------------------------------
  828. --
  829. -- Table structure for table 'sys_objects_rss'
  830. --
  831. CREATE TABLE `sys_objects_rss` (
  832. `id` int(11) NOT NULL auto_increment,
  833. `object` varchar(64) NOT NULL,
  834. `class_name` varchar(32) NOT NULL default '',
  835. `class_file` varchar(256) NOT NULL default '',
  836. PRIMARY KEY (`id`)
  837. );
  838. INSERT INTO `sys_objects_rss` (`object`, `class_name`, `class_file`) VALUES
  839. ('sys_boonex', 'BxDolRssBoonEx', ''),
  840. ('sys_page_block', 'BxDolRssPageBlock', ''),
  841. ('sys_studio_page_help', 'BxDolStudioRssPageHelp', ''),
  842. ('sys_studio_module_help', 'BxDolStudioRssModuleHelp', '');
  843. -- --------------------------------------------------------
  844. --
  845. -- Table structure for table 'sys_objects_search'
  846. --
  847. CREATE TABLE `sys_objects_search` (
  848. `ID` int(10) unsigned NOT NULL auto_increment,
  849. `ObjectName` varchar(64) NOT NULL default '',
  850. `Title` varchar(50) NOT NULL default '',
  851. `Order` int(11) NOT NULL,
  852. `GlobalSearch` tinyint(4) NOT NULL DEFAULT '1',
  853. `ClassName` varchar(50) NOT NULL default '',
  854. `ClassPath` varchar(100) NOT NULL default '',
  855. PRIMARY KEY (`ID`)
  856. );
  857. -- --------------------------------------------------------
  858. --
  859. -- Table structure for table 'sys_objects_search_extended'
  860. --
  861. CREATE TABLE `sys_objects_search_extended` (
  862. `id` int(10) unsigned NOT NULL auto_increment,
  863. `object` varchar(64) NOT NULL default '',
  864. `object_content_info` varchar(64) NOT NULL default '',
  865. `module` varchar(32) NOT NULL default '',
  866. `title` varchar(255) NOT NULL default '',
  867. `active` tinyint(4) NOT NULL DEFAULT '0',
  868. `class_name` varchar(32) NOT NULL default '',
  869. `class_file` varchar(255) NOT NULL default '',
  870. PRIMARY KEY (`id`),
  871. UNIQUE KEY `object` (`object`)
  872. );
  873. -- --------------------------------------------------------
  874. --
  875. -- Table structure for table 'sys_search_extended_fields'
  876. --
  877. CREATE TABLE `sys_search_extended_fields` (
  878. `id` int(10) unsigned NOT NULL auto_increment,
  879. `object` varchar(64) NOT NULL default '',
  880. `name` varchar(255) NOT NULL default '',
  881. `type` varchar(32) NOT NULL default '',
  882. `caption` varchar(255) NOT NULL default '',
  883. `info` varchar(255) NOT NULL default '',
  884. `values` text NOT NULL default '',
  885. `pass` varchar(32) NOT NULL,
  886. `search_type` varchar(32) NOT NULL default '',
  887. `search_value` varchar(255) NOT NULL default '',
  888. `search_operator` varchar(32) NOT NULL default '',
  889. `active` tinyint(4) NOT NULL DEFAULT '0',
  890. `order` int(11) NOT NULL default '0',
  891. PRIMARY KEY (`id`),
  892. UNIQUE KEY `field` (`object`(64), `name`(127))
  893. );
  894. -- --------------------------------------------------------
  895. --
  896. -- Table structure for table `sys_objects_vote`
  897. --
  898. CREATE TABLE `sys_objects_vote` (
  899. `ID` int(11) unsigned NOT NULL auto_increment,
  900. `Name` varchar(50) NOT NULL default '',
  901. `TableMain` varchar(50) NOT NULL default '',
  902. `TableTrack` varchar(50) NOT NULL default '',
  903. `PostTimeout` int(11) NOT NULL default '0',
  904. `MinValue` tinyint(4) NOT NULL default '1',
  905. `MaxValue` tinyint(4) NOT NULL default '5',
  906. `IsUndo` tinyint(1) NOT NULL default '0',
  907. `IsOn` tinyint(1) NOT NULL default '1',
  908. `TriggerTable` varchar(32) NOT NULL default '',
  909. `TriggerFieldId` varchar(32) NOT NULL default '',
  910. `TriggerFieldAuthor` varchar(32) NOT NULL default '',
  911. `TriggerFieldRate` varchar(32) NOT NULL default '',
  912. `TriggerFieldRateCount` varchar(32) NOT NULL default '',
  913. `ClassName` varchar(32) NOT NULL default '',
  914. `ClassFile` varchar(256) NOT NULL default '',
  915. PRIMARY KEY (`ID`)
  916. );
  917. INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
  918. ('sys_cmts', 'sys_cmts_votes', 'sys_cmts_votes_track', '604800', '1', '1', '0', '1', 'sys_cmts_ids', 'id', 'author_id', 'rate', 'votes', '', ''),
  919. ('sys_cmts_reactions', 'sys_cmts_reactions', 'sys_cmts_reactions_track', '604800', '1', '1', '1', '1', 'sys_cmts_ids', 'id', 'author_id', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');
  920. -- --------------------------------------------------------
  921. --
  922. -- Table structure for table `sys_objects_score`
  923. --
  924. CREATE TABLE `sys_objects_score` (
  925. `id` int(11) unsigned NOT NULL auto_increment,
  926. `name` varchar(50) NOT NULL default '',
  927. `module` varchar(32) NOT NULL,
  928. `table_main` varchar(50) NOT NULL default '',
  929. `table_track` varchar(50) NOT NULL default '',
  930. `post_timeout` int(11) NOT NULL default '0',
  931. `is_on` tinyint(1) NOT NULL default '1',
  932. `trigger_table` varchar(32) NOT NULL default '',
  933. `trigger_field_id` varchar(32) NOT NULL default '',
  934. `trigger_field_author` varchar(32) NOT NULL default '',
  935. `trigger_field_score` varchar(32) NOT NULL default '',
  936. `trigger_field_cup` varchar(32) NOT NULL default '',
  937. `trigger_field_cdown` varchar(32) NOT NULL default '',
  938. `class_name` varchar(32) NOT NULL default '',
  939. `class_file` varchar(256) NOT NULL default '',
  940. PRIMARY KEY (`ID`)
  941. );
  942. 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
  943. ('sys_cmts', 'system', 'sys_cmts_scores', 'sys_cmts_scores_track', '604800', '0', 'sys_cmts_ids', 'id', 'author_id', 'score', 'sc_up', 'sc_down', '', '');
  944. -- -------------------------------------------------------
  945. CREATE TABLE `sys_modules` (
  946. `id` int(11) unsigned NOT NULL auto_increment,
  947. `type` varchar(16) NOT NULL default 'module',
  948. `name` varchar(32) NOT NULL default '',
  949. `title` varchar(255) NOT NULL default '',
  950. `vendor` varchar(64) NOT NULL default '',
  951. `version` varchar(32) NOT NULL default '',
  952. `help_url` varchar(128) NOT NULL default '',
  953. `path` varchar(255) NOT NULL default '',
  954. `uri` varchar(32) NOT NULL default '',
  955. `class_prefix` varchar(32) NOT NULL default '',
  956. `db_prefix` varchar(32) NOT NULL default '',
  957. `lang_category` varchar(64) NOT NULL default '',
  958. `dependencies` varchar(255) NOT NULL default '',
  959. `date` int(11) unsigned NOT NULL default '0',
  960. `enabled` tinyint(1) NOT NULL default '0',
  961. `pending_uninstall` tinyint(4) NOT NULL,
  962. `hash` varchar(32) NOT NULL default '',
  963. PRIMARY KEY (`id`),
  964. UNIQUE KEY `name` (`name`),
  965. UNIQUE KEY `path` (`path`(191)),
  966. UNIQUE KEY `uri` (`uri`),
  967. UNIQUE KEY `class_prefix` (`class_prefix`),
  968. UNIQUE KEY `db_prefix` (`db_prefix`)
  969. );
  970. INSERT INTO `sys_modules` (`type`, `name`, `title`, `vendor`, `version`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `dependencies`, `date`, `enabled`) VALUES
  971. ('module', 'system', 'System', 'UNA, Inc', '9', '', 'system', 'Bx', 'sys_', 'System', '', 0, 1);
  972. CREATE TABLE `sys_modules_file_tracks` (
  973. `id` int(11) unsigned NOT NULL auto_increment,
  974. `module_id` int(11) unsigned NOT NULL default '0',
  975. `file` varchar(255) NOT NULL default '',
  976. `hash` varchar(64) NOT NULL default '',
  977. PRIMARY KEY (`id`)
  978. );
  979. CREATE TABLE `sys_modules_relations` (
  980. `id` int(11) unsigned NOT NULL auto_increment,
  981. `module` varchar(32) NOT NULL default '',
  982. `on_install` varchar(255) NOT NULL default '',
  983. `on_uninstall` varchar(255) NOT NULL default '',
  984. `on_enable` varchar(255) NOT NULL default '',
  985. `on_disable` varchar(255) NOT NULL default '',
  986. PRIMARY KEY (`id`)
  987. );
  988. -- --------------------------------------------------------
  989. CREATE TABLE IF NOT EXISTS `sys_files` (
  990. `id` int(11) NOT NULL AUTO_INCREMENT,
  991. `profile_id` int(10) unsigned NOT NULL,
  992. `remote_id` varchar(128) NOT NULL,
  993. `path` varchar(255) NOT NULL,
  994. `file_name` varchar(255) NOT NULL,
  995. `mime_type` varchar(128) NOT NULL,
  996. `ext` varchar(32) NOT NULL,
  997. `size` int(11) NOT NULL,
  998. `added` int(11) NOT NULL,
  999. `modified` int(11) NOT NULL,
  1000. `private` int(11) NOT NULL,
  1001. PRIMARY KEY (`id`),
  1002. UNIQUE KEY `remote_id` (`remote_id`)
  1003. );
  1004. CREATE TABLE `sys_images` (
  1005. `id` int(11) NOT NULL AUTO_INCREMENT,
  1006. `profile_id` int(10) unsigned NOT NULL,
  1007. `remote_id` varchar(128) NOT NULL,
  1008. `path` varchar(255) NOT NULL,
  1009. `file_name` varchar(255) NOT NULL,
  1010. `mime_type` varchar(128) NOT NULL,
  1011. `ext` varchar(32) NOT NULL,
  1012. `size` int(11) NOT NULL,
  1013. `added` int(11) NOT NULL,
  1014. `modified` int(11) NOT NULL,
  1015. `private` int(11) NOT NULL,
  1016. PRIMARY KEY (`id`),
  1017. UNIQUE KEY `remote_id` (`remote_id`)
  1018. );
  1019. CREATE TABLE `sys_images_custom` (
  1020. `id` int(11) NOT NULL AUTO_INCREMENT,
  1021. `profile_id` int(10) unsigned NOT NULL,
  1022. `remote_id` varchar(128) NOT NULL,
  1023. `path` varchar(255) NOT NULL,
  1024. `file_name` varchar(255) NOT NULL,
  1025. `mime_type` varchar(128) NOT NULL,
  1026. `ext` varchar(32) NOT NULL,
  1027. `size` int(11) NOT NULL,
  1028. `added` int(11) NOT NULL,
  1029. `modified` int(11) NOT NULL,
  1030. `private` int(11) NOT NULL,
  1031. PRIMARY KEY (`id`),
  1032. UNIQUE KEY `remote_id` (`remote_id`)
  1033. );
  1034. CREATE TABLE `sys_images_resized` (
  1035. `id` int(11) NOT NULL AUTO_INCREMENT,
  1036. `profile_id` int(10) unsigned NOT NULL,
  1037. `remote_id` varchar(128) NOT NULL,
  1038. `path` varchar(255) NOT NULL,
  1039. `file_name` varchar(255) NOT NULL,
  1040. `mime_type` varchar(128) NOT NULL,
  1041. `ext` varchar(32) NOT NULL,
  1042. `size` int(11) NOT NULL,
  1043. `added` int(11) NOT NULL,
  1044. `modified` int(11) NOT NULL,
  1045. `private` int(11) NOT NULL,
  1046. PRIMARY KEY (`id`),
  1047. UNIQUE KEY `remote_id` (`remote_id`)
  1048. );
  1049. -- --------------------------------------------------------
  1050. CREATE TABLE IF NOT EXISTS `sys_cmts_images` (
  1051. `id` int(11) NOT NULL AUTO_INCREMENT,
  1052. `profile_id` int(10) unsigned NOT NULL,
  1053. `remote_id` varchar(128) NOT NULL,
  1054. `path` varchar(255) NOT NULL,
  1055. `file_name` varchar(255) NOT NULL,
  1056. `mime_type` varchar(128) NOT NULL,
  1057. `ext` varchar(32) NOT NULL,
  1058. `size` int(11) NOT NULL,
  1059. `added` int(11) NOT NULL,
  1060. `modified` int(11) NOT NULL,
  1061. `private` int(11) NOT NULL,
  1062. PRIMARY KEY (`id`),
  1063. UNIQUE KEY `remote_id` (`remote_id`)
  1064. );
  1065. CREATE TABLE IF NOT EXISTS `sys_cmts_images_preview` (
  1066. `id` int(11) NOT NULL AUTO_INCREMENT,
  1067. `profile_id` int(10) unsigned NOT NULL,
  1068. `remote_id` varchar(128) NOT NULL,
  1069. `path` varchar(255) NOT NULL,
  1070. `file_name` varchar(255) NOT NULL,
  1071. `mime_type` varchar(128) NOT NULL,
  1072. `ext` varchar(32) NOT NULL,
  1073. `size` int(11) NOT NULL,
  1074. `added` int(11) NOT NULL,
  1075. `modified` int(11) NOT NULL,
  1076. `private` int(11) NOT NULL,
  1077. PRIMARY KEY (`id`),
  1078. UNIQUE KEY `remote_id` (`remote_id`)
  1079. );
  1080. CREATE TABLE IF NOT EXISTS `sys_cmts_images2entries` (
  1081. `id` int(11) NOT NULL AUTO_INCREMENT,
  1082. `system_id` int(11) NOT NULL DEFAULT '0',
  1083. `cmt_id` int(11) NOT NULL DEFAULT '0',
  1084. `image_id` int(11) NOT NULL DEFAULT '0',
  1085. PRIMARY KEY (`id`),
  1086. UNIQUE KEY `image` (`system_id`,`cmt_id`,`image_id`)
  1087. );
  1088. CREATE TABLE IF NOT EXISTS `sys_cmts_ids` (
  1089. `id` int(11) NOT NULL AUTO_INCREMENT,
  1090. `system_id` int(11) NOT NULL DEFAULT '0',
  1091. `cmt_id` int(11) NOT NULL DEFAULT '0',
  1092. `author_id` int(11) NOT NULL DEFAULT '0',
  1093. `rate` float NOT NULL default '0',
  1094. `votes` int(11) NOT NULL default '0',
  1095. `rrate` float NOT NULL default '0',
  1096. `rvotes` int(11) NOT NULL default '0',
  1097. `score` int(11) NOT NULL default '0',
  1098. `sc_up` int(11) NOT NULL default '0',
  1099. `sc_down` int(11) NOT NULL default '0',
  1100. `reports` int(11) NOT NULL default '0',
  1101. PRIMARY KEY (`id`),
  1102. UNIQUE KEY `system_cmt_id` (`system_id`,`cmt_id`)
  1103. );
  1104. CREATE TABLE IF NOT EXISTS `sys_cmts_meta_keywords` (
  1105. `object_id` int(10) unsigned NOT NULL,
  1106. `keyword` varchar(255) NOT NULL,
  1107. KEY `object_id` (`object_id`),
  1108. KEY `keyword` (`keyword`)
  1109. );
  1110. CREATE TABLE IF NOT EXISTS `sys_cmts_meta_mentions` (
  1111. `object_id` int(10) unsigned NOT NULL,
  1112. `profile_id` int(10) unsigned NOT NULL,
  1113. KEY `object_id` (`object_id`),
  1114. KEY `profile_id` (`profile_id`)
  1115. );
  1116. CREATE TABLE IF NOT EXISTS `sys_cmts_votes` (
  1117. `object_id` int(11) NOT NULL default '0',
  1118. `count` int(11) NOT NULL default '0',
  1119. `sum` int(11) NOT NULL default '0',
  1120. UNIQUE KEY `object_id` (`object_id`)
  1121. );
  1122. CREATE TABLE IF NOT EXISTS `sys_cmts_votes_track` (
  1123. `id` int(11) NOT NULL AUTO_INCREMENT,
  1124. `object_id` int(11) NOT NULL default '0',
  1125. `author_id` int(11) NOT NULL default '0',
  1126. `author_nip` int(11) unsigned NOT NULL default '0',
  1127. `value` tinyint(4) NOT NULL default '0',
  1128. `date` int(11) NOT NULL default '0',
  1129. PRIMARY KEY (`id`),
  1130. KEY `vote` (`object_id`, `author_nip`)
  1131. );
  1132. CREATE TABLE IF NOT EXISTS `sys_cmts_reactions` (
  1133. `object_id` int(11) NOT NULL default '0',
  1134. `reaction` varchar(32) NOT NULL default '',
  1135. `count` int(11) NOT NULL default '0',
  1136. `sum` int(11) NOT NULL default '0',
  1137. UNIQUE KEY `reaction` (`object_id`, `reaction`)
  1138. );
  1139. CREATE TABLE IF NOT EXISTS `sys_cmts_reactions_track` (
  1140. `id` int(11) NOT NULL AUTO_INCREMENT,
  1141. `object_id` int(11) NOT NULL default '0',
  1142. `author_id` int(11) NOT NULL default '0',
  1143. `author_nip` int(11) unsigned NOT NULL default '0',
  1144. `reaction` varchar(32) NOT NULL default '',
  1145. `value` tinyint(4) NOT NULL default '0',
  1146. `date` int(11) NOT NULL default '0',
  1147. PRIMARY KEY (`id`),
  1148. KEY `vote` (`object_id`, `author_nip`)
  1149. );
  1150. CREATE TABLE IF NOT EXISTS `sys_cmts_reports` (
  1151. `object_id` int(11) NOT NULL default '0',
  1152. `count` int(11) NOT NULL default '0',
  1153. UNIQUE KEY `object_id` (`object_id`)
  1154. );
  1155. CREATE TABLE IF NOT EXISTS `sys_cmts_reports_track` (
  1156. `id` int(11) NOT NULL AUTO_INCREMENT,
  1157. `object_id` int(11) NOT NULL default '0',
  1158. `author_id` int(11) NOT NULL default '0',
  1159. `author_nip` int(11) unsigned NOT NULL default '0',
  1160. `type` varchar(32) NOT NULL default '',
  1161. `text` text NOT NULL default '',
  1162. `date` int(11) NOT NULL default '0',
  1163. PRIMARY KEY (`id`),
  1164. KEY `report` (`object_id`, `author_nip`)
  1165. );
  1166. CREATE TABLE IF NOT EXISTS `sys_cmts_scores` (
  1167. `object_id` int(11) NOT NULL default '0',
  1168. `count_up` int(11) NOT NULL default '0',
  1169. `count_down` int(11) NOT NULL default '0',
  1170. UNIQUE KEY `object_id` (`object_id`)
  1171. );
  1172. CREATE TABLE IF NOT EXISTS `sys_cmts_scores_track` (
  1173. `id` int(11) NOT NULL AUTO_INCREMENT,
  1174. `object_id` int(11) NOT NULL default '0',
  1175. `author_id` int(11) NOT NULL default '0',
  1176. `author_nip` int(11) unsigned NOT NULL default '0',
  1177. `type` varchar(8) NOT NULL default '',
  1178. `date` int(11) NOT NULL default '0',
  1179. PRIMARY KEY (`id`),
  1180. KEY `vote` (`object_id`, `author_nip`)
  1181. );
  1182. -- --------------------------------------------------------
  1183. CREATE TABLE `sys_injections` (
  1184. `id` int(11) unsigned NOT NULL auto_increment,
  1185. `name` varchar(128) NOT NULL default '',
  1186. `page_index` int(11) NOT NULL default '0',
  1187. `key` varchar(128) NOT NULL default '',
  1188. `type` enum('text', 'service') NOT NULL default 'text',
  1189. `data` text NOT NULL default '',
  1190. `replace` TINYINT NOT NULL DEFAULT '0',
  1191. `active` TINYINT NOT NULL DEFAULT '1',
  1192. PRIMARY KEY (`id`)
  1193. );
  1194. INSERT INTO `sys_injections`(`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
  1195. ('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),
  1196. ('sys_head', 0, 'injection_head', 'text', '', 0, 1),
  1197. ('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),
  1198. ('sys_body', 0, 'injection_footer', 'text', '', 0, 1);
  1199. -- --------------------------------------------------------
  1200. CREATE TABLE `sys_injections_admin` (
  1201. `id` int(11) unsigned NOT NULL auto_increment,
  1202. `name` varchar(128) NOT NULL default '',
  1203. `page_index` int(11) NOT NULL default '0',
  1204. `key` varchar(128) NOT NULL default '',
  1205. `type` enum('text','service') NOT NULL default 'text',
  1206. `data` text NOT NULL,
  1207. `replace` tinyint(4) NOT NULL default '0',
  1208. `active` tinyint(4) NOT NULL default '1',
  1209. PRIMARY KEY (`id`)
  1210. );
  1211. -- --------------------------------------------------------
  1212. CREATE TABLE `sys_permalinks` (
  1213. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1214. `standard` varchar(128) NOT NULL DEFAULT '',
  1215. `permalink` varchar(128) NOT NULL DEFAULT '',
  1216. `check` varchar(64) NOT NULL DEFAULT '',
  1217. `compare_by_prefix` tinyint(4) NOT NULL DEFAULT '0',
  1218. PRIMARY KEY (`id`),
  1219. UNIQUE KEY `check` (`standard`(80),`permalink`(80),`check`(30))
  1220. );
  1221. INSERT INTO `sys_permalinks` (`standard`, `permalink`, `check`, `compare_by_prefix`) VALUES
  1222. ('page.php?i=', 'page/', 'permalinks_pages', 1),
  1223. ('modules/?r=', 'm/', 'permalinks_modules', 1),
  1224. ('storage.php?o=', 's/', 'permalinks_storage', 1);
  1225. -- --------------------------------------------------------
  1226. CREATE TABLE `sys_audit` (
  1227. `id` int(11) unsigned NOT NULL auto_increment,
  1228. `added` int(11) NOT NULL,
  1229. `profile_id` int(10) NOT NULL,
  1230. `profile_title` varchar(255) NOT NULL,
  1231. `content_id` int(10) NOT NULL,
  1232. `content_title` varchar(255) NOT NULL,
  1233. `content_module` varchar(32) NOT NULL default '',
  1234. `content_info_object` varchar(32) NOT NULL default '',
  1235. `context_profile_id` int(10) NOT NULL,
  1236. `context_profile_title` varchar(255) NOT NULL,
  1237. `action_lang_key` varchar(255) NOT NULL,
  1238. `action_lang_key_params` text NOT NULL,
  1239. `extras` text NOT NULL,
  1240. PRIMARY KEY (`id`)
  1241. );
  1242. CREATE TABLE `sys_alerts_handlers` (
  1243. `id` int(11) unsigned NOT NULL auto_increment,
  1244. `name` varchar(128) NOT NULL default '',
  1245. `class` varchar(128) NOT NULL default '',
  1246. `file` varchar(255) NOT NULL default '',
  1247. `service_call` text NOT NULL default '',
  1248. PRIMARY KEY (`id`),
  1249. UNIQUE KEY `name` (`name`)
  1250. );
  1251. CREATE TABLE `sys_alerts` (
  1252. `id` int(11) unsigned NOT NULL auto_increment,
  1253. `unit` varchar(128) NOT NULL default '',
  1254. `action` varchar(32) NOT NULL default 'none',
  1255. `handler_id` int(11) NOT NULL default '0',
  1256. PRIMARY KEY (`id`),
  1257. UNIQUE KEY `alert_handler` (`unit`, `action`, `handler_id`)
  1258. );
  1259. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1260. ('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";}');
  1261. SET @iIdHandler = LAST_INSERT_ID();
  1262. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1263. ('system', 'save_setting', @iIdHandler);
  1264. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1265. ('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";}');
  1266. SET @iIdHandler = LAST_INSERT_ID();
  1267. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1268. ('sys_images_custom', 'file_deleted', @iIdHandler);
  1269. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1270. ('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";}');
  1271. SET @iHandler = LAST_INSERT_ID();
  1272. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1273. ('system', 'save_setting', @iHandler);
  1274. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1275. ('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";}');
  1276. SET @iHandler = LAST_INSERT_ID();
  1277. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1278. ('system', 'installed', @iHandler);
  1279. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1280. ('sys_connections', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:26:"alert_response_connections";s:5:"class";s:23:"TemplServiceConnections";}');
  1281. SET @iHandler = LAST_INSERT_ID();
  1282. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1283. ('sys_profiles_friends', 'connection_added', @iHandler),
  1284. ('sys_profiles_friends', 'connection_removed', @iHandler);
  1285. -- --------------------------------------------------------
  1286. CREATE TABLE `sys_objects_report` (
  1287. `id` int(11) NOT NULL auto_increment,
  1288. `name` varchar(64) NOT NULL,
  1289. `table_main` varchar(32) NOT NULL,
  1290. `table_track` varchar(32) NOT NULL,
  1291. `is_on` tinyint(4) NOT NULL default '1',
  1292. `base_url` varchar(256) NOT NULL default '',
  1293. `trigger_table` varchar(32) NOT NULL,
  1294. `trigger_field_id` varchar(32) NOT NULL,
  1295. `trigger_field_author` varchar(32) NOT NULL,
  1296. `trigger_field_count` varchar(32) NOT NULL,
  1297. `class_name` varchar(32) NOT NULL default '',
  1298. `class_file` varchar(256) NOT NULL default '',
  1299. PRIMARY KEY (`id`)
  1300. );
  1301. INSERT INTO `sys_objects_report` (`name`, `table_main`, `table_track`, `is_on`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
  1302. ('sys_cmts', 'sys_cmts_reports', 'sys_cmts_reports_track', '1', '', 'sys_cmts_ids', 'id', 'author_id', 'reports', '', '');
  1303. -- --------------------------------------------------------
  1304. CREATE TABLE `sys_objects_view` (
  1305. `id` int(11) NOT NULL auto_increment,
  1306. `name` varchar(64) NOT NULL,
  1307. `module` varchar(32) NOT NULL default '',
  1308. `table_track` varchar(32) NOT NULL,
  1309. `period` int(11) NOT NULL default '86400',
  1310. `is_on` tinyint(4) NOT NULL default '1',
  1311. `trigger_table` varchar(32) NOT NULL,
  1312. `trigger_field_id` varchar(32) NOT NULL,
  1313. `trigger_field_author` varchar(32) NOT NULL,
  1314. `trigger_field_count` varchar(32) NOT NULL,
  1315. `class_name` varchar(32) NOT NULL default '',
  1316. `class_file` varchar(256) NOT NULL default '',
  1317. PRIMARY KEY (`id`)
  1318. );
  1319. -- --------------------------------------------------------
  1320. CREATE TABLE `sys_objects_favorite` (
  1321. `id` int(11) NOT NULL auto_increment,
  1322. `name` varchar(64) NOT NULL,
  1323. `table_track` varchar(32) NOT NULL,
  1324. `is_on` tinyint(4) NOT NULL default '1',
  1325. `is_undo` tinyint(4) NOT NULL default '1',
  1326. `is_public` tinyint(4) NOT NULL default '1',
  1327. `base_url` varchar(256) NOT NULL default '',
  1328. `trigger_table` varchar(32) NOT NULL,
  1329. `trigger_field_id` varchar(32) NOT NULL,
  1330. `trigger_field_author` varchar(32) NOT NULL,
  1331. `trigger_field_count` varchar(32) NOT NULL,
  1332. `class_name` varchar(32) NOT NULL default '',
  1333. `class_file` varchar(256) NOT NULL default '',
  1334. PRIMARY KEY (`id`)
  1335. );
  1336. -- --------------------------------------------------------
  1337. CREATE TABLE `sys_objects_feature` (
  1338. `id` int(11) NOT NULL auto_increment,
  1339. `name` varchar(64) NOT NULL,
  1340. `is_on` tinyint(4) NOT NULL default '1',
  1341. `is_undo` tinyint(4) NOT NULL default '1',
  1342. `base_url` varchar(256) NOT NULL default '',
  1343. `trigger_table` varchar(32) NOT NULL,
  1344. `trigger_field_id` varchar(32) NOT NULL,
  1345. `trigger_field_author` varchar(32) NOT NULL,
  1346. `trigger_field_flag` varchar(32) NOT NULL,
  1347. `class_name` varchar(32) NOT NULL default '',
  1348. `class_file` varchar(256) NOT NULL default '',
  1349. PRIMARY KEY (`id`)
  1350. );
  1351. -- --------------------------------------------------------
  1352. CREATE TABLE `sys_objects_chart` (
  1353. `id` int(11) NOT NULL AUTO_INCREMENT,
  1354. `object` varchar(32) NOT NULL,
  1355. `title` varchar(255) NOT NULL,
  1356. `table` varchar(255) NOT NULL,
  1357. `field_date_ts` varchar(255) NOT NULL,
  1358. `field_date_dt` varchar(255) NOT NULL,
  1359. `field_status` varchar(255) NOT NULL,
  1360. `column_date` int(11) NOT NULL DEFAULT '0',
  1361. `column_count` int(11) NOT NULL DEFAULT '1',
  1362. `type` varchar(255) NOT NULL,
  1363. `options` text NOT NULL,
  1364. `query` text NOT NULL,
  1365. `active` tinyint(4) NOT NULL DEFAULT '1',
  1366. `order` int(11) NOT NULL,
  1367. `class_name` varchar(32) NOT NULL default '',
  1368. `class_file` varchar(256) NOT NULL default '',
  1369. PRIMARY KEY (`id`),
  1370. UNIQUE KEY `object` (`object`)
  1371. );
  1372. INSERT INTO `sys_objects_chart` (`object`, `title`, `table`, `field_date_ts`, `field_date_dt`, `field_status`, `query`, `active`, `order`, `class_name`, `class_file`) VALUES
  1373. ('sys_accounts_growth', '_sys_chart_accounts_growth', 'sys_accounts', 'added', '', '', '', 1, 1, 'BxDolChartGrowth', ''),
  1374. ('sys_accounts_growth_speed', '_sys_chart_accounts_growth_speed', 'sys_accounts', 'added', '', '', '', 1, 1, 'BxDolChartGrowthSpeed', '');
  1375. -- --------------------------------------------------------
  1376. CREATE TABLE `sys_objects_content_info` (
  1377. `id` int(11) NOT NULL auto_increment,
  1378. `name` varchar(64) NOT NULL,
  1379. `title` varchar(128) NOT NULL,
  1380. `alert_unit` varchar(32) NOT NULL,
  1381. `alert_action_add` varchar(32) NOT NULL,
  1382. `alert_action_update` varchar(32) NOT NULL,
  1383. `alert_action_delete` varchar(32) NOT NULL,
  1384. `class_name` varchar(32) NOT NULL default '',
  1385. `class_file` varchar(256) NOT NULL default '',
  1386. PRIMARY KEY (`id`),
  1387. UNIQUE KEY `name` (`name`),
  1388. UNIQUE KEY `alert_add` (`alert_unit` ,`alert_action_add`),
  1389. UNIQUE KEY `alert_update` (`alert_unit` ,`alert_action_update`),
  1390. UNIQUE KEY `alert_delete` (`alert_unit` ,`alert_action_delete`)
  1391. );
  1392. -- --------------------------------------------------------
  1393. CREATE TABLE `sys_content_info_grids` (
  1394. `id` int(11) NOT NULL auto_increment,
  1395. `object` varchar(64) NOT NULL,
  1396. `grid_object` varchar(64) NOT NULL,
  1397. `grid_field_id` varchar(64) NOT NULL,
  1398. `condition` text NOT NULL default '',
  1399. `selection` varchar(256) NOT NULL default '',
  1400. PRIMARY KEY (`id`),
  1401. UNIQUE KEY `grid_object` (`grid_object`)
  1402. );
  1403. -- --------------------------------------------------------
  1404. CREATE TABLE `sys_objects_privacy` (
  1405. `id` int(11) NOT NULL auto_increment,
  1406. `object` varchar(64) NOT NULL default '',
  1407. `module` varchar(64) NOT NULL default '',
  1408. `action` varchar(255) NOT NULL default '',
  1409. `title` varchar(255) NOT NULL default '',
  1410. `default_group` varchar(255) NOT NULL default '1',
  1411. `spaces` varchar(255) NOT NULL DEFAULT 'all',
  1412. `table` varchar(255) NOT NULL default '',
  1413. `table_field_id` varchar(255) NOT NULL default '',
  1414. `table_field_author` varchar(255) NOT NULL default '',
  1415. `override_class_name` varchar(255) NOT NULL default '',
  1416. `override_class_file` varchar(255) NOT NULL default '',
  1417. PRIMARY KEY (`id`),
  1418. UNIQUE KEY `object` (`object`),
  1419. UNIQUE KEY `action` (`module`(64), `action`(127))
  1420. );
  1421. CREATE TABLE `sys_privacy_defaults` (
  1422. `owner_id` int(11) NOT NULL default '0',
  1423. `action_id` int(11) NOT NULL default '0',
  1424. `group_id` int(11) NOT NULL default '0',
  1425. PRIMARY KEY (`owner_id`, `action_id`)
  1426. );
  1427. CREATE TABLE `sys_privacy_groups` (
  1428. `id` int(11) unsigned NOT NULL auto_increment,
  1429. `title` varchar(255) NOT NULL default '',
  1430. `check` text NOT NULL default '',
  1431. `active` tinyint(4) NOT NULL default '1',
  1432. `visible` tinyint(4) NOT NULL default '1',
  1433. PRIMARY KEY (`id`)
  1434. );
  1435. INSERT INTO `sys_privacy_groups`(`id`, `title`, `check`, `active`, `visible`) VALUES
  1436. ('1', '', '', 1, 0),
  1437. ('2', '_sys_ps_group_title_me_only', '@me_only', 1, 1),
  1438. ('3', '_sys_ps_group_title_public', '@public', 1, 1),
  1439. ('4', '_sys_ps_group_title_members', '@members', 0, 0),
  1440. ('5', '_sys_ps_group_title_friends', '@friends', 1, 1),
  1441. ('6', '_sys_ps_group_title_friends_selected', '@friends_selected_by_object', 1, 1),
  1442. ('7', '_sys_ps_group_title_relations', '@relations', 1, 1),
  1443. ('8', '_sys_ps_group_title_relations_selected', '@relations_selected_by_object', 1, 1),
  1444. ('9', '_sys_ps_group_title_custom', '@custom_by_object', 0, 0);
  1445. CREATE TABLE `sys_privacy_groups_custom` (
  1446. `id` int(11) unsigned NOT NULL auto_increment,
  1447. `profile_id` int(11) NOT NULL default '0',
  1448. `content_id` int(11) NOT NULL default '0',
  1449. `object` varchar(64) NOT NULL default '',
  1450. `group_id` int(11) NOT NULL default '0',
  1451. PRIMARY KEY (`id`),
  1452. UNIQUE KEY `content_privacy` (`profile_id`, `content_id`, `object`)
  1453. );
  1454. CREATE TABLE `sys_privacy_groups_custom_members` (
  1455. `group_id` int(11) NOT NULL default '0',
  1456. `member_id` int(11) NOT NULL default '0',
  1457. PRIMARY KEY (`group_id`, `member_id`)
  1458. );
  1459. -- --------------------------------------------------------
  1460. CREATE TABLE `sys_cron_jobs` (
  1461. `id` int(11) unsigned NOT NULL auto_increment,
  1462. `name` varchar(128) NOT NULL default '',
  1463. `time` varchar(128) NOT NULL default '*',
  1464. `class` varchar(128) NOT NULL default '',
  1465. `file` varchar(255) NOT NULL default '',
  1466. `service_call` text NOT NULL default '',
  1467. PRIMARY KEY (`id`)
  1468. );
  1469. INSERT INTO `sys_cron_jobs` (`name`, `time`, `class`, `file`, `service_call`) VALUES
  1470. ('pruning', '0 0 * * *', 'BxDolCronPruning', 'inc/classes/BxDolCronPruning.php', ''),
  1471. ('sys_acl', '0 0 * * *', 'BxDolCronAcl', 'inc/classes/BxDolCronAcl.php', ''),
  1472. ('sys_account', '0 0 * * *', 'BxDolCronAccount', 'inc/classes/BxDolCronAccount.php', ''),
  1473. ('sys_upgrade', '0 3 * * *', 'BxDolCronUpgradeCheck', 'inc/classes/BxDolCronUpgradeCheck.php', ''),
  1474. ('sys_upgrade_modules', '30 2 * * *', 'BxDolCronUpgradeModulesCheck', 'inc/classes/BxDolCronUpgradeModulesCheck.php', ''),
  1475. ('sys_storage', '* * * * *', 'BxDolCronStorage', 'inc/classes/BxDolCronStorage.php', ''),
  1476. ('sys_transcoder', '* * * * *', 'BxDolCronTranscoder', 'inc/classes/BxDolCronTranscoder.php', ''),
  1477. ('sys_queue_email', '* * * * *', 'BxDolCronQueueEmail', 'inc/classes/BxDolCronQueueEmail.php', ''),
  1478. ('sys_queue_push', '* * * * *', 'BxDolCronQueuePush', 'inc/classes/BxDolCronQueuePush.php', ''),
  1479. ('sys_audit_clean', '* * * * *', 'BxDolCronAudit', 'inc/classes/BxDolCronAudit.php', '');
  1480. -- --------------------------------------------------------
  1481. CREATE TABLE IF NOT EXISTS `sys_objects_storage` (
  1482. `id` int(11) NOT NULL AUTO_INCREMENT,
  1483. `object` varchar(64) NOT NULL,
  1484. `engine` varchar(32) NOT NULL,
  1485. `params` text NOT NULL,
  1486. `token_life` int(11) NOT NULL,
  1487. `cache_control` int(11) NOT NULL,
  1488. `levels` tinyint(4) NOT NULL,
  1489. `table_files` varchar(64) NOT NULL,
  1490. `ext_mode` enum('allow-deny','deny-allow') NOT NULL,
  1491. `ext_allow` text NOT NULL,
  1492. `ext_deny` text NOT NULL,
  1493. `quota_size` int(11) NOT NULL,
  1494. `current_size` int(11) NOT NULL,
  1495. `quota_number` int(11) NOT NULL,
  1496. `current_number` int(11) NOT NULL,
  1497. `max_file_size` int(11) NOT NULL,
  1498. `ts` int(11) NOT NULL,
  1499. PRIMARY KEY (`id`),
  1500. UNIQUE KEY `object` (`object`)
  1501. );
  1502. 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
  1503. ('sys_images', 'Local', '', 360, 2592000, 0, 'sys_images', 'allow-deny', 'jpg,jpeg,jpe,gif,png,svg', '', 0, 0, 0, 0, 0, 0),
  1504. ('sys_images_custom', 'Local', '', 360, 2592000, 0, 'sys_images_custom', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1505. ('sys_images_resized', 'Local', '', 360, 2592000, 0, 'sys_images_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png,svg', '', 0, 0, 0, 0, 0, 0),
  1506. ('sys_cmts_images', 'Local', '', 360, 2592000, 3, 'sys_cmts_images', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1507. ('sys_cmts_images_preview', 'Local', '', 360, 2592000, 3, 'sys_cmts_images_preview', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1508. ('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),
  1509. ('sys_files', 'Local', '', 360, 2592000, 3, 'sys_files', 'deny-allow', '', 'action,apk,app,bat,bin,cmd,com,command,cpl,csh,exe,gadget,inf,ins,inx,ipa,isu,job,jse,ksh,lnk,msc,msi,msp,mst,osx,out,paf,pif,prg,ps1,reg,rgs,run,sct,shb,shs,u3p,vb,vbe,vbs,vbscript,workflow,ws,wsf', 0, 0, 0, 0, 0, 0);
  1510. CREATE TABLE IF NOT EXISTS `sys_storage_user_quotas` (
  1511. `profile_id` int(11) NOT NULL,
  1512. `current_size` int(11) NOT NULL,
  1513. `current_number` int(11) NOT NULL,
  1514. `ts` int(11) NOT NULL,
  1515. PRIMARY KEY (`profile_id`)
  1516. );
  1517. CREATE TABLE IF NOT EXISTS `sys_storage_tokens` (
  1518. `id` int(11) NOT NULL,
  1519. `object` varchar(64) NOT NULL,
  1520. `hash` varchar(32) NOT NULL,
  1521. `created` int(10) unsigned NOT NULL,
  1522. UNIQUE KEY `id` (`id`,`object`,`hash`),
  1523. KEY `created` (`created`)
  1524. );
  1525. CREATE TABLE IF NOT EXISTS `sys_storage_ghosts` (
  1526. `id` int(11) NOT NULL,
  1527. `profile_id` int(10) unsigned NOT NULL,
  1528. `object` varchar(64) NOT NULL,
  1529. `content_id` int(11) NOT NULL,
  1530. `created` int(10) unsigned NOT NULL,
  1531. UNIQUE KEY `id` (`id`,`object`),
  1532. KEY `created` (`created`),
  1533. KEY `profile_object_content` (`profile_id`,`object`,`content_id`)
  1534. );
  1535. CREATE TABLE IF NOT EXISTS `sys_storage_deletions` (
  1536. `id` int(11) NOT NULL AUTO_INCREMENT,
  1537. `object` varchar(64) NOT NULL,
  1538. `file_id` int(11) NOT NULL,
  1539. `requested` int(10) unsigned NOT NULL,
  1540. PRIMARY KEY (`id`),
  1541. UNIQUE KEY `object_file_id` (`object`,`file_id`),
  1542. KEY `requested` (`requested`)
  1543. );
  1544. CREATE TABLE IF NOT EXISTS `sys_storage_mime_types` (
  1545. `ext` varchar(32) NOT NULL,
  1546. `mime_type` varchar(128) NOT NULL,
  1547. `icon` varchar(255) NOT NULL,
  1548. `icon_font` varchar(255) NOT NULL,
  1549. PRIMARY KEY (`ext`)
  1550. );
  1551. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1552. ('ez', 'application/andrew-inset', '', ''),
  1553. ('aw', 'application/applixware', '', ''),
  1554. ('atom', 'application/atom+xml', '', ''),
  1555. ('atomcat', 'application/atomcat+xml', '', ''),
  1556. ('atomsvc', 'application/atomsvc+xml', '', ''),
  1557. ('ccxml', 'application/ccxml+xml', '', ''),
  1558. ('cdmia', 'application/cdmi-capability', '', ''),
  1559. ('cdmic', 'application/cdmi-container', '', ''),
  1560. ('cdmid', 'application/cdmi-domain', '', ''),
  1561. ('cdmio', 'application/cdmi-object', '', ''),
  1562. ('cdmiq', 'application/cdmi-queue', '', ''),
  1563. ('cu', 'application/cu-seeme', '', ''),
  1564. ('davmount', 'application/davmount+xml', '', ''),
  1565. ('dbk', 'application/docbook+xml', '', ''),
  1566. ('dssc', 'application/dssc+der', '', ''),
  1567. ('xdssc', 'application/dssc+xml', '', ''),
  1568. ('ecma', 'application/ecmascript', '', ''),
  1569. ('emma', 'application/emma+xml', '', ''),
  1570. ('epub', 'application/epub+zip', '', ''),
  1571. ('exi', 'application/exi', '', ''),
  1572. ('pfr', 'application/font-tdpfr', '', ''),
  1573. ('gml', 'application/gml+xml', '', ''),
  1574. ('gpx', 'application/gpx+xml', '', ''),
  1575. ('gxf', 'application/gxf', '', ''),
  1576. ('stk', 'application/hyperstudio', '', ''),
  1577. ('ink', 'application/inkml+xml', '', ''),
  1578. ('inkml', 'application/inkml+xml', '', ''),
  1579. ('ipfix', 'application/ipfix', '', ''),
  1580. ('jar', 'application/java-archive', '', ''),
  1581. ('ser', 'application/java-serialized-object', '', ''),
  1582. ('class', 'application/java-vm', '', ''),
  1583. ('js', 'application/javascript', '', 'far file-code'),
  1584. ('json', 'application/json', '', 'far file-code'),
  1585. ('jsonml', 'application/jsonml+json', '', ''),
  1586. ('lostxml', 'application/lost+xml', '', ''),
  1587. ('hqx', 'application/mac-binhex40', '', ''),
  1588. ('cpt', 'application/mac-compactpro', '', ''),
  1589. ('mads', 'application/mads+xml', '', ''),
  1590. ('mrc', 'application/marc', '', ''),
  1591. ('mrcx', 'application/marcxml+xml', '', ''),
  1592. ('ma', 'application/mathematica', '', ''),
  1593. ('nb', 'application/mathematica', '', ''),
  1594. ('mb', 'application/mathematica', '', ''),
  1595. ('mathml', 'application/mathml+xml', '', ''),
  1596. ('mbox', 'application/mbox', '', 'far file-code'),
  1597. ('mscml', 'application/mediaservercontrol+xml', '', ''),
  1598. ('metalink', 'application/metalink+xml', '', ''),
  1599. ('meta4', 'application/metalink4+xml', '', ''),
  1600. ('mets', 'application/mets+xml', '', ''),
  1601. ('mods', 'application/mods+xml', '', ''),
  1602. ('m21', 'application/mp21', '', ''),
  1603. ('mp21', 'application/mp21', '', ''),
  1604. ('mp4s', 'application/mp4', '', ''),
  1605. ('doc', 'application/msword', 'mime-type-document.png', 'far file-word'),
  1606. ('dot', 'application/msword', '', ''),
  1607. ('mxf', 'application/mxf', '', ''),
  1608. ('bin', 'application/octet-stream', '', ''),
  1609. ('dms', 'application/octet-stream', '', ''),
  1610. ('lrf', 'application/octet-stream', '', ''),
  1611. ('mar', 'application/octet-stream', '', ''),
  1612. ('so', 'application/octet-stream', '', ''),
  1613. ('dist', 'application/octet-stream', '', ''),
  1614. ('distz', 'application/octet-stream', '', ''),
  1615. ('pkg', 'application/octet-stream', '', ''),
  1616. ('bpk', 'application/octet-stream', '', ''),
  1617. ('dump', 'application/octet-stream', '', ''),
  1618. ('elc', 'application/octet-stream', '', ''),
  1619. ('deploy', 'application/octet-stream', '', ''),
  1620. ('mobipocket-ebook', 'application/octet-stream', '', ''),
  1621. ('oda', 'application/oda', '', ''),
  1622. ('opf', 'application/oebps-package+xml', '', ''),
  1623. ('ogx', 'application/ogg', '', ''),
  1624. ('omdoc', 'application/omdoc+xml', '', ''),
  1625. ('onetoc', 'application/onenote', '', ''),
  1626. ('onetoc2', 'application/onenote', '', ''),
  1627. ('onetmp', 'application/onenote', '', ''),
  1628. ('onepkg', 'application/onenote', '', ''),
  1629. ('oxps', 'application/oxps', '', ''),
  1630. ('xer', 'application/patch-ops-error+xml', '', ''),
  1631. ('pdf', 'application/pdf', 'mime-type-document.png', 'far file-pdf'),
  1632. ('pgp', 'application/pgp-encrypted', '', 'far file-code'),
  1633. ('asc', 'application/pgp-signature', '', 'far file-code'),
  1634. ('sig', 'application/pgp-signature', '', 'far file-code'),
  1635. ('prf', 'application/pics-rules', '', ''),
  1636. ('p10', 'application/pkcs10', 'mime-type-vector.png', ''),
  1637. ('p7m', 'application/pkcs7-mime', '', ''),
  1638. ('p7c', 'application/pkcs7-mime', '', ''),
  1639. ('p7s', 'application/pkcs7-signature', '', ''),
  1640. ('p8', 'application/pkcs8', '', ''),
  1641. ('ac', 'application/pkix-attr-cert', '', ''),
  1642. ('cer', 'application/pkix-cert', '', ''),
  1643. ('crl', 'application/pkix-crl', '', ''),
  1644. ('pkipath', 'application/pkix-pkipath', '', ''),
  1645. ('pki', 'application/pkixcmp', '', ''),
  1646. ('pls', 'application/pls+xml', '', ''),
  1647. ('ai', 'application/postscript', 'mime-type-vector.png', ''),
  1648. ('eps', 'application/postscript', '', ''),
  1649. ('ps', 'application/postscript', 'mime-type-vector.png', ''),
  1650. ('cww', 'application/prs.cww', '', ''),
  1651. ('pskcxml', 'application/pskc+xml', '', ''),
  1652. ('rdf', 'application/rdf+xml', '', 'far file-code'),
  1653. ('rif', 'application/reginfo+xml', '', ''),
  1654. ('rnc', 'application/relax-ng-compact-syntax', '', ''),
  1655. ('rl', 'application/resource-lists+xml', '', ''),
  1656. ('rld', 'application/resource-lists-diff+xml', '', ''),
  1657. ('rs', 'application/rls-services+xml', '', ''),
  1658. ('gbr', 'application/rpki-ghostbusters', '', ''),
  1659. ('mft', 'application/rpki-manifest', '', ''),
  1660. ('roa', 'application/rpki-roa', '', ''),
  1661. ('rsd', 'application/rsd+xml', '', ''),
  1662. ('rss', 'application/rss+xml', '', 'far file-code'),
  1663. ('rtf', 'application/rtf', 'mime-type-document.png', ''),
  1664. ('sbml', 'application/sbml+xml', '', ''),
  1665. ('scq', 'application/scvp-cv-request', '', ''),
  1666. ('scs', 'application/scvp-cv-response', '', ''),
  1667. ('spq', 'application/scvp-vp-request', '', ''),
  1668. ('spp', 'application/scvp-vp-response', '', ''),
  1669. ('sdp', 'application/sdp', 'mime-type-presentation.png', 'far file-powerpoint'),
  1670. ('setpay', 'application/set-payment-initiation', '', ''),
  1671. ('setreg', 'application/set-registration-initiation', '', ''),
  1672. ('shf', 'application/shf+xml', '', ''),
  1673. ('smi', 'application/smil+xml', '', ''),
  1674. ('smil', 'application/smil+xml', '', ''),
  1675. ('rq', 'application/sparql-query', '', 'far file-code'),
  1676. ('srx', 'application/sparql-results+xml', '', ''),
  1677. ('gram', 'application/srgs', '', ''),
  1678. ('grxml', 'application/srgs+xml', '', ''),
  1679. ('sru', 'application/sru+xml', '', ''),
  1680. ('ssdl', 'application/ssdl+xml', '', ''),
  1681. ('ssml', 'application/ssml+xml', '', ''),
  1682. ('tei', 'application/tei+xml', '', ''),
  1683. ('teicorpus', 'application/tei+xml', '', ''),
  1684. ('tfi', 'application/thraud+xml', '', ''),
  1685. ('tsd', 'application/timestamped-data', '', ''),
  1686. ('plb', 'application/vnd.3gpp.pic-bw-large', '', ''),
  1687. ('psb', 'application/vnd.3gpp.pic-bw-small', '', ''),
  1688. ('pvb', 'application/vnd.3gpp.pic-bw-var', '', ''),
  1689. ('tcap', 'application/vnd.3gpp2.tcap', '', ''),
  1690. ('pwn', 'application/vnd.3m.post-it-notes', '', ''),
  1691. ('aso', 'application/vnd.accpac.simply.aso', '', ''),
  1692. ('imp', 'application/vnd.accpac.simply.imp', '', ''),
  1693. ('acu', 'application/vnd.acucobol', '', ''),
  1694. ('atc', 'application/vnd.acucorp', '', ''),
  1695. ('acutc', 'application/vnd.acucorp', '', ''),
  1696. ('air', 'application/vnd.adobe.air-application-installer-package+zip', '', ''),
  1697. ('fcdt', 'application/vnd.adobe.formscentral.fcdt', '', ''),
  1698. ('fxp', 'application/vnd.adobe.fxp', '', ''),
  1699. ('fxpl', 'application/vnd.adobe.fxp', '', ''),
  1700. ('xdp', 'application/vnd.adobe.xdp+xml', '', ''),
  1701. ('xfdf', 'application/vnd.adobe.xfdf', '', ''),
  1702. ('ahead', 'application/vnd.ahead.space', '', ''),
  1703. ('azf', 'application/vnd.airzip.filesecure.azf', '', ''),
  1704. ('azs', 'application/vnd.airzip.filesecure.azs', '', ''),
  1705. ('azw', 'application/vnd.amazon.ebook', '', ''),
  1706. ('acc', 'application/vnd.americandynamics.acc', '', ''),
  1707. ('ami', 'application/vnd.amiga.ami', '', ''),
  1708. ('apk', 'application/vnd.android.package-archive', '', ''),
  1709. ('cii', 'application/vnd.anser-web-certificate-issue-initiation', '', ''),
  1710. ('fti', 'application/vnd.anser-web-funds-transfer-initiation', '', ''),
  1711. ('atx', 'application/vnd.antix.game-component', '', ''),
  1712. ('mpkg', 'application/vnd.apple.installer+xml', '', ''),
  1713. ('m3u8', 'application/vnd.apple.mpegurl', '', ''),
  1714. ('swi', 'application/vnd.aristanetworks.swi', '', ''),
  1715. ('iota', 'application/vnd.astraea-software.iota', '', ''),
  1716. ('aep', 'application/vnd.audiograph', '', ''),
  1717. ('mpm', 'application/vnd.blueice.multipass', '', ''),
  1718. ('bmi', 'application/vnd.bmi', '', ''),
  1719. ('rep', 'application/vnd.businessobjects', '', ''),
  1720. ('cdxml', 'application/vnd.chemdraw+xml', '', ''),
  1721. ('mmd', 'application/vnd.chipnuts.karaoke-mmd', '', ''),
  1722. ('cdy', 'application/vnd.cinderella', '', ''),
  1723. ('cla', 'application/vnd.claymore', '', ''),
  1724. ('rp9', 'application/vnd.cloanto.rp9', '', ''),
  1725. ('c4g', 'application/vnd.clonk.c4group', '', ''),
  1726. ('c4d', 'application/vnd.clonk.c4group', '', ''),
  1727. ('c4f', 'application/vnd.clonk.c4group', '', ''),
  1728. ('c4p', 'application/vnd.clonk.c4group', '', ''),
  1729. ('c4u', 'application/vnd.clonk.c4group', '', ''),
  1730. ('c11amc', 'application/vnd.cluetrust.cartomobile-config', '', ''),
  1731. ('c11amz', 'application/vnd.cluetrust.cartomobile-config-pkg', '', ''),
  1732. ('csp', 'application/vnd.commonspace', '', ''),
  1733. ('cdbcmsg', 'application/vnd.contact.cmsg', '', ''),
  1734. ('cmc', 'application/vnd.cosmocaller', '', ''),
  1735. ('clkx', 'application/vnd.crick.clicker', '', ''),
  1736. ('clkk', 'application/vnd.crick.clicker.keyboard', '', ''),
  1737. ('clkp', 'application/vnd.crick.clicker.palette', '', ''),
  1738. ('clkt', 'application/vnd.crick.clicker.template', '', ''),
  1739. ('clkw', 'application/vnd.crick.clicker.wordbank', '', ''),
  1740. ('wbs', 'application/vnd.criticaltools.wbs+xml', '', ''),
  1741. ('pml', 'application/vnd.ctc-posml', '', ''),
  1742. ('ppd', 'application/vnd.cups-ppd', '', ''),
  1743. ('car', 'application/vnd.curl.car', '', ''),
  1744. ('pcurl', 'application/vnd.curl.pcurl', '', ''),
  1745. ('dart', 'application/vnd.dart', '', ''),
  1746. ('rdz', 'application/vnd.data-vision.rdz', '', ''),
  1747. ('uvf', 'application/vnd.dece.data', '', ''),
  1748. ('uvvf', 'application/vnd.dece.data', '', ''),
  1749. ('uvd', 'application/vnd.dece.data', '', ''),
  1750. ('uvvd', 'application/vnd.dece.data', '', ''),
  1751. ('uvt', 'application/vnd.dece.ttml+xml', '', ''),
  1752. ('uvvt', 'application/vnd.dece.ttml+xml', '', ''),
  1753. ('uvx', 'application/vnd.dece.unspecified', '', ''),
  1754. ('uvvx', 'application/vnd.dece.unspecified', '', ''),
  1755. ('uvz', 'application/vnd.dece.zip', '', ''),
  1756. ('uvvz', 'application/vnd.dece.zip', '', ''),
  1757. ('fe_launch', 'application/vnd.denovo.fcselayout-link', '', ''),
  1758. ('dna', 'application/vnd.dna', '', ''),
  1759. ('mlp', 'application/vnd.dolby.mlp', '', ''),
  1760. ('dpg', 'application/vnd.dpgraph', '', ''),
  1761. ('dfac', 'application/vnd.dreamfactory', '', ''),
  1762. ('kpxx', 'application/vnd.ds-keypoint', '', ''),
  1763. ('ait', 'application/vnd.dvb.ait', 'mime-type-vector.png', ''),
  1764. ('svc', 'application/vnd.dvb.service', '', '');
  1765. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1766. ('geo', 'application/vnd.dynageo', '', ''),
  1767. ('mag', 'application/vnd.ecowin.chart', '', ''),
  1768. ('nml', 'application/vnd.enliven', '', ''),
  1769. ('esf', 'application/vnd.epson.esf', '', ''),
  1770. ('msf', 'application/vnd.epson.msf', '', ''),
  1771. ('qam', 'application/vnd.epson.quickanime', '', ''),
  1772. ('slt', 'application/vnd.epson.salt', '', ''),
  1773. ('ssf', 'application/vnd.epson.ssf', '', ''),
  1774. ('es3', 'application/vnd.eszigno3+xml', '', ''),
  1775. ('et3', 'application/vnd.eszigno3+xml', '', ''),
  1776. ('ez2', 'application/vnd.ezpix-album', '', ''),
  1777. ('ez3', 'application/vnd.ezpix-package', '', ''),
  1778. ('fdf', 'application/vnd.fdf', '', ''),
  1779. ('mseed', 'application/vnd.fdsn.mseed', '', ''),
  1780. ('seed', 'application/vnd.fdsn.seed', '', ''),
  1781. ('dataless', 'application/vnd.fdsn.seed', '', ''),
  1782. ('gph', 'application/vnd.flographit', '', ''),
  1783. ('ftc', 'application/vnd.fluxtime.clip', '', ''),
  1784. ('fm', 'application/vnd.framemaker', '', ''),
  1785. ('frame', 'application/vnd.framemaker', '', ''),
  1786. ('maker', 'application/vnd.framemaker', '', ''),
  1787. ('book', 'application/vnd.framemaker', '', ''),
  1788. ('fnc', 'application/vnd.frogans.fnc', '', ''),
  1789. ('ltf', 'application/vnd.frogans.ltf', '', ''),
  1790. ('fsc', 'application/vnd.fsc.weblaunch', '', ''),
  1791. ('oas', 'application/vnd.fujitsu.oasys', '', ''),
  1792. ('oa2', 'application/vnd.fujitsu.oasys2', '', ''),
  1793. ('oa3', 'application/vnd.fujitsu.oasys3', '', ''),
  1794. ('fg5', 'application/vnd.fujitsu.oasysgp', '', ''),
  1795. ('bh2', 'application/vnd.fujitsu.oasysprs', '', ''),
  1796. ('ddd', 'application/vnd.fujixerox.ddd', '', ''),
  1797. ('xdw', 'application/vnd.fujixerox.docuworks', '', ''),
  1798. ('xbd', 'application/vnd.fujixerox.docuworks.binder', '', ''),
  1799. ('fzs', 'application/vnd.fuzzysheet', '', ''),
  1800. ('txd', 'application/vnd.genomatix.tuxedo', '', ''),
  1801. ('ggb', 'application/vnd.geogebra.file', '', ''),
  1802. ('ggt', 'application/vnd.geogebra.tool', '', ''),
  1803. ('gex', 'application/vnd.geometry-explorer', '', ''),
  1804. ('gre', 'application/vnd.geometry-explorer', '', ''),
  1805. ('gxt', 'application/vnd.geonext', '', ''),
  1806. ('g2w', 'application/vnd.geoplan', '', ''),
  1807. ('g3w', 'application/vnd.geospace', '', ''),
  1808. ('gmx', 'application/vnd.gmx', '', ''),
  1809. ('kml', 'application/vnd.google-earth.kml+xml', '', ''),
  1810. ('kmz', 'application/vnd.google-earth.kmz', '', ''),
  1811. ('gqf', 'application/vnd.grafeq', '', ''),
  1812. ('gqs', 'application/vnd.grafeq', '', ''),
  1813. ('gac', 'application/vnd.groove-account', '', ''),
  1814. ('ghf', 'application/vnd.groove-help', '', ''),
  1815. ('gim', 'application/vnd.groove-identity-message', '', ''),
  1816. ('grv', 'application/vnd.groove-injector', '', ''),
  1817. ('gtm', 'application/vnd.groove-tool-message', '', ''),
  1818. ('tpl', 'application/vnd.groove-tool-template', '', 'far file-code'),
  1819. ('vcg', 'application/vnd.groove-vcard', '', ''),
  1820. ('hal', 'application/vnd.hal+xml', '', ''),
  1821. ('zmm', 'application/vnd.handheld-entertainment+xml', '', ''),
  1822. ('hbci', 'application/vnd.hbci', '', ''),
  1823. ('les', 'application/vnd.hhe.lesson-player', '', ''),
  1824. ('hpgl', 'application/vnd.hp-hpgl', 'mime-type-vector.png', ''),
  1825. ('hpid', 'application/vnd.hp-hpid', '', ''),
  1826. ('hps', 'application/vnd.hp-hps', '', ''),
  1827. ('jlt', 'application/vnd.hp-jlyt', '', ''),
  1828. ('pcl', 'application/vnd.hp-pcl', '', ''),
  1829. ('pclxl', 'application/vnd.hp-pclxl', '', ''),
  1830. ('sfd-hdstx', 'application/vnd.hydrostatix.sof-data', '', ''),
  1831. ('mpy', 'application/vnd.ibm.minipay', '', ''),
  1832. ('afp', 'application/vnd.ibm.modcap', '', ''),
  1833. ('listafp', 'application/vnd.ibm.modcap', '', ''),
  1834. ('list3820', 'application/vnd.ibm.modcap', '', ''),
  1835. ('irm', 'application/vnd.ibm.rights-management', '', ''),
  1836. ('sc', 'application/vnd.ibm.secure-container', '', ''),
  1837. ('icc', 'application/vnd.iccprofile', '', ''),
  1838. ('icm', 'application/vnd.iccprofile', '', ''),
  1839. ('igl', 'application/vnd.igloader', '', ''),
  1840. ('ivp', 'application/vnd.immervision-ivp', '', ''),
  1841. ('ivu', 'application/vnd.immervision-ivu', '', ''),
  1842. ('igm', 'application/vnd.insors.igm', '', ''),
  1843. ('xpw', 'application/vnd.intercon.formnet', '', ''),
  1844. ('xpx', 'application/vnd.intercon.formnet', '', ''),
  1845. ('i2g', 'application/vnd.intergeo', '', ''),
  1846. ('qbo', 'application/vnd.intu.qbo', '', ''),
  1847. ('qfx', 'application/vnd.intu.qfx', '', ''),
  1848. ('rcprofile', 'application/vnd.ipunplugged.rcprofile', '', ''),
  1849. ('irp', 'application/vnd.irepository.package+xml', '', ''),
  1850. ('xpr', 'application/vnd.is-xpr', '', ''),
  1851. ('fcs', 'application/vnd.isac.fcs', '', ''),
  1852. ('jam', 'application/vnd.jam', '', ''),
  1853. ('rms', 'application/vnd.jcp.javame.midlet-rms', '', ''),
  1854. ('jisp', 'application/vnd.jisp', '', ''),
  1855. ('joda', 'application/vnd.joost.joda-archive', '', ''),
  1856. ('ktz', 'application/vnd.kahootz', '', ''),
  1857. ('ktr', 'application/vnd.kahootz', '', ''),
  1858. ('karbon', 'application/vnd.kde.karbon', '', ''),
  1859. ('chrt', 'application/vnd.kde.kchart', '', ''),
  1860. ('kfo', 'application/vnd.kde.kformula', '', ''),
  1861. ('flw', 'application/vnd.kde.kivio', '', ''),
  1862. ('kon', 'application/vnd.kde.kontour', '', ''),
  1863. ('kpr', 'application/vnd.kde.kpresenter', '', ''),
  1864. ('kpt', 'application/vnd.kde.kpresenter', '', ''),
  1865. ('ksp', 'application/vnd.kde.kspread', '', ''),
  1866. ('kwd', 'application/vnd.kde.kword', '', ''),
  1867. ('kwt', 'application/vnd.kde.kword', '', ''),
  1868. ('htke', 'application/vnd.kenameaapp', '', ''),
  1869. ('kia', 'application/vnd.kidspiration', '', ''),
  1870. ('kne', 'application/vnd.kinar', '', ''),
  1871. ('knp', 'application/vnd.kinar', '', ''),
  1872. ('skp', 'application/vnd.koan', '', ''),
  1873. ('skd', 'application/vnd.koan', '', ''),
  1874. ('skt', 'application/vnd.koan', '', ''),
  1875. ('skm', 'application/vnd.koan', '', ''),
  1876. ('sse', 'application/vnd.kodak-descriptor', '', ''),
  1877. ('lasxml', 'application/vnd.las.las+xml', '', ''),
  1878. ('lbd', 'application/vnd.llamagraphics.life-balance.desktop', '', ''),
  1879. ('lbe', 'application/vnd.llamagraphics.life-balance.exchange+xml', '', ''),
  1880. ('123', 'application/vnd.lotus-1-2-3', '', ''),
  1881. ('apr', 'application/vnd.lotus-approach', '', ''),
  1882. ('pre', 'application/vnd.lotus-freelance', '', ''),
  1883. ('nsf', 'application/vnd.lotus-notes', '', ''),
  1884. ('org', 'application/vnd.lotus-organizer', '', ''),
  1885. ('scm', 'application/vnd.lotus-screencam', '', ''),
  1886. ('lwp', 'application/vnd.lotus-wordpro', '', ''),
  1887. ('portpkg', 'application/vnd.macports.portpkg', '', ''),
  1888. ('mcd', 'application/vnd.mcd', '', ''),
  1889. ('mc1', 'application/vnd.medcalcdata', '', ''),
  1890. ('cdkey', 'application/vnd.mediastation.cdkey', '', ''),
  1891. ('mwf', 'application/vnd.mfer', '', ''),
  1892. ('mfm', 'application/vnd.mfmp', '', ''),
  1893. ('flo', 'application/vnd.micrografx.flo', '', ''),
  1894. ('igx', 'application/vnd.micrografx.igx', '', ''),
  1895. ('mif', 'application/vnd.mif', '', ''),
  1896. ('daf', 'application/vnd.mobius.daf', '', ''),
  1897. ('dis', 'application/vnd.mobius.dis', '', ''),
  1898. ('mbk', 'application/vnd.mobius.mbk', '', ''),
  1899. ('mqy', 'application/vnd.mobius.mqy', '', ''),
  1900. ('msl', 'application/vnd.mobius.msl', '', ''),
  1901. ('plc', 'application/vnd.mobius.plc', '', ''),
  1902. ('txf', 'application/vnd.mobius.txf', '', ''),
  1903. ('mpn', 'application/vnd.mophun.application', '', ''),
  1904. ('mpc', 'application/vnd.mophun.certificate', '', ''),
  1905. ('xul', 'application/vnd.mozilla.xul+xml', '', ''),
  1906. ('cil', 'application/vnd.ms-artgalry', 'mime-type-vector.png', ''),
  1907. ('taxi', 'application/vnd.ms-cab-compressed', 'mime-type-archive.png', 'far file-archive'),
  1908. ('xls', 'application/vnd.ms-excel', 'mime-type-spreadsheet.png', 'far file-excel'),
  1909. ('xlm', 'application/vnd.ms-excel', '', ''),
  1910. ('xla', 'application/vnd.ms-excel', '', ''),
  1911. ('xlc', 'application/vnd.ms-excel', '', ''),
  1912. ('xlt', 'application/vnd.ms-excel', 'mime-type-spreadsheet.png', 'far file-excel'),
  1913. ('xlw', 'application/vnd.ms-excel', '', ''),
  1914. ('xlam', 'application/vnd.ms-excel.addin.macroenabled.12', '', ''),
  1915. ('xlsb', 'application/vnd.ms-excel.sheet.binary.macroenabled.12', '', ''),
  1916. ('xlsm', 'application/vnd.ms-excel.sheet.macroenabled.12', '', ''),
  1917. ('xltm', 'application/vnd.ms-excel.template.macroenabled.12', '', ''),
  1918. ('eot', 'application/vnd.ms-fontobject', '', ''),
  1919. ('chm', 'application/vnd.ms-htmlhelp', '', ''),
  1920. ('ims', 'application/vnd.ms-ims', '', ''),
  1921. ('lrm', 'application/vnd.ms-lrm', '', ''),
  1922. ('thmx', 'application/vnd.ms-officetheme', '', ''),
  1923. ('cat', 'application/vnd.ms-pki.seccat', '', ''),
  1924. ('stl', 'application/vnd.ms-pki.stl', '', ''),
  1925. ('ppt', 'application/vnd.ms-powerpoint', 'mime-type-presentation.png', 'far file-powerpoint'),
  1926. ('pps', 'application/vnd.ms-powerpoint', '', ''),
  1927. ('pot', 'application/vnd.ms-powerpoint', '', ''),
  1928. ('ppam', 'application/vnd.ms-powerpoint.addin.macroenabled.12', '', ''),
  1929. ('pptm', 'application/vnd.ms-powerpoint.presentation.macroenabled.12', '', ''),
  1930. ('sldm', 'application/vnd.ms-powerpoint.slide.macroenabled.12', '', ''),
  1931. ('ppsm', 'application/vnd.ms-powerpoint.slideshow.macroenabled.12', '', ''),
  1932. ('potm', 'application/vnd.ms-powerpoint.template.macroenabled.12', '', ''),
  1933. ('mpp', 'application/vnd.ms-project', '', ''),
  1934. ('mpt', 'application/vnd.ms-project', '', ''),
  1935. ('docm', 'application/vnd.ms-word.document.macroenabled.12', '', ''),
  1936. ('dotm', 'application/vnd.ms-word.template.macroenabled.12', '', ''),
  1937. ('wps', 'application/vnd.ms-works', '', ''),
  1938. ('wks', 'application/vnd.ms-works', '', ''),
  1939. ('wcm', 'application/vnd.ms-works', '', ''),
  1940. ('wdb', 'application/vnd.ms-works', '', ''),
  1941. ('wpl', 'application/vnd.ms-wpl', '', ''),
  1942. ('xps', 'application/vnd.ms-xpsdocument', '', ''),
  1943. ('mseq', 'application/vnd.mseq', '', ''),
  1944. ('mus', 'application/vnd.musician', '', ''),
  1945. ('msty', 'application/vnd.muvee.style', '', ''),
  1946. ('taglet', 'application/vnd.mynfc', '', ''),
  1947. ('nlu', 'application/vnd.neurolanguage.nlu', '', ''),
  1948. ('ntf', 'application/vnd.nitf', '', ''),
  1949. ('nitf', 'application/vnd.nitf', '', ''),
  1950. ('nnd', 'application/vnd.noblenet-directory', '', ''),
  1951. ('nns', 'application/vnd.noblenet-sealer', '', ''),
  1952. ('nnw', 'application/vnd.noblenet-web', '', ''),
  1953. ('ngdat', 'application/vnd.nokia.n-gage.data', '', ''),
  1954. ('n-gage', 'application/vnd.nokia.n-gage.symbian.install', '', ''),
  1955. ('rpst', 'application/vnd.nokia.radio-preset', '', ''),
  1956. ('rpss', 'application/vnd.nokia.radio-presets', '', ''),
  1957. ('edm', 'application/vnd.novadigm.edm', '', ''),
  1958. ('edx', 'application/vnd.novadigm.edx', '', ''),
  1959. ('ext', 'application/vnd.novadigm.ext', '', ''),
  1960. ('odc', 'application/vnd.oasis.opendocument.chart', '', ''),
  1961. ('otc', 'application/vnd.oasis.opendocument.chart-template', '', ''),
  1962. ('odb', 'application/vnd.oasis.opendocument.database', '', ''),
  1963. ('odf', 'application/vnd.oasis.opendocument.formula', '', ''),
  1964. ('odft', 'application/vnd.oasis.opendocument.formula-template', '', '');
  1965. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1966. ('odg', 'application/vnd.oasis.opendocument.graphics', 'mime-type-vector.png', ''),
  1967. ('otg', 'application/vnd.oasis.opendocument.graphics-template', '', ''),
  1968. ('odi', 'application/vnd.oasis.opendocument.image', '', ''),
  1969. ('oti', 'application/vnd.oasis.opendocument.image-template', '', ''),
  1970. ('odp', 'application/vnd.oasis.opendocument.presentation', 'mime-type-presentation.png', 'far file-powerpoint'),
  1971. ('otp', 'application/vnd.oasis.opendocument.presentation-template', '', ''),
  1972. ('ods', 'application/vnd.oasis.opendocument.spreadsheet', 'mime-type-spreadsheet.png', 'far file-excel'),
  1973. ('ots', 'application/vnd.oasis.opendocument.spreadsheet-template', 'mime-type-spreadsheet.png', 'far file-excel'),
  1974. ('odt', 'application/vnd.oasis.opendocument.text', 'mime-type-document.png', ''),
  1975. ('odm', 'application/vnd.oasis.opendocument.text-master', '', ''),
  1976. ('ott', 'application/vnd.oasis.opendocument.text-template', 'mime-type-document.png', ''),
  1977. ('oth', 'application/vnd.oasis.opendocument.text-web', '', ''),
  1978. ('xo', 'application/vnd.olpc-sugar', '', ''),
  1979. ('dd2', 'application/vnd.oma.dd2+xml', '', ''),
  1980. ('oxt', 'application/vnd.openofficeorg.extension', '', ''),
  1981. ('pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'mime-type-presentation.png', 'far file-powerpoint'),
  1982. ('sldx', 'application/vnd.openxmlformats-officedocument.presentationml.slide', '', ''),
  1983. ('ppsx', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', '', ''),
  1984. ('potx', 'application/vnd.openxmlformats-officedocument.presentationml.template', '', ''),
  1985. ('xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'mime-type-spreadsheet.png', 'far file-excel'),
  1986. ('xltx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', '', ''),
  1987. ('docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'mime-type-document.png', 'far file-word'),
  1988. ('dotx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', '', ''),
  1989. ('mgp', 'application/vnd.osgeo.mapguide.package', '', ''),
  1990. ('dp', 'application/vnd.osgi.dp', '', ''),
  1991. ('esa', 'application/vnd.osgi.subsystem', '', ''),
  1992. ('pdb', 'application/vnd.palm', 'mime-type-document.png', ''),
  1993. ('pqa', 'application/vnd.palm', '', ''),
  1994. ('oprc', 'application/vnd.palm', '', ''),
  1995. ('paw', 'application/vnd.pawaafile', '', ''),
  1996. ('str', 'application/vnd.pg.format', '', ''),
  1997. ('ei6', 'application/vnd.pg.osasli', '', ''),
  1998. ('efif', 'application/vnd.picsel', '', ''),
  1999. ('wg', 'application/vnd.pmi.widget', '', ''),
  2000. ('plf', 'application/vnd.pocketlearn', '', ''),
  2001. ('pbd', 'application/vnd.powerbuilder6', '', ''),
  2002. ('box', 'application/vnd.previewsystems.box', '', ''),
  2003. ('mgz', 'application/vnd.proteus.magazine', '', ''),
  2004. ('qps', 'application/vnd.publishare-delta-tree', '', ''),
  2005. ('ptid', 'application/vnd.pvi.ptid1', '', ''),
  2006. ('qxd', 'application/vnd.quark.quarkxpress', '', ''),
  2007. ('qxt', 'application/vnd.quark.quarkxpress', '', ''),
  2008. ('qwd', 'application/vnd.quark.quarkxpress', '', ''),
  2009. ('qwt', 'application/vnd.quark.quarkxpress', '', ''),
  2010. ('qxl', 'application/vnd.quark.quarkxpress', '', ''),
  2011. ('qxb', 'application/vnd.quark.quarkxpress', '', ''),
  2012. ('bed', 'application/vnd.realvnc.bed', '', ''),
  2013. ('mxl', 'application/vnd.recordare.musicxml', '', ''),
  2014. ('musicxml', 'application/vnd.recordare.musicxml+xml', '', ''),
  2015. ('cryptonote', 'application/vnd.rig.cryptonote', '', ''),
  2016. ('cod', 'application/vnd.rim.cod', '', ''),
  2017. ('rm', 'application/vnd.rn-realmedia', '', ''),
  2018. ('rmvb', 'application/vnd.rn-realmedia-vbr', '', ''),
  2019. ('link66', 'application/vnd.route66.link66+xml', '', ''),
  2020. ('st', 'application/vnd.sailingtracker.track', '', ''),
  2021. ('see', 'application/vnd.seemail', '', ''),
  2022. ('sema', 'application/vnd.sema', '', ''),
  2023. ('semd', 'application/vnd.semd', '', ''),
  2024. ('semf', 'application/vnd.semf', '', ''),
  2025. ('ifm', 'application/vnd.shana.informed.formdata', '', ''),
  2026. ('itp', 'application/vnd.shana.informed.formtemplate', '', ''),
  2027. ('iif', 'application/vnd.shana.informed.interchange', '', ''),
  2028. ('ipk', 'application/vnd.shana.informed.package', '', ''),
  2029. ('twd', 'application/vnd.simtech-mindmapper', '', ''),
  2030. ('twds', 'application/vnd.simtech-mindmapper', '', ''),
  2031. ('mmf', 'application/vnd.smaf', '', ''),
  2032. ('teacher', 'application/vnd.smart.teacher', '', ''),
  2033. ('sdkm', 'application/vnd.solent.sdkm+xml', '', ''),
  2034. ('sdkd', 'application/vnd.solent.sdkm+xml', '', ''),
  2035. ('dxp', 'application/vnd.spotfire.dxp', '', ''),
  2036. ('sfs', 'application/vnd.spotfire.sfs', '', ''),
  2037. ('sdc', 'application/vnd.stardivision.calc', 'mime-type-spreadsheet.png', 'far file-excel'),
  2038. ('sda', 'application/vnd.stardivision.draw', '', ''),
  2039. ('sdd', 'application/vnd.stardivision.impress', 'mime-type-presentation.png', 'far file-powerpoint'),
  2040. ('smf', 'application/vnd.stardivision.math', '', ''),
  2041. ('sdw', 'application/vnd.stardivision.writer', 'mime-type-document.png', ''),
  2042. ('vor', 'application/vnd.stardivision.writer', '', ''),
  2043. ('sgl', 'application/vnd.stardivision.writer-global', '', ''),
  2044. ('smzip', 'application/vnd.stepmania.package', '', ''),
  2045. ('sm', 'application/vnd.stepmania.stepchart', '', ''),
  2046. ('sxc', 'application/vnd.sun.xml.calc', 'mime-type-spreadsheet.png', 'far file-excel'),
  2047. ('stc', 'application/vnd.sun.xml.calc.template', 'mime-type-spreadsheet.png', 'far file-excel'),
  2048. ('sxd', 'application/vnd.sun.xml.draw', 'mime-type-vector.png', ''),
  2049. ('std', 'application/vnd.sun.xml.draw.template', '', ''),
  2050. ('sxi', 'application/vnd.sun.xml.impress', 'mime-type-presentation.png', 'far file-powerpoint'),
  2051. ('sti', 'application/vnd.sun.xml.impress.template', 'mime-type-presentation.png', 'far file-powerpoint'),
  2052. ('sxm', 'application/vnd.sun.xml.math', '', ''),
  2053. ('sxw', 'application/vnd.sun.xml.writer', 'mime-type-document.png', ''),
  2054. ('sxg', 'application/vnd.sun.xml.writer.global', '', ''),
  2055. ('stw', 'application/vnd.sun.xml.writer.template', 'mime-type-document.png', ''),
  2056. ('sus', 'application/vnd.sus-calendar', '', ''),
  2057. ('susp', 'application/vnd.sus-calendar', '', ''),
  2058. ('svd', 'application/vnd.svd', '', ''),
  2059. ('sis', 'application/vnd.symbian.install', '', ''),
  2060. ('sisx', 'application/vnd.symbian.install', '', ''),
  2061. ('xsm', 'application/vnd.syncml+xml', '', ''),
  2062. ('bdm', 'application/vnd.syncml.dm+wbxml', '', ''),
  2063. ('xdm', 'application/vnd.syncml.dm+xml', '', ''),
  2064. ('tao', 'application/vnd.tao.intent-module-archive', '', ''),
  2065. ('pcap', 'application/vnd.tcpdump.pcap', '', ''),
  2066. ('cap', 'application/vnd.tcpdump.pcap', '', ''),
  2067. ('dmp', 'application/vnd.tcpdump.pcap', '', ''),
  2068. ('tmo', 'application/vnd.tmobile-livetv', '', ''),
  2069. ('tpt', 'application/vnd.trid.tpt', '', ''),
  2070. ('mxs', 'application/vnd.triscape.mxs', '', ''),
  2071. ('tra', 'application/vnd.trueapp', '', ''),
  2072. ('ufd', 'application/vnd.ufdl', '', ''),
  2073. ('ufdl', 'application/vnd.ufdl', '', ''),
  2074. ('utz', 'application/vnd.uiq.theme', '', ''),
  2075. ('umj', 'application/vnd.umajin', '', ''),
  2076. ('unityweb', 'application/vnd.unity', '', ''),
  2077. ('uoml', 'application/vnd.uoml+xml', '', ''),
  2078. ('vcx', 'application/vnd.vcx', '', ''),
  2079. ('vsd', 'application/vnd.visio', '', ''),
  2080. ('vst', 'application/vnd.visio', '', ''),
  2081. ('vss', 'application/vnd.visio', 'mime-type-vector.png', ''),
  2082. ('vsw', 'application/vnd.visio', '', ''),
  2083. ('vis', 'application/vnd.visionary', '', ''),
  2084. ('vsf', 'application/vnd.vsf', '', ''),
  2085. ('wbxml', 'application/vnd.wap.wbxml', '', ''),
  2086. ('wmlc', 'application/vnd.wap.wmlc', '', ''),
  2087. ('wmlsc', 'application/vnd.wap.wmlscriptc', '', ''),
  2088. ('wtb', 'application/vnd.webturbo', '', ''),
  2089. ('nbp', 'application/vnd.wolfram.player', '', ''),
  2090. ('wpd', 'application/vnd.wordperfect', '', ''),
  2091. ('wqd', 'application/vnd.wqd', '', ''),
  2092. ('stf', 'application/vnd.wt.stf', '', ''),
  2093. ('xar', 'application/vnd.xara', '', ''),
  2094. ('xfdl', 'application/vnd.xfdl', '', ''),
  2095. ('hvd', 'application/vnd.yamaha.hv-dic', '', ''),
  2096. ('hvs', 'application/vnd.yamaha.hv-script', '', ''),
  2097. ('hvp', 'application/vnd.yamaha.hv-voice', '', ''),
  2098. ('osf', 'application/vnd.yamaha.openscoreformat', '', ''),
  2099. ('osfpvg', 'application/vnd.yamaha.openscoreformat.osfpvg+xml', '', ''),
  2100. ('saf', 'application/vnd.yamaha.smaf-audio', '', ''),
  2101. ('spf', 'application/vnd.yamaha.smaf-phrase', '', ''),
  2102. ('cmp', 'application/vnd.yellowriver-custom-menu', '', ''),
  2103. ('zir', 'application/vnd.zul', '', ''),
  2104. ('zirz', 'application/vnd.zul', '', ''),
  2105. ('zaz', 'application/vnd.zzazz.deck+xml', '', ''),
  2106. ('vxml', 'application/voicexml+xml', '', ''),
  2107. ('wgt', 'application/widget', '', ''),
  2108. ('hlp', 'application/winhlp', '', ''),
  2109. ('wsdl', 'application/wsdl+xml', '', ''),
  2110. ('wspolicy', 'application/wspolicy+xml', '', ''),
  2111. ('7z', 'application/x-7z-compressed', 'mime-type-archive.png', 'far file-archive'),
  2112. ('abw', 'application/x-abiword', '', ''),
  2113. ('ace', 'application/x-ace-compressed', 'mime-type-archive.png', 'far file-archive'),
  2114. ('dmg', 'application/x-apple-diskimage', '', ''),
  2115. ('aab', 'application/x-authorware-bin', '', ''),
  2116. ('x32', 'application/x-authorware-bin', '', ''),
  2117. ('u32', 'application/x-authorware-bin', '', ''),
  2118. ('vox', 'application/x-authorware-bin', '', ''),
  2119. ('aam', 'application/x-authorware-map', '', ''),
  2120. ('aas', 'application/x-authorware-seg', '', ''),
  2121. ('bcpio', 'application/x-bcpio', '', ''),
  2122. ('torrent', 'application/x-bittorrent', '', ''),
  2123. ('blb', 'application/x-blorb', '', ''),
  2124. ('blorb', 'application/x-blorb', '', ''),
  2125. ('bz', 'application/x-bzip', '', ''),
  2126. ('bz2', 'application/x-bzip2', 'mime-type-archive.png', 'far file-archive'),
  2127. ('boz', 'application/x-bzip2', '', ''),
  2128. ('cbr', 'application/x-cbr', '', ''),
  2129. ('cba', 'application/x-cbr', '', ''),
  2130. ('cbt', 'application/x-cbr', '', ''),
  2131. ('cbz', 'application/x-cbr', '', ''),
  2132. ('cb7', 'application/x-cbr', '', ''),
  2133. ('vcd', 'application/x-cdlink', '', ''),
  2134. ('cfs', 'application/x-cfs-compressed', '', ''),
  2135. ('chat', 'application/x-chat', '', ''),
  2136. ('pgn', 'application/x-chess-pgn', '', ''),
  2137. ('nsc', 'application/x-conference', '', ''),
  2138. ('cpio', 'application/x-cpio', '', ''),
  2139. ('csh', 'application/x-csh', '', 'far file-code'),
  2140. ('deb', 'application/x-debian-package', '', ''),
  2141. ('udeb', 'application/x-debian-package', '', ''),
  2142. ('dgc', 'application/x-dgc-compressed', '', ''),
  2143. ('dir', 'application/x-director', '', ''),
  2144. ('dcr', 'application/x-director', '', ''),
  2145. ('dxr', 'application/x-director', '', ''),
  2146. ('cst', 'application/x-director', '', ''),
  2147. ('cct', 'application/x-director', '', ''),
  2148. ('cxt', 'application/x-director', '', '');
  2149. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2150. ('w3d', 'application/x-director', '', ''),
  2151. ('fgd', 'application/x-director', '', ''),
  2152. ('swa', 'application/x-director', '', ''),
  2153. ('wad', 'application/x-doom', '', ''),
  2154. ('ncx', 'application/x-dtbncx+xml', '', ''),
  2155. ('dtb', 'application/x-dtbook+xml', '', ''),
  2156. ('res', 'application/x-dtbresource+xml', '', ''),
  2157. ('dvi', 'application/x-dvi', '', ''),
  2158. ('evy', 'application/x-envoy', '', ''),
  2159. ('eva', 'application/x-eva', '', ''),
  2160. ('bdf', 'application/x-font-bdf', '', ''),
  2161. ('gsf', 'application/x-font-ghostscript', '', ''),
  2162. ('psf', 'application/x-font-linux-psf', '', ''),
  2163. ('otf', 'application/x-font-otf', '', ''),
  2164. ('pcf', 'application/x-font-pcf', '', ''),
  2165. ('snf', 'application/x-font-snf', '', ''),
  2166. ('ttf', 'application/x-font-ttf', '', ''),
  2167. ('ttc', 'application/x-font-ttf', '', ''),
  2168. ('pfa', 'application/x-font-type1', '', ''),
  2169. ('pfb', 'application/x-font-type1', '', ''),
  2170. ('pfm', 'application/x-font-type1', '', ''),
  2171. ('afm', 'application/x-font-type1', '', ''),
  2172. ('woff', 'application/x-font-woff', '', ''),
  2173. ('arc', 'application/x-freearc', '', ''),
  2174. ('spl', 'application/x-futuresplash', '', ''),
  2175. ('gca', 'application/x-gca-compressed', '', ''),
  2176. ('ulx', 'application/x-glulx', '', ''),
  2177. ('gnumeric', 'application/x-gnumeric', '', ''),
  2178. ('gramps', 'application/x-gramps-xml', '', ''),
  2179. ('gtar', 'application/x-gtar', '', ''),
  2180. ('hdf', 'application/x-hdf', '', ''),
  2181. ('install', 'application/x-install-instructions', '', ''),
  2182. ('iso', 'application/x-iso9660-image', '', ''),
  2183. ('jnlp', 'application/x-java-jnlp-file', '', ''),
  2184. ('latex', 'application/x-latex', '', ''),
  2185. ('lzh', 'application/x-lzh-compressed', '', ''),
  2186. ('lha', 'application/x-lzh-compressed', '', ''),
  2187. ('mie', 'application/x-mie', '', ''),
  2188. ('prc', 'application/x-mobipocket-ebook', '', ''),
  2189. ('mobi', 'application/x-mobipocket-ebook', '', ''),
  2190. ('application', 'application/x-ms-application', '', ''),
  2191. ('lnk', 'application/x-ms-shortcut', '', ''),
  2192. ('wmd', 'application/x-ms-wmd', '', ''),
  2193. ('wmz', 'application/x-ms-wmz', '', ''),
  2194. ('xbap', 'application/x-ms-xbap', '', ''),
  2195. ('mdb', 'application/x-msaccess', '', ''),
  2196. ('obd', 'application/x-msbinder', '', ''),
  2197. ('crd', 'application/x-mscardfile', '', ''),
  2198. ('clp', 'application/x-msclip', '', ''),
  2199. ('exe', 'application/x-msdownload', '', ''),
  2200. ('dll', 'application/x-msdownload', '', ''),
  2201. ('com', 'application/x-msdownload', '', ''),
  2202. ('bat', 'application/x-msdownload', '', 'far file-code'),
  2203. ('msi', 'application/x-msdownload', '', ''),
  2204. ('mvb', 'application/x-msmediaview', '', ''),
  2205. ('m13', 'application/x-msmediaview', '', ''),
  2206. ('m14', 'application/x-msmediaview', '', ''),
  2207. ('wmf', 'application/x-msmetafile', '', ''),
  2208. ('emf', 'application/x-msmetafile', '', ''),
  2209. ('emz', 'application/x-msmetafile', '', ''),
  2210. ('mny', 'application/x-msmoney', '', ''),
  2211. ('pub', 'application/x-mspublisher', '', ''),
  2212. ('scd', 'application/x-msschedule', '', ''),
  2213. ('trm', 'application/x-msterminal', '', ''),
  2214. ('wri', 'application/x-mswrite', '', ''),
  2215. ('nc', 'application/x-netcdf', '', ''),
  2216. ('cdf', 'application/x-netcdf', '', ''),
  2217. ('nzb', 'application/x-nzb', '', ''),
  2218. ('p12', 'application/x-pkcs12', '', ''),
  2219. ('pfx', 'application/x-pkcs12', '', ''),
  2220. ('p7b', 'application/x-pkcs7-certificates', '', ''),
  2221. ('spc', 'application/x-pkcs7-certificates', '', ''),
  2222. ('p7r', 'application/x-pkcs7-certreqresp', '', ''),
  2223. ('rar', 'application/x-rar-compressed', 'mime-type-archive.png', 'far file-archive'),
  2224. ('ris', 'application/x-research-info-systems', '', ''),
  2225. ('sh', 'application/x-sh', '', 'far file-code'),
  2226. ('shar', 'application/x-shar', '', ''),
  2227. ('swf', 'application/x-shockwave-flash', '', ''),
  2228. ('xap', 'application/x-silverlight-app', '', ''),
  2229. ('sql', 'text/x-sql', '', 'far file-code'),
  2230. ('sit', 'application/x-stuffit', '', ''),
  2231. ('sitx', 'application/x-stuffitx', '', ''),
  2232. ('srt', 'application/x-subrip', '', ''),
  2233. ('sv4cpio', 'application/x-sv4cpio', '', ''),
  2234. ('sv4crc', 'application/x-sv4crc', '', ''),
  2235. ('t3', 'application/x-t3vm-image', '', ''),
  2236. ('gam', 'application/x-tads', '', ''),
  2237. ('tar', 'application/x-tar', 'mime-type-archive.png', 'far file-archive'),
  2238. ('tcl', 'application/x-tcl', '', ''),
  2239. ('tex', 'application/x-tex', '', ''),
  2240. ('tfm', 'application/x-tex-tfm', '', ''),
  2241. ('texinfo', 'application/x-texinfo', '', ''),
  2242. ('texi', 'application/x-texinfo', '', ''),
  2243. ('obj', 'application/x-tgif', '', ''),
  2244. ('ustar', 'application/x-ustar', '', ''),
  2245. ('src', 'application/x-wais-source', '', 'far file-code'),
  2246. ('der', 'application/x-x509-ca-cert', '', ''),
  2247. ('crt', 'application/x-x509-ca-cert', '', ''),
  2248. ('fig', 'application/x-xfig', '', ''),
  2249. ('xlf', 'application/x-xliff+xml', '', ''),
  2250. ('xpi', 'application/x-xpinstall', '', ''),
  2251. ('xz', 'application/x-xz', '', ''),
  2252. ('z1', 'application/x-zmachine', '', ''),
  2253. ('z2', 'application/x-zmachine', '', ''),
  2254. ('z3', 'application/x-zmachine', '', ''),
  2255. ('z4', 'application/x-zmachine', '', ''),
  2256. ('z5', 'application/x-zmachine', '', ''),
  2257. ('z6', 'application/x-zmachine', '', ''),
  2258. ('z7', 'application/x-zmachine', '', ''),
  2259. ('z8', 'application/x-zmachine', '', ''),
  2260. ('xaml', 'application/xaml+xml', '', ''),
  2261. ('xdf', 'application/xcap-diff+xml', '', ''),
  2262. ('xenc', 'application/xenc+xml', '', ''),
  2263. ('xhtml', 'application/xhtml+xml', '', 'far file-code'),
  2264. ('xht', 'application/xhtml+xml', '', ''),
  2265. ('xml', 'application/xml', '', 'far file-code'),
  2266. ('xsl', 'application/xml', '', 'far file-code'),
  2267. ('dtd', 'application/xml-dtd', '', 'far file-code'),
  2268. ('xop', 'application/xop+xml', '', ''),
  2269. ('xpl', 'application/xproc+xml', '', ''),
  2270. ('xslt', 'application/xslt+xml', '', 'far file-code'),
  2271. ('xspf', 'application/xspf+xml', '', ''),
  2272. ('mxml', 'application/xv+xml', '', ''),
  2273. ('xhvml', 'application/xv+xml', '', ''),
  2274. ('xvml', 'application/xv+xml', '', ''),
  2275. ('xvm', 'application/xv+xml', '', ''),
  2276. ('yang', 'application/yang', '', ''),
  2277. ('yin', 'application/yin+xml', '', ''),
  2278. ('zip', 'application/zip', 'mime-type-archive.png', 'far file-archive'),
  2279. ('adp', 'audio/adpcm', 'mime-type-audio.png', 'far file-audio'),
  2280. ('au', 'audio/basic', 'mime-type-audio.png', 'far file-audio'),
  2281. ('snd', 'audio/basic', 'mime-type-audio.png', 'far file-audio'),
  2282. ('mid', 'audio/midi', 'mime-type-audio.png', 'far file-audio'),
  2283. ('midi', 'audio/midi', 'mime-type-audio.png', 'far file-audio'),
  2284. ('kar', 'audio/midi', 'mime-type-audio.png', 'far file-audio'),
  2285. ('rmi', 'audio/midi', 'mime-type-audio.png', 'far file-audio'),
  2286. ('m4a', 'audio/mp4', 'mime-type-audio.png', 'far file-audio'),
  2287. ('mp4a', 'audio/mp4', 'mime-type-audio.png', 'far file-audio'),
  2288. ('m4p', 'audio/mp4a-latm', 'mime-type-audio.png', 'far file-audio'),
  2289. ('mpga', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2290. ('mp2', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2291. ('mp2a', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2292. ('mp3', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2293. ('m2a', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2294. ('m3a', 'audio/mpeg', 'mime-type-audio.png', 'far file-audio'),
  2295. ('oga', 'audio/ogg', 'mime-type-audio.png', 'far file-audio'),
  2296. ('ogg', 'audio/ogg', 'mime-type-audio.png', 'far file-audio'),
  2297. ('spx', 'audio/ogg', 'mime-type-audio.png', 'far file-audio'),
  2298. ('s3m', 'audio/s3m', 'mime-type-audio.png', 'far file-audio'),
  2299. ('sil', 'audio/silk', 'mime-type-audio.png', 'far file-audio'),
  2300. ('uva', 'audio/vnd.dece.audio', 'mime-type-audio.png', 'far file-audio'),
  2301. ('uvva', 'audio/vnd.dece.audio', 'mime-type-audio.png', 'far file-audio'),
  2302. ('eol', 'audio/vnd.digital-winds', 'mime-type-audio.png', 'far file-audio'),
  2303. ('dra', 'audio/vnd.dra', 'mime-type-audio.png', 'far file-audio'),
  2304. ('dts', 'audio/vnd.dts', 'mime-type-audio.png', 'far file-audio'),
  2305. ('dtshd', 'audio/vnd.dts.hd', 'mime-type-audio.png', 'far file-audio'),
  2306. ('lvp', 'audio/vnd.lucent.voice', 'mime-type-audio.png', 'far file-audio'),
  2307. ('pya', 'audio/vnd.ms-playready.media.pya', 'mime-type-audio.png', 'far file-audio'),
  2308. ('ecelp4800', 'audio/vnd.nuera.ecelp4800', 'mime-type-audio.png', 'far file-audio'),
  2309. ('ecelp7470', 'audio/vnd.nuera.ecelp7470', 'mime-type-audio.png', 'far file-audio'),
  2310. ('ecelp9600', 'audio/vnd.nuera.ecelp9600', 'mime-type-audio.png', 'far file-audio'),
  2311. ('rip', 'audio/vnd.rip', 'mime-type-audio.png', 'far file-audio'),
  2312. ('weba', 'audio/webm', 'mime-type-audio.png', 'far file-audio'),
  2313. ('aac', 'audio/x-aac', 'mime-type-audio.png', 'far file-audio'),
  2314. ('aif', 'audio/x-aiff', 'mime-type-audio.png', 'far file-audio'),
  2315. ('aiff', 'audio/x-aiff', 'mime-type-audio.png', 'far file-audio'),
  2316. ('aifc', 'audio/x-aiff', 'mime-type-audio.png', 'far file-audio'),
  2317. ('caf', 'audio/x-caf', 'mime-type-audio.png', 'far file-audio'),
  2318. ('flac', 'audio/x-flac', 'mime-type-audio.png', 'far file-audio'),
  2319. ('mka', 'audio/x-matroska', 'mime-type-audio.png', 'far file-audio'),
  2320. ('m3u', 'audio/x-mpegurl', 'mime-type-audio.png', 'far file-audio'),
  2321. ('wax', 'audio/x-ms-wax', 'mime-type-audio.png', 'far file-audio'),
  2322. ('wma', 'audio/x-ms-wma', 'mime-type-audio.png', 'far file-audio'),
  2323. ('ram', 'audio/x-pn-realaudio', 'mime-type-audio.png', 'far file-audio'),
  2324. ('ra', 'audio/x-pn-realaudio', 'mime-type-audio.png', 'far file-audio'),
  2325. ('rmp', 'audio/x-pn-realaudio-plugin', 'mime-type-audio.png', 'far file-audio'),
  2326. ('wav', 'audio/x-wav', 'mime-type-audio.png', 'far file-audio'),
  2327. ('xm', 'audio/xm', 'mime-type-audio.png', 'far file-audio'),
  2328. ('cdx', 'chemical/x-cdx', 'mime-type-vector.png', ''),
  2329. ('cif', 'chemical/x-cif', '', ''),
  2330. ('cmdf', 'chemical/x-cmdf', '', ''),
  2331. ('cml', 'chemical/x-cml', '', ''),
  2332. ('csml', 'chemical/x-csml', '', ''),
  2333. ('xyz', 'chemical/x-xyz', '', ''),
  2334. ('bmp', 'image/bmp', 'mime-type-image.png', 'far file-image'),
  2335. ('cgm', 'image/cgm', 'mime-type-image.png', 'far file-image'),
  2336. ('g3', 'image/g3fax', 'mime-type-image.png', 'far file-image'),
  2337. ('gif', 'image/gif', 'mime-type-image.png', 'far file-image'),
  2338. ('ief', 'image/ief', 'mime-type-image.png', 'far file-image'),
  2339. ('jp2', 'image/jp2', 'mime-type-image.png', 'far file-image'),
  2340. ('jpeg', 'image/jpeg', 'mime-type-image.png', 'far file-image'),
  2341. ('jpg', 'image/jpeg', 'mime-type-image.png', 'far file-image'),
  2342. ('jpe', 'image/jpeg', 'mime-type-image.png', 'far file-image'),
  2343. ('ktx', 'image/ktx', 'mime-type-image.png', 'far file-image'),
  2344. ('pict', 'image/pict', 'mime-type-image.png', 'far file-image'),
  2345. ('pic', 'image/pict', 'mime-type-image.png', 'far file-image'),
  2346. ('pct', 'image/pict', 'mime-type-image.png', 'far file-image'),
  2347. ('png', 'image/png', 'mime-type-png.png', 'far file-image'),
  2348. ('btif', 'image/prs.btif', 'mime-type-image.png', 'far file-image'),
  2349. ('sgi', 'image/sgi', 'mime-type-image.png', 'far file-image');
  2350. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2351. ('svg', 'image/svg+xml', 'mime-type-image.png', 'far file-image'),
  2352. ('svgz', 'image/svg+xml', 'mime-type-image.png', 'far file-image'),
  2353. ('tiff', 'image/tiff', 'mime-type-image.png', 'far file-image'),
  2354. ('tif', 'image/tiff', 'mime-type-image.png', 'far file-image'),
  2355. ('psd', 'image/vnd.adobe.photoshop', 'mime-type-psd.png', 'far file-image'),
  2356. ('uvi', 'image/vnd.dece.graphic', 'mime-type-image.png', 'far file-image'),
  2357. ('uvvi', 'image/vnd.dece.graphic', 'mime-type-image.png', 'far file-image'),
  2358. ('uvg', 'image/vnd.dece.graphic', 'mime-type-image.png', 'far file-image'),
  2359. ('uvvg', 'image/vnd.dece.graphic', 'mime-type-image.png', 'far file-image'),
  2360. ('sub', 'image/vnd.dvb.subtitle', 'mime-type-image.png', 'far file-image'),
  2361. ('djvu', 'image/vnd.djvu', 'mime-type-image.png', 'far file-image'),
  2362. ('djv', 'image/vnd.djvu', 'mime-type-image.png', 'far file-image'),
  2363. ('dwg', 'image/vnd.dwg', 'mime-type-image.png', 'far file-image'),
  2364. ('dxf', 'image/vnd.dxf', 'mime-type-image.png', 'far file-image'),
  2365. ('fbs', 'image/vnd.fastbidsheet', 'mime-type-image.png', 'far file-image'),
  2366. ('fpx', 'image/vnd.fpx', 'mime-type-image.png', 'far file-image'),
  2367. ('fst', 'image/vnd.fst', 'mime-type-image.png', 'far file-image'),
  2368. ('mmr', 'image/vnd.fujixerox.edmics-mmr', 'mime-type-image.png', 'far file-image'),
  2369. ('rlc', 'image/vnd.fujixerox.edmics-rlc', 'mime-type-image.png', 'far file-image'),
  2370. ('mdi', 'image/vnd.ms-modi', 'mime-type-image.png', 'far file-image'),
  2371. ('wdp', 'image/vnd.ms-photo', 'mime-type-image.png', 'far file-image'),
  2372. ('npx', 'image/vnd.net-fpx', 'mime-type-image.png', 'far file-image'),
  2373. ('wbmp', 'image/vnd.wap.wbmp', 'mime-type-image.png', 'far file-image'),
  2374. ('xif', 'image/vnd.xiff', 'mime-type-image.png', 'far file-image'),
  2375. ('webp', 'image/webp', 'mime-type-image.png', 'far file-image'),
  2376. ('3ds', 'image/x-3ds', 'mime-type-image.png', 'far file-image'),
  2377. ('ras', 'image/x-cmu-raster', 'mime-type-image.png', 'far file-image'),
  2378. ('cmx', 'image/x-cmx', 'mime-type-image.png', 'far file-image'),
  2379. ('fh', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2380. ('fhc', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2381. ('fh4', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2382. ('fh5', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2383. ('fh7', 'image/x-freehand', 'mime-type-image.png', 'far file-image'),
  2384. ('ico', 'image/x-icon', 'mime-type-image.png', 'far file-image'),
  2385. ('pntg', 'image/x-macpaint', 'mime-type-image.png', 'far file-image'),
  2386. ('pnt', 'image/x-macpaint', 'mime-type-image.png', 'far file-image'),
  2387. ('mac', 'image/x-macpaint', 'mime-type-image.png', 'far file-image'),
  2388. ('sid', 'image/x-mrsid-image', 'mime-type-image.png', 'far file-image'),
  2389. ('pcx', 'image/x-pcx', 'mime-type-image.png', 'far file-image'),
  2390. ('pnm', 'image/x-portable-anymap', 'mime-type-image.png', 'far file-image'),
  2391. ('pbm', 'image/x-portable-bitmap', 'mime-type-image.png', 'far file-image'),
  2392. ('pgm', 'image/x-portable-graymap', 'mime-type-image.png', 'far file-image'),
  2393. ('ppm', 'image/x-portable-pixmap', 'mime-type-image.png', 'far file-image'),
  2394. ('qtif', 'image/x-quicktime', 'mime-type-image.png', 'far file-image'),
  2395. ('qti', 'image/x-quicktime', 'mime-type-image.png', 'far file-image'),
  2396. ('rgb', 'image/x-rgb', 'mime-type-image.png', 'far file-image'),
  2397. ('tga', 'image/x-tga', 'mime-type-image.png', 'far file-image'),
  2398. ('xbm', 'image/x-xbitmap', 'mime-type-image.png', 'far file-image'),
  2399. ('xpm', 'image/x-xpixmap', 'mime-type-image.png', 'far file-image'),
  2400. ('xwd', 'image/x-xwindowdump', 'mime-type-image.png', 'far file-image'),
  2401. ('eml', 'message/rfc822', '', ''),
  2402. ('mime', 'message/rfc822', '', ''),
  2403. ('igs', 'model/iges', '', ''),
  2404. ('iges', 'model/iges', '', ''),
  2405. ('msh', 'model/mesh', '', ''),
  2406. ('mesh', 'model/mesh', '', ''),
  2407. ('silo', 'model/mesh', '', ''),
  2408. ('dae', 'model/vnd.collada+xml', '', ''),
  2409. ('dwf', 'model/vnd.dwf', '', ''),
  2410. ('gdl', 'model/vnd.gdl', '', ''),
  2411. ('gtw', 'model/vnd.gtw', '', ''),
  2412. ('mts', 'model/vnd.mts', '', ''),
  2413. ('vtu', 'model/vnd.vtu', '', ''),
  2414. ('wrl', 'model/vrml', '', ''),
  2415. ('vrml', 'model/vrml', '', ''),
  2416. ('x3db', 'model/x3d+binary', '', ''),
  2417. ('x3dbz', 'model/x3d+binary', '', ''),
  2418. ('x3dv', 'model/x3d+vrml', '', ''),
  2419. ('x3dvz', 'model/x3d+vrml', '', ''),
  2420. ('x3d', 'model/x3d+xml', '', ''),
  2421. ('x3dz', 'model/x3d+xml', '', ''),
  2422. ('manifest', 'text/cache-manifest', '', 'far file-alt'),
  2423. ('appcache', 'text/cache-manifest', '', 'far file-alt'),
  2424. ('ics', 'text/calendar', '', 'far file-alt'),
  2425. ('ifb', 'text/calendar', '', 'far file-alt'),
  2426. ('css', 'text/css', '', 'far file-code'),
  2427. ('csv', 'text/csv', 'mime-type-spreadsheet.png', 'far file-excel'),
  2428. ('html', 'text/html', '', 'far file-code'),
  2429. ('htm', 'text/html', '', 'far file-code'),
  2430. ('n3', 'text/n3', '', 'far file-alt'),
  2431. ('txt', 'text/plain', 'mime-type-document.png', 'far file-alt'),
  2432. ('text', 'text/plain', '', 'far file-alt'),
  2433. ('conf', 'text/plain', '', 'far file-alt'),
  2434. ('def', 'text/plain', '', 'far file-alt'),
  2435. ('list', 'text/plain', '', 'far file-alt'),
  2436. ('log', 'text/plain', '', 'far file-alt'),
  2437. ('in', 'text/plain', '', 'far file-alt'),
  2438. ('dsc', 'text/prs.lines.tag', '', 'far file-alt'),
  2439. ('rtx', 'text/richtext', '', 'far file-alt'),
  2440. ('sgml', 'text/sgml', '', 'far file-alt'),
  2441. ('sgm', 'text/sgml', '', 'far file-alt'),
  2442. ('tsv', 'text/tab-separated-values', '', 'far file-alt'),
  2443. ('t', 'text/troff', '', 'far file-alt'),
  2444. ('tr', 'text/troff', '', 'far file-alt'),
  2445. ('roff', 'text/troff', '', 'far file-alt'),
  2446. ('man', 'text/troff', '', 'far file-alt'),
  2447. ('me', 'text/troff', '', 'far file-alt'),
  2448. ('ms', 'text/troff', '', 'far file-alt'),
  2449. ('ttl', 'text/turtle', '', 'far file-code'),
  2450. ('uri', 'text/uri-list', '', 'far file-alt'),
  2451. ('uris', 'text/uri-list', '', 'far file-alt'),
  2452. ('urls', 'text/uri-list', '', 'far file-alt'),
  2453. ('address-card', 'text/vcard', '', 'far file-alt'),
  2454. ('curl', 'text/vnd.curl', '', 'far file-alt'),
  2455. ('dcurl', 'text/vnd.curl.dcurl', '', 'far file-alt'),
  2456. ('scurl', 'text/vnd.curl.scurl', '', 'far file-alt'),
  2457. ('mcurl', 'text/vnd.curl.mcurl', '', 'far file-alt'),
  2458. ('fly', 'text/vnd.fly', '', 'far file-alt'),
  2459. ('flx', 'text/vnd.fmi.flexstor', '', 'far file-alt'),
  2460. ('gv', 'text/vnd.graphviz', '', 'far file-alt'),
  2461. ('3dml', 'text/vnd.in3d.3dml', '', 'far file-alt'),
  2462. ('spot', 'text/vnd.in3d.spot', '', 'far file-alt'),
  2463. ('jad', 'text/vnd.sun.j2me.app-descriptor', '', 'far file-alt'),
  2464. ('wml', 'text/vnd.wap.wml', '', 'far file-alt'),
  2465. ('wmls', 'text/vnd.wap.wmlscript', '', 'far file-alt'),
  2466. ('s', 'text/x-asm', '', 'far file-alt'),
  2467. ('asm', 'text/x-asm', '', 'far file-code'),
  2468. ('c', 'text/x-c', '', 'far file-code'),
  2469. ('far closed-captioning', 'text/x-c', '', 'far file-code'),
  2470. ('cxx', 'text/x-c', '', 'far file-code'),
  2471. ('cpp', 'text/x-c', '', 'far file-code'),
  2472. ('h', 'text/x-c', '', 'far file-code'),
  2473. ('hh', 'text/x-c', '', 'far file-code'),
  2474. ('dic', 'text/x-c', '', 'far file-alt'),
  2475. ('f', 'text/x-fortran', '', 'far file-code'),
  2476. ('for', 'text/x-fortran', '', 'far file-code'),
  2477. ('f77', 'text/x-fortran', '', 'far file-alt'),
  2478. ('f90', 'text/x-fortran', '', 'far file-alt'),
  2479. ('java', 'text/x-java-source', '', 'far file-code'),
  2480. ('opml', 'text/x-opml', '', 'far file-alt'),
  2481. ('p', 'text/x-pascal', '', 'far file-alt'),
  2482. ('pas', 'text/x-pascal', '', 'far file-code'),
  2483. ('php', 'application/x-httpd-php', '', 'far file-code'),
  2484. ('coffee', 'text/x-coffeescript', '', 'far file-code'),
  2485. ('lsp', 'text/x-common-lisp', '', 'far file-code'),
  2486. ('lisp', 'text/x-common-lisp', '', 'far file-code'),
  2487. ('diff', 'text/x-diff', '', 'far file-code'),
  2488. ('go', 'text/x-go', '', 'far file-code'),
  2489. ('lua', 'text/x-lua', '', 'far file-code'),
  2490. ('pl', 'text/x-perl', '', 'far file-code'),
  2491. ('prl', 'text/x-perl', '', 'far file-code'),
  2492. ('perl', 'text/x-perl', '', 'far file-code'),
  2493. ('py', 'text/x-python', '', 'far file-code'),
  2494. ('nginx', 'text/nginx', '', 'far file-code'),
  2495. ('ini', 'text/x-ini', '', 'far file-alt'),
  2496. ('rb', 'text/x-ruby', '', 'far file-code'),
  2497. ('sass', 'text/x-sass', '', 'far file-code'),
  2498. ('bash', 'text/x-sh', '', 'far file-code'),
  2499. ('swift', 'text/x-swift', '', 'far file-code'),
  2500. ('vb', 'text/x-vb', '', 'far file-code'),
  2501. ('vbs', 'text/vbscript', '', 'far file-code'),
  2502. ('vue', 'text/x-vue', '', 'far file-code'),
  2503. ('yaml', 'text/x-yaml', '', 'far file-alt'),
  2504. ('md', 'text/x-markdown', '', 'far file-alt'),
  2505. ('xq', 'application/xquery', '', 'far file-code'),
  2506. ('xquery', 'application/xquery', '', 'far file-code'),
  2507. ('ps1', 'application/x-powershell', '', 'far file-code'),
  2508. ('aps', 'application/x-aspx', '', ''),
  2509. ('jsp', 'application/x-jsp', '', 'far file-code'),
  2510. ('nfo', 'text/x-nfo', '', 'far file-alt'),
  2511. ('etx', 'text/x-setext', '', 'far file-alt'),
  2512. ('sfv', 'text/x-sfv', '', 'far file-alt'),
  2513. ('uu', 'text/x-uuencode', '', 'far file-alt'),
  2514. ('vcs', 'text/x-vcalendar', '', 'far file-alt'),
  2515. ('vcf', 'text/x-vcard', '', 'far file-alt'),
  2516. ('3gp', 'video/3gpp', 'mime-type-video.png', 'far file-video'),
  2517. ('3g2', 'video/3gpp2', 'mime-type-video.png', 'far file-video'),
  2518. ('h261', 'video/h261', 'mime-type-video.png', 'far file-video'),
  2519. ('h263', 'video/h263', 'mime-type-video.png', 'far file-video'),
  2520. ('h264', 'video/h264', 'mime-type-video.png', 'far file-video'),
  2521. ('jpgv', 'video/jpeg', 'mime-type-video.png', 'far file-video'),
  2522. ('jpm', 'video/jpm', 'mime-type-video.png', 'far file-video'),
  2523. ('jpgm', 'video/jpm', 'mime-type-video.png', 'far file-video'),
  2524. ('mj2', 'video/mj2', 'mime-type-video.png', 'far file-video'),
  2525. ('mjp2', 'video/mj2', 'mime-type-video.png', 'far file-video'),
  2526. ('ts', 'video/mp2t', 'mime-type-video.png', 'far file-video'),
  2527. ('mp4', 'video/mp4', 'mime-type-video.png', 'far file-video'),
  2528. ('mp4v', 'video/mp4', 'mime-type-video.png', 'far file-video'),
  2529. ('mpg4', 'video/mp4', 'mime-type-video.png', 'far file-video'),
  2530. ('m4v', 'video/mp4', 'mime-type-video.png', 'far file-video'),
  2531. ('mpeg', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2532. ('mpg', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2533. ('mpe', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2534. ('m1v', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2535. ('m2v', 'video/mpeg', 'mime-type-video.png', 'far file-video'),
  2536. ('ogv', 'video/ogg', 'mime-type-video.png', 'far file-video'),
  2537. ('qt', 'video/quicktime', 'mime-type-video.png', 'far file-video'),
  2538. ('mov', 'video/quicktime', 'mime-type-video.png', 'far file-video'),
  2539. ('uvh', 'video/vnd.dece.hd', 'mime-type-video.png', 'far file-video'),
  2540. ('uvvh', 'video/vnd.dece.hd', 'mime-type-video.png', 'far file-video'),
  2541. ('uvm', 'video/vnd.dece.mobile', 'mime-type-video.png', 'far file-video'),
  2542. ('uvvm', 'video/vnd.dece.mobile', 'mime-type-video.png', 'far file-video'),
  2543. ('uvp', 'video/vnd.dece.pd', 'mime-type-video.png', 'far file-video'),
  2544. ('uvvp', 'video/vnd.dece.pd', 'mime-type-video.png', 'far file-video');
  2545. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2546. ('uvs', 'video/vnd.dece.sd', 'mime-type-video.png', 'far file-video'),
  2547. ('uvvs', 'video/vnd.dece.sd', 'mime-type-video.png', 'far file-video'),
  2548. ('uvv', 'video/vnd.dece.video', 'mime-type-video.png', 'far file-video'),
  2549. ('uvvv', 'video/vnd.dece.video', 'mime-type-video.png', 'far file-video'),
  2550. ('dvb', 'video/vnd.dvb.file', 'mime-type-video.png', 'far file-video'),
  2551. ('fvt', 'video/vnd.fvt', 'mime-type-video.png', 'far file-video'),
  2552. ('mxu', 'video/vnd.mpegurl', 'mime-type-video.png', 'far file-video'),
  2553. ('m4u', 'video/vnd.mpegurl', 'mime-type-video.png', 'far file-video'),
  2554. ('pyv', 'video/vnd.ms-playready.media.pyv', 'mime-type-video.png', 'far file-video'),
  2555. ('uvu', 'video/vnd.uvvu.mp4', 'mime-type-video.png', 'far file-video'),
  2556. ('uvvu', 'video/vnd.uvvu.mp4', 'mime-type-video.png', 'far file-video'),
  2557. ('viv', 'video/vnd.vivo', 'mime-type-video.png', 'far file-video'),
  2558. ('dv', 'video/x-dv', 'mime-type-video.png', 'far file-video'),
  2559. ('dif', 'video/x-dv', 'mime-type-video.png', 'far file-excel'),
  2560. ('webm', 'video/webm', 'mime-type-video.png', 'far file-video'),
  2561. ('f4v', 'video/x-f4v', 'mime-type-video.png', 'far file-video'),
  2562. ('fli', 'video/x-fli', 'mime-type-video.png', 'far file-video'),
  2563. ('flv', 'video/x-flv', 'mime-type-video.png', 'far file-video'),
  2564. ('mkv', 'video/x-matroska', 'mime-type-video.png', 'far file-video'),
  2565. ('mk3d', 'video/x-matroska', 'mime-type-video.png', 'far file-video'),
  2566. ('mks', 'video/x-matroska', 'mime-type-video.png', 'far file-video'),
  2567. ('mng', 'video/x-mng', 'mime-type-video.png', 'far file-video'),
  2568. ('asf', 'video/x-ms-asf', 'mime-type-video.png', 'far file-video'),
  2569. ('asx', 'video/x-ms-asf', 'mime-type-video.png', 'far file-video'),
  2570. ('vob', 'video/x-ms-vob', 'mime-type-video.png', 'far file-video'),
  2571. ('wm', 'video/x-ms-wm', 'mime-type-video.png', 'far file-video'),
  2572. ('wmv', 'video/x-ms-wmv', 'mime-type-video.png', 'far file-video'),
  2573. ('wmx', 'video/x-ms-wmx', 'mime-type-video.png', 'far file-video'),
  2574. ('wvx', 'video/x-ms-wvx', 'mime-type-video.png', 'far file-video'),
  2575. ('avi', 'video/x-msvideo', 'mime-type-video.png', 'far file-video'),
  2576. ('movie', 'video/x-sgi-movie', 'mime-type-video.png', 'far file-video'),
  2577. ('smv', 'video/x-smv', 'mime-type-video.png', 'far file-video'),
  2578. ('ice', 'x-conference/x-cooltalk', '', '');
  2579. -- --------------------------------------------------------
  2580. CREATE TABLE IF NOT EXISTS `sys_objects_uploader` (
  2581. `id` int(11) NOT NULL AUTO_INCREMENT,
  2582. `object` varchar(64) NOT NULL,
  2583. `active` tinyint(4) NOT NULL,
  2584. `override_class_name` varchar(255) NOT NULL,
  2585. `override_class_file` varchar(255) NOT NULL,
  2586. PRIMARY KEY (`id`),
  2587. UNIQUE KEY `object` (`object`)
  2588. );
  2589. INSERT INTO `sys_objects_uploader` (`object`, `active`, `override_class_name`, `override_class_file`) VALUES
  2590. ('sys_simple', 1, 'BxTemplUploaderSimple', ''),
  2591. ('sys_html5', 1, 'BxTemplUploaderHTML5', ''),
  2592. ('sys_crop', 1, 'BxTemplUploaderCrop', ''),
  2593. ('sys_cmts_simple', 1, 'BxTemplCmtsUploaderSimple', ''),
  2594. ('sys_settings_html5', 1, 'BxTemplStudioSettingsUploaderHTML5', ''),
  2595. ('sys_builder_page_simple', 1, 'BxTemplStudioBuilderPageUploaderSimple', ''),
  2596. ('sys_builder_page_html5', 1, 'BxTemplStudioBuilderPageUploaderHTML5', ''),
  2597. ('sys_std_crop_cover', 1, 'BxTemplStudioUploaderCropCover', '');
  2598. -- --------------------------------------------------------
  2599. CREATE TABLE IF NOT EXISTS `sys_objects_form` (
  2600. `id` int(11) NOT NULL AUTO_INCREMENT,
  2601. `object` varchar(64) NOT NULL,
  2602. `module` varchar(32) NOT NULL,
  2603. `title` varchar(255) NOT NULL,
  2604. `action` varchar(255) NOT NULL,
  2605. `form_attrs` text NOT NULL,
  2606. `submit_name` varchar(255) NOT NULL,
  2607. `table` varchar(255) NOT NULL,
  2608. `key` varchar(255) NOT NULL,
  2609. `uri` varchar(255) NOT NULL,
  2610. `uri_title` varchar(255) NOT NULL,
  2611. `params` text NOT NULL,
  2612. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2613. `active` tinyint(4) NOT NULL DEFAULT '0',
  2614. `override_class_name` varchar(255) NOT NULL,
  2615. `override_class_file` varchar(255) NOT NULL,
  2616. PRIMARY KEY (`id`),
  2617. UNIQUE KEY `object` (`object`)
  2618. );
  2619. 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
  2620. ('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', ''),
  2621. ('sys_account', 'system', '_sys_form_account', '', '', 'do_submit', 'sys_accounts', 'id', '', '', 'a:1:{s:14:"checker_helper";s:26:"BxFormAccountCheckerHelper";}', 0, 1, 'BxTemplFormAccount', ''),
  2622. ('sys_forgot_password', 'system', '_sys_form_forgot_password', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:33:"BxFormForgotPasswordCheckerHelper";}', 0, 1, 'BxTemplFormForgotPassword', ''),
  2623. ('sys_confirm_email', 'system', '_sys_form_confirm_email', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:31:"BxFormConfirmEmailCheckerHelper";}', 0, 1, 'BxTemplFormConfirmEmail', ''),
  2624. ('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', ''),
  2625. ('sys_unsubscribe', 'system', '_sys_form_unsubscribe', '', '', 'do_submit', 'sys_accounts', 'id', '', '', '', 0, 1, 'BxTemplFormAccount', ''),
  2626. ('sys_comment', 'system', '_sys_form_comment', 'cmts.php', 'a:3:{s:2:"id";s:17:"cmt-%s-form-%s-%d";s:4:"name";s:17:"cmt-%s-form-%s-%d";s:5:"class";s:14:"cmt-post-reply";}', 'cmt_submit', '', 'cmt_id', '', '', '', 0, 1, 'BxTemplCmtsForm', ''),
  2627. ('sys_review', 'system', '_sys_form_review', 'cmts.php', 'a:3:{s:2:"id";s:17:"cmt-%s-form-%s-%d";s:4:"name";s:17:"cmt-%s-form-%s-%d";s:5:"class";s:14:"cmt-post-reply";}', 'cmt_submit', '', 'cmt_id', '', '', '', 0, 1, 'BxTemplCmtsReviewsForm', ''),
  2628. ('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, '', ''),
  2629. ('sys_privacy_group_custom', 'system', '_sys_form_ps_group_custom', 'privacy.php', '', 'do_submit', 'sys_privacy_groups_custom', 'id', '', '', '', 0, 1, 'BxTemplPrivacyFormGroupCustom', '');
  2630. CREATE TABLE IF NOT EXISTS `sys_form_displays` (
  2631. `id` int(11) NOT NULL AUTO_INCREMENT,
  2632. `display_name` varchar(64) NOT NULL,
  2633. `module` varchar(32) NOT NULL,
  2634. `object` varchar(64) NOT NULL,
  2635. `title` varchar(255) NOT NULL,
  2636. `view_mode` tinyint(4) NOT NULL DEFAULT '0',
  2637. PRIMARY KEY (`id`),
  2638. UNIQUE KEY `object_display_name` (`object`,`display_name`)
  2639. );
  2640. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  2641. ('sys_login', 'system', 'sys_login', '_sys_form_display_login', 0),
  2642. ('sys_login_step2', 'system', 'sys_login', '_sys_form_display_login_step2', 0),
  2643. ('sys_login_step3', 'system', 'sys_login', '_sys_form_display_login_step3', 0),
  2644. ('sys_account_create', 'system', 'sys_account', '_sys_form_display_account_create', 0),
  2645. ('sys_account_settings_email', 'system', 'sys_account', '_sys_form_display_account_settings_email', 0),
  2646. ('sys_account_settings_pwd', 'system', 'sys_account', '_sys_form_display_account_settings_password', 0),
  2647. ('sys_account_settings_info', 'system', 'sys_account', '_sys_form_display_account_settings_info', 0),
  2648. ('sys_account_settings_del_account', 'system', 'sys_account', '_sys_form_display_account_settings_delete', 0),
  2649. ('sys_forgot_password', 'system', 'sys_forgot_password', '_sys_form_display_forgot_password', 0),
  2650. ('sys_confirm_phone_set_phone', 'system', 'sys_confirm_phone', '_sys_form_display_confirm_phone_set_phone', 0),
  2651. ('sys_confirm_phone_confirmation', 'system', 'sys_confirm_phone', '_sys_form_display_confirm_phone_confirmation', 0),
  2652. ('sys_confirm_email', 'system', 'sys_confirm_email', '_sys_form_display_confirm_email', 0),
  2653. ('sys_unsubscribe_updates', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_updates', 0),
  2654. ('sys_unsubscribe_news', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_news', 0),
  2655. ('sys_comment_post', 'system', 'sys_comment', '_sys_form_display_comment_post', 0),
  2656. ('sys_comment_edit', 'system', 'sys_comment', '_sys_form_display_comment_edit', 0),
  2657. ('sys_review_post', 'system', 'sys_review', '_sys_form_review_display_post', 0),
  2658. ('sys_review_edit', 'system', 'sys_review', '_sys_form_review_display_edit', 0),
  2659. ('sys_report_post', 'system', 'sys_report', '_sys_form_display_report_post', 0),
  2660. ('sys_privacy_group_custom_manage', 'system', 'sys_privacy_group_custom', '_sys_form_display_ps_gc_manage', 0);
  2661. CREATE TABLE IF NOT EXISTS `sys_form_inputs` (
  2662. `id` int(11) NOT NULL AUTO_INCREMENT,
  2663. `object` varchar(64) NOT NULL,
  2664. `module` varchar(32) NOT NULL,
  2665. `name` varchar(255) NOT NULL,
  2666. `value` varchar(255) NOT NULL,
  2667. `values` text NOT NULL,
  2668. `checked` tinyint(4) NOT NULL DEFAULT '0',
  2669. `type` varchar(32) NOT NULL,
  2670. `caption_system` varchar(255) NOT NULL,
  2671. `caption` varchar(255) NOT NULL,
  2672. `info` varchar(255) NOT NULL,
  2673. `required` tinyint(4) NOT NULL DEFAULT '0',
  2674. `unique` tinyint(4) NOT NULL DEFAULT '0',
  2675. `collapsed` tinyint(4) NOT NULL DEFAULT '0',
  2676. `html` tinyint(4) NOT NULL DEFAULT '0',
  2677. `attrs` text NOT NULL,
  2678. `attrs_tr` text NOT NULL,
  2679. `attrs_wrapper` text NOT NULL,
  2680. `checker_func` varchar(32) NOT NULL,
  2681. `checker_params` text NOT NULL,
  2682. `checker_error` varchar(255) NOT NULL,
  2683. `db_pass` varchar(32) NOT NULL,
  2684. `db_params` text NOT NULL,
  2685. `editable` tinyint(4) NOT NULL DEFAULT '1',
  2686. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2687. PRIMARY KEY (`id`),
  2688. UNIQUE KEY `display_name` (`object`(64),`name`(127))
  2689. );
  2690. 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
  2691. ('sys_login', 'system', 'role', '1', '', 0, 'hidden', '_sys_form_login_input_caption_system_role', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2692. ('sys_login', 'system', 'relocate', '', '', 0, 'hidden', '_sys_form_login_input_caption_system_relocate', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2693. ('sys_login', 'system', 'ID', '', '', 0, 'text', '_sys_form_login_input_caption_system_id', '_sys_form_login_input_email', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2694. ('sys_login', 'system', 'Password', '', '', 0, 'password', '_sys_form_login_input_caption_system_password', '_sys_form_login_input_password', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2695. ('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),
  2696. ('sys_login', 'system', 'login', '_sys_form_login_input_submit', '', 0, 'submit', '_sys_form_login_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2697. ('sys_login', 'system', 'submit_text', '', '', 0, 'custom', '_sys_form_login_input_caption_system_submit_text', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2698. ('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),
  2699. ('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),
  2700. ('sys_login', 'system', 'back', '', '', '', 'value', '_sys_form_login_input_caption_system_back', '_sys_form_login_input_back', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
  2701. ('sys_login', 'system', 'do_checkcode', '_sys_form_login_input_checkcode', '', 0, 'submit', '_sys_form_login_input_caption_system_checkcode', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2702. ('sys_login', 'system', 'do_sendsms', '_sys_form_login_input_sendsms', '', 0, 'submit', '_sys_form_login_input_caption_system_sendsms', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2703. ('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),
  2704. ('sys_account', 'system', 'password', '', '', 0, 'password', '_sys_form_login_input_caption_system_password', '_sys_form_account_input_password', '', 1, 0, 0, '', '', '', 'Preg', 'a:1:{s:4:"preg";s:38:"~^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).{8,}~";}', '_sys_form_account_input_password_error', '', '', 0, 0),
  2705. ('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),
  2706. ('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),
  2707. ('sys_account', 'system', 'name', '', '', 0, 'text', '_sys_form_login_input_caption_system_name', '_sys_form_account_input_name', '', 1, 0, 0, '', '', '', 'Avail', '', '_sys_form_account_input_name_error', 'Xss', '', 1, 0),
  2708. ('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),
  2709. ('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),
  2710. ('sys_account', 'system', 'delete_content', '0', '', 0, 'hidden', '_sys_form_login_input_caption_system_delete_content', '', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2711. ('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),
  2712. ('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),
  2713. ('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),
  2714. ('sys_account', 'system', 'agreement', '', '', 0, 'custom', '_sys_form_login_input_caption_system_agreement', '_sys_form_account_input_agreement', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2715. ('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),
  2716. ('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),
  2717. ('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),
  2718. ('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),
  2719. ('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),
  2720. ('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),
  2721. ('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),
  2722. ('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),
  2723. ('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),
  2724. ('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),
  2725. ('sys_unsubscribe', 'system', 'id', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2726. ('sys_unsubscribe', 'system', 'code', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_code', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2727. ('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),
  2728. ('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),
  2729. ('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),
  2730. ('sys_comment', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2731. ('sys_comment', 'system', 'id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2732. ('sys_comment', 'system', 'action', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2733. ('sys_comment', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2734. ('sys_comment', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2735. ('sys_comment', 'system', 'cmt_text', '', '', 0, 'textarea', '_sys_form_comment_input_caption_system_cmt_text', '', '', 0, 0, 3, 'a:1:{s:12:"autocomplete";s:3:"off";}', '', '', 'Length', 'a:2:{s:3:"min";i:1;s:3:"max";i:5000;}', '_Please enter n1-n2 characters', 'XssHtml', '', 1, 0),
  2736. ('sys_comment', 'system', 'cmt_anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2737. ('sys_comment', 'system', 'cmt_image', 'a:1:{i:0;s:15:"sys_cmts_simple";}', 'a:1:{s:15:"sys_cmts_simple";s:26:"_sys_uploader_simple_title";}', 0, 'files', '_sys_form_comment_input_caption_system_cmt_image', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2738. ('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),
  2739. ('sys_review', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2740. ('sys_review', 'system', 'id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2741. ('sys_review', 'system', 'action', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2742. ('sys_review', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2743. ('sys_review', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_review_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2744. ('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),
  2745. ('sys_review', 'system', 'cmt_mood', '', '', 0, 'custom', '_sys_form_review_input_caption_system_cmt_mood', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  2746. ('sys_review', 'system', 'cmt_anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2747. ('sys_review', 'system', 'cmt_image', 'a:1:{i:0;s:15:"sys_cmts_simple";}', 'a:1:{s:15:"sys_cmts_simple";s:26:"_sys_uploader_simple_title";}', 0, 'files', '_sys_form_review_input_caption_system_cmt_image', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2748. ('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),
  2749. ('sys_report', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2750. ('sys_report', 'system', 'object_id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_object_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2751. ('sys_report', 'system', 'action', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2752. ('sys_report', 'system', 'id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2753. ('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),
  2754. ('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),
  2755. ('sys_report', 'system', 'submit', '_sys_form_report_input_caption_submit', '', 0, 'submit', '_sys_form_report_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2756. ('sys_privacy_group_custom', 'system', 'profile_id', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_profile_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2757. ('sys_privacy_group_custom', 'system', 'content_id', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_content_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2758. ('sys_privacy_group_custom', 'system', 'object', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_object', '', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
  2759. ('sys_privacy_group_custom', 'system', 'action', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2760. ('sys_privacy_group_custom', 'system', 'group_id', '', '', 0, 'hidden', '_sys_form_ps_gc_input_caption_system_group_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2761. ('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),
  2762. ('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),
  2763. ('sys_privacy_group_custom', 'system', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2764. ('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),
  2765. ('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);
  2766. CREATE TABLE IF NOT EXISTS `sys_form_display_inputs` (
  2767. `id` int(11) NOT NULL AUTO_INCREMENT,
  2768. `display_name` varchar(64) NOT NULL,
  2769. `input_name` varchar(32) NOT NULL,
  2770. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  2771. `active` tinyint(4) NOT NULL DEFAULT '0',
  2772. `order` int(11) NOT NULL,
  2773. PRIMARY KEY (`id`),
  2774. UNIQUE KEY `display_input` (`display_name`,`input_name`)
  2775. );
  2776. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  2777. ('sys_login', 'role', 2147483647, 1, 1),
  2778. ('sys_login', 'relocate', 2147483647, 1, 2),
  2779. ('sys_login', 'ID', 2147483647, 1, 3),
  2780. ('sys_login', 'Password', 2147483647, 1, 4),
  2781. ('sys_login', 'rememberMe', 2147483647, 1, 5),
  2782. ('sys_login', 'login', 2147483647, 1, 6),
  2783. ('sys_login', 'submit_text', 2147483647, 1, 7),
  2784. ('sys_login_step2', 'phone', 2147483647, 1, 1),
  2785. ('sys_login_step2', 'do_sendsms', 2147483647, 1, 2),
  2786. ('sys_login_step2', 'relocate', 2147483647, 1, 3),
  2787. ('sys_login_step3', 'code', 2147483647, 1, 1),
  2788. ('sys_login_step3', 'back', 2147483647, 1, 2),
  2789. ('sys_login_step3', 'do_checkcode', 2147483647, 1, 3),
  2790. ('sys_login_step3', 'relocate', 2147483647, 1, 4),
  2791. ('sys_account_create', 'name', 2147483647, 1, 1),
  2792. ('sys_account_create', 'email', 2147483647, 1, 2),
  2793. ('sys_account_create', 'password', 2147483647, 1, 3),
  2794. ('sys_account_create', 'receive_news', 2147483647, 1, 4),
  2795. ('sys_account_create', 'do_submit', 2147483647, 1, 5),
  2796. ('sys_account_create', 'agreement', 2147483647, 1, 6),
  2797. ('sys_account_settings_email', 'email', 2147483647, 1, 1),
  2798. ('sys_account_settings_email', 'password_current', 2147483647, 1, 2),
  2799. ('sys_account_settings_email', 'receive_updates', 2147483647, 1, 3),
  2800. ('sys_account_settings_email', 'receive_news', 2147483647, 1, 4),
  2801. ('sys_account_settings_email', 'do_submit', 2147483647, 1, 5),
  2802. ('sys_account_settings_pwd', 'password_current', 2147483647, 1, 1),
  2803. ('sys_account_settings_pwd', 'password', 2147483647, 1, 2),
  2804. ('sys_account_settings_pwd', 'password_confirm', 2147483647, 1, 3),
  2805. ('sys_account_settings_pwd', 'do_submit', 2147483647, 1, 4),
  2806. ('sys_account_settings_del_account', 'delete_content', 2147483647, 1, 0),
  2807. ('sys_account_settings_del_account', 'delete_confirm', 2147483647, 1, 1),
  2808. ('sys_account_settings_del_account', 'password_current', 2147483647, 1, 2),
  2809. ('sys_account_settings_del_account', 'do_submit', 2147483647, 1, 3),
  2810. ('sys_account_settings_info', 'name', 2147483647, 1, 1),
  2811. ('sys_account_settings_info', 'do_submit', 2147483647, 1, 2),
  2812. ('sys_forgot_password', 'email', 2147483647, 1, 1),
  2813. ('sys_forgot_password', 'phone', 2147483647, 1, 2),
  2814. ('sys_forgot_password', 'captcha', 2147483647, 1, 3),
  2815. ('sys_forgot_password', 'do_submit', 2147483647, 1, 4),
  2816. ('sys_confirm_email', 'code', 2147483647, 1, 1),
  2817. ('sys_confirm_email', 'do_submit', 2147483647, 1, 2),
  2818. ('sys_confirm_phone_set_phone', 'phone', 2147483647, 1, 1),
  2819. ('sys_confirm_phone_set_phone', 'do_sendsms', 2147483647, 1, 2),
  2820. ('sys_confirm_phone_confirmation', 'code', 2147483647, 1, 1),
  2821. ('sys_confirm_phone_confirmation', 'do_submit', 2147483647, 1, 2),
  2822. ('sys_unsubscribe_updates', 'id', 2147483647, 1, 1),
  2823. ('sys_unsubscribe_updates', 'code', 2147483647, 1, 2),
  2824. ('sys_unsubscribe_updates', 'receive_updates', 2147483647, 1, 3),
  2825. ('sys_unsubscribe_updates', 'do_submit', 2147483647, 1, 4),
  2826. ('sys_unsubscribe_news', 'id', 2147483647, 1, 1),
  2827. ('sys_unsubscribe_news', 'code', 2147483647, 1, 2),
  2828. ('sys_unsubscribe_news', 'receive_news', 2147483647, 1, 3),
  2829. ('sys_unsubscribe_news', 'do_submit', 2147483647, 1, 4),
  2830. ('sys_comment_post', 'sys', 2147483647, 1, 1),
  2831. ('sys_comment_post', 'id', 2147483647, 1, 2),
  2832. ('sys_comment_post', 'action', 2147483647, 1, 3),
  2833. ('sys_comment_post', 'cmt_id', 2147483647, 0, 4),
  2834. ('sys_comment_post', 'cmt_parent_id', 2147483647, 1, 5),
  2835. ('sys_comment_post', 'cmt_text', 2147483647, 1, 6),
  2836. ('sys_comment_post', 'cmt_image', 2147483647, 1, 7),
  2837. ('sys_comment_post', 'cmt_submit', 2147483647, 1, 8),
  2838. ('sys_comment_edit', 'sys', 2147483647, 1, 1),
  2839. ('sys_comment_edit', 'id', 2147483647, 1, 2),
  2840. ('sys_comment_edit', 'action', 2147483647, 1, 3),
  2841. ('sys_comment_edit', 'cmt_id', 2147483647, 1, 4),
  2842. ('sys_comment_edit', 'cmt_parent_id', 2147483647, 1, 5),
  2843. ('sys_comment_edit', 'cmt_text', 2147483647, 1, 6),
  2844. ('sys_comment_edit', 'cmt_image', 2147483647, 0, 7),
  2845. ('sys_comment_edit', 'cmt_submit', 2147483647, 1, 8),
  2846. ('sys_review_post', 'sys', 2147483647, 1, 1),
  2847. ('sys_review_post', 'id', 2147483647, 1, 2),
  2848. ('sys_review_post', 'action', 2147483647, 1, 3),
  2849. ('sys_review_post', 'cmt_id', 2147483647, 0, 4),
  2850. ('sys_review_post', 'cmt_parent_id', 2147483647, 1, 5),
  2851. ('sys_review_post', 'cmt_text', 2147483647, 1, 6),
  2852. ('sys_review_post', 'cmt_mood', 2147483647, 1, 7),
  2853. ('sys_review_post', 'cmt_image', 2147483647, 1, 8),
  2854. ('sys_review_post', 'cmt_submit', 2147483647, 1, 9),
  2855. ('sys_review_edit', 'sys', 2147483647, 1, 1),
  2856. ('sys_review_edit', 'id', 2147483647, 1, 2),
  2857. ('sys_review_edit', 'action', 2147483647, 1, 3),
  2858. ('sys_review_edit', 'cmt_id', 2147483647, 1, 4),
  2859. ('sys_review_edit', 'cmt_parent_id', 2147483647, 1, 5),
  2860. ('sys_review_edit', 'cmt_text', 2147483647, 1, 6),
  2861. ('sys_review_edit', 'cmt_mood', 2147483647, 1, 7),
  2862. ('sys_review_edit', 'cmt_image', 2147483647, 0, 8),
  2863. ('sys_review_edit', 'cmt_submit', 2147483647, 1, 9),
  2864. ('sys_report_post', 'sys', 2147483647, 1, 1),
  2865. ('sys_report_post', 'object_id', 2147483647, 1, 2),
  2866. ('sys_report_post', 'action', 2147483647, 1, 3),
  2867. ('sys_report_post', 'id', 2147483647, 0, 4),
  2868. ('sys_report_post', 'type', 2147483647, 1, 5),
  2869. ('sys_report_post', 'text', 2147483647, 1, 6),
  2870. ('sys_report_post', 'submit', 2147483647, 1, 7),
  2871. ('sys_privacy_group_custom_manage', 'profile_id', 2147483647, 1, 1),
  2872. ('sys_privacy_group_custom_manage', 'content_id', 2147483647, 1, 2),
  2873. ('sys_privacy_group_custom_manage', 'object', 2147483647, 1, 3),
  2874. ('sys_privacy_group_custom_manage', 'action', 2147483647, 1, 4),
  2875. ('sys_privacy_group_custom_manage', 'group_id', 2147483647, 1, 5),
  2876. ('sys_privacy_group_custom_manage', 'search', 2147483647, 1, 6),
  2877. ('sys_privacy_group_custom_manage', 'list', 2147483647, 1, 7),
  2878. ('sys_privacy_group_custom_manage', 'controls', 2147483647, 1, 8),
  2879. ('sys_privacy_group_custom_manage', 'do_submit', 2147483647, 1, 9),
  2880. ('sys_privacy_group_custom_manage', 'do_cancel', 2147483647, 1, 10);
  2881. CREATE TABLE `sys_form_pre_lists` (
  2882. `id` int(11) NOT NULL AUTO_INCREMENT,
  2883. `module` varchar(32) NOT NULL default '',
  2884. `key` varchar(255) NOT NULL default '',
  2885. `title` varchar(255) NOT NULL default '',
  2886. `use_for_sets` tinyint(4) unsigned NOT NULL default '1',
  2887. `extendable` tinyint(4) unsigned NOT NULL default '1',
  2888. PRIMARY KEY (`id`),
  2889. UNIQUE KEY `key` (`key`(191)),
  2890. FULLTEXT KEY `ModuleAndKey` (`module`(32), `key`(159))
  2891. );
  2892. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`, `extendable`) VALUES
  2893. ('Country', '_adm_form_txt_pre_lists_country', 'system', '0', '1'),
  2894. ('Sex', '_adm_form_txt_pre_lists_sex', 'system', '1', '1'),
  2895. ('Language', '_adm_form_txt_pre_lists_language', 'system', '0', '1'),
  2896. ('sys_report_types', '_sys_pre_lists_report_types', 'system', '0', '0'),
  2897. ('sys_vote_reactions', '_sys_pre_lists_vote_reactions', 'system', '0', '0'),
  2898. ('sys_relations', '_sys_pre_lists_relations', 'system', '0', '1');
  2899. CREATE TABLE `sys_form_pre_values` (
  2900. `id` int(11) NOT NULL AUTO_INCREMENT,
  2901. `Key` varchar(255) NOT NULL default '',
  2902. `Value` varchar(255) NOT NULL default '',
  2903. `Order` int(10) unsigned NOT NULL default '0',
  2904. `LKey` varchar(255) NOT NULL default '',
  2905. `LKey2` varchar(255) NOT NULL default '',
  2906. `Data` text NOT NULL default '',
  2907. PRIMARY KEY (`id`),
  2908. FULLTEXT KEY `KeyAndValue` (`Key`, `Value`)
  2909. );
  2910. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2911. ('Country', 'AF', 1, '__Afghanistan', ''),
  2912. ('Country', 'AX', 2, '__Aland_Islands', ''),
  2913. ('Country', 'AL', 3, '__Albania', ''),
  2914. ('Country', 'DZ', 4, '__Algeria', ''),
  2915. ('Country', 'AS', 5, '__American Samoa', ''),
  2916. ('Country', 'AD', 6, '__Andorra', ''),
  2917. ('Country', 'AO', 7, '__Angola', ''),
  2918. ('Country', 'AI', 8, '__Anguilla', ''),
  2919. ('Country', 'AQ', 9, '__Antarctica', ''),
  2920. ('Country', 'AG', 10, '__Antigua and Barbuda', ''),
  2921. ('Country', 'AR', 11, '__Argentina', ''),
  2922. ('Country', 'AM', 12, '__Armenia', ''),
  2923. ('Country', 'AW', 13, '__Aruba', ''),
  2924. ('Country', 'AU', 14, '__Australia', ''),
  2925. ('Country', 'AT', 15, '__Austria', ''),
  2926. ('Country', 'AZ', 16, '__Azerbaijan', ''),
  2927. ('Country', 'BH', 17, '__Bahrain', ''),
  2928. ('Country', 'BD', 18, '__Bangladesh', ''),
  2929. ('Country', 'BB', 19, '__Barbados', ''),
  2930. ('Country', 'BY', 20, '__Belarus', ''),
  2931. ('Country', 'BE', 21, '__Belgium', ''),
  2932. ('Country', 'BZ', 22, '__Belize', ''),
  2933. ('Country', 'BJ', 23, '__Benin', ''),
  2934. ('Country', 'BM', 24, '__Bermuda', ''),
  2935. ('Country', 'BT', 25, '__Bhutan', ''),
  2936. ('Country', 'BO', 26, '__Bolivia', ''),
  2937. ('Country', 'BA', 27, '__Bosnia and Herzegovina', ''),
  2938. ('Country', 'BW', 28, '__Botswana', ''),
  2939. ('Country', 'BV', 29, '__Bouvet Island', ''),
  2940. ('Country', 'BR', 30, '__Brazil', ''),
  2941. ('Country', 'IO', 31, '__British Indian Ocean Territory', ''),
  2942. ('Country', 'VG', 32, '__British Virgin Islands', ''),
  2943. ('Country', 'BN', 33, '__Brunei Darussalam', ''),
  2944. ('Country', 'BG', 34, '__Bulgaria', ''),
  2945. ('Country', 'BF', 35, '__Burkina Faso', ''),
  2946. ('Country', 'MM', 36, '__Burma', ''),
  2947. ('Country', 'BI', 37, '__Burundi', ''),
  2948. ('Country', 'KH', 38, '__Cambodia', ''),
  2949. ('Country', 'CM', 39, '__Cameroon', ''),
  2950. ('Country', 'CA', 40, '__Canada', ''),
  2951. ('Country', 'CV', 41, '__Cape Verde', ''),
  2952. ('Country', 'KY', 42, '__Cayman Islands', ''),
  2953. ('Country', 'CF', 43, '__Central African Republic', ''),
  2954. ('Country', 'TD', 44, '__Chad', ''),
  2955. ('Country', 'CL', 45, '__Chile', ''),
  2956. ('Country', 'CN', 46, '__China', ''),
  2957. ('Country', 'CX', 47, '__Christmas Island', ''),
  2958. ('Country', 'CC', 48, '__Cocos (Keeling) Islands', ''),
  2959. ('Country', 'CO', 49, '__Colombia', ''),
  2960. ('Country', 'KM', 50, '__Comoros', ''),
  2961. ('Country', 'CD', 51, '__Congo, Democratic Republic of the', ''),
  2962. ('Country', 'CG', 52, '__Congo, Republic of the', ''),
  2963. ('Country', 'CK', 53, '__Cook Islands', ''),
  2964. ('Country', 'CR', 54, '__Costa Rica', ''),
  2965. ('Country', 'CI', 55, '__Cote d''Ivoire', ''),
  2966. ('Country', 'HR', 56, '__Croatia', ''),
  2967. ('Country', 'CU', 57, '__Cuba', ''),
  2968. ('Country', 'CY', 58, '__Cyprus', ''),
  2969. ('Country', 'CZ', 59, '__Czech Republic', ''),
  2970. ('Country', 'DK', 60, '__Denmark', ''),
  2971. ('Country', 'DJ', 61, '__Djibouti', ''),
  2972. ('Country', 'DM', 62, '__Dominica', ''),
  2973. ('Country', 'DO', 63, '__Dominican Republic', ''),
  2974. ('Country', 'TL', 64, '__East Timor', ''),
  2975. ('Country', 'EC', 65, '__Ecuador', ''),
  2976. ('Country', 'EG', 66, '__Egypt', ''),
  2977. ('Country', 'SV', 67, '__El Salvador', ''),
  2978. ('Country', 'GQ', 68, '__Equatorial Guinea', ''),
  2979. ('Country', 'ER', 69, '__Eritrea', ''),
  2980. ('Country', 'EE', 70, '__Estonia', ''),
  2981. ('Country', 'ET', 71, '__Ethiopia', ''),
  2982. ('Country', 'FK', 72, '__Falkland Islands (Islas Malvinas)', ''),
  2983. ('Country', 'FO', 73, '__Faroe Islands', ''),
  2984. ('Country', 'FJ', 74, '__Fiji', ''),
  2985. ('Country', 'FI', 75, '__Finland', ''),
  2986. ('Country', 'FR', 76, '__France', ''),
  2987. ('Country', 'GF', 77, '__French Guiana', ''),
  2988. ('Country', 'PF', 78, '__French Polynesia', ''),
  2989. ('Country', 'TF', 79, '__French Southern and Antarctic Lands', ''),
  2990. ('Country', 'GA', 80, '__Gabon', ''),
  2991. ('Country', 'GE', 81, '__Georgia', ''),
  2992. ('Country', 'DE', 82, '__Germany', ''),
  2993. ('Country', 'GH', 83, '__Ghana', ''),
  2994. ('Country', 'GI', 84, '__Gibraltar', ''),
  2995. ('Country', 'GR', 85, '__Greece', ''),
  2996. ('Country', 'GL', 86, '__Greenland', ''),
  2997. ('Country', 'GD', 87, '__Grenada', ''),
  2998. ('Country', 'GP', 88, '__Guadeloupe', ''),
  2999. ('Country', 'GU', 89, '__Guam', ''),
  3000. ('Country', 'GT', 90, '__Guatemala', ''),
  3001. ('Country', 'GG', 91, '__Guernsey', ''),
  3002. ('Country', 'GN', 92, '__Guinea', ''),
  3003. ('Country', 'GW', 93, '__Guinea-Bissau', ''),
  3004. ('Country', 'GY', 94, '__Guyana', ''),
  3005. ('Country', 'HT', 95, '__Haiti', ''),
  3006. ('Country', 'HM', 96, '__Heard Island and McDonald Islands', ''),
  3007. ('Country', 'VA', 97, '__Holy See (Vatican City)', ''),
  3008. ('Country', 'HN', 98, '__Honduras', ''),
  3009. ('Country', 'HK', 99, '__Hong Kong (SAR)', ''),
  3010. ('Country', 'HU', 100, '__Hungary', ''),
  3011. ('Country', 'IS', 101, '__Iceland', ''),
  3012. ('Country', 'IN', 102, '__India', ''),
  3013. ('Country', 'ID', 103, '__Indonesia', ''),
  3014. ('Country', 'IR', 104, '__Iran', ''),
  3015. ('Country', 'IQ', 105, '__Iraq', ''),
  3016. ('Country', 'IE', 106, '__Ireland', ''),
  3017. ('Country', 'IM', 107, '__Isle_of_Man', ''),
  3018. ('Country', 'IL', 108, '__Israel', ''),
  3019. ('Country', 'IT', 109, '__Italy', ''),
  3020. ('Country', 'JM', 110, '__Jamaica', ''),
  3021. ('Country', 'JP', 111, '__Japan', ''),
  3022. ('Country', 'JE', 112, '__Jersey', ''),
  3023. ('Country', 'JO', 113, '__Jordan', ''),
  3024. ('Country', 'KZ', 114, '__Kazakhstan', ''),
  3025. ('Country', 'KE', 115, '__Kenya', ''),
  3026. ('Country', 'KI', 116, '__Kiribati', ''),
  3027. ('Country', 'KP', 117, '__Korea, North', ''),
  3028. ('Country', 'KR', 118, '__Korea, South', ''),
  3029. ('Country', 'KW', 119, '__Kuwait', ''),
  3030. ('Country', 'KG', 120, '__Kyrgyzstan', ''),
  3031. ('Country', 'LA', 121, '__Laos', ''),
  3032. ('Country', 'LV', 122, '__Latvia', ''),
  3033. ('Country', 'LB', 123, '__Lebanon', ''),
  3034. ('Country', 'LS', 124, '__Lesotho', ''),
  3035. ('Country', 'LR', 125, '__Liberia', ''),
  3036. ('Country', 'LY', 126, '__Libya', ''),
  3037. ('Country', 'LI', 127, '__Liechtenstein', ''),
  3038. ('Country', 'LT', 128, '__Lithuania', ''),
  3039. ('Country', 'LU', 129, '__Luxembourg', ''),
  3040. ('Country', 'MO', 130, '__Macao', ''),
  3041. ('Country', 'MK', 131, '__Macedonia, The Former Yugoslav Republic of', ''),
  3042. ('Country', 'MG', 132, '__Madagascar', ''),
  3043. ('Country', 'MW', 133, '__Malawi', ''),
  3044. ('Country', 'MY', 134, '__Malaysia', ''),
  3045. ('Country', 'MV', 135, '__Maldives', ''),
  3046. ('Country', 'ML', 136, '__Mali', ''),
  3047. ('Country', 'MT', 137, '__Malta', ''),
  3048. ('Country', 'MH', 138, '__Marshall Islands', ''),
  3049. ('Country', 'MQ', 139, '__Martinique', ''),
  3050. ('Country', 'MR', 140, '__Mauritania', ''),
  3051. ('Country', 'MU', 141, '__Mauritius', ''),
  3052. ('Country', 'YT', 142, '__Mayotte', ''),
  3053. ('Country', 'MX', 143, '__Mexico', ''),
  3054. ('Country', 'FM', 144, '__Micronesia, Federated States of', ''),
  3055. ('Country', 'MD', 145, '__Moldova', ''),
  3056. ('Country', 'MC', 146, '__Monaco', ''),
  3057. ('Country', 'MN', 147, '__Mongolia', ''),
  3058. ('Country', 'ME', 148, '__Montenegro', ''),
  3059. ('Country', 'MS', 149, '__Montserrat', ''),
  3060. ('Country', 'MA', 150, '__Morocco', ''),
  3061. ('Country', 'MZ', 151, '__Mozambique', ''),
  3062. ('Country', 'NA', 152, '__Namibia', ''),
  3063. ('Country', 'NR', 153, '__Nauru', ''),
  3064. ('Country', 'NP', 154, '__Nepal', ''),
  3065. ('Country', 'NL', 155, '__Netherlands', ''),
  3066. ('Country', 'AN', 156, '__Netherlands Antilles', ''),
  3067. ('Country', 'NC', 157, '__New Caledonia', ''),
  3068. ('Country', 'NZ', 158, '__New Zealand', ''),
  3069. ('Country', 'NI', 159, '__Nicaragua', ''),
  3070. ('Country', 'NE', 160, '__Niger', ''),
  3071. ('Country', 'NG', 161, '__Nigeria', ''),
  3072. ('Country', 'NU', 162, '__Niue', ''),
  3073. ('Country', 'NF', 163, '__Norfolk Island', ''),
  3074. ('Country', 'MP', 164, '__Northern Mariana Islands', ''),
  3075. ('Country', 'NO', 165, '__Norway', ''),
  3076. ('Country', 'OM', 166, '__Oman', ''),
  3077. ('Country', 'PK', 167, '__Pakistan', ''),
  3078. ('Country', 'PW', 168, '__Palau', ''),
  3079. ('Country', 'PS', 169, '__Palestinian Territory, Occupied', ''),
  3080. ('Country', 'PA', 170, '__Panama', ''),
  3081. ('Country', 'PG', 171, '__Papua New Guinea', ''),
  3082. ('Country', 'PY', 172, '__Paraguay', ''),
  3083. ('Country', 'PE', 173, '__Peru', ''),
  3084. ('Country', 'PH', 174, '__Philippines', ''),
  3085. ('Country', 'PN', 175, '__Pitcairn Islands', ''),
  3086. ('Country', 'PL', 176, '__Poland', ''),
  3087. ('Country', 'PT', 177, '__Portugal', ''),
  3088. ('Country', 'PR', 178, '__Puerto Rico', ''),
  3089. ('Country', 'QA', 179, '__Qatar', ''),
  3090. ('Country', 'RE', 180, '__Reunion', ''),
  3091. ('Country', 'RO', 181, '__Romania', ''),
  3092. ('Country', 'RU', 182, '__Russia', ''),
  3093. ('Country', 'RW', 183, '__Rwanda', ''),
  3094. ('Country', 'SH', 184, '__Saint Helena', ''),
  3095. ('Country', 'KN', 185, '__Saint Kitts and Nevis', ''),
  3096. ('Country', 'LC', 186, '__Saint Lucia', ''),
  3097. ('Country', 'PM', 187, '__Saint Pierre and Miquelon', ''),
  3098. ('Country', 'VC', 188, '__Saint Vincent and the Grenadines', ''),
  3099. ('Country', 'BL', 189, '__Saint_Barthelemy', ''),
  3100. ('Country', 'MF', 190, '__Saint_Martin_French_part', ''),
  3101. ('Country', 'WS', 191, '__Samoa', ''),
  3102. ('Country', 'SM', 192, '__San Marino', ''),
  3103. ('Country', 'ST', 193, '__Sao Tome and Principe', ''),
  3104. ('Country', 'SA', 194, '__Saudi Arabia', ''),
  3105. ('Country', 'SN', 195, '__Senegal', ''),
  3106. ('Country', 'RS', 196, '__Serbia', ''),
  3107. ('Country', 'SC', 197, '__Seychelles', ''),
  3108. ('Country', 'SL', 198, '__Sierra Leone', ''),
  3109. ('Country', 'SG', 199, '__Singapore', ''),
  3110. ('Country', 'SK', 200, '__Slovakia', ''),
  3111. ('Country', 'SI', 201, '__Slovenia', ''),
  3112. ('Country', 'SB', 202, '__Solomon Islands', ''),
  3113. ('Country', 'SO', 203, '__Somalia', ''),
  3114. ('Country', 'ZA', 204, '__South Africa', ''),
  3115. ('Country', 'GS', 205, '__South Georgia and the South Sandwich Islands', ''),
  3116. ('Country', 'ES', 206, '__Spain', ''),
  3117. ('Country', 'LK', 207, '__Sri Lanka', ''),
  3118. ('Country', 'SD', 208, '__Sudan', ''),
  3119. ('Country', 'SR', 209, '__Suriname', ''),
  3120. ('Country', 'SJ', 210, '__Svalbard', ''),
  3121. ('Country', 'SZ', 211, '__Swaziland', ''),
  3122. ('Country', 'SE', 212, '__Sweden', ''),
  3123. ('Country', 'CH', 213, '__Switzerland', ''),
  3124. ('Country', 'SY', 214, '__Syria', ''),
  3125. ('Country', 'TW', 215, '__Taiwan', ''),
  3126. ('Country', 'TJ', 216, '__Tajikistan', ''),
  3127. ('Country', 'TZ', 217, '__Tanzania', ''),
  3128. ('Country', 'TH', 218, '__Thailand', ''),
  3129. ('Country', 'BS', 219, '__The Bahamas', ''),
  3130. ('Country', 'GM', 220, '__The Gambia', ''),
  3131. ('Country', 'TG', 221, '__Togo', ''),
  3132. ('Country', 'TK', 222, '__Tokelau', ''),
  3133. ('Country', 'TO', 223, '__Tonga', ''),
  3134. ('Country', 'TT', 224, '__Trinidad and Tobago', ''),
  3135. ('Country', 'TN', 225, '__Tunisia', ''),
  3136. ('Country', 'TR', 226, '__Turkey', ''),
  3137. ('Country', 'TM', 227, '__Turkmenistan', ''),
  3138. ('Country', 'TC', 228, '__Turks and Caicos Islands', ''),
  3139. ('Country', 'TV', 229, '__Tuvalu', ''),
  3140. ('Country', 'UG', 230, '__Uganda', ''),
  3141. ('Country', 'UA', 231, '__Ukraine', ''),
  3142. ('Country', 'AE', 232, '__United Arab Emirates', ''),
  3143. ('Country', 'GB', 233, '__United Kingdom', ''),
  3144. ('Country', 'US', 234, '__United States', ''),
  3145. ('Country', 'UM', 235, '__United States Minor Outlying Islands', ''),
  3146. ('Country', 'UY', 236, '__Uruguay', ''),
  3147. ('Country', 'UZ', 237, '__Uzbekistan', ''),
  3148. ('Country', 'VU', 238, '__Vanuatu', ''),
  3149. ('Country', 'VE', 239, '__Venezuela', ''),
  3150. ('Country', 'VN', 240, '__Vietnam', ''),
  3151. ('Country', 'VI', 241, '__Virgin Islands', ''),
  3152. ('Country', 'WF', 242, '__Wallis and Futuna', ''),
  3153. ('Country', 'EH', 243, '__Western Sahara', ''),
  3154. ('Country', 'YE', 244, '__Yemen', ''),
  3155. ('Country', 'ZM', 245, '__Zambia', ''),
  3156. ('Country', 'ZW', 246, '__Zimbabwe', '');
  3157. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3158. ('Sex', '', 1, '_sys_not_specified', ''),
  3159. ('Sex', '1', 2, '_Male', '_LookinMale'),
  3160. ('Sex', '2', 3, '_Female', '_LookinFemale');
  3161. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3162. ('Language', '1', 1, '__English', ''),
  3163. ('Language', '2', 2, '__Afrikaans', ''),
  3164. ('Language', '3', 3, '__Arabic', ''),
  3165. ('Language', '4', 4, '__Bulgarian', ''),
  3166. ('Language', '5', 5, '__Burmese', ''),
  3167. ('Language', '6', 6, '__Cantonese', ''),
  3168. ('Language', '7', 7, '__Croatian', ''),
  3169. ('Language', '8', 8, '__Danish', ''),
  3170. ('Language', '9', 9, '__Dutch', ''),
  3171. ('Language', '10', 10, '__Esperanto', ''),
  3172. ('Language', '11', 11, '__Estonian', ''),
  3173. ('Language', '12', 12, '__Finnish', ''),
  3174. ('Language', '13', 13, '__French', ''),
  3175. ('Language', '14', 14, '__German', ''),
  3176. ('Language', '15', 15, '__Greek', ''),
  3177. ('Language', '16', 16, '__Gujrati', ''),
  3178. ('Language', '17', 17, '__Hebrew', ''),
  3179. ('Language', '18', 18, '__Hindi', ''),
  3180. ('Language', '19', 19, '__Hungarian', ''),
  3181. ('Language', '20', 20, '__Icelandic', ''),
  3182. ('Language', '21', 21, '__Indian', ''),
  3183. ('Language', '22', 22, '__Indonesian', ''),
  3184. ('Language', '23', 23, '__Italian', ''),
  3185. ('Language', '24', 24, '__Japanese', ''),
  3186. ('Language', '25', 25, '__Korean', ''),
  3187. ('Language', '26', 26, '__Latvian', ''),
  3188. ('Language', '27', 27, '__Lithuanian', ''),
  3189. ('Language', '28', 28, '__Malay', ''),
  3190. ('Language', '29', 29, '__Mandarin', ''),
  3191. ('Language', '30', 30, '__Marathi', ''),
  3192. ('Language', '31', 31, '__Moldovian', ''),
  3193. ('Language', '32', 32, '__Nepalese', ''),
  3194. ('Language', '33', 33, '__Norwegian', ''),
  3195. ('Language', '34', 34, '__Persian', ''),
  3196. ('Language', '35', 35, '__Polish', ''),
  3197. ('Language', '36', 36, '__Portuguese', ''),
  3198. ('Language', '37', 37, '__Punjabi', ''),
  3199. ('Language', '38', 38, '__Romanian', ''),
  3200. ('Language', '39', 39, '__Russian', ''),
  3201. ('Language', '40', 40, '__Serbian', ''),
  3202. ('Language', '41', 41, '__Spanish', ''),
  3203. ('Language', '42', 42, '__Swedish', ''),
  3204. ('Language', '43', 43, '__Tagalog', ''),
  3205. ('Language', '44', 44, '__Taiwanese', ''),
  3206. ('Language', '45', 45, '__Tamil', ''),
  3207. ('Language', '46', 46, '__Telugu', ''),
  3208. ('Language', '47', 47, '__Thai', ''),
  3209. ('Language', '48', 48, '__Tongan', ''),
  3210. ('Language', '49', 49, '__Turkish', ''),
  3211. ('Language', '50', 50, '__Ukrainian', ''),
  3212. ('Language', '51', 51, '__Urdu', ''),
  3213. ('Language', '52', 52, '__Vietnamese', ''),
  3214. ('Language', '53', 53, '__Visayan', '');
  3215. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  3216. ('sys_report_types', 'spam', 1, '_sys_pre_lists_report_types_spam', ''),
  3217. ('sys_report_types', 'scam', 2, '_sys_pre_lists_report_types_scam', ''),
  3218. ('sys_report_types', 'fraud', 3, '_sys_pre_lists_report_types_fraud', ''),
  3219. ('sys_report_types', 'nude', 4, '_sys_pre_lists_report_types_nude', ''),
  3220. ('sys_report_types', 'other', 5, '_sys_pre_lists_report_types_other', '');
  3221. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3222. ('sys_vote_reactions', 'like', 1, '_sys_pre_lists_vote_reactions_like', '', 'a:2:{s:4:"icon";s:9:"thumbs-up";s:6:"weight";s:1:"1";}'),
  3223. ('sys_vote_reactions', 'love', 2, '_sys_pre_lists_vote_reactions_love', '', 'a:2:{s:4:"icon";s:26:"heart sys-colored col-red1";s:6:"weight";s:1:"1";}'),
  3224. ('sys_vote_reactions', 'joy', 3, '_sys_pre_lists_vote_reactions_joy', '', 'a:2:{s:4:"icon";s:32:"grin-squint sys-colored col-red3";s:6:"weight";s:1:"1";}'),
  3225. ('sys_vote_reactions', 'surprise', 4, '_sys_pre_lists_vote_reactions_surprise', '', 'a:2:{s:4:"icon";s:29:"surprise sys-colored col-red3";s:6:"weight";s:1:"1";}'),
  3226. ('sys_vote_reactions', 'sadness', 5, '_sys_pre_lists_vote_reactions_sadness', '', 'a:2:{s:4:"icon";s:29:"sad-tear sys-colored col-red3";s:6:"weight";s:1:"1";}'),
  3227. ('sys_vote_reactions', 'anger', 6, '_sys_pre_lists_vote_reactions_anger', '', 'a:2:{s:4:"icon";s:26:"angry sys-colored col-red3";s:6:"weight";s:1:"1";}');
  3228. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`, `Data`) VALUES
  3229. ('sys_relations', '1', 1, '_sys_pre_lists_relations_husband', '', 'a:1:{i:0;s:1:"2";}'),
  3230. ('sys_relations', '2', 2, '_sys_pre_lists_relations_wife', '', 'a:1:{i:0;s:1:"1";}'),
  3231. ('sys_relations', '3', 3, '_sys_pre_lists_relations_father', '', 'a:2:{i:0;s:1:"5";i:1;s:1:"6";}'),
  3232. ('sys_relations', '4', 4, '_sys_pre_lists_relations_mother', '', 'a:2:{i:0;s:1:"5";i:1;s:1:"6";}'),
  3233. ('sys_relations', '5', 5, '_sys_pre_lists_relations_son', '', 'a:2:{i:0;s:1:"3";i:1;s:1:"4";}'),
  3234. ('sys_relations', '6', 6, '_sys_pre_lists_relations_daughter', '', 'a:2:{i:0;s:1:"3";i:1;s:1:"4";}'),
  3235. ('sys_relations', '7', 7, '_sys_pre_lists_relations_brother', '', 'a:2:{i:0;s:1:"7";i:1;s:1:"8";}'),
  3236. ('sys_relations', '8', 8, '_sys_pre_lists_relations_sister', '', 'a:2:{i:0;s:1:"7";i:1;s:1:"8";}');
  3237. -- --------------------------------------------------------
  3238. CREATE TABLE IF NOT EXISTS `sys_menu_templates` (
  3239. `id` int(11) NOT NULL AUTO_INCREMENT,
  3240. `template` varchar(255) NOT NULL,
  3241. `title` varchar(255) NOT NULL,
  3242. `visible` tinyint(4) NOT NULL DEFAULT '1',
  3243. PRIMARY KEY (`id`)
  3244. );
  3245. INSERT INTO `sys_menu_templates` (`id`, `template`, `title`, `visible`) VALUES
  3246. (1, 'menu_empty.html', '_sys_menu_template_title_empty', 1),
  3247. (2, 'menu_footer.html', '_sys_menu_template_title_footer', 0),
  3248. (3, 'menu_horizontal.html', '_sys_menu_template_title_hor', 1),
  3249. (4, 'menu_vertical_lite.html', '_sys_menu_template_title_ver_lite', 1),
  3250. (5, 'menu_toolbar.html', '_sys_menu_template_title_toolbar', 0),
  3251. (6, 'menu_vertical.html', '_sys_menu_template_title_ver', 1),
  3252. (7, 'menu_floating_blocks.html', '_sys_menu_template_title_floating_blocks', 1),
  3253. (8, 'menu_main_submenu.html', '_sys_menu_template_title_main_submenu', 8),
  3254. (9, 'menu_buttons_hor.html', '_sys_menu_template_title_buttons_hor', 1),
  3255. (10, 'menu_inline.html', '_sys_menu_template_title_inline', 1),
  3256. (11, 'menu_interactive_vertical.html', '_sys_menu_template_title_interactive_vertical', 0),
  3257. (12, 'menu_account_popup.html', '_sys_menu_template_title_account_popup', 0),
  3258. (13, 'menu_account_notifications.html', '_sys_menu_template_title_account_notifications', 0),
  3259. (14, 'menu_floating_blocks_big.html', '_sys_menu_template_title_floating_blocks_big', 1),
  3260. (15, 'menu_custom_hor.html', '_sys_menu_template_title_custom_hor', 0),
  3261. (16, 'menu_buttons_ver.html', '_sys_menu_template_title_buttons_ver', 1),
  3262. (17, 'menu_inline_sbtn.html', '_sys_menu_template_title_inline_sbtn', 1),
  3263. (19, 'menu_floating_blocks_wide.html', '_sys_menu_template_title_floating_blocks_wide', 0),
  3264. (20, 'menu_custom_ver.html', '_sys_menu_template_title_custom_ver', 0),
  3265. (21, 'menu_profile_stats.html', '_sys_menu_template_title_profile_stats', 0),
  3266. (22, 'menu_interactive.html', '_sys_menu_template_title_interactive', 0),
  3267. (23, 'menu_buttons_icon_hor.html', '_sys_menu_template_title_buttons_icon_hor', 1),
  3268. (24, 'menu_floating_blocks_dash.html', '_sys_menu_template_title_floating_blocks_dash', 0);
  3269. CREATE TABLE IF NOT EXISTS `sys_objects_menu` (
  3270. `id` int(11) NOT NULL AUTO_INCREMENT,
  3271. `object` varchar(64) NOT NULL,
  3272. `title` varchar(255) NOT NULL,
  3273. `set_name` varchar(64) NOT NULL,
  3274. `module` varchar(32) NOT NULL,
  3275. `template_id` int(11) NOT NULL,
  3276. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3277. `active` tinyint(4) NOT NULL DEFAULT '0',
  3278. `override_class_name` varchar(255) NOT NULL,
  3279. `override_class_file` varchar(255) NOT NULL,
  3280. PRIMARY KEY (`id`),
  3281. UNIQUE KEY `object` (`object`)
  3282. );
  3283. INSERT INTO `sys_objects_menu` (`object`, `title`, `set_name`, `module`, `template_id`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  3284. ('sys_site', '_sys_menu_title_main', 'sys_site', 'system', 14, 0, 1, 'BxTemplMenuSite', ''),
  3285. ('sys_homepage', '_sys_menu_title_homepage', 'sys_homepage', 'system', 14, 0, 1, 'BxTemplMenuHomepage', ''),
  3286. ('sys_homepage_submenu', '_sys_menu_title_homepage_submenu', 'sys_homepage_submenu', 'system', 8, 0, 1, '', ''),
  3287. ('sys_site_submenu', '_sys_menu_title_submenu', 'sys_site', 'system', 1, 0, 1, 'BxTemplMenuSubmenu', ''),
  3288. ('sys_footer', '_sys_menu_title_footer', 'sys_footer', 'system', 2, 0, 1, 'BxTemplMenuFooter', ''),
  3289. ('sys_toolbar_site', '_sys_menu_title_toolbar_site', 'sys_toolbar_site', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  3290. ('sys_toolbar_member', '_sys_menu_title_toolbar_member', 'sys_toolbar_member', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  3291. ('sys_add_content', '_sys_menu_title_add_content', 'sys_add_content_links', 'system', 14, 0, 1, 'BxTemplMenuSite', ''),
  3292. ('sys_add_profile', '_sys_menu_title_add_profile', 'sys_add_profile_links', 'system', 14, 0, 1, 'BxTemplMenuProfileAdd', ''),
  3293. ('sys_add_profile_vertical', '_sys_menu_title_add_profile_vertical', 'sys_add_profile_links', 'system', 6, 0, 1, 'BxTemplMenuProfileAdd', ''),
  3294. ('sys_account_dashboard', '_sys_menu_title_account_dashboard', 'sys_account_dashboard', 'system', 8, 0, 1, 'BxTemplMenuAccountDashboard', ''),
  3295. ('sys_account_dashboard_manage_tools', '_sys_menu_title_account_dashboard_manage_tools', 'sys_account_dashboard_manage_tools', 'system', 24, 0, 1, 'BxTemplMenuDashboardManageTools', ''),
  3296. ('sys_account_settings_submenu', '_sys_menu_title_account_settings', 'sys_account_settings', 'system', 8, 0, 1, '', ''),
  3297. ('sys_account_settings_more', '_sys_menu_title_account_settings_more', 'sys_account_settings_more', 'system', 4, 0, 1, '', ''),
  3298. ('sys_profiles_create', '_sys_menu_title_profiles_create', 'sys_profiles_create', 'system', 4, 0, 1, '', ''),
  3299. ('sys_cmts_item_manage', '_sys_menu_title_cmts_item_manage', 'sys_cmts_item_manage', 'system', 20, 0, 1, 'BxTemplCmtsMenuManage', ''),
  3300. ('sys_cmts_item_actions', '_sys_menu_title_cmts_item_actions', 'sys_cmts_item_actions', 'system', 15, 0, 1, 'BxTemplCmtsMenuActions', ''),
  3301. ('sys_cmts_item_meta', '_sys_menu_title_cmts_item_meta', 'sys_cmts_item_meta', 'system', 15, 0, 1, 'BxTemplCmtsMenuUnitMeta', ''),
  3302. ('sys_account_popup', '_sys_menu_title_account_popup', '', 'system', 12, 0, 1, 'BxTemplMenuAccountPopup', ''),
  3303. ('sys_account_notifications', '_sys_menu_title_account_notifications', 'sys_account_notifications', 'system', 19, 0, 1, 'BxTemplMenuAccountNotifications', ''),
  3304. ('sys_profile_stats', '_sys_menu_title_profile_stats', 'sys_profile_stats', 'system', 21, 0, 1, 'BxTemplMenuProfileStats', ''),
  3305. ('sys_switch_language_popup', '_sys_menu_title_switch_language_popup', 'sys_switch_language', 'system', 6, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  3306. ('sys_switch_language_inline', '_sys_menu_title_switch_language_inline', 'sys_switch_language', 'system', 3, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  3307. ('sys_switch_template', '_sys_menu_title_switch_template', 'sys_switch_template', 'system', 6, 0, 1, 'BxTemplMenuSwitchTemplate', ''),
  3308. ('sys_set_acl_level', '_sys_menu_title_set_acl_level', '', 'system', 6, 0, 1, 'BxTemplMenuSetAclLevel', ''),
  3309. ('sys_social_sharing', '_sys_menu_title_social_sharing', 'sys_social_sharing', 'system', 23, 0, 1, 'BxTemplMenuSocialSharing', ''),
  3310. ('sys_create_post', '_sys_menu_title_create_post', 'sys_add_content_links', 'system', 22, 0, 1, 'BxTemplMenuCreatePost', ''),
  3311. ('sys_add_relation', '_sys_menu_title_add_relation', '', 'system', 6, 0, 1, 'BxTemplMenuAddRelation', ''),
  3312. ('sys_vote_reactions_do', '_sys_menu_title_vote_reactions_do', '', 'system', 3, 0, 1, 'BxTemplVoteReactionsMenuDo', '');
  3313. CREATE TABLE IF NOT EXISTS `sys_menu_sets` (
  3314. `set_name` varchar(64) NOT NULL,
  3315. `module` varchar(32) NOT NULL,
  3316. `title` varchar(255) NOT NULL,
  3317. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3318. PRIMARY KEY (`set_name`)
  3319. );
  3320. INSERT INTO `sys_menu_sets` (`set_name`, `module`, `title`, `deletable`) VALUES
  3321. ('sys_site', 'system', '_sys_menu_set_title_site', 0),
  3322. ('sys_homepage', 'system', '_sys_menu_set_title_homepage', 0),
  3323. ('sys_homepage_submenu', 'system', '_sys_menu_set_title_homepage_submenu', 0),
  3324. ('sys_footer', 'system', '_sys_menu_set_title_footer', 0),
  3325. ('sys_toolbar_site', 'system', '_sys_menu_set_title_toolbar_site', 0),
  3326. ('sys_toolbar_member', 'system', '_sys_menu_set_title_toolbar_member', 0),
  3327. ('sys_account_notifications', 'system', '_sys_menu_set_title_account_notifications', 0),
  3328. ('sys_add_content_links', 'system', '_sys_menu_set_title_add_content', 0),
  3329. ('sys_add_profile_links', 'system', '_sys_menu_set_title_add_profile', 0),
  3330. ('sys_account_dashboard', 'system', '_sys_menu_set_title_account_dashboard', 0),
  3331. ('sys_account_dashboard_manage_tools', 'system', '_sys_menu_set_title_account_dashboard_manage_tools', 0),
  3332. ('sys_account_settings', 'system', '_sys_menu_set_title_account_settings', 0),
  3333. ('sys_account_settings_more', 'system', '_sys_menu_set_title_account_settings_more', 0),
  3334. ('sys_profiles_create', 'system', '_sys_menu_set_title_profile_create_links', 0),
  3335. ('sys_profile_stats', 'system', '_sys_menu_set_title_profile_stats', 0),
  3336. ('sys_cmts_item_manage', 'system', '_sys_menu_set_title_cmts_item_manage', 0),
  3337. ('sys_cmts_item_actions', 'system', '_sys_menu_set_title_cmts_item_actions', 0),
  3338. ('sys_cmts_item_meta', 'system', '_sys_menu_set_title_cmts_item_meta', 0),
  3339. ('sys_switch_language', 'system', '_sys_menu_set_title_switch_language', 0),
  3340. ('sys_switch_template', 'system', '_sys_menu_set_title_switch_template', 0),
  3341. ('sys_social_sharing', 'system', '_sys_menu_set_title_sys_social_sharing', 0);
  3342. CREATE TABLE IF NOT EXISTS `sys_menu_items` (
  3343. `id` int(11) NOT NULL AUTO_INCREMENT,
  3344. `set_name` varchar(64) NOT NULL,
  3345. `module` varchar(32) NOT NULL,
  3346. `name` varchar(255) NOT NULL,
  3347. `title_system` varchar(255) NOT NULL,
  3348. `title` varchar(255) NOT NULL,
  3349. `link` varchar(255) NOT NULL,
  3350. `onclick` varchar(255) NOT NULL,
  3351. `target` varchar(255) NOT NULL,
  3352. `icon` varchar(255) NOT NULL,
  3353. `addon` text NOT NULL,
  3354. `submenu_object` varchar(64) NOT NULL,
  3355. `submenu_popup` tinyint(4) NOT NULL DEFAULT '0',
  3356. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3357. `visibility_custom` text NOT NULL,
  3358. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  3359. `active` tinyint(4) NOT NULL DEFAULT '1',
  3360. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  3361. `editable` tinyint(4) NOT NULL DEFAULT '1',
  3362. `order` int(11) NOT NULL,
  3363. PRIMARY KEY (`id`)
  3364. );
  3365. -- site menu
  3366. 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
  3367. ('sys_site', 'system', 'home', '_sys_menu_item_title_system_home', '_sys_menu_item_title_home', 'index.php', '', '', 'home col-gray-dark', '', 2147483647, 1, 1, 1),
  3368. ('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),
  3369. ('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);
  3370. -- homepage submenu
  3371. 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
  3372. ('sys_homepage_submenu', 'system', 'home', '_sys_menu_item_title_system_home', '_sys_menu_item_title_home', 'index.php', '', '', 'bolt', '', '', 2147483647, '', 0, 1, 1),
  3373. ('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),
  3374. ('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),
  3375. ('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);
  3376. -- footer menu
  3377. 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
  3378. ('sys_footer', 'system', 'about', '_sys_menu_item_title_system_about', '_sys_menu_item_title_about', 'page.php?i=about', '', '', '', '', 2147483647, 1, 1, 1),
  3379. ('sys_footer', 'system', 'terms', '_sys_menu_item_title_system_terms', '_sys_menu_item_title_terms', 'page.php?i=terms', '', '', '', '', 2147483647, 1, 1, 2),
  3380. ('sys_footer', 'system', 'privacy', '_sys_menu_item_title_system_privacy', '_sys_menu_item_title_privacy', 'page.php?i=privacy', '', '', '', '', 2147483647, 1, 1, 3),
  3381. ('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),
  3382. ('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),
  3383. ('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),
  3384. ('sys_footer', 'system', 'powered_by', '_sys_menu_item_title_system_powered_by', '', 'https://una.io', '', '_blank', 'una.png', '', 2147483647, 1, 1, 9999);
  3385. -- site toolbar menu
  3386. 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
  3387. ('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),
  3388. ('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);
  3389. -- member toolbar menu
  3390. INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `submenu_popup`, `visible_for_levels`, `active`, `copyable`, `order`) VALUES
  3391. ('sys_toolbar_member', 'system', 'add-content', '_sys_menu_item_title_system_add_content', '', 'javascript:void(0);', 'bx_menu_slide_inline(\'#bx-sliding-menu-sys_add_content\', this, \'site\');', '', 'plus', '', '', 0, 510, 1, 1, 0),
  3392. ('sys_toolbar_member', 'system', 'account', '_sys_menu_item_title_system_account_menu', '_sys_menu_item_title_account_menu', 'javascript:void(0);', 'bx_menu_slide_inline(''#bx-sliding-menu-account'', this, ''site'');', '', 'user', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:21:"profile_notifications";s:5:"class";s:20:"TemplServiceProfiles";}', 'sys_account_popup', 1, 510, 1, 0, 1),
  3393. ('sys_toolbar_member', 'system', 'login', '_sys_menu_item_title_system_login', '', 'page.php?i=login', '', '', 'user', '', '', 0, 1, 1, 0, 2);
  3394. -- notifications menu in account popup
  3395. 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
  3396. ('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),
  3397. ('sys_account_notifications', 'system', 'profile', '_sys_menu_item_title_system_profile', '_sys_menu_item_title_profile', '{member_url}', '', '', 'user', '', '', 2147483644, 1, 1, 2),
  3398. ('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),
  3399. ('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),
  3400. ('sys_account_notifications', 'system', 'studio', '_sys_menu_item_title_system_studio', '_sys_menu_item_title_studio', '{studio_url}', '', '', 'wrench', '', '', 2147483646, 1, 0, 5),
  3401. ('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),
  3402. ('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),
  3403. ('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);
  3404. -- account settings menu
  3405. 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
  3406. ('sys_account_settings', 'system', 'account-settings-profile-context', '_sys_menu_item_title_system_account_profile_context', '_sys_menu_item_title_account_profile_context', 'page.php?i=account-profile-switcher', '', '', 'user', '', 2147483646, 1, 1, 1),
  3407. ('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),
  3408. ('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),
  3409. ('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),
  3410. ('sys_account_settings', 'system', 'account-settings-more', '_sys_menu_item_title_system_more', '_sys_menu_item_title_more', 'javascript:void(0);', 'bx_menu_popup(''sys_account_settings_more'', this);', '', '', '', 2147483647, 1, 1, 9999);
  3411. -- account settings menu more
  3412. 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
  3413. ('sys_account_settings_more', 'system', 'account-settings-delete', '_sys_menu_item_title_system_account_settings_delete', '_sys_menu_item_title_account_settings_delete', 'page.php?i=account-settings-delete', '', '', 'remove', '', 2147483646, 1, 1, 1);
  3414. -- account dashboard
  3415. 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
  3416. ('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),
  3417. ('sys_account_dashboard', 'system', 'dashboard-subscriptions', '_sys_menu_item_title_system_subscriptions', '_sys_menu_item_title_subscriptions', 'subscriptions.php', '', '', 'money col-blue3', '', '', 2147483646, 1, 1, 2),
  3418. ('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);
  3419. -- comment manage menu
  3420. 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
  3421. ('sys_cmts_item_manage', 'system', 'item-report', '_sys_menu_item_title_system_cmts_item_report', '', 'javascript:void(0)', '', '', '', '', 2147483647, 1, 0, 0),
  3422. ('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),
  3423. ('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);
  3424. -- comment actions menu
  3425. 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
  3426. ('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),
  3427. ('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),
  3428. ('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),
  3429. ('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),
  3430. ('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),
  3431. ('sys_cmts_item_actions', 'system', 'item-more', '_sys_menu_item_title_system_cmts_item_more', '_sys_menu_item_title_cmts_item_more', 'javascript:void(0)', 'bx_menu_popup(''sys_cmts_item_manage'', this, {''id'':''sys_cmts_item_manage_{cmt_system}_{cmt_id}''}, {cmt_system:''{cmt_system}'', cmt_object_id:{cmt_object_id}, cmt_id:{cmt_id}});', '', 'ellipsis-h', '', 'sys_cmts_item_manage', 1, 2147483647, 1, 0, 1, 5);
  3432. -- comment meta info menu
  3433. 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
  3434. ('sys_cmts_item_meta', 'system', 'author', '_sys_menu_item_title_system_sm_author', '_sys_menu_item_title_sm_author', '', '', '', '', '', '', 0, 2147483647, 1, 0, 1, 1),
  3435. ('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),
  3436. ('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);
  3437. -- social sharing menu
  3438. 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
  3439. ('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),
  3440. ('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),
  3441. ('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);
  3442. -- dashboard manage tools
  3443. 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
  3444. ('sys_account_dashboard_manage_tools', 'system', 'cmts-administration', '_sys_menu_item_title_system_cmts_administration', '_sys_menu_item_title_cmts_administration', 'page.php?i=cmts-administration', '', '', 'comments', 'a:2:{s:6:"module";s:6:"system";s:6:"method";s:27:"get_menu_addon_manage_tools";}', '', 192, 1, 0, 1);
  3445. -- profile stats
  3446. 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
  3447. ('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);
  3448. -- --------------------------------------------------------
  3449. CREATE TABLE IF NOT EXISTS `sys_objects_grid` (
  3450. `id` int(11) NOT NULL AUTO_INCREMENT,
  3451. `object` varchar(64) NOT NULL,
  3452. `source_type` enum('Array','Sql') NOT NULL,
  3453. `source` text NOT NULL,
  3454. `table` varchar(255) NOT NULL,
  3455. `field_id` varchar(255) NOT NULL,
  3456. `field_order` varchar(255) NOT NULL,
  3457. `field_active` varchar(255) NOT NULL,
  3458. `order_get_field` varchar(255) NOT NULL DEFAULT 'order_field',
  3459. `order_get_dir` varchar(255) NOT NULL DEFAULT 'order_dir',
  3460. `paginate_url` varchar(255) NOT NULL,
  3461. `paginate_per_page` int(11) NOT NULL DEFAULT '10',
  3462. `paginate_simple` varchar(255) DEFAULT NULL,
  3463. `paginate_get_start` varchar(255) NOT NULL,
  3464. `paginate_get_per_page` varchar(255) NOT NULL,
  3465. `filter_fields` text NOT NULL,
  3466. `filter_fields_translatable` text NOT NULL,
  3467. `filter_mode` enum('like','fulltext','auto') NOT NULL DEFAULT 'auto',
  3468. `filter_get` varchar(255) NOT NULL DEFAULT 'filter',
  3469. `sorting_fields` text NOT NULL,
  3470. `sorting_fields_translatable` text NOT NULL,
  3471. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3472. `responsive` tinyint(4) NOT NULL DEFAULT '1',
  3473. `override_class_name` varchar(255) NOT NULL,
  3474. `override_class_file` varchar(255) NOT NULL,
  3475. PRIMARY KEY (`id`),
  3476. UNIQUE KEY `object` (`object`)
  3477. );
  3478. -- GRIDS: studio
  3479. 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
  3480. ('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', ''),
  3481. ('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', ''),
  3482. ('sys_studio_acl', 'Sql', 'SELECT * FROM `sys_acl_levels` WHERE 1 ', 'sys_acl_levels', 'ID', 'Order', 'Active', '', 100, NULL, 'start', '', 'Description', 'Name', 'auto', '', '', 'BxTemplStudioPermissionsLevels', ''),
  3483. ('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', ''),
  3484. ('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', ''),
  3485. ('sys_studio_nav_sets', 'Sql', 'SELECT * FROM `sys_menu_sets` WHERE 1 ', 'sys_menu_sets', 'set_name', '', '', '', 100, NULL, 'start', '', '', 'title', 'auto', '', '', 'BxTemplStudioNavigationSets', ''),
  3486. ('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', ''),
  3487. ('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', ''),
  3488. ('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', ''),
  3489. ('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', ''),
  3490. ('sys_studio_forms_fields', 'Sql', 'SELECT `tdi`.`id` AS `id`, `ti`.`caption_system` AS `caption_system`, `ti`.`type` AS `type`, `ti`.`module` AS `module`, `tdi`.`visible_for_levels` AS `visible_for_levels`, `tdi`.`active` AS `active`, `ti`.`editable` AS `editable`, `ti`.`deletable` AS `deletable`, `tdi`.`order` AS `order` FROM `sys_form_display_inputs` AS `tdi` LEFT JOIN `sys_form_inputs` AS `ti` ON `tdi`.`input_name`=`ti`.`name` AND `ti`.`object`=? WHERE 1 AND `tdi`.`display_name`=?', 'sys_form_display_inputs', 'id', 'order', 'active', '', 100, NULL, 'start', '', 'ti`.`type', 'ti`.`caption_system', 'like', '', '', 'BxTemplStudioFormsFields', ''),
  3491. ('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', ''),
  3492. ('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', ''),
  3493. ('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', ''),
  3494. ('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', ''),
  3495. ('sys_studio_labels', 'Sql', 'SELECT * FROM `sys_labels` WHERE 1 ', 'sys_labels', 'id', 'order', '', '', 100, NULL, 'start', '', 'value', '', 'like', 'value', '', 'BxTemplStudioFormsLabels', ''),
  3496. ('sys_studio_categories', 'Sql', 'SELECT * FROM `sys_categories` WHERE 1 ', 'sys_categories', 'id', 'added', 'status', '', 20, NULL, 'start', '', 'value', '', 'like', '', '', 'BxTemplStudioFormsCategories', ''),
  3497. ('sys_studio_audit', 'Sql', 'SELECT * FROM `sys_audit` WHERE 1 ', 'sys_audit', 'id', 'added', '', '', 20, NULL, 'start', '', 'value', '', 'like', '', '', 'BxTemplStudioAuditGrid', '');
  3498. CREATE TABLE IF NOT EXISTS `sys_grid_fields` (
  3499. `object` varchar(64) NOT NULL,
  3500. `name` varchar(255) NOT NULL,
  3501. `title` varchar(255) NOT NULL,
  3502. `width` varchar(16) NOT NULL,
  3503. `translatable` tinyint(4) NOT NULL DEFAULT '0',
  3504. `chars_limit` int(11) NOT NULL DEFAULT '0',
  3505. `params` text NOT NULL,
  3506. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  3507. `order` int(11) NOT NULL,
  3508. UNIQUE KEY `object_name` (`object`(64),`name`(127))
  3509. );
  3510. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  3511. ('sys_studio_lang_keys', 'checkbox', 'Select', '1%', 0, '', '', 1),
  3512. ('sys_studio_lang_keys', 'key', '_adm_pgt_txt_key', '24%', 0, '20', '', 2),
  3513. ('sys_studio_lang_keys', 'module', '_adm_pgt_txt_module', '15%', 0, '12', '', 3),
  3514. ('sys_studio_lang_keys', 'string', '_adm_pgt_txt_text', '30%', 0, '30', '', 4),
  3515. ('sys_studio_lang_keys', 'languages', '_adm_pgt_txt_languages', '10%', 0, '', '', 5),
  3516. ('sys_studio_lang_keys', 'actions', '', '20%', 0, '', '', 6),
  3517. ('sys_studio_lang_etemplates', 'NameSystem', '_adm_pgt_txt_etemplates_gl_name_system', '60%', 1, '58', '', 1),
  3518. ('sys_studio_lang_etemplates', 'Module', '_adm_pgt_txt_etemplates_gl_module', '20%', 0, '18', '', 2),
  3519. ('sys_studio_lang_etemplates', 'actions', '', '20%', 0, '', '', 3),
  3520. ('sys_studio_acl', 'Order', '', '1%', 0, '', '', 1),
  3521. ('sys_studio_acl', 'switcher', '_adm_prm_txt_enable', '5%', 0, '', '', 2),
  3522. ('sys_studio_acl', 'Icon', '_adm_prm_txt_icon', '5%', 0, '', '', 3),
  3523. ('sys_studio_acl', 'Name', '_adm_prm_txt_title', '29%', 1, '15', '', 4),
  3524. ('sys_studio_acl', 'ActionsList', '_adm_prm_txt_actions', '10%', 0, '', '', 5),
  3525. ('sys_studio_acl', 'QuotaSize', '_adm_prm_txt_storage', '10%', 0, '', '', 6),
  3526. ('sys_studio_acl', 'QuotaMaxFileSize', '_adm_prm_txt_max_file_size', '10%', 0, '', '', 7),
  3527. ('sys_studio_acl', 'QuotaNumber', '_adm_prm_txt_max_files', '10%', 0, '', '', 8),
  3528. ('sys_studio_acl', 'actions', '', '20%', 0, '', '', 9),
  3529. ('sys_studio_acl_actions', 'switcher', '_adm_prm_txt_enable', '10%', 0, '', '', 1),
  3530. ('sys_studio_acl_actions', 'Title', '_adm_prm_txt_title', '25%', 1, '25', '', 2),
  3531. ('sys_studio_acl_actions', 'Module', '_adm_prm_txt_module', '20%', 0, '18', '', 3),
  3532. ('sys_studio_acl_actions', 'Desc', '_adm_prm_txt_description', '25%', 0, '25', '', 4),
  3533. ('sys_studio_acl_actions', 'actions', '', '20%', 0, '', '', 5),
  3534. ('sys_studio_nav_menus', 'switcher', '', '10%', 0, '', '', 1),
  3535. ('sys_studio_nav_menus', 'title', '_adm_nav_txt_menus_gl_title', '17%', 0, '15', '', 2),
  3536. ('sys_studio_nav_menus', 'set_title', '_adm_nav_txt_menus_gl_set_title', '17%', 1, '15', '', 3),
  3537. ('sys_studio_nav_menus', 'items', '_adm_nav_txt_menus_gl_items', '10%', 0, '8', '', 4),
  3538. ('sys_studio_nav_menus', 'template_title', '_adm_nav_txt_menus_gl_template_title', '17%', 1, '15', '', 5),
  3539. ('sys_studio_nav_menus', 'module', '_adm_nav_txt_menus_gl_module', '12%', 0, '10', '', 6),
  3540. ('sys_studio_nav_menus', 'actions', '', '17%', 0, '', '', 7),
  3541. ('sys_studio_nav_sets', 'title', '_adm_nav_txt_sets_gl_title', '50%', 1, '48', '', 1),
  3542. ('sys_studio_nav_sets', 'module', '_adm_nav_txt_sets_gl_module', '15%', 0, '13', '', 2),
  3543. ('sys_studio_nav_sets', 'items', '_adm_nav_txt_sets_gl_items', '15%', 0, '13', '', 3),
  3544. ('sys_studio_nav_sets', 'actions', '', '20%', 0, '', '', 4),
  3545. ('sys_studio_nav_items', 'order', '', '1%', 0, '', '', 1),
  3546. ('sys_studio_nav_items', 'switcher', '', '9%', 0, '', '', 2),
  3547. ('sys_studio_nav_items', 'icon', '_adm_nav_txt_items_gl_icon', '5%', 0, '', '', 3),
  3548. ('sys_studio_nav_items', 'title_system', '_adm_nav_txt_items_gl_title_system', '23%', 1, '23', '', 4),
  3549. ('sys_studio_nav_items', 'link', '_adm_nav_txt_items_gl_link', '23%', 0, '23', '', 5),
  3550. ('sys_studio_nav_items', 'module', '_adm_nav_txt_items_gl_module', '12%', 0, '12', '', 6),
  3551. ('sys_studio_nav_items', 'visible_for_levels', '_adm_nav_txt_items_gl_visible', '10%', 0, '10', '', 7),
  3552. ('sys_studio_nav_items', 'actions', '', '17%', 0, '', '', 8),
  3553. ('sys_studio_nav_import', 'icon', '_adm_nav_txt_items_gl_icon', '10%', 0, '', '', 1),
  3554. ('sys_studio_nav_import', 'title_system', '_adm_nav_txt_items_gl_title_system', '30%', 1, '28', '', 2),
  3555. ('sys_studio_nav_import', 'link', '_adm_nav_txt_items_gl_link', '25%', 0, '23', '', 3),
  3556. ('sys_studio_nav_import', 'module', '_adm_nav_txt_items_gl_module', '15%', 0, '13', '', 4),
  3557. ('sys_studio_nav_import', 'actions', '', '20%', 0, '', '', 5),
  3558. ('sys_studio_forms', 'switcher', '', '10%', 0, '', '', 1),
  3559. ('sys_studio_forms', 'title', '_adm_form_txt_forms_gl_title', '40%', 1, '38', '', 2),
  3560. ('sys_studio_forms', 'module', '_adm_form_txt_forms_gl_module', '15%', 0, '13', '', 3),
  3561. ('sys_studio_forms', 'displays', '_adm_form_txt_forms_gl_displays', '15%', 0, '13', '', 4),
  3562. ('sys_studio_forms', 'actions', '', '20%', 0, '', '', 5),
  3563. ('sys_studio_forms_displays', 'display_title', '_adm_form_txt_displays_gl_title', '30%', 1, '48', '', 1),
  3564. ('sys_studio_forms_displays', 'module', '_adm_form_txt_displays_gl_module', '13%', 0, '11', '', 2),
  3565. ('sys_studio_forms_displays', 'form_title', '_adm_form_txt_displays_gl_form', '24%', 1, '22', '', 3),
  3566. ('sys_studio_forms_displays', 'fields', '_adm_form_txt_displays_gl_fields', '13%', 0, '11', '', 4),
  3567. ('sys_studio_forms_displays', 'actions', '', '20%', 0, '', '', 5),
  3568. ('sys_studio_forms_fields', 'order', '', '1%', 0, '', '', 1),
  3569. ('sys_studio_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  3570. ('sys_studio_forms_fields', 'type', '_adm_form_txt_fields_type', '5%', 0, '', '', 3),
  3571. ('sys_studio_forms_fields', 'caption_system', '_adm_form_txt_fields_caption_system', '40%', 1, '38', '', 4),
  3572. ('sys_studio_forms_fields', 'module', '_adm_form_txt_fields_module', '15%', 0, '13', '', 5),
  3573. ('sys_studio_forms_fields', 'visible_for_levels', '_adm_form_txt_fields_visible', '10%', 0, '10', '', 6),
  3574. ('sys_studio_forms_fields', 'actions', '', '20%', 0, '', '', 7),
  3575. ('sys_studio_forms_pre_lists', 'title', '_adm_form_txt_pre_lists_gl_title', '45%', 1, '50', '', 1),
  3576. ('sys_studio_forms_pre_lists', 'values', '_adm_form_txt_pre_lists_gl_values', '12%', 0, '10', '', 2),
  3577. ('sys_studio_forms_pre_lists', 'module', '_adm_form_txt_pre_lists_gl_module', '13%', 0, '11', '', 3),
  3578. ('sys_studio_forms_pre_lists', 'use_for_sets', '_adm_form_txt_pre_lists_gl_use_for_sets', '10%', 0, '8', '', 4),
  3579. ('sys_studio_forms_pre_lists', 'actions', '', '20%', 0, '', '', 5),
  3580. ('sys_studio_forms_pre_values', 'checkbox', '', '1%', 0, '', '', 1),
  3581. ('sys_studio_forms_pre_values', 'order', '', '1%', 0, '', '', 2),
  3582. ('sys_studio_forms_pre_values', 'LKey', '_adm_form_txt_pre_values_gl_lkey', '78%', 1, '75', '', 3),
  3583. ('sys_studio_forms_pre_values', 'actions', '', '20%', 0, '', '', 4),
  3584. ('sys_studio_search_forms', 'switcher', '', '10%', 0, '', '', 1),
  3585. ('sys_studio_search_forms', 'title', '_adm_form_txt_search_forms_title', '40%', 1, '38', '', 2),
  3586. ('sys_studio_search_forms', 'module', '_adm_form_txt_search_forms_module', '15%', 0, '13', '', 3),
  3587. ('sys_studio_search_forms', 'fields', '_adm_form_txt_search_forms_fields', '15%', 0, '13', '', 4),
  3588. ('sys_studio_search_forms', 'actions', '', '20%', 0, '', '', 5),
  3589. ('sys_studio_search_forms_fields', 'order', '', '1%', 0, '', '', 1),
  3590. ('sys_studio_search_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  3591. ('sys_studio_search_forms_fields', 'type', '_adm_form_txt_search_forms_fields_type', '15%', 0, '', '', 3),
  3592. ('sys_studio_search_forms_fields', 'caption', '_adm_form_txt_search_forms_fields_caption', '40%', 1, '38', '', 4),
  3593. ('sys_studio_search_forms_fields', 'search_type', '_adm_form_txt_search_forms_fields_search_type', '15%', 0, '', '', 5),
  3594. ('sys_studio_search_forms_fields', 'actions', '', '20%', 0, '', '', 6),
  3595. ('sys_studio_labels', 'order', '', '1%', 0, 0, '', 1),
  3596. ('sys_studio_labels', 'value', '_adm_form_txt_labels_value', '70%', 0, 38, '', 2),
  3597. ('sys_studio_labels', 'items', '_adm_form_txt_labels_items', '10%', 0, 0, '', 3),
  3598. ('sys_studio_labels', 'actions', '', '19%', 0, 0, '', 4),
  3599. ('sys_studio_categories', 'checkbox', '_sys_select', '2%', 0, 0, '', 1),
  3600. ('sys_studio_categories', 'switcher', '_adm_prm_txt_enable', '8%', 0, 0, '', 2),
  3601. ('sys_studio_categories', 'value', '_adm_form_txt_categories_value', '25%', 0, 35, '', 3),
  3602. ('sys_studio_categories', 'module', '_adm_form_txt_categories_module', '15%', 0, 35, '', 4),
  3603. ('sys_studio_categories', 'author', '_adm_form_txt_categories_author', '15%', 0, 35, '', 5),
  3604. ('sys_studio_categories', 'added', '_adm_form_txt_categories_added', '15%', 1, 25, '', 6),
  3605. ('sys_studio_categories', 'actions', '', '20%', 0, 0, '', 7),
  3606. ('sys_studio_audit', 'added', '_adm_form_txt_audit_added', '15%', 1, 25, '', 1),
  3607. ('sys_studio_audit', 'profile', '_adm_form_txt_audit_profile', '15%', 1, 25, '', 2),
  3608. ('sys_studio_audit', 'content', '_adm_form_txt_audit_content', '25%', 1, 25, '', 3),
  3609. ('sys_studio_audit', 'module', '_adm_form_txt_audit_module', '15%', 1, 25, '', 4),
  3610. ('sys_studio_audit', 'context', '_adm_pgt_txt_audit_context', '15%', 1, 25, '', 5),
  3611. ('sys_studio_audit', 'action', '_adm_pgt_txt_audit_action', '15%', 1, 25, '', 6);
  3612. CREATE TABLE IF NOT EXISTS `sys_grid_actions` (
  3613. `object` varchar(64) NOT NULL,
  3614. `type` enum('bulk','single','independent') NOT NULL,
  3615. `name` varchar(255) NOT NULL,
  3616. `title` varchar(255) NOT NULL,
  3617. `icon` varchar(255) NOT NULL,
  3618. `icon_only` tinyint(4) NOT NULL DEFAULT '0',
  3619. `confirm` tinyint(4) NOT NULL DEFAULT '1',
  3620. `order` int(11) NOT NULL,
  3621. UNIQUE KEY `object_name_type` (`object`(64),`type`,`name`(123))
  3622. );
  3623. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`) VALUES
  3624. ('sys_studio_lang_keys', 'bulk', 'delete', '_adm_pgt_btn_delete', '', 1, 1),
  3625. ('sys_studio_lang_keys', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3626. ('sys_studio_lang_keys', 'single', 'delete', '', 'remove', 1, 2),
  3627. ('sys_studio_lang_keys', 'independent', 'add', '_adm_pgt_btn_add_new_key', '', 0, 1),
  3628. ('sys_studio_lang_etemplates', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3629. ('sys_studio_acl', 'independent', 'add', '_adm_prm_btn_add_level', '', 0, 1),
  3630. ('sys_studio_acl', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3631. ('sys_studio_acl', 'single', 'delete', '', 'remove', 1, 2),
  3632. ('sys_studio_acl_actions', 'single', 'options', '', 'cog', 0, 1),
  3633. ('sys_studio_nav_menus', 'independent', 'add', '_adm_nav_btn_menus_create', '', 0, 1),
  3634. ('sys_studio_nav_menus', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3635. ('sys_studio_nav_menus', 'single', 'delete', '', 'remove', 1, 2),
  3636. ('sys_studio_nav_sets', 'independent', 'add', '_adm_nav_btn_sets_create', '', 0, 1),
  3637. ('sys_studio_nav_sets', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3638. ('sys_studio_nav_sets', 'single', 'delete', '', 'remove', 1, 2),
  3639. ('sys_studio_nav_items', 'independent', 'import', '_adm_nav_btn_items_gl_import', '', 0, 1),
  3640. ('sys_studio_nav_items', 'independent', 'add', '_adm_nav_btn_items_gl_create', '', 0, 2),
  3641. ('sys_studio_nav_items', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3642. ('sys_studio_nav_items', 'single', 'delete', '', 'remove', 1, 2),
  3643. ('sys_studio_nav_items', 'single', 'show_to', '_adm_nav_btn_items_gl_visible', '', 0, 3),
  3644. ('sys_studio_nav_import', 'single', 'import', '', 'plus', 0, 1),
  3645. ('sys_studio_nav_import', 'bulk', 'done', '_adm_nav_btn_items_done', '', 0, 1),
  3646. ('sys_studio_forms', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3647. ('sys_studio_forms_displays', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3648. ('sys_studio_forms_fields', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3649. ('sys_studio_forms_fields', 'single', 'delete', '', 'remove', 1, 2),
  3650. ('sys_studio_forms_fields', 'single', 'show_to', '_adm_form_btn_fields_visible', '', 0, 3),
  3651. ('sys_studio_forms_fields', 'independent', 'add', '_adm_form_btn_fields_create', '', 0, 1),
  3652. ('sys_studio_forms_pre_lists', 'independent', 'add', '_adm_form_btn_pre_lists_create', '', 0, 1),
  3653. ('sys_studio_forms_pre_lists', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3654. ('sys_studio_forms_pre_lists', 'single', 'delete', '', 'remove', 1, 2),
  3655. ('sys_studio_forms_pre_values', 'independent', 'add', '_adm_form_btn_pre_values_create', '', 0, 1),
  3656. ('sys_studio_forms_pre_values', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3657. ('sys_studio_forms_pre_values', 'single', 'delete', '', 'remove', 1, 2),
  3658. ('sys_studio_forms_pre_values', 'bulk', 'delete', '_adm_form_btn_pre_values_delete', '', 1, 1),
  3659. ('sys_studio_search_forms', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3660. ('sys_studio_search_forms_fields', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3661. ('sys_studio_search_forms_fields', 'independent', 'reset', '_adm_form_btn_search_forms_fields_reset', '', 0, 1),
  3662. ('sys_studio_labels', 'independent', 'back', '_adm_form_btn_labels_back', '', 0, 1),
  3663. ('sys_studio_labels', 'independent', 'add', '_adm_form_btn_labels_add', '', 0, 2),
  3664. ('sys_studio_labels', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3665. ('sys_studio_labels', 'single', 'delete', '', 'remove', 1, 2),
  3666. ('sys_studio_categories', 'bulk', 'delete', '_adm_form_btn_categories_delete', '', 1, 1),
  3667. ('sys_studio_categories', 'single', 'edit', '', 'pencil-alt', 0, 1),
  3668. ('sys_studio_categories', 'single', 'delete', '', 'remove', 1, 2),
  3669. ('sys_studio_categories', 'independent', 'add', '_adm_form_btn_categories_add', '', 0, 1);
  3670. -- GRIDS: moderation tools
  3671. 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
  3672. ('sys_cmts_administration', 'Sql', '', '', 'cmt_id', 'cmt_time', '', '', 20, NULL, 'start', '', 'cmt_text', '', 'like', 'reports', '', 192, 'BxTemplCmtsGridAdministration', '');
  3673. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  3674. ('sys_cmts_administration', 'checkbox', '_sys_select', '2%', 0, '0', '', 1),
  3675. ('sys_cmts_administration', 'reports', '_sys_txt_reports_title', '5%', 0, '0', '', 2),
  3676. ('sys_cmts_administration', 'cmt_text', '_sys_cmts_administration_grid_column_title_adm_cmt_text', '33%', 0, '25', '', 3),
  3677. ('sys_cmts_administration', 'cmt_time', '_sys_cmts_administration_grid_column_title_adm_cmt_time', '20%', 1, '25', '', 4),
  3678. ('sys_cmts_administration', 'cmt_author_id', '_sys_cmts_administration_grid_column_title_adm_cmt_author_id', '20%', 0, '25', '', 5),
  3679. ('sys_cmts_administration', 'actions', '', '20%', 0, '', '', 6);
  3680. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  3681. ('sys_cmts_administration', 'bulk', 'delete', '_sys_cmts_administration_grid_action_title_adm_delete', '', 0, 1, 1),
  3682. ('sys_cmts_administration', 'single', 'delete', '_sys_cmts_administration_grid_action_title_adm_delete', 'remove', 1, 1, 1);
  3683. -- GRID: Storage managers
  3684. 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
  3685. ('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', ''),
  3686. ('sys_studio_strg_images', 'Sql', 'SELECT * FROM `sys_images` WHERE 1 ', 'sys_images', 'id', '', '', '', 20, NULL, 'start', '', 'file_name', '', 'auto', 'file_name,added', '', 'BxTemplStudioStoragesImages', '');
  3687. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  3688. -- Storages: Files
  3689. ('sys_studio_strg_files', 'checkbox', '', '1%', 0, '', '', 1),
  3690. ('sys_studio_strg_files', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  3691. ('sys_studio_strg_files', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  3692. ('sys_studio_strg_files', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  3693. ('sys_studio_strg_files', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  3694. ('sys_studio_strg_files', 'actions', '', '25%', 0, '', '', 6),
  3695. -- Storages: Images
  3696. ('sys_studio_strg_images', 'checkbox', '', '1%', 0, '', '', 1),
  3697. ('sys_studio_strg_images', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  3698. ('sys_studio_strg_images', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  3699. ('sys_studio_strg_images', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  3700. ('sys_studio_strg_images', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  3701. ('sys_studio_strg_images', 'actions', '', '25%', 0, '', '', 6);
  3702. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  3703. -- Storages: Files
  3704. ('sys_studio_strg_files', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  3705. ('sys_studio_strg_files', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  3706. ('sys_studio_strg_files', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 2),
  3707. ('sys_studio_strg_files', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1),
  3708. -- Storages: Images
  3709. ('sys_studio_strg_images', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  3710. ('sys_studio_strg_images', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  3711. ('sys_studio_strg_images', 'single', 'resize', '_adm_strg_btn_resize', 'compress', 1, 0, 2),
  3712. ('sys_studio_strg_images', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 3),
  3713. ('sys_studio_strg_images', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1);
  3714. -- GRID: connections
  3715. 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
  3716. ('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', ''),
  3717. ('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', ''),
  3718. ('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', ''),
  3719. ('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', ''),
  3720. ('sys_grid_relations', 'Sql', 'SELECT `p`.`id`, `c`.`relation`, `c`.`mutual`, `c`.`added` FROM `sys_profiles` AS `p` INNER JOIN `sys_accounts` AS `a` ON (`a`.`id` = `p`.`account_id`) {join_connections}', 'sys_profiles', 'id', 'c`.`added', '', '', 10, NULL, 'start', '', 'name,email', '', 'auto', '', '', 2147483647, 0, 'BxDolGridRelations', ''),
  3721. ('sys_grid_related_me', 'Sql', 'SELECT `p`.`id`, `c`.`relation`, `c`.`mutual`, `c`.`added` FROM `sys_profiles` AS `p` INNER JOIN `sys_accounts` AS `a` ON (`a`.`id` = `p`.`account_id`) {join_connections}', 'sys_profiles', 'id', 'c`.`added', '', '', 10, NULL, 'start', '', 'name,email', '', 'auto', '', '', 2147483647, 0, 'BxDolGridRelatedMe', '');
  3722. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `params`, `hidden_on`, `order`) VALUES
  3723. ('sys_grid_connections', 'name', '_sys_name', '40%', '', '', 1),
  3724. ('sys_grid_connections', 'info', '', '30%', '', '1', 2),
  3725. ('sys_grid_connections', 'actions', '', '30%', '', '', 3),
  3726. ('sys_grid_connections_requests', 'name', '_sys_name', '40%', '', '', 1),
  3727. ('sys_grid_connections_requests', 'info', '', '30%', '', '1', 2),
  3728. ('sys_grid_connections_requests', 'actions', '', '30%', '', '', 3),
  3729. ('sys_grid_subscriptions', 'name', '_sys_name', '70%', '', '', 1),
  3730. ('sys_grid_subscriptions', 'actions', '', '30%', '', '', 2),
  3731. ('sys_grid_subscribed_me', 'name', '_sys_name', '70%', '', '', 1),
  3732. ('sys_grid_subscribed_me', 'actions', '', '30%', '', '', 2),
  3733. ('sys_grid_relations', 'name', '_sys_name', '40%', '', '', 1),
  3734. ('sys_grid_relations', 'relation', '_sys_relation', '15%', '', '', 2),
  3735. ('sys_grid_relations', 'mutual', '_sys_status', '15%', '', '', 3),
  3736. ('sys_grid_relations', 'actions', '', '30%', '', '', 4),
  3737. ('sys_grid_related_me', 'name', '_sys_name', '40%', '', '', 1),
  3738. ('sys_grid_related_me', 'relation', '_sys_relation', '15%', '', '', 2),
  3739. ('sys_grid_related_me', 'mutual', '_sys_status', '15%', '', '', 3),
  3740. ('sys_grid_related_me', 'actions', '', '30%', '', '', 4);
  3741. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  3742. ('sys_grid_connections', 'single', 'accept', '_sys_accept', '', 0, 0, 1),
  3743. ('sys_grid_connections', 'single', 'delete', '', 'remove', 0, 1, 2),
  3744. ('sys_grid_connections', 'single', 'add_friend', '_sys_add_friend', 'plus', 0, 0, 3),
  3745. ('sys_grid_connections_requests', 'single', 'accept', '_sys_accept', '', 0, 0, 1),
  3746. ('sys_grid_connections_requests', 'single', 'delete', '', 'remove', 0, 1, 2),
  3747. ('sys_grid_subscriptions', 'single', 'subscribe', '_sys_subscribe', 'check', 0, 0, 1),
  3748. ('sys_grid_subscriptions', 'single', 'delete', '', 'remove', 0, 1, 2),
  3749. ('sys_grid_subscribed_me', 'single', 'subscribe', '_sys_subscribe', 'check', 0, 0, 1),
  3750. ('sys_grid_relations', 'single', 'delete', '_Delete', 'remove', 1, 1, 1),
  3751. ('sys_grid_related_me', 'single', 'confirm', '_sys_confirm', 'check-circle', 1, 0, 1),
  3752. ('sys_grid_related_me', 'single', 'decline', '_sys_decline', 'times-circle', 1, 1, 2),
  3753. ('sys_grid_related_me', 'single', 'add', '_sys_add_relation', 'plus-circle', 1, 0, 3);
  3754. -- --------------------------------------------------------
  3755. CREATE TABLE IF NOT EXISTS `sys_objects_connection` (
  3756. `id` int(11) NOT NULL AUTO_INCREMENT,
  3757. `object` varchar(64) NOT NULL,
  3758. `table` varchar(255) NOT NULL,
  3759. `type` enum('one-way','mutual') NOT NULL,
  3760. `override_class_name` varchar(255) NOT NULL,
  3761. `override_class_file` varchar(255) NOT NULL,
  3762. PRIMARY KEY (`id`),
  3763. UNIQUE KEY `object` (`object`)
  3764. );
  3765. INSERT INTO `sys_objects_connection` (`object`, `table`, `type`, `override_class_name`, `override_class_file`) VALUES
  3766. ('sys_profiles_friends', 'sys_profiles_conn_friends', 'mutual', '', ''),
  3767. ('sys_profiles_subscriptions', 'sys_profiles_conn_subscriptions', 'one-way', '', ''),
  3768. ('sys_profiles_relations', 'sys_profiles_conn_relations', 'mutual', 'BxDolRelation', '');
  3769. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_relations` (
  3770. `id` int(11) NOT NULL AUTO_INCREMENT,
  3771. `initiator` int(11) NOT NULL DEFAULT '0',
  3772. `content` int(11) NOT NULL DEFAULT '0',
  3773. `relation` int(11) NOT NULL DEFAULT '0',
  3774. `mutual` tinyint(4) NOT NULL DEFAULT '0',
  3775. `added` int(11) unsigned NOT NULL DEFAULT '0',
  3776. PRIMARY KEY (`id`),
  3777. UNIQUE KEY `initiator` (`initiator`,`content`),
  3778. KEY `content` (`content`)
  3779. );
  3780. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_subscriptions` (
  3781. `id` int(11) NOT NULL AUTO_INCREMENT,
  3782. `initiator` int(11) NOT NULL,
  3783. `content` int(11) NOT NULL,
  3784. `added` int(10) unsigned NOT NULL,
  3785. PRIMARY KEY (`id`),
  3786. UNIQUE KEY `initiator` (`initiator`,`content`),
  3787. KEY `content` (`content`)
  3788. );
  3789. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_friends` (
  3790. `id` int(11) NOT NULL AUTO_INCREMENT,
  3791. `initiator` int(11) NOT NULL,
  3792. `content` int(11) NOT NULL,
  3793. `mutual` tinyint(4) NOT NULL,
  3794. `added` int(10) unsigned NOT NULL,
  3795. PRIMARY KEY (`id`),
  3796. UNIQUE KEY `initiator` (`initiator`,`content`),
  3797. KEY `content` (`content`)
  3798. );
  3799. -- --------------------------------------------------------
  3800. CREATE TABLE IF NOT EXISTS `sys_objects_transcoder` (
  3801. `id` int(11) NOT NULL AUTO_INCREMENT,
  3802. `object` varchar(64) NOT NULL,
  3803. `storage_object` varchar(64) NOT NULL,
  3804. `source_type` enum('Folder','Storage','Proxy') NOT NULL,
  3805. `source_params` text NOT NULL,
  3806. `private` enum('auto','yes','no') NOT NULL,
  3807. `atime_tracking` int(11) NOT NULL,
  3808. `atime_pruning` int(11) NOT NULL,
  3809. `ts` int(11) NOT NULL DEFAULT '0',
  3810. `override_class_name` varchar(255) NOT NULL,
  3811. `override_class_file` varchar(255) NOT NULL,
  3812. PRIMARY KEY (`id`),
  3813. UNIQUE KEY `object` (`object`)
  3814. );
  3815. 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
  3816. ('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', '', ''),
  3817. ('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', '', ''),
  3818. ('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', '', ''),
  3819. ('sys_icon_favicon', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  3820. ('sys_cover', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  3821. ('sys_cover_unit_profile', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  3822. ('sys_cover_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  3823. ('sys_builder_page_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  3824. ('sys_builder_page_embed', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  3825. ('sys_cmts_images_preview', 'sys_cmts_images_preview', 'Storage', 'a:1:{s:6:"object";s:15:"sys_cmts_images";}', 'no', '1', '2592000', '0', '', ''),
  3826. ('sys_custom_images', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:17:"sys_images_custom";}', 'no', '1', '2592000', '0', '', '');
  3827. CREATE TABLE IF NOT EXISTS `sys_transcoder_images_files` (
  3828. `transcoder_object` varchar(64) NOT NULL,
  3829. `file_id` int(11) NOT NULL,
  3830. `handler` varchar(255) NOT NULL,
  3831. `atime` int(11) NOT NULL,
  3832. `data` text NOT NULL,
  3833. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  3834. KEY `atime` (`atime`),
  3835. KEY `file_id` (`file_id`)
  3836. );
  3837. CREATE TABLE IF NOT EXISTS `sys_transcoder_videos_files` (
  3838. `transcoder_object` varchar(64) NOT NULL,
  3839. `file_id` int(11) NOT NULL,
  3840. `handler` varchar(255) NOT NULL,
  3841. `atime` int(11) NOT NULL,
  3842. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  3843. KEY `atime` (`atime`),
  3844. KEY `file_id` (`file_id`)
  3845. );
  3846. CREATE TABLE IF NOT EXISTS `sys_transcoder_audio_files` (
  3847. `transcoder_object` varchar(64) NOT NULL,
  3848. `file_id` int(11) NOT NULL,
  3849. `handler` varchar(255) NOT NULL,
  3850. `atime` int(11) NOT NULL,
  3851. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`handler`(127)),
  3852. KEY `atime` (`atime`),
  3853. KEY `file_id` (`file_id`)
  3854. );
  3855. CREATE TABLE IF NOT EXISTS `sys_transcoder_filters` (
  3856. `transcoder_object` varchar(64) NOT NULL,
  3857. `filter` varchar(32) NOT NULL,
  3858. `filter_params` text NOT NULL,
  3859. `order` int(11) NOT NULL DEFAULT '0',
  3860. KEY `transcoder_object` (`transcoder_object`)
  3861. );
  3862. INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
  3863. ('sys_image_resize', 'ResizeVar', '', '0'),
  3864. ('sys_icon_apple', 'Resize', 'a:4:{s:1:"w";s:3:"152";s:1:"h";s:3:"152";s:13:"square_resize";s:1:"1";s:10:"force_type";s:3:"png";}', '0'),
  3865. ('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'),
  3866. ('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'),
  3867. ('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'),
  3868. ('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'),
  3869. ('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'),
  3870. ('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'),
  3871. ('sys_builder_page_embed', 'ResizeVar', '', '0'),
  3872. ('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'),
  3873. ('sys_custom_images', 'ResizeVar', '', '0');
  3874. CREATE TABLE IF NOT EXISTS `sys_transcoder_queue` (
  3875. `id` int(11) NOT NULL AUTO_INCREMENT,
  3876. `transcoder_object` varchar(64) NOT NULL,
  3877. `profile_id` int(10) unsigned NOT NULL,
  3878. `file_url_source` varchar(255) NOT NULL,
  3879. `file_id_source` varchar(255) NOT NULL,
  3880. `file_url_result` varchar(255) NOT NULL,
  3881. `file_ext_result` varchar(255) NOT NULL,
  3882. `file_id_result` int(11) NOT NULL,
  3883. `server` varchar(255) NOT NULL,
  3884. `status` enum('pending','processing','complete','failed','delete') NOT NULL,
  3885. `added` int(11) NOT NULL,
  3886. `changed` int(11) NOT NULL,
  3887. `log` text NOT NULL,
  3888. PRIMARY KEY (`id`),
  3889. UNIQUE KEY `transcoder_object` (`transcoder_object`(64),`file_id_source`(127))
  3890. );
  3891. CREATE TABLE `sys_transcoder_queue_files` (
  3892. `id` int(11) NOT NULL AUTO_INCREMENT,
  3893. `profile_id` int(10) unsigned NOT NULL,
  3894. `remote_id` varchar(128) NOT NULL,
  3895. `path` varchar(255) NOT NULL,
  3896. `file_name` varchar(255) NOT NULL,
  3897. `mime_type` varchar(128) NOT NULL,
  3898. `ext` varchar(32) NOT NULL,
  3899. `size` int(11) NOT NULL,
  3900. `added` int(11) NOT NULL,
  3901. `modified` int(11) NOT NULL,
  3902. `private` int(11) NOT NULL,
  3903. PRIMARY KEY (`id`),
  3904. UNIQUE KEY `remote_id` (`remote_id`)
  3905. );
  3906. -- --------------------------------------------------------
  3907. CREATE TABLE IF NOT EXISTS `sys_objects_page` (
  3908. `id` int(11) NOT NULL AUTO_INCREMENT,
  3909. `object` varchar(64) NOT NULL,
  3910. `uri` varchar(255) NOT NULL,
  3911. `title_system` varchar(255) NOT NULL,
  3912. `title` varchar(255) NOT NULL,
  3913. `module` varchar(32) NOT NULL,
  3914. `cover` tinyint(4) NOT NULL DEFAULT '1',
  3915. `cover_image` int(11) NOT NULL DEFAULT '0',
  3916. `type_id` int(11) NOT NULL DEFAULT '1',
  3917. `layout_id` int(11) NOT NULL,
  3918. `submenu` varchar(64) NOT NULL DEFAULT '',
  3919. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3920. `visible_for_levels_editable` tinyint(4) NOT NULL DEFAULT '1',
  3921. `url` varchar(255) NOT NULL,
  3922. `meta_description` text NOT NULL,
  3923. `meta_keywords` text NOT NULL,
  3924. `meta_robots` varchar(255) NOT NULL,
  3925. `cache_lifetime` int(11) NOT NULL DEFAULT '0',
  3926. `cache_editable` tinyint(4) NOT NULL DEFAULT '1',
  3927. `deletable` tinyint(1) NOT NULL,
  3928. `override_class_name` varchar(255) NOT NULL,
  3929. `override_class_file` varchar(255) NOT NULL,
  3930. PRIMARY KEY (`id`),
  3931. UNIQUE KEY `object` (`object`),
  3932. UNIQUE KEY `uri` (`uri`(191))
  3933. );
  3934. INSERT INTO `sys_objects_page` (`object`, `uri`, `title_system`, `title`, `module`, `layout_id`, `submenu`, `visible_for_levels`, `visible_for_levels_editable`, `url`, `meta_description`, `meta_keywords`, `meta_robots`, `cache_lifetime`, `cache_editable`, `deletable`, `override_class_name`, `override_class_file`) VALUES
  3935. ('sys_home', 'home', '_sys_page_title_system_home', '_sys_page_title_home', 'system', 5, 'sys_homepage_submenu', 2147483647, 1, '', '', '', '', 0, 1, 0, 'BxTemplPageHome', ''),
  3936. ('sys_about', 'about', '_sys_page_title_system_about', '_sys_page_title_about', 'system', 5, '', 2147483647, 1, 'page.php?i=about', '', '', '', 0, 1, 0, '', ''),
  3937. ('sys_terms', 'terms', '_sys_page_title_system_terms', '_sys_page_title_terms', 'system', 5, '', 2147483647, 1, 'page.php?i=terms', '', '', '', 0, 1, 0, '', ''),
  3938. ('sys_privacy', 'privacy', '_sys_page_title_system_privacy', '_sys_page_title_privacy', 'system', 5, '', 2147483647, 1, 'page.php?i=privacy', '', '', '', 0, 1, 0, '', ''),
  3939. ('sys_explore', 'explore', '_sys_page_title_sys_explore', '_sys_page_title_explore', 'system', 5, 'sys_homepage_submenu', 2147483647, 1, 'page.php?i=explore', '', '', '', 0, 1, 0, 'BxTemplPageHome', ''),
  3940. ('sys_updates', 'updates', '_sys_page_title_sys_updates', '_sys_page_title_updates', 'system', 5, 'sys_homepage_submenu', 2147483647, 1, 'page.php?i=updates', '', '', '', 0, 1, 0, 'BxTemplPageHome', ''),
  3941. ('sys_trends', 'trends', '_sys_page_title_sys_trends', '_sys_page_title_trends', 'system', 5, 'sys_homepage_submenu', 2147483647, 1, 'page.php?i=trends', '', '', '', 0, 1, 0, 'BxTemplPageHome', ''),
  3942. ('sys_dashboard', 'dashboard', '_sys_page_title_system_dashboard', '_sys_page_title_dashboard', 'system', 12, '', 2147483646, 1, 'page.php?i=dashboard', '', '', '', 0, 1, 0, 'BxTemplPageDashboard', ''),
  3943. ('sys_create_account', 'create-account', '_sys_page_title_system_create_account', '_sys_page_title_create_account', 'system', 5, '', 2147483647, 1, 'page.php?i=create-account', '', '', '', 0, 1, 0, '', ''),
  3944. ('sys_login', 'login', '_sys_page_title_system_login', '_sys_page_title_login', 'system', 5, '', 2147483647, 1, 'page.php?i=login', '', '', '', 0, 1, 0, '', ''),
  3945. ('sys_login_step2', 'login-step2', '_sys_page_title_system_login_step2', '_sys_page_title_login_step2', 'system', 5, '', 2147483647, 1, 'page.php?i=login-step2', '', '', '', 0, 1, 0, '', ''),
  3946. ('sys_login_step3', 'login-step3', '_sys_page_title_system_login_step3', '_sys_page_title_login_step3', 'system', 5, '', 2147483647, 1, 'page.php?i=login-step3', '', '', '', 0, 1, 0, '', ''),
  3947. ('sys_forgot_password', 'forgot-password', '_sys_page_title_system_forgot_password', '_sys_page_title_forgot_password', 'system', 5, '', 2147483647, 1, 'page.php?i=forgot-password', '', '', '', 0, 1, 0, '', ''),
  3948. ('sys_confirm_email', 'confirm-email', '_sys_page_title_system_confirm_email', '_sys_page_title_confirm_email', 'system', 5, '', 2147483647, 1, 'page.php?i=confirm-email', '', '', '', 0, 1, 0, '', ''),
  3949. ('sys_confirm_phone', 'confirm-phone', '_sys_page_title_system_confirm_phone', '_sys_page_title_confirm_phone', 'system', 5, '', 2147483647, 1, 'page.php?i=confirm-phone', '', '', '', 0, 1, 0, '', ''),
  3950. ('sys_account_settings_email', 'account-settings-email', '_sys_page_title_system_account_settings_email', '_sys_page_title_account_settings_email', 'system', 5, '', 2147483647, 1, 'member.php', '', '', '', 0, 1, 0, 'BxTemplPageAccount', ''),
  3951. ('sys_account_settings_pwd', 'account-settings-password', '_sys_page_title_system_account_settings_pwd', '_sys_page_title_account_settings_pwd', 'system', 5, '', 2147483647, 1, 'page.php?i=account-settings-pwd', '', '', '', 0, 1, 0, 'BxTemplPageAccount', ''),
  3952. ('sys_account_settings_info', 'account-settings-info', '_sys_page_title_system_account_settings_info', '_sys_page_title_account_settings_info', 'system', 5, '', 2147483647, 1, 'page.php?i=account-settings-info', '', '', '', 0, 1, 0, 'BxTemplPageAccount', ''),
  3953. ('sys_account_settings_delete', 'account-settings-delete', '_sys_page_title_system_account_settings_delete', '_sys_page_title_account_settings_delete', 'system', 5, '', 2147483647, 1, 'page.php?i=account-settings-delete', '', '', '', 0, 1, 0, 'BxTemplPageAccount', ''),
  3954. ('sys_account_profile_switcher', 'account-profile-switcher', '_sys_page_title_system_account_profile_switcher', '_sys_page_title_account_profile_switcher', 'system', 5, '', 2147483647, 1, 'page.php?i=account-profile-switcher', '', '', '', 0, 1, 0, 'BxTemplPageAccount', ''),
  3955. ('sys_unsubscribe_notifications', 'unsubscribe-notifications', '_sys_page_title_system_unsubscribe_notifications', '_sys_page_title_unsubscribe_notifications', 'system', 5, '', 2147483647, 1, 'page.php?i=unsubscribe-notifications', '', '', '', 0, 1, 0, '', ''),
  3956. ('sys_unsubscribe_news', 'unsubscribe-news', '_sys_page_title_system_unsubscribe_news', '_sys_page_title_unsubscribe_news', 'system', 5, '', 2147483647, 1, 'page.php?i=unsubscribe-news', '', '', '', 0, 1, 0, '', ''),
  3957. ('sys_std_dashboard', '', '_sys_page_title_system_studio_dashboard', '_sys_page_title_studio_dashboard', 'system', 4, '', 2147483647, 1, '', '', '', '', 0, 1, 0, '', ''),
  3958. ('sys_cmts_administration' ,'cmts-administration', '_sys_page_title_system_cmts_administration', '_sys_page_title_cmts_administration', 'system', 5, '', 192, 1, 'page.php?i=cmts-administration', '', '', '', 0, 1, 0, '', '');
  3959. CREATE TABLE IF NOT EXISTS `sys_pages_types` (
  3960. `id` int(11) NOT NULL AUTO_INCREMENT,
  3961. `title` varchar(255) NOT NULL,
  3962. `template` varchar(255) NOT NULL,
  3963. `order` int(11) NOT NULL,
  3964. PRIMARY KEY (`id`)
  3965. );
  3966. INSERT INTO `sys_pages_types` (`id`, `title`, `template`, `order`) VALUES
  3967. (1, '_sys_page_type_default', 'default.html', 1),
  3968. (2, '_sys_page_type_default_wo_hf', 'page_2.html', 2);
  3969. CREATE TABLE IF NOT EXISTS `sys_pages_layouts` (
  3970. `id` int(11) NOT NULL AUTO_INCREMENT,
  3971. `name` varchar(64) NOT NULL,
  3972. `icon` varchar(255) NOT NULL,
  3973. `title` varchar(255) NOT NULL,
  3974. `template` varchar(255) NOT NULL,
  3975. `cells_number` int(11) NOT NULL,
  3976. PRIMARY KEY (`id`),
  3977. UNIQUE KEY `name` (`name`)
  3978. );
  3979. INSERT INTO `sys_pages_layouts` (`id`, `name`, `icon`, `title`, `template`, `cells_number`) VALUES
  3980. (1, 'bar_left', 'layout_bar_left.png', '_sys_layout_bar_left', 'layout_bar_left.html', 2),
  3981. (2, 'bar_right', 'layout_bar_right.png', '_sys_layout_bar_right', 'layout_bar_right.html', 2),
  3982. (3, '3_columns', 'layout_3_columns.png', '_sys_layout_3_columns', 'layout_3_columns.html', 3),
  3983. (4, '2_columns', 'layout_2_columns.png', '_sys_layout_2_columns', 'layout_2_columns.html', 2),
  3984. (5, '1_column', 'layout_1_column.png', '_sys_layout_1_column', 'layout_1_column.html', 1),
  3985. (6, 'top_area_bar_left', 'layout_top_area_bar_left.png', '_sys_layout_top_area_bar_left', 'layout_top_area_bar_left.html', 3),
  3986. (7, 'top_area_bar_right', 'layout_top_area_bar_right.png', '_sys_layout_top_area_bar_right', 'layout_top_area_bar_right.html', 3),
  3987. (8, 'top_area_3_columns', 'layout_top_area_3_columns.png', '_sys_layout_top_area_3_columns', 'layout_top_area_3_columns.html', 4),
  3988. (9, 'top_area_2_columns', 'layout_top_area_2_columns.png', '_sys_layout_top_area_2_columns', 'layout_top_area_2_columns.html', 3),
  3989. (10, 'topbottom_area_2_columns', 'layout_topbottom_area_2_columns.png', '_sys_layout_topbottom_area_2_columns', 'layout_topbottom_area_2_columns.html', 4),
  3990. (11, 'bottom_area_2_columns', 'layout_bottom_area_2_columns.png', '_sys_layout_bottom_area_2_columns', 'layout_bottom_area_2_columns.html', 3),
  3991. (12, 'topbottom_area_bar_right', 'layout_topbottom_area_bar_right.png', '_sys_layout_topbottom_area_bar_right', 'layout_topbottom_area_bar_right.html', 4),
  3992. (13, 'topbottom_area_bar_left', 'layout_topbottom_area_bar_left.png', '_sys_layout_topbottom_area_bar_left', 'layout_topbottom_area_bar_left.html', 4),
  3993. (14, 'bar_content_bar', 'layout_bar_content_bar.png', '_sys_layout_bar_content_bar', 'layout_bar_content_bar.html', 3),
  3994. (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);
  3995. CREATE TABLE IF NOT EXISTS `sys_pages_design_boxes` (
  3996. `id` int(11) NOT NULL,
  3997. `title` varchar(255) NOT NULL,
  3998. `template` varchar(255) NOT NULL,
  3999. `order` int(11) NOT NULL,
  4000. PRIMARY KEY (`id`)
  4001. );
  4002. INSERT INTO `sys_pages_design_boxes` (`id`, `title`, `template`, `order`) VALUES
  4003. (0, '_sys_designbox_0', 'designbox_0.html', '2'),
  4004. (1, '_sys_designbox_1', 'designbox_1.html', '8'),
  4005. (2, '_sys_designbox_2', 'designbox_2.html', '1'),
  4006. (3, '_sys_designbox_3', 'designbox_3.html', '4'),
  4007. (4, '_sys_designbox_4', 'designbox_4.html', '6'),
  4008. (10, '_sys_designbox_10', 'designbox_10.html', '3'),
  4009. (11, '_sys_designbox_11', 'designbox_11.html', '9'),
  4010. (13, '_sys_designbox_13', 'designbox_13.html', '5'),
  4011. (14, '_sys_designbox_14', 'designbox_14.html', '7');
  4012. CREATE TABLE IF NOT EXISTS `sys_pages_blocks` (
  4013. `id` int(11) NOT NULL AUTO_INCREMENT,
  4014. `object` varchar(64) NOT NULL,
  4015. `cell_id` int(11) NOT NULL DEFAULT '1',
  4016. `module` varchar(32) NOT NULL,
  4017. `title_system` varchar(255) NOT NULL,
  4018. `title` varchar(255) NOT NULL,
  4019. `designbox_id` int(11) NOT NULL DEFAULT '11',
  4020. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  4021. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  4022. `type` enum('raw','html','lang','image','rss','menu','service') NOT NULL DEFAULT 'raw',
  4023. `content` text NOT NULL,
  4024. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  4025. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  4026. `active` tinyint(4) NOT NULL DEFAULT '1',
  4027. `order` int(11) NOT NULL,
  4028. PRIMARY KEY (`id`)
  4029. );
  4030. -- skeleton blocks
  4031. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  4032. ('', 0, 'skeletons', '_sys_block_type_raw', 11, 2147483647, 'raw', '', 0, 1, 1, 0),
  4033. ('', 0, 'skeletons', '_sys_block_type_html', 11, 2147483647, 'html', '', 0, 1, 1, 0),
  4034. ('', 0, 'skeletons', '_sys_block_type_rss', 11, 2147483647, 'rss', '', 0, 1, 1, 0),
  4035. ('', 0, 'skeletons', '_sys_block_type_image', 11, 2147483647, 'image', '', 0, 1, 1, 0),
  4036. ('', 0, 'skeletons', '_sys_block_type_lang', 11, 2147483647, 'lang', '', 0, 1, 1, 0),
  4037. ('', 0, 'skeletons', '_sys_block_type_menu', 11, 2147483647, 'menu', '', 0, 1, 1, 0),
  4038. ('', 0, 'skeletons', '_sys_block_type_service', 11, 2147483647, 'service', '', 0, 0, 1, 0);
  4039. -- service blocks
  4040. SET @iBlockOrder = IFNULL((SELECT `order` FROM `sys_pages_blocks` WHERE `object` = '' AND `cell_id` = 0 ORDER BY `order` DESC LIMIT 1), 0);
  4041. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  4042. ('', 0, 'system', '_sys_page_block_title_sys_create_post', '_sys_page_block_title_create_post', 3, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"get_create_post_form";s:6:"params";a:1:{i:0;i:0;}s:5:"class";s:13:"TemplServices";}', 0, 1, 1, @iBlockOrder + 1),
  4043. ('', 0, 'system', '_sys_page_block_title_sys_create_post_context', '_sys_page_block_title_create_post_context', 3, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"get_create_post_form";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:13:"TemplServices";}', 0, 1, 1, @iBlockOrder + 2),
  4044. ('', 0, 'system', '_sys_page_block_title_sys_create_post_public', '_sys_page_block_title_create_post_public', 3, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"get_create_post_form";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', 0, 1, 1, @iBlockOrder + 3);
  4045. -- content blocks
  4046. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  4047. ('sys_home', 1, 'system', '', '_sys_page_block_title_homepage_splash', 0, 2147483647, 'raw', '<style>\r\n /*--- Splash ---*/\r\n .bx-page {\r\n position: relative;\r\n }\r\n .bx-splash-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),
  4048. ('sys_home', 1, 'system', '', '_sys_page_block_title_homepage_menu', 3, 2147483647, 'menu', 'sys_homepage', 0, 1, 1, 0),
  4049. ('sys_about', 1, 'system', '', '_sys_page_block_title_about', 11, 2147483647, 'lang', '_sys_page_lang_block_about', 0, 1, 1, 1),
  4050. ('sys_terms', 1, 'system', '', '_sys_page_block_title_terms', 11, 2147483647, 'lang', '_sys_page_lang_block_terms', 0, 1, 1, 1),
  4051. ('sys_privacy', 1, 'system', '', '_sys_page_block_title_privacy', 11, 2147483647, 'lang', '_sys_page_lang_block_privacy', 0, 1, 1, 1),
  4052. ('sys_dashboard', 3, 'system', '', '_sys_page_block_title_profile_stats', 3, 2147483644, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:13:"profile_stats";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 0, 1),
  4053. ('sys_dashboard', 3, 'system', '', '_sys_page_block_title_profile_membership', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:18:"profile_membership";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 0, 0),
  4054. ('sys_dashboard', 1, 'system', '', '_sys_page_block_title_manage_tools', 11, 192, 'menu', 'sys_account_dashboard_manage_tools', 0, 1, 1, 3),
  4055. ('sys_dashboard', 3, 'system', '', '_sys_page_block_title_chart_growth', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"get_chart_growth";s:6:"params";a:0:{}s:5:"class";s:18:"TemplChartServices";}', 0, 1, 1, 0),
  4056. ('sys_dashboard', 2, 'system', '', '_sys_page_block_title_chart_stats', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:15:"get_chart_stats";s:6:"params";a:0:{}s:5:"class";s:18:"TemplChartServices";}', 0, 1, 1, 3),
  4057. ('sys_create_account', 1, 'system', '', '_sys_page_block_title_create_account', 11, 2147483647, 'service', 'a:4:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:19:\"create_account_form\";s:6:\"params\";a:0:{}s:5:\"class\";s:19:\"TemplServiceAccount\";}', 0, 1, 1, 1),
  4058. ('sys_login', 1, 'system', '_sys_page_block_system_title_login', '_sys_page_block_title_login', 11, 2147483647, 'service', 'a:3:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:10:\"login_form\";s:5:\"class\";s:17:\"TemplServiceLogin\";}', 0, 1, 1, 1),
  4059. ('sys_login', 0, 'system', '_sys_page_block_system_title_login_only', '_sys_page_block_title_login', 11, 2147483647, 'service', 'a:3:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:15:\"login_form_only\";s:5:\"class\";s:17:\"TemplServiceLogin\";}', 0, 1, 1, 0),
  4060. ('sys_login_step2', 1, 'system', '_sys_page_block_system_title_login_step2', '_sys_page_block_title_login_step2', 11, 2147483647, 'service', 'a:3:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:16:\"login_form_step2\";s:5:\"class\";s:17:\"TemplServiceLogin\";}', 0, 1, 1, 1),
  4061. ('sys_login_step3', 1, 'system', '_sys_page_block_system_title_login_step3', '_sys_page_block_title_login_step3', 11, 2147483647, 'service', 'a:3:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:16:\"login_form_step3\";s:5:\"class\";s:17:\"TemplServiceLogin\";}', 0, 1, 1, 1),
  4062. ('sys_forgot_password', 1, 'system', '', '_sys_page_block_title_forgot_password', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:15:"forgot_password";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1, 1),
  4063. ('sys_confirm_email', 1, 'system', '', '_sys_page_block_title_confirm_email', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:18:"email_confirmation";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1, 1),
  4064. ('sys_confirm_phone', 1, 'system', '', '_sys_page_block_title_confirm_phone', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:18:"phone_confirmation";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1, 1),
  4065. ('sys_account_settings_email', 1, 'system', '', '_sys_page_block_title_account_settings_email', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:22:"account_settings_email";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1, 1),
  4066. ('sys_account_settings_pwd', 1, 'system', '', '_sys_page_block_title_account_settings_pwd', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:25:"account_settings_password";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1, 1),
  4067. ('sys_account_settings_info', 1, 'system', '', '_sys_page_block_title_account_settings_info', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:21:"account_settings_info";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1, 1),
  4068. ('sys_account_settings_delete', 1, 'system', '', '_sys_page_block_title_account_settings_delete', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:28:"account_settings_del_account";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1, 1),
  4069. ('sys_account_profile_switcher', 1, 'system', '', '_sys_page_block_title_account_profile_create', 11, 2147483647, 'menu', 'sys_add_profile', 0, 1, 1, 1),
  4070. ('sys_account_profile_switcher', 1, 'system', '', '_sys_page_block_title_account_profile_switcher', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:24:"account_profile_switcher";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 2),
  4071. ('sys_unsubscribe_notifications', 1, 'system', '', '_sys_page_block_title_unsubscribe_notifications', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:25:"unsubscribe_notifications";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1, 1),
  4072. ('sys_unsubscribe_news', 1, 'system', '', '_sys_page_block_title_unsubscribe_news', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"unsubscribe_news";s:6:"params";a:0:{}s:5:"class";s:19:"TemplServiceAccount";}', 0, 1, 1, 1),
  4073. ('sys_cmts_administration', 1, 'system', '_sys_page_block_title_system_cmts_administration', '_sys_page_block_title_cmts_administration', 11, 192, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:12:"manage_tools";s:6:"params";a:1:{i:0;s:14:"administration";}s:5:"class";s:17:"TemplCmtsServices";}', 0, 1, 1, 1),
  4074. -- studio dashboard blocks
  4075. ('sys_std_dashboard', 1, 'system', '', '_sys_page_block_title_std_dash_version', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:17:"get_block_version";s:6:"params";a:0:{}s:5:"class";s:20:"TemplStudioDashboard";}', 0, 0, 1, 1),
  4076. ('sys_std_dashboard', 1, 'system', '', '_sys_page_block_title_std_dash_space', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:15:"get_block_space";s:6:"params";a:0:{}s:5:"class";s:20:"TemplStudioDashboard";}', 0, 0, 1, 2),
  4077. ('sys_std_dashboard', 2, 'system', '', '_sys_page_block_title_std_dash_host_tools', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"get_block_host_tools";s:6:"params";a:0:{}s:5:"class";s:20:"TemplStudioDashboard";}', 0, 0, 1, 1),
  4078. ('sys_std_dashboard', 2, 'system', '', '_sys_page_block_title_std_dash_cache', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:15:"get_block_cache";s:6:"params";a:0:{}s:5:"class";s:20:"TemplStudioDashboard";}', 0, 0, 1, 2);
  4079. -- --------------------------------------------------------
  4080. CREATE TABLE `sys_labels` (
  4081. `id` int(11) NOT NULL AUTO_INCREMENT,
  4082. `module` varchar(32) NOT NULL,
  4083. `parent` int(11) NOT NULL DEFAULT 0,
  4084. `level` int(11) NOT NULL DEFAULT 0,
  4085. `order` int(11) NOT NULL DEFAULT 0,
  4086. `value` varchar(128) NOT NULL,
  4087. PRIMARY KEY (id),
  4088. UNIQUE KEY `value` (`value`)
  4089. );
  4090. -- --------------------------------------------------------
  4091. CREATE TABLE `sys_objects_metatags` (
  4092. `id` int(11) NOT NULL AUTO_INCREMENT,
  4093. `object` varchar(64) NOT NULL,
  4094. `table_keywords` varchar(255) NOT NULL,
  4095. `table_locations` varchar(255) NOT NULL,
  4096. `table_mentions` varchar(255) NOT NULL,
  4097. `override_class_name` varchar(255) NOT NULL,
  4098. `override_class_file` varchar(255) NOT NULL,
  4099. PRIMARY KEY (`id`),
  4100. UNIQUE KEY `object` (`object`)
  4101. );
  4102. INSERT INTO `sys_objects_metatags` (`object`, `table_keywords`, `table_locations`, `table_mentions`, `override_class_name`, `override_class_file`) VALUES
  4103. ('sys_cmts', 'sys_cmts_meta_keywords', '', 'sys_cmts_meta_mentions', '', '');
  4104. -- --------------------------------------------------------
  4105. CREATE TABLE `sys_objects_category` (
  4106. `id` int(11) NOT NULL AUTO_INCREMENT,
  4107. `object` varchar(64) NOT NULL,
  4108. `search_object` varchar(64) NOT NULL,
  4109. `form_object` varchar(64) NOT NULL,
  4110. `list_name` varchar(255) NOT NULL,
  4111. `table` varchar(255) NOT NULL,
  4112. `field` varchar(255) NOT NULL,
  4113. `join` varchar(255) NOT NULL,
  4114. `where` varchar(255) NOT NULL,
  4115. `override_class_name` varchar(255) NOT NULL,
  4116. `override_class_file` varchar(255) NOT NULL,
  4117. PRIMARY KEY (`id`),
  4118. UNIQUE KEY `object` (`object`),
  4119. UNIQUE KEY `form_object` (`form_object`(64),`list_name`(127))
  4120. );
  4121. -- --------------------------------------------------------
  4122. CREATE TABLE IF NOT EXISTS `sys_categories` (
  4123. `id` int(11) NOT NULL AUTO_INCREMENT,
  4124. `author` int(11) NOT NULL,
  4125. `added` int(11) NOT NULL,
  4126. `module` varchar(32) NOT NULL,
  4127. `value` varchar(100) NOT NULL,
  4128. `status` enum ('active', 'hidden') NOT NULL DEFAULT 'active',
  4129. PRIMARY KEY (`id`)
  4130. );
  4131. CREATE TABLE IF NOT EXISTS `sys_categories2objects` (
  4132. `id` int(11) NOT NULL AUTO_INCREMENT,
  4133. `module` varchar(32) NOT NULL,
  4134. `object_id` int(11) NOT NULL,
  4135. `category_id` int(11) NOT NULL,
  4136. PRIMARY KEY (`id`)
  4137. );
  4138. -- --------------------------------------------------------
  4139. --
  4140. -- Table structure for table `sys_objects_live_updates`
  4141. --
  4142. CREATE TABLE `sys_objects_live_updates` (
  4143. `id` int(11) unsigned NOT NULL auto_increment,
  4144. `name` varchar(50) NOT NULL default '',
  4145. `frequency` tinyint(4) NOT NULL DEFAULT '1',
  4146. `service_call` text NOT NULL default '',
  4147. `active` tinyint(4) NOT NULL DEFAULT '1',
  4148. PRIMARY KEY (`id`),
  4149. UNIQUE KEY `name` (`name`)
  4150. );
  4151. INSERT INTO `sys_objects_live_updates`(`name`, `frequency`, `service_call`, `active`) VALUES
  4152. ('sys_payments_cart', 1, 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:21:"get_live_updates_cart";s:6:"params";a:3:{i:0;a:2:{s:11:"menu_object";s:18:"sys_toolbar_member";s:9:"menu_item";s:7:"account";}i:1;a:2:{s:11:"menu_object";s:25:"sys_account_notifications";s:9:"menu_item";s:4:"cart";}i:2;s:7:"{count}";}s:5:"class";s:21:"TemplPaymentsServices";}', 1),
  4153. ('sys_payments_orders', 1, 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:23:"get_live_updates_orders";s:6:"params";a:3:{i:0;a:2:{s:11:"menu_object";s:18:"sys_toolbar_member";s:9:"menu_item";s:7:"account";}i:1;a:2:{s:11:"menu_object";s:25:"sys_account_notifications";s:9:"menu_item";s:6:"orders";}i:2;s:7:"{count}";}s:5:"class";s:21:"TemplPaymentsServices";}', 1);
  4154. -- --------------------------------------------------------
  4155. --
  4156. -- Table structure for table `sys_objects_payments`
  4157. --
  4158. CREATE TABLE IF NOT EXISTS `sys_objects_payments` (
  4159. `id` int(11) NOT NULL AUTO_INCREMENT,
  4160. `object` varchar(32) NOT NULL,
  4161. `title` varchar(255) NOT NULL,
  4162. `uri` varchar(32) NOT NULL default '',
  4163. PRIMARY KEY (`id`),
  4164. UNIQUE KEY `object` (`object`),
  4165. UNIQUE KEY `uri` (`uri`)
  4166. );
  4167. -- --------------------------------------------------------
  4168. --
  4169. -- Table structure for table `sys_preloader`
  4170. --
  4171. CREATE TABLE IF NOT EXISTS `sys_preloader` (
  4172. `id` int(11) NOT NULL AUTO_INCREMENT,
  4173. `module` varchar(32) NOT NULL,
  4174. `type` varchar(16) NOT NULL,
  4175. `content` varchar(255) NOT NULL,
  4176. `active` tinyint(4) NOT NULL DEFAULT '1',
  4177. `order` int(11) unsigned NOT NULL default '0',
  4178. PRIMARY KEY (`id`)
  4179. );
  4180. INSERT INTO `sys_preloader`(`module`, `type`, `content`, `active`, `order`) VALUES
  4181. ('system', 'css_system', '{dir_plugins_public}marka/|marka.min.css', 1, 1),
  4182. ('system', 'css_system', '{dir_plugins_public}at.js/css/|jquery.atwho.min.css', 1, 2),
  4183. ('system', 'css_system', '{dir_plugins_public}prism/|prism.css', 1, 3),
  4184. ('system', 'css_system', 'common.css', 1, 10),
  4185. ('system', 'css_system', 'default.less', 1, 11),
  4186. ('system', 'css_system', 'general.css', 1, 12),
  4187. ('system', 'css_system', 'icons.css', 1, 13),
  4188. ('system', 'css_system', 'colors.css', 1, 14),
  4189. ('system', 'css_system', 'forms.css', 1, 15),
  4190. ('system', 'css_system', 'media-desktop.css', 1, 20),
  4191. ('system', 'css_system', 'media-tablet.css', 1, 21),
  4192. ('system', 'css_system', 'media-phone.css', 1, 22),
  4193. ('system', 'css_system', 'media-print.css', 1, 23),
  4194. ('system', 'css_system', 'cmts.css', 1, 30),
  4195. ('system', 'css_system', 'favorite.css', 1, 31),
  4196. ('system', 'css_system', 'feature.css', 1, 32),
  4197. ('system', 'css_system', 'report.css', 1, 33),
  4198. ('system', 'css_system', 'score.css', 1, 34),
  4199. ('system', 'css_system', 'view.css', 1, 35),
  4200. ('system', 'css_system', 'vote.css', 1, 36),
  4201. ('system', 'css_system', '{dir_plugins_public}spin.js/|spin.css', 1, 37),
  4202. ('system', 'js_system', 'jquery/jquery.min.js', 1, 1),
  4203. ('system', 'js_system', 'jquery/jquery-migrate.min.js', 1, 2),
  4204. ('system', 'js_system', 'jquery-ui/jquery.ui.position.min.js', 1, 3),
  4205. ('system', 'js_system', 'jquery.easing.js', 1, 4),
  4206. ('system', 'js_system', 'jquery.cookie.min.js', 1, 5),
  4207. ('system', 'js_system', 'jquery.form.min.js', 1, 6),
  4208. ('system', 'js_system', 'spin.js/spin.js', 1, 7),
  4209. ('system', 'js_system', 'moment-with-locales.min.js', 1, 8),
  4210. ('system', 'js_system', 'marka/marka.min.js', 1, 9),
  4211. ('system', 'js_system', 'headroom.min.js', 1, 10),
  4212. ('system', 'js_system', 'at.js/js/jquery.atwho.min.js', 1, 11),
  4213. ('system', 'js_system', 'prism/prism.js', 1, 12),
  4214. ('system', 'js_system', 'functions.js', 1, 20),
  4215. ('system', 'js_system', 'jquery.webForms.js', 1, 21),
  4216. ('system', 'js_system', 'jquery.dolPopup.js', 1, 22),
  4217. ('system', 'js_system', 'jquery.dolConverLinks.js', 1, 23),
  4218. ('system', 'js_system', 'jquery.anim.js', 1, 24),
  4219. ('system', 'js_system', 'BxDolCmts.js', 1, 30),
  4220. ('system', 'js_system', 'BxDolFavorite.js', 1, 31),
  4221. ('system', 'js_system', 'BxDolFeature.js', 1, 32),
  4222. ('system', 'js_system', 'BxDolReport.js', 1, 33),
  4223. ('system', 'js_system', 'BxDolScore.js', 1, 34),
  4224. ('system', 'js_system', 'BxDolView.js', 1, 35),
  4225. ('system', 'js_system', 'BxDolVote.js', 1, 36),
  4226. ('system', 'js_system', 'BxDolVoteLikes.js', 1, 37),
  4227. ('system', 'js_system', 'BxDolVoteReactions.js', 1, 38),
  4228. ('system', 'js_system', 'BxDolVoteStars.js', 1, 39),
  4229. ('system', 'js_system', 'BxDolCmtsReviews.js', 1, 40),
  4230. ('system', 'js_translation', '_Are_you_sure', 1, 1),
  4231. ('system', 'js_translation', '_error occured', 1, 2),
  4232. ('system', 'js_translation', '_sys_loading', 1, 3),
  4233. ('system', 'js_translation', '_copyright', 1, 4);
  4234. -- --------------------------------------------------------
  4235. --
  4236. -- Table structure for table `sys_std_pages`
  4237. --
  4238. CREATE TABLE `sys_std_pages` (
  4239. `id` int(11) unsigned NOT NULL auto_increment,
  4240. `index` int(11) unsigned NOT NULL default '0',
  4241. `name` varchar(64) NOT NULL default '',
  4242. `header` varchar(255) NOT NULL default '',
  4243. `caption` varchar(255) NOT NULL default '',
  4244. `icon` varchar(255) NOT NULL default '',
  4245. PRIMARY KEY (`id`),
  4246. UNIQUE KEY `name` (`name`)
  4247. );
  4248. -- --------------------------------------------------------
  4249. --
  4250. -- Table structure for table `sys_std_widgets`
  4251. --
  4252. CREATE TABLE `sys_std_widgets` (
  4253. `id` int(11) unsigned NOT NULL auto_increment,
  4254. `page_id` varchar(255) NOT NULL default '',
  4255. `module` varchar(32) NOT NULL default '',
  4256. `url` varchar(255) NOT NULL default '',
  4257. `click` text NOT NULL default '',
  4258. `icon` varchar(255) NOT NULL default '',
  4259. `caption` varchar(255) NOT NULL default '',
  4260. `cnt_notices` text NOT NULL default '',
  4261. `cnt_actions` text NOT NULL default '',
  4262. `bookmark` tinyint(4) unsigned NOT NULL default '0',
  4263. PRIMARY KEY (`ID`),
  4264. UNIQUE KEY `widget-page` (`id`, `page_id`(187))
  4265. );
  4266. -- --------------------------------------------------------
  4267. --
  4268. -- Table structure for table `sys_std_pages_widgets`
  4269. --
  4270. CREATE TABLE `sys_std_pages_widgets` (
  4271. `id` int(11) unsigned NOT NULL auto_increment,
  4272. `page_id` int(11) unsigned NOT NULL default '0',
  4273. `widget_id` int(11) unsigned NOT NULL default '0',
  4274. `order` int(11) unsigned NOT NULL default '0',
  4275. PRIMARY KEY (`id`),
  4276. UNIQUE KEY `wid_pag` (`widget_id`, `page_id`)
  4277. );
  4278. --
  4279. -- Dumping data for table `sys_std_pages`
  4280. --
  4281. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4282. (0, 'home', '_adm_page_cpt_home', '_adm_page_cpt_home', '');
  4283. SET @iIdHome = LAST_INSERT_ID();
  4284. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4285. (4, 'dashboard', '_adm_page_cpt_dashboard', '_adm_page_cpt_dashboard', 'wi-dashboard.svg');
  4286. SET @iIdDashboard = LAST_INSERT_ID();
  4287. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4288. (3, 'settings', '_adm_page_cpt_settings', '_adm_page_cpt_settings', 'wi-settings.svg');
  4289. SET @iIdSettings = LAST_INSERT_ID();
  4290. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4291. (3, 'store', '_adm_page_cpt_store', '_adm_page_cpt_store', 'wi-store.svg');
  4292. SET @iIdStore = LAST_INSERT_ID();
  4293. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4294. (3, 'designer', '_adm_page_cpt_designer', '_adm_page_cpt_designer', 'wi-designer.svg');
  4295. SET @iIdDesigner = LAST_INSERT_ID();
  4296. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4297. (3, 'polyglot', '_adm_page_cpt_polyglot', '_adm_page_cpt_polyglot', 'wi-polyglot.svg');
  4298. SET @iIdPolyglot = LAST_INSERT_ID();
  4299. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4300. (3, 'builder_pages', '_adm_page_cpt_builder_pages', '_adm_page_cpt_builder_pages', 'wi-bld-pages.svg');
  4301. SET @iIdBuilderPages = LAST_INSERT_ID();
  4302. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4303. (3, 'builder_menus', '_adm_page_cpt_builder_menus', '_adm_page_cpt_builder_menus', 'wi-bld-navigation.svg');
  4304. SET @iIdBuilderMenus = LAST_INSERT_ID();
  4305. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4306. (3, 'builder_forms', '_adm_page_cpt_builder_forms', '_adm_page_cpt_builder_forms', 'wi-bld-forms.svg');
  4307. SET @iIdBuilderForms = LAST_INSERT_ID();
  4308. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4309. (3, 'builder_permissions', '_adm_page_cpt_builder_permissions', '_adm_page_cpt_builder_permissions', 'wi-bld-permissions.svg');
  4310. SET @iIdBuilderPermissions = LAST_INSERT_ID();
  4311. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4312. (3, 'storages', '_adm_page_cpt_storages', '_adm_page_cpt_storages', 'wi-storages.svg');
  4313. SET @iIdManagerStorages = LAST_INSERT_ID();
  4314. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  4315. (3, 'audit', '_adm_page_cpt_audit', '_adm_page_cpt_audit', 'wi-audit.svg');
  4316. SET @iIdAudit = LAST_INSERT_ID();
  4317. --
  4318. -- Dumping data for table `sys_std_widgets` and `sys_std_pages_widgets`
  4319. -- Home Page
  4320. --
  4321. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4322. (@iIdSettings, 'system', '{url_studio}settings.php', '', 'wi-settings.svg', '_adm_wgt_cpt_settings', '', '');
  4323. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 3);
  4324. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4325. (@iIdStore, 'system', '{url_studio}store.php', '', 'wi-store.svg', '_adm_wgt_cpt_store', '', '');
  4326. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 2);
  4327. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4328. (@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";}', '');
  4329. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  4330. --
  4331. -- Templates Page
  4332. --
  4333. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4334. (@iIdDesigner, 'system', '{url_studio}designer.php', '', 'wi-designer.svg', '_adm_wgt_cpt_designer', '', '');
  4335. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 6);
  4336. --
  4337. -- Languages Page
  4338. --
  4339. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4340. (@iIdPolyglot, 'system', '{url_studio}polyglot.php', '', 'wi-polyglot.svg', '_adm_wgt_cpt_polyglot', '', '');
  4341. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 5);
  4342. --
  4343. -- Builders Page
  4344. --
  4345. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4346. (@iIdBuilderPages, 'system', '{url_studio}builder_page.php', '', 'wi-bld-pages.svg', '_adm_wgt_cpt_builder_pages', '', '');
  4347. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 7);
  4348. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4349. (@iIdBuilderMenus, 'system', '{url_studio}builder_menu.php', '', 'wi-bld-navigation.svg', '_adm_wgt_cpt_builder_menus', '', '');
  4350. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 8);
  4351. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4352. (@iIdBuilderForms, 'system', '{url_studio}builder_forms.php', '', 'wi-bld-forms.svg', '_adm_wgt_cpt_builder_forms', '', '');
  4353. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 9);
  4354. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4355. (@iIdBuilderPermissions, 'system', '{url_studio}builder_permissions.php', '', 'wi-bld-permissions.svg', '_adm_wgt_cpt_builder_permissions', '', '');
  4356. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 10);
  4357. --
  4358. -- Storages Page
  4359. --
  4360. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4361. (@iIdManagerStorages, 'system', '{url_studio}storages.php', '', 'wi-storages.svg', '_adm_wgt_cpt_storages', '', '');
  4362. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 4);
  4363. --
  4364. -- Audit Page
  4365. --
  4366. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  4367. (@iIdAudit, 'system', '{url_studio}audit.php', '', 'wi-audit.svg', '_adm_wgt_cpt_audit', '', '');
  4368. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 11);