v70.sql 169 KB

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