system.sql 243 KB

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