system.sql 266 KB

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