system.sql 169 KB

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