system.sql 178 KB

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