system.sql 270 KB

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