system.sql 172 KB

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