4 Star 9 Fork 5

Gitee 极速下载/mantisbt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/mantisbt/mantisbt
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config_defaults_inc.php 147.54 KB
一键复制 编辑 原始数据 按行查看 历史
Damien Regad 提交于 2024-03-02 16:03 . Replace dirname( FILE ) by DIR (1)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793
<?php
# MantisBT - A PHP based bugtracking system
# MantisBT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
/**
* Default Configuration Variables.
*
* This file should not be changed. If you want to override any of the values
* defined here, define them in a file called config/config_inc.php, which will
* be loaded after this file.
*
* In general a value of OFF means the feature is disabled and ON means the
* feature is enabled. Any other cases will have an explanation.
*
* For more details see https://www.mantisbt.org/docs/master/
*
* @package MantisBT
* @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
* @copyright Copyright 2002 MantisBT Team - mantisbt-dev@lists.sourceforge.net
* @link http://www.mantisbt.org
*/
##############################
# MantisBT Database Settings #
##############################
/**
* Database Server host name.
*
* Hostname should be either a hostname or connection string to supply to adodb.
*
* For example, if you would like to connect to a database server on the local
* machine, set this to 'localhost'.
*
* If you need to supply a port to connect to, set hostname as 'localhost:3306'.
*
* @global string $g_hostname
*/
$g_hostname = 'localhost';
/**
* User name to use for connecting to the database.
*
* The user needs to have read/write access to the MantisBT database.
* The default user name is "root".
*
* @global string $g_db_username
*/
$g_db_username = 'root';
/**
* Password for the specified user name.
*
* The default password is empty.
*
* @global string $g_db_password
*/
$g_db_password = '';
/**
* Name of database that contains MantisBT tables.
*
* The default database name is "bugtracker".
*
* @global string $g_database_name
*/
$g_database_name = 'bugtracker';
/**
* Defines the database type.
*
* Supported types are listed below; the corresponding PHP extension must be enabled.
*
* RDBMS db_type PHP ext Comments
* ----- ------- ------- --------
* MySQL mysqli mysqli default
* PostgreSQL pgsql pgsql
* MS SQL Server mssqlnative sqlsrv experimental
* Oracle oci8 oci8 experimental
*
* @global string $g_db_type
*/
$g_db_type = 'mysqli';
/**
* Adodb Data Source Name.
*
* This is an EXPERIMENTAL field.
*
* If the above database settings, do not provide enough flexibility, it is
* possible to specify a dsn for the database connection. For further details,
* currently, you need to see the adodb manual at
* http://phplens.com/adodb/code.initialization.html#dsnsupport. For example,
* if db_type is odbc_mssql. The following is an example dsn:
* "Driver={SQL Server Native Client 10.0};SERVER=.\sqlexpress;DATABASE=bugtracker;UID=mantis;PWD=password;"
*
* NOTE: the installer does not yet fully support the use of dsn's
*
* @global string $g_dsn
*/
$g_dsn = '';
/**
* Database Table prefix.
*
* The given string is added with an underscore before the base table name,
* e.g. 'bug' => 'mantis_bug'.
* To avoid the 30-char limit on identifiers in Oracle (< 12cR2), the prefix
* should be set to blank or kept as short as possible (e.g. 'm')
*
* @global string $g_db_table_prefix
*/
$g_db_table_prefix = 'mantis';
/**
* Database Table suffix.
*
* The given string is added with an underscore after the base table name,
* e.g. 'bug' => 'bug_table'.
* To avoid the 30-char limit on identifiers in Oracle (< 12cR2), the prefix
* should be set to blank or kept as short as possible.
* @see $g_db_table_prefix for size limitation recommendation
*
* @global string $g_db_table_suffix
*/
$g_db_table_suffix = '_table';
/**
* Plugin Table prefix.
*
* The given string is added with an underscore between the table prefix and
* the base table name, and the plugin basename is added after that
* e.g. 'Example' plugin's table 'foo' => 'mantis_plugin_Example_foo_table'.
* To avoid the 30-char limit on identifiers in Oracle (< 12cR2), the prefix
* should be kept as short as possible (e.g. 'plg').
* It is strongly recommended not to use an empty string here.
*
* @see $g_db_table_prefix
* @global string $g_db_table_plugin_prefix
*/
$g_db_table_plugin_prefix = 'plugin';
####################
# Folder Locations #
####################
/**
* Path to root MantisBT folder.
*
* Requires trailing / or \.
*
* @global string $g_absolute_path
*/
$g_absolute_path = __DIR__ . DIRECTORY_SEPARATOR;
/**
* Path to core folder.
*
* The default is usually OK, unless you moved the 'core' directory out of your
* webroot (recommended).
*
* @global string $g_core_path
*/
$g_core_path = $g_absolute_path . 'core' . DIRECTORY_SEPARATOR;
/**
* Path to classes folder.
*
* Requires trailing / or \.
*
* @global string $g_class_path
*/
$g_class_path = $g_core_path . 'classes' . DIRECTORY_SEPARATOR;
/**
* Path to library folder for 3rd party libraries.
*
* Requires trailing / or \.
*
* @global string $g_library_path
*/
$g_library_path = $g_absolute_path . 'library' . DIRECTORY_SEPARATOR;
/**
* Path to vendor folder for 3rd party libraries.
*
* Requires trailing / or \.
*
* @global string $g_library_path
*/
$g_vendor_path = $g_absolute_path . 'vendor' . DIRECTORY_SEPARATOR;
/**
* Path to lang folder for language files.
*
* Requires trailing / or \.
*
* @global string $g_language_path
*/
$g_language_path = $g_absolute_path . 'lang' . DIRECTORY_SEPARATOR;
/**
* Path to custom configuration folder.
*
* Requires trailing / or \.
*
* If MANTIS_CONFIG_FOLDER environment variable is set, it will be used.
* This allows Apache vhost to be used to setup multiple instances serviced by
* same code by multiple configs.
*
* @global string $g_config_path
*/
$t_local_config = getenv( 'MANTIS_CONFIG_FOLDER' );
if( $t_local_config && is_dir( $t_local_config ) ) {
$g_config_path = $t_local_config;
} else {
$g_config_path = $g_absolute_path . 'config' . DIRECTORY_SEPARATOR;
}
unset( $t_local_config );
##########################
# MantisBT Path Settings #
##########################
/**
* Full URL to your installation as seen from the web browser.
*
* Requires trailing `/`.
*
* If not set, MantisBT will default this to a working URL valid for most
* installations.
*
* WARNING: The default is built based on headers from the HTTP request
* ({@see set_default_path()} in core.php). This is a potential security risk,
* as the system will be exposed to Host Header injection attacks, so it is
* strongly recommended to initialize this in config_inc.php.
*
* @global string $g_path
*/
$g_path = '';
/**
* Short web path without the domain name.
*
* requires trailing `/`.
*
* This is defined by MantisBT core based on the script being executed, and
* should not be set in config_inc.php.
*
* @global string $g_short_path
*/
$g_short_path = '';
/**
* Used to link to manual for User Documentation.
*
* This can be either a full URL or a relative path to the MantisBT root.
* If a relative path does not exist, the link will fall back to the online
* documentation at http://www.mantisbt.org. No check is performed on URLs.
*
* @global string $g_manual_url
*/
$g_manual_url = 'doc/en-US/Admin_Guide/html-desktop/';
##############
# Web Server #
##############
/**
* Session save path.
*
* If false, uses default value as set by session handler.
*
* @global bool $g_session_save_path
*/
$g_session_save_path = false;
/**
* Session validation.
*
* WARNING: Disabling this could be a potential security risk!!
*
* @global int $g_session_validation
*/
$g_session_validation = ON;
/**
* Form security validation.
*
* This protects against Cross-Site Request Forgery, but some proxy servers may
* not correctly work with this option enabled because they cache pages
* incorrectly.
*
* WARNING: Disabling this is a security risk!!
*
* @global int $g_form_security_validation
*/
$g_form_security_validation = ON;
#############################
# Security and Cryptography #
#############################
/**
* Master salt value used for cryptographic hashing throughout MantisBT.
*
* This value must be kept secret at all costs. You must generate a unique and
* random salt value for each installation of MantisBT you control. The
* minimum length of this string must be at least 16 characters.
*
* The value you select for this salt should be a long string generated using
* a secure random number generator. An example for Linux systems is:
*
* cat /dev/urandom | head -c 64 | base64
*
* Note that the number of bits of entropy per byte of output from /dev/urandom
* is not 8. If you're particularly paranoid and don't mind waiting a long
* time, you could use /dev/random to get much closer to 8 bits of entropy per
* byte. Moving the mouse (if possible) while generating entropy via
* /dev/random will greatly improve the speed at which /dev/random produces
* entropy.
*
* WARNING: This configuration option has a profound impact on the security of
* your MantisBT installation. Failure to set this configuration option
* correctly could lead to your MantisBT installation being compromised. Ensure
* that this value remains secret. Treat it with the same security that you'd
* treat the password to your MantisDB database.
*
* This setting is blank by default. MantisBT will not operate in this state.
* Hence, you are forced to change the value of this configuration option.
*
* @global string $g_crypto_master_salt
*/
$g_crypto_master_salt = '';
############################
# Signup and Lost Password #
############################
/**
* Allow users to signup for their own accounts.
*
* If ON, then $g_send_reset_password must be ON as well, and mail settings
* must be correctly configured.
*
* @see $g_send_reset_password
* @global int $g_allow_signup
*/
$g_allow_signup = ON;
/**
* Maximum number of failed login attempts before the user's account is locked.
*
* Once locked, it is required to reset the password (lost password).
* The counter is reset to zero after each successful login.
*
* Set to OFF to disable this feature and allow unlimited failed login attempts.
*
* @global int $g_max_failed_login_count
*/
$g_max_failed_login_count = 5;
/**
* Access level required to be notified when a new user has been created using
* the "signup form".
*
* @global int $g_notify_new_user_created_threshold_min
*/
$g_notify_new_user_created_threshold_min = ADMINISTRATOR;
/**
* Send Password reset emails.
*
* If ON, users will be sent their password when their account is created
* or password reset (this requires mail settings to be correctly configured).
*
* If OFF, then the Administrator will have to provide a password when
* creating new accounts, and the password will be set to blank when reset.
*
* @global int $g_send_reset_password
*/
$g_send_reset_password = ON;
/**
* Use captcha image to validate subscription it requires GD library installed.
*
* @global int $g_signup_use_captcha
*/
$g_signup_use_captcha = ON;
/**
* Path to TrueType font files.
*
* Absolute path (with trailing slash!) to the folder containing the TrueType
* Font files used for the Relationship and Workflow Graphs.
*
* @global string $g_system_font_folder
*/
$g_system_font_folder = '';
/**
* Setting to disable the 'lost your password' feature.
*
* @global int $g_lost_password_feature
*/
$g_lost_password_feature = ON;
/**
* Max. simultaneous requests of 'lost password'.
*
* When this value is reached, it's no longer possible to request new password
* reset. Value resets to zero at each successfully login.
*
* @global int $g_max_lost_password_in_progress_count
*/
$g_max_lost_password_in_progress_count = 3;
#############
# Anti-Spam #
#############
/**
* Max number of events to allow for users with default access level.
*
* Use 0 for no limit. Default is 10.
*
* @global int $g_antispam_max_event_count
* @see $g_default_new_account_access_level
*/
$g_antispam_max_event_count = 10;
/**
* Time window to enforce max events within.
*
* Default is 3600 seconds (1 hour).
*
* @global int $g_antispam_time_window_in_seconds
*/
$g_antispam_time_window_in_seconds = 3600;
###########################
# MantisBT Email Settings #
###########################
/**
* Webmaster's email address.
*
* This is shown publicly at the bottom of each page and thus may be susceptible
* to being detected by spam email harvesters.
*
* @global string $g_webmaster_email
*/
$g_webmaster_email = 'webmaster@example.com';
/**
* The sender's address for email notifications.
*
* Part of 'From: ' header in emails.
*
* @global string $g_from_email
*/
$g_from_email = 'noreply@example.com';
/**
* The sender name's for email notifications.
*
* Part of 'From: ' header in emails.
*
* @global string $g_from_name
*/
$g_from_name = 'Mantis Bug Tracker';
/**
* The return address for bounced mail.
*
* @global string $g_return_path_email
*/
$g_return_path_email = 'admin@example.com';
/**
* Allow email notifications.
*
* Set to ON to enable email notifications, OFF to disable them. Note that
* disabling email notifications has no effect on emails generated as part
* of the user signup process. When set to OFF, the password reset feature
* is disabled. Additionally, notifications of administrators updating
* accounts are not sent to users.
*
* @global int $g_enable_email_notification
*/
$g_enable_email_notification = ON;
/**
* Send verbose email notifications.
*
* When enabled, the email notifications will send the full issue with
* a hint about the change type at the top, rather than using dedicated
* notifications that are focused on what changed. This change can be
* overridden in the database per user.
*
* @global int $g_email_notifications_verbose
*/
$g_email_notifications_verbose = OFF;
/**
* Sets the default email notifications values for different user categories.
*
* In combination with *notify_flags* (see below), this config option controls
* who should get email notifications on different actions/statuses.
*
* The user categories are:
*
* 'reporter': the reporter of the bug
* 'handler': the handler of the bug
* 'monitor': users who are monitoring a bug
* 'bugnotes': users who have added a bugnote to the bug
* 'category': category owners
* 'explicit': users who are explicitly specified by the code based on the
* action (e.g. user added to monitor list).
* 'threshold_max': all users with access <= max
* 'threshold_min': ..and with access >= min
*
* The second config option (notify_flags) sets overrides for specific
* actions/statuses. If a user category is not listed for an action, the
* default from the config option above is used. The possible actions are:
*
* 'new': a new bug has been added
* 'owner': a bug has been assigned to a new owner
* 'reopened': a bug has been reopened
* 'deleted': a bug has been deleted
* 'updated': a bug has been updated
* 'bugnote': a bugnote has been added to a bug
* 'sponsor': sponsorship has changed on this bug
* 'relation': a relationship has changed on this bug
* 'monitor': an issue is monitored.
* '<status>': eg: 'resolved', 'closed', 'feedback', 'acknowledged', etc.
* this list corresponds to $g_status_enum_string
*
* Examples:
* - If you wanted to have all developers get notified of new bugs you might
* add the following lines to your config file:
*
* $g_notify_flags['new']['threshold_min'] = DEVELOPER;
* $g_notify_flags['new']['threshold_max'] = DEVELOPER;
*
* - You might want to do something similar so all managers are notified when a
* bug is closed.
* - If you did not want reporters to be notified when a bug is closed
* (only when it is resolved) you would use:
*
* $g_notify_flags['closed']['reporter'] = OFF;
*
* @see $g_notify_flags
* @global array $g_default_notify_flags
*/
$g_default_notify_flags = array(
'reporter' => ON,
'handler' => ON,
'monitor' => ON,
'bugnotes' => ON,
'category' => ON,
'explicit' => ON,
'threshold_min' => NOBODY,
'threshold_max' => NOBODY
);
/**
* Sets notifications overrides for specific actions/statuses.
*
* See above for detailed information. As an example of how to use this config
* option, the default setting
* - disables bugnotes notifications on new bugs (not needed in this case)
* - disables all notifications for monitoring event, except explicit
* example of how to use this config option.
* @see $g_default_notify_flags
* @global array $g_notify_flags
*/
$g_notify_flags = array(
'new' => array(
'bugnotes' => OFF,
),
'monitor' => array(
'reporter' => OFF,
'handler' => OFF,
'monitor' => OFF,
'bugnotes' => OFF,
'explicit' => ON,
'threshold_min' => NOBODY,
'threshold_max' => NOBODY,
),
);
/**
* Whether user's should receive emails for their own actions.
*
* @global int $g_email_receive_own
*/
$g_email_receive_own = OFF;
/**
* Email addresses validation
*
* Determines whether email addresses are validated.
* - When ON (default), validation is performed using the pattern given by the
* HTML5 specification for 'email' type form input elements
* {@link http://www.w3.org/TR/html5/forms.html#valid-e-mail-address}
* - When OFF, validation is disabled.
*
* NOTE: Regardless of how this option is set, validation is never performed
* when using LDAP email (i.e. when $g_use_ldap_email = ON), as we assume that
* it is handled by the directory.
* @see $g_use_ldap_email
*
* @global int $g_validate_email
*/
$g_validate_email = ON;
/**
* Allow login with email address.
*
* When this is ON, users can log in with their registered email address, in
* addition to their username.
*
* This will only work as long as there is a single user with the specified
* email address, and the email address is not blank.
*
* @global int $g_email_login_enabled
*/
$g_email_login_enabled = OFF;
/**
* Ensure that email addresses are unique.
*
* @global int $g_email_ensure_unique
*/
$g_email_ensure_unique = ON;
/**
* Set to OFF to disable email check.
*
* @global int $g_check_mx_record
*/
$g_check_mx_record = OFF;
/**
* If ON, allow the user to omit an email field.
*
* NOTE: If you allow users to create their own accounts, they
* must specify an email at that point, no matter what the value
* of this option is. Otherwise they would not get their passwords.
*
* @global int $g_allow_blank_email
*/
$g_allow_blank_email = OFF;
/**
* Only allow and send email to addresses in the given domain(s).
*
* For example:
* $g_limit_email_domains = array( 'users.sourceforge.net', 'sourceforge.net' );
*
* @global array $g_limit_email_domains
*/
$g_limit_email_domains = array();
/**
* This specifies the access level that is needed to get the mailto: links.
*
* @global int $g_show_user_email_threshold
*/
$g_show_user_email_threshold = NOBODY;
/**
* Access level that needed to see realnames on user view page.
*
* @see $g_show_realname
* @global int $g_show_user_realname_threshold
*/
$g_show_user_realname_threshold = NOBODY;
/**
* Select the method to mail by.
*
* Possible values are:
* - PHPMAILER_METHOD_MAIL - PHP mail() function
* - PHPMAILER_METHOD_SENDMAIL - sendmail
* - PHPMAILER_METHOD_SMTP - SMTP server
*
* @global int $g_phpMailer_method
*/
$g_phpMailer_method = PHPMAILER_METHOD_MAIL;
/**
* Remote SMTP Host(s).
*
* Either a single hostname or multiple semicolon-delimited hostnames.
* You can specify for each host a port other than the default, using format:
* [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").
* Hosts will be tried in the given order.
*
* NOTE: This is only used with PHPMAILER_METHOD_SMTP.
*
* @see $g_smtp_port
* @global string $g_smtp_host
*/
$g_smtp_host = 'localhost';
/**
* SMTP Server Authentication user.
*
* NOTE: must be set to '' if the SMTP host does not require authentication.
*
* @see $g_smtp_password
* @global string $g_smtp_username
*/
$g_smtp_username = '';
/**
* SMTP Server Authentication password.
*
* Not used when $g_smtp_username = ''
*
* @see $g_smtp_username
* @global string $g_smtp_password
*/
$g_smtp_password = '';
/**
* Allow secure connection to the SMTP server.
*
* Valid values are '' (no encryption), 'ssl' or 'tls'
*
* @global string $g_smtp_connection_mode
*/
$g_smtp_connection_mode = '';
/**
* Default SMTP port.
*
* Typical ports are 25 and 587.
* This can be overridden individually for specific hosts.
*
* @see $g_smtp_host
* @global int $g_smtp_port
*/
$g_smtp_port = 25;
/**
* Enable DomainKeys Identified Mail (DKIM) Signatures (rfc6376).
*
* To successfully sign mails you need to enable DKIM and provide at least:
* - DKIM domain
* - DKIM private key or key file path
* - DKIM selector
* - DKIM identity
*
* @see $g_email_dkim_domain
* @see $g_email_dkim_private_key_file_path
* @see $g_email_dkim_private_key_string
* @see $g_email_dkim_selector
* @see $g_email_dkim_identity
* @global int $g_email_dkim_enable
*/
$g_email_dkim_enable = OFF;
/**
* DomainKeys Identified Mail (DKIM) Signatures domain.
*
* This is usually the same as the domain of your from email.
*
* @see $g_from_email
* @see $g_email_dkim_enable
* @global string $g_email_dkim_domain
*/
$g_email_dkim_domain = 'example.com';
/**
* DomainKeys Identified Mail (DKIM) Signatures private key path.
*
* Path to the private key. If $g_email_dkim_private_key_string is specified
* this setting will not be used.
*
* @see $g_email_dkim_private_key_string
* @see $g_email_dkim_enable
* @global string $g_email_dkim_private_key_file_path
*/
$g_email_dkim_private_key_file_path = '';
/**
* DomainKeys Identified Mail (DKIM) Signatures private key value.
*
* This string should contain private key for signing. Leave empty
* string if you wish to load the key from the file defined with
* $g_email_dkim_private_key_file_path.
*
* @see $g_email_dkim_enable
* @see $g_email_dkim_private_key_file_path
* @global string $g_email_dkim_private_key_string
*/
$g_email_dkim_private_key_string = '';
/**
* DomainKeys Identified Mail (DKIM) Signatures selector.
*
* DNS selector for the signature (rfc6376)
* DNS TXT field should have for instance:
* host mail.example._domainkey
* value v=DKIM1; t=s; n=core; k=rsa; p=[public key]
*
* @see $g_email_dkim_enable
* @global string $g_email_dkim_selector
*/
$g_email_dkim_selector = 'mail.example';
/**
* DomainKeys Identified Mail (DKIM) Signatures private key password.
*
* Leave empty string if your private key does not have password.
*
* @see $g_email_dkim_enable
* @global string $g_email_dkim_passphrase
*/
$g_email_dkim_passphrase = '';
/**
* DomainKeys Identified Mail (DKIM) Signatures identity.
*
* Identity you are signing the mails with (rfc6376).
* This is usually the same as your from email.
*
* @see $g_from_email
* @see $g_email_dkim_enable
* @global string $g_email_dkim_identity
*/
$g_email_dkim_identity = 'noreply@example.com';
/**
* Enable S/MIME signature.
*
* @global int $g_email_smime_enable
*/
$g_email_smime_enable = OFF;
/**
* Path to the S/MIME certificate.
*
* The file must contain a PEM-encoded certificate.
*
* @global string $g_email_smime_cert_file
*/
$g_email_smime_cert_file = '';
/**
* Path to the S/MIME private key file.
*
* The file must contain a PEM-encoded private key matching the S/MIME certificate.
*
* @see $g_email_smime_cert_file
*
* @global string $g_email_smime_key_file
*/
$g_email_smime_key_file = '';
/**
* Password for the S/MIME private key.
*
* Leave blank if the private key is not protected by a passphrase.
* @see $g_email_smime_key_file
*
* @global string $g_email_smime_key_password
*/
$g_email_smime_key_password = '';
/**
* Optional path to S/MIME extra certificates.
*
* The file must contain one (or more) PEM-encoded certificates, which will be
* included in the signature to help the recipient verify the certificate
* specified in {@see $g_email_smime_cert_file} ("CA Chain").
*
* @global string $g_email_smime_extracerts_file
*/
$g_email_smime_extracerts_file = '';
/**
* Use a cron scheduler to send emails.
*
* When this is ON (recommended), instead of sending of emails as soon as an
* action is performed (typically at the end of each page), emails are queued
* and must be sent manually by executing 'scripts/send_emails.php'. This script
* can only be run from the CLI, not from the web interface, for security reasons.
* The script's execution is typically handled by a cron job or a scheduler task,
* set to run every few minutes.
*
* If no cronjob is used (default), then the user will have to wait for MantisBT
* to process the email queue after each page load.
*
* @global int $g_email_send_using_cronjob
*/
$g_email_send_using_cronjob = OFF;
/**
* Email separator and padding.
*
* @global string $g_email_separator1
*/
$g_email_separator1 = str_pad('', 70, '=');
/**
* Email separator and padding.
*
* @global string $g_email_separator2
*/
$g_email_separator2 = str_pad('', 70, '-');
/**
* Email separator and padding.
*
* @global int $g_email_padding_length
*/
$g_email_padding_length = 28;
/**
* Duration (in days) to retry failed emails before deleting them from queue.
*
* @global int $g_email_retry_in_days
*/
$g_email_retry_in_days = 7;
###########################
# MantisBT Version String #
###########################
/**
* Display MantisBT Version number to users in the page footer.
*
* This is more of a cosmetic setting and should NOT be considered as a security
* measure to avoid disclosure of version information to users. OFF by default.
*
* NOTE: When the REST API is enabled {@see $g_webservice_rest_enabled},
* accessing an endpoint will always return the version number in the
* `X-Mantis-Version` header, even if the request fails.
*
* @see MANTIS_VERSION
* @global int $g_show_version
*/
$g_show_version = OFF;
/**
* String appended to the MantisBT version when displayed to the user.
*
* @global string $g_version_suffix
*/
$g_version_suffix = '';
/**
* Custom copyright and licensing statement shown at the footer of each page.
*
* Can contain HTML elements that are valid children of the `<address>` element.
* This string is treated as raw HTML and thus you must use `&amp;` instead of `&`.
*
* @global string $g_copyright_statement
*/
$g_copyright_statement = '';
##############################
# MantisBT Language Settings #
##############################
/**
* Default language for MantisBT user interface.
*
* If the language is set to 'auto', the actual language is determined by the
* user agent (web browser) language preference.
*
* @global string $g_default_language
*/
$g_default_language = 'auto';
/**
* Languages that the users are allowed to choose.
*
* @global array $g_language_choices_arr
*/
$g_language_choices_arr = array(
'auto',
'afrikaans',
'amharic',
'arabic',
'arabicegyptianspoken',
'asturian',
'basque',
'belarusian_tarask',
'breton',
'bulgarian',
'catalan',
'chinese_simplified',
'chinese_traditional',
'croatian',
'czech',
'danish',
'dutch',
'english',
'estonian',
'esperanto',
'finnish',
'french',
'galician',
'georgian',
'german',
'greek',
'hebrew',
'hindi',
'hungarian',
'icelandic',
'interlingua',
'italian',
'japanese',
'korean',
'latvian',
'lithuanian',
'luxembourgish',
'macedonian',
'norwegian_bokmal',
'norwegian_nynorsk',
'occitan',
'persian',
'polish',
'portuguese_brazil',
'portuguese_standard',
'ripoarisch',
'romanian',
'russian',
'saraiki',
'serbian',
'serbian_latin',
'slovak',
'slovene',
'spanish',
'swedish',
'swissgerman',
'tagalog',
'turkish',
'ukrainian',
'urdu',
'vietnamese',
'volapuk',
'zazaki',
);
/**
* Browser language mapping for 'auto' language selection.
*
* @global array $g_language_auto_map
*/
$g_language_auto_map = array(
'af' => 'afrikaans',
'am' => 'amharic',
'ar' => 'arabic',
'arz' => 'arabicegyptianspoken',
'ast' => 'asturian',
'eu' => 'basque',
'be-tarask' => 'belarusian_tarask',
'bg' => 'bulgarian',
'br' => 'breton',
'ca' => 'catalan',
'zh-cn, zh-sg, zh' => 'chinese_simplified',
'zh-hk, zh-tw' => 'chinese_traditional',
'hr' => 'croatian',
'cs' => 'czech',
'da' => 'danish',
'nl-be, nl' => 'dutch',
'en-us, en-gb, en-au, en' => 'english',
'eo' => 'esperanto',
'et' => 'estonian',
'fi' => 'finnish',
'fr-ca, fr-be, fr-ch, fr' => 'french',
'gl' => 'galician',
'de-de, de-at, de-ch, de' => 'german',
'el' => 'greek',
'he' => 'hebrew',
'hi' => 'hindi',
'hu' => 'hungarian',
'is' => 'icelandic',
'ia' => 'interlingua',
'it-ch, it' => 'italian',
'ja' => 'japanese',
'ka' => 'georgian',
'ko' => 'korean',
'lv' => 'latvian',
'lt' => 'lithuanian',
'lb' => 'luxembourgish',
'mk' => 'macedonian',
'no' => 'norwegian_bokmal',
'nn' => 'norwegian_nynorsk',
'oc' => 'occitan',
'fa' => 'persian',
'pl' => 'polish',
'pt-br' => 'portuguese_brazil',
'pt' => 'portuguese_standard',
'ksh' => 'ripoarisch',
'ro-mo, ro' => 'romanian',
'ru-mo, ru-ru, ru-ua, ru' => 'russian',
'skr' => 'saraiki', # skr does not actually exist as a browser language code
'sr' => 'serbian',
'sr-latn' => 'serbian_latin',
'sk' => 'slovak',
'sl' => 'slovene',
'es-mx, es-co, es-ar, es-cl, es-pr, es' => 'spanish',
'sv-fi, sv' => 'swedish',
'gsw' => 'swissgerman',
'tl' => 'tagalog',
'tr' => 'turkish',
'uk' => 'ukrainian',
'ur' => 'urdu',
'vi' => 'vietnamese',
'vo' => 'volapuk',
'diq' => 'zazaki',
);
/**
* Fallback for automatic language selection.
*
* @global string $g_fallback_language
*/
$g_fallback_language = 'english';
##########################
# MantisBT Font Settings #
##########################
/**
* Name of font family to use.
*
* For a list of all available fonts, see {@link https://fonts.google.com/}.
*
* The chosen font should be listed in {@see $g_font_family_choices_local} to
* ensure correct display even if {@see $g_cdn_enabled} option is OFF.
*
* @global string $g_font_family
*/
$g_font_family = 'Open Sans';
/**
* List the Google fonts that the users are allowed to choose from.
*
* Google offers over 800 fonts. The list below is limited to the ones tested
* with MantisBT UI.
*
* @global array $g_font_family_choices
*/
$g_font_family_choices = array(
'Amiko',
'Architects Daughter',
'Archivo Narrow',
'Arvo',
'Bitter',
'Cabin',
'Cinzel',
'Comfortaa',
'Courgette',
'Droid Sans',
'Gloria Hallelujah',
'Inconsolata',
'Josefin Sans',
'Kadwa',
'Karla',
'Kaushan Script',
'Lato',
'Montserrat',
'Open Sans',
'Orbitron',
'Oregano',
'Palanquin',
'Poppins',
'Raleway',
'Rhodium Libre',
'Sarala',
'Scope One',
'Secular One',
'Ubuntu',
'Vollkorn'
);
/**
* List of fonts that are installed as part of MantisBT.
*
* This list is used when {@see $g_cdn_enabled} is OFF.
*
* @global array $g_font_family_choices_local
*/
$g_font_family_choices_local = array(
'Montserrat',
'Open Sans',
'Poppins'
);
#############################
# MantisBT Display Settings #
#############################
/**
* Browser window title.
*
* @global string $g_window_title
*/
$g_window_title = 'MantisBT';
/**
* OpenSearch engine title prefix.
*
* This is used to describe Browser Search entries, and must be short enough
* so that when inserted into the 'opensearch_XXX_short' language string, the
* resulting text is 16 characters or less, to be compliant with the limit for
* the ShortName element as defined in the OpenSearch specification.
*
* @link https://github.com/dewitt/opensearch/blob/master/opensearch-1-1-draft-6.md
* @see $g_window_title
* @global string $g_search_title
*/
$g_search_title = '%window_title%';
/**
* Check for admin directory, database upgrades, etc.
*
* @global int $g_admin_checks
*/
$g_admin_checks = ON;
/**
* Favicon image.
*
* This icon should be of 'image/x-icon' MIME type, and its size 16x16 pixels.
* It is also used to decorate OpenSearch Browser search entries.
*
* @global string $g_favicon_image
*/
$g_favicon_image = 'images/favicon.ico';
/**
* Logo.
*
* @global string $g_logo_image
*/
$g_logo_image = 'images/mantis_logo.png';
/**
* Logo URL link.
*
* @global string $g_logo_url
*/
$g_logo_url = '%default_home_page%';
/**
* Specifies whether to enable support for project documents or not.
*
* This feature is deprecated and is expected to be moved to a plugin
* in the future.
*
* @see $g_view_proj_doc_threshold
* @see $g_upload_project_file_threshold
* @global int $g_enable_project_documentation
* @deprecated
*/
$g_enable_project_documentation = OFF;
/**
* Show extra menu bar with all available projects.
*
* @global int $g_show_project_menu_bar
*/
$g_show_project_menu_bar = OFF;
/**
* Show assigned to names.
*
* This is in the view all pages.
*
* @global int $g_show_assigned_names
*/
$g_show_assigned_names = ON;
/**
* Show priority as icon.
*
* OFF: Shows priority as icon in view all bugs page
* ON: Shows priority as text in view all bugs page
*
* @global int $g_show_priority_text
*/
$g_show_priority_text = OFF;
/**
* Define the priority level at which a bug becomes significant.
*
* Significant bugs are displayed with emphasis.
*
* Set this value to -1 to disable the feature.
*
* @global int $g_priority_significant_threshold
*/
$g_priority_significant_threshold = HIGH;
/**
* Define the severity level at which a bug becomes significant.
*
* Significant bugs are displayed with emphasis.
*
* Set this value to -1 to disable the feature.
*
* @global int $g_severity_significant_threshold
*/
$g_severity_significant_threshold = MAJOR;
/**
* The default columns to be included in the View Issues Page.
*
* This can be overridden using Manage > Manage Configuration > Manage Columns;
* users can also configure their own columns using My Account > Manage Columns.
*
* The list of all available columns (i.e. the names to choose from) can be
* retrieved from the above-mentioned pages. In addition to standard column
* names, that will also include:
* - Custom Fields: the column name will be the Custom Field's name prefixed
* with custom_, e.g. xyz should be included as custom_xyz.
* - Plugin-specific columns (prefixed with the Plugin's basename)
*
* If one of the columns specified here is not accessible to the logged-in user
* or corresponds to a disabled feature, then it will automatically be removed
* from the list at runtime. The same configuration may therefore show a
* different set of columns depending on the logged in user, the currently
* selected project and enabled features.
*
* For example, the eta column will only be shown if usage of the ETA field is
* enabled ({@see $g_enable_eta}), and the custom_xyz column will be removed if
* the xyz Custom Field is not available in the current Project.
*
* @global array $g_view_issues_page_columns
*/
$g_view_issues_page_columns = array(
'selection', 'edit', 'priority', 'id', 'bugnotes_count', 'attachment_count',
'category_id', 'severity', 'status', 'last_updated', 'summary',
);
/**
* The default columns to be included in the Print Issues Page.
*
* See {@see $g_view_issues_page_columns} for details.
*
* @global array $g_print_issues_page_columns
*/
$g_print_issues_page_columns = array(
'selection', 'priority', 'id', 'bugnotes_count', 'attachment_count',
'category_id', 'severity', 'status', 'last_updated', 'summary',
);
/**
* The default columns to be included in the CSV export.
*
* See {@see $g_view_issues_page_columns} for details.
*
* @global array $g_csv_columns
*/
$g_csv_columns = array(
'id', 'project_id', 'reporter_id', 'handler_id', 'priority',
'severity', 'reproducibility', 'version', 'projection', 'category_id',
'date_submitted', 'eta', 'os', 'os_build', 'platform', 'view_state',
'last_updated', 'summary', 'status', 'resolution', 'fixed_in_version'
);
/**
* The default columns to be included in the Excel export.
*
* See {@see $g_view_issues_page_columns} for details.
*
* @global array $g_excel_columns
*/
$g_excel_columns = array(
'id', 'project_id', 'reporter_id', 'handler_id', 'priority', 'severity',
'reproducibility', 'version', 'projection', 'category_id',
'date_submitted', 'eta', 'os', 'os_build', 'platform', 'view_state',
'last_updated', 'summary', 'status', 'resolution', 'fixed_in_version'
);
/**
* Show projects when in All Projects mode.
*
* @global int $g_show_bug_project_links
*/
$g_show_bug_project_links = ON;
/**
* Position of the filter box.
*
* Possible values are:
* POSITION_TOP, POSITION_BOTTOM, or POSITION_NONE for none.
* @global int $g_filter_position
*/
$g_filter_position = FILTER_POSITION_TOP;
/**
* Position of action buttons when viewing issues.
*
* Can be: POSITION_TOP, POSITION_BOTTOM, or POSITION_BOTH.
*
* @global int $g_action_button_position
*/
$g_action_button_position = POSITION_BOTTOM;
/**
* Show product versions in create, view and update screens.
*
* - ON forces display even if none are defined
* - OFF suppresses display
* - AUTO suppresses the display if there are no versions defined for the project
*
* @global int $g_show_product_version
*/
$g_show_product_version = AUTO;
/**
* The access level threshold at which users will see the date of release
* for product versions.
*
* Dates will be shown next to the product version, target version and fixed in
* version fields. Set this threshold to NOBODY to disable the feature.
*
* @global int $g_show_version_dates_threshold
*/
$g_show_version_dates_threshold = NOBODY;
/**
* Show users with their real name or not.
*
* @see $g_sort_by_last_name
* @see $g_show_user_realname_threshold
* @global int $g_show_realname
*/
$g_show_realname = OFF;
/**
* Sorting for names in dropdown lists.
*
* If turned on, "Jane Doe" will be sorted with the "D"s.
* @see $g_show_realname
* @global int $g_sort_by_last_name
*/
$g_sort_by_last_name = OFF;
/**
* Show user avatars.
*
* @global int $g_show_avatar
* @see $g_show_avatar_threshold
*/
$g_show_avatar = OFF;
/**
* Only users above this threshold will have their avatar shown.
*
* @global int $g_show_avatar_threshold
*/
$g_show_avatar_threshold = DEVELOPER;
/**
* Show release dates on changelog.
*
* @global int $g_show_changelog_dates
*/
$g_show_changelog_dates = ON;
/**
* Show release dates on roadmap.
*
* @global int $g_show_roadmap_dates
*/
$g_show_roadmap_dates = ON;
##########################
# MantisBT Time Settings #
##########################
/**
* Time for long lived cookie to live in seconds.
*
* It is also used as the default for permanent logins if
* {@see $g_allow_permanent_cookie} is enabled and selected.
*
* @global int $g_cookie_time_length
*/
$g_cookie_time_length = 60 * 60 * 24 * 365;
/**
* Allow users to opt for a 'permanent' cookie when logging in.
*
* Controls the display of the 'Remember my login in this browser' checkbox
* on the login page.
*
* @see $g_cookie_time_length
* @global int $g_allow_permanent_cookie
*/
$g_allow_permanent_cookie = ON;
/**
* Time allowed for long processes execution.
*
* The time (in seconds) to allow for page execution during long processes
* such as upgrading your database.
*
* The default value of 0 indicates that the page should be allowed to
* execute until it is finished.
*
* @global int $g_long_process_timeout
*/
$g_long_process_timeout = 0;
##########################
# MantisBT Date Settings #
##########################
/**
* Date format strings defaults to ISO 8601 formatting.
*
* For detailed instructions on date formatting
* @see http://www.php.net/manual/en/function.date.php
*
* @global string $g_short_date_format
*/
$g_short_date_format = 'Y-m-d';
/**
* Date format strings defaults to ISO 8601 formatting.
*
* For detailed instructions on date formatting
* @see http://www.php.net/manual/en/function.date.php
*
* @global string $g_normal_date_format
*/
$g_normal_date_format = 'Y-m-d H:i';
/**
* Date format strings defaults to ISO 8601 formatting.
*
* For detailed instructions on date formatting
*
* @see http://www.php.net/manual/en/function.date.php
* @global string $g_complete_date_format
*/
$g_complete_date_format = 'Y-m-d H:i T';
/**
* Datetime picker widget format string.
*
* This format needs needs to match the one defined in {@see $g_normal_date_format}
* For detailed instructions on date formatting
* @see http://momentjs.com/docs/#/displaying/format/
*
* @global string $g_datetime_picker_format
*/
$g_datetime_picker_format = 'Y-MM-DD HH:mm';
##############################
# MantisBT TimeZone Settings #
##############################
/**
* Default timezone to use in MantisBT.
*
* This configuration is normally initialized when installing Mantis.
* It should be set to one of the values specified in the
* {@link http://php.net/timezones List of Supported Timezones}.
* If this config is left blank, the timezone will be initialized by calling
* {@link http://php.net/date-default-timezone-get date_default_timezone_get()}
* (note that this function's behavior was modified in PHP 5.4.0), which will
* fall back to 'UTC' if unable to determine the timezone.
* Correct configuration of this variable can be confirmed by running the
* administration checks.
* Users can override the default timezone under their preferences.
*
* @global string $g_default_timezone
*/
$g_default_timezone = '';
##########################
# MantisBT News Settings #
##########################
/**
* Indicates whether the news feature should be enabled or disabled.
*
* This feature is deprecated and is expected to be moved to a plugin
* in the future.
*
* @global int $g_news_enabled
* @deprecated
*/
$g_news_enabled = OFF;
/**
* Limit News Items.
*
* Limit by entry count or date
* - BY_LIMIT - entry limit
* - BY_DATE - by date
*
* @global int $g_news_limit_method
* @deprecated
*/
$g_news_limit_method = BY_LIMIT;
/**
* Limit by last X entries.
*
* @global int $g_news_view_limit
* @deprecated
*/
$g_news_view_limit = 7;
/**
* Limit by days.
*
* @global int $g_news_view_limit_days
* @deprecated
*/
$g_news_view_limit_days = 30;
/**
* Threshold for viewing private news.
*
* @global int $g_private_news_threshold
* @deprecated
*/
$g_private_news_threshold = DEVELOPER;
################################
# MantisBT Default Preferences #
################################
/**
* Default access level assigned to new accounts when signing up.
*
* Look in constant_inc.php for values.
*
* @global int $g_default_new_account_access_level
*/
$g_default_new_account_access_level = REPORTER;
/**
* Default Project View Status (VS_PUBLIC or VS_PRIVATE).
*
* @global int $g_default_project_view_status
*/
$g_default_project_view_status = VS_PUBLIC;
/**
* Default Bug View Status (VS_PUBLIC or VS_PRIVATE).
*
* @global int $g_default_bug_view_status
*/
$g_default_bug_view_status = VS_PUBLIC;
/**
* Default value for bug description field used on bug report page.
*
* @global string $g_default_bug_description
*/
$g_default_bug_description = '';
/**
* Default value for steps to reproduce field.
*
* @global string $g_default_bug_steps_to_reproduce
*/
$g_default_bug_steps_to_reproduce = '';
/**
* Default value for addition information field.
*
* @global string $g_default_bug_additional_info
*/
$g_default_bug_additional_info = '';
/**
* Default Bugnote View Status (VS_PUBLIC or VS_PRIVATE).
*
* @global int $g_default_bugnote_view_status
*/
$g_default_bugnote_view_status = VS_PUBLIC;
/**
* Default bug resolution when reporting a new bug.
*
* @global int $g_default_bug_resolution
*/
$g_default_bug_resolution = OPEN;
/**
* Default bug severity when reporting a new bug.
*
* @global int $g_default_bug_severity
*/
$g_default_bug_severity = MINOR;
/**
* Default bug priority when reporting a new bug.
*
* @global int $g_default_bug_priority
*/
$g_default_bug_priority = NORMAL;
/**
* Default bug reproducibility when reporting a new bug.
*
* @global int $g_default_bug_reproducibility
*/
$g_default_bug_reproducibility = REPRODUCIBILITY_HAVENOTTRIED;
/**
* Default bug projection when reporting a new bug.
*
* @global int $g_default_bug_projection
*/
$g_default_bug_projection = PROJECTION_NONE;
/**
* Default bug ETA when reporting a new bug.
*
* @global int $g_default_bug_eta
*/
$g_default_bug_eta = ETA_NONE;
/**
* Default relationship between a new bug and its parent when cloning it.
*
* @global int $g_default_bug_relationship_clone
*/
$g_default_bug_relationship_clone = BUG_REL_NONE;
/**
* Allow parent bug to close regardless of child status.
*
* @global int $g_allow_parent_of_unresolved_to_close
*/
$g_allow_parent_of_unresolved_to_close = OFF;
/**
* Default for new bug relationships.
*
* @global int $g_default_bug_relationship
*/
$g_default_bug_relationship = BUG_RELATED;
/**
* Default category to use when moving issues.
*
* Default global category to be used when an issue is moved from a project to
* another that does not have a category with a matching name.
*
* The default is 1 which is the "General" category that is created in the
* default database.
*/
$g_default_category_for_moves = 1;
/**
*
* @global int $g_default_limit_view
*/
$g_default_limit_view = 50;
/**
*
* @global int $g_default_show_changed
*/
$g_default_show_changed = 6;
/**
*
* @global int $g_hide_status_default
*/
$g_hide_status_default = CLOSED;
/**
*
* @global int $g_show_sticky_issues
*/
$g_show_sticky_issues = ON;
/**
* Minimum delay for automatic page refreshes (in minutes).
*
* Make sure people are not refreshing too often.
*
* @global int $g_min_refresh_delay
*/
$g_min_refresh_delay = 10;
/**
* Default delay for automatic page refreshes (in minutes). * @global int $g_default_refresh_delay
*/
$g_default_refresh_delay = 30;
/**
* Delay to redirect after displaying a confirmation page (in seconds).
*
* @global int $g_default_redirect_delay
*/
$g_default_redirect_delay = 2;
/**
*
* @global string $g_default_bugnote_order
*/
$g_default_bugnote_order = 'ASC';
/**
*
* @global int $g_default_email_on_new
*/
$g_default_email_on_new = ON;
/**
*
* @global int $g_default_email_on_assigned
*/
$g_default_email_on_assigned = ON;
/**
*
* @global int $g_default_email_on_feedback
*/
$g_default_email_on_feedback = ON;
/**
*
* @global int $g_default_email_on_resolved
*/
$g_default_email_on_resolved = ON;
/**
*
* @global int $g_default_email_on_closed
*/
$g_default_email_on_closed = ON;
/**
*
* @global int $g_default_email_on_reopened
*/
$g_default_email_on_reopened = ON;
/**
*
* @global int $g_default_email_on_bugnote
*/
$g_default_email_on_bugnote = ON;
/**
* @global int $g_default_email_on_status
*/
$g_default_email_on_status = OFF;
/**
* @global int $g_default_email_on_priority
*/
$g_default_email_on_priority = OFF;
/**
* 'any'
* @global int $g_default_email_on_new_minimum_severity
*/
$g_default_email_on_new_minimum_severity = OFF;
/**
* 'any'
* @global int $g_default_email_on_assigned_minimum_severity
*/
$g_default_email_on_assigned_minimum_severity = OFF;
/**
* 'any'
* @global int $g_default_email_on_feedback_minimum_severity
*/
$g_default_email_on_feedback_minimum_severity = OFF;
/**
* 'any'
* @global int $g_default_email_on_resolved_minimum_severity
*/
$g_default_email_on_resolved_minimum_severity = OFF;
/**
* 'any'
* @global int $g_default_email_on_closed_minimum_severity
*/
$g_default_email_on_closed_minimum_severity = OFF;
/**
* 'any'
* @global int $g_default_email_on_reopened_minimum_severity
*/
$g_default_email_on_reopened_minimum_severity = OFF;
/**
* 'any'
* @global int $g_default_email_on_bugnote_minimum_severity
*/
$g_default_email_on_bugnote_minimum_severity = OFF;
/**
* 'any'
* @global int $g_default_email_on_status_minimum_severity
*/
$g_default_email_on_status_minimum_severity = OFF;
/**
* @todo Unused
* @global int $g_default_email_on_priority_minimum_severity
*/
$g_default_email_on_priority_minimum_severity = OFF;
/**
*
* @global int $g_default_email_bugnote_limit
*/
$g_default_email_bugnote_limit = 0;
#############################
# MantisBT Summary Settings #
#############################
/**
* How many reporters to show.
*
* This is useful when there are hundreds of reporters
*
* @global int $g_reporter_summary_limit
*/
$g_reporter_summary_limit = 10;
/**
* Summary date displays.
*
* date lengths to count bugs by (in days).
*
* @global array $g_date_partitions
*/
$g_date_partitions = array( 1, 2, 3, 7, 30, 60, 90, 180, 365);
/**
* Shows project '[project] category' when 'All Projects' is selected.
*
* When OFF; only 'category name' is shown.
*
* @global int $g_summary_category_include_project
*/
$g_summary_category_include_project = OFF;
/**
* Threshold for viewing summary.
*
* @global int $g_view_summary_threshold
*/
$g_view_summary_threshold = MANAGER;
/**
* Severity multipliers used to determine reporters effectiveness.
*
* Define the multipliers which are used to determine the effectiveness
* of reporters based on the severity of bugs. Higher multipliers will
* result in an increase in reporter effectiveness.
*
* @global array $g_severity_multipliers
*/
$g_severity_multipliers = array(
FEATURE => 1,
TRIVIAL => 2,
TEXT => 3,
TWEAK => 2,
MINOR => 5,
MAJOR => 8,
CRASH => 8,
BLOCK => 10
);
/**
* Resolution multipliers used to determine reporters effectiveness.
*
* Define the resolutions which are used to determine the effectiveness
* of reporters based on the resolution of bugs. Higher multipliers will
* result in a decrease in reporter effectiveness. The only resolutions
* that need to be defined here are those which match or exceed
* $g_bug_resolution_not_fixed_threshold.
*
* @global array $g_resolution_multipliers
*/
$g_resolution_multipliers = array(
UNABLE_TO_REPRODUCE => 2,
NOT_FIXABLE => 1,
DUPLICATE => 3,
NOT_A_BUG => 5,
SUSPENDED => 1,
WONT_FIX => 1
);
#############################
# MantisBT Bugnote Settings #
#############################
/**
* Bugnote ordering.
*
* Change to ASC or DESC
*
* @global string $g_bugnote_order
*/
$g_bugnote_order = 'DESC';
#################################
# MantisBT Bug History Settings #
#################################
/**
* Bug history visible by default when you view a bug.
*
* change to ON or OFF.
*
* @global int $g_history_default_visible
*/
$g_history_default_visible = ON;
/**
* Bug history ordering.
*
* change to ASC or DESC.
*
* @global string $g_history_order
*/
$g_history_order = 'ASC';
##########################################
# MantisBT Reminder and Mention Settings #
##########################################
/**
* Store reminders as bugnotes.
*
* @global int $g_store_reminders
*/
$g_store_reminders = ON;
/**
* Automatically add recipients of reminders to monitor list.
*
* They will not be added if they are the handler or the reporter, since they
* automatically get notified, if required.
*
* If recipients of the reminders are below the monitor threshold, they will
* not be added.
*
* @global int $g_reminder_recipients_monitor_bug
*/
$g_reminder_recipients_monitor_bug = ON;
/**
* Default Reminder View Status (VS_PUBLIC or VS_PRIVATE).
*
* @global int $g_default_reminder_view_status
*/
$g_default_reminder_view_status = VS_PUBLIC;
/**
* Access level required to be a recipient for reminders.
*
* The access level is that of the project to which the issue belongs.
*
* @global int $g_reminder_receive_threshold
*/
$g_reminder_receive_threshold = DEVELOPER;
/**
* Enables or disables @ mentions feature.
*
* @global int $g_mentions_enabled
*/
$g_mentions_enabled = ON;
/**
* The tag to use for mentions.
*
* @global string $g_mentions_tag
*/
$g_mentions_tag = '@';
#################################
# MantisBT Sponsorship Settings #
#################################
/**
* Whether to enable/disable the whole issue sponsorship feature.
*
* @global int $g_enable_sponsorship
*/
$g_enable_sponsorship = OFF;
/**
* Currency used for all sponsorships.
*
* @global string $g_sponsorship_currency
*/
$g_sponsorship_currency = 'US$';
/**
* Access level threshold needed to view the total sponsorship for an issue by
* all users.
*
* @global int $g_view_sponsorship_total_threshold
*/
$g_view_sponsorship_total_threshold = VIEWER;
/**
* Access level threshold needed to view the users sponsoring an issue and the
* sponsorship amount for each.
*
* @global int $g_view_sponsorship_details_threshold
*/
$g_view_sponsorship_details_threshold = VIEWER;
/**
* Access level threshold needed to allow user to sponsor issues.
*
* @global int $g_sponsor_threshold
*/
$g_sponsor_threshold = REPORTER;
/**
* Access level required to be able to handle sponsored issues.
*
* @global int $g_handle_sponsored_bugs_threshold
*/
$g_handle_sponsored_bugs_threshold = DEVELOPER;
/**
* Access level required to be able to assign a sponsored issue.
*
* It is only possible to assign users having access level greater or equal to
* {@see $g_handle_sponsored_bugs_threshold}.
*
* @global int $g_assign_sponsored_bugs_threshold
*/
$g_assign_sponsored_bugs_threshold = MANAGER;
/**
* Minimum sponsorship amount.
*
* If the user enters a value less than this, an error will be prompted.
*
* @global int $g_minimum_sponsorship_amount
*/
$g_minimum_sponsorship_amount = 5;
#################################
# MantisBT File Upload Settings #
#################################
/**
* Allow File uploads.
*
* This is the master setting to disable *ALL* file uploading functionality.
*
* If you want to allow file uploads, you must also make sure that they are
* enabled in PHP settings. You may need to add 'file_uploads = TRUE' to your
* php.ini.
*
* @see $g_upload_project_file_threshold
* @see $g_upload_bug_file_threshold
* @see $g_allow_reporter_upload
* @global int $g_allow_file_upload
*/
$g_allow_file_upload = ON;
/**
* Upload destination.
*
* Specify actual location in project settings: DISK or DATABASE.
*
* NOTE: FTP is now deprecated and will map to DISK.
*
* @global int $g_file_upload_method
*/
$g_file_upload_method = DATABASE;
/**
* Use File dropzone.
*
* Enable drag and drop into a drop zone functionality for file upload fields.
*
* @global int $g_dropzone_enabled
*/
$g_dropzone_enabled = ON;
/**
* File permissions for uploaded files.
*
* When using DISK for storing uploaded files, this setting controls
* the access permissions they will have on the web server: with the default
* value (0400) files will be read-only, and accessible only by the user
* running the apache process (probably "apache" in Linux and "Administrator"
* in Windows).
*
* For more details on unix style permissions:
* @link https://en.wikipedia.org/wiki/Chmod
*
* @global int $g_attachments_file_permissions
*/
$g_attachments_file_permissions = 0400;
/**
* Maximum file size that can be uploaded (in bytes).
*
* Defaults to 5 MiB. Also check your PHP settings for upload_max_filesize and
* post_max_size (defaulted to 2 MiB and 8 MiB respectively), as well as
* memory_limit.
*
* @global int $g_max_file_size
*/
$g_max_file_size = 5 * 1024 * 1024;
/**
* Maximum number of files that can be uploaded simultaneously.
*
* @global int $g_file_upload_max_num
*/
$g_file_upload_max_num = 10;
/**
* Authorized file types (whitelist).
*
* If $g_allowed_files is filled in, NO other file types will be allowed. If
* empty, any extensions not specifically excluded by $g_disallowed_files list
* will be authorized ($g_disallowed_files takes precedence over $g_allowed_files).
* Separate items by commas, e.g. 'bmp,gif,jpg,png,txt,zip'.
*
* @see $g_allowed_files
* @global string $g_allowed_files
*/
$g_allowed_files = '';
/**
* Forbidden file types (blacklist).
*
* All file extensions in this list will be unauthorized.
* Separate items by commas, e.g. 'php,html,java,exe,pl,svg'.
*
* SVG files are disabled by default, for security reasons. It is recommended to
* also disable all extensions that can be executed by your server;
*
* @see $g_allowed_files
* @global string $g_disallowed_files
*/
$g_disallowed_files = 'svg';
/**
* Prefix to be used for the file system names of files uploaded to projects.
*
* Eg: doc-001-myprojdoc.zip
*
* @global string $g_document_files_prefix
* @deprecated since 1.0, file names have been stored in a new format
*/
$g_document_files_prefix = 'doc';
/**
* Absolute path to the default upload folder.
*
* Requires trailing / or \.
*
* @global string $g_absolute_path_default_upload_folder
*/
$g_absolute_path_default_upload_folder = '';
/**
* Enable support for sending files to users via a more efficient X-Sendfile
* method.
*
* HTTP server software supporting this technique includes Lighttpd,
* Cherokee, Apache with mod_xsendfile and nginx. You may need to set the
* proceeding file_download_xsendfile_header_name option to suit the server you
* are using.
*
* @global int $g_file_download_method
*/
$g_file_download_xsendfile_enabled = OFF;
/**
* The name of the X-Sendfile header to use.
*
* Each server tends to implement this functionality in a slightly different way
* and thus the naming conventions for the header differ between each server.
* Lighttpd from v1.5, Apache with mod_xsendfile and Cherokee web servers use
* X-Sendfile. nginx uses X-Accel-Redirect and Lighttpd v1.4 uses X-LIGHTTPD-send-file.
*
* @global string $g_file_download_xsendfile_header_name
*/
$g_file_download_xsendfile_header_name = 'X-Sendfile';
##########################
# MantisBT HTML Settings #
##########################
/**
* Convert URLs and e-mail addresses to html links.
*
* This flag controls whether URLs and email addresses are automatically
* converted to clickable links. Additionally, for URL links, it determines
* where they open when clicked (*target* attribute) and their type.
*
* The options below can be combined using bitwise operators (not all
* possible combinations make sense):
* - OFF Do not convert URLs or emails
* - LINKS_SAME_WINDOW Convert to links that open in the current window (DEFAULT)
* - LINKS_NEW_WINDOW Convert to links that open in a new window (overrides LINKS_SAME_WINDOW)
* - LINKS_NOOPENER Links have the `noopener` type (DEFAULT)
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/noopener}
* - LINKS_NOREFERRER Links have the `noreferrer` type, i.e. they omit the *Referer*
* header (implies LINKS_NOOPENER)
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/noreferrer}
*
* @global int $g_html_make_links
*/
$g_html_make_links = LINKS_SAME_WINDOW | LINKS_NOOPENER;
/**
* Valid html tags for multi-line fields (e.g. description).
*
* WARNING: For security reasons, do NOT include
* - 'a' or 'img' tags
* - tags that require attributes
*
* @global string $g_html_valid_tags
*/
$g_html_valid_tags = 'p, li, ul, ol, br, pre, i, b, u, em, strong';
/**
* Valid html tags for single line fields (e.g. issue summary).
*
* WARNING: For security reasons, do NOT include
* - 'a' or 'img' tags
* - tags that require attributes
*
* @global string $g_html_valid_tags_single_line
*/
$g_html_valid_tags_single_line = 'i, b, u, em, strong';
/**
* Maximum length of the description in a dropdown menu (for search).
*
* Set to 0 to disable truncations.
*
* @global int $g_max_dropdown_length
*/
$g_max_dropdown_length = 40;
/**
* Wrap in pre-formatted text.
*
* This flag controls whether text delimited by HTML 'pre' tags is wrapped to a
* maximum linelength (defaults to 100 chars in strings_api).
*
* If turned off, the display may be wide when viewing the text.
*
* @global int $g_wrap_in_preformatted_text
*/
$g_wrap_in_preformatted_text = ON;
#############################################
# MantisBT Authentication and LDAP Settings #
#############################################
/**
* Login authentication method.
*
* Must be one of MD5, LDAP, BASIC_AUTH or HTTP_AUTH.
*
* Note: you may not be able to easily switch encryption methods, so this
* should be carefully chosen at install time. However, MantisBT will attempt
* to "fall back" to older methods if possible.
*
* @global int $g_login_method
*/
$g_login_method = MD5;
/**
* Re-authentication required for admin areas.
*
* @global int $g_reauthentication
*/
$g_reauthentication = ON;
/**
* Duration of the reauthentication timeout, in seconds.
*
* @global int $g_reauthentication_expiry
*/
$g_reauthentication_expiry = TOKEN_EXPIRY_AUTHENTICATED;
/**
* Specifies the LDAP or Active Directory server(s) to connect to.
*
* This must be a full LDAP URI (ldap[s]://hostname:port)
* - Protocol must be either:
* - ldap - unencrypted or opportunistic TLS (STARTTLS) {@see $g_ldap_use_starttls}
* - ldaps - for TLS encryption
* - Port number is optional, and defaults to 389. If this doesn't work, try
* using one of the following standard port numbers: 636 (ldaps); for Active
* Directory Global Catalog forest-wide search, use 3268 (ldap) or 3269 (ldaps)
*
* Examples of valid URI:
* ldap://ldap.example.com
* ldaps://ldap.example.com:3269/
*
* Multiple servers can be specified as a space-separated list.
*
* @global string $g_ldap_server
*/
$g_ldap_server = 'ldap://ldap.example.com/';
/**
* Determines whether the connection will attempt an opportunistic upgrade
* to a TLS connection (STARTTLS).
*
* For security, a failure aborts the entire connection, so make sure your
* server supports StartTLS if this setting is ON, and use the ldap:// scheme
* (not ldaps://).
*
* @global int $g_ldap_use_starttls
*/
$g_ldap_use_starttls = ON;
/**
* The minimum version of the TLS protocol to allow.
*
* This maps to the LDAP_OPT_X_TLS_PROTOCOL_MIN ldap library option.
* For example, LDAP_OPT_X_TLS_PROTOCOL_TLS1_2. If OFF (default), then the
* protocol version is not set.
*
* Requires PHP 7.1 or later.
* For security, a failure aborts the entire connection.
*
* @see https://www.php.net/manual/en/ldap.constants.php#constant.ldap-opt-x-tls-protocol-min
*
* @global int $g_ldap_tls_protocol_min
*/
$g_ldap_tls_protocol_min = OFF;
/**
* The root distinguished name for LDAP searches.
*
* @global string $g_ldap_root_dn
*/
$g_ldap_root_dn = 'dc=example,dc=com';
/**
* LDAP search filter for the organization.
*
* e.g. '(organizationname=*Traffic)'
*
* @global string $g_ldap_organization
*/
$g_ldap_organization = '';
/**
* The LDAP Protocol Version.
*
* This maps to the LDAP_OPT_PROTOCOL_VERSION ldap library option.
*
* Possible values are 2, 3 (default) or 0. If 0, then the protocol version is
* not set, and you get whatever default the underlying ldap library uses.
* In almost all cases you should use 3. LDAPv3 was introduced back in 1997.
* LDAPv2 was deprecated in 2003 by RFC3494.
*
* @global int $g_ldap_protocol_version
*/
$g_ldap_protocol_version = 3;
/**
* Duration of the timeout for TCP connection to the LDAP server (in seconds).
*
* This maps to the LDAP_OPT_NETWORK_TIMEOUT ldap library option.
*
* Set this to a low value when the hostname defined in $g_ldap_server resolves
* to multiple IP addresses, allowing rapid failover to the next available LDAP
* server.
* Defaults to 0 (infinite).
*
* @global int $g_ldap_network_timeout
*/
$g_ldap_network_timeout = 0;
/**
* Determines whether the LDAP library automatically follows referrals returned
* by LDAP servers or not.
*
* This maps to the LDAP_OPT_REFERRALS ldap library option.
*
* For Active Directory, this should be set to OFF.
* If you have only one LDAP server, setting to this to OFF is advisable to prevent
* any man-in-the-middle attacks.
*
* @global int $g_ldap_follow_referrals
*/
$g_ldap_follow_referrals = ON;
/**
* The distinguished name of the service account to use for binding to the
* LDAP server.
*
* For anonymous binding, leave empty.
* For example, 'cn=ldap,ou=Administrators,dc=example,dc=com'.
*
* @global string $g_ldap_bind_dn
*/
$g_ldap_bind_dn = '';
/**
* The password for the service account used to establish the connection to
* the LDAP server.
*
* For anonymous binding, leave empty.
*
* @global string $g_ldap_bind_passwd
*/
$g_ldap_bind_passwd = '';
/**
* The LDAP field for username.
*
* Use 'sAMAccountName' for Active Directory.
*
* @global string $g_ldap_uid_field
*/
$g_ldap_uid_field = 'uid';
/**
* The LDAP field for the user's e-mail address.
*
* @see $g_use_ldap_email
* @global string $g_ldap_email_field
*/
$g_ldap_email_field = 'mail';
/**
* The LDAP field for the user's real name (i.e. common name).
*
* @see $g_use_ldap_realname
* @global string $g_ldap_realname_field
*/
$g_ldap_realname_field = 'cn';
/**
* Use the realname specified in LDAP (ON) rather than the one stored in the
* database (OFF).
*
* Note that MantisBT will update the database with the data retrieved
* from LDAP when ON.
*
* @see $g_ldap_realname_field
* @global int $g_use_ldap_realname
*/
$g_use_ldap_realname = OFF;
/**
* Use the email address specified in LDAP (ON) rather than the one stored
* in the database (OFF).
*
* Note that MantisBT will update the database with the data retrieved
* from LDAP when ON.
*
* @see $g_ldap_email_field
* @global int $g_use_ldap_email
*/
$g_use_ldap_email = OFF;
/**
* LDAP server simulation.
*
* This configuration option allows replacing the LDAP server with a comma-
* delimited text file, useful for development or testing purposes.
*
* The LDAP simulation file format is as follows:
* - One line per user
* - Each line has 4 comma-delimited fields
* - username,
* - realname,
* - e-mail,
* - password
* - Any extra fields are ignored
*
* On production systems, this option should be set to ''.
*
* @global string $g_ldap_simulation_file_path
*/
$g_ldap_simulation_file_path = '';
###################
# Status Settings #
###################
/**
* Status to assign to the bug when submitted.
*
* @global int $g_bug_submit_status
*/
$g_bug_submit_status = NEW_;
/**
* Status to assign to the bug when assigned.
*
* @global int $g_bug_assigned_status
*/
$g_bug_assigned_status = ASSIGNED;
/**
* Status to assign to the bug when reopened.
*
* @global int $g_bug_reopen_status
*/
$g_bug_reopen_status = FEEDBACK;
/**
* Status to assign to the bug when feedback is required from the issue reporter.
*
* Once the reporter adds a note the status moves back from feedback
* to $g_bug_assigned_status or $g_bug_submit_status.
*
* @global int $g_bug_feedback_status
*/
$g_bug_feedback_status = FEEDBACK;
/**
* Automatically reassign issue when feedback has been provided.
*
* When a note is added to a bug currently in $g_bug_feedback_status, and the note
* author is the bug's reporter, this option will automatically set the bug status
* to $g_bug_submit_status or $g_bug_assigned_status if the bug is assigned to a
* developer.
*
* Defaults to enabled.
*
* @global boolean $g_reassign_on_feedback
*/
$g_reassign_on_feedback = ON;
/**
* Resolution to assign to the bug when reopened.
*
* @global int $g_bug_reopen_resolution
*/
$g_bug_reopen_resolution = REOPENED;
/**
* Default resolution to assign to a bug when it is resolved as being a
* duplicate of another issue.
*
* @global int $g_bug_duplicate_resolution
*/
$g_bug_duplicate_resolution = DUPLICATE;
/**
* Bug becomes readonly if its status is >= this status.
*
* The bug becomes read/write again if re-opened and its status becomes less
* than this threshold.
*
* @global int $g_bug_readonly_status_threshold
*/
$g_bug_readonly_status_threshold = RESOLVED;
/**
* Bug is resolved, ready to be closed or reopened.
*
* In some custom installations a bug may be considered as resolved when it is
* moved to a custom (FIXED or TESTED) status.
*
* @global int $g_bug_resolved_status_threshold
*/
$g_bug_resolved_status_threshold = RESOLVED;
/**
* Threshold resolution which denotes that a bug has been resolved and
* successfully fixed by developers.
*
* Resolutions above this threshold
* and below $g_bug_resolution_not_fixed_threshold are considered to be
* resolved successfully.
*
* @global int $g_bug_resolution_fixed_threshold
*/
$g_bug_resolution_fixed_threshold = FIXED;
/**
* Threshold resolution which denotes that a bug has been resolved without
* being successfully fixed by developers.
*
* Resolutions above this threshold are considered to be resolved in an
* unsuccessful way.
*
* @global int $g_bug_resolution_not_fixed_threshold
*/
$g_bug_resolution_not_fixed_threshold = UNABLE_TO_REPRODUCE;
/**
* Bug is closed.
*
* In some custom installations a bug may be considered as closed when it is
* moved to a custom (COMPLETED or IMPLEMENTED) status.
*
* @global int $g_bug_closed_status_threshold
*/
$g_bug_closed_status_threshold = CLOSED;
/**
* Automatically set status to ASSIGNED whenever a bug is assigned to a person.
*
* This is useful for installations where assigned status is to be used when
* the bug is in progress, rather than just put in a person's queue.
*
* @global int $g_auto_set_status_to_assigned
*/
$g_auto_set_status_to_assigned = ON;
/**
* Status Workflow definition.
*
* The workflow is defined with a simple 2-dimensional matrix.
*
* For each status defined in {@see $g_status_enum_string}, you define which
* statuses you can go to from that status, e.g. from NEW_ you might list
* '10:new,20:feedback,30:acknowledged' but not higher ones.
*
* The following example can be transferred to config/config_inc.php:
* $g_status_enum_workflow[NEW_]='20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved';
* $g_status_enum_workflow[FEEDBACK] ='10:new,30:acknowledged,40:confirmed,50:assigned,80:resolved';
* $g_status_enum_workflow[ACKNOWLEDGED] ='20:feedback,40:confirmed,50:assigned,80:resolved';
* $g_status_enum_workflow[CONFIRMED] ='20:feedback,50:assigned,80:resolved';
* $g_status_enum_workflow[ASSIGNED] ='20:feedback,80:resolved,90:closed';
* $g_status_enum_workflow[RESOLVED] ='50:assigned,90:closed';
* $g_status_enum_workflow[CLOSED] ='50:assigned';
*
* @global array $g_status_enum_workflow
*/
$g_status_enum_workflow = array();
############################
# Bug Attachments Settings #
############################
/**
* Specify the filename of the magic database file.
*
* This is used to guess what the MIME type of a file is.
*
* It is generally safe to leave this setting as the default (blank) as PHP is
* usually able to find this file by itself.
*
* @global string $g_fileinfo_magic_db_file
*/
$g_fileinfo_magic_db_file = '';
/**
* Specifies the maximum size (in bytes) below which an attachment is
* previewed in the bug view pages.
*
* To disable the previewing of attachments, set max size to 0.
*
* @global int $g_preview_attachments_inline_max_size
*/
$g_preview_attachments_inline_max_size = 256 * 1024;
/**
* Extensions for text files that can be expanded inline.
*
* @global array $g_preview_text_extensions
*/
$g_preview_text_extensions = array(
'', 'txt', 'diff', 'patch'
);
/**
* Extensions for images that can be expanded inline.
*
* @global array $g_preview_image_extensions
*/
$g_preview_image_extensions = array(
'bmp', 'png', 'gif', 'jpg', 'jpeg'
);
/**
* Specifies the maximum width for the auto-preview feature.
*
* If no maximum width should be imposed then it should be set to 0.
*
* @global int $g_preview_max_width
*/
$g_preview_max_width = 0;
/**
* Specifies the maximum height for the auto-preview feature.
*
* If no maximum height should be imposed then it should be set to 0.
*
* @global int $g_preview_max_height
*/
$g_preview_max_height = 250;
/**
* Access level needed to view bugs attachments.
*
* View means to see the file names, sizes, and timestamps of the attachments.
*
* @global int $g_view_attachments_threshold
*/
$g_view_attachments_threshold = VIEWER;
/**
* Access level needed to download bug attachments.
*
* @global int $g_download_attachments_threshold
*/
$g_download_attachments_threshold = VIEWER;
/**
* Access level needed to delete bug attachments.
*
* @global int $g_delete_attachments_threshold
*/
$g_delete_attachments_threshold = DEVELOPER;
/**
* Allow users to view their own attachments.
*
* If ON, users will be able to view attachments they uploaded themselves,
* even if their access level is below {@see $g_view_attachments_threshold}.
*
* @global int $g_allow_view_own_attachments
*/
$g_allow_view_own_attachments = ON;
/**
* Allow users to download their own attachments.
*
* If ON, users will be able to download attachments they uploaded themselves,
* even if their access level is below {@see $g_download_attachments_threshold}.
*
* @global int $g_allow_download_own_attachments
*/
$g_allow_download_own_attachments = ON;
/**
* Allow users to delete their own attachments.
*
* If ON, users will be able to delete attachments they uploaded themselves,
* even if their access level is below {@see $g_delete_attachments_threshold}.
*
* @global int $g_allow_delete_own_attachments
*/
$g_allow_delete_own_attachments = OFF;
####################
# Field Visibility #
####################
/**
* Enable or disable usage of the ETA field.
*
* @global int $g_enable_eta
*/
$g_enable_eta = OFF;
/**
* Enable or disable usage of the Projection field.
*
* @global int $g_enable_projection
*/
$g_enable_projection = OFF;
/**
* Enable or disable usage of the Product Build field.
*
* @global int $g_enable_product_build
*/
$g_enable_product_build = OFF;
/**
* An array of optional fields to show on the bug report page.
*
* The following optional fields are allowed:
* - additional_info
* - attachments
* - category_id
* - due_date
* - eta
* - handler
* - monitors
* - os
* - os_build
* - platform
* - priority
* - product_build
* - product_version
* - reproducibility
* - resolution
* - severity
* - status
* - steps_to_reproduce
* - tags
* - target_version
* - view_state
*
* The summary and description fields are always shown and do not need to be
* listed in this option. Fields not listed above cannot be shown on the bug
* report page. Visibility of custom fields is handled via the Manage =>
* Custom Fields administrator page.
*
* Note that 'monitors' is not an actual field; adding it to the list will let
* authorized reporters select users to add to the issue's monitoring list.
* Monitors will only be notified of the submission if both their e-mail prefs
* and the flags allow it (i.e. `$g_notify_flags['new']['monitor'] = ON`).
* @see $g_monitor_add_others_bug_threshold
* @see $g_notify_flags
*
* This setting can be set on a per-project basis by using the
* Manage => Manage Configuration administrator page.
*
* @global array $g_bug_report_page_fields
*/
$g_bug_report_page_fields = array(
'additional_info',
'attachments',
'category_id',
'due_date',
'handler',
'os',
'os_build',
'platform',
'priority',
'product_build',
'product_version',
'reproducibility',
'severity',
'steps_to_reproduce',
'tags',
'target_version',
'view_state',
);
/**
* An array of optional fields to show on the bug view page.
*
* The following optional fields are allowed:
* - additional_info
* - attachments
* - category_id
* - date_submitted
* - description
* - due_date
* - eta
* - fixed_in_version
* - handler
* - id
* - last_updated
* - os
* - os_build
* - platform
* - priority
* - product_build
* - product_version
* - project
* - projection
* - reporter
* - reproducibility
* - resolution
* - severity
* - status
* - steps_to_reproduce
* - summary
* - tags
* - target_version
* - view_state
*
* Fields not listed above cannot be shown on the bug view page. Visibility of
* custom fields is handled via the Manage => Custom Fields
* administrator page.
*
* This setting can be set on a per-project basis by using the
* Manage => Manage Configuration administrator page.
*
* @global array $g_bug_view_page_fields
*/
$g_bug_view_page_fields = array(
'additional_info',
'attachments',
'category_id',
'date_submitted',
'description',
'due_date',
'eta',
'fixed_in_version',
'handler',
'id',
'last_updated',
'os',
'os_build',
'platform',
'priority',
'product_build',
'product_version',
'project',
'projection',
'reporter',
'reproducibility',
'resolution',
'severity',
'status',
'steps_to_reproduce',
'summary',
'tags',
'target_version',
'view_state',
);
/**
* An array of optional fields to show on the bug update page.
*
* The following optional fields are allowed:
* - additional_info
* - category_id
* - date_submitted
* - description
* - due_date
* - eta
* - fixed_in_version
* - handler
* - id
* - last_updated
* - os
* - os_build
* - platform
* - priority
* - product_build
* - product_version
* - project
* - projection
* - reporter
* - reproducibility
* - resolution
* - severity
* - status
* - steps_to_reproduce
* - summary
* - target_version
* - view_state
*
* Fields not listed above cannot be shown on the bug update page. Visibility
* of custom fields is handled via the Manage => Custom Fields
* administrator page.
*
* This setting can be set on a per-project basis by using the
* Manage => Manage Configuration administrator page.
*
* @global array $g_bug_update_page_fields
*/
$g_bug_update_page_fields = array(
'additional_info',
'category_id',
'date_submitted',
'description',
'due_date',
'eta',
'fixed_in_version',
'handler',
'id',
'last_updated',
'os',
'os_build',
'platform',
'priority',
'product_build',
'product_version',
'project',
'projection',
'reporter',
'reproducibility',
'resolution',
'severity',
'status',
'steps_to_reproduce',
'summary',
'target_version',
'view_state',
);
##########################
# MantisBT Misc Settings #
##########################
/**
* Access level needed to report a bug.
*
* @global int $g_report_bug_threshold
*/
$g_report_bug_threshold = REPORTER;
/**
* Access level needed to update bugs (i.e., the update_bug_page).
*
* This controls whether the user sees the "Update Bug" button in bug_view*_page
* and the pencil icon in view_all_bug_page.
*
* @global int $g_update_bug_threshold
*/
$g_update_bug_threshold = UPDATER;
/**
* Access level needed to view bugs.
*
* @global int $g_view_bug_threshold
*/
$g_view_bug_threshold = VIEWER;
/**
* Access level needed to monitor bugs.
*
* @global int $g_monitor_bug_threshold
*/
$g_monitor_bug_threshold = REPORTER;
/**
* Threshold needed to show the list of users monitoring a bug on the bug view pages.
*
* @global int $g_show_monitor_list_threshold
*/
$g_show_monitor_list_threshold = DEVELOPER;
/**
* Access level needed to add other users to the list of users monitoring a bug.
*
* This setting should not be lower than {@see $g_show_monitor_list_threshold}.
*
* @global int $g_monitor_add_others_bug_threshold
*/
$g_monitor_add_others_bug_threshold = DEVELOPER;
/**
* Access level needed to delete other users from the list of users
* monitoring a bug.
*
* This setting should not be lower than {@see $g_show_monitor_list_threshold}.
*
* @global int $g_monitor_delete_others_bug_threshold
*/
$g_monitor_delete_others_bug_threshold = DEVELOPER;
/**
* Access level required to print issue reports.
*
* Grants users access to the Print Reports functionality (Word/HTML) from the
* View Issues page (print_all_bug_page.php and print_all_bug_page_word.php).
*
* @global int $g_print_reports_threshold
*/
$g_print_reports_threshold = UPDATER;
/**
* Access level required to export issues.
*
* Lets user export issues to CSV and Excel from the View Issues page.
*
* @global int $g_export_issues_threshold
*/
$g_export_issues_threshold = VIEWER;
/**
* Access level needed to view private bugs.
*
* @global int $g_private_bug_threshold
*/
$g_private_bug_threshold = DEVELOPER;
/**
* Access level needed to be able to be listed in the assign to field.
*
* @global int $g_handle_bug_threshold
*/
$g_handle_bug_threshold = DEVELOPER;
/**
* Access level needed to assign issues.
*
* Allows control over who can route bugs, via display of the
* - "Assign To:" button on bug_view*_page
* - "Assigned" list in bug_update*_page.
*
* Defaults to {@see $g_handle_bug_threshold}.
*
* @global int $g_update_bug_assign_threshold
*/
$g_update_bug_assign_threshold = '%handle_bug_threshold%';
/**
* Access level needed to view private bugnotes.
*
* @global int $g_private_bugnote_threshold
*/
$g_private_bugnote_threshold = DEVELOPER;
/**
* Access level needed to view handler.
*
* @global int $g_view_handler_threshold
*/
$g_view_handler_threshold = VIEWER;
/**
* Access level needed to view history.
*
* @global int $g_view_history_threshold
*/
$g_view_history_threshold = VIEWER;
/**
* Access level needed to send a reminder from the bug view pages.
*
* Set to NOBODY to disable the feature.
*
* @global int $g_bug_reminder_threshold
*/
$g_bug_reminder_threshold = DEVELOPER;
/**
* Access level required to view bug history revisions.
*
* Users can always see revisions for the issues and bugnotes they reported.
*
* @global int $g_bug_revision_view_threshold
*/
$g_bug_revision_view_threshold = DEVELOPER;
/**
* Access level required to drop bug history revisions.
*
* @global int $g_bug_revision_drop_threshold
*/
$g_bug_revision_drop_threshold = MANAGER;
/**
* Access level needed to upload files to the project documentation section.
*
* You can set this to NOBODY to prevent uploads to projects.
*
* @see $g_enable_project_documentation
* @see $g_view_proj_doc_threshold
* @see $g_allow_file_upload
* @see $g_upload_bug_file_threshold
* @global int $g_upload_project_file_threshold
*/
$g_upload_project_file_threshold = MANAGER;
/**
* Access level needed to upload files to attach to a bug.
*
* You can set this to NOBODY to prevent uploads to bugs but note that
* the reporter of the bug will still be able to upload unless you set
* {@see $g_allow_reporter_upload} or {@see $g_allow_file_upload} to OFF.
*
* @see $g_upload_project_file_threshold
* @global int $g_upload_bug_file_threshold
*/
$g_upload_bug_file_threshold = REPORTER;
/**
* Add bugnote threshold.
*
* @global int $g_add_bugnote_threshold
*/
$g_add_bugnote_threshold = REPORTER;
/**
* Threshold at which a user can edit the bugnotes of other users.
*
* @global int $g_update_bugnote_threshold
*/
$g_update_bugnote_threshold = DEVELOPER;
/**
* Threshold needed to view project documentation.
*
* Note: setting this to ANYBODY will let any user download attachments
* from private projects, regardless of their being a member of it.
*
* @see $g_enable_project_documentation
* @see $g_upload_project_file_threshold
* @global int $g_view_proj_doc_threshold
*/
$g_view_proj_doc_threshold = VIEWER;
/**
* Site manager.
*
* @global int $g_manage_site_threshold
*/
$g_manage_site_threshold = MANAGER;
/**
* Threshold at which a user is considered to be a site administrator.
*
* These users have "superuser" access to all aspects of MantisBT including
* the admin/ directory.
*
* WARNING: DO NOT CHANGE THIS VALUE UNLESS YOU ABSOLUTELY KNOW WHAT YOU'RE DOING!
* Users at this access level have the ability to damage your MantisBT installation
* and data within the database. It is strongly advised you leave this option alone.
*
* @global int $g_admin_site_threshold
*/
$g_admin_site_threshold = ADMINISTRATOR;
/**
* Threshold needed to manage a project.
*
* Allows changing project details and settings (not to add/delete projects).
*
* @global int $g_manage_project_threshold
*/
$g_manage_project_threshold = MANAGER;
/**
* Threshold needed to add/delete/modify news.
*
* @global int $g_manage_news_threshold
*/
$g_manage_news_threshold = MANAGER;
/**
* Threshold required to delete a project.
*
* @global int $g_delete_project_threshold
*/
$g_delete_project_threshold = ADMINISTRATOR;
/**
* Threshold needed to create a new project.
*
* @global int $g_create_project_threshold
*/
$g_create_project_threshold = ADMINISTRATOR;
/**
* Threshold needed to be automatically included in private projects.
*
* @global int $g_private_project_threshold
*/
$g_private_project_threshold = ADMINISTRATOR;
/**
* Threshold needed to manage user access to a project.
*
* @global int $g_project_user_threshold
*/
$g_project_user_threshold = MANAGER;
/**
* Threshold needed to manage user accounts.
*
* @global int $g_manage_user_threshold
*/
$g_manage_user_threshold = ADMINISTRATOR;
/**
* Threshold needed to impersonate a user or NOBODY to disable the feature.
*
* @global int $g_impersonate_user_threshold
*/
$g_impersonate_user_threshold = ADMINISTRATOR;
/**
* Delete bug threshold.
*
* @global int $g_delete_bug_threshold
*/
$g_delete_bug_threshold = DEVELOPER;
/**
* Threshold at which a user can delete the bugnotes of other users.
*
* The default value is equal to {@see $g_delete_bug_threshold}.
*
* @global string $g_delete_bugnote_threshold
*/
$g_delete_bugnote_threshold = '%delete_bug_threshold%';
/**
* Move bug threshold.
*
* @global int $g_move_bug_threshold
*/
$g_move_bug_threshold = DEVELOPER;
/**
* Threshold needed to set the view status while reporting a bug or a bug note.
*
* @global int $g_set_view_status_threshold
*/
$g_set_view_status_threshold = REPORTER;
/**
* Threshold needed to update the view status while updating a bug or a bug note.
*
* This threshold should be greater or equal to $g_set_view_status_threshold.
*
* @global int $g_change_view_status_threshold
*/
$g_change_view_status_threshold = UPDATER;
/**
* Threshold needed to be able to use stored queries.
*
* @global int $g_stored_query_use_threshold
*/
$g_stored_query_use_threshold = REPORTER;
/**
* Threshold needed to be able to create stored queries.
*
* @global int $g_stored_query_create_threshold
*/
$g_stored_query_create_threshold = DEVELOPER;
/**
* Threshold needed to be able to create shared stored queries.
*
* @global int $g_stored_query_create_shared_threshold
*/
$g_stored_query_create_shared_threshold = MANAGER;
/**
* Threshold needed to update read-only bugs.
*
* Read-only bugs are identified via {@see $g_bug_readonly_status_threshold}.
*
* @global int $g_update_readonly_bug_threshold
*/
$g_update_readonly_bug_threshold = MANAGER;
/**
* Threshold for viewing Changelog.
*
* @global int $g_view_changelog_threshold
*/
$g_view_changelog_threshold = VIEWER;
/**
* Threshold for viewing timeline.
*
* @global int $g_timeline_view_threshold
*/
$g_timeline_view_threshold = VIEWER;
/**
* Threshold for viewing Roadmap.
*
* @global int $g_roadmap_view_threshold
*/
$g_roadmap_view_threshold = VIEWER;
/**
* Threshold for updating roadmap, target_version, etc.
*
* @global int $g_roadmap_update_threshold
*/
$g_roadmap_update_threshold = DEVELOPER;
/**
* Status change thresholds.
*
* @global int $g_update_bug_status_threshold
*/
$g_update_bug_status_threshold = DEVELOPER;
/**
* Access level needed to re-open bugs.
*
* @global int $g_reopen_bug_threshold
*/
$g_reopen_bug_threshold = DEVELOPER;
/**
* Access level needed to assign bugs to unreleased product versions.
*
* @global int $g_report_issues_for_unreleased_versions_threshold
*/
$g_report_issues_for_unreleased_versions_threshold = DEVELOPER;
/**
* Access level needed to set a bug sticky.
*
* @global int $g_set_bug_sticky_threshold
*/
$g_set_bug_sticky_threshold = MANAGER;
/**
* Define access thresholds needed to enter each status listed.
*
* If a status is not listed, it falls back to {@see $g_update_bug_status_threshold}
*
* Example:
* $g_set_status_threshold = array(
* ACKNOWLEDGED => MANAGER,
* CONFIRMED => DEVELOPER,
* CLOSED => MANAGER
* );
* @global array $g_set_status_threshold
*/
$g_set_status_threshold = array( NEW_ => REPORTER );
/**
* Threshold at which a user can edit his/her own bugnotes.
*
* The default value is equal to the configuration setting
* {@see $g_update_bugnote_threshold.}
*
* @global int $g_bugnote_user_edit_threshold
*/
$g_bugnote_user_edit_threshold = '%update_bugnote_threshold%';
/**
* Threshold at which a user can delete his/her own bugnotes.
*
* The default value is equal to the configuration setting
* {@see $g_delete_bugnote_threshold}.
*
* @global int $g_bugnote_user_delete_threshold
*/
$g_bugnote_user_delete_threshold = '%delete_bugnote_threshold%';
/**
* Threshold at which a user can change the view state of his/her own bugnotes.
*
* The default value is equal to the configuration setting
* {@see $g_change_view_status_threshold}.
*
* @global int $g_bugnote_user_change_view_state_threshold
*/
$g_bugnote_user_change_view_state_threshold = '%change_view_status_threshold%';
/**
* Allow a bug to have no category.
*
* @global int $g_allow_no_category
*/
$g_allow_no_category = OFF;
/**
* Limit reporters.
*
* Set to ON if you wish to limit reporters to only viewing bugs that they report.
*
* This feature is deprecated and replaced by the 'limit_view_unless_threshold'
* option. It must be OFF to enable the new one.
*
* @global int $g_limit_reporters
* @deprecated 2.24.0 Use $g_limit_view_unless_threshold instead
*/
$g_limit_reporters = OFF;
/**
* Threshold at which a user can view all issues in the project (as allowed by other permissions).
*
* Not meeting this threshold means the user can only see the issues they reported,
* are handling or monitoring.
*
* A value of ANYBODY means that all users have full visibility (as default)
*
* This is a replacement for old option {@see $g_limit_reporters}.
*
* @global int $g_limit_view_unless_threshold
*/
$g_limit_view_unless_threshold = ANYBODY;
/**
* Reporter can close.
*
* Allow reporters to close the bugs they reported, after they are marked resolved.
*
* @global int $g_allow_reporter_close
*/
$g_allow_reporter_close = OFF;
/**
* Reporter can reopen.
*
* Allow reporters to reopen the bugs they reported, after they are marked resolved.
*
* @global int $g_allow_reporter_reopen
*/
$g_allow_reporter_reopen = ON;
/**
* Reporter can upload.
*
* Allow reporters to upload attachments to bugs they reported.
*
* @global int $g_allow_reporter_upload
*/
$g_allow_reporter_upload = ON;
/**
* Account delete.
*
* Allow users to delete their own accounts.
*
* @global int $g_allow_account_delete
*/
$g_allow_account_delete = OFF;
/**
* Enable anonymous access to MantisBT.
*
* You must also specify {@see $g_anonymous_account} as the account which
* anonymous users will browse MantisBT with.
*
* The default setting is OFF.
*
* @global int $g_allow_anonymous_login
*/
$g_allow_anonymous_login = OFF;
/**
* Define the account which anonymous users will assume when using MantisBT.
*
* You only need to define this setting when {@see $g_allow_anonymous_login} is
* set to ON. This account will always be treated as a protected account and
* thus anonymous users will not be able to update the preferences or settings
* of this account.
*
* It is suggested that the access level of this account have read only access
* to your MantisBT installation (VIEWER). Please read the documentation on this
* topic before setting up anonymous access to your MantisBT installation.
*
* @global string $g_anonymous_account
*/
$g_anonymous_account = '';
/**
* Bug Linking.
*
* If a number matching an existing issue number follows this tag it, MantisBT
* will create a link to that bug.
*
* Examples:
* - for '#', a link would be '#45'
* - for 'bug:' a link would be 'bug:98'
*
* @global string $g_bug_link_tag
*/
$g_bug_link_tag = '#';
/**
* Bugnote Linking.
*
* if a number matching an existing bugnote id follows this tag, MantisBT
* will create a link to that bugnote.
*
* Examples:
* - for '~' a link would be '~45'
* - for 'bugnote:' a link would be 'bugnote:98'
*
* @global string $g_bugnote_link_tag
*/
$g_bugnote_link_tag = '~';
/**
* Bug Count Linking.
*
* This is the prefix to use when creating links to bug views from bug counts
* (eg. on the Main page and the Summary page).
*
* - Temporary filter (default):
* 'view_all_set.php?type=' . FILTER_ACTION_PARSE_NEW . '&amp;temporary=y'
* - Permanent filter:
* 'view_all_set.php?type=' . FILTER_ACTION_PARSE_NEW;
*
* NOTE: FILTER_ACTION_xxx constants are defined in core/constant_inc.php.
*
* @global string $g_bug_count_hyperlink_prefix
*/
$g_bug_count_hyperlink_prefix = 'view_all_set.php?type=' . FILTER_ACTION_PARSE_NEW . '&amp;temporary=y';
/**
* The regular expression to use when validating new user login names.
*
* The default allows a-z, A-Z, 0-9, +, -, dot, space and underscore.
*
* If you change this, you may want to update the ERROR_USER_NAME_INVALID string
* in the language files to explain the rules you are using on your site
*
* See {@link https://en.wikipedia.org/wiki/Regular_expression} for more details
* about regular expressions. For testing them, use {@link https://rubular.com/}.
*
* @global string $g_user_login_valid_regex
*/
$g_user_login_valid_regex = '/^([a-z\d\-.+_ ]+(@[a-z\d\-.]+\.[a-z]{2,18})?)$/i';
/**
* Default tag prefix used to filter the list of tags in manage_tags_page.php.
*
* Change this to 'A' (or any other letter) if you have a lot of tags in the
* system and loading the manage tags page takes a long time.
*
* @global string $g_default_manage_tag_prefix
*/
$g_default_manage_tag_prefix = 'ALL';
/**
* The separator to use for CSV exports.
*
* @global string $g_csv_separator
*/
$g_csv_separator = ',';
/**
* Protection against CSV Injection.
*
* When this setting is ON (default), any data that could be interpreted as a
* formula by a spreadsheet program such as Excel (i.e. starting with `=`, `@`,
* `-` or `+`), will be prefixed with a tab character (\t) in order to prevent
* CSV injection.
*
* Sometimes this may not be appropriate (e.g. if the CSV needs to be consumed
* programmatically). In that case, $g_csv_injection_protection can be set to OFF,
* resulting in raw data to be exported.
*
* Setting this to OFF is a security risk. An attacker could upload a crafted
* CSV file containing formulas that will be executed when opened with Excel,
* as described in this article {@link http://georgemauer.net/2017/10/07/csv-injection.html}.
*
* @global string $g_csv_injection_protection
*/
$g_csv_injection_protection = ON;
/**
* The threshold required for users to be able to manage configuration of a project.
*
* This includes workflow, email notifications, columns to view, and others.
*
* @global int $g_manage_configuration_threshold
*/
$g_manage_configuration_threshold = MANAGER;
/**
* Threshold for users to view the system configurations.
*
* @global int $g_view_configuration_threshold
*/
$g_view_configuration_threshold = ADMINISTRATOR;
/**
* Threshold for users to set the system configurations generically via
* MantisBT web interface.
*
* WARNING: Users who have access to set configuration via the interface MUST
* be trusted. This is due to the fact that such users can set configurations
* to PHP code and hence there can be a security risk if such users are not
* trusted.
*
* @global int $g_set_configuration_threshold
*/
$g_set_configuration_threshold = ADMINISTRATOR;
####################################
# MantisBT Look and Feel Variables #
####################################
/**
* Status color codes, using the Tango color palette.
*
* @global array $g_status_colors
*/
$g_status_colors = array(
'new' => '#fcbdbd', # red (scarlet red #ef2929)
'feedback' => '#e3b7eb', # purple (plum #75507b)
'acknowledged' => '#ffcd85', # orange (orango #f57900)
'confirmed' => '#fff494', # yellow (butter #fce94f)
'assigned' => '#c2dfff', # blue (sky blue #729fcf)
'resolved' => '#d2f5b0', # green (chameleon #8ae234)
'closed' => '#c9ccc4' # grey (aluminum #babdb6)
);
/**
* The padding level when displaying bug ids.
*
* The bug id will be padded with 0's up to the size given
*
* @global int $g_display_bug_padding
*/
$g_display_bug_padding = 7;
/**
* The padding level when displaying bugnote ids.
*
* The bugnote id will be padded with 0's up to the size given.
*
* @global int $g_display_bugnote_padding
*/
$g_display_bugnote_padding = 7;
#############################
# MantisBT Cookie Variables #
#############################
/**
* Specifies the path under which a cookie is visible.
*
* All scripts in this directory and its sub-directories will be able
* to access MantisBT cookies.
*
* It is recommended to set this to the actual MantisBT path.
*
* @link http://php.net/function.setcookie
* @global string $g_cookie_path
*/
$g_cookie_path = '/';
/**
* The domain that the MantisBT cookies are available to.
*
* @global string $g_cookie_domain
*/
$g_cookie_domain = '';
/**
* Specifies the SameSite attribute to use for the MantisBT cookies.
*
* Valid values are Strict, Lax (default) or None.
*
* NOTE: While 'Strict' provides stronger protection against CSRF attacks, it
* actually prevents the user's session from being recognized when clicking a
* link from a notification e-mail, causing MantisBT to start an anonymous
* session even if the user is already logged in.
*
* @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
*
* @global string $g_cookie_samesite
*/
$g_cookie_samesite = 'Lax';
/**
* Prefix for all MantisBT cookies.
*
* This should be an identifier which does not include spaces or periods,
* and should be unique per MantisBT installation, especially if
* $g_cookie_path is not restricting the cookies' scope to the actual
* MantisBT directory.
*
* @see $g_cookie_path
* @global string $g_cookie_prefix
*/
$g_cookie_prefix = 'MANTIS';
/**
*
* @global string $g_string_cookie
*/
$g_string_cookie = '%cookie_prefix%_STRING_COOKIE';
/**
*
* @global string $g_project_cookie
*/
$g_project_cookie = '%cookie_prefix%_PROJECT_COOKIE';
/**
*
* @global string $g_view_all_cookie
*/
$g_view_all_cookie = '%cookie_prefix%_VIEW_ALL_COOKIE';
/**
* Collapse settings cookie.
*
* Stores the open/closed state of the collapsible sections.
*
* @global string $g_collapse_settings_cookie
*/
$g_collapse_settings_cookie = '%cookie_prefix%_collapse_settings';
/**
* Stores the filter criteria for the Manage User page.
*
* @global string $g_manage_users_cookie
*/
$g_manage_users_cookie = '%cookie_prefix%_MANAGE_USERS_COOKIE';
/**
* Stores the filter criteria for the Manage Config Report page.
*
* @global string $g_manage_config_cookie
*/
$g_manage_config_cookie = '%cookie_prefix%_MANAGE_CONFIG_COOKIE';
/**
*
* @global string $g_logout_cookie
*/
$g_logout_cookie = '%cookie_prefix%_LOGOUT_COOKIE';
/**
*
* @global string $g_bug_list_cookie
*/
$g_bug_list_cookie = '%cookie_prefix%_BUG_LIST_COOKIE';
#############################
# MantisBT Filter Variables #
#############################
/**
* Show custom fields in the filter dialog and use these in filtering.
*
* @global int $g_filter_by_custom_fields
*/
$g_filter_by_custom_fields = ON;
/**
* The number of filter fields to display per row.
*
* The default is 8.
*
* @global int $g_filter_custom_fields_per_row
*/
$g_filter_custom_fields_per_row = 8;
/**
* Controls the display of the filter pages.
*
* Possible values are:
* - SIMPLE_ONLY - only simple view
* - ADVANCED_ONLY - only advanced view (allows multiple value selections)
* - SIMPLE_DEFAULT - defaults to simple view, but shows a link for advanced
* - ADVANCED_DEFAULT - defaults to advanced view, but shows a link for simple
*
* @global int $g_view_filters
*/
$g_view_filters = SIMPLE_DEFAULT;
/**
* Allow use of dynamic filter controls.
*
* This switch enables the use of AJAX to dynamically load and create filter
* form controls upon request. This method will reduce the amount of data that
* needs to be transferred upon each page load dealing with filters and thus
* will result in speed improvements and bandwidth reduction.
*
* @global int $g_use_dynamic_filters
*/
$g_use_dynamic_filters = ON;
/**
* The threshold required for users to be able to create permalinks.
*
* To turn off this feature use NOBODY.
*
* @global int $g_create_permalink_threshold
*/
$g_create_permalink_threshold = DEVELOPER;
/**
* The service to use to create a short URL.
*
* The %s will be replaced by the long URL.
* To disable the feature set to ''.
*
* @global string $g_create_short_url
*/
$g_create_short_url = 'https://tinyurl.com/create.php?url=%s';
#########################
# MantisBT Enum Strings #
#########################
/**
* Access levels enumeration.
*
* Status from $g_status_index-1 to 79 are used for the onboard customization
* (if enabled) directly use MantisBT to edit them.
* @global string $g_access_levels_enum_string
*/
$g_access_levels_enum_string = '10:viewer,25:reporter,40:updater,55:developer,70:manager,90:administrator';
/**
* Project statuses enumeration.
*
* @global string $g_project_status_enum_string
*/
$g_project_status_enum_string = '10:development,30:release,50:stable,70:obsolete';
/**
* Project view state enumeration.
*
* @global string $g_project_view_state_enum_string
*/
$g_project_view_state_enum_string = '10:public,50:private';
/**
* Bug view state enumeration.
*
* @global string $g_view_state_enum_string
*/
$g_view_state_enum_string = '10:public,50:private';
/**
* Priority enumeration.
*
* @global string $g_priority_enum_string
*/
$g_priority_enum_string = '10:none,20:low,30:normal,40:high,50:urgent,60:immediate';
/**
* Severity enumeration.
*
* @global string $g_severity_enum_string
*/
$g_severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block';
/**
* Reproducibility enumeration.
*
* @global string $g_reproducibility_enum_string
*/
$g_reproducibility_enum_string = '10:always,30:sometimes,50:random,70:have not tried,90:unable to duplicate,100:N/A';
/**
* Statuses enumeration.
*
* @global string $g_status_enum_string
*/
$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed';
/**
* Resolutions enumeration.
*
* @@@ for documentation, the values in this list are also used to define
* variables in the language files (e.g., $s_new_bug_title referenced in
* bug_change_status_page.php). Embedded spaces are converted to underscores
* (e.g., "working on" references $s_working_on_bug_title). They are also
* expected to be English names for the states
*
* @global string $g_resolution_enum_string
*/
$g_resolution_enum_string = '10:open,20:fixed,30:reopened,40:unable to duplicate,50:not fixable,60:duplicate,70:not a bug,80:suspended,90:wont fix';
/**
* Projection enumeration.
*
* @global string $g_projection_enum_string
*/
$g_projection_enum_string = '10:none,30:tweak,50:minor fix,70:major rework,90:redesign';
/**
* ETA enumeration.
*
* @global string $g_eta_enum_string
*/
$g_eta_enum_string = '10:none,20:< 1 day,30:2-3 days,40:< 1 week,50:< 1 month,60:> 1 month';
/**
* Sponsorship enumeration.
*
* @global string $g_sponsorship_enum_string
*/
$g_sponsorship_enum_string = '0:Unpaid,1:Requested,2:Paid';
/**
* Custom Field types enumeration.
*
* @global string $g_custom_field_type_enum_string
*/
$g_custom_field_type_enum_string = '0:string,1:numeric,2:float,3:enum,4:email,5:checkbox,6:list,7:multiselection list,8:date,9:radio,10:textarea';
###############################
# MantisBT Speed Optimisation #
###############################
/**
* Use compression of generated html if browser supports it.
*
* If you already have compression enabled in your php.ini file (either with
* zlib.output_compression or output_handler=ob_gzhandler) this option will be
* ignored.
*
* If you do not have zlib enabled in your PHP installation this option will
* also be ignored. PHP 4.3.0 and later have zlib included by default. Windows
* users should uncomment the appropriate line in their php.ini files to load
* the zlib DLL. You can check what extensions are loaded by running "php -m"
* at the command line (look for 'zlib').
*
* @global int $g_compress_html
*/
$g_compress_html = ON;
/**
* Use persistent database connections.
*
* @global int $g_use_persistent_connections
*/
$g_use_persistent_connections = OFF;
#################
# Include files #
#################
/**
* Specify your top/bottom include file (logos, banners, etc).
*
* @global string $g_bottom_include_page
*/
$g_bottom_include_page = '%absolute_path%';
/**
* Specify your top/bottom include file (logos, banners, etc).
*
* If a top file is supplied, the default MantisBT logo at the top will be hidden.
* For example, you could include a centered title at the top of the page with:
*
* <div class="center"><span class="pagetitle">TITLE</span></div>
*
* The default banner which is removed if you use an include file can be found in html_api.php in
* the function called html_top_banner.
*
* @global string $g_top_include_page
*/
$g_top_include_page = '%absolute_path%';
/**
* CSS file.
*
* @global string $g_css_include_file
*/
$g_css_include_file = 'default.css';
/**
* RTL CSS file.
*
* @global string $g_css_rtl_include_file
*/
$g_css_rtl_include_file = 'rtl.css';
/**
* Use CDN for loading javascript libraries and their associated CSS.
*
* Using Content Delivery Networks (CDN) can improve performance for loading
* MantisBT pages.
*
* This can be disabled if MantisBT shouldn't reach out outside of the
* corporate network.
*
* @global int $g_cdn_enabled
*/
$g_cdn_enabled = OFF;
################
# Redirections #
################
/**
* Default page after Login or Set Project.
*
* @global string $g_default_home_page
*/
$g_default_home_page = 'my_view_page.php';
/**
* Specify where the user should be sent after logging out.
*
* @global string $g_logout_redirect_page
*/
$g_logout_redirect_page = AUTH_PAGE_USERNAME;
###########
# Headers #
###########
/**
* An array of custom headers to be sent with each page.
*
* For example, to allow your MantisBT installation to be viewed in a frame in
* IE6 when the frameset is not at the same hostname as the MantisBT install,
* you need to add a P3P header. You could try something like
* 'P3P: CP="CUR ADM"' in your config file, but make sure to check that the
* your policy actually matches with what you are promising. See
* http://msdn.microsoft.com/en-us/library/ms537343.aspx for more information.
*
* Even though this is not recommended, you could use this setting to disable
* previously sent headers. For example, assuming you didn't want to benefit
* from Content Security Policy, you could add 'Content-Security-Policy:' to
* the array.
*
* @global array $g_custom_headers
*/
$g_custom_headers = array();
/**
* Browser Caching Control.
*
* By default, we try to prevent the browser from caching anything. This setting
* will allow the browser to cache all pages. The upside will be better
* performance overall, but there may be cases where outdated information is
* displayed.
*
* @global int $g_allow_browser_cache
*/
$g_allow_browser_cache = OFF;
#################
# Custom Fields #
#################
/**
* Threshold needed to manage custom fields.
*
* @global int $g_manage_custom_fields_threshold
*/
$g_manage_custom_fields_threshold = ADMINISTRATOR;
/**
* Threshold needed to link/unlink custom field to/from a project.
*
* @global int $g_custom_field_link_threshold
*/
$g_custom_field_link_threshold = MANAGER;
/**
* Whether to start editing a custom field immediately after creating it.
*
* @global int $g_custom_field_edit_after_create
*/
$g_custom_field_edit_after_create = ON;
################
# Custom Menus #
################
/**
* Add custom options to the main menu.
*
* For example:
* $g_main_menu_custom_options = array(
* array(
* 'title' => 'My Link',
* 'access_level' => MANAGER,
* 'url' => 'my_link.php',
* 'icon' => 'fa-plug'
* ),
* array(
* 'title' => 'My Link2',
* 'access_level' => ADMINISTRATOR,
* 'url' => 'my_link2.php',
* 'icon' => 'fa-plug'
* )
* );
*
* Note that if the caption is a localized string name (in strings_english.txt
* or custom_strings_inc.php), then it will be replaced by the translated
* string. Options will only be added to the menu if the current logged in
* user has the appropriate access level.
*
* Access level is an optional field, and no check will be done if it is not set.
* Icon is an optional field, and 'fa-plug' will be used if it is not set.
*
* Use icons from http://fontawesome.io/icons/ - Add "fa-" prefix to icon name.
*
* @global array $g_main_menu_custom_options
*/
$g_main_menu_custom_options = array();
#########
# Icons #
#########
/**
* Maps a file extension to a file type icon.
*
* These icons are printed next to project documents and bug attachments.
* Note:
* - Extensions must be in lower case
* - All icons will be displayed as 16x16 pixels.
*
* @global array $g_file_type_icons
*/
$g_file_type_icons = array(
'' => 'fa-file-text-o',
'7z' => 'fa-file-archive-o',
'ace' => 'fa-file-archive-o',
'arj' => 'fa-file-archive-o',
'bz2' => 'fa-file-archive-o',
'c' => 'fa-file-code-o',
'chm' => 'fa-file-o',
'cpp' => 'fa-file-code-o',
'css' => 'fa-file-code-o',
'csv' => 'fa-file-text-o',
'cxx' => 'fa-file-code-o',
'diff' => 'fa-file-text-o',
'doc' => 'fa-file-word-o',
'docx' => 'fa-file-word-o',
'dot' => 'fa-file-word-o',
'eml' => 'fa-envelope-o',
'htm' => 'fa-file-code-o',
'html' => 'fa-file-code-o',
'gif' => 'fa-file-image-o',
'gz' => 'fa-file-archive-o',
'jpe' => 'fa-file-image-o',
'jpg' => 'fa-file-image-o',
'jpeg' => 'fa-file-image-o',
'log' => 'fa-file-text-o',
'lzh' => 'fa-file-archive-o',
'md' => 'fa-file-text-o',
'mhtml' => 'fa-file-code-o',
'mid' => 'fa-file-audio-o',
'midi' => 'fa-file-audio-o',
'mov' => 'fa-file-movie-o',
'mp3' => 'fa-file-audio-o',
'mp4' => 'fa-file-movie-o',
'msg' => 'fa-envelope-o',
'one' => 'fa-file-o',
'ogg' => 'fa-file-movie-o',
'patch' => 'fa-file-text-o',
'pcx' => 'fa-file-image-o',
'pdf' => 'fa-file-pdf-o',
'png' => 'fa-file-image-o',
'pot' => 'fa-file-word-o',
'pps' => 'fa-file-powerpoint-o',
'ppt' => 'fa-file-powerpoint-o',
'pptx' => 'fa-file-powerpoint-o',
'pub' => 'fa-file-o',
'rar' => 'fa-file-archive-o',
'reg' => 'fa-file',
'rtf' => 'fa-file-word-o',
'tar' => 'fa-file-archive-o',
'tgz' => 'fa-file-archive-o',
'txt' => 'fa-file-text-o',
'uc2' => 'fa-file-archive-o',
'vsd' => 'fa-file-o',
'vsl' => 'fa-file-o',
'vss' => 'fa-file-o',
'vst' => 'fa-file-o',
'vsu' => 'fa-file-o',
'vsw' => 'fa-file-o',
'vsx' => 'fa-file-o',
'?' => 'fa-file-o'
);
/**
* Content Types overrides.
*
* Content types which will be overridden when downloading files.
*
* @global array $g_file_download_content_type_overrides
*/
$g_file_download_content_type_overrides = array(
'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template',
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template'
);
/**
* Icon associative arrays.
*
* Status to icon mapping.
*
* @global array $g_status_icon_arr
*/
$g_status_icon_arr = array(
NONE => '',
LOW => 'fa-chevron-down fa-lg green',
NORMAL => 'fa-minus fa-lg orange2',
HIGH => 'fa-chevron-up fa-lg red',
URGENT => 'fa-arrow-up fa-lg red',
IMMEDIATE => 'fa-exclamation-triangle fa-lg red'
);
/**
* Sort direction to icon mapping.
*
* @global array $g_sort_icon_arr
*/
$g_sort_icon_arr = array(
ASCENDING => 'fa-caret-up',
DESCENDING => 'fa-caret-down'
);
####################
# My View Settings #
####################
/**
* Number of bugs shown in each box.
*
* @global int $g_my_view_bug_count
*/
$g_my_view_bug_count = 10;
/**
* Boxes to be shown and their order.
*
* A box that is not to be shown can have its value set to 0.
*
* @global array $g_my_view_boxes
*/
$g_my_view_boxes = array(
'assigned' => '1',
'unassigned' => '2',
'reported' => '3',
'resolved' => '4',
'recent_mod' => '5',
'monitored' => '6',
'feedback' => '0',
'verify' => '0',
'my_comments' => '0'
);
#############
# RSS Feeds #
#############
/**
* This flag enables or disables RSS syndication.
*
* When RSS syndication is not used, it is recommended to set it to OFF.
*
* @global int $g_rss_enabled
*/
$g_rss_enabled = ON;
#####################
# Bug Relationships #
#####################
/**
* Enable relationship graphs support.
*
* Show issue relationships using graphs.
*
* In order to use this feature, you must first install GraphViz.
* @see https://www.graphviz.org/ Graphviz homepage
*
* Refer to the notes near the top of core/graphviz_api.php and
* core/relationship_graph_api.php for more information.
*
* @global int $g_relationship_graph_enable
*/
$g_relationship_graph_enable = OFF;
/**
* Complete path to dot and neato tools.
*
* Your webserver must have execute permission to these programs in order to
* generate relationship graphs.
*
* NOTE: On windows, the IIS user may require permissions to cmd.exe to be able
* to use PHP's proc_open.
*
* @global string $g_dot_tool
*/
$g_dot_tool = '/usr/bin/dot';
/**
* Complete path to dot and neato tools.
*
* Your webserver must have execute permission to these programs in order to
* generate relationship graphs.
*
* NOTE: On windows, the IIS user may require permissions to cmd.exe to be able
* to use PHP's proc_open.
*
* @global string $g_neato_tool
*/
$g_neato_tool = '/usr/bin/neato';
/**
* Font name and size, as required by Graphviz.
*
* If Graphviz fails to run for you, you are probably using a font name that
* GD can't find. On Linux, try the name of the font file without the extension.
*
* @global string $g_relationship_graph_fontname
*/
$g_relationship_graph_fontname = 'Arial';
/**
* Font Size for relationship graphs.
*
* @global int $g_relationship_graph_fontsize
*/
$g_relationship_graph_fontsize = 8;
/**
* Default dependency orientation.
*
* For best viewing, if you mostly have issues with lots of children or parents,
* leave as 'horizontal', otherwise, if you have lots of "chained" issue
* dependencies, change to 'vertical'.
*
* @global string $g_relationship_graph_orientation
*/
$g_relationship_graph_orientation = 'horizontal';
/**
* Max depth for relation graphs.
*
* This only affects relation graphs, dependency graphs are drawn to the full
* depth. A value of 3 is already enough to show issues really unrelated to the
* one you are currently viewing.
*
* @global int $g_relationship_graph_max_depth
*/
$g_relationship_graph_max_depth = 2;
/**
* Define behavior when clicking an issue in a relationship graph.
*
* If set to ON, clicking on an issue on the relationship graph will open
* the bug view page for that issue, otherwise, will navigate to the
* relationship graph for that issue.
*
* @global int $g_relationship_graph_view_on_click
*/
$g_relationship_graph_view_on_click = OFF;
/**
* Number of years in the past that custom date fields will display in
* drop down boxes.
*
* @global int $g_backward_year_count
*/
$g_backward_year_count = 4;
/**
* Number of years in the future that custom date fields will display in
* drop down boxes.
*
* @global int $g_forward_year_count
*/
$g_forward_year_count = 4;
/**
* Custom Group Actions.
*
* This extensibility model allows developing new group custom actions. This
* can be implemented with a totally custom form and action pages or with a
* pre-implemented form and action page and call-outs to some functions. These
* functions are to be implemented in a predefined file whose name is based on
* the action name. For example, for an action to add a note, the action would
* be EXT_ADD_NOTE and the file implementing it would be
* bug_actiongroup_add_note_inc.php. See implementation of this file for
* details.
*
* Sample:
*
* array(
* array(
* 'action' => 'my_custom_action',
* 'label' => 'my_label', # string to be passed to lang_get_defaulted()
* 'form_page' => 'my_custom_action_page.php',
* 'action_page' => 'my_custom_action.php'
* )
* array(
* 'action' => 'my_custom_action2',
* 'form_page' => 'my_custom_action2_page.php',
* 'action_page' => 'my_custom_action2.php'
* )
* array(
* 'action' => 'EXT_ADD_NOTE', # you need to implement bug_actiongroup_<action_without_'EXT_')_inc.php
* 'label' => 'actiongroup_menu_add_note' # see strings_english.txt for this label
* )
* );
*
* @global array $g_custom_group_actions
*/
$g_custom_group_actions = array();
####################
# Wiki Integration #
####################
/**
* Wiki Integration Enabled.
*
* @global int $g_wiki_enable
*/
$g_wiki_enable = OFF;
/**
* Wiki Engine.
*
* Supported engines: 'dokuwiki', 'mediawiki', 'twiki', 'wackowiki', 'wikka', 'xwiki'.
*
* @global string $g_wiki_engine
*/
$g_wiki_engine = '';
/**
* Wiki namespace.
*
* The namespace to be used as root for all pages relating to this MantisBT
* installation.
*
* @global string $g_wiki_root_namespace
*/
$g_wiki_root_namespace = 'mantis';
/**
* URL under which the wiki engine is hosted.
*
* Must be on the same server as MantisBT, requires trailing '/'.
*
* By default, this is derived from the global MantisBT path ($g_path),
* replacing the URL's path component by the wiki engine string (i.e. if
* $g_path = 'http://example.com/mantis/' and $g_wiki_engine = 'dokuwiki',
* the wiki URL will be 'http://example.com/dokuwiki/')
*
* @global string $g_wiki_engine_url
*/
$g_wiki_engine_url = '';
####################
# Recently Visited #
####################
/**
* This controls whether to show the most recently visited issues by the current user or not.
*
* If set to 0, this feature is disabled. Otherwise it is the maximum number of issues to
* keep in the recently visited list.
*
* @global int $g_recently_visited_count
*/
$g_recently_visited_count = 5;
###############
# Bug Tagging #
###############
/**
* String that will separate tags as entered for input.
*
* @global int $g_tag_separator
*/
$g_tag_separator = ',';
/**
* Access level required to view tags attached to a bug.
*
* @global int $g_tag_view_threshold
*/
$g_tag_view_threshold = VIEWER;
/**
* Access level required to attach tags to a bug.
*
* @global int $g_tag_attach_threshold
*/
$g_tag_attach_threshold = REPORTER;
/**
* Access level required to detach tags from a bug
* @global int $g_tag_detach_threshold
*/
$g_tag_detach_threshold = DEVELOPER;
/**
* Access level required to detach tags attached by the same user.
*
* @global int $g_tag_detach_own_threshold
*/
$g_tag_detach_own_threshold = REPORTER;
/**
* Access level required to create new tags.
*
* @global int $g_tag_create_threshold
*/
$g_tag_create_threshold = REPORTER;
/**
* Access level required to edit tag names and descriptions.
*
* @global int $g_tag_edit_threshold
*/
$g_tag_edit_threshold = DEVELOPER;
/**
* Access level required to edit descriptions by the creating user.
*
* @global int $g_tag_edit_own_threshold
*/
$g_tag_edit_own_threshold = REPORTER;
#################
# Time tracking #
#################
/**
* Turn on Time Tracking accounting.
*
* @global int $g_time_tracking_enabled
*/
$g_time_tracking_enabled = OFF;
/**
* A billing sums.
*
* @global int $g_time_tracking_with_billing
*/
$g_time_tracking_with_billing = OFF;
/**
* Stop watch to build time tracking field.
*
* @global int $g_time_tracking_stopwatch
*/
$g_time_tracking_stopwatch = OFF;
/**
* Access level required to view time tracking information.
*
* @global int $g_time_tracking_view_threshold
*/
$g_time_tracking_view_threshold = DEVELOPER;
/**
* Access level required to add/edit time tracking information.
*
* @global int $g_time_tracking_edit_threshold
*/
$g_time_tracking_edit_threshold = DEVELOPER;
/**
* Access level required to run reports.
*
* @global int $g_time_tracking_reporting_threshold
*/
$g_time_tracking_reporting_threshold = MANAGER;
/**
* Allow time tracking to be recorded without a bugnote.
*
* @global int $g_time_tracking_without_note
*/
$g_time_tracking_without_note = ON;
/**
* Default billing rate per hour.
*
* @global int $g_time_tracking_billing_rate
*/
$g_time_tracking_billing_rate = 0;
############################
# Profile Related Settings #
############################
/**
* Enable Profiles.
*
* @global int $g_enable_profiles
*/
$g_enable_profiles = ON;
/**
* Add profile threshold.
*
* @global int $g_add_profile_threshold
*/
$g_add_profile_threshold = REPORTER;
/**
* Threshold needed to be able to create and modify global profiles.
*
* @global int $g_manage_global_profile_threshold
*/
$g_manage_global_profile_threshold = MANAGER;
/**
* Allows the users to enter free text when reporting/updating issues.
*
* For the profile related fields (i.e. platform, os, os build)
*
* @global int $g_allow_freetext_in_profile_fields
*/
$g_allow_freetext_in_profile_fields = ON;
#################
# Plugin System #
#################
/**
* Enable/disable plugins.
*
* @global int $g_plugins_enabled
*/
$g_plugins_enabled = ON;
/**
* Absolute path to plugin files.
*
* @global string $g_plugin_path
*/
$g_plugin_path = $g_absolute_path . 'plugins' . DIRECTORY_SEPARATOR;
/**
* Threshold needed to manage plugins.
*
* @global int $g_manage_plugin_threshold
*/
$g_manage_plugin_threshold = ADMINISTRATOR;
/**
* A mapping of file extensions to mime types, used when serving resources from plugins.
*
*
* @global array $g_plugin_mime_types
*/
$g_plugin_mime_types = array(
'css' => 'text/css',
'js' => 'text/javascript',
'gif' => 'image/gif',
'png' => 'image/png',
'jpg' => 'image/jpeg',
'jpeg' => 'image/jpeg'
);
/**
* Force installation and protection of certain plugins.
*
* Note that this is not the preferred method of installing plugins,
* which should generally be done directly through the plugin management
* interface. However, this method will prevent users with admin access
* from uninstalling plugins through the plugin management interface.
*
* Entries in the array must be in the form of a key/value pair
* consisting of the plugin basename and priority, as such:
*
* = array(
* 'PluginA' => 5,
* 'PluginB' => 5,
* ...
*
* @global $g_plugins_force_installed
*/
$g_plugins_force_installed = array();
############
# Due Date #
############
/**
* Threshold to update due date submitted.
*
* @global int $g_due_date_update_threshold
*/
$g_due_date_update_threshold = NOBODY;
/**
* Threshold to see due date.
*
* @global int $g_due_date_view_threshold
*/
$g_due_date_view_threshold = NOBODY;
/**
* Default due date value for newly submitted issues.
*
* A valid relative date format {@link https://php.net/manual/en/datetime.formats.relative.php}
* e.g. 'today' or '+2 days', or empty string for no due date set (default).
*
* @global string $g_due_date_default
*/
$g_due_date_default = '';
/**
* Due date warning levels.
*
* A variable number of Levels (defined as a number of seconds going backwards
* from the current timestamp, compared to an issue's due date) can be defined.
* Levels must be defined in ascending order.
*
* - The first entry (array key 0) defines "Overdue". Normally and by default,
* its value is `0` meaning that issues will be marked overdue as soon as
* their due date has passed. However, it is also possible to set it to a
* higher value to flag overdue issues earlier, or even use a negative value
* to allow a "grace period" after due date.
* - Array keys 1 and 2 offer two levels of "Due soon": orange and green.
* By default, only the first one is set, to 7 days.
*
* Out of the box, MantisBT allows for 3 warning levels. Additional ones may
* be defined, but in that case new `due-N` CSS rules (where N is the
* array's index) must be created otherwise the extra levels will not be
* highlighted in the UI.
*
* @global array $g_due_date_warning_levels
*/
$g_due_date_warning_levels = array(
0,
7 * SECONDS_PER_DAY,
);
################
# Sub-projects #
################
/**
* Whether sub-projects feature should be enabled.
*
* Before turning this flag OFF, make sure all sub-projects are moved to
* top-level projects, otherwise they won't be accessible anymore.
*
* @global int $g_subprojects_enabled
*/
$g_subprojects_enabled = ON;
/**
* Sub-projects should inherit categories from parent projects.
*
* @global int $g_subprojects_inherit_categories
*/
$g_subprojects_inherit_categories = ON;
/**
* Sub-projects should inherit versions from parent projects.
*
* @global int $g_subprojects_inherit_versions
*/
$g_subprojects_inherit_versions = ON;
#########################################
# System Logging and Debugging Settings #
#########################################
/**
* Time page loads.
*
* The page execution timer shows at the bottom of each page.
*
* @global int $g_show_timer
*/
$g_show_timer = OFF;
/**
* Show memory usage for each page load in the footer.
*
* @global int $g_show_memory_usage
*/
$g_show_memory_usage = OFF;
/**
* Email address to use for debugging purposes.
*
* This option is used for debugging problems with the email features in mantis,
* and can be set to a valid email address.
*
* This is blank by default, meaning that email notifications are sent to their
* intended recipients (normal system behavior).
*
* If set, emails will only be sent to the specified address instead, and the
* original recipients (To, Cc and Bcc) will be included in the message body.
*
* @global string $g_debug_email
*/
$g_debug_email = '';
/**
* Shows the total number/unique number of queries executed to serve the page.
*
* @global int $g_show_queries_count
*/
$g_show_queries_count = OFF;
/**
* Errors Display method.
*
* Defines what {@link http://php.net/errorfunc.constants errors}
* are displayed and how. Available options are:
* - DISPLAY_ERROR_HALT Stop and display error message (including
* variables and backtrace if
* {@see $g_show_detailed_errors} is ON).
* - DISPLAY_ERROR_INLINE Display a one line error and continue execution.
* - DISPLAY_ERROR_NONE Suppress the error (no display). This is the default
* behavior for unspecified errors constants.
*
* The default settings are recommended for use in Production, and will only
* display MantisBT fatal errors, suppressing output of all other error types.
*
* Recommended config_inc.php settings for developers (these are automatically
* set if the server is localhost):
* $g_display_errors = array(
* E_WARNING => DISPLAY_ERROR_HALT,
* E_ALL => DISPLAY_ERROR_INLINE,
* );
*
* NOTE: E_USER_ERROR, E_RECOVERABLE_ERROR and E_ERROR will always be set
* to DISPLAY_ERROR_HALT internally, regardless of the configured value.
*
* @global array $g_display_errors
*/
$g_display_errors = array();
# Add developers defaults when server is localhost
# Note: intentionally not using SERVER_ADDR as it's not guaranteed to exist
if( isset( $_SERVER['SERVER_NAME'] ) &&
( strcasecmp( $_SERVER['SERVER_NAME'], 'localhost' ) == 0 ||
$_SERVER['SERVER_NAME'] == '127.0.0.1' )
) {
$g_display_errors[E_WARNING] = DISPLAY_ERROR_HALT;
$g_display_errors[E_ALL] = DISPLAY_ERROR_INLINE;
}
/**
* Detailed error messages.
*
* Shows a list of variables and their values, as well as an execution stack
* trace whenever a fatal error is triggered.
*
* Only applies to error types configured to DISPLAY_ERROR_HALT in
* {@see $g_display_errors}.
*
* WARNING: Setting this to ON is a potential security hazard, as it can expose
* sensitive system information. Only enable it when needed for debugging purposes.
*
* @global int $g_show_detailed_errors
*/
$g_show_detailed_errors = OFF;
/**
* Prevent page redirections when non-fatal errors occur.
*
* If this option is turned OFF (default) page redirects will function normally,
* preventing display of non-fatal error messages.
*
* It should only be set to ON during development or for debugging purposes.
* This will prevent page redirections, allowing you to see the errors.
*
* NOTE: Non-fatal errors are those configured as DISPLAY_ERROR_INLINE in
* {@see $g_display_errors}.
*
* @global int $g_stop_on_errors
*/
$g_stop_on_errors = OFF;
/**
* System logging.
*
* This controls the type of logging information recorded.
* The available log channels are:
*
* LOG_NONE, LOG_EMAIL, LOG_EMAIL_RECIPIENT, LOG_EMAIL_VERBOSE, LOG_FILTERING,
* LOG_AJAX, LOG_LDAP, LOG_DATABASE, LOG_WEBSERVICE, LOG_PLUGIN, LOG_ALL
*
* and can be combined using
* {@link http://php.net/language.operators.bitwise PHP bitwise operators}
* Refer to {@see $g_log_destination} for details on where to save the logs.
*
* @global int $g_log_level
*/
$g_log_level = LOG_NONE;
/**
* Specifies where the log data goes.
*
* The following five options are available:
* - '': The empty string means {@link http://php.net/error_log
* default PHP error log settings}
* - 'none': Don't output the logs, but would still trigger EVENT_LOG
* plugin event.
* - 'file': Log to a specific file, specified as an absolute path, e.g.
* 'file:/var/log/mantis.log' (Unix) or
* 'file:c:/temp/mantisbt.log' (Windows)
* - 'page': Display log output at bottom of the page. See also
* {@link $g_show_log_threshold} to restrict who can see log data.
*
* @global string $g_log_destination
*/
$g_log_destination = '';
/**
* Indicates the access level required for a user to see the log output.
*
* This is only used when {@see $g_log_destination} is 'page'.
*
* Note that this threshold is compared against the user's global access level,
* rather than the one from the currently active project.
*
* @global int $g_show_log_threshold
*/
$g_show_log_threshold = ADMINISTRATOR;
##########################
# Configuration Settings #
##########################
/**
* The following list of variables should never be in the database.
*
* It is used to bypass the database lookup and look in this or the
* config_inc.php files for appropriate global settings.
*
* @global array $g_global_settings
*/
$g_global_settings = array(
'absolute_path',
'absolute_path_default_upload_folder',
'admin_checks',
'allow_anonymous_login',
'allow_browser_cache',
'allow_permanent_cookie',
'allow_signup',
'anonymous_account',
'bottom_include_page',
'bug_list_cookie',
'cdn_enabled',
'class_path',
'collapse_settings_cookie',
'compress_html',
'cookie_domain',
'cookie_path',
'cookie_prefix',
'cookie_samesite',
'cookie_time_length',
'copyright_statement',
'core_path',
'crypto_master_salt',
'css_include_file',
'css_rtl_include_file',
'custom_headers',
'database_name',
'db_password',
'db_table_prefix',
'db_table_suffix',
'db_type',
'db_username',
'debug_email',
'default_home_page',
'default_language',
'display_errors',
'dot_tool',
'email_dkim_domain',
'email_dkim_enable',
'email_dkim_identity',
'email_dkim_passphrase',
'email_dkim_private_key_file_path',
'email_dkim_private_key_string',
'email_dkim_selector',
'email_ensure_unique',
'email_login_enabled',
'email_retry_in_days',
'email_smime_cert_file',
'email_smime_enable',
'email_smime_extracerts_file',
'email_smime_key_file',
'email_smime_key_password',
'fallback_language',
'favicon_image',
'file_type_icons',
'fileinfo_magic_db_file',
'form_security_validation',
'global_settings',
'hostname',
'html_valid_tags',
'html_valid_tags_single_line',
'impersonate_user_threshold',
'language_auto_map',
'language_path',
'ldap_bind_dn',
'ldap_bind_passwd',
'ldap_email_field',
'ldap_follow_referrals',
'ldap_network_timeout',
'ldap_organization',
'ldap_protocol_version',
'ldap_realname_field',
'ldap_root_dn',
'ldap_server',
'ldap_simulation_file_path',
'ldap_tls_protocol_min',
'ldap_uid_field',
'ldap_use_starttls',
'library_path',
'log_destination',
'log_level',
'login_method',
'logo_image',
'logo_url',
'logout_cookie',
'logout_redirect_page',
'long_process_timeout',
'manage_config_cookie',
'manual_url',
'neato_tool',
'path',
'plugin_path',
'plugins_enabled',
'project_cookie',
'public_config_names',
'session_save_path',
'session_validation',
'short_path',
'show_detailed_errors',
'show_memory_usage',
'show_queries_count',
'show_timer',
'show_version',
'stop_on_errors',
'string_cookie',
'subprojects_enabled',
'top_include_page',
'use_ldap_email',
'use_ldap_realname',
'validate_email',
'version_suffix',
'view_all_cookie',
'webmaster_email',
'wiki_enable',
'wiki_engine',
'wiki_engine_url',
'wiki_root_namespace',
);
/**
* List of config options available via SOAP API.
*
* The following list of configuration options is used to check if it is
* allowed to query a specific configuration option via SOAP API.
*
* @global array $g_public_config_names
*/
$g_public_config_names = array(
'access_levels_enum_string',
'action_button_position',
'add_bugnote_threshold',
'add_profile_threshold',
'admin_site_threshold',
'allow_account_delete',
'allow_anonymous_login',
'allow_blank_email',
'allow_delete_own_attachments',
'allow_download_own_attachments',
'allow_file_upload',
'allow_freetext_in_profile_fields',
'allow_no_category',
'allow_parent_of_unresolved_to_close',
'allow_permanent_cookie',
'allow_reporter_close',
'allow_reporter_reopen',
'allow_reporter_upload',
'allow_signup',
'allowed_files',
'anonymous_account',
'antispam_max_event_count',
'antispam_time_window_in_seconds',
'assign_sponsored_bugs_threshold',
'auto_set_status_to_assigned',
'backward_year_count',
'bottom_include_page',
'bug_assigned_status',
'bug_closed_status_threshold',
'bug_count_hyperlink_prefix',
'bug_duplicate_resolution',
'bug_feedback_status',
'bug_link_tag',
'bug_list_cookie',
'bug_readonly_status_threshold',
'bug_reminder_threshold',
'bug_reopen_resolution',
'bug_reopen_status',
'bug_report_page_fields',
'bug_resolution_fixed_threshold',
'bug_resolution_not_fixed_threshold',
'bug_resolved_status_threshold',
'bug_revision_drop_threshold',
'bug_revision_view_threshold',
'bug_submit_status',
'bug_update_page_fields',
'bug_view_page_fields',
'bugnote_link_tag',
'bugnote_order',
'bugnote_user_change_view_state_threshold',
'bugnote_user_delete_threshold',
'bugnote_user_edit_threshold',
'cdn_enabled',
'change_view_status_threshold',
'check_mx_record',
'collapse_settings_cookie',
'complete_date_format',
'compress_html',
'cookie_prefix',
'cookie_time_length',
'copyright_statement',
'create_permalink_threshold',
'create_project_threshold',
'create_short_url',
'css_include_file',
'css_rtl_include_file',
'csv_columns',
'csv_separator',
'custom_field_edit_after_create',
'custom_field_link_threshold',
'custom_field_type_enum_string',
'custom_group_actions',
'custom_headers',
'date_partitions',
'datetime_picker_format',
'default_bug_additional_info',
'default_bug_description',
'default_bug_eta',
'default_bug_priority',
'default_bug_projection',
'default_bug_relationship_clone',
'default_bug_relationship',
'default_bug_reproducibility',
'default_bug_resolution',
'default_bug_severity',
'default_bug_steps_to_reproduce',
'default_bug_view_status',
'default_bugnote_order',
'default_bugnote_view_status',
'default_category_for_moves',
'default_email_bugnote_limit',
'default_email_on_assigned_minimum_severity',
'default_email_on_assigned',
'default_email_on_bugnote_minimum_severity',
'default_email_on_bugnote',
'default_email_on_closed_minimum_severity',
'default_email_on_closed',
'default_email_on_feedback_minimum_severity',
'default_email_on_feedback',
'default_email_on_new_minimum_severity',
'default_email_on_new',
'default_email_on_priority_minimum_severity',
'default_email_on_priority',
'default_email_on_reopened_minimum_severity',
'default_email_on_reopened',
'default_email_on_resolved_minimum_severity',
'default_email_on_resolved',
'default_email_on_status_minimum_severity',
'default_email_on_status',
'default_home_page',
'default_language',
'default_limit_view',
'default_manage_tag_prefix',
'default_new_account_access_level',
'default_notify_flags',
'default_project_view_status',
'default_redirect_delay',
'default_refresh_delay',
'default_reminder_view_status',
'default_show_changed',
'default_timezone',
'delete_bug_threshold',
'delete_bugnote_threshold',
'delete_project_threshold',
'disallowed_files',
'display_bug_padding',
'display_bugnote_padding',
'display_errors',
'download_attachments_threshold',
'due_date_default',
'due_date_update_threshold',
'due_date_view_threshold',
'due_date_warning_levels',
'email_ensure_unique',
'email_dkim_domain',
'email_dkim_enable',
'email_dkim_identity',
'email_dkim_selector',
'email_login_enabled',
'email_notifications_verbose',
'email_padding_length',
'email_receive_own',
'email_separator1',
'email_separator2',
'enable_email_notification',
'enable_eta',
'enable_product_build',
'enable_profiles',
'enable_project_documentation',
'enable_projection',
'enable_sponsorship',
'eta_enum_string',
'excel_columns',
'export_issues_threshold',
'fallback_language',
'favicon_image',
'file_download_content_type_overrides',
'file_type_icons',
'file_upload_max_num',
'filter_by_custom_fields',
'filter_custom_fields_per_row',
'filter_position',
'font_family',
'font_family_choices',
'font_family_choices_local',
'forward_year_count',
'from_email',
'from_name',
'handle_bug_threshold',
'handle_sponsored_bugs_threshold',
'hide_status_default',
'history_default_visible',
'history_order',
'html_make_links',
'html_valid_tags_single_line',
'html_valid_tags',
'impersonate_user_threshold',
'issue_activity_note_attachments_seconds_threshold',
'language_auto_map',
'language_choices_arr',
'limit_email_domains',
'limit_reporters',
'limit_view_unless_threshold',
'logo_image',
'logo_url',
'logout_cookie',
'logout_redirect_page',
'long_process_timeout',
'lost_password_feature',
'main_menu_custom_options',
'manage_config_cookie',
'manage_configuration_threshold',
'manage_custom_fields_threshold',
'manage_global_profile_threshold',
'manage_news_threshold',
'manage_plugin_threshold',
'manage_project_threshold',
'manage_site_threshold',
'manage_user_threshold',
'manage_users_cookie',
'max_dropdown_length',
'max_failed_login_count',
'max_file_size',
'max_lost_password_in_progress_count',
'mentions_enabled',
'mentions_tag',
'min_refresh_delay',
'minimum_sponsorship_amount',
'monitor_add_others_bug_threshold',
'monitor_bug_threshold',
'monitor_delete_others_bug_threshold',
'move_bug_threshold',
'my_view_boxes',
'my_view_bug_count',
'news_enabled',
'news_limit_method',
'news_view_limit_days',
'news_view_limit',
'normal_date_format',
'notify_flags',
'notify_new_user_created_threshold_min',
'plugin_mime_types',
'plugins_enabled',
'plugins_force_installed',
'preview_attachments_inline_max_size',
'preview_image_extensions',
'preview_max_height',
'preview_max_width',
'preview_text_extensions',
'print_issues_page_columns',
'print_reports_threshold',
'priority_enum_string',
'priority_significant_threshold',
'private_bug_threshold',
'private_bugnote_threshold',
'private_news_threshold',
'private_project_threshold',
'project_cookie',
'project_status_enum_string',
'project_user_threshold',
'project_view_state_enum_string',
'projection_enum_string',
'reassign_on_feedback',
'reauthentication_expiry',
'reauthentication',
'recently_visited_count',
'relationship_graph_enable',
'relationship_graph_fontname',
'relationship_graph_fontsize',
'relationship_graph_max_depth',
'relationship_graph_orientation',
'relationship_graph_view_on_click',
'reminder_receive_threshold',
'reminder_recipients_monitor_bug',
'reopen_bug_threshold',
'report_bug_threshold',
'report_issues_for_unreleased_versions_threshold',
'reporter_summary_limit',
'reproducibility_enum_string',
'resolution_enum_string',
'resolution_multipliers',
'return_path_email',
'roadmap_update_threshold',
'roadmap_view_threshold',
'rss_enabled',
'search_title',
'set_bug_sticky_threshold',
'set_configuration_threshold',
'set_status_threshold',
'set_view_status_threshold',
'severity_enum_string',
'severity_multipliers',
'severity_significant_threshold',
'short_date_format',
'show_assigned_names',
'show_avatar_threshold',
'show_avatar',
'show_bug_project_links',
'show_changelog_dates',
'show_detailed_errors',
'show_log_threshold',
'show_memory_usage',
'show_monitor_list_threshold',
'show_priority_text',
'show_product_version',
'show_project_menu_bar',
'show_queries_count',
'show_realname',
'show_roadmap_dates',
'show_sticky_issues',
'show_timer',
'show_user_email_threshold',
'show_user_realname_threshold',
'show_version_dates_threshold',
'show_version',
'signup_use_captcha',
'sort_by_last_name',
'sort_icon_arr',
'sponsor_threshold',
'sponsorship_currency',
'sponsorship_enum_string',
'status_colors',
'status_enum_string',
'status_enum_workflow',
'status_icon_arr',
'stop_on_errors',
'store_reminders',
'stored_query_create_shared_threshold',
'stored_query_create_threshold',
'stored_query_use_threshold',
'string_cookie',
'subprojects_enabled',
'subprojects_inherit_categories',
'subprojects_inherit_versions',
'summary_category_include_project',
'tag_attach_threshold',
'tag_create_threshold',
'tag_detach_own_threshold',
'tag_detach_threshold',
'tag_edit_own_threshold',
'tag_edit_threshold',
'tag_separator',
'tag_view_threshold',
'time_tracking_billing_rate',
'time_tracking_edit_threshold',
'time_tracking_enabled',
'time_tracking_reporting_threshold',
'time_tracking_stopwatch',
'time_tracking_view_threshold',
'time_tracking_with_billing',
'time_tracking_without_note',
'timeline_view_threshold',
'top_include_page',
'update_bug_assign_threshold',
'update_bug_status_threshold',
'update_bug_threshold',
'update_bugnote_threshold',
'update_readonly_bug_threshold',
'upload_bug_file_threshold',
'upload_project_file_threshold',
'use_dynamic_filters',
'user_login_valid_regex',
'validate_email',
'version_suffix',
'view_all_cookie',
'view_attachments_threshold',
'view_bug_threshold',
'view_changelog_threshold',
'view_configuration_threshold',
'view_filters',
'view_handler_threshold',
'view_history_threshold',
'view_issues_page_columns',
'view_proj_doc_threshold',
'view_sponsorship_details_threshold',
'view_sponsorship_total_threshold',
'view_state_enum_string',
'view_summary_threshold',
'webmaster_email',
'webservice_admin_access_level_threshold',
'webservice_error_when_version_not_found',
'webservice_eta_enum_default_when_not_found',
'webservice_priority_enum_default_when_not_found',
'webservice_projection_enum_default_when_not_found',
'webservice_readonly_access_level_threshold',
'webservice_readwrite_access_level_threshold',
'webservice_resolution_enum_default_when_not_found',
'webservice_rest_enabled',
'webservice_severity_enum_default_when_not_found',
'webservice_specify_reporter_on_add_access_level_threshold',
'webservice_status_enum_default_when_not_found',
'webservice_version_when_not_found',
'wiki_enable',
'wiki_engine_url',
'wiki_engine',
'wiki_root_namespace',
'window_title',
'wrap_in_preformatted_text'
);
############################
# Webservice Configuration #
############################
/**
* Whether the REST API is enabled or not.
*
* Note that this flag only impacts API Token based auth. Hence, even if the
* API is disabled, it can still be used from the Web UI using cookie based
* authentication.
*
* @global int $g_webservice_rest_enabled
*/
$g_webservice_rest_enabled = ON;
/**
* Minimum global access level required to access webservice for readonly operations.
*
* @global int $g_webservice_readonly_access_level_threshold
*/
$g_webservice_readonly_access_level_threshold = VIEWER;
/**
* Minimum global access level required to access webservice for read/write operations.
*
* @global int $g_webservice_readwrite_access_level_threshold
*/
$g_webservice_readwrite_access_level_threshold = REPORTER;
/**
* Minimum global access level required to access the administrator webservices.
*
* @global int $g_webservice_admin_access_level_threshold
*/
$g_webservice_admin_access_level_threshold = MANAGER;
/**
* Minimum project access level required to be able to specify a reporter name when
* adding an issue.
*
* Otherwise, the current user is used as the reporter. Users who don't have
* this access level can always do another step to modify the issue and specify
* a different name, but in this case it will be logged in the history who
* originally reported the issue.
*
* @global int $g_webservice_specify_reporter_on_add_access_level_threshold
*/
$g_webservice_specify_reporter_on_add_access_level_threshold = DEVELOPER;
/**
* The following enum id is used when the webservices get enum labels that are not
* defined in the associated MantisBT installation.
*
* In this case, the enum id is set to the value specified by the corresponding
* configuration option.
*
* @global int $g_webservice_priority_enum_default_when_not_found
*/
$g_webservice_priority_enum_default_when_not_found = 0;
/**
* The following enum id is used when the webservices get enum labels that are not
* defined in the associated MantisBT installation.
*
* In this case, the enum id is set to the value specified by the corresponding
* configuration option.
*
* @global int $g_webservice_severity_enum_default_when_not_found
*/
$g_webservice_severity_enum_default_when_not_found = 0;
/**
* The following enum id is used when the webservices get enum labels that are not
* defined in the associated MantisBT installation.
*
* In this case, the enum id is set to the value specified by the corresponding
* configuration option.
*
* @global int $g_webservice_status_enum_default_when_not_found
*/
$g_webservice_status_enum_default_when_not_found = 0;
/**
* The following enum id is used when the webservices get enum labels that are not
* defined in the associated MantisBT installation.
*
* In this case, the enum id is set to the value specified by the corresponding
* configuration option.
*
* @global int $g_webservice_resolution_enum_default_when_not_found
*/
$g_webservice_resolution_enum_default_when_not_found = 0;
/**
* The following enum id is used when the webservices get enum labels that are not
* defined in the associated MantisBT installation.
*
* In this case, the enum id is set to the value specified by the corresponding
* configuration option.
*
* @global int $g_webservice_projection_enum_default_when_not_found
*/
$g_webservice_projection_enum_default_when_not_found = 0;
/**
* The following enum id is used when the webservices get enum labels that are not
* defined in the associated MantisBT installation.
*
* In this case, the enum id is set to the value specified by the corresponding
* configuration option.
*
* @global int $g_webservice_eta_enum_default_when_not_found
*/
$g_webservice_eta_enum_default_when_not_found = 0;
/**
* If ON and the supplied version is not found, then a SoapException will be raised.
*
* @global int $g_webservice_error_when_version_not_found
*/
$g_webservice_error_when_version_not_found = ON;
/**
* Default version to be used if the specified version is not found and
* $g_webservice_error_when_version_not_found == OFF.
* (at the moment this value does not depend on the project).
*
* @global string $g_webservice_version_when_not_found
*/
$g_webservice_version_when_not_found = '';
####################
# Issue Activities #
####################
/**
* Combine activities that were submitted together in one entry.
*
* If a user submits a note with an attachment (within the specified # of seconds)
* the attachment is linked to the note.
*
* Set to 0 to disable this feature.
*
* @global int $g_issue_activity_note_attachments_seconds_threshold
*/
$g_issue_activity_note_attachments_seconds_threshold = 3;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/mirrors/mantisbt.git
git@gitee.com:mirrors/mantisbt.git
mirrors
mantisbt
mantisbt
master

搜索帮助