system.sql 166 KB

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