system.sql 209 KB

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