system.sql 261 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268
  1. --
  2. -- Database: v 9.0
  3. --
  4. -- --------------------------------------------------------
  5. SET NAMES 'utf8';
  6. DROP TABLE IF EXISTS `sys_keys`, `sys_objects_editor`, `sys_objects_file_handlers`, `sys_objects_captcha`, `sys_objects_cmts`, `sys_cmts_images`, `sys_cmts_images_preview`, `sys_cmts_images2entries`, `sys_cmts_ids`, `sys_cmts_meta_keywords`, `sys_cmts_votes`, `sys_cmts_votes_track`, `sys_email_templates`, `sys_options`, sys_options_types, `sys_options_categories`, `sys_options_mixes`, `sys_options_mixes2options`, `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_objects_search_extended`, `sys_search_extended_fields`, `sys_statistics`, `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_report`, `sys_objects_view`, `sys_objects_favorite`, `sys_objects_feature`, `sys_objects_chart`, `sys_objects_content_info`, `sys_content_info_grids`, `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_category`, `sys_objects_live_updates`, `sys_objects_payments`, `sys_files`, `sys_images`, `sys_images_custom`, `sys_images_resized`, `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_file_handlers` (
  30. `id` int(11) NOT NULL AUTO_INCREMENT,
  31. `object` varchar(64) NOT NULL,
  32. `title` varchar(255) NOT NULL,
  33. `preg_ext` text NOT NULL,
  34. `active` tinyint(4) NOT NULL,
  35. `order` int(11) NOT NULL,
  36. `override_class_name` varchar(255) NOT NULL,
  37. `override_class_file` varchar(255) NOT NULL,
  38. PRIMARY KEY (`id`),
  39. UNIQUE KEY `object` (`object`)
  40. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  41. INSERT INTO `sys_objects_file_handlers` (`object`, `title`, `preg_ext`, `active`, `order`, `override_class_name`, `override_class_file`) VALUES
  42. ('sys_ms_viewer', '_sys_file_handlers_ms_viewer', '/\\.(doc|docx|xls|xlsx|ppt|pptx)$/i', 1, 1, 'BxTemplFileHandlerMsViewer', ''),
  43. ('sys_google_viewer', '_sys_file_handlers_google_viewer', '/\\.(pdf|doc|docx|xls|xlsx|ppt|pptx|ai|svg|ps|tif|tiff)$/i', 1, 2, 'BxTemplFileHandlerGoogleViewer', ''),
  44. ('sys_images_viewer', '_sys_file_handlers_images_viewer', '/\\.(jpg|jpeg|png|gif|webp)$/i', 1, 3, 'BxTemplFileHandlerImagesViewer', ''),
  45. ('sys_code_viewer', '_sys_file_handlers_code_viewer', '/\\.(1st|aspx|asp|json|js|jsp|java|php|xml|html|htm|rdf|xsd|xsl|xslt|sax|rss|cfm|js|asm|pl|prl|bas|b|vbs|fs|src|cs|ws|cgi|bat|py|c|cpp|cc|cp|h|hh|cxx|hxx|c++|m|lua|swift|sh|as|cob|tpl|lsp|x|cmd|rb|cbl|pas|pp|vb|f|perl|jl|lol|bal|pli|css|less|sass|saas|bcc|coffee|jade|j|tea|c#|sas|diff|pro|for|sh|bsh|bash|twig|csh|lisp|lsp|cobol|pl|d|git|rb|hrl|cr|inp|a|go|as3|m|sql|md|txt|csv)$/i', 1, 4, 'BxTemplFileHandlerCodeViewer', '');
  46. -- --------------------------------------------------------
  47. CREATE TABLE `sys_objects_captcha` (
  48. `id` int(11) NOT NULL AUTO_INCREMENT,
  49. `object` varchar(64) NOT NULL,
  50. `title` varchar(255) NOT NULL,
  51. `override_class_name` varchar(255) NOT NULL,
  52. `override_class_file` varchar(255) NOT NULL,
  53. PRIMARY KEY (`id`)
  54. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  55. INSERT INTO `sys_objects_captcha` (`object`, `title`, `override_class_name`, `override_class_file`) VALUES
  56. ('sys_recaptcha', 'reCAPTCHA', 'BxTemplCaptchaReCAPTCHA', ''),
  57. ('sys_recaptcha_new', 'reCAPTCHA New', 'BxTemplCaptchaReCAPTCHANew', '');
  58. -- --------------------------------------------------------
  59. CREATE TABLE `sys_objects_auths` (
  60. `ID` int(10) unsigned NOT NULL auto_increment,
  61. `Name` varchar(64) NOT NULL,
  62. `Title` varchar(128) NOT NULL,
  63. `Link` varchar(255) NOT NULL,
  64. `OnClick` varchar(255) NOT NULL,
  65. `Icon` varchar(64) NOT NULL,
  66. PRIMARY KEY (`ID`)
  67. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  68. -- --------------------------------------------------------
  69. --
  70. -- Table structure for table `sys_objects_cmts`
  71. --
  72. CREATE TABLE `sys_objects_cmts` (
  73. `ID` int(10) unsigned NOT NULL auto_increment,
  74. `Name` varchar(64) NOT NULL,
  75. `Module` varchar(32) NOT NULL,
  76. `Table` varchar(50) NOT NULL,
  77. `CharsPostMin` int(10) NOT NULL,
  78. `CharsPostMax` int(10) NOT NULL,
  79. `CharsDisplayMax` int(10) NOT NULL,
  80. `Nl2br` smallint(1) NOT NULL,
  81. `PerView` smallint(6) NOT NULL,
  82. `PerViewReplies` smallint(6) NOT NULL,
  83. `BrowseType` varchar(50) NOT NULL,
  84. `IsBrowseSwitch` smallint(1) NOT NULL,
  85. `PostFormPosition` varchar(50) NOT NULL,
  86. `NumberOfLevels` smallint(6) NOT NULL,
  87. `IsDisplaySwitch` smallint(1) NOT NULL,
  88. `IsRatable` smallint(1) NOT NULL,
  89. `ViewingThreshold` smallint(6) NOT NULL,
  90. `IsOn` smallint(1) NOT NULL,
  91. `RootStylePrefix` varchar(16) NOT NULL default 'cmt',
  92. `BaseUrl` varchar(256) NOT NULL,
  93. `ObjectVote` varchar(64) NOT NULL,
  94. `TriggerTable` varchar(32) NOT NULL,
  95. `TriggerFieldId` varchar(32) NOT NULL,
  96. `TriggerFieldAuthor` varchar(32) NOT NULL,
  97. `TriggerFieldTitle` varchar(32) NOT NULL,
  98. `TriggerFieldComments` varchar(32) NOT NULL,
  99. `ClassName` varchar(32) NOT NULL,
  100. `ClassFile` varchar(256) NOT NULL,
  101. PRIMARY KEY (`ID`)
  102. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  103. -- --------------------------------------------------------
  104. CREATE TABLE IF NOT EXISTS `sys_email_templates` (
  105. `ID` int(11) unsigned NOT NULL auto_increment,
  106. `Module` varchar(32) NOT NULL,
  107. `NameSystem` varchar(255) NOT NULL,
  108. `Name` varchar(255) NOT NULL,
  109. `Subject` varchar(255) NOT NULL,
  110. `Body` varchar(255) NOT NULL,
  111. PRIMARY KEY (`ID`)
  112. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  113. INSERT INTO `sys_email_templates` (`Module`, `NameSystem`, `Name`, `Subject`, `Body`) VALUES
  114. ('system', '_sys_et_txt_name_system_admin_email', 't_AdminEmail', '_sys_et_txt_subject_admin_email', '_sys_et_txt_body_admin_email'),
  115. ('system', '_sys_et_txt_name_system_confirmation', 't_Confirmation', '_sys_et_txt_subject_confirmation', '_sys_et_txt_body_confirmation'),
  116. ('system', '_sys_et_txt_name_system_forgot', 't_Forgot', '_sys_et_txt_subject_forgot', '_sys_et_txt_body_forgot'),
  117. ('system', '_sys_et_txt_name_system_password_reset', 't_PasswordReset', '_sys_et_txt_subject_password_reset', '_sys_et_txt_body_password_reset'),
  118. ('system', '_sys_et_txt_name_system_mem_expiration', 't_MemExpiration', '_sys_et_txt_subject_mem_expiration', '_sys_et_txt_body_mem_expiration'),
  119. ('system', '_sys_et_txt_name_system_mem_changed', 't_MemChanged', '_sys_et_txt_subject_mem_changed', '_sys_et_txt_body_mem_changed'),
  120. ('system', '_sys_et_txt_name_system_comment_replied', 't_CommentReplied', '_sys_et_txt_subject_comment_replied', '_sys_et_txt_body_comment_replied'),
  121. ('system', '_sys_et_txt_name_system_reported', 't_Reported', '_sys_et_txt_subject_system_reported', '_sys_et_txt_body_system_reported'),
  122. ('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'),
  123. ('system', '_sys_et_txt_name_system_account', 't_Account', '_sys_et_txt_subject_account', '_sys_et_txt_body_account'),
  124. ('system', '_sys_et_txt_name_system_pruning', 't_Pruning', '_sys_et_txt_subject_pruning', '_sys_et_txt_body_pruning'),
  125. ('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'),
  126. ('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'),
  127. ('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'),
  128. ('system', '_sys_et_txt_name_upgrade_failed', 't_UpgradeFailed', '_sys_et_txt_subject_upgrade_failed', '_sys_et_txt_body_upgrade_failed'),
  129. ('system', '_sys_et_txt_name_upgrade_modules_failed', 't_UpgradeModulesFailed', '_sys_et_txt_subject_upgrade_modules_failed', '_sys_et_txt_body_upgrade_modules_failed'),
  130. ('system', '_sys_et_txt_name_upgrade_success', 't_UpgradeSuccess', '_sys_et_txt_subject_upgrade_success', '_sys_et_txt_body_upgrade_success'),
  131. ('system', '_sys_et_txt_name_upgrade_modules_success', 't_UpgradeModulesSuccess', '_sys_et_txt_subject_upgrade_modules_success', '_sys_et_txt_body_upgrade_modules_success'),
  132. ('system', '_sys_et_txt_name_bg_operation_failed', 't_BgOperationFailed', '_sys_et_txt_subject_bg_operation_failed', '_sys_et_txt_body_bg_operation_failed');
  133. -- --------------------------------------------------------
  134. --
  135. -- Table structure for table `sys_options`
  136. --
  137. CREATE TABLE `sys_options` (
  138. `id` int(11) unsigned NOT NULL auto_increment,
  139. `category_id` int(11) unsigned NOT NULL default '0',
  140. `name` varchar(64) NOT NULL default '',
  141. `caption` varchar(255) NOT NULL default '',
  142. `value` mediumtext NOT NULL,
  143. `type` enum('value','digit','text','checkbox','select','combobox','file','image','list','rlist','rgb','rgba') NOT NULL default 'digit',
  144. `extra` text NOT NULL default '',
  145. `check` varchar(32) NOT NULL,
  146. `check_params` text NOT NULL,
  147. `check_error` varchar(255) NOT NULL default '',
  148. `order` int(11) default '0',
  149. PRIMARY KEY (`id`),
  150. UNIQUE KEY `name`(`name`),
  151. KEY `category_id` (`category_id`)
  152. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  153. --
  154. -- Table structure for table `sys_options_categories`
  155. --
  156. CREATE TABLE `sys_options_categories` (
  157. `id` int(11) unsigned NOT NULL auto_increment,
  158. `type_id` int(11) unsigned NOT NULL default '0',
  159. `name` varchar(64) NOT NULL default '',
  160. `caption` varchar(64) NOT NULL default '',
  161. `hidden` tinyint(1) NOT NULL default '0',
  162. `order` int(11) default '0',
  163. PRIMARY KEY (`id`),
  164. UNIQUE KEY `name`(`name`)
  165. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  166. --
  167. -- Table structure for table `sys_options_types`
  168. --
  169. CREATE TABLE `sys_options_types` (
  170. `id` int(11) unsigned NOT NULL auto_increment,
  171. `group` varchar(64) NOT NULL default '',
  172. `name` varchar(64) NOT NULL default '',
  173. `caption` varchar(64) NOT NULL default '',
  174. `icon` varchar(255) NOT NULL default '',
  175. `order` int(11) default '0',
  176. PRIMARY KEY (`id`),
  177. UNIQUE KEY `name`(`name`)
  178. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  179. --
  180. -- Dumping data for tables `sys_options_types`
  181. --
  182. INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES ('system', 'system', '_adm_stg_cpt_type_system', 'cogs', 1);
  183. SET @iTypeId = LAST_INSERT_ID();
  184. --
  185. -- CATEGORY (HIDDEN): Hidden
  186. --
  187. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'hidden', '_adm_stg_cpt_category_hidden', 1, 0);
  188. SET @iCategoryId = LAST_INSERT_ID();
  189. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  190. (@iCategoryId, 'sys_install_time', '_adm_stg_cpt_option_sys_install_time', '0', 'digit', '', '', '', 3),
  191. (@iCategoryId, 'sys_ftp_login', '_adm_stg_cpt_option_sys_ftp_login', '', 'digit', '', '', '', 10),
  192. (@iCategoryId, 'sys_ftp_password', '_adm_stg_cpt_option_sys_ftp_password', '', 'digit', '', '', '', 11),
  193. (@iCategoryId, 'sys_ftp_dir', '_adm_stg_cpt_option_sys_ftp_dir', '', 'digit', '', '', '', 12),
  194. (@iCategoryId, 'sys_template_cache_image_enable', '_adm_stg_cpt_option_sys_template_cache_image_enable', '', 'checkbox', '', '', '', 20),
  195. (@iCategoryId, 'sys_template_cache_image_max_size', '_adm_stg_cpt_option_sys_template_cache_image_max_size', '5', 'digit', '', '', '', 21),
  196. (@iCategoryId, 'sys_email_confirmation', '_adm_stg_cpt_option_sys_email_confirmation', 'on', 'checkbox', '', '', '', 30),
  197. (@iCategoryId, 'sys_email_attachable_email_templates', '_adm_stg_cpt_option_sys_email_attachable_email_templates', '', 'digit', '', '', '', 31),
  198. (@iCategoryId, 'sys_redirect_after_account_added', '_adm_stg_cpt_option_sys_redirect_after_account_added', 'page.php?i=account-profile-switcher&register=1', 'digit', '', '', '', 40),
  199. (@iCategoryId, 'sys_redirect_after_email_confirmation', '_adm_stg_cpt_option_sys_redirect_after_email_confirmation', 'page.php?i=account-settings-info', 'digit', '', '', '', 41),
  200. (@iCategoryId, 'sys_editor_default', '_adm_stg_cpt_option_sys_editor_default', 'sys_tinymce', 'digit', '', '', '', 50),
  201. (@iCategoryId, 'sys_captcha_default', '_adm_stg_cpt_option_sys_captcha_default', 'sys_recaptcha', 'digit', '', '', '', 51),
  202. (@iCategoryId, 'sys_live_updates_interval', '_adm_stg_cpt_option_sys_live_updates_interval', '10000', 'digit', '', '', '', 60);
  203. --
  204. -- CATEGORY (HIDDEN): System
  205. --
  206. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'system', '_adm_stg_cpt_category_system', 1, 1);
  207. SET @iCategoryId = LAST_INSERT_ID();
  208. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  209. (@iCategoryId, 'site_email_html_template_header', '_adm_stg_cpt_option_site_email_html_template_header', '<html>\r\n <head></head>\r\n <body bgcolor="#eee" style="margin:0; padding:0;">\r\n <div style="padding:20px; background-color:#eee;">\r\n <table width="600" border="0" cellspacing="0" cellpadding="0" align="center">\r\n <tr><td valign="top">\r\n <div style="color:#333; padding:20px; border:1px solid #999; background-color:#fff; font:14px Helvetica, Arial, sans-serif;">\r\n <div style="border-bottom:2px solid #eee; padding-bottom:10px; margin-bottom:20px; font-weight:bold; font-size:22px; color:#999;">{site_name}</div>', 'text', '', '', '', 1),
  210. (@iCategoryId, 'site_email_html_template_footer', '_adm_stg_cpt_option_site_email_html_template_footer', '\r\n </div>\r\n </td></tr>\r\n <tr><td valign="top">\r\n <div style="margin-top:5px; text-align:center; color:#999; font:11px Helvetica, Arial, sans-serif;">{about_us}&nbsp;&nbsp;&nbsp;{unsubscribe}</div>\r\n </td></tr>\r\n </table>\r\n </div>\r\n </body>\r\n</html>', 'text', '', '', '', 2),
  211. (@iCategoryId, 'sys_site_logo', '', '0', 'digit', '', '', '', 20),
  212. (@iCategoryId, 'sys_site_logo_alt', '_adm_dsg_txt_alt_text', '0', 'text', '', '', '', 21),
  213. (@iCategoryId, 'sys_site_icon', '', '0', 'digit', '', '', '', 22),
  214. (@iCategoryId, 'sys_site_logo_width', '_adm_stg_cpt_option_sys_site_logo_width', '240', 'digit', '', '', '', 23),
  215. (@iCategoryId, 'sys_site_logo_height', '_adm_stg_cpt_option_sys_site_logo_height', '48', 'digit', '', '', '', 24),
  216. (@iCategoryId, 'sys_site_splash_code', '', '<style>\r\n /*--- General ---*/\r\n \r\n @media (max-width:1024px) {\r\n #bx-footer-wrapper,\r\n #bx-menu-main-bar-wrapper,\r\n #bx-toolbar {\r\n display:none;\r\n }\r\n html #bx-content-wrapper {\r\n border:none;\r\n padding-bottom:0;\r\n }\r\n }\r\n\r\n #bx-content-wrapper {\r\n padding-top: 0px;\r\n padding-bottom: 4rem;\r\n }\r\n\r\n .bx-page-wrapper,\r\n #bx-content-container,\r\n #bx-content-main {\r\n width: 100%;\r\n margin: 0px;\r\n padding: 0px;\r\n }\r\n\r\n /*--- Splash ---*/\r\n\r\n .bx-splash {\r\n position: relative;\r\n }\r\n\r\n .bx-spl-preload {\r\n position: absolute;\r\n\r\n top: 0px;\r\n left: 0px;\r\n width: 1px;\r\n height: 1px;\r\n\r\n overflow: hidden;\r\n }\r\n\r\n .bx-spl-slide {\r\n position: relative;\r\n display: block;\r\n\r\n overflow: hidden;\r\n }\r\n\r\n .bx-spl-bg {\r\n position: relative;\r\n\r\n width: 100%;\r\n height: 100%;\r\n }\r\n\r\n .bx-spl-container {\r\n position: relative;\r\n\r\n top: 0px;\r\n left: 0px;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n\r\n .bx-spl-content {\r\n position: relative;\r\n width:100%;\r\n }\r\n\r\n .bx-spl-slide .bx-spl-content h1 {\r\n font-size: 2.25rem;\r\n }\r\n\r\n .bx-spl-slide .bx-spl-content h3 {\r\n font-size: 1.5rem;\r\n }\r\n\r\n .bx-spl-white-text-all * {\r\n color: #fff;\r\n }\r\n\r\n /*--- Join button ---*/\r\n\r\n .bx-spl-join,\r\n .bx-spl-join {\r\n display: inline-block;\r\n border-color: #fff;\r\n }\r\n .bx-spl-join a,\r\n .bx-spl-join a {\r\n display: block;\r\n padding-left: 3.75rem;\r\n padding-right: 3.75rem;\r\n text-decoration: none;\r\n }\r\n\r\n /*--- Slides ---*/\r\n\r\n #bx-spl-slide01 .bx-spl-container,\r\n #bx-spl-slide03 .bx-spl-container {\r\n position: absolute;\r\n display: -webkit-flex;\r\n display: flex;\r\n -webkit-align-items: center;\r\n align-items: center;\r\n }\r\n #bx-spl-slide01 .bx-spl-content,\r\n #bx-spl-slide03 .bx-spl-content {\r\n text-align: center;\r\n text-shadow: 0px 0px 0.25rem #000;\r\n }\r\n #bx-spl-slide02 .bx-spl-content h3,\r\n #bx-spl-slide04 .bx-spl-content h3 {\r\n text-align: center;\r\n }\r\n\r\n /*--- Slide 1 ---*/\r\n\r\n #bx-spl-slide01 {\r\n width:100%;\r\n height:100vh;\r\n }\r\n #bx-spl-slide01 .bx-spl-bg {\r\n background-position: center center;\r\n background-repeat: no-repeat;\r\n background-size: cover;\r\n }\r\n #bx-spl-slide01 .bx-spl-slide-video {\r\n object-fit: cover;\r\n\r\n width: 100%;\r\n height: 100vh;\r\n }\r\n\r\n /*--- Slide 2 ---*/\r\n\r\n #bx-spl-slide02 .bx-spl-bg {\r\n background-color: #fff;\r\n height: 35vw;\r\n max-height:400px;\r\n }\r\n #bx-spl-slide02 .bx-spl-image {\r\n position: absolute;\r\n width: 60%;\r\n height: 100%;\r\n background-position: center bottom;\r\n background-repeat: no-repeat;\r\n background-size: contain;\r\n }\r\n #bx-spl-slide02 .bx-spl-content {\r\n position: absolute;\r\n display: -webkit-flex;\r\n -webkit-align-items: center;\r\n -webkit-justify-content: center;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n\r\n top: 0px;\r\n right: 0px;\r\n width: 40%;\r\n height: 100%;\r\n }\r\n @media (max-width:720px) {\r\n #bx-spl-slide02.bx-spl-slide .bx-spl-content h3 {\r\n font-size: 0.8rem;\r\n }\r\n }\r\n\r\n /*--- Slide 3 ---*/\r\n\r\n #bx-spl-slide03 {\r\n width:100%;\r\n height:150vh;\r\n }\r\n #bx-spl-slide03 .bx-spl-bg {\r\n background-position: center center;\r\n background-repeat: repeat;\r\n background-attachment: fixed;\r\n background-size:100%;\r\n }\r\n\r\n /*--- Slide 4 ---*/\r\n\r\n #bx-spl-slide04 {\r\n width:100%;\r\n height:100vh;\r\n }\r\n #bx-spl-slide04 .bx-spl-bg {\r\n background-color:#fff;\r\n }\r\n #bx-spl-slide04 .bx-spl-container {\r\n display: -webkit-flex;\r\n -webkit-align-items: center;\r\n -webkit-justify-content: center;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n #bx-spl-slide04 .bx-spl-content {\r\n width: 50%;\r\n }\r\n @media (max-width:720px) {\r\n #bx-spl-slide04 .bx-spl-content {\r\n width: 90%;\r\n }\r\n }\r\n #bx-spl-slide04 .bx-spl-content h3 {\r\n margin-top: 0px;\r\n margin-bottom: 2rem;\r\n }\r\n</style>\r\n<div id="skrollr-body" class="bx-splash bx-def-color-bg-page">\r\n <div id="bx-spl-preload" class="bx-spl-preload">\r\n <img src="<bx_image_url:cover01.jpg />">\r\n <img src="<bx_image_url:cover02.jpg />">\r\n <img src="<bx_image_url:cover03.jpg />">\r\n </div>\r\n\r\n <div id="bx-spl-slide01" class="bx-spl-slide">\r\n <div class="bx-spl-bg" style="background-image:url(<bx_image_url:cover01.jpg />);">\r\n <video class="bx-spl-slide-video bx-def-media-phone-hide bx-def-media-tablet-hide" poster="<bx_image_url:cover01.jpg />" loop autoplay muted>\r\n <source src="<bx_image_url:cover01.mp4 />" type="video/mp4">\r\n <source src="<bx_image_url:cover01.webm />" type="video/webm">\r\n </video>\r\n </div>\r\n <div class="bx-spl-container">\r\n <div class="bx-spl-content bx-spl-white-text-all" data-anchor-target="#bx-spl-slide01 .bx-spl-bg" data-top="opacity:1" data-top-center="opacity:0">\r\n <h1 class="bx-def-font-semibold"><bx_text:_sys_txt_splash_slide01_title /></h1>\r\n <h3 class="bx-def-font-normal"><bx_text:_sys_txt_splash_slide01_desc /></h3>\r\n <div class="bx-spl-join bx-def-margin-topbottom bx-def-border bx-def-round-corners">\r\n <a class="bx-def-padding-sec-topbottom bx-def-font-h3 bx-def-font-normal" href="__join_link__"><bx_text:_sys_txt_splash_btn_join /></a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div id="bx-spl-slide02" class="bx-spl-slide">\r\n <div class="bx-spl-bg">\r\n <div class="bx-spl-container">\r\n <div class="bx-spl-image" style="background-image:url(<bx_image_url:cover02.jpg />);" data-bottom-top="bottom:-100%;" data-100-center-center="bottom:0%;"></div>\r\n <div class="bx-spl-content" data-bottom-top="right:-50%;" data-100-center-center="right:0%;">\r\n <h3 class="bx-def-font-normal"><bx_text:_sys_txt_splash_slide02_txt /></h3>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div id="bx-spl-slide03" class="bx-spl-slide">\r\n <div class="bx-spl-bg" style="background-image:url(<bx_image_url:cover03.jpg />)"></div>\r\n <div class="bx-spl-container">\r\n <div class="bx-spl-content bx-spl-white-text-all">\r\n <h3 class="bx-def-font-normal"><bx_text:_sys_txt_splash_slide03_txt /></h3>\r\n <div class="bx-spl-join bx-def-margin-topbottom bx-def-border bx-def-round-corners">\r\n <a class="bx-def-padding-sec-topbottom bx-def-font-h3 bx-def-font-normal" href="__join_link__"><bx_text:_sys_txt_splash_btn_join /></a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div id="bx-spl-slide04" class="bx-spl-slide">\r\n <div class="bx-spl-bg">\r\n <div class="bx-spl-container" data-anchor-target="#bx-spl-slide03 .bx-spl-bg" data-100-center-bottom="opacity:0; transform:scale(0.7,0.7);" data-200-end="opacity:1; transform:scale(1,1);">\r\n <div class="bx-spl-content">\r\n <h3 class="bx-def-font-normal"><bx_text:_sys_txt_splash_slide04_txt /></h3>\r\n <div class="bx-spl-login">__login_form__</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <script type="text/javascript">\r\n $(document).ready(function () {\r\n\r\n // workaround for iOS 7 \r\n if (!!navigator.userAgent.match(/i(Pad|Phone|Pod).+(Version\\/7\\.\\d+ Mobile)/i)) {\r\n var aSelVh = {\r\n ''1'': ''#bx-spl-slide01, #bx-spl-slide01 .bx-spl-slide-video, #bx-spl-slide04'',\r\n ''1.5'': ''#bx-spl-slide03''\r\n };\r\n var aSelVw = {\r\n ''0.35'': ''#bx-spl-slide02 .bx-spl-bg''\r\n };\r\n function fixMobileSafariViewport() {\r\n $.each(aSelVh, function (sVal, sSel) {\r\n $(sSel).css(''height'', window.innerHeight * parseFloat(sVal));\r\n });\r\n $.each(aSelVw, function (sVal, sSel) {\r\n $(sSel).css(''height'', window.innerWidth * parseFloat(sVal));\r\n }); \r\n }\r\n // listen to portrait/landscape changes\r\n window.addEventListener(''orientationchange'', fixMobileSafariViewport, true);\r\n fixMobileSafariViewport();\r\n }\r\n\r\n skrollr.init();\r\n });\r\n </script>\r\n</div>', 'text', '', '', '', 25),
  217. (@iCategoryId, 'sys_site_splash_enabled', '', '', 'checkbox', '', '', '', 26),
  218. (@iCategoryId, 'sys_site_cover_common', '', '0', 'digit', '', '', '', 27),
  219. (@iCategoryId, 'sys_unit_cover_profile', '', '0', 'digit', '', '', '', 28);
  220. --
  221. -- CATEGORY (HIDDEN): Languages
  222. --
  223. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'languages', '_adm_stg_cpt_category_languages', 1, 2);
  224. SET @iCategoryId = LAST_INSERT_ID();
  225. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  226. (@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),
  227. (@iCategoryId, 'lang_subst_from_en', '_adm_stg_cpt_option_lang_subst_from_en', 'on', 'checkbox', '', '', '', 2),
  228. (@iCategoryId, 'sys_format_date', '_adm_stg_cpt_option_sys_format_date', 'D MMM YYYY', 'digit', '', '', '', 3),
  229. (@iCategoryId, 'sys_format_time', '_adm_stg_cpt_option_sys_format_time', 'HH:mm', 'digit', '', '', '', 4),
  230. (@iCategoryId, 'sys_format_datetime', '_adm_stg_cpt_option_sys_format_datetime', 'D MMM YYYY h:mm:ss a', 'digit', '', '', '', 5),
  231. (@iCategoryId, 'sys_format_timeago', '_adm_stg_cpt_option_sys_format_timeago', 432000, 'digit', '', '', '', 6);
  232. --
  233. -- CATEGORY (HIDDEN): Templates
  234. --
  235. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'templates', '_adm_stg_cpt_category_templates', 1, 3);
  236. SET @iCategoryId = LAST_INSERT_ID();
  237. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  238. (@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);
  239. --
  240. -- CATEGORY: Cache
  241. --
  242. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'cache', '_adm_stg_cpt_category_cache', 0, 4);
  243. SET @iCategoryId = LAST_INSERT_ID();
  244. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  245. (@iCategoryId, 'sys_db_cache_enable', '_adm_stg_cpt_option_sys_db_cache_enable', 'on', 'checkbox', '', '', '', 10),
  246. (@iCategoryId, 'sys_db_cache_engine', '_adm_stg_cpt_option_sys_db_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 11),
  247. (@iCategoryId, 'sys_cache_memcache_host', '_adm_stg_cpt_option_sys_cache_memcache_host', '', 'digit', '', '', '', 20),
  248. (@iCategoryId, 'sys_cache_memcache_port', '_adm_stg_cpt_option_sys_cache_memcache_port', '11211', 'digit', '', '', '', 21),
  249. (@iCategoryId, 'sys_page_cache_enable', '_adm_stg_cpt_option_sys_page_cache_enable', 'on', 'checkbox', '', '', '', 30),
  250. (@iCategoryId, 'sys_page_cache_engine', '_adm_stg_cpt_option_sys_page_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 31),
  251. (@iCategoryId, 'sys_pb_cache_enable', '_adm_stg_cpt_option_sys_pb_cache_enable', 'on', 'checkbox', '', '', '', 40),
  252. (@iCategoryId, 'sys_pb_cache_engine', '_adm_stg_cpt_option_sys_pb_cache_engine', 'File', 'select', 'File,Memcache,APC,XCache', '', '', 41),
  253. (@iCategoryId, 'sys_template_cache_enable', '_adm_stg_cpt_option_sys_template_cache_enable', 'on', 'checkbox', '', '', '', 50),
  254. (@iCategoryId, 'sys_template_cache_engine', '_adm_stg_cpt_option_sys_template_cache_engine', 'FileHtml', 'select', 'FileHtml,Memcache,APC,XCache', '', '', 51),
  255. (@iCategoryId, 'sys_template_cache_css_enable', '_adm_stg_cpt_option_sys_template_cache_css_enable', 'on', 'checkbox', '', '', '', 55),
  256. (@iCategoryId, 'sys_template_cache_js_enable', '_adm_stg_cpt_option_sys_template_cache_js_enable', 'on', 'checkbox', '', '', '', 56),
  257. (@iCategoryId, 'sys_template_cache_minify_css_enable', '_adm_stg_cpt_option_sys_template_cache_minify_css_enable', 'on', 'checkbox', '', '', '', 57),
  258. (@iCategoryId, 'sys_template_cache_minify_js_enable', '_adm_stg_cpt_option_sys_template_cache_minify_js_enable', 'on', 'checkbox', '', '', '', 58),
  259. (@iCategoryId, 'sys_template_cache_compress_enable', '_adm_stg_cpt_option_sys_template_cache_compress_enable', 'on', 'checkbox', '', '', '', 59);
  260. --
  261. -- CATEGORY: General
  262. --
  263. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'general', '_adm_stg_cpt_category_general', 0, 6);
  264. SET @iCategoryId = LAST_INSERT_ID();
  265. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  266. (@iCategoryId, 'sys_oauth_key', '_adm_stg_cpt_option_sys_oauth_key', '', 'digit', '', '', '', 20),
  267. (@iCategoryId, 'sys_oauth_secret', '_adm_stg_cpt_option_sys_oauth_secret', '', 'digit', '', '', '', 21),
  268. (@iCategoryId, 'currency_code', '_adm_stg_cpt_option_currency_code', 'USD', 'select', 'USD,EURO', 'Avail', '_adm_stg_err_option_currency_code', 30),
  269. (@iCategoryId, 'currency_sign', '_adm_stg_cpt_option_currency_sign', '&#36;', 'digit', '', 'Avail', '_adm_stg_err_option_currency_sign', 31),
  270. (@iCategoryId, 'enable_gd', '_adm_stg_cpt_option_enable_gd', 'on', 'checkbox', '', '', '', 40),
  271. (@iCategoryId, 'useLikeOperator', '_adm_stg_cpt_option_use_like_operator', 'on', 'checkbox', '', '', '', 45),
  272. (@iCategoryId, 'sys_transcoder_queue_storage', '_adm_stg_cpt_option_sys_transcoder_queue_storage', '', 'checkbox', '', '', '', 50),
  273. (@iCategoryId, 'sys_default_payment', '_adm_stg_cpt_option_sys_default_payment', '', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:12:"get_payments";s:5:"class";s:21:"TemplPaymentsServices";}', '', '', 60),
  274. (@iCategoryId, 'sys_maps_api_key', '_adm_stg_cpt_option_sys_maps_api_key', '', 'digit', '', '', '', 70),
  275. (@iCategoryId, 'sys_embedly_api_key', '_adm_stg_cpt_option_sys_embedly_api_key', '', 'digit', '', '', '', 80),
  276. (@iCategoryId, 'sys_embedly_api_pattern', '_adm_stg_cpt_option_sys_embedly_api_pattern', '((https?:\\/\\/(.*yfrog\\..*\\/.*|www\\.flickr\\.com\\/photos\\/.*|flic\\.kr\\/.*|twitpic\\.com\\/.*|www\\.twitpic\\.com\\/.*|twitpic\\.com\\/photos\\/.*|www\\.twitpic\\.com\\/photos\\/.*|.*imgur\\.com\\/.*|twitgoo\\.com\\/.*|i.*\\.photobucket\\.com\\/albums\\/.*|s.*\\.photobucket\\.com\\/albums\\/.*|media\\.photobucket\\.com\\/image\\/.*|www\\.mobypicture\\.com\\/user\\/.*\\/view\\/.*|moby\\.to\\/.*|xkcd\\.com\\/.*|www\\.xkcd\\.com\\/.*|imgs\\.xkcd\\.com\\/.*|www\\.asofterworld\\.com\\/index\\.php\\?id=.*|www\\.asofterworld\\.com\\/.*\\.jpg|asofterworld\\.com\\/.*\\.jpg|www\\.qwantz\\.com\\/index\\.php\\?comic=.*|23hq\\.com\\/.*\\/photo\\/.*|www\\.23hq\\.com\\/.*\\/photo\\/.*|.*dribbble\\.com\\/shots\\/.*|drbl\\.in\\/.*|.*\\.smugmug\\.com\\/.*|.*\\.smugmug\\.com\\/.*#.*|picasaweb\\.google\\.com.*\\/.*\\/.*#.*|picasaweb\\.google\\.com.*\\/lh\\/photo\\/.*|picasaweb\\.google\\.com.*\\/.*\\/.*|img\\.ly\\/.*|www\\.tinypic\\.com\\/view\\.php.*|tinypic\\.com\\/view\\.php.*|www\\.tinypic\\.com\\/player\\.php.*|tinypic\\.com\\/player\\.php.*|www\\.tinypic\\.com\\/r\\/.*\\/.*|tinypic\\.com\\/r\\/.*\\/.*|.*\\.tinypic\\.com\\/.*\\.jpg|.*\\.tinypic\\.com\\/.*\\.png|meadd\\.com\\/.*\\/.*|meadd\\.com\\/.*|.*\\.deviantart\\.com\\/art\\/.*|.*\\.deviantart\\.com\\/gallery\\/.*|.*\\.deviantart\\.com\\/#\\/.*|fav\\.me\\/.*|.*\\.deviantart\\.com|.*\\.deviantart\\.com\\/gallery|.*\\.deviantart\\.com\\/.*\\/.*\\.jpg|.*\\.deviantart\\.com\\/.*\\/.*\\.gif|.*\\.deviantart\\.net\\/.*\\/.*\\.jpg|.*\\.deviantart\\.net\\/.*\\/.*\\.gif|www\\.fotopedia\\.com\\/.*\\/.*|fotopedia\\.com\\/.*\\/.*|photozou\\.jp\\/photo\\/show\\/.*\\/.*|photozou\\.jp\\/photo\\/photo_only\\/.*\\/.*|instagr\\.am\\/p\\/.*|instagram\\.com\\/p\\/.*|skitch\\.com\\/.*\\/.*\\/.*|img\\.skitch\\.com\\/.*|www\\.questionablecontent\\.net\\/|questionablecontent\\.net\\/|www\\.questionablecontent\\.net\\/view\\.php.*|questionablecontent\\.net\\/view\\.php.*|questionablecontent\\.net\\/comics\\/.*\\.png|www\\.questionablecontent\\.net\\/comics\\/.*\\.png|twitrpix\\.com\\/.*|.*\\.twitrpix\\.com\\/.*|www\\.someecards\\.com\\/.*\\/.*|someecards\\.com\\/.*\\/.*|some\\.ly\\/.*|www\\.some\\.ly\\/.*|pikchur\\.com\\/.*|achewood\\.com\\/.*|www\\.achewood\\.com\\/.*|achewood\\.com\\/index\\.php.*|www\\.achewood\\.com\\/index\\.php.*|www\\.whosay\\.com\\/.*\\/content\\/.*|www\\.whosay\\.com\\/.*\\/photos\\/.*|www\\.whosay\\.com\\/.*\\/videos\\/.*|say\\.ly\\/.*|ow\\.ly\\/i\\/.*|mlkshk\\.com\\/p\\/.*|lockerz\\.com\\/s\\/.*|pics\\.lockerz\\.com\\/s\\/.*|d\\.pr\\/i\\/.*|www\\.eyeem\\.com\\/p\\/.*|www\\.eyeem\\.com\\/a\\/.*|www\\.eyeem\\.com\\/u\\/.*|giphy\\.com\\/gifs\\/.*|gph\\.is\\/.*|frontback\\.me\\/p\\/.*|www\\.fotokritik\\.com\\/.*\\/.*|fotokritik\\.com\\/.*\\/.*|vid\\.me\\/.*|galeri\\.uludagsozluk\\.com\\/.*|gfycat\\.com\\/.*|tochka\\.net\\/.*|.*\\.tochka\\.net\\/.*|4cook\\.net\\/recipe\\/.*|.*youtube\\.com\\/watch.*|.*\\.youtube\\.com\\/v\\/.*|youtu\\.be\\/.*|.*\\.youtube\\.com\\/user\\/.*|.*\\.youtube\\.com\\/.*#.*\\/.*|m\\.youtube\\.com\\/watch.*|m\\.youtube\\.com\\/index.*|.*\\.youtube\\.com\\/profile.*|.*\\.youtube\\.com\\/view_play_list.*|.*\\.youtube\\.com\\/playlist.*|www\\.youtube\\.com\\/embed\\/.*|youtube\\.com\\/gif.*|www\\.youtube\\.com\\/gif.*|.*twitch\\.tv\\/.*|.*twitch\\.tv\\/.*\\/b\\/.*|www\\.ustream\\.tv\\/recorded\\/.*|www\\.ustream\\.tv\\/channel\\/.*|www\\.ustream\\.tv\\/.*|ustre\\.am\\/.*|qik\\.com\\/video\\/.*|qik\\.com\\/.*|qik\\.ly\\/.*|.*revision3\\.com\\/.*|.*\\.dailymotion\\.com\\/video\\/.*|.*\\.dailymotion\\.com\\/.*\\/video\\/.*|collegehumor\\.com\\/video:.*|collegehumor\\.com\\/video\\/.*|www\\.collegehumor\\.com\\/video:.*|www\\.collegehumor\\.com\\/video\\/.*|telly\\.com\\/.*|www\\.telly\\.com\\/.*|break\\.com\\/.*\\/.*|www\\.break\\.com\\/.*\\/.*|vids\\.myspace\\.com\\/index\\.cfm\\?fuseaction=vids\\.individual&videoid.*|www\\.myspace\\.com\\/index\\.cfm\\?fuseaction=.*&videoid.*|www\\.metacafe\\.com\\/watch\\/.*|www\\.metacafe\\.com\\/w\\/.*|blip\\.tv\\/.*\\/.*|.*\\.blip\\.tv\\/.*\\/.*|video\\.google\\.com\\/videoplay\\?.*|.*viddler\\.com\\/v\\/.*|liveleak\\.com\\/view\\?.*|www\\.liveleak\\.com\\/view\\?.*|animoto\\.com\\/play\\/.*|video214\\.com\\/play\\/.*|dotsub\\.com\\/view\\/.*|www\\.overstream\\.net\\/view\\.php\\?oid=.*|www\\.livestream\\.com\\/.*|new\\.livestream\\.com\\/.*|www\\.worldstarhiphop\\.com\\/videos\\/video.*\\.php\\?v=.*|worldstarhiphop\\.com\\/videos\\/video.*\\.php\\?v=.*|bambuser\\.com\\/v\\/.*|bambuser\\.com\\/channel\\/.*|bambuser\\.com\\/channel\\/.*\\/broadcast\\/.*|www\\.schooltube\\.com\\/video\\/.*\\/.*|bigthink\\.com\\/ideas\\/.*|bigthink\\.com\\/series\\/.*|sendables\\.jibjab\\.com\\/view\\/.*|sendables\\.jibjab\\.com\\/originals\\/.*|jibjab\\.com\\/view\\/.*|www\\.xtranormal\\.com\\/watch\\/.*|socialcam\\.com\\/v\\/.*|www\\.socialcam\\.com\\/v\\/.*|v\\.youku\\.com\\/v_show\\/.*|v\\.youku\\.com\\/v_playlist\\/.*|www\\.snotr\\.com\\/video\\/.*|snotr\\.com\\/video\\/.*|www\\.clipfish\\.de\\/.*\\/.*\\/video\\/.*|www\\.myvideo\\.de\\/watch\\/.*|www\\.vzaar\\.com\\/videos\\/.*|vzaar\\.com\\/videos\\/.*|www\\.vzaar\\.tv\\/.*|vzaar\\.tv\\/.*|vzaar\\.me\\/.*|.*\\.vzaar\\.me\\/.*|coub\\.com\\/view\\/.*|coub\\.com\\/embed\\/.*|www\\.streamio\\.com\\/api\\/v1\\/.*|streamio\\.com\\/api\\/v1\\/.*|vine\\.co\\/v\\/.*|www\\.vine\\.co\\/v\\/.*|www\\.viddy\\.com\\/video\\/.*|www\\.viddy\\.com\\/.*\\/v\\/.*|www\\.tudou\\.com\\/programs\\/view\\/.*|tudou\\.com\\/programs\\/view\\/.*|sproutvideo\\.com\\/videos\\/.*|embed\\.minoto-video\\.com\\/.*|iframe\\.minoto-video\\.com\\/.*|play\\.minoto-video\\.com\\/.*|dashboard\\.minoto-video\\.com\\/main\\/video\\/details\\/.*|api\\.minoto-video\\.com\\/publishers\\/.*\\/videos\\/.*|www\\.brainshark\\.com\\/.*\\/.*|brainshark\\.com\\/.*\\/.*|23video\\.com\\/.*|.*\\.23video\\.com\\/.*|goanimate\\.com\\/videos\\/.*|brainsonic\\.com\\/.*|.*\\.brainsonic\\.com\\/.*|lustich\\.de\\/videos\\/.*|web\\.tv\\/.*|.*\\.web\\.tv\\/.*|mynet\\.com\\/video\\/.*|www\\.mynet\\.com\\/video\\/|izlesene\\.com\\/video\\/.*|www\\.izlesene\\.com\\/video\\/|alkislarlayasiyorum\\.com\\/.*|www\\.alkislarlayasiyorum\\.com\\/.*|59saniye\\.com\\/.*|www\\.59saniye\\.com\\/.*|zie\\.nl\\/video\\/.*|www\\.zie\\.nl\\/video\\/.*|app\\.ustudio\\.com\\/embed\\/.*\\/.*|bale\\.io\\/.*|www\\.allego\\.com\\/.*|clipter\\.com\\/c\\/.*|sendvid\\.com\\/.*|www\\.snappytv\\.com\\/.*|snappytv\\.com\\/.*|frankly\\.me\\/.*|streamable\\.com\\/.*|ticker\\.tv\\/v\\/.*|videobio\\.com\\/playerjs\\/.*|clippituser\\.tv\\/.*|www\\.clippituser\\.tv\\/.*|www\\.whitehouse\\.gov\\/photos-and-video\\/video\\/.*|www\\.whitehouse\\.gov\\/video\\/.*|wh\\.gov\\/photos-and-video\\/video\\/.*|wh\\.gov\\/video\\/.*|www\\.hulu\\.com\\/watch.*|www\\.hulu\\.com\\/w\\/.*|www\\.hulu\\.com\\/embed\\/.*|hulu\\.com\\/watch.*|hulu\\.com\\/w\\/.*|.*crackle\\.com\\/c\\/.*|www\\.funnyordie\\.com\\/videos\\/.*|www\\.funnyordie\\.com\\/m\\/.*|funnyordie\\.com\\/videos\\/.*|funnyordie\\.com\\/m\\/.*|www\\.vimeo\\.com\\/groups\\/.*\\/videos\\/.*|www\\.vimeo\\.com\\/.*|vimeo\\.com\\/groups\\/.*\\/videos\\/.*|vimeo\\.com\\/.*|vimeo\\.com\\/m\\/#\\/.*|player\\.vimeo\\.com\\/.*|www\\.ted\\.com\\/talks\\/.*\\.html.*|www\\.ted\\.com\\/talks\\/lang\\/.*\\/.*\\.html.*|www\\.ted\\.com\\/index\\.php\\/talks\\/.*\\.html.*|www\\.ted\\.com\\/index\\.php\\/talks\\/lang\\/.*\\/.*\\.html.*|www\\.ted\\.com\\/talks\\/|.*nfb\\.ca\\/film\\/.*|thedailyshow\\.cc\\.com\\/videos\\/.*|www\\.thedailyshow\\.com\\/watch\\/.*|www\\.thedailyshow\\.com\\/full-episodes\\/.*|www\\.thedailyshow\\.com\\/collection\\/.*\\/.*\\/.*|yahoo\\.com\\/movies\\/.*|.*\\.yahoo\\.com\\/movies\\/.*|thecolbertreport\\.cc\\.com\\/videos\\/.*|www\\.colbertnation\\.com\\/the-colbert-report-collections\\/.*|www\\.colbertnation\\.com\\/full-episodes\\/.*|www\\.colbertnation\\.com\\/the-colbert-report-videos\\/.*|www\\.comedycentral\\.com\\/videos\\/index\\.jhtml\\?.*|www\\.theonion\\.com\\/video\\/.*|theonion\\.com\\/video\\/.*|wordpress\\.tv\\/.*\\/.*\\/.*\\/.*\\/|www\\.traileraddict\\.com\\/trailer\\/.*|www\\.traileraddict\\.com\\/clip\\/.*|www\\.traileraddict\\.com\\/poster\\/.*|www\\.trailerspy\\.com\\/trailer\\/.*\\/.*|www\\.trailerspy\\.com\\/trailer\\/.*|www\\.trailerspy\\.com\\/view_video\\.php.*|fora\\.tv\\/.*\\/.*\\/.*\\/.*|www\\.spike\\.com\\/video\\/.*|www\\.gametrailers\\.com\\/video.*|gametrailers\\.com\\/video.*|www\\.koldcast\\.tv\\/video\\/.*|www\\.koldcast\\.tv\\/#video:.*|mixergy\\.com\\/.*|video\\.pbs\\.org\\/video\\/.*|www\\.zapiks\\.com\\/.*|www\\.trutv\\.com\\/video\\/.*|www\\.nzonscreen\\.com\\/title\\/.*|nzonscreen\\.com\\/title\\/.*|app\\.wistia\\.com\\/embed\\/medias\\/.*|wistia\\.com\\/.*|.*\\.wistia\\.com\\/.*|.*\\.wi\\.st\\/.*|wi\\.st\\/.*|confreaks\\.net\\/videos\\/.*|www\\.confreaks\\.net\\/videos\\/.*|confreaks\\.com\\/videos\\/.*|www\\.confreaks\\.com\\/videos\\/.*|video\\.allthingsd\\.com\\/video\\/.*|videos\\.nymag\\.com\\/.*|aniboom\\.com\\/animation-video\\/.*|www\\.aniboom\\.com\\/animation-video\\/.*|grindtv\\.com\\/.*\\/video\\/.*|www\\.grindtv\\.com\\/.*\\/video\\/.*|ifood\\.tv\\/recipe\\/.*|ifood\\.tv\\/video\\/.*|ifood\\.tv\\/channel\\/user\\/.*|www\\.ifood\\.tv\\/recipe\\/.*|www\\.ifood\\.tv\\/video\\/.*|www\\.ifood\\.tv\\/channel\\/user\\/.*|logotv\\.com\\/video\\/.*|www\\.logotv\\.com\\/video\\/.*|lonelyplanet\\.com\\/Clip\\.aspx\\?.*|www\\.lonelyplanet\\.com\\/Clip\\.aspx\\?.*|streetfire\\.net\\/video\\/.*\\.htm.*|www\\.streetfire\\.net\\/video\\/.*\\.htm.*|sciencestage\\.com\\/v\\/.*\\.html|sciencestage\\.com\\/a\\/.*\\.html|www\\.sciencestage\\.com\\/v\\/.*\\.html|www\\.sciencestage\\.com\\/a\\/.*\\.html|link\\.brightcove\\.com\\/services\\/player\\/bcpid.*|bcove\\.me\\/.*|wirewax\\.com\\/.*|www\\.wirewax\\.com\\/.*|canalplus\\.fr\\/.*|www\\.canalplus\\.fr\\/.*|www\\.vevo\\.com\\/watch\\/.*|www\\.vevo\\.com\\/video\\/.*|pixorial\\.com\\/watch\\/.*|www\\.pixorial\\.com\\/watch\\/.*|spreecast\\.com\\/events\\/.*|www\\.spreecast\\.com\\/events\\/.*|showme\\.com\\/sh\\/.*|www\\.showme\\.com\\/sh\\/.*|.*\\.looplogic\\.com\\/.*|on\\.aol\\.com\\/video\\/.*|on\\.aol\\.com\\/playlist\\/.*|videodetective\\.com\\/.*\\/.*|www\\.videodetective\\.com\\/.*\\/.*|khanacademy\\.org\\/.*|www\\.khanacademy\\.org\\/.*|.*vidyard\\.com\\/.*|www\\.veoh\\.com\\/watch\\/.*|veoh\\.com\\/watch\\/.*|.*\\.univision\\.com\\/.*\\/video\\/.*|.*\\.vidcaster\\.com\\/.*|muzu\\.tv\\/.*|www\\.muzu\\.tv\\/.*|vube\\.com\\/.*\\/.*|www\\.vube\\.com\\/.*\\/.*|.*boxofficebuz\\.com\\/video\\/.*|www\\.godtube\\.com\\/featured\\/video\\/.*|godtube\\.com\\/featured\\/video\\/.*|www\\.godtube\\.com\\/watch\\/.*|godtube\\.com\\/watch\\/.*|mediamatters\\.org\\/mmtv\\/.*|www\\.clikthrough\\.com\\/theater\\/video\\/.*|www\\.clipsyndicate\\.com\\/video\\/playlist\\/.*\\/.*|www\\.srf\\.ch\\/play\\/.*\\/.*\\/.*\\/.*\\?id=.*|www\\.mpora\\.com\\/videos\\/.*|mpora\\.com\\/videos\\/.*|vice\\.com\\/.*|www\\.vice\\.com\\/.*|videodonor\\.com\\/video\\/.*|api\\.lovelive\\.tv\\/v1\\/.*|www\\.hurriyettv\\.com\\/.*|www\\.hurriyettv\\.com\\/.*|video\\.uludagsozluk\\.com\\/.*|www\\.ign\\.com\\/videos\\/.*|ign\\.com\\/videos\\/.*|www\\.askmen\\.com\\/video\\/.*|askmen\\.com\\/video\\/.*|video\\.esri\\.com\\/.*|www\\.zapkolik\\.com\\/video\\/.*|.*\\.iplayerhd\\.com\\/playerframe\\/.*|.*\\.iplayerhd\\.com\\/player\\/video\\/.*|plays\\.tv\\/video\\/.*|espn\\.go\\.com\\/video\\/clip.*|espn\\.go\\.com\\/.*\\/story.*|abcnews\\.com\\/.*\\/video\\/.*|abcnews\\.com\\/video\\/playerIndex.*|abcnews\\.go\\.com\\/.*\\/video\\/.*|abcnews\\.go\\.com\\/video\\/playerIndex.*|washingtonpost\\.com\\/wp-dyn\\/.*\\/video\\/.*\\/.*\\/.*\\/.*|www\\.washingtonpost\\.com\\/wp-dyn\\/.*\\/video\\/.*\\/.*\\/.*\\/.*|www\\.boston\\.com\\/video.*|boston\\.com\\/video.*|www\\.boston\\.com\\/.*video.*|boston\\.com\\/.*video.*|www\\.facebook\\.com\\/photo\\.php.*|www\\.facebook\\.com\\/video\\.php.*|www\\.facebook\\.com\\/.*\\/posts\\/.*|fb\\.me\\/.*|www\\.facebook\\.com\\/.*\\/photos\\/.*|www\\.facebook\\.com\\/.*\\/videos\\/.*|cnbc\\.com\\/id\\/.*\\?.*video.*|www\\.cnbc\\.com\\/id\\/.*\\?.*video.*|cnbc\\.com\\/id\\/.*\\/play\\/1\\/video\\/.*|www\\.cnbc\\.com\\/id\\/.*\\/play\\/1\\/video\\/.*|cbsnews\\.com\\/video\\/watch\\/.*|plus\\.google\\.com\\/.*|www\\.google\\.com\\/profiles\\/.*|google\\.com\\/profiles\\/.*|www\\.cnn\\.com\\/video\\/.*|edition\\.cnn\\.com\\/video\\/.*|money\\.cnn\\.com\\/video\\/.*|today\\.msnbc\\.msn\\.com\\/id\\/.*\\/vp\\/.*|www\\.msnbc\\.msn\\.com\\/id\\/.*\\/vp\\/.*|www\\.msnbc\\.msn\\.com\\/id\\/.*\\/ns\\/.*|today\\.msnbc\\.msn\\.com\\/id\\/.*\\/ns\\/.*|msnbc\\.msn\\.com\\/.*\\/watch\\/.*|www\\.msnbc\\.msn\\.com\\/.*\\/watch\\/.*|nbcnews\\.com\\/.*|www\\.nbcnews\\.com\\/.*|multimedia\\.foxsports\\.com\\/m\\/video\\/.*\\/.*|msn\\.foxsports\\.com\\/video.*|www\\.globalpost\\.com\\/video\\/.*|www\\.globalpost\\.com\\/dispatch\\/.*|theguardian\\.com\\/.*\\/video\\/.*\\/.*\\/.*\\/.*|www\\.theguardian\\.com\\/.*\\/video\\/.*\\/.*\\/.*\\/.*|guardian\\.co\\.uk\\/.*\\/video\\/.*\\/.*\\/.*\\/.*|www\\.guardian\\.co\\.uk\\/.*\\/video\\/.*\\/.*\\/.*\\/.*|bravotv\\.com\\/.*\\/.*\\/videos\\/.*|www\\.bravotv\\.com\\/.*\\/.*\\/videos\\/.*|dsc\\.discovery\\.com\\/videos\\/.*|animal\\.discovery\\.com\\/videos\\/.*|health\\.discovery\\.com\\/videos\\/.*|investigation\\.discovery\\.com\\/videos\\/.*|military\\.discovery\\.com\\/videos\\/.*|planetgreen\\.discovery\\.com\\/videos\\/.*|science\\.discovery\\.com\\/videos\\/.*|tlc\\.discovery\\.com\\/videos\\/.*|video\\.forbes\\.com\\/fvn\\/.*|distrify\\.com\\/film\\/.*|muvi\\.es\\/.*|video\\.foxnews\\.com\\/v\\/.*|video\\.foxbusiness\\.com\\/v\\/.*|www\\.reuters\\.com\\/video\\/.*|reuters\\.com\\/video\\/.*|live\\.huffingtonpost\\.com\\/r\\/segment\\/.*\\/.*|video\\.nytimes\\.com\\/video\\/.*|www\\.nytimes\\.com\\/video\\/.*\\/.*|nyti\\.ms\\/.*|www\\.vol\\.at\\/video\\/.*|vol\\.at\\/video\\/.*|www\\.spiegel\\.de\\/video\\/.*|spiegel\\.de\\/video\\/.*|www\\.zeit\\.de\\/video\\/.*|zeit\\.de\\/video\\/.*|www\\.rts\\.ch\\/play\\/tv\\/.*|soundcloud\\.com\\/.*|soundcloud\\.com\\/.*\\/.*|soundcloud\\.com\\/.*\\/sets\\/.*|soundcloud\\.com\\/groups\\/.*|snd\\.sc\\/.*|open\\.spotify\\.com\\/.*|spoti\\.fi\\/.*|play\\.spotify\\.com\\/.*|www\\.last\\.fm\\/music\\/.*|www\\.last\\.fm\\/music\\/+videos\\/.*|www\\.last\\.fm\\/music\\/+images\\/.*|www\\.last\\.fm\\/music\\/.*\\/_\\/.*|www\\.last\\.fm\\/music\\/.*\\/.*|www\\.mixcloud\\.com\\/.*\\/.*\\/|www\\.radionomy\\.com\\/.*\\/radio\\/.*|radionomy\\.com\\/.*\\/radio\\/.*|www\\.hark\\.com\\/clips\\/.*|www\\.rdio\\.com\\/#\\/artist\\/.*\\/album\\/.*|www\\.rdio\\.com\\/artist\\/.*\\/album\\/.*|www\\.zero-inch\\.com\\/.*|.*\\.bandcamp\\.com\\/|.*\\.bandcamp\\.com\\/track\\/.*|.*\\.bandcamp\\.com\\/album\\/.*|freemusicarchive\\.org\\/music\\/.*|www\\.freemusicarchive\\.org\\/music\\/.*|freemusicarchive\\.org\\/curator\\/.*|www\\.freemusicarchive\\.org\\/curator\\/.*|www\\.npr\\.org\\/.*\\/.*\\/.*\\/.*\\/.*|www\\.npr\\.org\\/.*\\/.*\\/.*\\/.*\\/.*\\/.*|www\\.npr\\.org\\/.*\\/.*\\/.*\\/.*\\/.*\\/.*\\/.*|www\\.npr\\.org\\/templates\\/story\\/story\\.php.*|huffduffer\\.com\\/.*\\/.*|www\\.audioboom\\.com\\/boos\\/.*|audioboom\\.com\\/boos\\/.*|boo\\.fm\\/b.*|www\\.xiami\\.com\\/song\\/.*|xiami\\.com\\/song\\/.*|www\\.saynow\\.com\\/playMsg\\.html.*|www\\.saynow\\.com\\/playMsg\\.html.*|grooveshark\\.com\\/.*|radioreddit\\.com\\/songs.*|www\\.radioreddit\\.com\\/songs.*|radioreddit\\.com\\/\\?q=songs.*|www\\.radioreddit\\.com\\/\\?q=songs.*|www\\.gogoyoko\\.com\\/song\\/.*|hypem\\.com\\/premiere\\/.*|bop\\.fm\\/s\\/.*\\/.*|clyp\\.it\\/.*|www\\.dnbradio\\.com\\/.*|dnbradio\\.com\\/.*))|(https:\\/\\/(picasaweb\\.google\\.com.*\\/.*\\/.*#.*|picasaweb\\.google\\.com.*\\/lh\\/photo\\/.*|picasaweb\\.google\\.com.*\\/.*\\/.*|skitch\\.com\\/.*\\/.*\\/.*|img\\.skitch\\.com\\/.*|vidd\\.me\\/.*|vid\\.me\\/.*|gfycat\\.com\\/.*|.*youtube\\.com\\/watch.*|.*\\.youtube\\.com\\/v\\/.*|youtu\\.be\\/.*|.*\\.youtube\\.com\\/playlist.*|www\\.youtube\\.com\\/embed\\/.*|youtube\\.com\\/gif.*|www\\.youtube\\.com\\/gif.*|screen\\.yahoo\\.com\\/.*\\/.*|animoto\\.com\\/play\\/.*|video214\\.com\\/play\\/.*|www\\.streamio\\.com\\/api\\/v1\\/.*|streamio\\.com\\/api\\/v1\\/.*|vine\\.co\\/v\\/.*|www\\.vine\\.co\\/v\\/.*|mixbit\\.com\\/v\\/.*|www\\.brainshark\\.com\\/.*\\/.*|brainshark\\.com\\/.*\\/.*|23video\\.com\\/.*|.*\\.23video\\.com\\/.*|brainsonic\\.com\\/.*|.*\\.brainsonic\\.com\\/.*|www\\.reelhouse\\.org\\/.*|reelhouse\\.org\\/.*|www\\.allego\\.com\\/.*|clipter\\.com\\/c\\/.*|app\\.devhv\\.com\\/oembed\\/.*|sendvid\\.com\\/.*|clipmine\\.com\\/video\\/.*|clipmine\\.com\\/embed\\/.*|clippituser\\.tv\\/.*|www\\.clippituser\\.tv\\/.*|www\\.vimeo\\.com\\/.*|vimeo\\.com\\/.*|player\\.vimeo\\.com\\/.*|yahoo\\.com\\/movies\\/.*|.*\\.yahoo\\.com\\/movies\\/.*|app\\.wistia\\.com\\/embed\\/medias\\/.*|wistia\\.com\\/.*|.*\\.wistia\\.com\\/.*|.*\\.wi\\.st\\/.*|wi\\.st\\/.*|.*\\.looplogic\\.com\\/.*|khanacademy\\.org\\/.*|www\\.khanacademy\\.org\\/.*|.*vidyard\\.com\\/.*|.*\\.stream\\.co\\.jp\\/apiservice\\/.*|.*\\.stream\\.ne\\.jp\\/apiservice\\/.*|api\\.lovelive\\.tv\\/v1\\/.*|video\\.esri\\.com\\/.*|mix\\.office\\.com\\/watch\\/.*|mix\\.office\\.com\\/mix\\/.*|mix\\.office\\.com\\/embed\\/.*|mix\\.office\\.com\\/MyMixes\\/Details\\/.*|.*\\.iplayerhd\\.com\\/playerframe\\/.*|.*\\.iplayerhd\\.com\\/player\\/video\\/.*|plays\\.tv\\/video\\/.*|www\\.facebook\\.com\\/photo\\.php.*|www\\.facebook\\.com\\/video\\.php.*|www\\.facebook\\.com\\/.*\\/posts\\/.*|fb\\.me\\/.*|www\\.facebook\\.com\\/.*\\/photos\\/.*|www\\.facebook\\.com\\/.*\\/videos\\/.*|plus\\.google\\.com\\/.*|soundcloud\\.com\\/.*|soundcloud\\.com\\/.*\\/.*|soundcloud\\.com\\/.*\\/sets\\/.*|soundcloud\\.com\\/groups\\/.*|open\\.spotify\\.com\\/.*|play\\.spotify\\.com\\/.*|bop\\.fm\\/s\\/.*\\/.*|bop\\.fm\\/p\\/.*|bop\\.fm\\/a\\/.*|clyp\\.it\\/.*|sfx\\.io\\/.*)))', 'text', '', '', '', 81),
  277. (@iCategoryId, 'sys_iframely_api_key', '_adm_stg_cpt_option_sys_iframely_api_key', '', 'digit', '', '', '', 90);
  278. --
  279. -- CATEGORY: Permalinks
  280. --
  281. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'permalinks', '_adm_stg_cpt_category_permalinks', 0, 9);
  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, 'permalinks_pages', '_adm_stg_cpt_option_permalinks_pages', 'on', 'checkbox', '', '', '', 1),
  285. (@iCategoryId, 'permalinks_modules', '_adm_stg_cpt_option_permalinks_modules', 'on', 'checkbox', '', '', '', 2),
  286. (@iCategoryId, 'permalinks_storage', '_adm_stg_cpt_option_permalinks_storage', 'on', 'checkbox', '', '', '', 3);
  287. --
  288. -- CATEGORY: Security
  289. --
  290. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'security', '_adm_stg_cpt_category_security', 0, 11);
  291. SET @iCategoryId = LAST_INSERT_ID();
  292. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  293. (@iCategoryId, 'sys_security_form_token_enable', '_adm_stg_cpt_option_sys_security_form_token_enable', 'on', 'checkbox', '', '', '', 10),
  294. (@iCategoryId, 'sys_security_form_token_lifetime', '_adm_stg_cpt_option_sys_security_form_token_lifetime', '86400', 'digit', '', '', '', 11),
  295. (@iCategoryId, 'sys_recaptcha_key_public', '_adm_stg_cpt_option_sys_recaptcha_key_public', '', 'digit', '', '', '', 20),
  296. (@iCategoryId, 'sys_recaptcha_key_private', '_adm_stg_cpt_option_sys_recaptcha_key_private', '', 'digit', '', '', '', 21),
  297. (@iCategoryId, 'sys_add_nofollow', '_adm_stg_cpt_option_sys_add_nofollow', 'on', 'checkbox', '', '', '', 30);
  298. --
  299. -- CATEGORY: Site Settings
  300. --
  301. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'site_settings','_adm_stg_cpt_category_site_settings', 0, 12);
  302. SET @iCategoryId = LAST_INSERT_ID();
  303. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  304. (@iCategoryId, 'site_title', '_adm_stg_cpt_option_site_title', 'Community', 'digit', '', '', '', 1),
  305. (@iCategoryId, 'site_email', '_adm_stg_cpt_option_site_email', 'admin@example.com', 'digit', '', '', '', 2),
  306. (@iCategoryId, 'site_email_notify', '_adm_stg_cpt_option_site_email_notify', 'admin@example.com', 'digit', '', '', '', 3),
  307. (@iCategoryId, 'site_tour_home', '_adm_stg_cpt_option_site_tour_home', 'on', 'checkbox', '', '', '', 6),
  308. (@iCategoryId, 'site_tour_studio', '_adm_stg_cpt_option_site_tour_studio', 'on', 'checkbox', '', '', '', 7),
  309. (@iCategoryId, 'add_to_mobile_homepage', '_adm_stg_cpt_option_add_to_mobile_homepage', 'on', 'checkbox', '', '', '', 8),
  310. (@iCategoryId, 'site_login_social_compact', '_adm_stg_cpt_option_site_login_social_compact', '', 'checkbox', '', '', '', 9),
  311. (@iCategoryId, 'sys_autoupdate', '_adm_stg_cpt_option_sys_autoupdate', 'on', 'checkbox', '', '', '', 10),
  312. (@iCategoryId, 'sys_autoupdate_force_modified_files', '_adm_stg_cpt_option_sys_autoupdate_force_modified_files', '', 'checkbox', '', '', '', 12),
  313. (@iCategoryId, 'sys_per_page_search_keyword_single', '_adm_stg_cpt_option_sys_per_page_search_keyword_single', '24', 'digit', '', '', '', 20),
  314. (@iCategoryId, 'sys_per_page_search_keyword_plural', '_adm_stg_cpt_option_sys_per_page_search_keyword_plural', '3', 'digit', '', '', '', 21);
  315. --
  316. -- CATEGORY: Storage
  317. --
  318. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'storage', '_adm_stg_cpt_category_storage', 0, 13);
  319. SET @iCategoryId = LAST_INSERT_ID();
  320. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  321. (@iCategoryId, 'sys_storage_default', '_adm_stg_cpt_option_sys_storage_default', 'Local', 'select', 'Local,S3', '', '', 1),
  322. (@iCategoryId, 'sys_storage_s3_access_key', '_adm_stg_cpt_option_sys_storage_s3_access_key', '', 'digit', '', '', '', 2),
  323. (@iCategoryId, 'sys_storage_s3_secret_key', '_adm_stg_cpt_option_sys_storage_s3_secret_key', '', 'digit', '', '', '', 3),
  324. (@iCategoryId, 'sys_storage_s3_bucket', '_adm_stg_cpt_option_sys_storage_s3_bucket', '', 'digit', '', '', '', 4),
  325. (@iCategoryId, 'sys_storage_s3_domain', '_adm_stg_cpt_option_sys_storage_s3_domain', '', 'digit', '', '', '', 5);
  326. --
  327. -- CATEGORY: Account
  328. --
  329. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'account', '_adm_stg_cpt_category_account', 0, 14);
  330. SET @iCategoryId = LAST_INSERT_ID();
  331. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  332. (@iCategoryId, 'sys_account_online_time', '_adm_stg_cpt_option_sys_account_online_time', '5', 'digit', '', 'Avail', '_adm_stg_err_option_sys_account_online_time', 1),
  333. (@iCategoryId, 'sys_account_autoapproval', '_adm_stg_cpt_option_sys_account_autoapproval', 'on', 'checkbox', '', '', '', 10),
  334. (@iCategoryId, 'sys_account_activation_letter', '_adm_stg_cpt_option_sys_account_activation_letter', '', 'checkbox', '', '', '', 11),
  335. (@iCategoryId, 'sys_account_default_profile_type', '_adm_stg_cpt_option_sys_account_default_profile_type', '', 'select', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:17:"get_profile_types";s:5:"class";s:20:"TemplServiceProfiles";}', '', '', 20),
  336. (@iCategoryId, 'sys_account_limit_profiles_number', '_adm_stg_cpt_option_sys_account_limit_profiles_number', '0', 'digit', '', '', '', 21);
  337. --
  338. -- CATEGORY: ACL
  339. --
  340. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'acl', '_adm_stg_cpt_category_acl', 0, 15);
  341. SET @iCategoryId = LAST_INSERT_ID();
  342. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  343. (@iCategoryId, 'sys_acl_expire_notification_days', '_adm_stg_cpt_option_sys_acl_expire_notification_days', '1', 'digit', '', '', '', 1),
  344. (@iCategoryId, 'sys_acl_expire_notify_once', '_adm_stg_cpt_option_sys_acl_expire_notify_once', 'on', 'checkbox', '', '', '', 2);
  345. --
  346. -- CATEGORY: Notifications
  347. --
  348. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `order`) VALUES (@iTypeId, 'notifications', '_adm_stg_cpt_category_notifications', 0, 16);
  349. SET @iCategoryId = LAST_INSERT_ID();
  350. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  351. (@iCategoryId, 'enable_notification_pruning', '_adm_stg_cpt_option_enable_notification_pruning', '', 'checkbox', '', '', '', 1),
  352. (@iCategoryId, 'enable_notification_account', '_adm_stg_cpt_option_enable_notification_account', 'on', 'checkbox', '', '', '', 2);
  353. --
  354. -- Table structure for table `sys_options_mixes`
  355. --
  356. CREATE TABLE `sys_options_mixes` (
  357. `id` int(11) unsigned NOT NULL auto_increment,
  358. `type` varchar(64) NOT NULL default '',
  359. `category` varchar(64) NOT NULL default '',
  360. `name` varchar(64) NOT NULL default '',
  361. `title` varchar(64) NOT NULL default '',
  362. `active` tinyint(1) NOT NULL default '0',
  363. `editable` tinyint(1) NOT NULL default '1',
  364. PRIMARY KEY (`id`),
  365. UNIQUE KEY `name`(`name`)
  366. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  367. --
  368. -- Table structure for table `sys_options_mixes2options`
  369. --
  370. CREATE TABLE `sys_options_mixes2options` (
  371. `option` varchar(64) NOT NULL default '',
  372. `mix_id` int(11) unsigned NOT NULL default '0',
  373. `value` mediumtext NOT NULL,
  374. UNIQUE KEY `value`(`option`, `mix_id`)
  375. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  376. -- --------------------------------------------------------
  377. CREATE TABLE `sys_localization_categories` (
  378. `ID` int(6) unsigned NOT NULL auto_increment,
  379. `Name` varchar(255) NOT NULL default '',
  380. PRIMARY KEY (`ID`),
  381. UNIQUE KEY `Name` (`Name`)
  382. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  383. INSERT INTO `sys_localization_categories` VALUES
  384. (1, 'System'),
  385. (2, 'Custom');
  386. CREATE TABLE `sys_localization_keys` (
  387. `ID` int(10) unsigned NOT NULL auto_increment,
  388. `IDCategory` int(6) unsigned NOT NULL default '0',
  389. `Key` varchar(255) character set utf8 collate utf8_bin NOT NULL default '',
  390. PRIMARY KEY (`ID`),
  391. UNIQUE KEY `Key` (`Key`),
  392. FULLTEXT KEY `KeyFilter` (`Key`)
  393. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  394. CREATE TABLE `sys_localization_languages` (
  395. `ID` int(10) unsigned NOT NULL auto_increment,
  396. `Name` varchar(5) NOT NULL default '',
  397. `Flag` varchar(2) NOT NULL default '',
  398. `Title` varchar(255) NOT NULL default '',
  399. `Enabled` tinyint(1) unsigned NOT NULL default '0',
  400. PRIMARY KEY (`ID`),
  401. UNIQUE KEY `Name` (`Name`)
  402. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  403. CREATE TABLE `sys_localization_strings` (
  404. `IDKey` int(10) unsigned NOT NULL default '0',
  405. `IDLanguage` int(10) unsigned NOT NULL default '0',
  406. `String` mediumtext NOT NULL,
  407. PRIMARY KEY (`IDKey`,`IDLanguage`),
  408. FULLTEXT KEY `String` (`String`)
  409. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  410. -- --------------------------------------------------------
  411. CREATE TABLE `sys_acl_actions` (
  412. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  413. `Module` varchar(32) NOT NULL,
  414. `Name` varchar(255) NOT NULL default '',
  415. `AdditionalParamName` varchar(80) default NULL,
  416. `Title` varchar(255) NOT NULL,
  417. `Desc` varchar(255) NOT NULL,
  418. `Countable` tinyint(4) NOT NULL DEFAULT '0',
  419. `DisabledForLevels` int(10) unsigned NOT NULL DEFAULT '3',
  420. PRIMARY KEY (`ID`),
  421. FULLTEXT KEY `ModuleAndName` (`Module`, `Name`)
  422. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  423. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  424. ('system', 'connect', NULL, '_sys_acl_action_connect', '', 0, 3);
  425. SET @iIdActionConnect = LAST_INSERT_ID();
  426. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  427. ('system', 'vote', NULL, '_sys_acl_action_vote', '', 0, 0);
  428. SET @iIdActionVote = LAST_INSERT_ID();
  429. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  430. ('system', 'report', NULL, '_sys_acl_action_report', '', 0, 0);
  431. SET @iIdActionReport = LAST_INSERT_ID();
  432. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  433. ('system', 'report_view', NULL, '_sys_acl_action_report_view', '', 0, 0);
  434. SET @iIdActionReportView = LAST_INSERT_ID();
  435. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  436. ('system', 'favorite', NULL, '_sys_acl_action_favorite', '', 0, 0);
  437. SET @iIdActionFavorite = LAST_INSERT_ID();
  438. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  439. ('system', 'favorite_view', NULL, '_sys_acl_action_favorite_view', '', 0, 0);
  440. SET @iIdActionFavoriteView = LAST_INSERT_ID();
  441. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  442. ('system', 'feature', NULL, '_sys_acl_action_feature', '', 0, 0);
  443. SET @iIdActionFeature = LAST_INSERT_ID();
  444. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  445. ('system', 'view_view', NULL, '_sys_acl_action_view_view', '', 0, 0);
  446. SET @iIdActionViewView = LAST_INSERT_ID();
  447. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  448. ('system', 'view_view_viewers', NULL, '_sys_acl_action_view_view_viewers', '', 0, 0);
  449. SET @iIdActionViewViewViewers = LAST_INSERT_ID();
  450. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  451. ('system', 'comments post', NULL, '_sys_acl_action_comments_post', '', 0, 3);
  452. SET @iIdActionCmtPost = LAST_INSERT_ID();
  453. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  454. ('system', 'comments edit own', NULL, '_sys_acl_action_comments_edit_own', '', 0, 3);
  455. SET @iIdActionCmtEditOwn = LAST_INSERT_ID();
  456. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  457. ('system', 'comments remove own', NULL, '_sys_acl_action_comments_remove_own', '', 0, 3);
  458. SET @iIdActionCmtRemoveOwn = LAST_INSERT_ID();
  459. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  460. ('system', 'comments edit all', NULL, '_sys_acl_action_comments_edit_all', '', 0, 3);
  461. SET @iIdActionCmtEditAll = LAST_INSERT_ID();
  462. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  463. ('system', 'comments remove all', NULL, '_sys_acl_action_comments_remove_all', '', 0, 3);
  464. SET @iIdActionCmtRemoveAll = LAST_INSERT_ID();
  465. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  466. ('system', 'create account', NULL, '_sys_acl_action_create_account', '_sys_acl_action_create_account_desc', 0, 2147483646);
  467. SET @iIdActionAccountCreate = LAST_INSERT_ID();
  468. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  469. ('system', 'delete account', NULL, '_sys_acl_action_delete_account', '_sys_acl_action_delete_account_desc', 0, 1);
  470. SET @iIdActionAccountDelete = LAST_INSERT_ID();
  471. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  472. ('system', 'set acl level', NULL, '_sys_acl_action_set_acl_level', '_sys_acl_action_set_acl_level_desc', 0, 3);
  473. SET @iIdActionSetAclLevel = LAST_INSERT_ID();
  474. INSERT INTO `sys_acl_actions` (`Module`, `Name`, `AdditionalParamName`, `Title`, `Desc`, `Countable`, `DisabledForLevels`) VALUES
  475. ('system', 'chart view', NULL, '_sys_acl_action_chart_view', '_sys_acl_action_chart_view_desc', 0, 3);
  476. SET @iIdActionChartView = LAST_INSERT_ID();
  477. CREATE TABLE `sys_acl_actions_track` (
  478. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  479. `IDMember` int(10) unsigned NOT NULL default '0',
  480. `ActionsLeft` int(10) unsigned NOT NULL DEFAULT '0',
  481. `ValidSince` datetime default NULL,
  482. PRIMARY KEY (`IDAction`,`IDMember`)
  483. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  484. CREATE TABLE `sys_acl_matrix` (
  485. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  486. `IDAction` int(10) unsigned NOT NULL DEFAULT '0',
  487. `AllowedCount` int(10) unsigned DEFAULT NULL,
  488. `AllowedPeriodLen` int(10) unsigned DEFAULT NULL,
  489. `AllowedPeriodStart` datetime default NULL,
  490. `AllowedPeriodEnd` datetime default NULL,
  491. `AdditionalParamValue` varchar(255) default NULL,
  492. PRIMARY KEY (`IDLevel`,`IDAction`)
  493. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  494. SET @iUnauthenticated = 1;
  495. SET @iAccount = 2;
  496. SET @iStandard = 3;
  497. SET @iUnconfirmed = 4;
  498. SET @iPending = 5;
  499. SET @iSuspended = 6;
  500. SET @iModerator = 7;
  501. SET @iAdministrator = 8;
  502. SET @iPremium = 9;
  503. INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES
  504. -- connect
  505. (@iStandard, @iIdActionConnect),
  506. (@iModerator, @iIdActionConnect),
  507. (@iAdministrator, @iIdActionConnect),
  508. (@iPremium, @iIdActionConnect),
  509. -- vote
  510. (@iStandard, @iIdActionVote),
  511. (@iModerator, @iIdActionVote),
  512. (@iAdministrator, @iIdActionVote),
  513. (@iPremium, @iIdActionVote),
  514. -- report
  515. (@iStandard, @iIdActionReport),
  516. (@iModerator, @iIdActionReport),
  517. (@iAdministrator, @iIdActionReport),
  518. (@iPremium, @iIdActionReport),
  519. -- report view
  520. (@iModerator, @iIdActionReportView),
  521. (@iAdministrator, @iIdActionReportView),
  522. -- favorite
  523. (@iStandard, @iIdActionFavorite),
  524. (@iModerator, @iIdActionFavorite),
  525. (@iAdministrator, @iIdActionFavorite),
  526. (@iPremium, @iIdActionFavorite),
  527. -- favorite view
  528. (@iUnauthenticated, @iIdActionFavoriteView),
  529. (@iAccount, @iIdActionFavoriteView),
  530. (@iStandard, @iIdActionFavoriteView),
  531. (@iUnconfirmed, @iIdActionFavoriteView),
  532. (@iPending, @iIdActionFavoriteView),
  533. (@iModerator, @iIdActionFavoriteView),
  534. (@iAdministrator, @iIdActionFavoriteView),
  535. (@iPremium, @iIdActionFavoriteView),
  536. -- feature
  537. (@iModerator, @iIdActionFeature),
  538. (@iAdministrator, @iIdActionFeature),
  539. -- view view
  540. (@iUnauthenticated, @iIdActionViewView),
  541. (@iAccount, @iIdActionViewView),
  542. (@iStandard, @iIdActionViewView),
  543. (@iUnconfirmed, @iIdActionViewView),
  544. (@iPending, @iIdActionViewView),
  545. (@iModerator, @iIdActionViewView),
  546. (@iAdministrator, @iIdActionViewView),
  547. (@iPremium, @iIdActionViewView),
  548. -- view view viewers
  549. (@iModerator, @iIdActionViewViewViewers),
  550. (@iAdministrator, @iIdActionViewViewViewers),
  551. -- comments post
  552. (@iStandard, @iIdActionCmtPost),
  553. (@iModerator, @iIdActionCmtPost),
  554. (@iAdministrator, @iIdActionCmtPost),
  555. (@iPremium, @iIdActionCmtPost),
  556. -- comments edit own
  557. (@iStandard, @iIdActionCmtEditOwn),
  558. (@iModerator, @iIdActionCmtEditOwn),
  559. (@iAdministrator, @iIdActionCmtEditOwn),
  560. (@iPremium, @iIdActionCmtEditOwn),
  561. -- comments remove own
  562. (@iStandard, @iIdActionCmtRemoveOwn),
  563. (@iModerator, @iIdActionCmtRemoveOwn),
  564. (@iAdministrator, @iIdActionCmtRemoveOwn),
  565. (@iPremium, @iIdActionCmtRemoveOwn),
  566. -- comments edit all
  567. (@iModerator, @iIdActionCmtEditAll),
  568. (@iAdministrator, @iIdActionCmtEditAll),
  569. -- comments remove all
  570. (@iModerator, @iIdActionCmtRemoveAll),
  571. (@iAdministrator, @iIdActionCmtRemoveAll),
  572. -- account create
  573. (@iUnauthenticated, @iIdActionAccountCreate),
  574. -- account delete
  575. (@iAccount, @iIdActionAccountDelete),
  576. (@iStandard, @iIdActionAccountDelete),
  577. (@iUnconfirmed, @iIdActionAccountDelete),
  578. (@iPending, @iIdActionAccountDelete),
  579. (@iModerator, @iIdActionAccountDelete),
  580. (@iAdministrator, @iIdActionAccountDelete),
  581. (@iPremium, @iIdActionAccountDelete),
  582. -- set acl level
  583. (@iAdministrator, @iIdActionSetAclLevel),
  584. -- view charts
  585. (@iAdministrator, @iIdActionChartView);
  586. CREATE TABLE `sys_acl_levels` (
  587. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  588. `Name` varchar(100) NOT NULL default '',
  589. `Icon` varchar(255) NOT NULL default '',
  590. `Description` varchar(255) NOT NULL default '',
  591. `Active` enum('yes','no') NOT NULL default 'no',
  592. `Purchasable` enum('yes','no') NOT NULL default 'yes',
  593. `Removable` enum('yes','no') NOT NULL default 'yes',
  594. `QuotaSize` int(11) NOT NULL,
  595. `QuotaNumber` int(11) NOT NULL,
  596. `QuotaMaxFileSize` int(11) NOT NULL,
  597. `Order` int(11) NOT NULL default '0',
  598. PRIMARY KEY (`ID`),
  599. UNIQUE KEY `Name` (`Name`),
  600. FULLTEXT KEY `Description` (`Description`)
  601. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  602. INSERT INTO `sys_acl_levels` (`ID`, `Name`, `Icon`, `Description`, `Active`, `Purchasable`, `Removable`, `QuotaSize`, `QuotaNumber`, `QuotaMaxFileSize`, `Order`) VALUES
  603. (1, '_adm_prm_txt_level_unauthenticated', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 1),
  604. (2, '_adm_prm_txt_level_account', 'user col-green1', '', 'yes', 'no', 'no', 0, 0, 0, 2),
  605. (3, '_adm_prm_txt_level_standard', 'user col-red1', '', 'yes', 'no', 'no', 0, 0, 0, 3),
  606. (4, '_adm_prm_txt_level_unconfirmed', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 4),
  607. (5, '_adm_prm_txt_level_pending', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 5),
  608. (6, '_adm_prm_txt_level_suspended', 'user bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 6),
  609. (7, '_adm_prm_txt_level_moderator', 'user-secret bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 7),
  610. (8, '_adm_prm_txt_level_administrator', 'user-secret bx-def-font-color', '', 'yes', 'no', 'no', 0, 0, 0, 8),
  611. (9, '_adm_prm_txt_level_premium', 'user col-red3', '', 'yes', 'yes', 'no', 0, 0, 0, 9);
  612. -- --------------------------------------------------------
  613. --
  614. -- Table structure for table `boon_sys_sessions`
  615. --
  616. CREATE TABLE IF NOT EXISTS `sys_sessions` (
  617. `id` varchar(32) NOT NULL default '',
  618. `user_id` int(10) unsigned NOT NULL default '0',
  619. `data` text,
  620. `date` int(10) unsigned NOT NULL default '0',
  621. PRIMARY KEY (`id`),
  622. KEY `user_id` (`user_id`),
  623. KEY `date` (`date`)
  624. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  625. -- --------------------------------------------------------
  626. --
  627. -- Table structure for table `sys_acl_levels_members`
  628. --
  629. CREATE TABLE `sys_acl_levels_members` (
  630. `IDMember` int(10) unsigned NOT NULL default '0',
  631. `IDLevel` int(10) unsigned NOT NULL DEFAULT '0',
  632. `DateStarts` datetime NOT NULL default '0000-00-00 00:00:00',
  633. `DateExpires` datetime default NULL,
  634. `TransactionID` varchar(16) NOT NULL default '',
  635. PRIMARY KEY (`IDMember`,`IDLevel`,`DateStarts`)
  636. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  637. -- --------------------------------------------------------
  638. CREATE TABLE `sys_accounts` (
  639. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  640. `profile_id` int(10) unsigned NOT NULL,
  641. `name` varchar(255) NOT NULL,
  642. `email` varchar(255) NOT NULL,
  643. `email_confirmed` tinyint(4) NOT NULL DEFAULT '0',
  644. `receive_updates` tinyint(4) NOT NULL DEFAULT '1',
  645. `receive_news` tinyint(4) NOT NULL DEFAULT '1',
  646. `password` varchar(40) NOT NULL,
  647. `salt` varchar(10) NOT NULL,
  648. `role` tinyint(4) NOT NULL DEFAULT '1',
  649. `lang_id` int(10) unsigned NOT NULL DEFAULT '0',
  650. `added` int(11) NOT NULL DEFAULT '0',
  651. `changed` int(11) NOT NULL DEFAULT '0',
  652. `logged` int(11) NOT NULL DEFAULT '0',
  653. PRIMARY KEY (`id`),
  654. UNIQUE KEY `email` (`email`),
  655. KEY `added` (`added`)
  656. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  657. CREATE TABLE IF NOT EXISTS `sys_profiles` (
  658. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  659. `account_id` int(10) unsigned NOT NULL,
  660. `type` varchar(32) NOT NULL,
  661. `content_id` int(10) unsigned NOT NULL,
  662. `status` enum('active','pending','suspended') NOT NULL DEFAULT 'active',
  663. PRIMARY KEY (`id`),
  664. UNIQUE KEY `account_type_content` (`account_id`,`type`,`content_id`),
  665. KEY `content_type` (`content_id`,`type`)
  666. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  667. -- --------------------------------------------------------
  668. --
  669. -- Table structure for table 'sys_statistics'
  670. --
  671. CREATE TABLE `sys_statistics` (
  672. `id` int(11) unsigned NOT NULL auto_increment,
  673. `module` varchar(32) NOT NULL default '',
  674. `name` varchar(64) NOT NULL default '',
  675. `title` varchar(255) NOT NULL default '',
  676. `link` varchar(255) NOT NULL default '',
  677. `icon` varchar(32) NOT NULL default '',
  678. `query` text NOT NULL default '',
  679. `order` int(11) NOT NULL default '0',
  680. PRIMARY KEY (`ID`),
  681. UNIQUE KEY `name` (`name`)
  682. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  683. INSERT INTO `sys_statistics` (`module`, `name`, `title`, `link`, `icon`, `query`, `order`) VALUES
  684. ('system', 'sys_accounts', '_sys_accounts', '', 'user', 'SELECT COUNT(*) FROM `sys_accounts` WHERE 1', 1);
  685. -- --------------------------------------------------------
  686. --
  687. -- Table structure for table 'sys_objects_rss'
  688. --
  689. CREATE TABLE `sys_objects_rss` (
  690. `id` int(11) NOT NULL auto_increment,
  691. `object` varchar(64) NOT NULL,
  692. `class_name` varchar(32) NOT NULL default '',
  693. `class_file` varchar(256) NOT NULL default '',
  694. PRIMARY KEY (`id`)
  695. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  696. INSERT INTO `sys_objects_rss` (`object`, `class_name`, `class_file`) VALUES
  697. ('sys_boonex', 'BxDolRssBoonEx', ''),
  698. ('sys_page_block', 'BxDolRssPageBlock', ''),
  699. ('sys_studio_page_help', 'BxDolStudioRssPageHelp', ''),
  700. ('sys_studio_module_help', 'BxDolStudioRssModuleHelp', '');
  701. -- --------------------------------------------------------
  702. --
  703. -- Table structure for table 'sys_objects_search'
  704. --
  705. CREATE TABLE `sys_objects_search` (
  706. `ID` int(10) unsigned NOT NULL auto_increment,
  707. `ObjectName` varchar(64) NOT NULL default '',
  708. `Title` varchar(50) NOT NULL default '',
  709. `Order` int(11) NOT NULL,
  710. `GlobalSearch` tinyint(4) NOT NULL DEFAULT '1',
  711. `ClassName` varchar(50) NOT NULL default '',
  712. `ClassPath` varchar(100) NOT NULL default '',
  713. PRIMARY KEY (`ID`)
  714. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  715. -- --------------------------------------------------------
  716. --
  717. -- Table structure for table 'sys_objects_search_extended'
  718. --
  719. CREATE TABLE `sys_objects_search_extended` (
  720. `id` int(10) unsigned NOT NULL auto_increment,
  721. `object` varchar(64) NOT NULL default '',
  722. `object_content_info` varchar(64) NOT NULL default '',
  723. `module` varchar(32) NOT NULL default '',
  724. `title` varchar(255) NOT NULL default '',
  725. `active` tinyint(4) NOT NULL DEFAULT '0',
  726. `class_name` varchar(32) NOT NULL default '',
  727. `class_file` varchar(255) NOT NULL default '',
  728. PRIMARY KEY (`id`),
  729. UNIQUE KEY `object` (`object`)
  730. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  731. -- --------------------------------------------------------
  732. --
  733. -- Table structure for table 'sys_search_extended_fields'
  734. --
  735. CREATE TABLE `sys_search_extended_fields` (
  736. `id` int(10) unsigned NOT NULL auto_increment,
  737. `object` varchar(64) NOT NULL default '',
  738. `name` varchar(255) NOT NULL default '',
  739. `type` varchar(32) NOT NULL default '',
  740. `caption` varchar(255) NOT NULL default '',
  741. `values` text NOT NULL default '',
  742. `pass` varchar(32) NOT NULL,
  743. `search_type` varchar(32) NOT NULL default '',
  744. `search_value` varchar(255) NOT NULL default '',
  745. `search_operator` varchar(32) NOT NULL default '',
  746. `active` tinyint(4) NOT NULL DEFAULT '0',
  747. `order` int(11) NOT NULL default '0',
  748. PRIMARY KEY (`id`),
  749. UNIQUE KEY `field` (`object`, `name`)
  750. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  751. -- --------------------------------------------------------
  752. --
  753. -- Table structure for table `sys_objects_vote`
  754. --
  755. CREATE TABLE `sys_objects_vote` (
  756. `ID` int(11) unsigned NOT NULL auto_increment,
  757. `Name` varchar(50) NOT NULL default '',
  758. `TableMain` varchar(50) NOT NULL default '',
  759. `TableTrack` varchar(50) NOT NULL default '',
  760. `PostTimeout` int(11) NOT NULL default '0',
  761. `MinValue` tinyint(4) NOT NULL default '1',
  762. `MaxValue` tinyint(4) NOT NULL default '5',
  763. `IsUndo` tinyint(1) NOT NULL default '0',
  764. `IsOn` tinyint(1) NOT NULL default '1',
  765. `TriggerTable` varchar(32) NOT NULL default '',
  766. `TriggerFieldId` varchar(32) NOT NULL default '',
  767. `TriggerFieldAuthor` varchar(32) NOT NULL default '',
  768. `TriggerFieldRate` varchar(32) NOT NULL default '',
  769. `TriggerFieldRateCount` varchar(32) NOT NULL default '',
  770. `ClassName` varchar(32) NOT NULL default '',
  771. `ClassFile` varchar(256) NOT NULL default '',
  772. PRIMARY KEY (`ID`)
  773. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  774. INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
  775. ('sys_cmts', 'sys_cmts_votes', 'sys_cmts_votes_track', '604800', '1', '1', '0', '1', 'sys_cmts_ids', 'id', '', 'rate', 'votes', '', '');
  776. -- -------------------------------------------------------
  777. CREATE TABLE `sys_modules` (
  778. `id` int(11) unsigned NOT NULL auto_increment,
  779. `type` varchar(16) NOT NULL default 'module',
  780. `name` varchar(32) NOT NULL default '',
  781. `title` varchar(255) NOT NULL default '',
  782. `vendor` varchar(64) NOT NULL default '',
  783. `version` varchar(32) NOT NULL default '',
  784. `help_url` varchar(128) NOT NULL default '',
  785. `path` varchar(255) NOT NULL default '',
  786. `uri` varchar(32) NOT NULL default '',
  787. `class_prefix` varchar(32) NOT NULL default '',
  788. `db_prefix` varchar(32) NOT NULL default '',
  789. `lang_category` varchar(64) NOT NULL default '',
  790. `dependencies` varchar(255) NOT NULL default '',
  791. `date` int(11) unsigned NOT NULL default '0',
  792. `enabled` tinyint(1) NOT NULL default '0',
  793. `pending_uninstall` tinyint(4) NOT NULL,
  794. `hash` varchar(32) NOT NULL default '',
  795. PRIMARY KEY (`id`),
  796. UNIQUE KEY `name` (`name`),
  797. UNIQUE KEY `path` (`path`),
  798. UNIQUE KEY `uri` (`uri`),
  799. UNIQUE KEY `class_prefix` (`class_prefix`),
  800. UNIQUE KEY `db_prefix` (`db_prefix`)
  801. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  802. INSERT INTO `sys_modules` (`type`, `name`, `title`, `vendor`, `version`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `dependencies`, `date`, `enabled`) VALUES
  803. ('module', 'system', 'System', 'UNA, Inc', '9', '', 'system', 'Bx', 'sys_', 'System', '', 0, 1);
  804. CREATE TABLE `sys_modules_file_tracks` (
  805. `id` int(11) unsigned NOT NULL auto_increment,
  806. `module_id` int(11) unsigned NOT NULL default '0',
  807. `file` varchar(255) NOT NULL default '',
  808. `hash` varchar(64) NOT NULL default '',
  809. PRIMARY KEY (`id`)
  810. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  811. CREATE TABLE `sys_modules_relations` (
  812. `id` int(11) unsigned NOT NULL auto_increment,
  813. `module` varchar(32) NOT NULL default '',
  814. `on_install` varchar(255) NOT NULL default '',
  815. `on_uninstall` varchar(255) NOT NULL default '',
  816. `on_enable` varchar(255) NOT NULL default '',
  817. `on_disable` varchar(255) NOT NULL default '',
  818. PRIMARY KEY (`id`)
  819. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  820. -- --------------------------------------------------------
  821. CREATE TABLE IF NOT EXISTS `sys_files` (
  822. `id` int(11) NOT NULL AUTO_INCREMENT,
  823. `profile_id` int(10) unsigned NOT NULL,
  824. `remote_id` varchar(128) NOT NULL,
  825. `path` varchar(255) NOT NULL,
  826. `file_name` varchar(255) NOT NULL,
  827. `mime_type` varchar(128) NOT NULL,
  828. `ext` varchar(32) NOT NULL,
  829. `size` int(11) NOT NULL,
  830. `added` int(11) NOT NULL,
  831. `modified` int(11) NOT NULL,
  832. `private` int(11) NOT NULL,
  833. PRIMARY KEY (`id`),
  834. UNIQUE KEY `remote_id` (`remote_id`)
  835. );
  836. CREATE TABLE `sys_images` (
  837. `id` int(11) NOT NULL AUTO_INCREMENT,
  838. `profile_id` int(10) unsigned NOT NULL,
  839. `remote_id` varchar(128) NOT NULL,
  840. `path` varchar(255) NOT NULL,
  841. `file_name` varchar(255) NOT NULL,
  842. `mime_type` varchar(128) NOT NULL,
  843. `ext` varchar(32) NOT NULL,
  844. `size` int(11) NOT NULL,
  845. `added` int(11) NOT NULL,
  846. `modified` int(11) NOT NULL,
  847. `private` int(11) NOT NULL,
  848. PRIMARY KEY (`id`),
  849. UNIQUE KEY `remote_id` (`remote_id`)
  850. );
  851. CREATE TABLE `sys_images_custom` (
  852. `id` int(11) NOT NULL AUTO_INCREMENT,
  853. `profile_id` int(10) unsigned NOT NULL,
  854. `remote_id` varchar(128) NOT NULL,
  855. `path` varchar(255) NOT NULL,
  856. `file_name` varchar(255) NOT NULL,
  857. `mime_type` varchar(128) NOT NULL,
  858. `ext` varchar(32) NOT NULL,
  859. `size` int(11) NOT NULL,
  860. `added` int(11) NOT NULL,
  861. `modified` int(11) NOT NULL,
  862. `private` int(11) NOT NULL,
  863. PRIMARY KEY (`id`),
  864. UNIQUE KEY `remote_id` (`remote_id`)
  865. );
  866. CREATE TABLE `sys_images_resized` (
  867. `id` int(11) NOT NULL AUTO_INCREMENT,
  868. `profile_id` int(10) unsigned NOT NULL,
  869. `remote_id` varchar(128) NOT NULL,
  870. `path` varchar(255) NOT NULL,
  871. `file_name` varchar(255) NOT NULL,
  872. `mime_type` varchar(128) NOT NULL,
  873. `ext` varchar(32) NOT NULL,
  874. `size` int(11) NOT NULL,
  875. `added` int(11) NOT NULL,
  876. `modified` int(11) NOT NULL,
  877. `private` int(11) NOT NULL,
  878. PRIMARY KEY (`id`),
  879. UNIQUE KEY `remote_id` (`remote_id`)
  880. );
  881. -- --------------------------------------------------------
  882. CREATE TABLE IF NOT EXISTS `sys_cmts_images` (
  883. `id` int(11) NOT NULL AUTO_INCREMENT,
  884. `profile_id` int(10) unsigned NOT NULL,
  885. `remote_id` varchar(128) NOT NULL,
  886. `path` varchar(255) NOT NULL,
  887. `file_name` varchar(255) NOT NULL,
  888. `mime_type` varchar(128) NOT NULL,
  889. `ext` varchar(32) NOT NULL,
  890. `size` int(11) NOT NULL,
  891. `added` int(11) NOT NULL,
  892. `modified` int(11) NOT NULL,
  893. `private` int(11) NOT NULL,
  894. PRIMARY KEY (`id`),
  895. UNIQUE KEY `remote_id` (`remote_id`)
  896. );
  897. CREATE TABLE IF NOT EXISTS `sys_cmts_images_preview` (
  898. `id` int(11) NOT NULL AUTO_INCREMENT,
  899. `profile_id` int(10) unsigned NOT NULL,
  900. `remote_id` varchar(128) NOT NULL,
  901. `path` varchar(255) NOT NULL,
  902. `file_name` varchar(255) NOT NULL,
  903. `mime_type` varchar(128) NOT NULL,
  904. `ext` varchar(32) NOT NULL,
  905. `size` int(11) NOT NULL,
  906. `added` int(11) NOT NULL,
  907. `modified` int(11) NOT NULL,
  908. `private` int(11) NOT NULL,
  909. PRIMARY KEY (`id`),
  910. UNIQUE KEY `remote_id` (`remote_id`)
  911. );
  912. CREATE TABLE IF NOT EXISTS `sys_cmts_images2entries` (
  913. `id` int(11) NOT NULL AUTO_INCREMENT,
  914. `system_id` int(11) NOT NULL DEFAULT '0',
  915. `cmt_id` int(11) NOT NULL DEFAULT '0',
  916. `image_id` int(11) NOT NULL DEFAULT '0',
  917. PRIMARY KEY (`id`),
  918. UNIQUE KEY `image` (`system_id`,`cmt_id`,`image_id`)
  919. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  920. CREATE TABLE IF NOT EXISTS `sys_cmts_ids` (
  921. `id` int(11) NOT NULL AUTO_INCREMENT,
  922. `system_id` int(11) NOT NULL DEFAULT '0',
  923. `cmt_id` int(11) NOT NULL DEFAULT '0',
  924. `rate` float NOT NULL default '0',
  925. `votes` int(11) NOT NULL default '0',
  926. PRIMARY KEY (`id`),
  927. UNIQUE KEY `system_cmt_id` (`system_id`,`cmt_id`)
  928. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  929. CREATE TABLE IF NOT EXISTS `sys_cmts_meta_keywords` (
  930. `object_id` int(10) unsigned NOT NULL,
  931. `keyword` varchar(255) NOT NULL,
  932. KEY `object_id` (`object_id`),
  933. KEY `keyword` (`keyword`)
  934. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  935. CREATE TABLE IF NOT EXISTS `sys_cmts_votes` (
  936. `object_id` int(11) NOT NULL default '0',
  937. `count` int(11) NOT NULL default '0',
  938. `sum` int(11) NOT NULL default '0',
  939. UNIQUE KEY `object_id` (`object_id`)
  940. ) ENGINE=MYISAM DEFAULT CHARSET=utf8;
  941. CREATE TABLE IF NOT EXISTS `sys_cmts_votes_track` (
  942. `id` int(11) NOT NULL AUTO_INCREMENT,
  943. `object_id` int(11) NOT NULL default '0',
  944. `author_id` int(11) NOT NULL default '0',
  945. `author_nip` int(11) unsigned NOT NULL default '0',
  946. `value` tinyint(4) NOT NULL default '0',
  947. `date` int(11) NOT NULL default '0',
  948. PRIMARY KEY (`id`),
  949. KEY `vote` (`object_id`, `author_nip`)
  950. ) ENGINE=MYISAM DEFAULT CHARSET=utf8;
  951. -- --------------------------------------------------------
  952. CREATE TABLE `sys_injections` (
  953. `id` int(11) unsigned NOT NULL auto_increment,
  954. `name` varchar(128) NOT NULL default '',
  955. `page_index` int(11) NOT NULL default '0',
  956. `key` varchar(128) NOT NULL default '',
  957. `type` enum('text', 'service') NOT NULL default 'text',
  958. `data` text NOT NULL default '',
  959. `replace` TINYINT NOT NULL DEFAULT '0',
  960. `active` TINYINT NOT NULL DEFAULT '1',
  961. PRIMARY KEY (`id`)
  962. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  963. INSERT INTO `sys_injections`(`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
  964. ('sys_popup_alert', 0, 'injection_footer', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:15:"add_popup_alert";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', 0, 1),
  965. ('sys_popup_confirm', 0, 'injection_footer', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:17:"add_popup_confirm";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', 0, 1),
  966. ('sys_popup_prompt', 0, 'injection_footer', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"add_popup_prompt";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', 0, 1),
  967. ('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),
  968. ('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),
  969. ('sys_head', 0, 'injection_head', 'text', '', 0, 1),
  970. ('sys_body', 0, 'injection_footer', 'text', '', 0, 1);
  971. -- --------------------------------------------------------
  972. CREATE TABLE `sys_injections_admin` (
  973. `id` int(11) unsigned NOT NULL auto_increment,
  974. `name` varchar(128) NOT NULL default '',
  975. `page_index` int(11) NOT NULL default '0',
  976. `key` varchar(128) NOT NULL default '',
  977. `type` enum('text','service') NOT NULL default 'text',
  978. `data` text NOT NULL,
  979. `replace` tinyint(4) NOT NULL default '0',
  980. `active` tinyint(4) NOT NULL default '1',
  981. PRIMARY KEY (`id`)
  982. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  983. INSERT INTO `sys_injections_admin`(`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
  984. ('sys_popup_alert', 0, 'injection_footer', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:15:"add_popup_alert";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', 0, 1),
  985. ('sys_popup_confirm', 0, 'injection_footer', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:17:"add_popup_confirm";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', 0, 1),
  986. ('sys_popup_prompt', 0, 'injection_footer', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"add_popup_prompt";s:6:"params";a:0:{}s:5:"class";s:13:"TemplServices";}', 0, 1);
  987. -- --------------------------------------------------------
  988. CREATE TABLE `sys_permalinks` (
  989. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  990. `standard` varchar(128) NOT NULL DEFAULT '',
  991. `permalink` varchar(128) NOT NULL DEFAULT '',
  992. `check` varchar(64) NOT NULL DEFAULT '',
  993. `compare_by_prefix` tinyint(4) NOT NULL DEFAULT '0',
  994. PRIMARY KEY (`id`),
  995. UNIQUE KEY `check` (`standard`,`permalink`,`check`)
  996. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  997. INSERT INTO `sys_permalinks` (`standard`, `permalink`, `check`, `compare_by_prefix`) VALUES
  998. ('page.php?i=', 'page/', 'permalinks_pages', 1),
  999. ('modules/?r=', 'm/', 'permalinks_modules', 1),
  1000. ('storage.php?o=', 's/', 'permalinks_storage', 1);
  1001. -- --------------------------------------------------------
  1002. CREATE TABLE `sys_alerts_handlers` (
  1003. `id` int(11) unsigned NOT NULL auto_increment,
  1004. `name` varchar(128) NOT NULL default '',
  1005. `class` varchar(128) NOT NULL default '',
  1006. `file` varchar(255) NOT NULL default '',
  1007. `service_call` text NOT NULL default '',
  1008. PRIMARY KEY (`id`),
  1009. UNIQUE KEY `name` (`name`)
  1010. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1011. CREATE TABLE `sys_alerts` (
  1012. `id` int(11) unsigned NOT NULL auto_increment,
  1013. `unit` varchar(128) NOT NULL default '',
  1014. `action` varchar(32) NOT NULL default 'none',
  1015. `handler_id` int(11) NOT NULL default '0',
  1016. PRIMARY KEY (`id`),
  1017. UNIQUE KEY `alert_handler` (`unit`, `action`, `handler_id`)
  1018. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1019. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1020. ('sys_studio_settings_save_design', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:28:"alert_response_settings_save";s:6:"params";a:0:{}s:5:"class";s:25:"TemplStudioDesignServices";}');
  1021. SET @iIdHandler = LAST_INSERT_ID();
  1022. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1023. ('system', 'save_setting', @iIdHandler);
  1024. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1025. ('sys_settings_sys_images_custom_file_deleted', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:45:"alert_response_sys_images_custom_file_deleted";s:6:"params";a:0:{}s:5:"class";s:27:"TemplStudioSettingsServices";}');
  1026. SET @iIdHandler = LAST_INSERT_ID();
  1027. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1028. ('sys_images_custom', 'file_deleted', @iIdHandler);
  1029. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1030. ('sys_settings_storage_change', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:37:"alert_response_process_storage_change";s:5:"class";s:13:"TemplServices";}');
  1031. SET @iHandler = LAST_INSERT_ID();
  1032. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1033. ('system', 'save_setting', @iHandler);
  1034. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1035. ('sys_installed', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:32:"alert_response_process_installed";s:5:"class";s:13:"TemplServices";}');
  1036. SET @iHandler = LAST_INSERT_ID();
  1037. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1038. ('system', 'installed', @iHandler);
  1039. INSERT INTO `sys_alerts_handlers` (`name`, `service_call`) VALUES
  1040. ('sys_connections', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:26:"alert_response_connections";s:5:"class";s:23:"TemplServiceConnections";}');
  1041. SET @iHandler = LAST_INSERT_ID();
  1042. INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
  1043. ('sys_profiles_friends', 'connection_added', @iHandler),
  1044. ('sys_profiles_friends', 'connection_removed', @iHandler);
  1045. -- --------------------------------------------------------
  1046. CREATE TABLE `sys_objects_report` (
  1047. `id` int(11) NOT NULL auto_increment,
  1048. `name` varchar(64) NOT NULL,
  1049. `table_main` varchar(32) NOT NULL,
  1050. `table_track` varchar(32) NOT NULL,
  1051. `is_on` tinyint(4) NOT NULL default '1',
  1052. `base_url` varchar(256) NOT NULL default '',
  1053. `trigger_table` varchar(32) NOT NULL,
  1054. `trigger_field_id` varchar(32) NOT NULL,
  1055. `trigger_field_author` varchar(32) NOT NULL,
  1056. `trigger_field_count` varchar(32) NOT NULL,
  1057. `class_name` varchar(32) NOT NULL default '',
  1058. `class_file` varchar(256) NOT NULL default '',
  1059. PRIMARY KEY (`id`)
  1060. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1061. -- --------------------------------------------------------
  1062. CREATE TABLE `sys_objects_view` (
  1063. `id` int(11) NOT NULL auto_increment,
  1064. `name` varchar(64) NOT NULL,
  1065. `table_track` varchar(32) NOT NULL,
  1066. `period` int(11) NOT NULL default '86400',
  1067. `is_on` tinyint(4) NOT NULL default '1',
  1068. `trigger_table` varchar(32) NOT NULL,
  1069. `trigger_field_id` varchar(32) NOT NULL,
  1070. `trigger_field_author` varchar(32) NOT NULL,
  1071. `trigger_field_count` varchar(32) NOT NULL,
  1072. `class_name` varchar(32) NOT NULL default '',
  1073. `class_file` varchar(256) NOT NULL default '',
  1074. PRIMARY KEY (`id`)
  1075. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1076. -- --------------------------------------------------------
  1077. CREATE TABLE `sys_objects_favorite` (
  1078. `id` int(11) NOT NULL auto_increment,
  1079. `name` varchar(64) NOT NULL,
  1080. `table_track` varchar(32) NOT NULL,
  1081. `is_on` tinyint(4) NOT NULL default '1',
  1082. `is_undo` tinyint(4) NOT NULL default '1',
  1083. `is_public` tinyint(4) NOT NULL default '1',
  1084. `base_url` varchar(256) NOT NULL default '',
  1085. `trigger_table` varchar(32) NOT NULL,
  1086. `trigger_field_id` varchar(32) NOT NULL,
  1087. `trigger_field_author` varchar(32) NOT NULL,
  1088. `trigger_field_count` varchar(32) NOT NULL,
  1089. `class_name` varchar(32) NOT NULL default '',
  1090. `class_file` varchar(256) NOT NULL default '',
  1091. PRIMARY KEY (`id`)
  1092. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1093. -- --------------------------------------------------------
  1094. CREATE TABLE `sys_objects_feature` (
  1095. `id` int(11) NOT NULL auto_increment,
  1096. `name` varchar(64) NOT NULL,
  1097. `is_on` tinyint(4) NOT NULL default '1',
  1098. `is_undo` tinyint(4) NOT NULL default '1',
  1099. `base_url` varchar(256) NOT NULL default '',
  1100. `trigger_table` varchar(32) NOT NULL,
  1101. `trigger_field_id` varchar(32) NOT NULL,
  1102. `trigger_field_author` varchar(32) NOT NULL,
  1103. `trigger_field_flag` varchar(32) NOT NULL,
  1104. `class_name` varchar(32) NOT NULL default '',
  1105. `class_file` varchar(256) NOT NULL default '',
  1106. PRIMARY KEY (`id`)
  1107. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1108. -- --------------------------------------------------------
  1109. CREATE TABLE `sys_objects_chart` (
  1110. `id` int(11) NOT NULL AUTO_INCREMENT,
  1111. `object` varchar(32) NOT NULL,
  1112. `title` varchar(255) NOT NULL,
  1113. `table` varchar(255) NOT NULL,
  1114. `field_date_ts` varchar(255) NOT NULL,
  1115. `field_date_dt` varchar(255) NOT NULL,
  1116. `field_status` varchar(255) NOT NULL,
  1117. `column_date` int(11) NOT NULL DEFAULT '0',
  1118. `column_count` int(11) NOT NULL DEFAULT '1',
  1119. `type` varchar(255) NOT NULL,
  1120. `options` text NOT NULL,
  1121. `query` text NOT NULL,
  1122. `active` tinyint(4) NOT NULL DEFAULT '1',
  1123. `order` int(11) NOT NULL,
  1124. `class_name` varchar(32) NOT NULL default '',
  1125. `class_file` varchar(256) NOT NULL default '',
  1126. PRIMARY KEY (`id`),
  1127. UNIQUE KEY `object` (`object`)
  1128. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1129. INSERT INTO `sys_objects_chart` (`object`, `title`, `table`, `field_date_ts`, `field_date_dt`, `field_status`, `query`, `active`, `order`, `class_name`, `class_file`) VALUES
  1130. ('sys_accounts_growth', '_sys_chart_accounts_growth', 'sys_accounts', 'added', '', '', '', 1, 1, 'BxDolChartGrowth', ''),
  1131. ('sys_accounts_growth_speed', '_sys_chart_accounts_growth_speed', 'sys_accounts', 'added', '', '', '', 1, 1, 'BxDolChartGrowthSpeed', '');
  1132. -- --------------------------------------------------------
  1133. CREATE TABLE `sys_objects_content_info` (
  1134. `id` int(11) NOT NULL auto_increment,
  1135. `name` varchar(64) NOT NULL,
  1136. `title` varchar(128) NOT NULL,
  1137. `alert_unit` varchar(32) NOT NULL,
  1138. `alert_action_add` varchar(32) NOT NULL,
  1139. `alert_action_update` varchar(32) NOT NULL,
  1140. `alert_action_delete` varchar(32) NOT NULL,
  1141. `class_name` varchar(32) NOT NULL default '',
  1142. `class_file` varchar(256) NOT NULL default '',
  1143. PRIMARY KEY (`id`),
  1144. UNIQUE KEY `name` (`name`),
  1145. UNIQUE KEY `alert_add` (`alert_unit` ,`alert_action_add`),
  1146. UNIQUE KEY `alert_update` (`alert_unit` ,`alert_action_update`),
  1147. UNIQUE KEY `alert_delete` (`alert_unit` ,`alert_action_delete`)
  1148. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1149. -- --------------------------------------------------------
  1150. CREATE TABLE `sys_content_info_grids` (
  1151. `id` int(11) NOT NULL auto_increment,
  1152. `object` varchar(64) NOT NULL,
  1153. `grid_object` varchar(64) NOT NULL,
  1154. `grid_field_id` varchar(64) NOT NULL,
  1155. `condition` text NOT NULL default '',
  1156. `selection` varchar(256) NOT NULL default '',
  1157. PRIMARY KEY (`id`),
  1158. UNIQUE KEY `grid_object` (`grid_object`)
  1159. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1160. -- --------------------------------------------------------
  1161. CREATE TABLE `sys_objects_privacy` (
  1162. `id` int(11) NOT NULL auto_increment,
  1163. `object` varchar(64) NOT NULL default '',
  1164. `module` varchar(64) NOT NULL default '',
  1165. `action` varchar(255) NOT NULL default '',
  1166. `title` varchar(255) NOT NULL default '',
  1167. `default_group` varchar(255) NOT NULL default '1',
  1168. `table` varchar(255) NOT NULL default '',
  1169. `table_field_id` varchar(255) NOT NULL default '',
  1170. `table_field_author` varchar(255) NOT NULL default '',
  1171. `override_class_name` varchar(255) NOT NULL default '',
  1172. `override_class_file` varchar(255) NOT NULL default '',
  1173. PRIMARY KEY (`id`),
  1174. UNIQUE KEY `object` (`object`),
  1175. UNIQUE KEY `action` (`module`, `action`)
  1176. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1177. CREATE TABLE `sys_privacy_defaults` (
  1178. `owner_id` int(11) NOT NULL default '0',
  1179. `action_id` int(11) NOT NULL default '0',
  1180. `group_id` int(11) NOT NULL default '0',
  1181. PRIMARY KEY (`owner_id`, `action_id`)
  1182. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1183. CREATE TABLE `sys_privacy_groups` (
  1184. `id` int(11) unsigned NOT NULL auto_increment,
  1185. `title` varchar(255) NOT NULL default '',
  1186. `check` text NOT NULL default '',
  1187. `active` tinyint(4) NOT NULL default '1',
  1188. `visible` tinyint(4) NOT NULL default '1',
  1189. PRIMARY KEY (`id`)
  1190. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1191. INSERT INTO `sys_privacy_groups`(`id`, `title`, `check`, `active`, `visible`) VALUES
  1192. ('1', '', '', 1, 0),
  1193. ('2', '_sys_ps_group_title_me_only', '@me_only', 1, 1),
  1194. ('3', '_sys_ps_group_title_public', '@public', 1, 1),
  1195. ('4', '_sys_ps_group_title_members', '@members', 0, 0),
  1196. ('5', '_sys_ps_group_title_friends', '@friends', 1, 1);
  1197. -- --------------------------------------------------------
  1198. CREATE TABLE `sys_cron_jobs` (
  1199. `id` int(11) unsigned NOT NULL auto_increment,
  1200. `name` varchar(128) NOT NULL default '',
  1201. `time` varchar(128) NOT NULL default '*',
  1202. `class` varchar(128) NOT NULL default '',
  1203. `file` varchar(255) NOT NULL default '',
  1204. `service_call` text NOT NULL default '',
  1205. PRIMARY KEY (`id`)
  1206. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1207. INSERT INTO `sys_cron_jobs` (`name`, `time`, `class`, `file`, `service_call`) VALUES
  1208. ('pruning', '0 0 * * *', 'BxDolCronPruning', 'inc/classes/BxDolCronPruning.php', ''),
  1209. ('sys_acl', '0 0 * * *', 'BxDolCronAcl', 'inc/classes/BxDolCronAcl.php', ''),
  1210. ('sys_account', '0 0 * * *', 'BxDolCronAccount', 'inc/classes/BxDolCronAccount.php', ''),
  1211. ('sys_upgrade', '0 3 * * *', 'BxDolCronUpgradeCheck', 'inc/classes/BxDolCronUpgradeCheck.php', ''),
  1212. ('sys_upgrade_modules', '30 2 * * *', 'BxDolCronUpgradeModulesCheck', 'inc/classes/BxDolCronUpgradeModulesCheck.php', ''),
  1213. ('sys_storage', '* * * * *', 'BxDolCronStorage', 'inc/classes/BxDolCronStorage.php', ''),
  1214. ('sys_transcoder', '* * * * *', 'BxDolCronTranscoder', 'inc/classes/BxDolCronTranscoder.php', '');
  1215. -- --------------------------------------------------------
  1216. CREATE TABLE IF NOT EXISTS `sys_objects_storage` (
  1217. `id` int(11) NOT NULL AUTO_INCREMENT,
  1218. `object` varchar(64) NOT NULL,
  1219. `engine` varchar(32) NOT NULL,
  1220. `params` text NOT NULL,
  1221. `token_life` int(11) NOT NULL,
  1222. `cache_control` int(11) NOT NULL,
  1223. `levels` tinyint(4) NOT NULL,
  1224. `table_files` varchar(64) NOT NULL,
  1225. `ext_mode` enum('allow-deny','deny-allow') NOT NULL,
  1226. `ext_allow` text NOT NULL,
  1227. `ext_deny` text NOT NULL,
  1228. `quota_size` int(11) NOT NULL,
  1229. `current_size` int(11) NOT NULL,
  1230. `quota_number` int(11) NOT NULL,
  1231. `current_number` int(11) NOT NULL,
  1232. `max_file_size` int(11) NOT NULL,
  1233. `ts` int(11) NOT NULL,
  1234. PRIMARY KEY (`id`),
  1235. UNIQUE KEY `object` (`object`)
  1236. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1237. 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
  1238. ('sys_images', 'Local', '', 360, 2592000, 0, 'sys_images', 'allow-deny', 'jpg,jpeg,jpe,gif,png,svg', '', 0, 0, 0, 0, 0, 0),
  1239. ('sys_images_custom', 'Local', '', 360, 2592000, 0, 'sys_images_custom', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1240. ('sys_images_resized', 'Local', '', 360, 2592000, 0, 'sys_images_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png,svg', '', 0, 0, 0, 0, 0, 0),
  1241. ('sys_cmts_images', 'Local', '', 360, 2592000, 3, 'sys_cmts_images', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  1242. ('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),
  1243. ('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),
  1244. ('sys_files', 'Local', '', 360, 2592000, 3, 'sys_files', 'deny-allow', '', 'action,apk,app,bat,bin,cmd,com,command,cpl,csh,exe,gadget,inf,ins,inx,ipa,isu,job,jse,ksh,lnk,msc,msi,msp,mst,osx,out,paf,pif,prg,ps1,reg,rgs,run,sct,shb,shs,u3p,vb,vbe,vbs,vbscript,workflow,ws,wsf', 0, 0, 0, 0, 0, 0);
  1245. CREATE TABLE IF NOT EXISTS `sys_storage_user_quotas` (
  1246. `profile_id` int(11) NOT NULL,
  1247. `current_size` int(11) NOT NULL,
  1248. `current_number` int(11) NOT NULL,
  1249. `ts` int(11) NOT NULL,
  1250. PRIMARY KEY (`profile_id`)
  1251. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1252. CREATE TABLE IF NOT EXISTS `sys_storage_tokens` (
  1253. `id` int(11) NOT NULL,
  1254. `object` varchar(64) NOT NULL,
  1255. `hash` varchar(32) NOT NULL,
  1256. `created` int(10) unsigned NOT NULL,
  1257. UNIQUE KEY `id` (`id`,`object`,`hash`),
  1258. KEY `created` (`created`)
  1259. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1260. CREATE TABLE IF NOT EXISTS `sys_storage_ghosts` (
  1261. `id` int(11) NOT NULL,
  1262. `profile_id` int(10) unsigned NOT NULL,
  1263. `object` varchar(64) NOT NULL,
  1264. `content_id` int(11) NOT NULL,
  1265. `created` int(10) unsigned NOT NULL,
  1266. UNIQUE KEY `id` (`id`,`object`),
  1267. KEY `created` (`created`),
  1268. KEY `profile_object_content` (`profile_id`,`object`,`content_id`)
  1269. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1270. CREATE TABLE IF NOT EXISTS `sys_storage_deletions` (
  1271. `id` int(11) NOT NULL AUTO_INCREMENT,
  1272. `object` varchar(64) NOT NULL,
  1273. `file_id` int(11) NOT NULL,
  1274. `requested` int(10) unsigned NOT NULL,
  1275. PRIMARY KEY (`id`),
  1276. UNIQUE KEY `object_file_id` (`object`,`file_id`),
  1277. KEY `requested` (`requested`)
  1278. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1279. CREATE TABLE IF NOT EXISTS `sys_storage_mime_types` (
  1280. `ext` varchar(32) NOT NULL,
  1281. `mime_type` varchar(128) NOT NULL,
  1282. `icon` varchar(255) NOT NULL,
  1283. `icon_font` varchar(255) NOT NULL,
  1284. PRIMARY KEY (`ext`)
  1285. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1286. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1287. ('ez', 'application/andrew-inset', '', ''),
  1288. ('aw', 'application/applixware', '', ''),
  1289. ('atom', 'application/atom+xml', '', ''),
  1290. ('atomcat', 'application/atomcat+xml', '', ''),
  1291. ('atomsvc', 'application/atomsvc+xml', '', ''),
  1292. ('ccxml', 'application/ccxml+xml', '', ''),
  1293. ('cdmia', 'application/cdmi-capability', '', ''),
  1294. ('cdmic', 'application/cdmi-container', '', ''),
  1295. ('cdmid', 'application/cdmi-domain', '', ''),
  1296. ('cdmio', 'application/cdmi-object', '', ''),
  1297. ('cdmiq', 'application/cdmi-queue', '', ''),
  1298. ('cu', 'application/cu-seeme', '', ''),
  1299. ('davmount', 'application/davmount+xml', '', ''),
  1300. ('dbk', 'application/docbook+xml', '', ''),
  1301. ('dssc', 'application/dssc+der', '', ''),
  1302. ('xdssc', 'application/dssc+xml', '', ''),
  1303. ('ecma', 'application/ecmascript', '', ''),
  1304. ('emma', 'application/emma+xml', '', ''),
  1305. ('epub', 'application/epub+zip', '', ''),
  1306. ('exi', 'application/exi', '', ''),
  1307. ('pfr', 'application/font-tdpfr', '', ''),
  1308. ('gml', 'application/gml+xml', '', ''),
  1309. ('gpx', 'application/gpx+xml', '', ''),
  1310. ('gxf', 'application/gxf', '', ''),
  1311. ('stk', 'application/hyperstudio', '', ''),
  1312. ('ink', 'application/inkml+xml', '', ''),
  1313. ('inkml', 'application/inkml+xml', '', ''),
  1314. ('ipfix', 'application/ipfix', '', ''),
  1315. ('jar', 'application/java-archive', '', ''),
  1316. ('ser', 'application/java-serialized-object', '', ''),
  1317. ('class', 'application/java-vm', '', ''),
  1318. ('js', 'application/javascript', '', 'file-code-o'),
  1319. ('json', 'application/json', '', 'file-code-o'),
  1320. ('jsonml', 'application/jsonml+json', '', ''),
  1321. ('lostxml', 'application/lost+xml', '', ''),
  1322. ('hqx', 'application/mac-binhex40', '', ''),
  1323. ('cpt', 'application/mac-compactpro', '', ''),
  1324. ('mads', 'application/mads+xml', '', ''),
  1325. ('mrc', 'application/marc', '', ''),
  1326. ('mrcx', 'application/marcxml+xml', '', ''),
  1327. ('ma', 'application/mathematica', '', ''),
  1328. ('nb', 'application/mathematica', '', ''),
  1329. ('mb', 'application/mathematica', '', ''),
  1330. ('mathml', 'application/mathml+xml', '', ''),
  1331. ('mbox', 'application/mbox', '', 'file-code-o'),
  1332. ('mscml', 'application/mediaservercontrol+xml', '', ''),
  1333. ('metalink', 'application/metalink+xml', '', ''),
  1334. ('meta4', 'application/metalink4+xml', '', ''),
  1335. ('mets', 'application/mets+xml', '', ''),
  1336. ('mods', 'application/mods+xml', '', ''),
  1337. ('m21', 'application/mp21', '', ''),
  1338. ('mp21', 'application/mp21', '', ''),
  1339. ('mp4s', 'application/mp4', '', ''),
  1340. ('doc', 'application/msword', 'mime-type-document.png', 'file-word-o'),
  1341. ('dot', 'application/msword', '', ''),
  1342. ('mxf', 'application/mxf', '', ''),
  1343. ('bin', 'application/octet-stream', '', ''),
  1344. ('dms', 'application/octet-stream', '', ''),
  1345. ('lrf', 'application/octet-stream', '', ''),
  1346. ('mar', 'application/octet-stream', '', ''),
  1347. ('so', 'application/octet-stream', '', ''),
  1348. ('dist', 'application/octet-stream', '', ''),
  1349. ('distz', 'application/octet-stream', '', ''),
  1350. ('pkg', 'application/octet-stream', '', ''),
  1351. ('bpk', 'application/octet-stream', '', ''),
  1352. ('dump', 'application/octet-stream', '', ''),
  1353. ('elc', 'application/octet-stream', '', ''),
  1354. ('deploy', 'application/octet-stream', '', ''),
  1355. ('mobipocket-ebook', 'application/octet-stream', '', ''),
  1356. ('oda', 'application/oda', '', ''),
  1357. ('opf', 'application/oebps-package+xml', '', ''),
  1358. ('ogx', 'application/ogg', '', ''),
  1359. ('omdoc', 'application/omdoc+xml', '', ''),
  1360. ('onetoc', 'application/onenote', '', ''),
  1361. ('onetoc2', 'application/onenote', '', ''),
  1362. ('onetmp', 'application/onenote', '', ''),
  1363. ('onepkg', 'application/onenote', '', ''),
  1364. ('oxps', 'application/oxps', '', ''),
  1365. ('xer', 'application/patch-ops-error+xml', '', ''),
  1366. ('pdf', 'application/pdf', 'mime-type-document.png', 'file-pdf-o'),
  1367. ('pgp', 'application/pgp-encrypted', '', 'file-code-o'),
  1368. ('asc', 'application/pgp-signature', '', 'file-code-o'),
  1369. ('sig', 'application/pgp-signature', '', 'file-code-o'),
  1370. ('prf', 'application/pics-rules', '', ''),
  1371. ('p10', 'application/pkcs10', 'mime-type-vector.png', ''),
  1372. ('p7m', 'application/pkcs7-mime', '', ''),
  1373. ('p7c', 'application/pkcs7-mime', '', ''),
  1374. ('p7s', 'application/pkcs7-signature', '', ''),
  1375. ('p8', 'application/pkcs8', '', ''),
  1376. ('ac', 'application/pkix-attr-cert', '', ''),
  1377. ('cer', 'application/pkix-cert', '', ''),
  1378. ('crl', 'application/pkix-crl', '', ''),
  1379. ('pkipath', 'application/pkix-pkipath', '', ''),
  1380. ('pki', 'application/pkixcmp', '', ''),
  1381. ('pls', 'application/pls+xml', '', ''),
  1382. ('ai', 'application/postscript', 'mime-type-vector.png', ''),
  1383. ('eps', 'application/postscript', '', ''),
  1384. ('ps', 'application/postscript', 'mime-type-vector.png', ''),
  1385. ('cww', 'application/prs.cww', '', ''),
  1386. ('pskcxml', 'application/pskc+xml', '', ''),
  1387. ('rdf', 'application/rdf+xml', '', 'file-code-o'),
  1388. ('rif', 'application/reginfo+xml', '', ''),
  1389. ('rnc', 'application/relax-ng-compact-syntax', '', ''),
  1390. ('rl', 'application/resource-lists+xml', '', ''),
  1391. ('rld', 'application/resource-lists-diff+xml', '', ''),
  1392. ('rs', 'application/rls-services+xml', '', ''),
  1393. ('gbr', 'application/rpki-ghostbusters', '', ''),
  1394. ('mft', 'application/rpki-manifest', '', ''),
  1395. ('roa', 'application/rpki-roa', '', ''),
  1396. ('rsd', 'application/rsd+xml', '', ''),
  1397. ('rss', 'application/rss+xml', '', 'file-code-o'),
  1398. ('rtf', 'application/rtf', 'mime-type-document.png', ''),
  1399. ('sbml', 'application/sbml+xml', '', ''),
  1400. ('scq', 'application/scvp-cv-request', '', ''),
  1401. ('scs', 'application/scvp-cv-response', '', ''),
  1402. ('spq', 'application/scvp-vp-request', '', ''),
  1403. ('spp', 'application/scvp-vp-response', '', ''),
  1404. ('sdp', 'application/sdp', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1405. ('setpay', 'application/set-payment-initiation', '', ''),
  1406. ('setreg', 'application/set-registration-initiation', '', ''),
  1407. ('shf', 'application/shf+xml', '', ''),
  1408. ('smi', 'application/smil+xml', '', ''),
  1409. ('smil', 'application/smil+xml', '', ''),
  1410. ('rq', 'application/sparql-query', '', 'file-code-o'),
  1411. ('srx', 'application/sparql-results+xml', '', ''),
  1412. ('gram', 'application/srgs', '', ''),
  1413. ('grxml', 'application/srgs+xml', '', ''),
  1414. ('sru', 'application/sru+xml', '', ''),
  1415. ('ssdl', 'application/ssdl+xml', '', ''),
  1416. ('ssml', 'application/ssml+xml', '', ''),
  1417. ('tei', 'application/tei+xml', '', ''),
  1418. ('teicorpus', 'application/tei+xml', '', ''),
  1419. ('tfi', 'application/thraud+xml', '', ''),
  1420. ('tsd', 'application/timestamped-data', '', ''),
  1421. ('plb', 'application/vnd.3gpp.pic-bw-large', '', ''),
  1422. ('psb', 'application/vnd.3gpp.pic-bw-small', '', ''),
  1423. ('pvb', 'application/vnd.3gpp.pic-bw-var', '', ''),
  1424. ('tcap', 'application/vnd.3gpp2.tcap', '', ''),
  1425. ('pwn', 'application/vnd.3m.post-it-notes', '', ''),
  1426. ('aso', 'application/vnd.accpac.simply.aso', '', ''),
  1427. ('imp', 'application/vnd.accpac.simply.imp', '', ''),
  1428. ('acu', 'application/vnd.acucobol', '', ''),
  1429. ('atc', 'application/vnd.acucorp', '', ''),
  1430. ('acutc', 'application/vnd.acucorp', '', ''),
  1431. ('air', 'application/vnd.adobe.air-application-installer-package+zip', '', ''),
  1432. ('fcdt', 'application/vnd.adobe.formscentral.fcdt', '', ''),
  1433. ('fxp', 'application/vnd.adobe.fxp', '', ''),
  1434. ('fxpl', 'application/vnd.adobe.fxp', '', ''),
  1435. ('xdp', 'application/vnd.adobe.xdp+xml', '', ''),
  1436. ('xfdf', 'application/vnd.adobe.xfdf', '', ''),
  1437. ('ahead', 'application/vnd.ahead.space', '', ''),
  1438. ('azf', 'application/vnd.airzip.filesecure.azf', '', ''),
  1439. ('azs', 'application/vnd.airzip.filesecure.azs', '', ''),
  1440. ('azw', 'application/vnd.amazon.ebook', '', ''),
  1441. ('acc', 'application/vnd.americandynamics.acc', '', ''),
  1442. ('ami', 'application/vnd.amiga.ami', '', ''),
  1443. ('apk', 'application/vnd.android.package-archive', '', ''),
  1444. ('cii', 'application/vnd.anser-web-certificate-issue-initiation', '', ''),
  1445. ('fti', 'application/vnd.anser-web-funds-transfer-initiation', '', ''),
  1446. ('atx', 'application/vnd.antix.game-component', '', ''),
  1447. ('mpkg', 'application/vnd.apple.installer+xml', '', ''),
  1448. ('m3u8', 'application/vnd.apple.mpegurl', '', ''),
  1449. ('swi', 'application/vnd.aristanetworks.swi', '', ''),
  1450. ('iota', 'application/vnd.astraea-software.iota', '', ''),
  1451. ('aep', 'application/vnd.audiograph', '', ''),
  1452. ('mpm', 'application/vnd.blueice.multipass', '', ''),
  1453. ('bmi', 'application/vnd.bmi', '', ''),
  1454. ('rep', 'application/vnd.businessobjects', '', ''),
  1455. ('cdxml', 'application/vnd.chemdraw+xml', '', ''),
  1456. ('mmd', 'application/vnd.chipnuts.karaoke-mmd', '', ''),
  1457. ('cdy', 'application/vnd.cinderella', '', ''),
  1458. ('cla', 'application/vnd.claymore', '', ''),
  1459. ('rp9', 'application/vnd.cloanto.rp9', '', ''),
  1460. ('c4g', 'application/vnd.clonk.c4group', '', ''),
  1461. ('c4d', 'application/vnd.clonk.c4group', '', ''),
  1462. ('c4f', 'application/vnd.clonk.c4group', '', ''),
  1463. ('c4p', 'application/vnd.clonk.c4group', '', ''),
  1464. ('c4u', 'application/vnd.clonk.c4group', '', ''),
  1465. ('c11amc', 'application/vnd.cluetrust.cartomobile-config', '', ''),
  1466. ('c11amz', 'application/vnd.cluetrust.cartomobile-config-pkg', '', ''),
  1467. ('csp', 'application/vnd.commonspace', '', ''),
  1468. ('cdbcmsg', 'application/vnd.contact.cmsg', '', ''),
  1469. ('cmc', 'application/vnd.cosmocaller', '', ''),
  1470. ('clkx', 'application/vnd.crick.clicker', '', ''),
  1471. ('clkk', 'application/vnd.crick.clicker.keyboard', '', ''),
  1472. ('clkp', 'application/vnd.crick.clicker.palette', '', ''),
  1473. ('clkt', 'application/vnd.crick.clicker.template', '', ''),
  1474. ('clkw', 'application/vnd.crick.clicker.wordbank', '', ''),
  1475. ('wbs', 'application/vnd.criticaltools.wbs+xml', '', ''),
  1476. ('pml', 'application/vnd.ctc-posml', '', ''),
  1477. ('ppd', 'application/vnd.cups-ppd', '', ''),
  1478. ('car', 'application/vnd.curl.car', '', ''),
  1479. ('pcurl', 'application/vnd.curl.pcurl', '', ''),
  1480. ('dart', 'application/vnd.dart', '', ''),
  1481. ('rdz', 'application/vnd.data-vision.rdz', '', ''),
  1482. ('uvf', 'application/vnd.dece.data', '', ''),
  1483. ('uvvf', 'application/vnd.dece.data', '', ''),
  1484. ('uvd', 'application/vnd.dece.data', '', ''),
  1485. ('uvvd', 'application/vnd.dece.data', '', ''),
  1486. ('uvt', 'application/vnd.dece.ttml+xml', '', ''),
  1487. ('uvvt', 'application/vnd.dece.ttml+xml', '', ''),
  1488. ('uvx', 'application/vnd.dece.unspecified', '', ''),
  1489. ('uvvx', 'application/vnd.dece.unspecified', '', ''),
  1490. ('uvz', 'application/vnd.dece.zip', '', ''),
  1491. ('uvvz', 'application/vnd.dece.zip', '', ''),
  1492. ('fe_launch', 'application/vnd.denovo.fcselayout-link', '', ''),
  1493. ('dna', 'application/vnd.dna', '', ''),
  1494. ('mlp', 'application/vnd.dolby.mlp', '', ''),
  1495. ('dpg', 'application/vnd.dpgraph', '', ''),
  1496. ('dfac', 'application/vnd.dreamfactory', '', ''),
  1497. ('kpxx', 'application/vnd.ds-keypoint', '', ''),
  1498. ('ait', 'application/vnd.dvb.ait', 'mime-type-vector.png', ''),
  1499. ('svc', 'application/vnd.dvb.service', '', '');
  1500. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1501. ('geo', 'application/vnd.dynageo', '', ''),
  1502. ('mag', 'application/vnd.ecowin.chart', '', ''),
  1503. ('nml', 'application/vnd.enliven', '', ''),
  1504. ('esf', 'application/vnd.epson.esf', '', ''),
  1505. ('msf', 'application/vnd.epson.msf', '', ''),
  1506. ('qam', 'application/vnd.epson.quickanime', '', ''),
  1507. ('slt', 'application/vnd.epson.salt', '', ''),
  1508. ('ssf', 'application/vnd.epson.ssf', '', ''),
  1509. ('es3', 'application/vnd.eszigno3+xml', '', ''),
  1510. ('et3', 'application/vnd.eszigno3+xml', '', ''),
  1511. ('ez2', 'application/vnd.ezpix-album', '', ''),
  1512. ('ez3', 'application/vnd.ezpix-package', '', ''),
  1513. ('fdf', 'application/vnd.fdf', '', ''),
  1514. ('mseed', 'application/vnd.fdsn.mseed', '', ''),
  1515. ('seed', 'application/vnd.fdsn.seed', '', ''),
  1516. ('dataless', 'application/vnd.fdsn.seed', '', ''),
  1517. ('gph', 'application/vnd.flographit', '', ''),
  1518. ('ftc', 'application/vnd.fluxtime.clip', '', ''),
  1519. ('fm', 'application/vnd.framemaker', '', ''),
  1520. ('frame', 'application/vnd.framemaker', '', ''),
  1521. ('maker', 'application/vnd.framemaker', '', ''),
  1522. ('book', 'application/vnd.framemaker', '', ''),
  1523. ('fnc', 'application/vnd.frogans.fnc', '', ''),
  1524. ('ltf', 'application/vnd.frogans.ltf', '', ''),
  1525. ('fsc', 'application/vnd.fsc.weblaunch', '', ''),
  1526. ('oas', 'application/vnd.fujitsu.oasys', '', ''),
  1527. ('oa2', 'application/vnd.fujitsu.oasys2', '', ''),
  1528. ('oa3', 'application/vnd.fujitsu.oasys3', '', ''),
  1529. ('fg5', 'application/vnd.fujitsu.oasysgp', '', ''),
  1530. ('bh2', 'application/vnd.fujitsu.oasysprs', '', ''),
  1531. ('ddd', 'application/vnd.fujixerox.ddd', '', ''),
  1532. ('xdw', 'application/vnd.fujixerox.docuworks', '', ''),
  1533. ('xbd', 'application/vnd.fujixerox.docuworks.binder', '', ''),
  1534. ('fzs', 'application/vnd.fuzzysheet', '', ''),
  1535. ('txd', 'application/vnd.genomatix.tuxedo', '', ''),
  1536. ('ggb', 'application/vnd.geogebra.file', '', ''),
  1537. ('ggt', 'application/vnd.geogebra.tool', '', ''),
  1538. ('gex', 'application/vnd.geometry-explorer', '', ''),
  1539. ('gre', 'application/vnd.geometry-explorer', '', ''),
  1540. ('gxt', 'application/vnd.geonext', '', ''),
  1541. ('g2w', 'application/vnd.geoplan', '', ''),
  1542. ('g3w', 'application/vnd.geospace', '', ''),
  1543. ('gmx', 'application/vnd.gmx', '', ''),
  1544. ('kml', 'application/vnd.google-earth.kml+xml', '', ''),
  1545. ('kmz', 'application/vnd.google-earth.kmz', '', ''),
  1546. ('gqf', 'application/vnd.grafeq', '', ''),
  1547. ('gqs', 'application/vnd.grafeq', '', ''),
  1548. ('gac', 'application/vnd.groove-account', '', ''),
  1549. ('ghf', 'application/vnd.groove-help', '', ''),
  1550. ('gim', 'application/vnd.groove-identity-message', '', ''),
  1551. ('grv', 'application/vnd.groove-injector', '', ''),
  1552. ('gtm', 'application/vnd.groove-tool-message', '', ''),
  1553. ('tpl', 'application/vnd.groove-tool-template', '', 'file-code-o'),
  1554. ('vcg', 'application/vnd.groove-vcard', '', ''),
  1555. ('hal', 'application/vnd.hal+xml', '', ''),
  1556. ('zmm', 'application/vnd.handheld-entertainment+xml', '', ''),
  1557. ('hbci', 'application/vnd.hbci', '', ''),
  1558. ('les', 'application/vnd.hhe.lesson-player', '', ''),
  1559. ('hpgl', 'application/vnd.hp-hpgl', 'mime-type-vector.png', ''),
  1560. ('hpid', 'application/vnd.hp-hpid', '', ''),
  1561. ('hps', 'application/vnd.hp-hps', '', ''),
  1562. ('jlt', 'application/vnd.hp-jlyt', '', ''),
  1563. ('pcl', 'application/vnd.hp-pcl', '', ''),
  1564. ('pclxl', 'application/vnd.hp-pclxl', '', ''),
  1565. ('sfd-hdstx', 'application/vnd.hydrostatix.sof-data', '', ''),
  1566. ('mpy', 'application/vnd.ibm.minipay', '', ''),
  1567. ('afp', 'application/vnd.ibm.modcap', '', ''),
  1568. ('listafp', 'application/vnd.ibm.modcap', '', ''),
  1569. ('list3820', 'application/vnd.ibm.modcap', '', ''),
  1570. ('irm', 'application/vnd.ibm.rights-management', '', ''),
  1571. ('sc', 'application/vnd.ibm.secure-container', '', ''),
  1572. ('icc', 'application/vnd.iccprofile', '', ''),
  1573. ('icm', 'application/vnd.iccprofile', '', ''),
  1574. ('igl', 'application/vnd.igloader', '', ''),
  1575. ('ivp', 'application/vnd.immervision-ivp', '', ''),
  1576. ('ivu', 'application/vnd.immervision-ivu', '', ''),
  1577. ('igm', 'application/vnd.insors.igm', '', ''),
  1578. ('xpw', 'application/vnd.intercon.formnet', '', ''),
  1579. ('xpx', 'application/vnd.intercon.formnet', '', ''),
  1580. ('i2g', 'application/vnd.intergeo', '', ''),
  1581. ('qbo', 'application/vnd.intu.qbo', '', ''),
  1582. ('qfx', 'application/vnd.intu.qfx', '', ''),
  1583. ('rcprofile', 'application/vnd.ipunplugged.rcprofile', '', ''),
  1584. ('irp', 'application/vnd.irepository.package+xml', '', ''),
  1585. ('xpr', 'application/vnd.is-xpr', '', ''),
  1586. ('fcs', 'application/vnd.isac.fcs', '', ''),
  1587. ('jam', 'application/vnd.jam', '', ''),
  1588. ('rms', 'application/vnd.jcp.javame.midlet-rms', '', ''),
  1589. ('jisp', 'application/vnd.jisp', '', ''),
  1590. ('joda', 'application/vnd.joost.joda-archive', '', ''),
  1591. ('ktz', 'application/vnd.kahootz', '', ''),
  1592. ('ktr', 'application/vnd.kahootz', '', ''),
  1593. ('karbon', 'application/vnd.kde.karbon', '', ''),
  1594. ('chrt', 'application/vnd.kde.kchart', '', ''),
  1595. ('kfo', 'application/vnd.kde.kformula', '', ''),
  1596. ('flw', 'application/vnd.kde.kivio', '', ''),
  1597. ('kon', 'application/vnd.kde.kontour', '', ''),
  1598. ('kpr', 'application/vnd.kde.kpresenter', '', ''),
  1599. ('kpt', 'application/vnd.kde.kpresenter', '', ''),
  1600. ('ksp', 'application/vnd.kde.kspread', '', ''),
  1601. ('kwd', 'application/vnd.kde.kword', '', ''),
  1602. ('kwt', 'application/vnd.kde.kword', '', ''),
  1603. ('htke', 'application/vnd.kenameaapp', '', ''),
  1604. ('kia', 'application/vnd.kidspiration', '', ''),
  1605. ('kne', 'application/vnd.kinar', '', ''),
  1606. ('knp', 'application/vnd.kinar', '', ''),
  1607. ('skp', 'application/vnd.koan', '', ''),
  1608. ('skd', 'application/vnd.koan', '', ''),
  1609. ('skt', 'application/vnd.koan', '', ''),
  1610. ('skm', 'application/vnd.koan', '', ''),
  1611. ('sse', 'application/vnd.kodak-descriptor', '', ''),
  1612. ('lasxml', 'application/vnd.las.las+xml', '', ''),
  1613. ('lbd', 'application/vnd.llamagraphics.life-balance.desktop', '', ''),
  1614. ('lbe', 'application/vnd.llamagraphics.life-balance.exchange+xml', '', ''),
  1615. ('123', 'application/vnd.lotus-1-2-3', '', ''),
  1616. ('apr', 'application/vnd.lotus-approach', '', ''),
  1617. ('pre', 'application/vnd.lotus-freelance', '', ''),
  1618. ('nsf', 'application/vnd.lotus-notes', '', ''),
  1619. ('org', 'application/vnd.lotus-organizer', '', ''),
  1620. ('scm', 'application/vnd.lotus-screencam', '', ''),
  1621. ('lwp', 'application/vnd.lotus-wordpro', '', ''),
  1622. ('portpkg', 'application/vnd.macports.portpkg', '', ''),
  1623. ('mcd', 'application/vnd.mcd', '', ''),
  1624. ('mc1', 'application/vnd.medcalcdata', '', ''),
  1625. ('cdkey', 'application/vnd.mediastation.cdkey', '', ''),
  1626. ('mwf', 'application/vnd.mfer', '', ''),
  1627. ('mfm', 'application/vnd.mfmp', '', ''),
  1628. ('flo', 'application/vnd.micrografx.flo', '', ''),
  1629. ('igx', 'application/vnd.micrografx.igx', '', ''),
  1630. ('mif', 'application/vnd.mif', '', ''),
  1631. ('daf', 'application/vnd.mobius.daf', '', ''),
  1632. ('dis', 'application/vnd.mobius.dis', '', ''),
  1633. ('mbk', 'application/vnd.mobius.mbk', '', ''),
  1634. ('mqy', 'application/vnd.mobius.mqy', '', ''),
  1635. ('msl', 'application/vnd.mobius.msl', '', ''),
  1636. ('plc', 'application/vnd.mobius.plc', '', ''),
  1637. ('txf', 'application/vnd.mobius.txf', '', ''),
  1638. ('mpn', 'application/vnd.mophun.application', '', ''),
  1639. ('mpc', 'application/vnd.mophun.certificate', '', ''),
  1640. ('xul', 'application/vnd.mozilla.xul+xml', '', ''),
  1641. ('cil', 'application/vnd.ms-artgalry', 'mime-type-vector.png', ''),
  1642. ('cab', 'application/vnd.ms-cab-compressed', 'mime-type-archive.png', 'file-archive-o'),
  1643. ('xls', 'application/vnd.ms-excel', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1644. ('xlm', 'application/vnd.ms-excel', '', ''),
  1645. ('xla', 'application/vnd.ms-excel', '', ''),
  1646. ('xlc', 'application/vnd.ms-excel', '', ''),
  1647. ('xlt', 'application/vnd.ms-excel', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1648. ('xlw', 'application/vnd.ms-excel', '', ''),
  1649. ('xlam', 'application/vnd.ms-excel.addin.macroenabled.12', '', ''),
  1650. ('xlsb', 'application/vnd.ms-excel.sheet.binary.macroenabled.12', '', ''),
  1651. ('xlsm', 'application/vnd.ms-excel.sheet.macroenabled.12', '', ''),
  1652. ('xltm', 'application/vnd.ms-excel.template.macroenabled.12', '', ''),
  1653. ('eot', 'application/vnd.ms-fontobject', '', ''),
  1654. ('chm', 'application/vnd.ms-htmlhelp', '', ''),
  1655. ('ims', 'application/vnd.ms-ims', '', ''),
  1656. ('lrm', 'application/vnd.ms-lrm', '', ''),
  1657. ('thmx', 'application/vnd.ms-officetheme', '', ''),
  1658. ('cat', 'application/vnd.ms-pki.seccat', '', ''),
  1659. ('stl', 'application/vnd.ms-pki.stl', '', ''),
  1660. ('ppt', 'application/vnd.ms-powerpoint', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1661. ('pps', 'application/vnd.ms-powerpoint', '', ''),
  1662. ('pot', 'application/vnd.ms-powerpoint', '', ''),
  1663. ('ppam', 'application/vnd.ms-powerpoint.addin.macroenabled.12', '', ''),
  1664. ('pptm', 'application/vnd.ms-powerpoint.presentation.macroenabled.12', '', ''),
  1665. ('sldm', 'application/vnd.ms-powerpoint.slide.macroenabled.12', '', ''),
  1666. ('ppsm', 'application/vnd.ms-powerpoint.slideshow.macroenabled.12', '', ''),
  1667. ('potm', 'application/vnd.ms-powerpoint.template.macroenabled.12', '', ''),
  1668. ('mpp', 'application/vnd.ms-project', '', ''),
  1669. ('mpt', 'application/vnd.ms-project', '', ''),
  1670. ('docm', 'application/vnd.ms-word.document.macroenabled.12', '', ''),
  1671. ('dotm', 'application/vnd.ms-word.template.macroenabled.12', '', ''),
  1672. ('wps', 'application/vnd.ms-works', '', ''),
  1673. ('wks', 'application/vnd.ms-works', '', ''),
  1674. ('wcm', 'application/vnd.ms-works', '', ''),
  1675. ('wdb', 'application/vnd.ms-works', '', ''),
  1676. ('wpl', 'application/vnd.ms-wpl', '', ''),
  1677. ('xps', 'application/vnd.ms-xpsdocument', '', ''),
  1678. ('mseq', 'application/vnd.mseq', '', ''),
  1679. ('mus', 'application/vnd.musician', '', ''),
  1680. ('msty', 'application/vnd.muvee.style', '', ''),
  1681. ('taglet', 'application/vnd.mynfc', '', ''),
  1682. ('nlu', 'application/vnd.neurolanguage.nlu', '', ''),
  1683. ('ntf', 'application/vnd.nitf', '', ''),
  1684. ('nitf', 'application/vnd.nitf', '', ''),
  1685. ('nnd', 'application/vnd.noblenet-directory', '', ''),
  1686. ('nns', 'application/vnd.noblenet-sealer', '', ''),
  1687. ('nnw', 'application/vnd.noblenet-web', '', ''),
  1688. ('ngdat', 'application/vnd.nokia.n-gage.data', '', ''),
  1689. ('n-gage', 'application/vnd.nokia.n-gage.symbian.install', '', ''),
  1690. ('rpst', 'application/vnd.nokia.radio-preset', '', ''),
  1691. ('rpss', 'application/vnd.nokia.radio-presets', '', ''),
  1692. ('edm', 'application/vnd.novadigm.edm', '', ''),
  1693. ('edx', 'application/vnd.novadigm.edx', '', ''),
  1694. ('ext', 'application/vnd.novadigm.ext', '', ''),
  1695. ('odc', 'application/vnd.oasis.opendocument.chart', '', ''),
  1696. ('otc', 'application/vnd.oasis.opendocument.chart-template', '', ''),
  1697. ('odb', 'application/vnd.oasis.opendocument.database', '', ''),
  1698. ('odf', 'application/vnd.oasis.opendocument.formula', '', ''),
  1699. ('odft', 'application/vnd.oasis.opendocument.formula-template', '', '');
  1700. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1701. ('odg', 'application/vnd.oasis.opendocument.graphics', 'mime-type-vector.png', ''),
  1702. ('otg', 'application/vnd.oasis.opendocument.graphics-template', '', ''),
  1703. ('odi', 'application/vnd.oasis.opendocument.image', '', ''),
  1704. ('oti', 'application/vnd.oasis.opendocument.image-template', '', ''),
  1705. ('odp', 'application/vnd.oasis.opendocument.presentation', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1706. ('otp', 'application/vnd.oasis.opendocument.presentation-template', '', ''),
  1707. ('ods', 'application/vnd.oasis.opendocument.spreadsheet', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1708. ('ots', 'application/vnd.oasis.opendocument.spreadsheet-template', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1709. ('odt', 'application/vnd.oasis.opendocument.text', 'mime-type-document.png', ''),
  1710. ('odm', 'application/vnd.oasis.opendocument.text-master', '', ''),
  1711. ('ott', 'application/vnd.oasis.opendocument.text-template', 'mime-type-document.png', ''),
  1712. ('oth', 'application/vnd.oasis.opendocument.text-web', '', ''),
  1713. ('xo', 'application/vnd.olpc-sugar', '', ''),
  1714. ('dd2', 'application/vnd.oma.dd2+xml', '', ''),
  1715. ('oxt', 'application/vnd.openofficeorg.extension', '', ''),
  1716. ('pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1717. ('sldx', 'application/vnd.openxmlformats-officedocument.presentationml.slide', '', ''),
  1718. ('ppsx', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', '', ''),
  1719. ('potx', 'application/vnd.openxmlformats-officedocument.presentationml.template', '', ''),
  1720. ('xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1721. ('xltx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', '', ''),
  1722. ('docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'mime-type-document.png', 'file-word-o'),
  1723. ('dotx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', '', ''),
  1724. ('mgp', 'application/vnd.osgeo.mapguide.package', '', ''),
  1725. ('dp', 'application/vnd.osgi.dp', '', ''),
  1726. ('esa', 'application/vnd.osgi.subsystem', '', ''),
  1727. ('pdb', 'application/vnd.palm', 'mime-type-document.png', ''),
  1728. ('pqa', 'application/vnd.palm', '', ''),
  1729. ('oprc', 'application/vnd.palm', '', ''),
  1730. ('paw', 'application/vnd.pawaafile', '', ''),
  1731. ('str', 'application/vnd.pg.format', '', ''),
  1732. ('ei6', 'application/vnd.pg.osasli', '', ''),
  1733. ('efif', 'application/vnd.picsel', '', ''),
  1734. ('wg', 'application/vnd.pmi.widget', '', ''),
  1735. ('plf', 'application/vnd.pocketlearn', '', ''),
  1736. ('pbd', 'application/vnd.powerbuilder6', '', ''),
  1737. ('box', 'application/vnd.previewsystems.box', '', ''),
  1738. ('mgz', 'application/vnd.proteus.magazine', '', ''),
  1739. ('qps', 'application/vnd.publishare-delta-tree', '', ''),
  1740. ('ptid', 'application/vnd.pvi.ptid1', '', ''),
  1741. ('qxd', 'application/vnd.quark.quarkxpress', '', ''),
  1742. ('qxt', 'application/vnd.quark.quarkxpress', '', ''),
  1743. ('qwd', 'application/vnd.quark.quarkxpress', '', ''),
  1744. ('qwt', 'application/vnd.quark.quarkxpress', '', ''),
  1745. ('qxl', 'application/vnd.quark.quarkxpress', '', ''),
  1746. ('qxb', 'application/vnd.quark.quarkxpress', '', ''),
  1747. ('bed', 'application/vnd.realvnc.bed', '', ''),
  1748. ('mxl', 'application/vnd.recordare.musicxml', '', ''),
  1749. ('musicxml', 'application/vnd.recordare.musicxml+xml', '', ''),
  1750. ('cryptonote', 'application/vnd.rig.cryptonote', '', ''),
  1751. ('cod', 'application/vnd.rim.cod', '', ''),
  1752. ('rm', 'application/vnd.rn-realmedia', '', ''),
  1753. ('rmvb', 'application/vnd.rn-realmedia-vbr', '', ''),
  1754. ('link66', 'application/vnd.route66.link66+xml', '', ''),
  1755. ('st', 'application/vnd.sailingtracker.track', '', ''),
  1756. ('see', 'application/vnd.seemail', '', ''),
  1757. ('sema', 'application/vnd.sema', '', ''),
  1758. ('semd', 'application/vnd.semd', '', ''),
  1759. ('semf', 'application/vnd.semf', '', ''),
  1760. ('ifm', 'application/vnd.shana.informed.formdata', '', ''),
  1761. ('itp', 'application/vnd.shana.informed.formtemplate', '', ''),
  1762. ('iif', 'application/vnd.shana.informed.interchange', '', ''),
  1763. ('ipk', 'application/vnd.shana.informed.package', '', ''),
  1764. ('twd', 'application/vnd.simtech-mindmapper', '', ''),
  1765. ('twds', 'application/vnd.simtech-mindmapper', '', ''),
  1766. ('mmf', 'application/vnd.smaf', '', ''),
  1767. ('teacher', 'application/vnd.smart.teacher', '', ''),
  1768. ('sdkm', 'application/vnd.solent.sdkm+xml', '', ''),
  1769. ('sdkd', 'application/vnd.solent.sdkm+xml', '', ''),
  1770. ('dxp', 'application/vnd.spotfire.dxp', '', ''),
  1771. ('sfs', 'application/vnd.spotfire.sfs', '', ''),
  1772. ('sdc', 'application/vnd.stardivision.calc', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1773. ('sda', 'application/vnd.stardivision.draw', '', ''),
  1774. ('sdd', 'application/vnd.stardivision.impress', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1775. ('smf', 'application/vnd.stardivision.math', '', ''),
  1776. ('sdw', 'application/vnd.stardivision.writer', 'mime-type-document.png', ''),
  1777. ('vor', 'application/vnd.stardivision.writer', '', ''),
  1778. ('sgl', 'application/vnd.stardivision.writer-global', '', ''),
  1779. ('smzip', 'application/vnd.stepmania.package', '', ''),
  1780. ('sm', 'application/vnd.stepmania.stepchart', '', ''),
  1781. ('sxc', 'application/vnd.sun.xml.calc', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1782. ('stc', 'application/vnd.sun.xml.calc.template', 'mime-type-spreadsheet.png', 'file-excel-o'),
  1783. ('sxd', 'application/vnd.sun.xml.draw', 'mime-type-vector.png', ''),
  1784. ('std', 'application/vnd.sun.xml.draw.template', '', ''),
  1785. ('sxi', 'application/vnd.sun.xml.impress', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1786. ('sti', 'application/vnd.sun.xml.impress.template', 'mime-type-presentation.png', 'file-powerpoint-o'),
  1787. ('sxm', 'application/vnd.sun.xml.math', '', ''),
  1788. ('sxw', 'application/vnd.sun.xml.writer', 'mime-type-document.png', ''),
  1789. ('sxg', 'application/vnd.sun.xml.writer.global', '', ''),
  1790. ('stw', 'application/vnd.sun.xml.writer.template', 'mime-type-document.png', ''),
  1791. ('sus', 'application/vnd.sus-calendar', '', ''),
  1792. ('susp', 'application/vnd.sus-calendar', '', ''),
  1793. ('svd', 'application/vnd.svd', '', ''),
  1794. ('sis', 'application/vnd.symbian.install', '', ''),
  1795. ('sisx', 'application/vnd.symbian.install', '', ''),
  1796. ('xsm', 'application/vnd.syncml+xml', '', ''),
  1797. ('bdm', 'application/vnd.syncml.dm+wbxml', '', ''),
  1798. ('xdm', 'application/vnd.syncml.dm+xml', '', ''),
  1799. ('tao', 'application/vnd.tao.intent-module-archive', '', ''),
  1800. ('pcap', 'application/vnd.tcpdump.pcap', '', ''),
  1801. ('cap', 'application/vnd.tcpdump.pcap', '', ''),
  1802. ('dmp', 'application/vnd.tcpdump.pcap', '', ''),
  1803. ('tmo', 'application/vnd.tmobile-livetv', '', ''),
  1804. ('tpt', 'application/vnd.trid.tpt', '', ''),
  1805. ('mxs', 'application/vnd.triscape.mxs', '', ''),
  1806. ('tra', 'application/vnd.trueapp', '', ''),
  1807. ('ufd', 'application/vnd.ufdl', '', ''),
  1808. ('ufdl', 'application/vnd.ufdl', '', ''),
  1809. ('utz', 'application/vnd.uiq.theme', '', ''),
  1810. ('umj', 'application/vnd.umajin', '', ''),
  1811. ('unityweb', 'application/vnd.unity', '', ''),
  1812. ('uoml', 'application/vnd.uoml+xml', '', ''),
  1813. ('vcx', 'application/vnd.vcx', '', ''),
  1814. ('vsd', 'application/vnd.visio', '', ''),
  1815. ('vst', 'application/vnd.visio', '', ''),
  1816. ('vss', 'application/vnd.visio', 'mime-type-vector.png', ''),
  1817. ('vsw', 'application/vnd.visio', '', ''),
  1818. ('vis', 'application/vnd.visionary', '', ''),
  1819. ('vsf', 'application/vnd.vsf', '', ''),
  1820. ('wbxml', 'application/vnd.wap.wbxml', '', ''),
  1821. ('wmlc', 'application/vnd.wap.wmlc', '', ''),
  1822. ('wmlsc', 'application/vnd.wap.wmlscriptc', '', ''),
  1823. ('wtb', 'application/vnd.webturbo', '', ''),
  1824. ('nbp', 'application/vnd.wolfram.player', '', ''),
  1825. ('wpd', 'application/vnd.wordperfect', '', ''),
  1826. ('wqd', 'application/vnd.wqd', '', ''),
  1827. ('stf', 'application/vnd.wt.stf', '', ''),
  1828. ('xar', 'application/vnd.xara', '', ''),
  1829. ('xfdl', 'application/vnd.xfdl', '', ''),
  1830. ('hvd', 'application/vnd.yamaha.hv-dic', '', ''),
  1831. ('hvs', 'application/vnd.yamaha.hv-script', '', ''),
  1832. ('hvp', 'application/vnd.yamaha.hv-voice', '', ''),
  1833. ('osf', 'application/vnd.yamaha.openscoreformat', '', ''),
  1834. ('osfpvg', 'application/vnd.yamaha.openscoreformat.osfpvg+xml', '', ''),
  1835. ('saf', 'application/vnd.yamaha.smaf-audio', '', ''),
  1836. ('spf', 'application/vnd.yamaha.smaf-phrase', '', ''),
  1837. ('cmp', 'application/vnd.yellowriver-custom-menu', '', ''),
  1838. ('zir', 'application/vnd.zul', '', ''),
  1839. ('zirz', 'application/vnd.zul', '', ''),
  1840. ('zaz', 'application/vnd.zzazz.deck+xml', '', ''),
  1841. ('vxml', 'application/voicexml+xml', '', ''),
  1842. ('wgt', 'application/widget', '', ''),
  1843. ('hlp', 'application/winhlp', '', ''),
  1844. ('wsdl', 'application/wsdl+xml', '', ''),
  1845. ('wspolicy', 'application/wspolicy+xml', '', ''),
  1846. ('7z', 'application/x-7z-compressed', 'mime-type-archive.png', 'file-archive-o'),
  1847. ('abw', 'application/x-abiword', '', ''),
  1848. ('ace', 'application/x-ace-compressed', 'mime-type-archive.png', 'file-archive-o'),
  1849. ('dmg', 'application/x-apple-diskimage', '', ''),
  1850. ('aab', 'application/x-authorware-bin', '', ''),
  1851. ('x32', 'application/x-authorware-bin', '', ''),
  1852. ('u32', 'application/x-authorware-bin', '', ''),
  1853. ('vox', 'application/x-authorware-bin', '', ''),
  1854. ('aam', 'application/x-authorware-map', '', ''),
  1855. ('aas', 'application/x-authorware-seg', '', ''),
  1856. ('bcpio', 'application/x-bcpio', '', ''),
  1857. ('torrent', 'application/x-bittorrent', '', ''),
  1858. ('blb', 'application/x-blorb', '', ''),
  1859. ('blorb', 'application/x-blorb', '', ''),
  1860. ('bz', 'application/x-bzip', '', ''),
  1861. ('bz2', 'application/x-bzip2', 'mime-type-archive.png', 'file-archive-o'),
  1862. ('boz', 'application/x-bzip2', '', ''),
  1863. ('cbr', 'application/x-cbr', '', ''),
  1864. ('cba', 'application/x-cbr', '', ''),
  1865. ('cbt', 'application/x-cbr', '', ''),
  1866. ('cbz', 'application/x-cbr', '', ''),
  1867. ('cb7', 'application/x-cbr', '', ''),
  1868. ('vcd', 'application/x-cdlink', '', ''),
  1869. ('cfs', 'application/x-cfs-compressed', '', ''),
  1870. ('chat', 'application/x-chat', '', ''),
  1871. ('pgn', 'application/x-chess-pgn', '', ''),
  1872. ('nsc', 'application/x-conference', '', ''),
  1873. ('cpio', 'application/x-cpio', '', ''),
  1874. ('csh', 'application/x-csh', '', 'file-code-o'),
  1875. ('deb', 'application/x-debian-package', '', ''),
  1876. ('udeb', 'application/x-debian-package', '', ''),
  1877. ('dgc', 'application/x-dgc-compressed', '', ''),
  1878. ('dir', 'application/x-director', '', ''),
  1879. ('dcr', 'application/x-director', '', ''),
  1880. ('dxr', 'application/x-director', '', ''),
  1881. ('cst', 'application/x-director', '', ''),
  1882. ('cct', 'application/x-director', '', ''),
  1883. ('cxt', 'application/x-director', '', '');
  1884. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  1885. ('w3d', 'application/x-director', '', ''),
  1886. ('fgd', 'application/x-director', '', ''),
  1887. ('swa', 'application/x-director', '', ''),
  1888. ('wad', 'application/x-doom', '', ''),
  1889. ('ncx', 'application/x-dtbncx+xml', '', ''),
  1890. ('dtb', 'application/x-dtbook+xml', '', ''),
  1891. ('res', 'application/x-dtbresource+xml', '', ''),
  1892. ('dvi', 'application/x-dvi', '', ''),
  1893. ('evy', 'application/x-envoy', '', ''),
  1894. ('eva', 'application/x-eva', '', ''),
  1895. ('bdf', 'application/x-font-bdf', '', ''),
  1896. ('gsf', 'application/x-font-ghostscript', '', ''),
  1897. ('psf', 'application/x-font-linux-psf', '', ''),
  1898. ('otf', 'application/x-font-otf', '', ''),
  1899. ('pcf', 'application/x-font-pcf', '', ''),
  1900. ('snf', 'application/x-font-snf', '', ''),
  1901. ('ttf', 'application/x-font-ttf', '', ''),
  1902. ('ttc', 'application/x-font-ttf', '', ''),
  1903. ('pfa', 'application/x-font-type1', '', ''),
  1904. ('pfb', 'application/x-font-type1', '', ''),
  1905. ('pfm', 'application/x-font-type1', '', ''),
  1906. ('afm', 'application/x-font-type1', '', ''),
  1907. ('woff', 'application/x-font-woff', '', ''),
  1908. ('arc', 'application/x-freearc', '', ''),
  1909. ('spl', 'application/x-futuresplash', '', ''),
  1910. ('gca', 'application/x-gca-compressed', '', ''),
  1911. ('ulx', 'application/x-glulx', '', ''),
  1912. ('gnumeric', 'application/x-gnumeric', '', ''),
  1913. ('gramps', 'application/x-gramps-xml', '', ''),
  1914. ('gtar', 'application/x-gtar', '', ''),
  1915. ('hdf', 'application/x-hdf', '', ''),
  1916. ('install', 'application/x-install-instructions', '', ''),
  1917. ('iso', 'application/x-iso9660-image', '', ''),
  1918. ('jnlp', 'application/x-java-jnlp-file', '', ''),
  1919. ('latex', 'application/x-latex', '', ''),
  1920. ('lzh', 'application/x-lzh-compressed', '', ''),
  1921. ('lha', 'application/x-lzh-compressed', '', ''),
  1922. ('mie', 'application/x-mie', '', ''),
  1923. ('prc', 'application/x-mobipocket-ebook', '', ''),
  1924. ('mobi', 'application/x-mobipocket-ebook', '', ''),
  1925. ('application', 'application/x-ms-application', '', ''),
  1926. ('lnk', 'application/x-ms-shortcut', '', ''),
  1927. ('wmd', 'application/x-ms-wmd', '', ''),
  1928. ('wmz', 'application/x-ms-wmz', '', ''),
  1929. ('xbap', 'application/x-ms-xbap', '', ''),
  1930. ('mdb', 'application/x-msaccess', '', ''),
  1931. ('obd', 'application/x-msbinder', '', ''),
  1932. ('crd', 'application/x-mscardfile', '', ''),
  1933. ('clp', 'application/x-msclip', '', ''),
  1934. ('exe', 'application/x-msdownload', '', ''),
  1935. ('dll', 'application/x-msdownload', '', ''),
  1936. ('com', 'application/x-msdownload', '', ''),
  1937. ('bat', 'application/x-msdownload', '', 'file-code-o'),
  1938. ('msi', 'application/x-msdownload', '', ''),
  1939. ('mvb', 'application/x-msmediaview', '', ''),
  1940. ('m13', 'application/x-msmediaview', '', ''),
  1941. ('m14', 'application/x-msmediaview', '', ''),
  1942. ('wmf', 'application/x-msmetafile', '', ''),
  1943. ('emf', 'application/x-msmetafile', '', ''),
  1944. ('emz', 'application/x-msmetafile', '', ''),
  1945. ('mny', 'application/x-msmoney', '', ''),
  1946. ('pub', 'application/x-mspublisher', '', ''),
  1947. ('scd', 'application/x-msschedule', '', ''),
  1948. ('trm', 'application/x-msterminal', '', ''),
  1949. ('wri', 'application/x-mswrite', '', ''),
  1950. ('nc', 'application/x-netcdf', '', ''),
  1951. ('cdf', 'application/x-netcdf', '', ''),
  1952. ('nzb', 'application/x-nzb', '', ''),
  1953. ('p12', 'application/x-pkcs12', '', ''),
  1954. ('pfx', 'application/x-pkcs12', '', ''),
  1955. ('p7b', 'application/x-pkcs7-certificates', '', ''),
  1956. ('spc', 'application/x-pkcs7-certificates', '', ''),
  1957. ('p7r', 'application/x-pkcs7-certreqresp', '', ''),
  1958. ('rar', 'application/x-rar-compressed', 'mime-type-archive.png', 'file-archive-o'),
  1959. ('ris', 'application/x-research-info-systems', '', ''),
  1960. ('sh', 'application/x-sh', '', 'file-code-o'),
  1961. ('shar', 'application/x-shar', '', ''),
  1962. ('swf', 'application/x-shockwave-flash', '', ''),
  1963. ('xap', 'application/x-silverlight-app', '', ''),
  1964. ('sql', 'text/x-sql', '', 'file-code-o'),
  1965. ('sit', 'application/x-stuffit', '', ''),
  1966. ('sitx', 'application/x-stuffitx', '', ''),
  1967. ('srt', 'application/x-subrip', '', ''),
  1968. ('sv4cpio', 'application/x-sv4cpio', '', ''),
  1969. ('sv4crc', 'application/x-sv4crc', '', ''),
  1970. ('t3', 'application/x-t3vm-image', '', ''),
  1971. ('gam', 'application/x-tads', '', ''),
  1972. ('tar', 'application/x-tar', 'mime-type-archive.png', 'file-archive-o'),
  1973. ('tcl', 'application/x-tcl', '', ''),
  1974. ('tex', 'application/x-tex', '', ''),
  1975. ('tfm', 'application/x-tex-tfm', '', ''),
  1976. ('texinfo', 'application/x-texinfo', '', ''),
  1977. ('texi', 'application/x-texinfo', '', ''),
  1978. ('obj', 'application/x-tgif', '', ''),
  1979. ('ustar', 'application/x-ustar', '', ''),
  1980. ('src', 'application/x-wais-source', '', 'file-code-o'),
  1981. ('der', 'application/x-x509-ca-cert', '', ''),
  1982. ('crt', 'application/x-x509-ca-cert', '', ''),
  1983. ('fig', 'application/x-xfig', '', ''),
  1984. ('xlf', 'application/x-xliff+xml', '', ''),
  1985. ('xpi', 'application/x-xpinstall', '', ''),
  1986. ('xz', 'application/x-xz', '', ''),
  1987. ('z1', 'application/x-zmachine', '', ''),
  1988. ('z2', 'application/x-zmachine', '', ''),
  1989. ('z3', 'application/x-zmachine', '', ''),
  1990. ('z4', 'application/x-zmachine', '', ''),
  1991. ('z5', 'application/x-zmachine', '', ''),
  1992. ('z6', 'application/x-zmachine', '', ''),
  1993. ('z7', 'application/x-zmachine', '', ''),
  1994. ('z8', 'application/x-zmachine', '', ''),
  1995. ('xaml', 'application/xaml+xml', '', ''),
  1996. ('xdf', 'application/xcap-diff+xml', '', ''),
  1997. ('xenc', 'application/xenc+xml', '', ''),
  1998. ('xhtml', 'application/xhtml+xml', '', 'file-code-o'),
  1999. ('xht', 'application/xhtml+xml', '', ''),
  2000. ('xml', 'application/xml', '', 'file-code-o'),
  2001. ('xsl', 'application/xml', '', 'file-code-o'),
  2002. ('dtd', 'application/xml-dtd', '', 'file-code-o'),
  2003. ('xop', 'application/xop+xml', '', ''),
  2004. ('xpl', 'application/xproc+xml', '', ''),
  2005. ('xslt', 'application/xslt+xml', '', 'file-code-o'),
  2006. ('xspf', 'application/xspf+xml', '', ''),
  2007. ('mxml', 'application/xv+xml', '', ''),
  2008. ('xhvml', 'application/xv+xml', '', ''),
  2009. ('xvml', 'application/xv+xml', '', ''),
  2010. ('xvm', 'application/xv+xml', '', ''),
  2011. ('yang', 'application/yang', '', ''),
  2012. ('yin', 'application/yin+xml', '', ''),
  2013. ('zip', 'application/zip', 'mime-type-archive.png', 'file-archive-o'),
  2014. ('adp', 'audio/adpcm', 'mime-type-audio.png', 'file-audio-o'),
  2015. ('au', 'audio/basic', 'mime-type-audio.png', 'file-audio-o'),
  2016. ('snd', 'audio/basic', 'mime-type-audio.png', 'file-audio-o'),
  2017. ('mid', 'audio/midi', 'mime-type-audio.png', 'file-audio-o'),
  2018. ('midi', 'audio/midi', 'mime-type-audio.png', 'file-audio-o'),
  2019. ('kar', 'audio/midi', 'mime-type-audio.png', 'file-audio-o'),
  2020. ('rmi', 'audio/midi', 'mime-type-audio.png', 'file-audio-o'),
  2021. ('m4a', 'audio/mp4', 'mime-type-audio.png', 'file-audio-o'),
  2022. ('mp4a', 'audio/mp4', 'mime-type-audio.png', 'file-audio-o'),
  2023. ('m4p', 'audio/mp4a-latm', 'mime-type-audio.png', 'file-audio-o'),
  2024. ('mpga', 'audio/mpeg', 'mime-type-audio.png', 'file-audio-o'),
  2025. ('mp2', 'audio/mpeg', 'mime-type-audio.png', 'file-audio-o'),
  2026. ('mp2a', 'audio/mpeg', 'mime-type-audio.png', 'file-audio-o'),
  2027. ('mp3', 'audio/mpeg', 'mime-type-audio.png', 'file-audio-o'),
  2028. ('m2a', 'audio/mpeg', 'mime-type-audio.png', 'file-audio-o'),
  2029. ('m3a', 'audio/mpeg', 'mime-type-audio.png', 'file-audio-o'),
  2030. ('oga', 'audio/ogg', 'mime-type-audio.png', 'file-audio-o'),
  2031. ('ogg', 'audio/ogg', 'mime-type-audio.png', 'file-audio-o'),
  2032. ('spx', 'audio/ogg', 'mime-type-audio.png', 'file-audio-o'),
  2033. ('s3m', 'audio/s3m', 'mime-type-audio.png', 'file-audio-o'),
  2034. ('sil', 'audio/silk', 'mime-type-audio.png', 'file-audio-o'),
  2035. ('uva', 'audio/vnd.dece.audio', 'mime-type-audio.png', 'file-audio-o'),
  2036. ('uvva', 'audio/vnd.dece.audio', 'mime-type-audio.png', 'file-audio-o'),
  2037. ('eol', 'audio/vnd.digital-winds', 'mime-type-audio.png', 'file-audio-o'),
  2038. ('dra', 'audio/vnd.dra', 'mime-type-audio.png', 'file-audio-o'),
  2039. ('dts', 'audio/vnd.dts', 'mime-type-audio.png', 'file-audio-o'),
  2040. ('dtshd', 'audio/vnd.dts.hd', 'mime-type-audio.png', 'file-audio-o'),
  2041. ('lvp', 'audio/vnd.lucent.voice', 'mime-type-audio.png', 'file-audio-o'),
  2042. ('pya', 'audio/vnd.ms-playready.media.pya', 'mime-type-audio.png', 'file-audio-o'),
  2043. ('ecelp4800', 'audio/vnd.nuera.ecelp4800', 'mime-type-audio.png', 'file-audio-o'),
  2044. ('ecelp7470', 'audio/vnd.nuera.ecelp7470', 'mime-type-audio.png', 'file-audio-o'),
  2045. ('ecelp9600', 'audio/vnd.nuera.ecelp9600', 'mime-type-audio.png', 'file-audio-o'),
  2046. ('rip', 'audio/vnd.rip', 'mime-type-audio.png', 'file-audio-o'),
  2047. ('weba', 'audio/webm', 'mime-type-audio.png', 'file-audio-o'),
  2048. ('aac', 'audio/x-aac', 'mime-type-audio.png', 'file-audio-o'),
  2049. ('aif', 'audio/x-aiff', 'mime-type-audio.png', 'file-audio-o'),
  2050. ('aiff', 'audio/x-aiff', 'mime-type-audio.png', 'file-audio-o'),
  2051. ('aifc', 'audio/x-aiff', 'mime-type-audio.png', 'file-audio-o'),
  2052. ('caf', 'audio/x-caf', 'mime-type-audio.png', 'file-audio-o'),
  2053. ('flac', 'audio/x-flac', 'mime-type-audio.png', 'file-audio-o'),
  2054. ('mka', 'audio/x-matroska', 'mime-type-audio.png', 'file-audio-o'),
  2055. ('m3u', 'audio/x-mpegurl', 'mime-type-audio.png', 'file-audio-o'),
  2056. ('wax', 'audio/x-ms-wax', 'mime-type-audio.png', 'file-audio-o'),
  2057. ('wma', 'audio/x-ms-wma', 'mime-type-audio.png', 'file-audio-o'),
  2058. ('ram', 'audio/x-pn-realaudio', 'mime-type-audio.png', 'file-audio-o'),
  2059. ('ra', 'audio/x-pn-realaudio', 'mime-type-audio.png', 'file-audio-o'),
  2060. ('rmp', 'audio/x-pn-realaudio-plugin', 'mime-type-audio.png', 'file-audio-o'),
  2061. ('wav', 'audio/x-wav', 'mime-type-audio.png', 'file-audio-o'),
  2062. ('xm', 'audio/xm', 'mime-type-audio.png', 'file-audio-o'),
  2063. ('cdx', 'chemical/x-cdx', 'mime-type-vector.png', ''),
  2064. ('cif', 'chemical/x-cif', '', ''),
  2065. ('cmdf', 'chemical/x-cmdf', '', ''),
  2066. ('cml', 'chemical/x-cml', '', ''),
  2067. ('csml', 'chemical/x-csml', '', ''),
  2068. ('xyz', 'chemical/x-xyz', '', ''),
  2069. ('bmp', 'image/bmp', 'mime-type-image.png', 'file-image-o'),
  2070. ('cgm', 'image/cgm', 'mime-type-image.png', 'file-image-o'),
  2071. ('g3', 'image/g3fax', 'mime-type-image.png', 'file-image-o'),
  2072. ('gif', 'image/gif', 'mime-type-image.png', 'file-image-o'),
  2073. ('ief', 'image/ief', 'mime-type-image.png', 'file-image-o'),
  2074. ('jp2', 'image/jp2', 'mime-type-image.png', 'file-image-o'),
  2075. ('jpeg', 'image/jpeg', 'mime-type-image.png', 'file-image-o'),
  2076. ('jpg', 'image/jpeg', 'mime-type-image.png', 'file-image-o'),
  2077. ('jpe', 'image/jpeg', 'mime-type-image.png', 'file-image-o'),
  2078. ('ktx', 'image/ktx', 'mime-type-image.png', 'file-image-o'),
  2079. ('pict', 'image/pict', 'mime-type-image.png', 'file-image-o'),
  2080. ('pic', 'image/pict', 'mime-type-image.png', 'file-image-o'),
  2081. ('pct', 'image/pict', 'mime-type-image.png', 'file-image-o'),
  2082. ('png', 'image/png', 'mime-type-png.png', 'file-image-o'),
  2083. ('btif', 'image/prs.btif', 'mime-type-image.png', 'file-image-o'),
  2084. ('sgi', 'image/sgi', 'mime-type-image.png', 'file-image-o');
  2085. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2086. ('svg', 'image/svg+xml', 'mime-type-image.png', 'file-image-o'),
  2087. ('svgz', 'image/svg+xml', 'mime-type-image.png', 'file-image-o'),
  2088. ('tiff', 'image/tiff', 'mime-type-image.png', 'file-image-o'),
  2089. ('tif', 'image/tiff', 'mime-type-image.png', 'file-image-o'),
  2090. ('psd', 'image/vnd.adobe.photoshop', 'mime-type-psd.png', 'file-image-o'),
  2091. ('uvi', 'image/vnd.dece.graphic', 'mime-type-image.png', 'file-image-o'),
  2092. ('uvvi', 'image/vnd.dece.graphic', 'mime-type-image.png', 'file-image-o'),
  2093. ('uvg', 'image/vnd.dece.graphic', 'mime-type-image.png', 'file-image-o'),
  2094. ('uvvg', 'image/vnd.dece.graphic', 'mime-type-image.png', 'file-image-o'),
  2095. ('sub', 'image/vnd.dvb.subtitle', 'mime-type-image.png', 'file-image-o'),
  2096. ('djvu', 'image/vnd.djvu', 'mime-type-image.png', 'file-image-o'),
  2097. ('djv', 'image/vnd.djvu', 'mime-type-image.png', 'file-image-o'),
  2098. ('dwg', 'image/vnd.dwg', 'mime-type-image.png', 'file-image-o'),
  2099. ('dxf', 'image/vnd.dxf', 'mime-type-image.png', 'file-image-o'),
  2100. ('fbs', 'image/vnd.fastbidsheet', 'mime-type-image.png', 'file-image-o'),
  2101. ('fpx', 'image/vnd.fpx', 'mime-type-image.png', 'file-image-o'),
  2102. ('fst', 'image/vnd.fst', 'mime-type-image.png', 'file-image-o'),
  2103. ('mmr', 'image/vnd.fujixerox.edmics-mmr', 'mime-type-image.png', 'file-image-o'),
  2104. ('rlc', 'image/vnd.fujixerox.edmics-rlc', 'mime-type-image.png', 'file-image-o'),
  2105. ('mdi', 'image/vnd.ms-modi', 'mime-type-image.png', 'file-image-o'),
  2106. ('wdp', 'image/vnd.ms-photo', 'mime-type-image.png', 'file-image-o'),
  2107. ('npx', 'image/vnd.net-fpx', 'mime-type-image.png', 'file-image-o'),
  2108. ('wbmp', 'image/vnd.wap.wbmp', 'mime-type-image.png', 'file-image-o'),
  2109. ('xif', 'image/vnd.xiff', 'mime-type-image.png', 'file-image-o'),
  2110. ('webp', 'image/webp', 'mime-type-image.png', 'file-image-o'),
  2111. ('3ds', 'image/x-3ds', 'mime-type-image.png', 'file-image-o'),
  2112. ('ras', 'image/x-cmu-raster', 'mime-type-image.png', 'file-image-o'),
  2113. ('cmx', 'image/x-cmx', 'mime-type-image.png', 'file-image-o'),
  2114. ('fh', 'image/x-freehand', 'mime-type-image.png', 'file-image-o'),
  2115. ('fhc', 'image/x-freehand', 'mime-type-image.png', 'file-image-o'),
  2116. ('fh4', 'image/x-freehand', 'mime-type-image.png', 'file-image-o'),
  2117. ('fh5', 'image/x-freehand', 'mime-type-image.png', 'file-image-o'),
  2118. ('fh7', 'image/x-freehand', 'mime-type-image.png', 'file-image-o'),
  2119. ('ico', 'image/x-icon', 'mime-type-image.png', 'file-image-o'),
  2120. ('pntg', 'image/x-macpaint', 'mime-type-image.png', 'file-image-o'),
  2121. ('pnt', 'image/x-macpaint', 'mime-type-image.png', 'file-image-o'),
  2122. ('mac', 'image/x-macpaint', 'mime-type-image.png', 'file-image-o'),
  2123. ('sid', 'image/x-mrsid-image', 'mime-type-image.png', 'file-image-o'),
  2124. ('pcx', 'image/x-pcx', 'mime-type-image.png', 'file-image-o'),
  2125. ('pnm', 'image/x-portable-anymap', 'mime-type-image.png', 'file-image-o'),
  2126. ('pbm', 'image/x-portable-bitmap', 'mime-type-image.png', 'file-image-o'),
  2127. ('pgm', 'image/x-portable-graymap', 'mime-type-image.png', 'file-image-o'),
  2128. ('ppm', 'image/x-portable-pixmap', 'mime-type-image.png', 'file-image-o'),
  2129. ('qtif', 'image/x-quicktime', 'mime-type-image.png', 'file-image-o'),
  2130. ('qti', 'image/x-quicktime', 'mime-type-image.png', 'file-image-o'),
  2131. ('rgb', 'image/x-rgb', 'mime-type-image.png', 'file-image-o'),
  2132. ('tga', 'image/x-tga', 'mime-type-image.png', 'file-image-o'),
  2133. ('xbm', 'image/x-xbitmap', 'mime-type-image.png', 'file-image-o'),
  2134. ('xpm', 'image/x-xpixmap', 'mime-type-image.png', 'file-image-o'),
  2135. ('xwd', 'image/x-xwindowdump', 'mime-type-image.png', 'file-image-o'),
  2136. ('eml', 'message/rfc822', '', ''),
  2137. ('mime', 'message/rfc822', '', ''),
  2138. ('igs', 'model/iges', '', ''),
  2139. ('iges', 'model/iges', '', ''),
  2140. ('msh', 'model/mesh', '', ''),
  2141. ('mesh', 'model/mesh', '', ''),
  2142. ('silo', 'model/mesh', '', ''),
  2143. ('dae', 'model/vnd.collada+xml', '', ''),
  2144. ('dwf', 'model/vnd.dwf', '', ''),
  2145. ('gdl', 'model/vnd.gdl', '', ''),
  2146. ('gtw', 'model/vnd.gtw', '', ''),
  2147. ('mts', 'model/vnd.mts', '', ''),
  2148. ('vtu', 'model/vnd.vtu', '', ''),
  2149. ('wrl', 'model/vrml', '', ''),
  2150. ('vrml', 'model/vrml', '', ''),
  2151. ('x3db', 'model/x3d+binary', '', ''),
  2152. ('x3dbz', 'model/x3d+binary', '', ''),
  2153. ('x3dv', 'model/x3d+vrml', '', ''),
  2154. ('x3dvz', 'model/x3d+vrml', '', ''),
  2155. ('x3d', 'model/x3d+xml', '', ''),
  2156. ('x3dz', 'model/x3d+xml', '', ''),
  2157. ('manifest', 'text/cache-manifest', '', 'file-text-o'),
  2158. ('appcache', 'text/cache-manifest', '', 'file-text-o'),
  2159. ('ics', 'text/calendar', '', 'file-text-o'),
  2160. ('ifb', 'text/calendar', '', 'file-text-o'),
  2161. ('css', 'text/css', '', 'file-code-o'),
  2162. ('csv', 'text/csv', 'mime-type-spreadsheet.png', 'file-excel-o'),
  2163. ('html', 'text/html', '', 'file-code-o'),
  2164. ('htm', 'text/html', '', 'file-code-o'),
  2165. ('n3', 'text/n3', '', 'file-text-o'),
  2166. ('txt', 'text/plain', 'mime-type-document.png', 'file-text-o'),
  2167. ('text', 'text/plain', '', 'file-text-o'),
  2168. ('conf', 'text/plain', '', 'file-text-o'),
  2169. ('def', 'text/plain', '', 'file-text-o'),
  2170. ('list', 'text/plain', '', 'file-text-o'),
  2171. ('log', 'text/plain', '', 'file-text-o'),
  2172. ('in', 'text/plain', '', 'file-text-o'),
  2173. ('dsc', 'text/prs.lines.tag', '', 'file-text-o'),
  2174. ('rtx', 'text/richtext', '', 'file-text-o'),
  2175. ('sgml', 'text/sgml', '', 'file-text-o'),
  2176. ('sgm', 'text/sgml', '', 'file-text-o'),
  2177. ('tsv', 'text/tab-separated-values', '', 'file-text-o'),
  2178. ('t', 'text/troff', '', 'file-text-o'),
  2179. ('tr', 'text/troff', '', 'file-text-o'),
  2180. ('roff', 'text/troff', '', 'file-text-o'),
  2181. ('man', 'text/troff', '', 'file-text-o'),
  2182. ('me', 'text/troff', '', 'file-text-o'),
  2183. ('ms', 'text/troff', '', 'file-text-o'),
  2184. ('ttl', 'text/turtle', '', 'file-code-o'),
  2185. ('uri', 'text/uri-list', '', 'file-text-o'),
  2186. ('uris', 'text/uri-list', '', 'file-text-o'),
  2187. ('urls', 'text/uri-list', '', 'file-text-o'),
  2188. ('vcard', 'text/vcard', '', 'file-text-o'),
  2189. ('curl', 'text/vnd.curl', '', 'file-text-o'),
  2190. ('dcurl', 'text/vnd.curl.dcurl', '', 'file-text-o'),
  2191. ('scurl', 'text/vnd.curl.scurl', '', 'file-text-o'),
  2192. ('mcurl', 'text/vnd.curl.mcurl', '', 'file-text-o'),
  2193. ('fly', 'text/vnd.fly', '', 'file-text-o'),
  2194. ('flx', 'text/vnd.fmi.flexstor', '', 'file-text-o'),
  2195. ('gv', 'text/vnd.graphviz', '', 'file-text-o'),
  2196. ('3dml', 'text/vnd.in3d.3dml', '', 'file-text-o'),
  2197. ('spot', 'text/vnd.in3d.spot', '', 'file-text-o'),
  2198. ('jad', 'text/vnd.sun.j2me.app-descriptor', '', 'file-text-o'),
  2199. ('wml', 'text/vnd.wap.wml', '', 'file-text-o'),
  2200. ('wmls', 'text/vnd.wap.wmlscript', '', 'file-text-o'),
  2201. ('s', 'text/x-asm', '', 'file-text-o'),
  2202. ('asm', 'text/x-asm', '', 'file-code-o'),
  2203. ('c', 'text/x-c', '', 'file-code-o'),
  2204. ('cc', 'text/x-c', '', 'file-code-o'),
  2205. ('cxx', 'text/x-c', '', 'file-code-o'),
  2206. ('cpp', 'text/x-c', '', 'file-code-o'),
  2207. ('h', 'text/x-c', '', 'file-code-o'),
  2208. ('hh', 'text/x-c', '', 'file-code-o'),
  2209. ('dic', 'text/x-c', '', 'file-text-o'),
  2210. ('f', 'text/x-fortran', '', 'file-code-o'),
  2211. ('for', 'text/x-fortran', '', 'file-code-o'),
  2212. ('f77', 'text/x-fortran', '', 'file-text-o'),
  2213. ('f90', 'text/x-fortran', '', 'file-text-o'),
  2214. ('java', 'text/x-java-source', '', 'file-code-o'),
  2215. ('opml', 'text/x-opml', '', 'file-text-o'),
  2216. ('p', 'text/x-pascal', '', 'file-text-o'),
  2217. ('pas', 'text/x-pascal', '', 'file-code-o'),
  2218. ('php', 'application/x-httpd-php', '', 'file-code-o'),
  2219. ('coffee', 'text/x-coffeescript', '', 'file-code-o'),
  2220. ('lsp', 'text/x-common-lisp', '', 'file-code-o'),
  2221. ('lisp', 'text/x-common-lisp', '', 'file-code-o'),
  2222. ('diff', 'text/x-diff', '', 'file-code-o'),
  2223. ('go', 'text/x-go', '', 'file-code-o'),
  2224. ('lua', 'text/x-lua', '', 'file-code-o'),
  2225. ('pl', 'text/x-perl', '', 'file-code-o'),
  2226. ('prl', 'text/x-perl', '', 'file-code-o'),
  2227. ('perl', 'text/x-perl', '', 'file-code-o'),
  2228. ('py', 'text/x-python', '', 'file-code-o'),
  2229. ('nginx', 'text/nginx', '', 'file-code-o'),
  2230. ('ini', 'text/x-ini', '', 'file-text-o'),
  2231. ('rb', 'text/x-ruby', '', 'file-code-o'),
  2232. ('sass', 'text/x-sass', '', 'file-code-o'),
  2233. ('bash', 'text/x-sh', '', 'file-code-o'),
  2234. ('swift', 'text/x-swift', '', 'file-code-o'),
  2235. ('vb', 'text/x-vb', '', 'file-code-o'),
  2236. ('vbs', 'text/vbscript', '', 'file-code-o'),
  2237. ('vue', 'text/x-vue', '', 'file-code-o'),
  2238. ('yaml', 'text/x-yaml', '', 'file-text-o'),
  2239. ('md', 'text/x-markdown', '', 'file-text-o'),
  2240. ('xq', 'application/xquery', '', 'file-code-o'),
  2241. ('xquery', 'application/xquery', '', 'file-code-o'),
  2242. ('ps1', 'application/x-powershell', '', 'file-code-o'),
  2243. ('aps', 'application/x-aspx', '', ''),
  2244. ('jsp', 'application/x-jsp', '', 'file-code-o'),
  2245. ('nfo', 'text/x-nfo', '', 'file-text-o'),
  2246. ('etx', 'text/x-setext', '', 'file-text-o'),
  2247. ('sfv', 'text/x-sfv', '', 'file-text-o'),
  2248. ('uu', 'text/x-uuencode', '', 'file-text-o'),
  2249. ('vcs', 'text/x-vcalendar', '', 'file-text-o'),
  2250. ('vcf', 'text/x-vcard', '', 'file-text-o'),
  2251. ('3gp', 'video/3gpp', 'mime-type-video.png', 'file-video-o'),
  2252. ('3g2', 'video/3gpp2', 'mime-type-video.png', 'file-video-o'),
  2253. ('h261', 'video/h261', 'mime-type-video.png', 'file-video-o'),
  2254. ('h263', 'video/h263', 'mime-type-video.png', 'file-video-o'),
  2255. ('h264', 'video/h264', 'mime-type-video.png', 'file-video-o'),
  2256. ('jpgv', 'video/jpeg', 'mime-type-video.png', 'file-video-o'),
  2257. ('jpm', 'video/jpm', 'mime-type-video.png', 'file-video-o'),
  2258. ('jpgm', 'video/jpm', 'mime-type-video.png', 'file-video-o'),
  2259. ('mj2', 'video/mj2', 'mime-type-video.png', 'file-video-o'),
  2260. ('mjp2', 'video/mj2', 'mime-type-video.png', 'file-video-o'),
  2261. ('ts', 'video/mp2t', 'mime-type-video.png', 'file-video-o'),
  2262. ('mp4', 'video/mp4', 'mime-type-video.png', 'file-video-o'),
  2263. ('mp4v', 'video/mp4', 'mime-type-video.png', 'file-video-o'),
  2264. ('mpg4', 'video/mp4', 'mime-type-video.png', 'file-video-o'),
  2265. ('m4v', 'video/mp4', 'mime-type-video.png', 'file-video-o'),
  2266. ('mpeg', 'video/mpeg', 'mime-type-video.png', 'file-video-o'),
  2267. ('mpg', 'video/mpeg', 'mime-type-video.png', 'file-video-o'),
  2268. ('mpe', 'video/mpeg', 'mime-type-video.png', 'file-video-o'),
  2269. ('m1v', 'video/mpeg', 'mime-type-video.png', 'file-video-o'),
  2270. ('m2v', 'video/mpeg', 'mime-type-video.png', 'file-video-o'),
  2271. ('ogv', 'video/ogg', 'mime-type-video.png', 'file-video-o'),
  2272. ('qt', 'video/quicktime', 'mime-type-video.png', 'file-video-o'),
  2273. ('mov', 'video/quicktime', 'mime-type-video.png', 'file-video-o'),
  2274. ('uvh', 'video/vnd.dece.hd', 'mime-type-video.png', 'file-video-o'),
  2275. ('uvvh', 'video/vnd.dece.hd', 'mime-type-video.png', 'file-video-o'),
  2276. ('uvm', 'video/vnd.dece.mobile', 'mime-type-video.png', 'file-video-o'),
  2277. ('uvvm', 'video/vnd.dece.mobile', 'mime-type-video.png', 'file-video-o'),
  2278. ('uvp', 'video/vnd.dece.pd', 'mime-type-video.png', 'file-video-o'),
  2279. ('uvvp', 'video/vnd.dece.pd', 'mime-type-video.png', 'file-video-o');
  2280. INSERT INTO `sys_storage_mime_types` (`ext`, `mime_type`, `icon`, `icon_font`) VALUES
  2281. ('uvs', 'video/vnd.dece.sd', 'mime-type-video.png', 'file-video-o'),
  2282. ('uvvs', 'video/vnd.dece.sd', 'mime-type-video.png', 'file-video-o'),
  2283. ('uvv', 'video/vnd.dece.video', 'mime-type-video.png', 'file-video-o'),
  2284. ('uvvv', 'video/vnd.dece.video', 'mime-type-video.png', 'file-video-o'),
  2285. ('dvb', 'video/vnd.dvb.file', 'mime-type-video.png', 'file-video-o'),
  2286. ('fvt', 'video/vnd.fvt', 'mime-type-video.png', 'file-video-o'),
  2287. ('mxu', 'video/vnd.mpegurl', 'mime-type-video.png', 'file-video-o'),
  2288. ('m4u', 'video/vnd.mpegurl', 'mime-type-video.png', 'file-video-o'),
  2289. ('pyv', 'video/vnd.ms-playready.media.pyv', 'mime-type-video.png', 'file-video-o'),
  2290. ('uvu', 'video/vnd.uvvu.mp4', 'mime-type-video.png', 'file-video-o'),
  2291. ('uvvu', 'video/vnd.uvvu.mp4', 'mime-type-video.png', 'file-video-o'),
  2292. ('viv', 'video/vnd.vivo', 'mime-type-video.png', 'file-video-o'),
  2293. ('dv', 'video/x-dv', 'mime-type-video.png', 'file-video-o'),
  2294. ('dif', 'video/x-dv', 'mime-type-video.png', 'file-excel-o'),
  2295. ('webm', 'video/webm', 'mime-type-video.png', 'file-video-o'),
  2296. ('f4v', 'video/x-f4v', 'mime-type-video.png', 'file-video-o'),
  2297. ('fli', 'video/x-fli', 'mime-type-video.png', 'file-video-o'),
  2298. ('flv', 'video/x-flv', 'mime-type-video.png', 'file-video-o'),
  2299. ('mkv', 'video/x-matroska', 'mime-type-video.png', 'file-video-o'),
  2300. ('mk3d', 'video/x-matroska', 'mime-type-video.png', 'file-video-o'),
  2301. ('mks', 'video/x-matroska', 'mime-type-video.png', 'file-video-o'),
  2302. ('mng', 'video/x-mng', 'mime-type-video.png', 'file-video-o'),
  2303. ('asf', 'video/x-ms-asf', 'mime-type-video.png', 'file-video-o'),
  2304. ('asx', 'video/x-ms-asf', 'mime-type-video.png', 'file-video-o'),
  2305. ('vob', 'video/x-ms-vob', 'mime-type-video.png', 'file-video-o'),
  2306. ('wm', 'video/x-ms-wm', 'mime-type-video.png', 'file-video-o'),
  2307. ('wmv', 'video/x-ms-wmv', 'mime-type-video.png', 'file-video-o'),
  2308. ('wmx', 'video/x-ms-wmx', 'mime-type-video.png', 'file-video-o'),
  2309. ('wvx', 'video/x-ms-wvx', 'mime-type-video.png', 'file-video-o'),
  2310. ('avi', 'video/x-msvideo', 'mime-type-video.png', 'file-video-o'),
  2311. ('movie', 'video/x-sgi-movie', 'mime-type-video.png', 'file-video-o'),
  2312. ('smv', 'video/x-smv', 'mime-type-video.png', 'file-video-o'),
  2313. ('ice', 'x-conference/x-cooltalk', '', '');
  2314. -- --------------------------------------------------------
  2315. CREATE TABLE IF NOT EXISTS `sys_objects_uploader` (
  2316. `id` int(11) NOT NULL AUTO_INCREMENT,
  2317. `object` varchar(64) NOT NULL,
  2318. `active` tinyint(4) NOT NULL,
  2319. `override_class_name` varchar(255) NOT NULL,
  2320. `override_class_file` varchar(255) NOT NULL,
  2321. PRIMARY KEY (`id`),
  2322. UNIQUE KEY `object` (`object`)
  2323. ) ENGINE=MyISAM;
  2324. INSERT INTO `sys_objects_uploader` (`object`, `active`, `override_class_name`, `override_class_file`) VALUES
  2325. ('sys_simple', 1, 'BxTemplUploaderSimple', ''),
  2326. ('sys_html5', 1, 'BxTemplUploaderHTML5', ''),
  2327. ('sys_crop', 1, 'BxTemplUploaderCrop', ''),
  2328. ('sys_cmts_simple', 1, 'BxTemplCmtsUploaderSimple', ''),
  2329. ('sys_settings_html5', 1, 'BxTemplStudioSettingsUploaderHTML5', ''),
  2330. ('sys_builder_page_simple', 1, 'BxTemplStudioBuilderPageUploaderSimple', ''),
  2331. ('sys_builder_page_html5', 1, 'BxTemplStudioBuilderPageUploaderHTML5', ''),
  2332. ('sys_std_crop_cover', 1, 'BxTemplStudioUploaderCropCover', '');
  2333. -- --------------------------------------------------------
  2334. CREATE TABLE IF NOT EXISTS `sys_objects_form` (
  2335. `id` int(11) NOT NULL AUTO_INCREMENT,
  2336. `object` varchar(64) NOT NULL,
  2337. `module` varchar(32) NOT NULL,
  2338. `title` varchar(255) NOT NULL,
  2339. `action` varchar(255) NOT NULL,
  2340. `form_attrs` text NOT NULL,
  2341. `submit_name` varchar(255) NOT NULL,
  2342. `table` varchar(255) NOT NULL,
  2343. `key` varchar(255) NOT NULL,
  2344. `uri` varchar(255) NOT NULL,
  2345. `uri_title` varchar(255) NOT NULL,
  2346. `params` text NOT NULL,
  2347. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2348. `active` tinyint(4) NOT NULL DEFAULT '0',
  2349. `override_class_name` varchar(255) NOT NULL,
  2350. `override_class_file` varchar(255) NOT NULL,
  2351. PRIMARY KEY (`id`),
  2352. UNIQUE KEY `object` (`object`)
  2353. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2354. 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
  2355. ('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', ''),
  2356. ('sys_account', 'system', '_sys_form_account', '', '', 'do_submit', 'sys_accounts', 'id', '', '', 'a:1:{s:14:"checker_helper";s:26:"BxFormAccountCheckerHelper";}', 0, 1, 'BxTemplFormAccount', ''),
  2357. ('sys_forgot_password', 'system', '_sys_form_forgot_password', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:33:"BxFormForgotPasswordCheckerHelper";}', 0, 1, 'BxTemplFormForgotPassword', ''),
  2358. ('sys_confirm_email', 'system', '_sys_form_confirm_email', '', '', 'do_submit', '', '', '', '', 'a:1:{s:14:"checker_helper";s:31:"BxFormConfirmEmailCheckerHelper";}', 0, 1, 'BxTemplFormConfirmEmail', ''),
  2359. ('sys_unsubscribe', 'system', '_sys_form_unsubscribe', '', '', 'do_submit', 'sys_accounts', 'id', '', '', '', 0, 1, 'BxTemplFormAccount', ''),
  2360. ('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', ''),
  2361. ('sys_report', 'system', '_sys_form_report', 'report.php', 'a:3:{s:2:"id";s:0:"";s:4:"name";s:0:"";s:5:"class";s:17:"bx-report-do-form";}', 'submit', '', 'id', '', '', '', 0, 1, '', '');
  2362. CREATE TABLE IF NOT EXISTS `sys_form_displays` (
  2363. `id` int(11) NOT NULL AUTO_INCREMENT,
  2364. `display_name` varchar(64) NOT NULL,
  2365. `module` varchar(32) NOT NULL,
  2366. `object` varchar(64) NOT NULL,
  2367. `title` varchar(255) NOT NULL,
  2368. `view_mode` tinyint(4) NOT NULL DEFAULT '0',
  2369. PRIMARY KEY (`id`),
  2370. UNIQUE KEY `object_display_name` (`object`,`display_name`)
  2371. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2372. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  2373. ('sys_login', 'system', 'sys_login', '_sys_form_display_login', 0),
  2374. ('sys_account_create', 'system', 'sys_account', '_sys_form_display_account_create', 0),
  2375. ('sys_account_settings_email', 'system', 'sys_account', '_sys_form_display_account_settings_email', 0),
  2376. ('sys_account_settings_pwd', 'system', 'sys_account', '_sys_form_display_account_settings_password', 0),
  2377. ('sys_account_settings_info', 'system', 'sys_account', '_sys_form_display_account_settings_info', 0),
  2378. ('sys_account_settings_del_account', 'system', 'sys_account', '_sys_form_display_account_settings_delete', 0),
  2379. ('sys_forgot_password', 'system', 'sys_forgot_password', '_sys_form_display_forgot_password', 0),
  2380. ('sys_confirm_email', 'system', 'sys_confirm_email', '_sys_form_display_confirm_email', 0),
  2381. ('sys_unsubscribe_updates', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_updates', 0),
  2382. ('sys_unsubscribe_news', 'system', 'sys_unsubscribe', '_sys_form_display_unsubscribe_news', 0),
  2383. ('sys_comment_post', 'system', 'sys_comment', '_sys_form_display_comment_post', 0),
  2384. ('sys_comment_edit', 'system', 'sys_comment', '_sys_form_display_comment_edit', 0),
  2385. ('sys_report_post', 'system', 'sys_report', '_sys_form_display_report_post', 0);
  2386. CREATE TABLE IF NOT EXISTS `sys_form_inputs` (
  2387. `id` int(11) NOT NULL AUTO_INCREMENT,
  2388. `object` varchar(64) NOT NULL,
  2389. `module` varchar(32) NOT NULL,
  2390. `name` varchar(255) NOT NULL,
  2391. `value` varchar(255) NOT NULL,
  2392. `values` text NOT NULL,
  2393. `checked` tinyint(4) NOT NULL DEFAULT '0',
  2394. `type` varchar(32) NOT NULL,
  2395. `caption_system` varchar(255) NOT NULL,
  2396. `caption` varchar(255) NOT NULL,
  2397. `info` varchar(255) NOT NULL,
  2398. `required` tinyint(4) NOT NULL DEFAULT '0',
  2399. `unique` tinyint(4) NOT NULL DEFAULT '0',
  2400. `collapsed` tinyint(4) NOT NULL DEFAULT '0',
  2401. `html` tinyint(4) NOT NULL DEFAULT '0',
  2402. `attrs` text NOT NULL,
  2403. `attrs_tr` text NOT NULL,
  2404. `attrs_wrapper` text NOT NULL,
  2405. `checker_func` varchar(32) NOT NULL,
  2406. `checker_params` text NOT NULL,
  2407. `checker_error` varchar(255) NOT NULL,
  2408. `db_pass` varchar(32) NOT NULL,
  2409. `db_params` text NOT NULL,
  2410. `editable` tinyint(4) NOT NULL DEFAULT '1',
  2411. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2412. PRIMARY KEY (`id`),
  2413. UNIQUE KEY `display_name` (`object`,`name`)
  2414. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2415. 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
  2416. ('sys_login', 'system', 'role', '1', '', 0, 'hidden', '_sys_form_login_input_caption_system_role', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2417. ('sys_login', 'system', 'relocate', '', '', 0, 'hidden', '_sys_form_login_input_caption_system_relocate', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2418. ('sys_login', 'system', 'ID', '', '', 0, 'text', '_sys_form_login_input_caption_system_id', '_sys_form_login_input_email', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2419. ('sys_login', 'system', 'Password', '', '', 0, 'password', '_sys_form_login_input_caption_system_password', '_sys_form_login_input_password', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2420. ('sys_login', 'system', 'rememberMe', '1', '', 0, 'switcher', '_sys_form_login_input_caption_system_remember_me', '_sys_form_login_input_remember_me', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2421. ('sys_login', 'system', 'login', '_sys_form_login_input_submit', '', 0, 'submit', '_sys_form_login_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2422. ('sys_login', 'system', 'submit_text', '', '', 0, 'custom', '_sys_form_login_input_caption_system_submit_text', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2423. ('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),
  2424. ('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),
  2425. ('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),
  2426. ('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),
  2427. ('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', '', 1, 0),
  2428. ('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', '', '', 1, 0),
  2429. ('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),
  2430. ('sys_account', 'system', 'delete_content', '0', '', 0, 'hidden', '_sys_form_login_input_caption_system_delete_content', '', '', 1, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2431. ('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),
  2432. ('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),
  2433. ('sys_account', 'system', 'receive_news', '1', '', 1, 'switcher', '_sys_form_login_input_caption_system_receive_news', '_sys_form_account_input_receive_news', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  2434. ('sys_account', 'system', 'agreement', '', '', 0, 'custom', '_sys_form_login_input_caption_system_agreement', '_sys_form_account_input_agreement', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2435. ('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),
  2436. ('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),
  2437. ('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),
  2438. ('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),
  2439. ('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),
  2440. ('sys_unsubscribe', 'system', 'id', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2441. ('sys_unsubscribe', 'system', 'code', '', '', 0, 'hidden', '_sys_form_unsubscribe_input_caption_system_code', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2442. ('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),
  2443. ('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),
  2444. ('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),
  2445. ('sys_comment', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2446. ('sys_comment', 'system', 'id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2447. ('sys_comment', 'system', 'action', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2448. ('sys_comment', 'system', 'cmt_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2449. ('sys_comment', 'system', 'cmt_parent_id', '', '', 0, 'hidden', '_sys_form_comment_input_caption_system_cmt_parent_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2450. ('sys_comment', 'system', 'cmt_text', '', '', 0, 'textarea', '_sys_form_comment_input_caption_system_cmt_text', '', '', 0, 0, 0, 'a:1:{s:12:"autocomplete";s:3:"off";}', '', '', 'Length', 'a:2:{s:3:"min";i:1;s:3:"max";i:5000;}', '_Please enter n1-n2 characters', 'Xss', '', 1, 0),
  2451. ('sys_comment', 'system', 'cmt_image', 'a:1:{i:0;s:15:"sys_cmts_simple";}', 'a:1:{s:15:"sys_cmts_simple";s:26:"_sys_uploader_simple_title";}', 0, 'files', '_sys_form_comment_input_caption_system_cmt_image', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  2452. ('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),
  2453. ('sys_report', 'system', 'sys', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2454. ('sys_report', 'system', 'object_id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_object_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2455. ('sys_report', 'system', 'action', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  2456. ('sys_report', 'system', 'id', '', '', 0, 'hidden', '_sys_form_report_input_caption_system_id', '', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  2457. ('sys_report', 'system', 'type', '', '#!sys_report_types', 0, 'select', '_sys_form_report_input_caption_system_type', '_sys_form_report_input_caption_type', '', 1, 0, 0, '', '', '', 'Avail', '', '_Please select value', 'Xss', '', 1, 0),
  2458. ('sys_report', 'system', 'text', '', '', 0, 'textarea', '_sys_form_report_input_caption_system_text', '_sys_form_report_input_caption_text', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
  2459. ('sys_report', 'system', 'submit', '_sys_form_report_input_caption_submit', '', 0, 'submit', '_sys_form_report_input_caption_system_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0);
  2460. CREATE TABLE IF NOT EXISTS `sys_form_display_inputs` (
  2461. `id` int(11) NOT NULL AUTO_INCREMENT,
  2462. `display_name` varchar(64) NOT NULL,
  2463. `input_name` varchar(32) NOT NULL,
  2464. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  2465. `active` tinyint(4) NOT NULL DEFAULT '0',
  2466. `order` int(11) NOT NULL,
  2467. PRIMARY KEY (`id`),
  2468. UNIQUE KEY `display_input` (`display_name`,`input_name`)
  2469. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2470. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  2471. ('sys_login', 'role', 2147483647, 1, 1),
  2472. ('sys_login', 'relocate', 2147483647, 1, 2),
  2473. ('sys_login', 'ID', 2147483647, 1, 3),
  2474. ('sys_login', 'Password', 2147483647, 1, 4),
  2475. ('sys_login', 'rememberMe', 2147483647, 1, 5),
  2476. ('sys_login', 'login', 2147483647, 1, 6),
  2477. ('sys_login', 'submit_text', 2147483647, 1, 7),
  2478. ('sys_account_create', 'name', 2147483647, 1, 1),
  2479. ('sys_account_create', 'email', 2147483647, 1, 2),
  2480. ('sys_account_create', 'password', 2147483647, 1, 3),
  2481. ('sys_account_create', 'receive_news', 2147483647, 1, 4),
  2482. ('sys_account_create', 'do_submit', 2147483647, 1, 5),
  2483. ('sys_account_create', 'agreement', 2147483647, 1, 7),
  2484. ('sys_account_settings_email', 'email', 2147483647, 1, 1),
  2485. ('sys_account_settings_email', 'password_current', 2147483647, 1, 2),
  2486. ('sys_account_settings_email', 'receive_updates', 2147483647, 1, 3),
  2487. ('sys_account_settings_email', 'receive_news', 2147483647, 1, 4),
  2488. ('sys_account_settings_email', 'do_submit', 2147483647, 1, 5),
  2489. ('sys_account_settings_pwd', 'password_current', 2147483647, 1, 1),
  2490. ('sys_account_settings_pwd', 'password', 2147483647, 1, 2),
  2491. ('sys_account_settings_pwd', 'password_confirm', 2147483647, 1, 3),
  2492. ('sys_account_settings_pwd', 'do_submit', 2147483647, 1, 4),
  2493. ('sys_account_settings_del_account', 'delete_content', 2147483647, 1, 0),
  2494. ('sys_account_settings_del_account', 'delete_confirm', 2147483647, 1, 1),
  2495. ('sys_account_settings_del_account', 'password_current', 2147483647, 1, 2),
  2496. ('sys_account_settings_del_account', 'do_submit', 2147483647, 1, 3),
  2497. ('sys_account_settings_info', 'name', 2147483647, 1, 1),
  2498. ('sys_account_settings_info', 'do_submit', 2147483647, 1, 2),
  2499. ('sys_forgot_password', 'email', 2147483647, 1, 1),
  2500. ('sys_forgot_password', 'captcha', 2147483647, 1, 2),
  2501. ('sys_forgot_password', 'do_submit', 2147483647, 1, 3),
  2502. ('sys_confirm_email', 'code', 2147483647, 1, 1),
  2503. ('sys_confirm_email', 'do_submit', 2147483647, 1, 2),
  2504. ('sys_unsubscribe_updates', 'id', 2147483647, 1, 1),
  2505. ('sys_unsubscribe_updates', 'code', 2147483647, 1, 2),
  2506. ('sys_unsubscribe_updates', 'receive_updates', 2147483647, 1, 3),
  2507. ('sys_unsubscribe_updates', 'do_submit', 2147483647, 1, 4),
  2508. ('sys_unsubscribe_news', 'id', 2147483647, 1, 1),
  2509. ('sys_unsubscribe_news', 'code', 2147483647, 1, 2),
  2510. ('sys_unsubscribe_news', 'receive_news', 2147483647, 1, 3),
  2511. ('sys_unsubscribe_news', 'do_submit', 2147483647, 1, 4),
  2512. ('sys_comment_post', 'sys', 2147483647, 1, 1),
  2513. ('sys_comment_post', 'id', 2147483647, 1, 2),
  2514. ('sys_comment_post', 'action', 2147483647, 1, 3),
  2515. ('sys_comment_post', 'cmt_id', 2147483647, 0, 4),
  2516. ('sys_comment_post', 'cmt_parent_id', 2147483647, 1, 5),
  2517. ('sys_comment_post', 'cmt_text', 2147483647, 1, 6),
  2518. ('sys_comment_post', 'cmt_image', 2147483647, 1, 7),
  2519. ('sys_comment_post', 'cmt_submit', 2147483647, 1, 8),
  2520. ('sys_comment_edit', 'sys', 2147483647, 1, 1),
  2521. ('sys_comment_edit', 'id', 2147483647, 1, 2),
  2522. ('sys_comment_edit', 'action', 2147483647, 1, 3),
  2523. ('sys_comment_edit', 'cmt_id', 2147483647, 1, 4),
  2524. ('sys_comment_edit', 'cmt_parent_id', 2147483647, 1, 5),
  2525. ('sys_comment_edit', 'cmt_text', 2147483647, 1, 6),
  2526. ('sys_comment_edit', 'cmt_image', 2147483647, 0, 7),
  2527. ('sys_comment_edit', 'cmt_submit', 2147483647, 1, 8),
  2528. ('sys_report_post', 'sys', 2147483647, 1, 1),
  2529. ('sys_report_post', 'object_id', 2147483647, 1, 2),
  2530. ('sys_report_post', 'action', 2147483647, 1, 3),
  2531. ('sys_report_post', 'id', 2147483647, 0, 4),
  2532. ('sys_report_post', 'type', 2147483647, 1, 5),
  2533. ('sys_report_post', 'text', 2147483647, 1, 6),
  2534. ('sys_report_post', 'submit', 2147483647, 1, 7);
  2535. CREATE TABLE `sys_form_pre_lists` (
  2536. `id` int(11) NOT NULL AUTO_INCREMENT,
  2537. `module` varchar(32) NOT NULL default '',
  2538. `key` varchar(255) NOT NULL default '',
  2539. `title` varchar(255) NOT NULL default '',
  2540. `use_for_sets` tinyint(4) unsigned NOT NULL default '1',
  2541. `extendable` tinyint(4) unsigned NOT NULL default '1',
  2542. PRIMARY KEY (`id`),
  2543. UNIQUE KEY `key` (`key`),
  2544. FULLTEXT KEY `ModuleAndKey` (`module`, `key`)
  2545. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2546. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`, `extendable`) VALUES
  2547. ('Country', '_adm_form_txt_pre_lists_country', 'system', '0', '0'),
  2548. ('Sex', '_adm_form_txt_pre_lists_sex', 'system', '1', '1'),
  2549. ('Language', '_adm_form_txt_pre_lists_language', 'system', '0', '1'),
  2550. ('sys_report_types', '_sys_pre_lists_report_types', 'system', '0', '0');
  2551. CREATE TABLE `sys_form_pre_values` (
  2552. `id` int(11) NOT NULL AUTO_INCREMENT,
  2553. `Key` varchar(255) NOT NULL default '',
  2554. `Value` varchar(255) NOT NULL default '',
  2555. `Order` int(10) unsigned NOT NULL default '0',
  2556. `LKey` varchar(255) NOT NULL default '',
  2557. `LKey2` varchar(255) NOT NULL default '',
  2558. PRIMARY KEY (`id`),
  2559. FULLTEXT KEY `KeyAndValue` (`Key`, `Value`)
  2560. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2561. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2562. ('Country', 'AF', 1, '__Afghanistan', ''),
  2563. ('Country', 'AX', 2, '__Aland_Islands', ''),
  2564. ('Country', 'AL', 3, '__Albania', ''),
  2565. ('Country', 'DZ', 4, '__Algeria', ''),
  2566. ('Country', 'AS', 5, '__American Samoa', ''),
  2567. ('Country', 'AD', 6, '__Andorra', ''),
  2568. ('Country', 'AO', 7, '__Angola', ''),
  2569. ('Country', 'AI', 8, '__Anguilla', ''),
  2570. ('Country', 'AQ', 9, '__Antarctica', ''),
  2571. ('Country', 'AG', 10, '__Antigua and Barbuda', ''),
  2572. ('Country', 'AR', 11, '__Argentina', ''),
  2573. ('Country', 'AM', 12, '__Armenia', ''),
  2574. ('Country', 'AW', 13, '__Aruba', ''),
  2575. ('Country', 'AU', 14, '__Australia', ''),
  2576. ('Country', 'AT', 15, '__Austria', ''),
  2577. ('Country', 'AZ', 16, '__Azerbaijan', ''),
  2578. ('Country', 'BH', 17, '__Bahrain', ''),
  2579. ('Country', 'BD', 18, '__Bangladesh', ''),
  2580. ('Country', 'BB', 19, '__Barbados', ''),
  2581. ('Country', 'BY', 20, '__Belarus', ''),
  2582. ('Country', 'BE', 21, '__Belgium', ''),
  2583. ('Country', 'BZ', 22, '__Belize', ''),
  2584. ('Country', 'BJ', 23, '__Benin', ''),
  2585. ('Country', 'BM', 24, '__Bermuda', ''),
  2586. ('Country', 'BT', 25, '__Bhutan', ''),
  2587. ('Country', 'BO', 26, '__Bolivia', ''),
  2588. ('Country', 'BA', 27, '__Bosnia and Herzegovina', ''),
  2589. ('Country', 'BW', 28, '__Botswana', ''),
  2590. ('Country', 'BV', 29, '__Bouvet Island', ''),
  2591. ('Country', 'BR', 30, '__Brazil', ''),
  2592. ('Country', 'IO', 31, '__British Indian Ocean Territory', ''),
  2593. ('Country', 'VG', 32, '__British Virgin Islands', ''),
  2594. ('Country', 'BN', 33, '__Brunei Darussalam', ''),
  2595. ('Country', 'BG', 34, '__Bulgaria', ''),
  2596. ('Country', 'BF', 35, '__Burkina Faso', ''),
  2597. ('Country', 'MM', 36, '__Burma', ''),
  2598. ('Country', 'BI', 37, '__Burundi', ''),
  2599. ('Country', 'KH', 38, '__Cambodia', ''),
  2600. ('Country', 'CM', 39, '__Cameroon', ''),
  2601. ('Country', 'CA', 40, '__Canada', ''),
  2602. ('Country', 'CV', 41, '__Cape Verde', ''),
  2603. ('Country', 'KY', 42, '__Cayman Islands', ''),
  2604. ('Country', 'CF', 43, '__Central African Republic', ''),
  2605. ('Country', 'TD', 44, '__Chad', ''),
  2606. ('Country', 'CL', 45, '__Chile', ''),
  2607. ('Country', 'CN', 46, '__China', ''),
  2608. ('Country', 'CX', 47, '__Christmas Island', ''),
  2609. ('Country', 'CC', 48, '__Cocos (Keeling) Islands', ''),
  2610. ('Country', 'CO', 49, '__Colombia', ''),
  2611. ('Country', 'KM', 50, '__Comoros', ''),
  2612. ('Country', 'CD', 51, '__Congo, Democratic Republic of the', ''),
  2613. ('Country', 'CG', 52, '__Congo, Republic of the', ''),
  2614. ('Country', 'CK', 53, '__Cook Islands', ''),
  2615. ('Country', 'CR', 54, '__Costa Rica', ''),
  2616. ('Country', 'CI', 55, '__Cote d''Ivoire', ''),
  2617. ('Country', 'HR', 56, '__Croatia', ''),
  2618. ('Country', 'CU', 57, '__Cuba', ''),
  2619. ('Country', 'CY', 58, '__Cyprus', ''),
  2620. ('Country', 'CZ', 59, '__Czech Republic', ''),
  2621. ('Country', 'DK', 60, '__Denmark', ''),
  2622. ('Country', 'DJ', 61, '__Djibouti', ''),
  2623. ('Country', 'DM', 62, '__Dominica', ''),
  2624. ('Country', 'DO', 63, '__Dominican Republic', ''),
  2625. ('Country', 'TL', 64, '__East Timor', ''),
  2626. ('Country', 'EC', 65, '__Ecuador', ''),
  2627. ('Country', 'EG', 66, '__Egypt', ''),
  2628. ('Country', 'SV', 67, '__El Salvador', ''),
  2629. ('Country', 'GQ', 68, '__Equatorial Guinea', ''),
  2630. ('Country', 'ER', 69, '__Eritrea', ''),
  2631. ('Country', 'EE', 70, '__Estonia', ''),
  2632. ('Country', 'ET', 71, '__Ethiopia', ''),
  2633. ('Country', 'FK', 72, '__Falkland Islands (Islas Malvinas)', ''),
  2634. ('Country', 'FO', 73, '__Faroe Islands', ''),
  2635. ('Country', 'FJ', 74, '__Fiji', ''),
  2636. ('Country', 'FI', 75, '__Finland', ''),
  2637. ('Country', 'FR', 76, '__France', ''),
  2638. ('Country', 'GF', 77, '__French Guiana', ''),
  2639. ('Country', 'PF', 78, '__French Polynesia', ''),
  2640. ('Country', 'TF', 79, '__French Southern and Antarctic Lands', ''),
  2641. ('Country', 'GA', 80, '__Gabon', ''),
  2642. ('Country', 'GE', 81, '__Georgia', ''),
  2643. ('Country', 'DE', 82, '__Germany', ''),
  2644. ('Country', 'GH', 83, '__Ghana', ''),
  2645. ('Country', 'GI', 84, '__Gibraltar', ''),
  2646. ('Country', 'GR', 85, '__Greece', ''),
  2647. ('Country', 'GL', 86, '__Greenland', ''),
  2648. ('Country', 'GD', 87, '__Grenada', ''),
  2649. ('Country', 'GP', 88, '__Guadeloupe', ''),
  2650. ('Country', 'GU', 89, '__Guam', ''),
  2651. ('Country', 'GT', 90, '__Guatemala', ''),
  2652. ('Country', 'GG', 91, '__Guernsey', ''),
  2653. ('Country', 'GN', 92, '__Guinea', ''),
  2654. ('Country', 'GW', 93, '__Guinea-Bissau', ''),
  2655. ('Country', 'GY', 94, '__Guyana', ''),
  2656. ('Country', 'HT', 95, '__Haiti', ''),
  2657. ('Country', 'HM', 96, '__Heard Island and McDonald Islands', ''),
  2658. ('Country', 'VA', 97, '__Holy See (Vatican City)', ''),
  2659. ('Country', 'HN', 98, '__Honduras', ''),
  2660. ('Country', 'HK', 99, '__Hong Kong (SAR)', ''),
  2661. ('Country', 'HU', 100, '__Hungary', ''),
  2662. ('Country', 'IS', 101, '__Iceland', ''),
  2663. ('Country', 'IN', 102, '__India', ''),
  2664. ('Country', 'ID', 103, '__Indonesia', ''),
  2665. ('Country', 'IR', 104, '__Iran', ''),
  2666. ('Country', 'IQ', 105, '__Iraq', ''),
  2667. ('Country', 'IE', 106, '__Ireland', ''),
  2668. ('Country', 'IM', 107, '__Isle_of_Man', ''),
  2669. ('Country', 'IL', 108, '__Israel', ''),
  2670. ('Country', 'IT', 109, '__Italy', ''),
  2671. ('Country', 'JM', 110, '__Jamaica', ''),
  2672. ('Country', 'JP', 111, '__Japan', ''),
  2673. ('Country', 'JE', 112, '__Jersey', ''),
  2674. ('Country', 'JO', 113, '__Jordan', ''),
  2675. ('Country', 'KZ', 114, '__Kazakhstan', ''),
  2676. ('Country', 'KE', 115, '__Kenya', ''),
  2677. ('Country', 'KI', 116, '__Kiribati', ''),
  2678. ('Country', 'KP', 117, '__Korea, North', ''),
  2679. ('Country', 'KR', 118, '__Korea, South', ''),
  2680. ('Country', 'KW', 119, '__Kuwait', ''),
  2681. ('Country', 'KG', 120, '__Kyrgyzstan', ''),
  2682. ('Country', 'LA', 121, '__Laos', ''),
  2683. ('Country', 'LV', 122, '__Latvia', ''),
  2684. ('Country', 'LB', 123, '__Lebanon', ''),
  2685. ('Country', 'LS', 124, '__Lesotho', ''),
  2686. ('Country', 'LR', 125, '__Liberia', ''),
  2687. ('Country', 'LY', 126, '__Libya', ''),
  2688. ('Country', 'LI', 127, '__Liechtenstein', ''),
  2689. ('Country', 'LT', 128, '__Lithuania', ''),
  2690. ('Country', 'LU', 129, '__Luxembourg', ''),
  2691. ('Country', 'MO', 130, '__Macao', ''),
  2692. ('Country', 'MK', 131, '__Macedonia, The Former Yugoslav Republic of', ''),
  2693. ('Country', 'MG', 132, '__Madagascar', ''),
  2694. ('Country', 'MW', 133, '__Malawi', ''),
  2695. ('Country', 'MY', 134, '__Malaysia', ''),
  2696. ('Country', 'MV', 135, '__Maldives', ''),
  2697. ('Country', 'ML', 136, '__Mali', ''),
  2698. ('Country', 'MT', 137, '__Malta', ''),
  2699. ('Country', 'MH', 138, '__Marshall Islands', ''),
  2700. ('Country', 'MQ', 139, '__Martinique', ''),
  2701. ('Country', 'MR', 140, '__Mauritania', ''),
  2702. ('Country', 'MU', 141, '__Mauritius', ''),
  2703. ('Country', 'YT', 142, '__Mayotte', ''),
  2704. ('Country', 'MX', 143, '__Mexico', ''),
  2705. ('Country', 'FM', 144, '__Micronesia, Federated States of', ''),
  2706. ('Country', 'MD', 145, '__Moldova', ''),
  2707. ('Country', 'MC', 146, '__Monaco', ''),
  2708. ('Country', 'MN', 147, '__Mongolia', ''),
  2709. ('Country', 'ME', 148, '__Montenegro', ''),
  2710. ('Country', 'MS', 149, '__Montserrat', ''),
  2711. ('Country', 'MA', 150, '__Morocco', ''),
  2712. ('Country', 'MZ', 151, '__Mozambique', ''),
  2713. ('Country', 'NA', 152, '__Namibia', ''),
  2714. ('Country', 'NR', 153, '__Nauru', ''),
  2715. ('Country', 'NP', 154, '__Nepal', ''),
  2716. ('Country', 'NL', 155, '__Netherlands', ''),
  2717. ('Country', 'AN', 156, '__Netherlands Antilles', ''),
  2718. ('Country', 'NC', 157, '__New Caledonia', ''),
  2719. ('Country', 'NZ', 158, '__New Zealand', ''),
  2720. ('Country', 'NI', 159, '__Nicaragua', ''),
  2721. ('Country', 'NE', 160, '__Niger', ''),
  2722. ('Country', 'NG', 161, '__Nigeria', ''),
  2723. ('Country', 'NU', 162, '__Niue', ''),
  2724. ('Country', 'NF', 163, '__Norfolk Island', ''),
  2725. ('Country', 'MP', 164, '__Northern Mariana Islands', ''),
  2726. ('Country', 'NO', 165, '__Norway', ''),
  2727. ('Country', 'OM', 166, '__Oman', ''),
  2728. ('Country', 'PK', 167, '__Pakistan', ''),
  2729. ('Country', 'PW', 168, '__Palau', ''),
  2730. ('Country', 'PS', 169, '__Palestinian Territory, Occupied', ''),
  2731. ('Country', 'PA', 170, '__Panama', ''),
  2732. ('Country', 'PG', 171, '__Papua New Guinea', ''),
  2733. ('Country', 'PY', 172, '__Paraguay', ''),
  2734. ('Country', 'PE', 173, '__Peru', ''),
  2735. ('Country', 'PH', 174, '__Philippines', ''),
  2736. ('Country', 'PN', 175, '__Pitcairn Islands', ''),
  2737. ('Country', 'PL', 176, '__Poland', ''),
  2738. ('Country', 'PT', 177, '__Portugal', ''),
  2739. ('Country', 'PR', 178, '__Puerto Rico', ''),
  2740. ('Country', 'QA', 179, '__Qatar', ''),
  2741. ('Country', 'RE', 180, '__Reunion', ''),
  2742. ('Country', 'RO', 181, '__Romania', ''),
  2743. ('Country', 'RU', 182, '__Russia', ''),
  2744. ('Country', 'RW', 183, '__Rwanda', ''),
  2745. ('Country', 'SH', 184, '__Saint Helena', ''),
  2746. ('Country', 'KN', 185, '__Saint Kitts and Nevis', ''),
  2747. ('Country', 'LC', 186, '__Saint Lucia', ''),
  2748. ('Country', 'PM', 187, '__Saint Pierre and Miquelon', ''),
  2749. ('Country', 'VC', 188, '__Saint Vincent and the Grenadines', ''),
  2750. ('Country', 'BL', 189, '__Saint_Barthelemy', ''),
  2751. ('Country', 'MF', 190, '__Saint_Martin_French_part', ''),
  2752. ('Country', 'WS', 191, '__Samoa', ''),
  2753. ('Country', 'SM', 192, '__San Marino', ''),
  2754. ('Country', 'ST', 193, '__Sao Tome and Principe', ''),
  2755. ('Country', 'SA', 194, '__Saudi Arabia', ''),
  2756. ('Country', 'SN', 195, '__Senegal', ''),
  2757. ('Country', 'RS', 196, '__Serbia', ''),
  2758. ('Country', 'SC', 197, '__Seychelles', ''),
  2759. ('Country', 'SL', 198, '__Sierra Leone', ''),
  2760. ('Country', 'SG', 199, '__Singapore', ''),
  2761. ('Country', 'SK', 200, '__Slovakia', ''),
  2762. ('Country', 'SI', 201, '__Slovenia', ''),
  2763. ('Country', 'SB', 202, '__Solomon Islands', ''),
  2764. ('Country', 'SO', 203, '__Somalia', ''),
  2765. ('Country', 'ZA', 204, '__South Africa', ''),
  2766. ('Country', 'GS', 205, '__South Georgia and the South Sandwich Islands', ''),
  2767. ('Country', 'ES', 206, '__Spain', ''),
  2768. ('Country', 'LK', 207, '__Sri Lanka', ''),
  2769. ('Country', 'SD', 208, '__Sudan', ''),
  2770. ('Country', 'SR', 209, '__Suriname', ''),
  2771. ('Country', 'SJ', 210, '__Svalbard', ''),
  2772. ('Country', 'SZ', 211, '__Swaziland', ''),
  2773. ('Country', 'SE', 212, '__Sweden', ''),
  2774. ('Country', 'CH', 213, '__Switzerland', ''),
  2775. ('Country', 'SY', 214, '__Syria', ''),
  2776. ('Country', 'TW', 215, '__Taiwan', ''),
  2777. ('Country', 'TJ', 216, '__Tajikistan', ''),
  2778. ('Country', 'TZ', 217, '__Tanzania', ''),
  2779. ('Country', 'TH', 218, '__Thailand', ''),
  2780. ('Country', 'BS', 219, '__The Bahamas', ''),
  2781. ('Country', 'GM', 220, '__The Gambia', ''),
  2782. ('Country', 'TG', 221, '__Togo', ''),
  2783. ('Country', 'TK', 222, '__Tokelau', ''),
  2784. ('Country', 'TO', 223, '__Tonga', ''),
  2785. ('Country', 'TT', 224, '__Trinidad and Tobago', ''),
  2786. ('Country', 'TN', 225, '__Tunisia', ''),
  2787. ('Country', 'TR', 226, '__Turkey', ''),
  2788. ('Country', 'TM', 227, '__Turkmenistan', ''),
  2789. ('Country', 'TC', 228, '__Turks and Caicos Islands', ''),
  2790. ('Country', 'TV', 229, '__Tuvalu', ''),
  2791. ('Country', 'UG', 230, '__Uganda', ''),
  2792. ('Country', 'UA', 231, '__Ukraine', ''),
  2793. ('Country', 'AE', 232, '__United Arab Emirates', ''),
  2794. ('Country', 'GB', 233, '__United Kingdom', ''),
  2795. ('Country', 'US', 234, '__United States', ''),
  2796. ('Country', 'UM', 235, '__United States Minor Outlying Islands', ''),
  2797. ('Country', 'UY', 236, '__Uruguay', ''),
  2798. ('Country', 'UZ', 237, '__Uzbekistan', ''),
  2799. ('Country', 'VU', 238, '__Vanuatu', ''),
  2800. ('Country', 'VE', 239, '__Venezuela', ''),
  2801. ('Country', 'VN', 240, '__Vietnam', ''),
  2802. ('Country', 'VI', 241, '__Virgin Islands', ''),
  2803. ('Country', 'WF', 242, '__Wallis and Futuna', ''),
  2804. ('Country', 'EH', 243, '__Western Sahara', ''),
  2805. ('Country', 'YE', 244, '__Yemen', ''),
  2806. ('Country', 'ZM', 245, '__Zambia', ''),
  2807. ('Country', 'ZW', 246, '__Zimbabwe', '');
  2808. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2809. ('Sex', '', 1, '_sys_not_specified', ''),
  2810. ('Sex', '1', 2, '_Male', '_LookinMale'),
  2811. ('Sex', '2', 3, '_Female', '_LookinFemale');
  2812. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2813. ('Language', '1', 1, '__English', ''),
  2814. ('Language', '2', 2, '__Afrikaans', ''),
  2815. ('Language', '3', 3, '__Arabic', ''),
  2816. ('Language', '4', 4, '__Bulgarian', ''),
  2817. ('Language', '5', 5, '__Burmese', ''),
  2818. ('Language', '6', 6, '__Cantonese', ''),
  2819. ('Language', '7', 7, '__Croatian', ''),
  2820. ('Language', '8', 8, '__Danish', ''),
  2821. ('Language', '9', 9, '__Dutch', ''),
  2822. ('Language', '10', 10, '__Esperanto', ''),
  2823. ('Language', '11', 11, '__Estonian', ''),
  2824. ('Language', '12', 12, '__Finnish', ''),
  2825. ('Language', '13', 13, '__French', ''),
  2826. ('Language', '14', 14, '__German', ''),
  2827. ('Language', '15', 15, '__Greek', ''),
  2828. ('Language', '16', 16, '__Gujrati', ''),
  2829. ('Language', '17', 17, '__Hebrew', ''),
  2830. ('Language', '18', 18, '__Hindi', ''),
  2831. ('Language', '19', 19, '__Hungarian', ''),
  2832. ('Language', '20', 20, '__Icelandic', ''),
  2833. ('Language', '21', 21, '__Indian', ''),
  2834. ('Language', '22', 22, '__Indonesian', ''),
  2835. ('Language', '23', 23, '__Italian', ''),
  2836. ('Language', '24', 24, '__Japanese', ''),
  2837. ('Language', '25', 25, '__Korean', ''),
  2838. ('Language', '26', 26, '__Latvian', ''),
  2839. ('Language', '27', 27, '__Lithuanian', ''),
  2840. ('Language', '28', 28, '__Malay', ''),
  2841. ('Language', '29', 29, '__Mandarin', ''),
  2842. ('Language', '30', 30, '__Marathi', ''),
  2843. ('Language', '31', 31, '__Moldovian', ''),
  2844. ('Language', '32', 32, '__Nepalese', ''),
  2845. ('Language', '33', 33, '__Norwegian', ''),
  2846. ('Language', '34', 34, '__Persian', ''),
  2847. ('Language', '35', 35, '__Polish', ''),
  2848. ('Language', '36', 36, '__Portuguese', ''),
  2849. ('Language', '37', 37, '__Punjabi', ''),
  2850. ('Language', '38', 38, '__Romanian', ''),
  2851. ('Language', '39', 39, '__Russian', ''),
  2852. ('Language', '40', 40, '__Serbian', ''),
  2853. ('Language', '41', 41, '__Spanish', ''),
  2854. ('Language', '42', 42, '__Swedish', ''),
  2855. ('Language', '43', 43, '__Tagalog', ''),
  2856. ('Language', '44', 44, '__Taiwanese', ''),
  2857. ('Language', '45', 45, '__Tamil', ''),
  2858. ('Language', '46', 46, '__Telugu', ''),
  2859. ('Language', '47', 47, '__Thai', ''),
  2860. ('Language', '48', 48, '__Tongan', ''),
  2861. ('Language', '49', 49, '__Turkish', ''),
  2862. ('Language', '50', 50, '__Ukrainian', ''),
  2863. ('Language', '51', 51, '__Urdu', ''),
  2864. ('Language', '52', 52, '__Vietnamese', ''),
  2865. ('Language', '53', 53, '__Visayan', '');
  2866. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  2867. ('sys_report_types', 'spam', 1, '_sys_pre_lists_report_types_spam', ''),
  2868. ('sys_report_types', 'scam', 2, '_sys_pre_lists_report_types_scam', ''),
  2869. ('sys_report_types', 'fraud', 3, '_sys_pre_lists_report_types_fraud', ''),
  2870. ('sys_report_types', 'nude', 4, '_sys_pre_lists_report_types_nude', ''),
  2871. ('sys_report_types', 'other', 5, '_sys_pre_lists_report_types_other', '');
  2872. -- --------------------------------------------------------
  2873. CREATE TABLE IF NOT EXISTS `sys_menu_templates` (
  2874. `id` int(11) NOT NULL AUTO_INCREMENT,
  2875. `template` varchar(255) NOT NULL,
  2876. `title` varchar(255) NOT NULL,
  2877. `visible` tinyint(4) NOT NULL DEFAULT '1',
  2878. PRIMARY KEY (`id`)
  2879. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2880. INSERT INTO `sys_menu_templates` (`id`, `template`, `title`, `visible`) VALUES
  2881. (1, 'menu_empty.html', '_sys_menu_template_title_empty', 1),
  2882. (2, 'menu_footer.html', '_sys_menu_template_title_footer', 0),
  2883. (3, 'menu_horizontal.html', '_sys_menu_template_title_hor', 1),
  2884. (4, 'menu_vertical_lite.html', '_sys_menu_template_title_ver_lite', 1),
  2885. (5, 'menu_toolbar.html', '_sys_menu_template_title_toolbar', 0),
  2886. (6, 'menu_vertical.html', '_sys_menu_template_title_ver', 1),
  2887. (7, 'menu_floating_blocks.html', '_sys_menu_template_title_floating_blocks', 1),
  2888. (8, 'menu_main_submenu.html', '_sys_menu_template_title_main_submenu', 0),
  2889. (9, 'menu_buttons_hor.html', '_sys_menu_template_title_buttons_hor', 1),
  2890. (10, 'menu_inline.html', '_sys_menu_template_title_inline', 1),
  2891. (11, 'menu_interactive_vertical.html', '_sys_menu_template_title_interactive_vertical', 1),
  2892. (12, 'menu_account_popup.html', '_sys_menu_template_title_account_popup', 0),
  2893. (13, 'menu_account_notifications.html', '_sys_menu_template_title_account_notifications', 0),
  2894. (14, 'menu_floating_blocks_big.html', '_sys_menu_template_title_floating_blocks_big', 1),
  2895. (15, 'menu_custom.html', '_sys_menu_template_title_custom', 0),
  2896. (16, 'menu_buttons_ver.html', '_sys_menu_template_title_buttons_ver', 1),
  2897. (17, 'menu_inline_sbtn.html', '_sys_menu_template_title_inline_sbtn', 1),
  2898. (18, 'menu_icon_buttons_hor.html', '_sys_menu_template_title_icon_buttons_hor', 1),
  2899. (19, 'menu_floating_blocks_wide.html', '_sys_menu_template_title_floating_blocks_wide', 0);
  2900. CREATE TABLE IF NOT EXISTS `sys_objects_menu` (
  2901. `id` int(11) NOT NULL AUTO_INCREMENT,
  2902. `object` varchar(64) NOT NULL,
  2903. `title` varchar(255) NOT NULL,
  2904. `set_name` varchar(64) NOT NULL,
  2905. `module` varchar(32) NOT NULL,
  2906. `template_id` int(11) NOT NULL,
  2907. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2908. `active` tinyint(4) NOT NULL DEFAULT '0',
  2909. `override_class_name` varchar(255) NOT NULL,
  2910. `override_class_file` varchar(255) NOT NULL,
  2911. PRIMARY KEY (`id`),
  2912. UNIQUE KEY `object` (`object`)
  2913. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2914. INSERT INTO `sys_objects_menu` (`object`, `title`, `set_name`, `module`, `template_id`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  2915. ('sys_site', '_sys_menu_title_main', 'sys_site', 'system', 14, 0, 1, 'BxTemplMenuSite', ''),
  2916. ('sys_homepage', '_sys_menu_title_homepage', 'sys_homepage', 'system', 14, 0, 1, 'BxTemplMenuHomepage', ''),
  2917. ('sys_site_submenu', '_sys_menu_title_submenu', 'sys_site', 'system', 1, 0, 1, 'BxTemplMenuSubmenu', ''),
  2918. ('sys_footer', '_sys_menu_title_footer', 'sys_footer', 'system', 2, 0, 1, 'BxTemplMenuFooter', ''),
  2919. ('sys_toolbar_site', '_sys_menu_title_toolbar_site', 'sys_toolbar_site', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  2920. ('sys_toolbar_member', '_sys_menu_title_toolbar_member', 'sys_toolbar_member', 'system', 5, 0, 1, 'BxTemplMenuToolbar', ''),
  2921. ('sys_add_content', '_sys_menu_title_add_content', 'sys_add_content_links', 'system', 14, 0, 1, 'BxTemplMenuSite', ''),
  2922. ('sys_add_profile', '_sys_menu_title_add_profile', 'sys_add_profile_links', 'system', 14, 0, 1, 'BxTemplMenuProfileAdd', ''),
  2923. ('sys_add_profile_vertical', '_sys_menu_title_add_profile_vertical', 'sys_add_profile_links', 'system', 6, 0, 1, 'BxTemplMenuProfileAdd', ''),
  2924. ('sys_account_dashboard', '_sys_menu_title_account_dashboard', 'sys_account_dashboard', 'system', 8, 0, 1, 'BxTemplMenuAccountDashboard', ''),
  2925. ('sys_account_dashboard_manage_tools', '_sys_menu_title_account_dashboard_manage_tools', 'sys_account_dashboard_manage_tools', 'system', 4, 0, 1, '', ''),
  2926. ('sys_account_settings_submenu', '_sys_menu_title_account_settings', 'sys_account_settings', 'system', 8, 0, 1, '', ''),
  2927. ('sys_account_settings_more', '_sys_menu_title_account_settings_more', 'sys_account_settings_more', 'system', 4, 0, 1, '', ''),
  2928. ('sys_profiles_create', '_sys_menu_title_profiles_create', 'sys_profiles_create', 'system', 4, 0, 1, '', ''),
  2929. ('sys_cmts_item_manage', '_sys_menu_title_cmts_item_manage', 'sys_cmts_item_manage', 'system', 6, 0, 1, 'BxTemplCmtsMenuManage', ''),
  2930. ('sys_cmts_item_actions', '_sys_menu_title_cmts_item_actions', 'sys_cmts_item_actions', 'system', 15, 0, 1, 'BxTemplCmtsMenuActions', ''),
  2931. ('sys_account_popup', '_sys_menu_title_account_popup', '', 'system', 12, 0, 1, 'BxTemplMenuAccountPopup', ''),
  2932. ('sys_account_notifications', '_sys_menu_title_account_notifications', 'sys_account_notifications', 'system', 19, 0, 1, 'BxTemplMenuAccountNotifications', ''),
  2933. ('sys_profile_stats', '_sys_menu_title_profile_stats', 'sys_profile_stats', 'system', 6, 0, 1, 'BxTemplMenuProfileStats', ''),
  2934. ('sys_switch_language_popup', '_sys_menu_title_switch_language_popup', 'sys_switch_language', 'system', 6, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  2935. ('sys_switch_language_inline', '_sys_menu_title_switch_language_inline', 'sys_switch_language', 'system', 3, 0, 1, 'BxTemplMenuSwitchLanguage', ''),
  2936. ('sys_switch_template', '_sys_menu_title_switch_template', 'sys_switch_template', 'system', 6, 0, 1, 'BxTemplMenuSwitchTemplate', ''),
  2937. ('sys_set_acl_level', '_sys_menu_title_set_acl_level', '', 'system', 6, 0, 1, 'BxTemplMenuSetAclLevel', ''),
  2938. ('sys_social_sharing', '_sys_menu_title_social_sharing', 'sys_social_sharing', 'system', 18, 0, 1, 'BxTemplMenuSocialSharing', '');
  2939. CREATE TABLE IF NOT EXISTS `sys_menu_sets` (
  2940. `set_name` varchar(64) NOT NULL,
  2941. `module` varchar(32) NOT NULL,
  2942. `title` varchar(255) NOT NULL,
  2943. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  2944. PRIMARY KEY (`set_name`)
  2945. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2946. INSERT INTO `sys_menu_sets` (`set_name`, `module`, `title`, `deletable`) VALUES
  2947. ('sys_site', 'system', '_sys_menu_set_title_site', 0),
  2948. ('sys_homepage', 'system', '_sys_menu_set_title_homepage', 0),
  2949. ('sys_footer', 'system', '_sys_menu_set_title_footer', 0),
  2950. ('sys_toolbar_site', 'system', '_sys_menu_set_title_toolbar_site', 0),
  2951. ('sys_toolbar_member', 'system', '_sys_menu_set_title_toolbar_member', 0),
  2952. ('sys_account_notifications', 'system', '_sys_menu_set_title_account_notifications', 0),
  2953. ('sys_add_content_links', 'system', '_sys_menu_set_title_add_content', 0),
  2954. ('sys_add_profile_links', 'system', '_sys_menu_set_title_add_profile', 0),
  2955. ('sys_account_dashboard', 'system', '_sys_menu_set_title_account_dashboard', 0),
  2956. ('sys_account_dashboard_manage_tools', 'system', '_sys_menu_set_title_account_dashboard_manage_tools', 0),
  2957. ('sys_account_settings', 'system', '_sys_menu_set_title_account_settings', 0),
  2958. ('sys_account_settings_more', 'system', '_sys_menu_set_title_account_settings_more', 0),
  2959. ('sys_profiles_create', 'system', '_sys_menu_set_title_profile_create_links', 0),
  2960. ('sys_profile_stats', 'system', '_sys_menu_set_title_profile_stats', 0),
  2961. ('sys_cmts_item_manage', 'system', '_sys_menu_set_title_cmts_item_manage', 0),
  2962. ('sys_cmts_item_actions', 'system', '_sys_menu_set_title_cmts_item_actions', 0),
  2963. ('sys_switch_language', 'system', '_sys_menu_set_title_switch_language', 0),
  2964. ('sys_switch_template', 'system', '_sys_menu_set_title_switch_template', 0),
  2965. ('sys_social_sharing', 'system', '_sys_menu_set_title_sys_social_sharing', 0);
  2966. CREATE TABLE IF NOT EXISTS `sys_menu_items` (
  2967. `id` int(11) NOT NULL AUTO_INCREMENT,
  2968. `set_name` varchar(64) NOT NULL,
  2969. `module` varchar(32) NOT NULL,
  2970. `name` varchar(255) NOT NULL,
  2971. `title_system` varchar(255) NOT NULL,
  2972. `title` varchar(255) NOT NULL,
  2973. `link` varchar(255) NOT NULL,
  2974. `onclick` varchar(255) NOT NULL,
  2975. `target` varchar(255) NOT NULL,
  2976. `icon` varchar(255) NOT NULL,
  2977. `addon` text NOT NULL,
  2978. `submenu_object` varchar(64) NOT NULL,
  2979. `submenu_popup` tinyint(4) NOT NULL DEFAULT '0',
  2980. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  2981. `active` tinyint(4) NOT NULL DEFAULT '1',
  2982. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  2983. `editable` tinyint(4) NOT NULL DEFAULT '1',
  2984. `order` int(11) NOT NULL,
  2985. PRIMARY KEY (`id`)
  2986. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  2987. -- site menu
  2988. 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
  2989. ('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),
  2990. ('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),
  2991. ('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);
  2992. -- footer menu
  2993. 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
  2994. ('sys_footer', 'system', 'about', '_sys_menu_item_title_system_about', '_sys_menu_item_title_about', 'page.php?i=about', '', '', '', '', 2147483647, 1, 1, 1),
  2995. ('sys_footer', 'system', 'terms', '_sys_menu_item_title_system_terms', '_sys_menu_item_title_terms', 'page.php?i=terms', '', '', '', '', 2147483647, 1, 1, 2),
  2996. ('sys_footer', 'system', 'privacy', '_sys_menu_item_title_system_privacy', '_sys_menu_item_title_privacy', 'page.php?i=privacy', '', '', '', '', 2147483647, 1, 1, 3),
  2997. ('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_popup'', window);', '', '', '', 2147483647, 0, 1, 4),
  2998. ('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, 5),
  2999. ('sys_footer', 'system', 'powered_by', '_sys_menu_item_title_system_powered_by', '', 'https://una.io', '', '_blank', 'una.png', '', 2147483647, 1, 1, 9999);
  3000. -- site toolbar menu
  3001. 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
  3002. ('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),
  3003. ('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);
  3004. -- member toolbar menu
  3005. INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `submenu_popup`, `visible_for_levels`, `active`, `copyable`, `order`) VALUES
  3006. ('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', '', '', 0, 510, 1, 1, 0),
  3007. ('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', 'a:3:{s:6:"module";s:6:"system";s:6:"method";s:21:"profile_notifications";s:5:"class";s:20:"TemplServiceProfiles";}', 'sys_account_popup', 1, 510, 1, 0, 1),
  3008. ('sys_toolbar_member', 'system', 'login', '_sys_menu_item_title_system_login', '', 'page.php?i=login', '', '', 'user', '', '', 0, 1, 1, 0, 2);
  3009. -- notifications menu in account popup
  3010. 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
  3011. ('sys_account_notifications', 'system', 'dashboard', '_sys_menu_item_title_system_dashboard', '_sys_menu_item_title_dashboard', 'page.php?i=dashboard', '', '', 'dashboard', '', '', 2147483646, 1, 1, 1),
  3012. ('sys_account_notifications', 'system', 'profile', '_sys_menu_item_title_system_profile', '_sys_menu_item_title_profile', '{member_url}', '', '', 'user', '', '', 2147483644, 1, 1, 2),
  3013. ('sys_account_notifications', '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),
  3014. ('sys_account_notifications', '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),
  3015. ('sys_account_notifications', 'system', 'studio', '_sys_menu_item_title_system_studio', '_sys_menu_item_title_studio', '{studio_url}', '', '', 'wrench', '', '', 2147483646, 1, 0, 5),
  3016. ('sys_account_notifications', 'system', 'cart', '_sys_menu_item_title_system_cart', '_sys_menu_item_title_cart', 'cart.php', '', '', 'cart-plus col-red3', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"get_cart_items_count";s:6:"params";a:0:{}s:5:"class";s:21:"TemplPaymentsServices";}', '', 2147483646, 1, 1, 6),
  3017. ('sys_account_notifications', 'system', 'orders', '_sys_menu_item_title_system_orders', '_sys_menu_item_title_orders', 'orders.php', '', '', 'cart-arrow-down col-green3', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"get_orders_count";s:6:"params";a:1:{i:0;s:3:"new";}s:5:"class";s:21:"TemplPaymentsServices";}', '', 2147483646, 0, 1, 7),
  3018. ('sys_account_notifications', 'system', 'logout', '_sys_menu_item_title_system_logout', '_sys_menu_item_title_logout', 'logout.php', '', '', 'sign-out', '', '', 2147483646, 1, 1, 9999);
  3019. -- account settings menu
  3020. 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
  3021. ('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),
  3022. ('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),
  3023. ('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),
  3024. ('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),
  3025. ('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, 9999);
  3026. -- account settings menu more
  3027. 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
  3028. ('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);
  3029. -- account dashboard
  3030. 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
  3031. ('sys_account_dashboard', 'system', 'dashboard', '_sys_menu_item_title_system_account_dashboard', '_sys_menu_item_title_account_dashboard', 'page.php?i=dashboard', '', '', 'dashboard', '', '', 2147483646, 1, 1, 1),
  3032. ('sys_account_dashboard', 'system', 'dashboard-subscriptions', '_sys_menu_item_title_system_subscriptions', '_sys_menu_item_title_subscriptions', 'subscriptions.php', '', '', 'money col-blue3', '', '', 2147483646, 1, 1, 2),
  3033. ('sys_account_dashboard', 'system', 'dashboard-orders', '_sys_menu_item_title_system_orders', '_sys_menu_item_title_orders', 'orders.php', '', '', 'cart-arrow-down col-green3', '', '', 2147483646, 1, 1, 3);
  3034. -- comment manage menu
  3035. 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
  3036. ('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),
  3037. ('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);
  3038. -- comment actions menu
  3039. INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `visible_for_levels`, `active`, `copyable`, `editable`, `order`) VALUES
  3040. ('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)', '', '', '', '', '', 2147483647, 1, 0, 0, 1),
  3041. ('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, 1, 2);
  3042. -- social sharing menu
  3043. 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
  3044. ('sys_social_sharing', 'system', 'social-sharing-facebook', '_sys_menu_item_title_system_social_sharing_facebook', '_sys_menu_item_title_social_sharing_facebook', 'https://www.facebook.com/sharer/sharer.php?u={url_encoded}', '', '_blank', 'facebook', '', 2147483647, 1, 1, 1),
  3045. ('sys_social_sharing', 'system', 'social-sharing-googleplus', '_sys_menu_item_title_system_social_sharing_googleplus', '_sys_menu_item_title_social_sharing_googleplus', 'https://plus.google.com/share?url={url_encoded}', '', '_blank', 'google-plus', '', 2147483647, 1, 1, 2),
  3046. ('sys_social_sharing', 'system', 'social-sharing-twitter', '_sys_menu_item_title_system_social_sharing_twitter', '_sys_menu_item_title_social_sharing_twitter', 'https://twitter.com/share?url={url_encoded}', '', '_blank', 'twitter', '', 2147483647, 1, 1, 3),
  3047. ('sys_social_sharing', 'system', 'social-sharing-pinterest', '_sys_menu_item_title_system_social_sharing_pinterest', '_sys_menu_item_title_social_sharing_pinterest', 'http://pinterest.com/pin/create/button/?url={url_encoded}&media={img_url_encoded}&description={title_encoded}', '', '_blank', 'pinterest', '', 2147483647, 1, 1, 4);
  3048. -- --------------------------------------------------------
  3049. CREATE TABLE IF NOT EXISTS `sys_objects_grid` (
  3050. `id` int(11) NOT NULL AUTO_INCREMENT,
  3051. `object` varchar(64) NOT NULL,
  3052. `source_type` enum('Array','Sql') NOT NULL,
  3053. `source` text NOT NULL,
  3054. `table` varchar(255) NOT NULL,
  3055. `field_id` varchar(255) NOT NULL,
  3056. `field_order` varchar(255) NOT NULL,
  3057. `field_active` varchar(255) NOT NULL,
  3058. `paginate_url` varchar(255) NOT NULL,
  3059. `paginate_per_page` int(11) NOT NULL DEFAULT '10',
  3060. `paginate_simple` varchar(255) DEFAULT NULL,
  3061. `paginate_get_start` varchar(255) NOT NULL,
  3062. `paginate_get_per_page` varchar(255) NOT NULL,
  3063. `filter_fields` text NOT NULL,
  3064. `filter_fields_translatable` text NOT NULL,
  3065. `filter_mode` enum('like','fulltext','auto') NOT NULL DEFAULT 'auto',
  3066. `sorting_fields` text NOT NULL,
  3067. `sorting_fields_translatable` text NOT NULL,
  3068. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3069. `override_class_name` varchar(255) NOT NULL,
  3070. `override_class_file` varchar(255) NOT NULL,
  3071. PRIMARY KEY (`id`),
  3072. UNIQUE KEY `object` (`object`)
  3073. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3074. -- GRIDS: studio
  3075. 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
  3076. ('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', ''),
  3077. ('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', ''),
  3078. ('sys_studio_acl', 'Sql', 'SELECT * FROM `sys_acl_levels` WHERE 1 ', 'sys_acl_levels', 'ID', 'Order', 'Active', '', 100, NULL, 'start', '', 'Description', 'Name', 'auto', '', '', 'BxTemplStudioPermissionsLevels', ''),
  3079. ('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', ''),
  3080. ('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', ''),
  3081. ('sys_studio_nav_sets', 'Sql', 'SELECT * FROM `sys_menu_sets` WHERE 1 ', 'sys_menu_sets', 'set_name', '', '', '', 100, NULL, 'start', '', '', 'title', 'auto', '', '', 'BxTemplStudioNavigationSets', ''),
  3082. ('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', ''),
  3083. ('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', ''),
  3084. ('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', ''),
  3085. ('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', ''),
  3086. ('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', ''),
  3087. ('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', ''),
  3088. ('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', ''),
  3089. ('sys_studio_search_forms', 'Sql', 'SELECT * FROM `sys_objects_search_extended` WHERE 1 ', 'sys_objects_search_extended', 'id', 'module,title', 'active', '', 100, NULL, 'start', '', 'module', 'title', 'like', 'module', 'title', 'BxTemplStudioFormsSearchForms', ''),
  3090. ('sys_studio_search_forms_fields', 'Sql', 'SELECT * FROM `sys_search_extended_fields` WHERE 1 AND `object`=?', 'sys_search_extended_fields', 'id', 'order', 'active', '', 100, NULL, 'start', '', 'type', 'caption', 'like', '', '', 'BxTemplStudioFormsSearchFields', '');
  3091. CREATE TABLE IF NOT EXISTS `sys_grid_fields` (
  3092. `object` varchar(64) NOT NULL,
  3093. `name` varchar(255) NOT NULL,
  3094. `title` varchar(255) NOT NULL,
  3095. `width` varchar(16) NOT NULL,
  3096. `translatable` tinyint(4) NOT NULL DEFAULT '0',
  3097. `chars_limit` int(11) NOT NULL DEFAULT '0',
  3098. `params` text NOT NULL,
  3099. `order` int(11) NOT NULL,
  3100. UNIQUE KEY `object_name` (`object`,`name`)
  3101. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3102. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  3103. ('sys_studio_lang_keys', 'checkbox', 'Select', '1%', 0, '', '', 1),
  3104. ('sys_studio_lang_keys', 'key', '_adm_pgt_txt_key', '24%', 0, '20', '', 2),
  3105. ('sys_studio_lang_keys', 'module', '_adm_pgt_txt_module', '15%', 0, '12', '', 3),
  3106. ('sys_studio_lang_keys', 'string', '_adm_pgt_txt_text', '30%', 0, '30', '', 4),
  3107. ('sys_studio_lang_keys', 'languages', '_adm_pgt_txt_languages', '10%', 0, '', '', 5),
  3108. ('sys_studio_lang_keys', 'actions', '', '20%', 0, '', '', 6),
  3109. ('sys_studio_lang_etemplates', 'NameSystem', '_adm_pgt_txt_etemplates_gl_name_system', '60%', 1, '58', '', 1),
  3110. ('sys_studio_lang_etemplates', 'Module', '_adm_pgt_txt_etemplates_gl_module', '20%', 0, '18', '', 2),
  3111. ('sys_studio_lang_etemplates', 'actions', '', '20%', 0, '', '', 3),
  3112. ('sys_studio_acl', 'Order', '', '1%', 0, '', '', 1),
  3113. ('sys_studio_acl', 'switcher', '_adm_prm_txt_enable', '5%', 0, '', '', 2),
  3114. ('sys_studio_acl', 'Icon', '_adm_prm_txt_icon', '5%', 0, '', '', 3),
  3115. ('sys_studio_acl', 'Name', '_adm_prm_txt_title', '29%', 1, '15', '', 4),
  3116. ('sys_studio_acl', 'ActionsList', '_adm_prm_txt_actions', '10%', 0, '', '', 5),
  3117. ('sys_studio_acl', 'QuotaSize', '_adm_prm_txt_storage', '10%', 0, '', '', 6),
  3118. ('sys_studio_acl', 'QuotaMaxFileSize', '_adm_prm_txt_max_file_size', '10%', 0, '', '', 7),
  3119. ('sys_studio_acl', 'QuotaNumber', '_adm_prm_txt_max_files', '10%', 0, '', '', 8),
  3120. ('sys_studio_acl', 'actions', '', '20%', 0, '', '', 9),
  3121. ('sys_studio_acl_actions', 'switcher', '_adm_prm_txt_enable', '10%', 0, '', '', 1),
  3122. ('sys_studio_acl_actions', 'Title', '_adm_prm_txt_title', '25%', 1, '25', '', 2),
  3123. ('sys_studio_acl_actions', 'Module', '_adm_prm_txt_module', '20%', 0, '18', '', 3),
  3124. ('sys_studio_acl_actions', 'Desc', '_adm_prm_txt_description', '25%', 0, '25', '', 4),
  3125. ('sys_studio_acl_actions', 'actions', '', '20%', 0, '', '', 5),
  3126. ('sys_studio_nav_menus', 'switcher', '', '10%', 0, '', '', 1),
  3127. ('sys_studio_nav_menus', 'title', '_adm_nav_txt_menus_gl_title', '17%', 0, '15', '', 2),
  3128. ('sys_studio_nav_menus', 'set_title', '_adm_nav_txt_menus_gl_set_title', '17%', 1, '15', '', 3),
  3129. ('sys_studio_nav_menus', 'items', '_adm_nav_txt_menus_gl_items', '10%', 0, '8', '', 4),
  3130. ('sys_studio_nav_menus', 'template_title', '_adm_nav_txt_menus_gl_template_title', '17%', 1, '15', '', 5),
  3131. ('sys_studio_nav_menus', 'module', '_adm_nav_txt_menus_gl_module', '12%', 0, '10', '', 6),
  3132. ('sys_studio_nav_menus', 'actions', '', '17%', 0, '', '', 7),
  3133. ('sys_studio_nav_sets', 'title', '_adm_nav_txt_sets_gl_title', '50%', 1, '48', '', 1),
  3134. ('sys_studio_nav_sets', 'module', '_adm_nav_txt_sets_gl_module', '15%', 0, '13', '', 2),
  3135. ('sys_studio_nav_sets', 'items', '_adm_nav_txt_sets_gl_items', '15%', 0, '13', '', 3),
  3136. ('sys_studio_nav_sets', 'actions', '', '20%', 0, '', '', 4),
  3137. ('sys_studio_nav_items', 'order', '', '1%', 0, '', '', 1),
  3138. ('sys_studio_nav_items', 'switcher', '', '9%', 0, '', '', 2),
  3139. ('sys_studio_nav_items', 'icon', '_adm_nav_txt_items_gl_icon', '5%', 0, '', '', 3),
  3140. ('sys_studio_nav_items', 'title_system', '_adm_nav_txt_items_gl_title_system', '23%', 1, '23', '', 4),
  3141. ('sys_studio_nav_items', 'link', '_adm_nav_txt_items_gl_link', '23%', 0, '23', '', 5),
  3142. ('sys_studio_nav_items', 'module', '_adm_nav_txt_items_gl_module', '12%', 0, '12', '', 6),
  3143. ('sys_studio_nav_items', 'visible_for_levels', '_adm_nav_txt_items_gl_visible', '10%', 0, '10', '', 7),
  3144. ('sys_studio_nav_items', 'actions', '', '17%', 0, '', '', 8),
  3145. ('sys_studio_nav_import', 'icon', '_adm_nav_txt_items_gl_icon', '10%', 0, '', '', 1),
  3146. ('sys_studio_nav_import', 'title_system', '_adm_nav_txt_items_gl_title_system', '30%', 1, '28', '', 2),
  3147. ('sys_studio_nav_import', 'link', '_adm_nav_txt_items_gl_link', '25%', 0, '23', '', 3),
  3148. ('sys_studio_nav_import', 'module', '_adm_nav_txt_items_gl_module', '15%', 0, '13', '', 4),
  3149. ('sys_studio_nav_import', 'actions', '', '20%', 0, '', '', 5),
  3150. ('sys_studio_forms', 'switcher', '', '10%', 0, '', '', 1),
  3151. ('sys_studio_forms', 'title', '_adm_form_txt_forms_gl_title', '40%', 1, '38', '', 2),
  3152. ('sys_studio_forms', 'module', '_adm_form_txt_forms_gl_module', '15%', 0, '13', '', 3),
  3153. ('sys_studio_forms', 'displays', '_adm_form_txt_forms_gl_displays', '15%', 0, '13', '', 4),
  3154. ('sys_studio_forms', 'actions', '', '20%', 0, '', '', 5),
  3155. ('sys_studio_forms_displays', 'display_title', '_adm_form_txt_displays_gl_title', '30%', 1, '48', '', 1),
  3156. ('sys_studio_forms_displays', 'module', '_adm_form_txt_displays_gl_module', '13%', 0, '11', '', 2),
  3157. ('sys_studio_forms_displays', 'form_title', '_adm_form_txt_displays_gl_form', '24%', 1, '22', '', 3),
  3158. ('sys_studio_forms_displays', 'fields', '_adm_form_txt_displays_gl_fields', '13%', 0, '11', '', 4),
  3159. ('sys_studio_forms_displays', 'actions', '', '20%', 0, '', '', 5),
  3160. ('sys_studio_forms_fields', 'order', '', '1%', 0, '', '', 1),
  3161. ('sys_studio_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  3162. ('sys_studio_forms_fields', 'type', '_adm_form_txt_fields_type', '5%', 0, '', '', 3),
  3163. ('sys_studio_forms_fields', 'caption_system', '_adm_form_txt_fields_caption_system', '40%', 1, '38', '', 4),
  3164. ('sys_studio_forms_fields', 'module', '_adm_form_txt_fields_module', '15%', 0, '13', '', 5),
  3165. ('sys_studio_forms_fields', 'visible_for_levels', '_adm_form_txt_fields_visible', '10%', 0, '10', '', 6),
  3166. ('sys_studio_forms_fields', 'actions', '', '20%', 0, '', '', 7),
  3167. ('sys_studio_forms_pre_lists', 'title', '_adm_form_txt_pre_lists_gl_title', '45%', 1, '50', '', 1),
  3168. ('sys_studio_forms_pre_lists', 'values', '_adm_form_txt_pre_lists_gl_values', '12%', 0, '10', '', 2),
  3169. ('sys_studio_forms_pre_lists', 'module', '_adm_form_txt_pre_lists_gl_module', '13%', 0, '11', '', 3),
  3170. ('sys_studio_forms_pre_lists', 'use_for_sets', '_adm_form_txt_pre_lists_gl_use_for_sets', '10%', 0, '8', '', 4),
  3171. ('sys_studio_forms_pre_lists', 'actions', '', '20%', 0, '', '', 5),
  3172. ('sys_studio_forms_pre_values', 'checkbox', '', '1%', 0, '', '', 1),
  3173. ('sys_studio_forms_pre_values', 'order', '', '1%', 0, '', '', 2),
  3174. ('sys_studio_forms_pre_values', 'LKey', '_adm_form_txt_pre_values_gl_lkey', '78%', 1, '75', '', 3),
  3175. ('sys_studio_forms_pre_values', 'actions', '', '20%', 0, '', '', 4),
  3176. ('sys_studio_search_forms', 'switcher', '', '10%', 0, '', '', 1),
  3177. ('sys_studio_search_forms', 'title', '_adm_form_txt_search_forms_title', '40%', 1, '38', '', 2),
  3178. ('sys_studio_search_forms', 'module', '_adm_form_txt_search_forms_module', '15%', 0, '13', '', 3),
  3179. ('sys_studio_search_forms', 'fields', '_adm_form_txt_search_forms_fields', '15%', 0, '13', '', 4),
  3180. ('sys_studio_search_forms', 'actions', '', '20%', 0, '', '', 5),
  3181. ('sys_studio_search_forms_fields', 'order', '', '1%', 0, '', '', 1),
  3182. ('sys_studio_search_forms_fields', 'switcher', '', '9%', 0, '', '', 2),
  3183. ('sys_studio_search_forms_fields', 'type', '_adm_form_txt_search_forms_fields_type', '15%', 0, '', '', 3),
  3184. ('sys_studio_search_forms_fields', 'caption', '_adm_form_txt_search_forms_fields_caption', '40%', 1, '38', '', 4),
  3185. ('sys_studio_search_forms_fields', 'search_type', '_adm_form_txt_search_forms_fields_search_type', '15%', 0, '', '', 5),
  3186. ('sys_studio_search_forms_fields', 'actions', '', '20%', 0, '', '', 6);
  3187. CREATE TABLE IF NOT EXISTS `sys_grid_actions` (
  3188. `object` varchar(64) NOT NULL,
  3189. `type` enum('bulk','single','independent') NOT NULL,
  3190. `name` varchar(255) NOT NULL,
  3191. `title` varchar(255) NOT NULL,
  3192. `icon` varchar(255) NOT NULL,
  3193. `icon_only` tinyint(4) NOT NULL DEFAULT '0',
  3194. `confirm` tinyint(4) NOT NULL DEFAULT '1',
  3195. `order` int(11) NOT NULL,
  3196. UNIQUE KEY `object_name_type` (`object`,`type`,`name`)
  3197. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3198. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`) VALUES
  3199. ('sys_studio_lang_keys', 'bulk', 'delete', '_adm_pgt_btn_delete', '', 1, 1),
  3200. ('sys_studio_lang_keys', 'single', 'edit', '', 'pencil', 0, 1),
  3201. ('sys_studio_lang_keys', 'single', 'delete', '', 'remove', 1, 2),
  3202. ('sys_studio_lang_keys', 'independent', 'add', '_adm_pgt_btn_add_new_key', '', 0, 1),
  3203. ('sys_studio_lang_etemplates', 'single', 'edit', '', 'pencil', 0, 1),
  3204. ('sys_studio_acl', 'independent', 'add', '_adm_prm_btn_add_level', '', 0, 1),
  3205. ('sys_studio_acl', 'single', 'edit', '', 'pencil', 0, 1),
  3206. ('sys_studio_acl', 'single', 'delete', '', 'remove', 1, 2),
  3207. ('sys_studio_acl_actions', 'single', 'options', '', 'cog', 0, 1),
  3208. ('sys_studio_nav_menus', 'independent', 'add', '_adm_nav_btn_menus_create', '', 0, 1),
  3209. ('sys_studio_nav_menus', 'single', 'edit', '', 'pencil', 0, 1),
  3210. ('sys_studio_nav_menus', 'single', 'delete', '', 'remove', 1, 2),
  3211. ('sys_studio_nav_sets', 'independent', 'add', '_adm_nav_btn_sets_create', '', 0, 1),
  3212. ('sys_studio_nav_sets', 'single', 'edit', '', 'pencil', 0, 1),
  3213. ('sys_studio_nav_sets', 'single', 'delete', '', 'remove', 1, 2),
  3214. ('sys_studio_nav_items', 'independent', 'import', '_adm_nav_btn_items_gl_import', '', 0, 1),
  3215. ('sys_studio_nav_items', 'independent', 'add', '_adm_nav_btn_items_gl_create', '', 0, 2),
  3216. ('sys_studio_nav_items', 'single', 'edit', '', 'pencil', 0, 1),
  3217. ('sys_studio_nav_items', 'single', 'delete', '', 'remove', 1, 2),
  3218. ('sys_studio_nav_items', 'single', 'show_to', '_adm_nav_btn_items_gl_visible', '', 0, 3),
  3219. ('sys_studio_nav_import', 'single', 'import', '', 'plus', 0, 1),
  3220. ('sys_studio_nav_import', 'bulk', 'done', '_adm_nav_btn_items_done', '', 0, 1),
  3221. ('sys_studio_forms', 'single', 'edit', '', 'pencil', 0, 1),
  3222. ('sys_studio_forms_displays', 'single', 'edit', '', 'pencil', 0, 1),
  3223. ('sys_studio_forms_fields', 'single', 'edit', '', 'pencil', 0, 1),
  3224. ('sys_studio_forms_fields', 'single', 'delete', '', 'remove', 1, 2),
  3225. ('sys_studio_forms_fields', 'single', 'show_to', '_adm_form_btn_fields_visible', '', 0, 3),
  3226. ('sys_studio_forms_fields', 'independent', 'add', '_adm_form_btn_fields_create', '', 0, 1),
  3227. ('sys_studio_forms_pre_lists', 'independent', 'add', '_adm_form_btn_pre_lists_create', '', 0, 1),
  3228. ('sys_studio_forms_pre_lists', 'single', 'edit', '', 'pencil', 0, 1),
  3229. ('sys_studio_forms_pre_lists', 'single', 'delete', '', 'remove', 1, 2),
  3230. ('sys_studio_forms_pre_values', 'independent', 'add', '_adm_form_btn_pre_values_create', '', 0, 1),
  3231. ('sys_studio_forms_pre_values', 'single', 'edit', '', 'pencil', 0, 1),
  3232. ('sys_studio_forms_pre_values', 'single', 'delete', '', 'remove', 1, 2),
  3233. ('sys_studio_forms_pre_values', 'bulk', 'delete', '_adm_form_btn_pre_values_delete', '', 1, 1),
  3234. ('sys_studio_search_forms', 'single', 'edit', '', 'pencil', 0, 1),
  3235. ('sys_studio_search_forms_fields', 'single', 'edit', '', 'pencil', 0, 1),
  3236. ('sys_studio_search_forms_fields', 'independent', 'reset', '_adm_form_btn_search_forms_fields_reset', '', 0, 1);
  3237. -- GRID: Storage managers
  3238. 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
  3239. ('sys_studio_strg_files', 'Sql', 'SELECT * FROM `sys_files` WHERE 1 ', 'sys_files', 'id', '', '', '', 20, NULL, 'start', '', 'file_name,mime_type', '', 'auto', 'file_name,added', '', 'BxTemplStudioStoragesFiles', ''),
  3240. ('sys_studio_strg_images', 'Sql', 'SELECT * FROM `sys_images` WHERE 1 ', 'sys_images', 'id', '', '', '', 20, NULL, 'start', '', 'file_name', '', 'auto', 'file_name,added', '', 'BxTemplStudioStoragesImages', '');
  3241. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable`, `chars_limit`, `params`, `order`) VALUES
  3242. -- Storages: Files
  3243. ('sys_studio_strg_files', 'checkbox', '', '1%', 0, '', '', 1),
  3244. ('sys_studio_strg_files', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  3245. ('sys_studio_strg_files', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  3246. ('sys_studio_strg_files', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  3247. ('sys_studio_strg_files', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  3248. ('sys_studio_strg_files', 'actions', '', '25%', 0, '', '', 6),
  3249. -- Storages: Images
  3250. ('sys_studio_strg_images', 'checkbox', '', '1%', 0, '', '', 1),
  3251. ('sys_studio_strg_images', 'file_name', '_adm_strg_txt_file_name', '24%', 0, '25', '', 2),
  3252. ('sys_studio_strg_images', 'path', '_adm_strg_txt_path', '25%', 0, '', '', 3),
  3253. ('sys_studio_strg_images', 'mime_type', '_adm_strg_txt_mime_type', '15%', 0, '15', '', 4),
  3254. ('sys_studio_strg_images', 'added', '_adm_strg_txt_added', '10%', 0, '10', '', 5),
  3255. ('sys_studio_strg_images', 'actions', '', '25%', 0, '', '', 6);
  3256. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `order`) VALUES
  3257. -- Storages: Files
  3258. ('sys_studio_strg_files', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  3259. ('sys_studio_strg_files', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  3260. ('sys_studio_strg_files', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 2),
  3261. ('sys_studio_strg_files', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1),
  3262. -- Storages: Images
  3263. ('sys_studio_strg_images', 'bulk', 'delete', '_adm_strg_btn_delete', '', 0, 1, 1),
  3264. ('sys_studio_strg_images', 'single', 'download', '_adm_strg_btn_download', 'download', 1, 0, 1),
  3265. ('sys_studio_strg_images', 'single', 'resize', '_adm_strg_btn_resize', 'compress', 1, 0, 2),
  3266. ('sys_studio_strg_images', 'single', 'delete', '_adm_strg_btn_delete', 'remove', 1, 1, 3),
  3267. ('sys_studio_strg_images', 'independent', 'add', '_adm_strg_btn_add', '', 0, 0, 1);
  3268. -- GRID: connections
  3269. 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
  3270. ('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', ''),
  3271. ('sys_grid_connections_requests', '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, 'BxDolGridConnectionsRequests', ''),
  3272. ('sys_grid_subscriptions', 'Sql', 'SELECT `p`.`id`, `c`.`added` 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, 'BxDolGridSubscriptions', ''),
  3273. ('sys_grid_subscribed_me', 'Sql', 'SELECT `p`.`id`, `c`.`added` 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, 'BxDolGridSubscribedMe', '');
  3274. INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `params`, `order`) VALUES
  3275. ('sys_grid_connections', 'name', '_sys_name', '40%', '', 1),
  3276. ('sys_grid_connections', 'info', '', '30%', '', 2),
  3277. ('sys_grid_connections', 'actions', '', '30%', '', 3),
  3278. ('sys_grid_connections_requests', 'name', '_sys_name', '40%', '', 1),
  3279. ('sys_grid_connections_requests', 'info', '', '30%', '', 2),
  3280. ('sys_grid_connections_requests', 'actions', '', '30%', '', 3),
  3281. ('sys_grid_subscriptions', 'name', '_sys_name', '70%', '', 1),
  3282. ('sys_grid_subscriptions', 'actions', '', '30%', '', 2),
  3283. ('sys_grid_subscribed_me', 'name', '_sys_name', '70%', '', 1),
  3284. ('sys_grid_subscribed_me', 'actions', '', '30%', '', 2);
  3285. INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `confirm`, `order`) VALUES
  3286. ('sys_grid_connections', 'single', 'accept', '_sys_accept', '', 0, 1),
  3287. ('sys_grid_connections', 'single', 'delete', '', 'remove', 1, 2),
  3288. ('sys_grid_connections', 'single', 'add_friend', '_sys_add_friend', 'plus', 0, 3),
  3289. ('sys_grid_connections_requests', 'single', 'accept', '_sys_accept', '', 0, 1),
  3290. ('sys_grid_connections_requests', 'single', 'delete', '', 'remove', 1, 2),
  3291. ('sys_grid_subscriptions', 'single', 'subscribe', '_sys_subscribe', 'check', 0, 1),
  3292. ('sys_grid_subscriptions', 'single', 'delete', '', 'remove', 1, 2),
  3293. ('sys_grid_subscribed_me', 'single', 'subscribe', '_sys_subscribe', 'check', 0, 1);
  3294. -- --------------------------------------------------------
  3295. CREATE TABLE IF NOT EXISTS `sys_objects_connection` (
  3296. `id` int(11) NOT NULL AUTO_INCREMENT,
  3297. `object` varchar(64) NOT NULL,
  3298. `table` varchar(255) NOT NULL,
  3299. `type` enum('one-way','mutual') NOT NULL,
  3300. `override_class_name` varchar(255) NOT NULL,
  3301. `override_class_file` varchar(255) NOT NULL,
  3302. PRIMARY KEY (`id`),
  3303. UNIQUE KEY `object` (`object`)
  3304. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3305. INSERT INTO `sys_objects_connection` (`object`, `table`, `type`, `override_class_name`, `override_class_file`) VALUES
  3306. ('sys_profiles_friends', 'sys_profiles_conn_friends', 'mutual', '', ''),
  3307. ('sys_profiles_subscriptions', 'sys_profiles_conn_subscriptions', 'one-way', '', '');
  3308. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_subscriptions` (
  3309. `id` int(11) NOT NULL AUTO_INCREMENT,
  3310. `initiator` int(11) NOT NULL,
  3311. `content` int(11) NOT NULL,
  3312. `added` int(10) unsigned NOT NULL,
  3313. PRIMARY KEY (`id`),
  3314. UNIQUE KEY `initiator` (`initiator`,`content`),
  3315. KEY `content` (`content`)
  3316. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3317. CREATE TABLE IF NOT EXISTS `sys_profiles_conn_friends` (
  3318. `id` int(11) NOT NULL AUTO_INCREMENT,
  3319. `initiator` int(11) NOT NULL,
  3320. `content` int(11) NOT NULL,
  3321. `mutual` tinyint(4) NOT NULL,
  3322. `added` int(10) unsigned NOT NULL,
  3323. PRIMARY KEY (`id`),
  3324. UNIQUE KEY `initiator` (`initiator`,`content`),
  3325. KEY `content` (`content`)
  3326. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3327. -- --------------------------------------------------------
  3328. CREATE TABLE IF NOT EXISTS `sys_objects_transcoder` (
  3329. `id` int(11) NOT NULL AUTO_INCREMENT,
  3330. `object` varchar(64) NOT NULL,
  3331. `storage_object` varchar(64) NOT NULL,
  3332. `source_type` enum('Folder','Storage','Proxy') NOT NULL,
  3333. `source_params` text NOT NULL,
  3334. `private` enum('auto','yes','no') NOT NULL,
  3335. `atime_tracking` int(11) NOT NULL,
  3336. `atime_pruning` int(11) NOT NULL,
  3337. `ts` int(11) NOT NULL DEFAULT '0',
  3338. `override_class_name` varchar(255) NOT NULL,
  3339. `override_class_file` varchar(255) NOT NULL,
  3340. PRIMARY KEY (`id`),
  3341. UNIQUE KEY `object` (`object`)
  3342. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3343. 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
  3344. ('sys_image_resize', 'sys_images_resized', 'Storage', 'a:2:{s:6:"object";s:10:"sys_images";s:14:"disable_retina";b:1;}', 'no', '0', '0', '0', '', ''),
  3345. ('sys_icon_apple', 'sys_images_resized', 'Storage', 'a:2:{s:6:"object";s:10:"sys_images";s:14:"disable_retina";b:1;}', 'no', '0', '0', '0', '', ''),
  3346. ('sys_icon_facebook', 'sys_images_resized', 'Storage', 'a:2:{s:6:"object";s:10:"sys_images";s:14:"disable_retina";b:1;}', 'no', '0', '0', '0', '', ''),
  3347. ('sys_icon_favicon', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  3348. ('sys_cover', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  3349. ('sys_cover_unit_profile', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '0', '0', '0', '', ''),
  3350. ('sys_cover_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  3351. ('sys_builder_page_preview', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  3352. ('sys_builder_page_embed', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:10:"sys_images";}', 'no', '1', '2592000', '0', '', ''),
  3353. ('sys_cmts_images_preview', 'sys_cmts_images_preview', 'Storage', 'a:1:{s:6:"object";s:15:"sys_cmts_images";}', 'no', '1', '2592000', '0', '', ''),
  3354. ('sys_custom_images', 'sys_images_resized', 'Storage', 'a:1:{s:6:"object";s:17:"sys_images_custom";}', 'no', '1', '2592000', '0', '', '');
  3355. CREATE TABLE IF NOT EXISTS `sys_transcoder_images_files` (
  3356. `transcoder_object` varchar(64) NOT NULL,
  3357. `file_id` int(11) NOT NULL,
  3358. `handler` varchar(255) NOT NULL,
  3359. `atime` int(11) NOT NULL,
  3360. `data` text NOT NULL,
  3361. UNIQUE KEY `transcoder_object` (`transcoder_object`,`handler`),
  3362. KEY `atime` (`atime`),
  3363. KEY `file_id` (`file_id`)
  3364. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3365. CREATE TABLE IF NOT EXISTS `sys_transcoder_videos_files` (
  3366. `transcoder_object` varchar(64) NOT NULL,
  3367. `file_id` int(11) NOT NULL,
  3368. `handler` varchar(255) NOT NULL,
  3369. `atime` int(11) NOT NULL,
  3370. UNIQUE KEY `transcoder_object` (`transcoder_object`,`handler`),
  3371. KEY `atime` (`atime`),
  3372. KEY `file_id` (`file_id`)
  3373. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3374. CREATE TABLE IF NOT EXISTS `sys_transcoder_filters` (
  3375. `transcoder_object` varchar(64) NOT NULL,
  3376. `filter` varchar(32) NOT NULL,
  3377. `filter_params` text NOT NULL,
  3378. `order` int(11) NOT NULL DEFAULT '0',
  3379. KEY `transcoder_object` (`transcoder_object`)
  3380. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3381. INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
  3382. ('sys_image_resize', 'ResizeVar', '', '0'),
  3383. ('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'),
  3384. ('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'),
  3385. ('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'),
  3386. ('sys_cover', 'Resize', 'a:3:{s:1:"w";s:4:"1920";s:1:"h";s:3:"720";s:10:"force_type";s:3:"png";}', '0'),
  3387. ('sys_cover_unit_profile', 'Resize', 'a:3:{s:1:"w";s:3:"640";s:1:"h";s:3:"240";s:10:"force_type";s:3:"png";}', '0'),
  3388. ('sys_cover_preview', 'Resize', 'a:3:{s:1:"w";s:3:"120";s:1:"h";s:2:"45";s:10:"force_type";s:3:"jpg";}', '0'),
  3389. ('sys_builder_page_preview', 'Resize', 'a:4:{s:1:"w";s:3:"128";s:1:"h";s:3:"128";s:13:"square_resize";s:1:"1";s:10:"force_type";s:3:"jpg";}', '0'),
  3390. ('sys_builder_page_embed', 'ResizeVar', '', '0'),
  3391. ('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'),
  3392. ('sys_custom_images', 'ResizeVar', '', '0');
  3393. CREATE TABLE IF NOT EXISTS `sys_transcoder_queue` (
  3394. `id` int(11) NOT NULL AUTO_INCREMENT,
  3395. `transcoder_object` varchar(64) NOT NULL,
  3396. `profile_id` int(10) unsigned NOT NULL,
  3397. `file_url_source` varchar(255) NOT NULL,
  3398. `file_id_source` varchar(255) NOT NULL,
  3399. `file_url_result` varchar(255) NOT NULL,
  3400. `file_ext_result` varchar(255) NOT NULL,
  3401. `file_id_result` int(11) NOT NULL,
  3402. `server` varchar(255) NOT NULL,
  3403. `status` enum('pending','processing','complete','failed','delete') NOT NULL,
  3404. `added` int(11) NOT NULL,
  3405. `changed` int(11) NOT NULL,
  3406. `log` text NOT NULL,
  3407. PRIMARY KEY (`id`),
  3408. UNIQUE KEY `transcoder_object` (`transcoder_object`,`file_id_source`)
  3409. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3410. CREATE TABLE `sys_transcoder_queue_files` (
  3411. `id` int(11) NOT NULL AUTO_INCREMENT,
  3412. `profile_id` int(10) unsigned NOT NULL,
  3413. `remote_id` varchar(128) NOT NULL,
  3414. `path` varchar(255) NOT NULL,
  3415. `file_name` varchar(255) NOT NULL,
  3416. `mime_type` varchar(128) NOT NULL,
  3417. `ext` varchar(32) NOT NULL,
  3418. `size` int(11) NOT NULL,
  3419. `added` int(11) NOT NULL,
  3420. `modified` int(11) NOT NULL,
  3421. `private` int(11) NOT NULL,
  3422. PRIMARY KEY (`id`),
  3423. UNIQUE KEY `remote_id` (`remote_id`)
  3424. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3425. -- --------------------------------------------------------
  3426. CREATE TABLE IF NOT EXISTS `sys_objects_page` (
  3427. `id` int(11) NOT NULL AUTO_INCREMENT,
  3428. `object` varchar(64) NOT NULL,
  3429. `uri` varchar(255) NOT NULL,
  3430. `title_system` varchar(255) NOT NULL,
  3431. `title` varchar(255) NOT NULL,
  3432. `module` varchar(32) NOT NULL,
  3433. `cover` tinyint(4) NOT NULL DEFAULT '1',
  3434. `cover_image` int(11) NOT NULL DEFAULT '0',
  3435. `layout_id` int(11) NOT NULL,
  3436. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3437. `visible_for_levels_editable` tinyint(4) NOT NULL DEFAULT '1',
  3438. `url` varchar(255) NOT NULL,
  3439. `meta_description` text NOT NULL,
  3440. `meta_keywords` text NOT NULL,
  3441. `meta_robots` varchar(255) NOT NULL,
  3442. `cache_lifetime` int(11) NOT NULL DEFAULT '0',
  3443. `cache_editable` tinyint(4) NOT NULL DEFAULT '1',
  3444. `deletable` tinyint(1) NOT NULL,
  3445. `override_class_name` varchar(255) NOT NULL,
  3446. `override_class_file` varchar(255) NOT NULL,
  3447. PRIMARY KEY (`id`),
  3448. UNIQUE KEY `object` (`object`),
  3449. UNIQUE KEY `uri` (`uri`)
  3450. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3451. 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
  3452. ('sys_home', 'home', '_sys_page_title_system_home', '_sys_page_title_home', 'system', 5, 2147483647, 1, '', '', '', '', 0, 1, 0, 'BxTemplPageHome', ''),
  3453. ('sys_about', 'about', '_sys_page_title_system_about', '_sys_page_title_about', 'system', 5, 2147483647, 1, 'page.php?i=about', '', '', '', 0, 1, 0, '', ''),
  3454. ('sys_terms', 'terms', '_sys_page_title_system_terms', '_sys_page_title_terms', 'system', 5, 2147483647, 1, 'page.php?i=terms', '', '', '', 0, 1, 0, '', ''),
  3455. ('sys_privacy', 'privacy', '_sys_page_title_system_privacy', '_sys_page_title_privacy', 'system', 5, 2147483647, 1, 'page.php?i=privacy', '', '', '', 0, 1, 0, '', ''),
  3456. ('sys_dashboard', 'dashboard', '_sys_page_title_system_dashboard', '_sys_page_title_dashboard', 'system', 12, 2147483646, 1, 'page.php?i=dashboard', '', '', '', 0, 1, 0, 'BxTemplPageDashboard', ''),
  3457. ('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, '', ''),
  3458. ('sys_login', 'login', '_sys_page_title_system_login', '_sys_page_title_login', 'system', 5, 2147483647, 1, 'page.php?i=login', '', '', '', 0, 1, 0, '', ''),
  3459. ('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, '', ''),
  3460. ('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, '', ''),
  3461. ('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', ''),
  3462. ('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', ''),
  3463. ('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', ''),
  3464. ('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', ''),
  3465. ('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', ''),
  3466. ('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, '', ''),
  3467. ('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, '', ''),
  3468. ('sys_std_dashboard', '', '_sys_page_title_system_studio_dashboard', '_sys_page_title_studio_dashboard', 'system', 4, 2147483647, 1, '', '', '', '', 0, 1, 0, '', '');
  3469. CREATE TABLE IF NOT EXISTS `sys_pages_layouts` (
  3470. `id` int(11) NOT NULL AUTO_INCREMENT,
  3471. `name` varchar(64) NOT NULL,
  3472. `icon` varchar(255) NOT NULL,
  3473. `title` varchar(255) NOT NULL,
  3474. `template` varchar(255) NOT NULL,
  3475. `cells_number` int(11) NOT NULL,
  3476. PRIMARY KEY (`id`),
  3477. UNIQUE KEY `name` (`name`)
  3478. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3479. INSERT INTO `sys_pages_layouts` (`id`, `name`, `icon`, `title`, `template`, `cells_number`) VALUES
  3480. (1, 'bar_left', 'layout_bar_left.png', '_sys_layout_bar_left', 'layout_bar_left.html', 2),
  3481. (2, 'bar_right', 'layout_bar_right.png', '_sys_layout_bar_right', 'layout_bar_right.html', 2),
  3482. (3, '3_columns', 'layout_3_columns.png', '_sys_layout_3_columns', 'layout_3_columns.html', 3),
  3483. (4, '2_columns', 'layout_2_columns.png', '_sys_layout_2_columns', 'layout_2_columns.html', 2),
  3484. (5, '1_column', 'layout_1_column.png', '_sys_layout_1_column', 'layout_1_column.html', 1),
  3485. (6, 'top_area_bar_left', 'layout_top_area_bar_left.png', '_sys_layout_top_area_bar_left', 'layout_top_area_bar_left.html', 3),
  3486. (7, 'top_area_bar_right', 'layout_top_area_bar_right.png', '_sys_layout_top_area_bar_right', 'layout_top_area_bar_right.html', 3),
  3487. (8, 'top_area_3_columns', 'layout_top_area_3_columns.png', '_sys_layout_top_area_3_columns', 'layout_top_area_3_columns.html', 4),
  3488. (9, 'top_area_2_columns', 'layout_top_area_2_columns.png', '_sys_layout_top_area_2_columns', 'layout_top_area_2_columns.html', 3),
  3489. (10, 'topbottom_area_2_columns', 'layout_topbottom_area_2_columns.png', '_sys_layout_topbottom_area_2_columns', 'layout_topbottom_area_2_columns.html', 4),
  3490. (11, 'bottom_area_2_columns', 'layout_bottom_area_2_columns.png', '_sys_layout_bottom_area_2_columns', 'layout_bottom_area_2_columns.html', 3),
  3491. (12, 'topbottom_area_bar_right', 'layout_topbottom_area_bar_right.png', '_sys_layout_topbottom_area_bar_right', 'layout_topbottom_area_bar_right.html', 4),
  3492. (13, 'topbottom_area_bar_left', 'layout_topbottom_area_bar_left.png', '_sys_layout_topbottom_area_bar_left', 'layout_topbottom_area_bar_left.html', 4);
  3493. CREATE TABLE IF NOT EXISTS `sys_pages_design_boxes` (
  3494. `id` int(11) NOT NULL,
  3495. `title` varchar(255) NOT NULL,
  3496. `template` varchar(255) NOT NULL,
  3497. `order` int(11) NOT NULL,
  3498. PRIMARY KEY (`id`)
  3499. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3500. INSERT INTO `sys_pages_design_boxes` (`id`, `title`, `template`, `order`) VALUES
  3501. (0, '_sys_designbox_0', 'designbox_0.html', '2'),
  3502. (1, '_sys_designbox_1', 'designbox_1.html', '8'),
  3503. (2, '_sys_designbox_2', 'designbox_2.html', '1'),
  3504. (3, '_sys_designbox_3', 'designbox_3.html', '4'),
  3505. (4, '_sys_designbox_4', 'designbox_4.html', '6'),
  3506. (10, '_sys_designbox_10', 'designbox_10.html', '3'),
  3507. (11, '_sys_designbox_11', 'designbox_11.html', '9'),
  3508. (13, '_sys_designbox_13', 'designbox_13.html', '5'),
  3509. (14, '_sys_designbox_14', 'designbox_14.html', '7');
  3510. CREATE TABLE IF NOT EXISTS `sys_pages_blocks` (
  3511. `id` int(11) NOT NULL AUTO_INCREMENT,
  3512. `object` varchar(64) NOT NULL,
  3513. `cell_id` int(11) NOT NULL DEFAULT '1',
  3514. `module` varchar(32) NOT NULL,
  3515. `title_system` varchar(255) NOT NULL,
  3516. `title` varchar(255) NOT NULL,
  3517. `designbox_id` int(11) NOT NULL DEFAULT '11',
  3518. `visible_for_levels` int(11) NOT NULL DEFAULT '2147483647',
  3519. `hidden_on` varchar(255) NOT NULL DEFAULT '',
  3520. `type` enum('raw','html','lang','image','rss','menu','service') NOT NULL DEFAULT 'raw',
  3521. `content` text NOT NULL,
  3522. `deletable` tinyint(4) NOT NULL DEFAULT '1',
  3523. `copyable` tinyint(4) NOT NULL DEFAULT '1',
  3524. `active` tinyint(4) NOT NULL DEFAULT '1',
  3525. `order` int(11) NOT NULL,
  3526. PRIMARY KEY (`id`)
  3527. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3528. -- skeleton blocks
  3529. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  3530. ('', 0, 'skeletons', '_sys_block_type_raw', 11, 2147483647, 'raw', '', 0, 1, 1, 0),
  3531. ('', 0, 'skeletons', '_sys_block_type_html', 11, 2147483647, 'html', '', 0, 1, 1, 0),
  3532. ('', 0, 'skeletons', '_sys_block_type_rss', 11, 2147483647, 'rss', '', 0, 1, 1, 0),
  3533. ('', 0, 'skeletons', '_sys_block_type_image', 11, 2147483647, 'image', '', 0, 1, 1, 0),
  3534. ('', 0, 'skeletons', '_sys_block_type_lang', 11, 2147483647, 'lang', '', 0, 1, 1, 0),
  3535. ('', 0, 'skeletons', '_sys_block_type_menu', 11, 2147483647, 'menu', '', 0, 1, 1, 0),
  3536. ('', 0, 'skeletons', '_sys_block_type_service', 11, 2147483647, 'service', '', 0, 0, 1, 0);
  3537. -- content blocks
  3538. INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
  3539. ('sys_home', 1, 'system', '', '_sys_page_block_title_homepage_menu', 3, 2147483647, 'menu', 'sys_homepage', 0, 1, 1, 0),
  3540. ('sys_about', 1, 'system', '', '_sys_page_block_title_about', 11, 2147483647, 'lang', '_sys_page_lang_block_about', 0, 1, 1, 1),
  3541. ('sys_terms', 1, 'system', '', '_sys_page_block_title_terms', 11, 2147483647, 'lang', '_sys_page_lang_block_terms', 0, 1, 1, 1),
  3542. ('sys_privacy', 1, 'system', '', '_sys_page_block_title_privacy', 11, 2147483647, 'lang', '_sys_page_lang_block_privacy', 0, 1, 1, 1),
  3543. ('sys_dashboard', 3, 'system', '', '_sys_page_block_title_profile_stats', 13, 2147483644, '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, 1, 1),
  3544. ('sys_dashboard', 3, 'system', '', '_sys_page_block_title_profile_membership', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:18:"profile_membership";s:6:"params";a:0:{}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 0, 0),
  3545. ('sys_dashboard', 3, 'system', '', '_sys_page_block_title_manage_tools', 11, 192, 'menu', 'sys_account_dashboard_manage_tools', 0, 1, 1, 3),
  3546. ('sys_dashboard', 2, 'system', '', '_sys_page_block_title_chart_growth', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:16:"get_chart_growth";s:6:"params";a:0:{}s:5:"class";s:18:"TemplChartServices";}', 0, 1, 1, 4),
  3547. ('sys_dashboard', 2, 'system', '', '_sys_page_block_title_chart_stats', 11, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:15:"get_chart_stats";s:6:"params";a:0:{}s:5:"class";s:18:"TemplChartServices";}', 0, 1, 1, 3),
  3548. ('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, 1),
  3549. ('sys_login', 1, 'system', '_sys_page_block_system_title_login', '_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, 1),
  3550. ('sys_login', 0, 'system', '_sys_page_block_system_title_login_only', '_sys_page_block_title_login', 11, 2147483647, 'service', 'a:3:{s:6:\"module\";s:6:\"system\";s:6:\"method\";s:15:\"login_form_only\";s:5:\"class\";s:17:\"TemplServiceLogin\";}', 0, 1, 1, 0),
  3551. ('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, 1),
  3552. ('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, 1),
  3553. ('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, 1),
  3554. ('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, 1),
  3555. ('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, 1),
  3556. ('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, 1),
  3557. ('sys_account_profile_switcher', 1, 'system', '', '_sys_page_block_title_account_profile_create', 11, 2147483647, 'menu', 'sys_add_profile', 0, 1, 1, 1),
  3558. ('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, 2),
  3559. ('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, 1),
  3560. ('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, 1),
  3561. -- studio dashboard blocks
  3562. ('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, 1),
  3563. ('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, 1, 2),
  3564. ('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, 1),
  3565. ('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, 1, 2);
  3566. -- --------------------------------------------------------
  3567. CREATE TABLE `sys_objects_metatags` (
  3568. `id` int(11) NOT NULL AUTO_INCREMENT,
  3569. `object` varchar(64) NOT NULL,
  3570. `table_keywords` varchar(255) NOT NULL,
  3571. `table_locations` varchar(255) NOT NULL,
  3572. `table_mentions` varchar(255) NOT NULL,
  3573. `override_class_name` varchar(255) NOT NULL,
  3574. `override_class_file` varchar(255) NOT NULL,
  3575. PRIMARY KEY (`id`),
  3576. UNIQUE KEY `object` (`object`)
  3577. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3578. INSERT INTO `sys_objects_metatags` (`object`, `table_keywords`, `table_locations`, `table_mentions`, `override_class_name`, `override_class_file`) VALUES
  3579. ('sys_cmts', 'sys_cmts_meta_keywords', '', '', '', '');
  3580. -- --------------------------------------------------------
  3581. CREATE TABLE `sys_objects_category` (
  3582. `id` int(11) NOT NULL AUTO_INCREMENT,
  3583. `object` varchar(64) NOT NULL,
  3584. `search_object` varchar(64) NOT NULL,
  3585. `form_object` varchar(64) NOT NULL,
  3586. `list_name` varchar(255) NOT NULL,
  3587. `table` varchar(255) NOT NULL,
  3588. `field` varchar(255) NOT NULL,
  3589. `join` varchar(255) NOT NULL,
  3590. `where` varchar(255) NOT NULL,
  3591. `override_class_name` varchar(255) NOT NULL,
  3592. `override_class_file` varchar(255) NOT NULL,
  3593. PRIMARY KEY (`id`),
  3594. UNIQUE KEY `object` (`object`),
  3595. UNIQUE KEY `form_object` (`form_object`,`list_name`)
  3596. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3597. -- --------------------------------------------------------
  3598. --
  3599. -- Table structure for table `sys_objects_live_updates`
  3600. --
  3601. CREATE TABLE `sys_objects_live_updates` (
  3602. `id` int(11) unsigned NOT NULL auto_increment,
  3603. `name` varchar(50) NOT NULL default '',
  3604. `frequency` tinyint(4) NOT NULL DEFAULT '1',
  3605. `service_call` text NOT NULL default '',
  3606. `active` tinyint(4) NOT NULL DEFAULT '1',
  3607. PRIMARY KEY (`id`),
  3608. UNIQUE KEY `name` (`name`)
  3609. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3610. INSERT INTO `sys_objects_live_updates`(`name`, `frequency`, `service_call`, `active`) VALUES
  3611. ('sys_payments_cart', 1, 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:21:"get_live_updates_cart";s:6:"params";a:3:{i:0;a:2:{s:11:"menu_object";s:18:"sys_toolbar_member";s:9:"menu_item";s:7:"account";}i:1;a:2:{s:11:"menu_object";s:25:"sys_account_notifications";s:9:"menu_item";s:4:"cart";}i:2;s:7:"{count}";}s:5:"class";s:21:"TemplPaymentsServices";}', 1),
  3612. ('sys_payments_orders', 1, 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:23:"get_live_updates_orders";s:6:"params";a:3:{i:0;a:2:{s:11:"menu_object";s:18:"sys_toolbar_member";s:9:"menu_item";s:7:"account";}i:1;a:2:{s:11:"menu_object";s:25:"sys_account_notifications";s:9:"menu_item";s:6:"orders";}i:2;s:7:"{count}";}s:5:"class";s:21:"TemplPaymentsServices";}', 1);
  3613. -- --------------------------------------------------------
  3614. --
  3615. -- Table structure for table `sys_objects_payments`
  3616. --
  3617. CREATE TABLE IF NOT EXISTS `sys_objects_payments` (
  3618. `id` int(11) NOT NULL AUTO_INCREMENT,
  3619. `object` varchar(32) NOT NULL,
  3620. `title` varchar(255) NOT NULL,
  3621. `uri` varchar(32) NOT NULL default '',
  3622. PRIMARY KEY (`id`),
  3623. UNIQUE KEY `object` (`object`),
  3624. UNIQUE KEY `uri` (`uri`)
  3625. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3626. -- --------------------------------------------------------
  3627. --
  3628. -- Table structure for table `sys_std_pages`
  3629. --
  3630. CREATE TABLE `sys_std_pages` (
  3631. `id` int(11) unsigned NOT NULL auto_increment,
  3632. `index` int(11) unsigned NOT NULL default '0',
  3633. `name` varchar(64) NOT NULL default '',
  3634. `header` varchar(255) NOT NULL default '',
  3635. `caption` varchar(255) NOT NULL default '',
  3636. `icon` varchar(255) NOT NULL default '',
  3637. PRIMARY KEY (`id`),
  3638. UNIQUE KEY `name` (`name`)
  3639. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3640. -- --------------------------------------------------------
  3641. --
  3642. -- Table structure for table `sys_std_widgets`
  3643. --
  3644. CREATE TABLE `sys_std_widgets` (
  3645. `id` int(11) unsigned NOT NULL auto_increment,
  3646. `page_id` varchar(255) NOT NULL default '',
  3647. `module` varchar(32) NOT NULL default '',
  3648. `url` varchar(255) NOT NULL default '',
  3649. `click` text NOT NULL default '',
  3650. `icon` varchar(255) NOT NULL default '',
  3651. `caption` varchar(255) NOT NULL default '',
  3652. `cnt_notices` text NOT NULL default '',
  3653. `cnt_actions` text NOT NULL default '',
  3654. `bookmark` tinyint(4) unsigned NOT NULL default '0',
  3655. PRIMARY KEY (`ID`),
  3656. UNIQUE KEY `widget-page` (`id`, `page_id`)
  3657. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3658. -- --------------------------------------------------------
  3659. --
  3660. -- Table structure for table `sys_std_pages_widgets`
  3661. --
  3662. CREATE TABLE `sys_std_pages_widgets` (
  3663. `id` int(11) unsigned NOT NULL auto_increment,
  3664. `page_id` int(11) unsigned NOT NULL default '0',
  3665. `widget_id` int(11) unsigned NOT NULL default '0',
  3666. `order` int(11) unsigned NOT NULL default '0',
  3667. PRIMARY KEY (`id`),
  3668. UNIQUE KEY `wid_pag` (`widget_id`, `page_id`)
  3669. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  3670. --
  3671. -- Dumping data for table `sys_std_pages`
  3672. --
  3673. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3674. (0, 'home', '_adm_page_cpt_home', '_adm_page_cpt_home', '');
  3675. SET @iIdHome = LAST_INSERT_ID();
  3676. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3677. (4, 'dashboard', '_adm_page_cpt_dashboard', '_adm_page_cpt_dashboard', 'wi-dashboard.svg');
  3678. SET @iIdDashboard = LAST_INSERT_ID();
  3679. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3680. (3, 'settings', '_adm_page_cpt_settings', '_adm_page_cpt_settings', 'wi-settings.svg');
  3681. SET @iIdSettings = LAST_INSERT_ID();
  3682. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3683. (3, 'store', '_adm_page_cpt_store', '_adm_page_cpt_store', 'wi-store.svg');
  3684. SET @iIdStore = LAST_INSERT_ID();
  3685. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3686. (3, 'designer', '_adm_page_cpt_designer', '_adm_page_cpt_designer', 'wi-designer.svg');
  3687. SET @iIdDesigner = LAST_INSERT_ID();
  3688. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3689. (3, 'polyglot', '_adm_page_cpt_polyglot', '_adm_page_cpt_polyglot', 'wi-polyglot.svg');
  3690. SET @iIdPolyglot = LAST_INSERT_ID();
  3691. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3692. (3, 'builder_pages', '_adm_page_cpt_builder_pages', '_adm_page_cpt_builder_pages', 'wi-bld-pages.svg');
  3693. SET @iIdBuilderPages = LAST_INSERT_ID();
  3694. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3695. (3, 'builder_menus', '_adm_page_cpt_builder_menus', '_adm_page_cpt_builder_menus', 'wi-bld-navigation.svg');
  3696. SET @iIdBuilderMenus = LAST_INSERT_ID();
  3697. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3698. (3, 'builder_forms', '_adm_page_cpt_builder_forms', '_adm_page_cpt_builder_forms', 'wi-bld-forms.svg');
  3699. SET @iIdBuilderForms = LAST_INSERT_ID();
  3700. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3701. (3, 'builder_permissions', '_adm_page_cpt_builder_permissions', '_adm_page_cpt_builder_permissions', 'wi-bld-permissions.svg');
  3702. SET @iIdBuilderPermissions = LAST_INSERT_ID();
  3703. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  3704. (3, 'storages', '_adm_page_cpt_storages', '_adm_page_cpt_storages', 'wi-storages.svg');
  3705. SET @iIdManagerStorages = LAST_INSERT_ID();
  3706. --
  3707. -- Dumping data for table `sys_std_widgets` and `sys_std_pages_widgets`
  3708. -- Home Page
  3709. --
  3710. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3711. (@iIdSettings, 'system', '{url_studio}settings.php', '', 'wi-settings.svg', '_adm_wgt_cpt_settings', '', '');
  3712. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  3713. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3714. (@iIdStore, 'system', '{url_studio}store.php', '', 'wi-store.svg', '_adm_wgt_cpt_store', '', '');
  3715. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 2);
  3716. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3717. (@iIdDashboard, 'system', '{url_studio}dashboard.php', '', 'wi-dashboard.svg', '_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";}', '');
  3718. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 3);
  3719. --
  3720. -- Templates Page
  3721. --
  3722. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3723. (@iIdDesigner, 'system', '{url_studio}designer.php', '', 'wi-designer.svg', '_adm_wgt_cpt_designer', '', '');
  3724. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  3725. --
  3726. -- Languages Page
  3727. --
  3728. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3729. (@iIdPolyglot, 'system', '{url_studio}polyglot.php', '', 'wi-polyglot.svg', '_adm_wgt_cpt_polyglot', '', '');
  3730. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  3731. --
  3732. -- Builders Page
  3733. --
  3734. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3735. (@iIdBuilderPages, 'system', '{url_studio}builder_page.php', '', 'wi-bld-pages.svg', '_adm_wgt_cpt_builder_pages', '', '');
  3736. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);
  3737. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3738. (@iIdBuilderMenus, 'system', '{url_studio}builder_menu.php', '', 'wi-bld-navigation.svg', '_adm_wgt_cpt_builder_menus', '', '');
  3739. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 2);
  3740. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3741. (@iIdBuilderForms, 'system', '{url_studio}builder_forms.php', '', 'wi-bld-forms.svg', '_adm_wgt_cpt_builder_forms', '', '');
  3742. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 3);
  3743. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3744. (@iIdBuilderPermissions, 'system', '{url_studio}builder_permissions.php', '', 'wi-bld-permissions.svg', '_adm_wgt_cpt_builder_permissions', '', '');
  3745. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 4);
  3746. --
  3747. -- Storages Page
  3748. --
  3749. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  3750. (@iIdManagerStorages, 'system', '{url_studio}storages.php', '', 'wi-storages.svg', '_adm_wgt_cpt_storages', '', '');
  3751. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdHome, LAST_INSERT_ID(), 1);