v70.sql 177 KB

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