1
0

system.sql 260 KB

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