system.sql 249 KB

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