config.default.php 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * <code>
  5. * N N OOO !! DDDD OOO N N OOO TTTTT EEEE DDDD I TTTTT !!
  6. * NN N O O !! D D O O NN N O O T E D D I T !!
  7. * N N N O O !! D D O O N N N O O T EEEE D D I T !!
  8. * N NN O O D D O O N NN O O T E D D I T
  9. * N N OOO !! DDDD OOO N N OOO T EEEE DDDD I T !!
  10. * </code>
  11. *
  12. * DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
  13. *
  14. * phpMyAdmin default configuration, you can copy values from here to your
  15. * config.inc.php
  16. *
  17. * All directives are explained in the documentation
  18. *
  19. * @package PhpMyAdmin
  20. */
  21. /**
  22. * Your phpMyAdmin URL.
  23. *
  24. * Complete the variable below with the full URL ie
  25. * https://example.com/path_to_your_phpMyAdmin_directory/
  26. *
  27. * It must contain characters that are valid for a URL, and the path is
  28. * case sensitive on some Web servers, for example Unix-based servers.
  29. *
  30. * In most cases you can leave this variable empty, as the correct value
  31. * will be detected automatically. However, we recommend that you do
  32. * test to see that the auto-detection code works in your system. A good
  33. * test is to browse a table, then edit a row and save it. There will be
  34. * an error message if phpMyAdmin cannot auto-detect the correct value.
  35. *
  36. * @global string $cfg['PmaAbsoluteUri']
  37. */
  38. $cfg['PmaAbsoluteUri'] = '';
  39. /**
  40. * Configure authentication logging destination
  41. *
  42. * @global string $cfg['AuthLog']
  43. */
  44. $cfg['AuthLog'] = 'auto';
  45. /**
  46. * Whether to log successful authentication attempts
  47. *
  48. * @global boolean $cfg['AuthLogSuccess']
  49. */
  50. $cfg['AuthLogSuccess'] = false;
  51. /**
  52. * Disable the default warning that is displayed on the DB Details Structure page if
  53. * any of the required Tables for the configuration storage could not be found
  54. *
  55. * @global boolean $cfg['PmaNoRelation_DisableWarning']
  56. */
  57. $cfg['PmaNoRelation_DisableWarning'] = false;
  58. /**
  59. * Disable the default warning that is displayed if Suhosin is detected
  60. *
  61. * @global boolean $cfg['SuhosinDisableWarning']
  62. */
  63. $cfg['SuhosinDisableWarning'] = false;
  64. /**
  65. * Disable the default warning that is displayed if session.gc_maxlifetime
  66. * is less than `LoginCookieValidity`
  67. *
  68. * @global boolean $cfg['LoginCookieValidityDisableWarning']
  69. */
  70. $cfg['LoginCookieValidityDisableWarning'] = false;
  71. /**
  72. * Disable the default warning about MySQL reserved words in column names
  73. *
  74. * @global boolean $cfg['ReservedWordDisableWarning']
  75. */
  76. $cfg['ReservedWordDisableWarning'] = false;
  77. /**
  78. * Show warning about incomplete translations on certain threshold.
  79. *
  80. * @global boolean $cfg['TranslationWarningThreshold']
  81. */
  82. $cfg['TranslationWarningThreshold'] = 80;
  83. /**
  84. * Allows phpMyAdmin to be included from a other document in a frame;
  85. * setting this to true is a potential security hole
  86. *
  87. * @global boolean $cfg['AllowThirdPartyFraming']
  88. */
  89. $cfg['AllowThirdPartyFraming'] = false;
  90. /**
  91. * The 'cookie' auth_type uses AES algorithm to encrypt the password. If
  92. * at least one server configuration uses 'cookie' auth_type, enter here a
  93. * pass phrase that will be used by AES. The maximum length seems to be 46
  94. * characters.
  95. *
  96. * @global string $cfg['blowfish_secret']
  97. */
  98. $cfg['blowfish_secret'] = '';
  99. /*******************************************************************************
  100. * Server(s) configuration
  101. *
  102. * The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
  103. * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
  104. * to ''. If you want more than one server, just copy following section
  105. * (including $i incrementation) several times. There is no need to define
  106. * full server array, just define values you need to change.
  107. *
  108. * @global array $cfg['Servers']
  109. */
  110. $cfg['Servers'] = array();
  111. $i = 1;
  112. /**
  113. * MySQL hostname or IP address
  114. *
  115. * @global string $cfg['Servers'][$i]['host']
  116. */
  117. $cfg['Servers'][$i]['host'] = 'localhost';
  118. /**
  119. * MySQL port - leave blank for default port
  120. *
  121. * @global string $cfg['Servers'][$i]['port']
  122. */
  123. $cfg['Servers'][$i]['port'] = '';
  124. /**
  125. * Path to the socket - leave blank for default socket
  126. *
  127. * @global string $cfg['Servers'][$i]['socket']
  128. */
  129. $cfg['Servers'][$i]['socket'] = '';
  130. /**
  131. * Use SSL for connecting to MySQL server?
  132. *
  133. * @global boolean $cfg['Servers'][$i]['ssl']
  134. */
  135. $cfg['Servers'][$i]['ssl'] = false;
  136. /**
  137. * Path to the key file when using SSL for connecting to the MySQL server
  138. *
  139. * @global string $cfg['Servers'][$i]['ssl_key']
  140. */
  141. $cfg['Servers'][$i]['ssl_key'] = null;
  142. /**
  143. * Path to the cert file when using SSL for connecting to the MySQL server
  144. *
  145. * @global string $cfg['Servers'][$i]['ssl_cert']
  146. */
  147. $cfg['Servers'][$i]['ssl_cert'] = null;
  148. /**
  149. * Path to the CA file when using SSL for connecting to the MySQL server
  150. *
  151. * @global string $cfg['Servers'][$i]['ssl_ca']
  152. */
  153. $cfg['Servers'][$i]['ssl_ca'] = null;
  154. /**
  155. * Directory containing trusted SSL CA certificates in PEM format
  156. *
  157. * @global string $cfg['Servers'][$i]['ssl_ca_path']
  158. */
  159. $cfg['Servers'][$i]['ssl_ca_path'] = null;
  160. /**
  161. * List of allowable ciphers for SSL connections to the MySQL server
  162. *
  163. * @global string $cfg['Servers'][$i]['ssl_ciphers']
  164. */
  165. $cfg['Servers'][$i]['ssl_ciphers'] = null;
  166. /**
  167. * MySQL 5.6 or later triggers the mysqlnd driver in PHP to validate the
  168. * peer_name of the SSL certifcate
  169. * For most self-signed certificates this is a problem. Setting this to false
  170. * will disable the check and allow the connection (PHP 5.6.16 or later)
  171. *
  172. * @link https://bugs.php.net/68344
  173. * @global string $cfg['Servers'][$i]['ssl_verify']
  174. */
  175. $cfg['Servers'][$i]['ssl_verify'] = true;
  176. /**
  177. * Use compressed protocol for the MySQL connection
  178. *
  179. * @global boolean $cfg['Servers'][$i]['compress']
  180. */
  181. $cfg['Servers'][$i]['compress'] = false;
  182. /**
  183. * MySQL control host. This permits to use a host different than the
  184. * main host, for the phpMyAdmin configuration storage. If left empty,
  185. * $cfg['Servers'][$i]['host'] is used instead.
  186. *
  187. * @global string $cfg['Servers'][$i]['controlhost']
  188. */
  189. $cfg['Servers'][$i]['controlhost'] = '';
  190. /**
  191. * MySQL control port. This permits to use a port different than the
  192. * main port, for the phpMyAdmin configuration storage. If left empty,
  193. * $cfg['Servers'][$i]['port'] is used instead.
  194. *
  195. * @global string $cfg['Servers'][$i]['controlport']
  196. */
  197. $cfg['Servers'][$i]['controlport'] = '';
  198. /**
  199. * MySQL control user settings (this user must have read-only
  200. * access to the "mysql/user" and "mysql/db" tables). The controluser is also
  201. * used for all relational features (pmadb)
  202. *
  203. * @global string $cfg['Servers'][$i]['controluser']
  204. */
  205. $cfg['Servers'][$i]['controluser'] = '';
  206. /**
  207. * MySQL control user settings (this user must have read-only
  208. * access to the "mysql/user" and "mysql/db" tables). The controluser is also
  209. * used for all relational features (pmadb)
  210. *
  211. * @global string $cfg['Servers'][$i]['controlpass']
  212. */
  213. $cfg['Servers'][$i]['controlpass'] = '';
  214. /**
  215. * Authentication method (valid choices: config, http, signon or cookie)
  216. *
  217. * @global string $cfg['Servers'][$i]['auth_type']
  218. */
  219. $cfg['Servers'][$i]['auth_type'] = 'cookie';
  220. /**
  221. * HTTP Basic Auth Realm name to display (only used with 'HTTP' auth_type)
  222. *
  223. * @global string $cfg['Servers'][$i]['auth_http_realm']
  224. */
  225. $cfg['Servers'][$i]['auth_http_realm'] = '';
  226. /**
  227. * MySQL user
  228. *
  229. * @global string $cfg['Servers'][$i]['user']
  230. */
  231. $cfg['Servers'][$i]['user'] = 'root';
  232. /**
  233. * MySQL password (only needed with 'config' auth_type)
  234. *
  235. * @global string $cfg['Servers'][$i]['password']
  236. */
  237. $cfg['Servers'][$i]['password'] = '';
  238. /**
  239. * Session to use for 'signon' authentication method
  240. *
  241. * @global string $cfg['Servers'][$i]['SignonSession']
  242. */
  243. $cfg['Servers'][$i]['SignonSession'] = '';
  244. /**
  245. * Cookie params to match session to use for 'signon' authentication method
  246. * It should be an associative array matching result of session_get_cookie_params() in other system
  247. *
  248. * @global array $cfg['Servers'][$i]['SignonCookieParams']
  249. */
  250. $cfg['Servers'][$i]['SignonCookieParams'] = array();
  251. /**
  252. * PHP script to use for 'signon' authentication method
  253. *
  254. * @global string $cfg['Servers'][$i]['SignonScript']
  255. */
  256. $cfg['Servers'][$i]['SignonScript'] = '';
  257. /**
  258. * URL where to redirect user to login for 'signon' authentication method
  259. *
  260. * @global string $cfg['Servers'][$i]['SignonURL']
  261. */
  262. $cfg['Servers'][$i]['SignonURL'] = '';
  263. /**
  264. * URL where to redirect user after logout
  265. *
  266. * @global string $cfg['Servers'][$i]['LogoutURL']
  267. */
  268. $cfg['Servers'][$i]['LogoutURL'] = '';
  269. /**
  270. * If set to a db-name, only this db is displayed in navigation panel
  271. * It may also be an array of db-names
  272. *
  273. * @global string $cfg['Servers'][$i]['only_db']
  274. */
  275. $cfg['Servers'][$i]['only_db'] = '';
  276. /**
  277. * Database name to be hidden from listings
  278. *
  279. * @global string $cfg['Servers'][$i]['hide_db']
  280. */
  281. $cfg['Servers'][$i]['hide_db'] = '';
  282. /**
  283. * Verbose name for this host - leave blank to show the hostname
  284. * (for HTTP authentication, all non-US-ASCII characters will be stripped)
  285. *
  286. * @global string $cfg['Servers'][$i]['verbose']
  287. */
  288. $cfg['Servers'][$i]['verbose'] = '';
  289. /**
  290. * Database used for Relation, Bookmark and PDF Features
  291. * (see sql/create_tables.sql)
  292. * - leave blank for no support
  293. * SUGGESTED: 'phpmyadmin'
  294. *
  295. * @global string $cfg['Servers'][$i]['pmadb']
  296. */
  297. $cfg['Servers'][$i]['pmadb'] = '';
  298. /**
  299. * Bookmark table
  300. * - leave blank for no bookmark support
  301. * SUGGESTED: 'pma__bookmark'
  302. *
  303. * @global string $cfg['Servers'][$i]['bookmarktable']
  304. */
  305. $cfg['Servers'][$i]['bookmarktable'] = '';
  306. /**
  307. * table to describe the relation between links (see doc)
  308. * - leave blank for no relation-links support
  309. * SUGGESTED: 'pma__relation'
  310. *
  311. * @global string $cfg['Servers'][$i]['relation']
  312. */
  313. $cfg['Servers'][$i]['relation'] = '';
  314. /**
  315. * table to describe the display fields
  316. * - leave blank for no display fields support
  317. * SUGGESTED: 'pma__table_info'
  318. *
  319. * @global string $cfg['Servers'][$i]['table_info']
  320. */
  321. $cfg['Servers'][$i]['table_info'] = '';
  322. /**
  323. * table to describe the tables position for the designer and PDF schema
  324. * - leave blank for no PDF schema support
  325. * SUGGESTED: 'pma__table_coords'
  326. *
  327. * @global string $cfg['Servers'][$i]['table_coords']
  328. */
  329. $cfg['Servers'][$i]['table_coords'] = '';
  330. /**
  331. * table to describe pages of relationpdf
  332. * - leave blank if you don't want to use this
  333. * SUGGESTED: 'pma__pdf_pages'
  334. *
  335. * @global string $cfg['Servers'][$i]['pdf_pages']
  336. */
  337. $cfg['Servers'][$i]['pdf_pages'] = '';
  338. /**
  339. * table to store column information
  340. * - leave blank for no column comments/mime types
  341. * SUGGESTED: 'pma__column_info'
  342. *
  343. * @global string $cfg['Servers'][$i]['column_info']
  344. */
  345. $cfg['Servers'][$i]['column_info'] = '';
  346. /**
  347. * table to store SQL history
  348. * - leave blank for no SQL query history
  349. * SUGGESTED: 'pma__history'
  350. *
  351. * @global string $cfg['Servers'][$i]['history']
  352. */
  353. $cfg['Servers'][$i]['history'] = '';
  354. /**
  355. * table to store recently used tables
  356. * - leave blank for no "persistent" recently used tables
  357. * SUGGESTED: 'pma__recent'
  358. */
  359. $cfg['Servers'][$i]['recent'] = '';
  360. /**
  361. * table to store favorite tables
  362. * - leave blank for no favorite tables
  363. * SUGGESTED: 'pma__favorite'
  364. */
  365. $cfg['Servers'][$i]['favorite'] = '';
  366. /**
  367. * table to store UI preferences for tables
  368. * - leave blank for no "persistent" UI preferences
  369. * SUGGESTED: 'pma__table_uiprefs'
  370. */
  371. $cfg['Servers'][$i]['table_uiprefs'] = '';
  372. /**
  373. * table to store SQL tracking
  374. * - leave blank for no SQL tracking
  375. * SUGGESTED: 'pma__tracking'
  376. *
  377. * @global string $cfg['Servers'][$i]['tracking']
  378. */
  379. $cfg['Servers'][$i]['tracking'] = '';
  380. /**
  381. * table to store user preferences
  382. * - leave blank to disable server storage
  383. * SUGGESTED: 'pma__userconfig'
  384. *
  385. * @global string $cfg['Servers'][$i]['userconfig']
  386. */
  387. $cfg['Servers'][$i]['userconfig'] = '';
  388. /**
  389. * table to store users and their assignment to user groups
  390. * - leave blank to disable configurable menus feature
  391. * SUGGESTED: 'pma__users'
  392. *
  393. * @global string $cfg['Servers'][$i]['users']
  394. */
  395. $cfg['Servers'][$i]['users'] = '';
  396. /**
  397. * table to store allowed menu items for each user group
  398. * - leave blank to disable configurable menus feature
  399. * SUGGESTED: 'pma__usergroups'
  400. *
  401. * @global string $cfg['Servers'][$i]['usergroups']
  402. */
  403. $cfg['Servers'][$i]['usergroups'] = '';
  404. /**
  405. * table to store information about item hidden from navigation tree
  406. * - leave blank to disable hide/show navigation items feature
  407. * SUGGESTED: 'pma__navigationhiding'
  408. *
  409. * @global string $cfg['Servers'][$i]['navigationhiding']
  410. */
  411. $cfg['Servers'][$i]['navigationhiding'] = '';
  412. /**
  413. * table to store information about saved searches from query-by-example on a db
  414. * - leave blank to disable saved searches feature
  415. * SUGGESTED: 'pma__savedsearches'
  416. *
  417. * @global string $cfg['Servers'][$i]['savedsearches']
  418. */
  419. $cfg['Servers'][$i]['savedsearches'] = '';
  420. /**
  421. * table to store central list of columns per database
  422. * - leave blank to disable central list of columns feature
  423. * SUGGESTED: 'pma__central_columns'
  424. *
  425. * @global string $cfg['Servers'][$i]['central_columns']
  426. */
  427. $cfg['Servers'][$i]['central_columns'] = '';
  428. /**
  429. * table to store designer settings
  430. * - leave blank to disable the storage of designer settings
  431. * SUGGESTED: 'pma__designer_settings'
  432. *
  433. * @global string $cfg['Servers'][$i]['designer_settings']
  434. */
  435. $cfg['Servers'][$i]['designer_settings'] = '';
  436. /**
  437. * table to store export templates
  438. * - leave blank to disable saved searches feature
  439. * SUGGESTED: 'pma__export_templates'
  440. *
  441. * @global string $cfg['Servers'][$i]['export_templates']
  442. */
  443. $cfg['Servers'][$i]['export_templates'] = '';
  444. /**
  445. * Maximum number of records saved in $cfg['Servers'][$i]['table_uiprefs'] table.
  446. *
  447. * In case where tables in databases is modified (e.g. dropped or renamed),
  448. * table_uiprefs may contains invalid data (referring to tables which are not
  449. * exist anymore).
  450. * This configuration make sure that we only keep N (N = MaxTableUiprefs)
  451. * newest record in table_uiprefs and automatically delete older records.
  452. *
  453. * @global integer $cfg['Servers'][$i]['userconfig'] = '';
  454. */
  455. $cfg['Servers'][$i]['MaxTableUiprefs'] = 100;
  456. /**
  457. * Sets the time zone used by phpMyAdmin. Possible values are explained at
  458. * https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html
  459. *
  460. * @global string $cfg['Servers'][$i]['SessionTimeZone'] = ''
  461. */
  462. $cfg['Servers'][$i]['SessionTimeZone'] = '';
  463. /**
  464. * whether to allow root login
  465. *
  466. * @global boolean $cfg['Servers'][$i]['AllowRoot']
  467. */
  468. $cfg['Servers'][$i]['AllowRoot'] = true;
  469. /**
  470. * whether to allow login of any user without a password
  471. *
  472. * @global boolean $cfg['Servers'][$i]['AllowNoPassword']
  473. */
  474. $cfg['Servers'][$i]['AllowNoPassword'] = false;
  475. /**
  476. * Host authentication order, leave blank to not use
  477. *
  478. * @global string $cfg['Servers'][$i]['AllowDeny']['order']
  479. */
  480. $cfg['Servers'][$i]['AllowDeny']['order'] = '';
  481. /**
  482. * Host authentication rules, leave blank for defaults
  483. *
  484. * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
  485. */
  486. $cfg['Servers'][$i]['AllowDeny']['rules'] = array();
  487. /**
  488. * Disable use of INFORMATION_SCHEMA.
  489. *
  490. * @see https://github.com/phpmyadmin/phpmyadmin/issues/8970
  491. * @see https://bugs.mysql.com/19588
  492. * @global boolean $cfg['Servers'][$i]['DisableIS']
  493. */
  494. $cfg['Servers'][$i]['DisableIS'] = false;
  495. /**
  496. * Whether the tracking mechanism creates
  497. * versions for tables and views automatically.
  498. *
  499. * @global bool $cfg['Servers'][$i]['tracking_version_auto_create']
  500. */
  501. $cfg['Servers'][$i]['tracking_version_auto_create'] = false;
  502. /**
  503. * Defines the list of statements
  504. * the auto-creation uses for new versions.
  505. *
  506. * @global string $cfg['Servers'][$i]['tracking_default_statements']
  507. */
  508. $cfg['Servers'][$i]['tracking_default_statements']
  509. = 'CREATE TABLE,ALTER TABLE,DROP TABLE,RENAME TABLE,CREATE INDEX,' .
  510. 'DROP INDEX,INSERT,UPDATE,DELETE,TRUNCATE,REPLACE,CREATE VIEW,' .
  511. 'ALTER VIEW,DROP VIEW,CREATE DATABASE,ALTER DATABASE,DROP DATABASE';
  512. /**
  513. * Whether a DROP VIEW IF EXISTS statement will be added
  514. * as first line to the log when creating a view.
  515. *
  516. * @global bool $cfg['Servers'][$i]['tracking_add_drop_view']
  517. */
  518. $cfg['Servers'][$i]['tracking_add_drop_view'] = true;
  519. /**
  520. * Whether a DROP TABLE IF EXISTS statement will be added
  521. * as first line to the log when creating a table.
  522. *
  523. * @global bool $cfg['Servers'][$i]['tracking_add_drop_table']
  524. */
  525. $cfg['Servers'][$i]['tracking_add_drop_table'] = true;
  526. /**
  527. * Whether a DROP DATABASE IF EXISTS statement will be added
  528. * as first line to the log when creating a database.
  529. *
  530. * @global bool $cfg['Servers'][$i]['tracking_add_drop_database']
  531. */
  532. $cfg['Servers'][$i]['tracking_add_drop_database'] = true;
  533. /**
  534. * Whether to show or hide detailed MySQL/MariaDB connection errors on the login page.
  535. *
  536. * @global bool $cfg['Servers'][$i]['hide_connection_errors']
  537. */
  538. $cfg['Servers'][$i]['hide_connection_errors'] = false;
  539. /**
  540. * Default server (0 = no default server)
  541. *
  542. * If you have more than one server configured, you can set $cfg['ServerDefault']
  543. * to any one of them to auto-connect to that server when phpMyAdmin is started,
  544. * or set it to 0 to be given a list of servers without logging in
  545. * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
  546. * set to that server.
  547. *
  548. * @global integer $cfg['ServerDefault']
  549. */
  550. $cfg['ServerDefault'] = 1;
  551. /*
  552. * Other core phpMyAdmin settings
  553. */
  554. /**
  555. * whether version check is active
  556. *
  557. * @global boolean $cfg['VersionCheck']
  558. */
  559. if (defined('VERSION_CHECK_DEFAULT')) {
  560. $cfg['VersionCheck'] = VERSION_CHECK_DEFAULT;
  561. } else {
  562. $cfg['VersionCheck'] = true;
  563. }
  564. /**
  565. * The url of the proxy to be used when retrieving the information about
  566. * the latest version of phpMyAdmin or error reporting. You need this if
  567. * the server where phpMyAdmin is installed does not have direct access to
  568. * the internet.
  569. * The format is: "hostname:portnumber"
  570. *
  571. * @global string $cfg['ProxyUrl']
  572. */
  573. $cfg['ProxyUrl'] = "";
  574. /**
  575. * The username for authenticating with the proxy. By default, no
  576. * authentication is performed. If a username is supplied, Basic
  577. * Authentication will be performed. No other types of authentication
  578. * are currently supported.
  579. *
  580. * @global string $cfg['ProxyUser']
  581. */
  582. $cfg['ProxyUser'] = "";
  583. /**
  584. * The password for authenticating with the proxy.
  585. *
  586. * @global string $cfg['ProxyPass']
  587. */
  588. $cfg['ProxyPass'] = "";
  589. /**
  590. * maximum number of db's displayed in database list
  591. *
  592. * @global integer $cfg['MaxDbList']
  593. */
  594. $cfg['MaxDbList'] = 100;
  595. /**
  596. * maximum number of tables displayed in table list
  597. *
  598. * @global integer $cfg['MaxTableList']
  599. */
  600. $cfg['MaxTableList'] = 250;
  601. /**
  602. * whether to show hint or not
  603. *
  604. * @global boolean $cfg['ShowHint']
  605. */
  606. $cfg['ShowHint'] = true;
  607. /**
  608. * maximum number of characters when a SQL query is displayed
  609. *
  610. * @global integer $cfg['MaxCharactersInDisplayedSQL']
  611. */
  612. $cfg['MaxCharactersInDisplayedSQL'] = 1000;
  613. /**
  614. * use GZIP output buffering if possible (true|false|'auto')
  615. *
  616. * @global string $cfg['OBGzip']
  617. */
  618. $cfg['OBGzip'] = 'auto';
  619. /**
  620. * use persistent connections to MySQL database
  621. *
  622. * @global boolean $cfg['PersistentConnections']
  623. */
  624. $cfg['PersistentConnections'] = false;
  625. /**
  626. * maximum execution time in seconds (0 for no limit)
  627. *
  628. * @global integer $cfg['ExecTimeLimit']
  629. */
  630. $cfg['ExecTimeLimit'] = 300;
  631. /**
  632. * Path for storing session data (session_save_path PHP parameter).
  633. *
  634. * @global integer $cfg['SessionSavePath']
  635. */
  636. $cfg['SessionSavePath'] = '';
  637. /**
  638. * maximum allocated bytes ('-1' for no limit, '0' for no change)
  639. * this is a string because '16M' is a valid value; we must put here
  640. * a string as the default value so that /setup accepts strings
  641. *
  642. * @global string $cfg['MemoryLimit']
  643. */
  644. $cfg['MemoryLimit'] = '-1';
  645. /**
  646. * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
  647. *
  648. * @global boolean $cfg['SkipLockedTables']
  649. */
  650. $cfg['SkipLockedTables'] = false;
  651. /**
  652. * show SQL queries as run
  653. *
  654. * @global boolean $cfg['ShowSQL']
  655. */
  656. $cfg['ShowSQL'] = true;
  657. /**
  658. * retain SQL input on Ajax execute
  659. *
  660. * @global boolean $cfg['RetainQueryEditor']
  661. */
  662. $cfg['RetainQueryBox'] = false;
  663. /**
  664. * use CodeMirror syntax highlighting for editing SQL
  665. *
  666. * @global boolean $cfg['CodemirrorEnable']
  667. */
  668. $cfg['CodemirrorEnable'] = true;
  669. /**
  670. * use the parser to find any errors in the query before executing
  671. *
  672. * @global boolean $cfg['LintEnable']
  673. */
  674. $cfg['LintEnable'] = true;
  675. /**
  676. * show a 'Drop database' link to normal users
  677. *
  678. * @global boolean $cfg['AllowUserDropDatabase']
  679. */
  680. $cfg['AllowUserDropDatabase'] = false;
  681. /**
  682. * confirm some commands that can result in loss of data
  683. *
  684. * @global boolean $cfg['Confirm']
  685. */
  686. $cfg['Confirm'] = true;
  687. /**
  688. * recall previous login in cookie authentication mode or not
  689. *
  690. * @global boolean $cfg['LoginCookieRecall']
  691. */
  692. $cfg['LoginCookieRecall'] = true;
  693. /**
  694. * validity of cookie login (in seconds; 1440 matches php.ini's
  695. * session.gc_maxlifetime)
  696. *
  697. * @global integer $cfg['LoginCookieValidity']
  698. */
  699. $cfg['LoginCookieValidity'] = 1440;
  700. /**
  701. * how long login cookie should be stored (in seconds)
  702. *
  703. * @global integer $cfg['LoginCookieStore']
  704. */
  705. $cfg['LoginCookieStore'] = 0;
  706. /**
  707. * whether to delete all login cookies on logout
  708. *
  709. * @global boolean $cfg['LoginCookieDeleteAll']
  710. */
  711. $cfg['LoginCookieDeleteAll'] = true;
  712. /**
  713. * whether to enable the "database search" feature or not
  714. *
  715. * @global boolean $cfg['UseDbSearch']
  716. */
  717. $cfg['UseDbSearch'] = true;
  718. /**
  719. * if set to true, PMA continues computing multiple-statement queries
  720. * even if one of the queries failed
  721. *
  722. * @global boolean $cfg['IgnoreMultiSubmitErrors']
  723. */
  724. $cfg['IgnoreMultiSubmitErrors'] = false;
  725. /**
  726. * Define whether phpMyAdmin will encrypt sensitive data from the URL query string.
  727. *
  728. * @global bool $cfg['URLQueryEncryption']
  729. */
  730. $cfg['URLQueryEncryption'] = false;
  731. /**
  732. * A secret key used to encrypt/decrypt the URL query string. Should be 32 bytes long.
  733. *
  734. * @global string $cfg['URLQueryEncryptionSecretKey']
  735. */
  736. $cfg['URLQueryEncryptionSecretKey'] = '';
  737. /**
  738. * allow login to any user entered server in cookie based authentication
  739. *
  740. * @global boolean $cfg['AllowArbitraryServer']
  741. */
  742. $cfg['AllowArbitraryServer'] = false;
  743. /**
  744. * restrict by IP (with regular expression) the MySQL servers the user can enter
  745. * when $cfg['AllowArbitraryServer'] = true
  746. *
  747. * @global string $cfg['ArbitraryServerRegexp']
  748. */
  749. $cfg['ArbitraryServerRegexp'] = '';
  750. /**
  751. * if reCaptcha is enabled it needs public key to connect with the service
  752. *
  753. * @global string $cfg['CaptchaLoginPublicKey']
  754. */
  755. $cfg['CaptchaLoginPublicKey'] = '';
  756. /**
  757. * if reCaptcha is enabled it needs private key to connect with the service
  758. *
  759. * @global string $cfg['CaptchaLoginPrivateKey']
  760. */
  761. $cfg['CaptchaLoginPrivateKey'] = '';
  762. /*******************************************************************************
  763. * Navigation panel setup
  764. */
  765. /**
  766. * In the navigation panel, replaces the database tree with a selector
  767. *
  768. * @global boolean $cfg['ShowDatabasesNavigationAsTree']
  769. */
  770. $cfg['ShowDatabasesNavigationAsTree'] = true;
  771. /**
  772. * maximum number of first level databases displayed in navigation panel
  773. *
  774. * @global integer $cfg['FirstLevelNavigationItems']
  775. */
  776. $cfg['FirstLevelNavigationItems'] = 100;
  777. /**
  778. * maximum number of items displayed in navigation panel
  779. *
  780. * @global integer $cfg['MaxNavigationItems']
  781. */
  782. $cfg['MaxNavigationItems'] = 50;
  783. /**
  784. * turn the select-based light menu into a tree
  785. *
  786. * @global boolean $cfg['NavigationTreeEnableGrouping']
  787. */
  788. $cfg['NavigationTreeEnableGrouping'] = true;
  789. /**
  790. * the separator to sub-tree the select-based light menu tree
  791. *
  792. * @global string $cfg['NavigationTreeDbSeparator']
  793. */
  794. $cfg['NavigationTreeDbSeparator'] = '_';
  795. /**
  796. * Which string will be used to generate table prefixes
  797. * to split/nest tables into multiple categories
  798. *
  799. * @global string $cfg['NavigationTreeTableSeparator']
  800. */
  801. $cfg['NavigationTreeTableSeparator'] = '__';
  802. /**
  803. * How many sublevels should be displayed when splitting up tables
  804. * by the above Separator
  805. *
  806. * @global integer $cfg['NavigationTreeTableLevel']
  807. */
  808. $cfg['NavigationTreeTableLevel'] = 1;
  809. /**
  810. * link with main panel by highlighting the current db/table
  811. *
  812. * @global boolean $cfg['NavigationLinkWithMainPanel']
  813. */
  814. $cfg['NavigationLinkWithMainPanel'] = true;
  815. /**
  816. * display logo at top of navigation panel
  817. *
  818. * @global boolean $cfg['NavigationDisplayLogo']
  819. */
  820. $cfg['NavigationDisplayLogo'] = true;
  821. /**
  822. * where should logo link point to (can also contain an external URL)
  823. *
  824. * @global string $cfg['NavigationLogoLink']
  825. */
  826. $cfg['NavigationLogoLink'] = 'index.php';
  827. /**
  828. * whether to open the linked page in the main window ('main') or
  829. * in a new window ('new')
  830. *
  831. * @global string $cfg['NavigationLogoLinkWindow']
  832. */
  833. $cfg['NavigationLogoLinkWindow'] = 'main';
  834. /**
  835. * number of recently used tables displayed in the navigation panel
  836. *
  837. * @global integer $cfg['NumRecentTables']
  838. */
  839. $cfg['NumRecentTables'] = 10;
  840. /**
  841. * number of favorite tables displayed in the navigation panel
  842. *
  843. * @global integer $cfg['NumFavoriteTables']
  844. */
  845. $cfg['NumFavoriteTables'] = 10;
  846. /**
  847. * display a JavaScript table filter in the navigation panel
  848. * when more then x tables are present
  849. *
  850. * @global boolean $cfg['NavigationTreeDisplayItemFilterMinimum']
  851. */
  852. $cfg['NavigationTreeDisplayItemFilterMinimum'] = 30;
  853. /**
  854. * display server choice at top of navigation panel
  855. *
  856. * @global boolean $cfg['NavigationDisplayServers']
  857. */
  858. $cfg['NavigationDisplayServers'] = true;
  859. /**
  860. * server choice as links
  861. *
  862. * @global boolean $cfg['DisplayServersList']
  863. */
  864. $cfg['DisplayServersList'] = false;
  865. /**
  866. * display a JavaScript database filter in the navigation panel
  867. * when more then x databases are present
  868. *
  869. * @global boolean $cfg['NavigationTreeDisplayDbFilterMinimum']
  870. */
  871. $cfg['NavigationTreeDisplayDbFilterMinimum'] = 30;
  872. /**
  873. * target of the navigation panel quick access icon
  874. *
  875. * Possible values:
  876. * 'structure.php' = fields list
  877. * 'sql' = SQL form
  878. * 'search' = search page
  879. * 'insert' = insert row page
  880. * 'browse' = browse page
  881. *
  882. * @global string $cfg['NavigationTreeDefaultTabTable']
  883. */
  884. $cfg['NavigationTreeDefaultTabTable'] = 'structure';
  885. /**
  886. * target of the navigation panel quick second access icon
  887. *
  888. * Possible values:
  889. * 'structure' = fields list
  890. * 'sql' = SQL form
  891. * 'search' = search page
  892. * 'insert' = insert row page
  893. * 'browse' = browse page
  894. * '' = no link
  895. *
  896. * @global string $cfg['NavigationTreeDefaultTabTable2']
  897. */
  898. $cfg['NavigationTreeDefaultTabTable2'] = '';
  899. /**
  900. * Enables the possibility of navigation tree expansion
  901. *
  902. * @global boolean $cfg['NavigationTreeEnableExpansion']
  903. */
  904. $cfg['NavigationTreeEnableExpansion'] = true;
  905. /**
  906. * Show tables in navigation panel
  907. *
  908. * @global boolean $cfg['NavigationTreeShowTables']
  909. */
  910. $cfg['NavigationTreeShowTables'] = true;
  911. /**
  912. * Show views in navigation panel
  913. *
  914. * @global boolean $cfg['NavigationTreeShowViews']
  915. */
  916. $cfg['NavigationTreeShowViews'] = true;
  917. /**
  918. * Show functions in navigation panel
  919. *
  920. * @global boolean $cfg['NavigationTreeShowFunctions']
  921. */
  922. $cfg['NavigationTreeShowFunctions'] = true;
  923. /**
  924. * Show procedures in navigation panel
  925. *
  926. * @global boolean $cfg['NavigationTreeShowProcedures']
  927. */
  928. $cfg['NavigationTreeShowProcedures'] = true;
  929. /**
  930. * Show events in navigation panel
  931. *
  932. * @global boolean $cfg['NavigationTreeShowEvents']
  933. */
  934. $cfg['NavigationTreeShowEvents'] = true;
  935. /**
  936. * Width of navigation panel
  937. *
  938. * @global integer $cfg['NavigationWidth']
  939. */
  940. $cfg['NavigationWidth'] = 240;
  941. /*******************************************************************************
  942. * In the main panel, at startup...
  943. */
  944. /**
  945. * allow to display statistics and space usage in the pages about database
  946. * details and table properties
  947. *
  948. * @global boolean $cfg['ShowStats']
  949. */
  950. $cfg['ShowStats'] = true;
  951. /**
  952. * show PHP info link
  953. *
  954. * @global boolean $cfg['ShowPhpInfo']
  955. */
  956. $cfg['ShowPhpInfo'] = false;
  957. /**
  958. * show MySQL server and web server information
  959. *
  960. * @global boolean $cfg['ShowServerInfo']
  961. */
  962. $cfg['ShowServerInfo'] = true;
  963. /**
  964. * show change password link
  965. *
  966. * @global boolean $cfg['ShowChgPassword']
  967. */
  968. $cfg['ShowChgPassword'] = true;
  969. /**
  970. * show create database form
  971. *
  972. * @global boolean $cfg['ShowCreateDb']
  973. */
  974. $cfg['ShowCreateDb'] = true;
  975. /*******************************************************************************
  976. * Database structure
  977. */
  978. /** show charset column in database structure (true|false)?
  979. *
  980. * @global boolean $cfg['ShowDbStructureCharset']
  981. */
  982. $cfg['ShowDbStructureCharset'] = false;
  983. /**
  984. * show comment column in database structure (true|false)?
  985. *
  986. * @global boolean $cfg['ShowDbStructureComment']
  987. */
  988. $cfg['ShowDbStructureComment'] = false;
  989. /**
  990. * show creation timestamp column in database structure (true|false)?
  991. *
  992. * @global boolean $cfg['ShowDbStructureCreation']
  993. */
  994. $cfg['ShowDbStructureCreation'] = false;
  995. /**
  996. * show last update timestamp column in database structure (true|false)?
  997. *
  998. * @global boolean $cfg['ShowDbStructureLastUpdate']
  999. */
  1000. $cfg['ShowDbStructureLastUpdate'] = false;
  1001. /**
  1002. * show last check timestamp column in database structure (true|false)?
  1003. *
  1004. * @global boolean $cfg['ShowDbStructureLastCheck']
  1005. */
  1006. $cfg['ShowDbStructureLastCheck'] = false;
  1007. /**
  1008. * allow hide action columns to drop down menu in database structure (true|false)?
  1009. *
  1010. * @global boolean $cfg['HideStructureActions']
  1011. */
  1012. $cfg['HideStructureActions'] = true;
  1013. /**
  1014. * Show column comments in table structure view (true|false)?
  1015. *
  1016. * @global boolean $cfg['ShowColumnComments']
  1017. */
  1018. $cfg['ShowColumnComments'] = true;
  1019. /*******************************************************************************
  1020. * In browse mode...
  1021. */
  1022. /**
  1023. * Use icons instead of text for the navigation bar buttons (table browse)
  1024. * ('text'|'icons'|'both')
  1025. *
  1026. * @global string $cfg['TableNavigationLinksMode']
  1027. */
  1028. $cfg['TableNavigationLinksMode'] = 'icons';
  1029. /**
  1030. * Defines whether a user should be displayed a "show all (records)"
  1031. * button in browse mode or not.
  1032. *
  1033. * @global boolean $cfg['ShowAll']
  1034. */
  1035. $cfg['ShowAll'] = false;
  1036. /**
  1037. * Number of rows displayed when browsing a result set. If the result
  1038. * set contains more rows, "Previous" and "Next".
  1039. * Possible values: 25,50,100,250,500
  1040. *
  1041. * @global integer $cfg['MaxRows']
  1042. */
  1043. $cfg['MaxRows'] = 25;
  1044. /**
  1045. * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
  1046. * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
  1047. * ascending order else-)
  1048. *
  1049. * @global string $cfg['Order']
  1050. */
  1051. $cfg['Order'] = 'SMART';
  1052. /**
  1053. * grid editing: save edited cell(s) in browse-mode at once
  1054. *
  1055. * @global boolean $cfg['SaveCellsAtOnce']
  1056. */
  1057. $cfg['SaveCellsAtOnce'] = false;
  1058. /**
  1059. * grid editing: which action triggers it, or completely disable the feature
  1060. *
  1061. * Possible values:
  1062. * 'click'
  1063. * 'double-click'
  1064. * 'disabled'
  1065. *
  1066. * @global string $cfg['GridEditing']
  1067. */
  1068. $cfg['GridEditing'] ='double-click';
  1069. /**
  1070. * Options > Relational display
  1071. *
  1072. * Possible values:
  1073. * 'K' for key value
  1074. * 'D' for display column
  1075. *
  1076. * @global string $cfg['RelationalDisplay']
  1077. *
  1078. */
  1079. $cfg['RelationalDisplay'] = 'K';
  1080. /*******************************************************************************
  1081. * In edit mode...
  1082. */
  1083. /**
  1084. * disallow editing of binary fields
  1085. * valid values are:
  1086. * false allow editing
  1087. * 'blob' allow editing except for BLOB fields
  1088. * 'noblob' disallow editing except for BLOB fields
  1089. * 'all' disallow editing
  1090. *
  1091. * @global string $cfg['ProtectBinary']
  1092. */
  1093. $cfg['ProtectBinary'] = 'blob';
  1094. /**
  1095. * Display the function fields in edit/insert mode
  1096. *
  1097. * @global boolean $cfg['ShowFunctionFields']
  1098. */
  1099. $cfg['ShowFunctionFields'] = true;
  1100. /**
  1101. * Display the type fields in edit/insert mode
  1102. *
  1103. * @global boolean $cfg['ShowFieldTypesInDataEditView']
  1104. */
  1105. $cfg['ShowFieldTypesInDataEditView'] = true;
  1106. /**
  1107. * Which editor should be used for CHAR/VARCHAR fields:
  1108. * input - allows limiting of input length
  1109. * textarea - allows newlines in fields
  1110. *
  1111. * @global string $cfg['CharEditing']
  1112. */
  1113. $cfg['CharEditing'] = 'input';
  1114. /**
  1115. * The minimum size for character input fields
  1116. *
  1117. * @global integer $cfg['MinSizeForInputField']
  1118. */
  1119. $cfg['MinSizeForInputField'] = 4;
  1120. /**
  1121. * The maximum size for character input fields
  1122. *
  1123. * @global integer $cfg['MinSizeForInputField']
  1124. */
  1125. $cfg['MaxSizeForInputField'] = 60;
  1126. /**
  1127. * How many rows can be inserted at one time
  1128. *
  1129. * @global integer $cfg['InsertRows']
  1130. */
  1131. $cfg['InsertRows'] = 2;
  1132. /**
  1133. * Sort order for items in a foreign-key drop-down list.
  1134. * 'content' is the referenced data, 'id' is the key value.
  1135. *
  1136. * @global array $cfg['ForeignKeyDropdownOrder']
  1137. */
  1138. $cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
  1139. /**
  1140. * A drop-down list will be used if fewer items are present
  1141. *
  1142. * @global integer $cfg['ForeignKeyMaxLimit']
  1143. */
  1144. $cfg['ForeignKeyMaxLimit'] = 100;
  1145. /**
  1146. * Whether to disable foreign key checks while importing
  1147. *
  1148. * @global boolean $cfg['DefaultForeignKeyChecks']
  1149. */
  1150. $cfg['DefaultForeignKeyChecks'] = 'default';
  1151. /*******************************************************************************
  1152. * For the export features...
  1153. */
  1154. /**
  1155. * Allow for the use of zip compression (requires zip support to be enabled)
  1156. *
  1157. * @global boolean $cfg['ZipDump']
  1158. */
  1159. $cfg['ZipDump'] = true;
  1160. /**
  1161. * Allow for the use of gzip compression (requires zlib)
  1162. *
  1163. * @global boolean $cfg['GZipDump']
  1164. */
  1165. $cfg['GZipDump'] = true;
  1166. /**
  1167. * Allow for the use of bzip2 decompression (requires bz2 extension)
  1168. *
  1169. * @global boolean $cfg['BZipDump']
  1170. */
  1171. $cfg['BZipDump'] = true;
  1172. /**
  1173. * Will compress gzip exports on the fly without the need for much memory.
  1174. * If you encounter problems with created gzip files disable this feature.
  1175. *
  1176. * @global boolean $cfg['CompressOnFly']
  1177. */
  1178. $cfg['CompressOnFly'] = true;
  1179. /*******************************************************************************
  1180. * Tabs display settings
  1181. */
  1182. /**
  1183. * How to display the menu tabs ('icons'|'text'|'both')
  1184. *
  1185. * @global boolean $cfg['TabsMode']
  1186. */
  1187. $cfg['TabsMode'] = 'both';
  1188. /**
  1189. * How to display various action links ('icons'|'text'|'both')
  1190. *
  1191. * @global boolean $cfg['ActionLinksMode']
  1192. */
  1193. $cfg['ActionLinksMode'] = 'both';
  1194. /**
  1195. * How many columns should be used for table display of a database?
  1196. * (a value larger than 1 results in some information being hidden)
  1197. *
  1198. * @global integer $cfg['PropertiesNumColumns']
  1199. */
  1200. $cfg['PropertiesNumColumns'] = 1;
  1201. /**
  1202. * Possible values:
  1203. * 'welcome' = the welcome page
  1204. * (recommended for multiuser setups)
  1205. * 'databases' = list of databases
  1206. * 'status' = runtime information
  1207. * 'variables' = MySQL server variables
  1208. * 'privileges' = user management
  1209. *
  1210. * @global string $cfg['DefaultTabServer']
  1211. */
  1212. $cfg['DefaultTabServer'] = 'welcome';
  1213. /**
  1214. * Possible values:
  1215. * 'structure' = tables list
  1216. * 'sql' = SQL form
  1217. * 'search' = search query
  1218. * 'operations' = operations on database
  1219. *
  1220. * @global string $cfg['DefaultTabDatabase']
  1221. */
  1222. $cfg['DefaultTabDatabase'] = 'structure';
  1223. /**
  1224. * Possible values:
  1225. * 'structure' = fields list
  1226. * 'sql' = SQL form
  1227. * 'search' = search page
  1228. * 'insert' = insert row page
  1229. * 'browse' = browse page
  1230. *
  1231. * @global string $cfg['DefaultTabTable']
  1232. */
  1233. $cfg['DefaultTabTable'] = 'browse';
  1234. /**
  1235. * Whether to display image or text or both image and text in table row
  1236. * action segment. Value can be either of ``image``, ``text`` or ``both``.
  1237. */
  1238. $cfg['RowActionType'] = 'both';
  1239. /*******************************************************************************
  1240. * Export defaults
  1241. */
  1242. $cfg['Export'] = array();
  1243. /**
  1244. * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xml/yaml
  1245. *
  1246. * @global string $cfg['Export']['format']
  1247. */
  1248. $cfg['Export']['format'] = 'sql';
  1249. /**
  1250. * quick/custom/custom-no-form
  1251. *
  1252. * @global string $cfg['Export']['format']
  1253. */
  1254. $cfg['Export']['method'] = 'quick';
  1255. /**
  1256. * none/zip/gzip
  1257. *
  1258. * @global string $cfg['Export']['compression']
  1259. */
  1260. $cfg['Export']['compression'] = 'none';
  1261. /**
  1262. * Whether to LOCK TABLES before exporting
  1263. *
  1264. * @global boolean $cfg['Export']['lock_tables']
  1265. */
  1266. $cfg['Export']['lock_tables'] = false;
  1267. /**
  1268. * Whether to export databases/tables as separate files
  1269. *
  1270. * @global boolean $cfg['Export']['as_separate_files']
  1271. */
  1272. $cfg['Export']['as_separate_files'] = false;
  1273. /**
  1274. *
  1275. *
  1276. * @global boolean $cfg['Export']['asfile']
  1277. */
  1278. $cfg['Export']['asfile'] = true;
  1279. /**
  1280. *
  1281. *
  1282. * @global string $cfg['Export']['charset']
  1283. */
  1284. $cfg['Export']['charset'] = '';
  1285. /**
  1286. *
  1287. *
  1288. * @global boolean $cfg['Export']['onserver']
  1289. */
  1290. $cfg['Export']['onserver'] = false;
  1291. /**
  1292. *
  1293. *
  1294. * @global boolean $cfg['Export']['onserver_overwrite']
  1295. */
  1296. $cfg['Export']['onserver_overwrite'] = false;
  1297. /**
  1298. *
  1299. *
  1300. * @global boolean $cfg['Export']['quick_export_onserver']
  1301. */
  1302. $cfg['Export']['quick_export_onserver'] = false;
  1303. /**
  1304. *
  1305. *
  1306. * @global boolean $cfg['Export']['quick_export_onserver_overwrite']
  1307. */
  1308. $cfg['Export']['quick_export_onserver_overwrite'] = false;
  1309. /**
  1310. *
  1311. *
  1312. * @global boolean $cfg['Export']['remember_file_template']
  1313. */
  1314. $cfg['Export']['remember_file_template'] = true;
  1315. /**
  1316. *
  1317. *
  1318. * @global string $cfg['Export']['file_template_table']
  1319. */
  1320. $cfg['Export']['file_template_table'] = '@TABLE@';
  1321. /**
  1322. *
  1323. *
  1324. * @global string $cfg['Export']['file_template_database']
  1325. */
  1326. $cfg['Export']['file_template_database'] = '@DATABASE@';
  1327. /**
  1328. *
  1329. *
  1330. * @global string $cfg['Export']['file_template_server']
  1331. */
  1332. $cfg['Export']['file_template_server'] = '@SERVER@';
  1333. /**
  1334. *
  1335. *
  1336. * @global string $cfg['Export']['codegen_structure_or_data']
  1337. */
  1338. $cfg['Export']['codegen_structure_or_data'] = 'data';
  1339. /**
  1340. *
  1341. *
  1342. * @global $cfg['Export']['codegen_format']
  1343. */
  1344. $cfg['Export']['codegen_format'] = 0;
  1345. /**
  1346. *
  1347. *
  1348. * @global boolean $cfg['Export']['ods_columns']
  1349. */
  1350. $cfg['Export']['ods_columns'] = false;
  1351. /**
  1352. *
  1353. *
  1354. * @global string $cfg['Export']['ods_null']
  1355. */
  1356. $cfg['Export']['ods_null'] = 'NULL';
  1357. /**
  1358. *
  1359. *
  1360. * @global string $cfg['Export']['odt_structure_or_data']
  1361. */
  1362. $cfg['Export']['odt_structure_or_data'] = 'structure_and_data';
  1363. /**
  1364. *
  1365. *
  1366. * @global boolean $cfg['Export']['odt_columns']
  1367. */
  1368. $cfg['Export']['odt_columns'] = true;
  1369. /**
  1370. *
  1371. *
  1372. * @global boolean $cfg['Export']['odt_relation']
  1373. */
  1374. $cfg['Export']['odt_relation'] = true;
  1375. /**
  1376. *
  1377. *
  1378. * @global boolean $cfg['Export']['odt_comments']
  1379. */
  1380. $cfg['Export']['odt_comments'] = true;
  1381. /**
  1382. *
  1383. *
  1384. * @global boolean $cfg['Export']['odt_mime']
  1385. */
  1386. $cfg['Export']['odt_mime'] = true;
  1387. /**
  1388. *
  1389. *
  1390. * @global string $cfg['Export']['odt_null']
  1391. */
  1392. $cfg['Export']['odt_null'] = 'NULL';
  1393. /**
  1394. *
  1395. *
  1396. * @global boolean $cfg['Export']['htmlword_structure_or_data']
  1397. */
  1398. $cfg['Export']['htmlword_structure_or_data'] = 'structure_and_data';
  1399. /**
  1400. *
  1401. *
  1402. * @global boolean $cfg['Export']['htmlword_columns']
  1403. */
  1404. $cfg['Export']['htmlword_columns'] = false;
  1405. /**
  1406. *
  1407. *
  1408. * @global string $cfg['Export']['htmlword_null']
  1409. */
  1410. $cfg['Export']['htmlword_null'] = 'NULL';
  1411. /**
  1412. *
  1413. *
  1414. * @global string $cfg['Export']['texytext_structure_or_data']
  1415. */
  1416. $cfg['Export']['texytext_structure_or_data'] = 'structure_and_data';
  1417. /**
  1418. *
  1419. *
  1420. * @global boolean $cfg['Export']['texytext_columns']
  1421. */
  1422. $cfg['Export']['texytext_columns'] = false;
  1423. /**
  1424. *
  1425. *
  1426. * @global string $cfg['Export']['texytext_null']
  1427. */
  1428. $cfg['Export']['texytext_null'] = 'NULL';
  1429. /**
  1430. *
  1431. *
  1432. * @global boolean $cfg['Export']['csv_columns']
  1433. */
  1434. $cfg['Export']['csv_columns'] = false;
  1435. /**
  1436. *
  1437. *
  1438. * @global string $cfg['Export']['csv_structure_or_data']
  1439. */
  1440. $cfg['Export']['csv_structure_or_data'] = 'data';
  1441. /**
  1442. *
  1443. *
  1444. * @global string $cfg['Export']['csv_null']
  1445. */
  1446. $cfg['Export']['csv_null'] = 'NULL';
  1447. /**
  1448. *
  1449. *
  1450. * @global string $cfg['Export']['csv_separator']
  1451. */
  1452. $cfg['Export']['csv_separator'] = ',';
  1453. /**
  1454. *
  1455. *
  1456. * @global string $cfg['Export']['csv_enclosed']
  1457. */
  1458. $cfg['Export']['csv_enclosed'] = '"';
  1459. /**
  1460. *
  1461. *
  1462. * @global string $cfg['Export']['csv_escaped']
  1463. */
  1464. $cfg['Export']['csv_escaped'] = '"';
  1465. /**
  1466. *
  1467. *
  1468. * @global string $cfg['Export']['csv_terminated']
  1469. */
  1470. $cfg['Export']['csv_terminated'] = 'AUTO';
  1471. /**
  1472. *
  1473. *
  1474. * @global string $cfg['Export']['csv_removeCRLF']
  1475. */
  1476. $cfg['Export']['csv_removeCRLF'] = false;
  1477. /**
  1478. *
  1479. *
  1480. * @global boolean $cfg['Export']['excel_columns']
  1481. */
  1482. $cfg['Export']['excel_columns'] = true;
  1483. /**
  1484. *
  1485. *
  1486. * @global string $cfg['Export']['excel_null']
  1487. */
  1488. $cfg['Export']['excel_null'] = 'NULL';
  1489. /**
  1490. * win/mac
  1491. *
  1492. * @global string $cfg['Export']['excel_edition']
  1493. */
  1494. $cfg['Export']['excel_edition'] = 'win';
  1495. /**
  1496. *
  1497. *
  1498. * @global string $cfg['Export']['excel_removeCRLF']
  1499. */
  1500. $cfg['Export']['excel_removeCRLF'] = false;
  1501. /**
  1502. *
  1503. *
  1504. * @global string $cfg['Export']['excel_structure_or_data']
  1505. */
  1506. $cfg['Export']['excel_structure_or_data'] = 'data';
  1507. /**
  1508. *
  1509. *
  1510. * @global string $cfg['Export']['latex_structure_or_data']
  1511. */
  1512. $cfg['Export']['latex_structure_or_data'] = 'structure_and_data';
  1513. /**
  1514. *
  1515. *
  1516. * @global boolean $cfg['Export']['latex_columns']
  1517. */
  1518. $cfg['Export']['latex_columns'] = true;
  1519. /**
  1520. *
  1521. *
  1522. * @global boolean $cfg['Export']['latex_relation']
  1523. */
  1524. $cfg['Export']['latex_relation'] = true;
  1525. /**
  1526. *
  1527. *
  1528. * @global boolean $cfg['Export']['latex_comments']
  1529. */
  1530. $cfg['Export']['latex_comments'] = true;
  1531. /**
  1532. *
  1533. *
  1534. * @global boolean $cfg['Export']['latex_mime']
  1535. */
  1536. $cfg['Export']['latex_mime'] = true;
  1537. /**
  1538. *
  1539. *
  1540. * @global string $cfg['Export']['latex_null']
  1541. */
  1542. $cfg['Export']['latex_null'] = '\textit{NULL}';
  1543. /**
  1544. *
  1545. *
  1546. * @global boolean $cfg['Export']['latex_caption']
  1547. */
  1548. $cfg['Export']['latex_caption'] = true;
  1549. /**
  1550. *
  1551. *
  1552. * @global string $cfg['Export']['latex_structure_caption']
  1553. */
  1554. $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
  1555. /**
  1556. *
  1557. *
  1558. * @global string $cfg['Export']['latex_structure_continued_caption']
  1559. */
  1560. $cfg['Export']['latex_structure_continued_caption']
  1561. = 'strLatexStructure strLatexContinued';
  1562. /**
  1563. *
  1564. *
  1565. * @global string $cfg['Export']['latex_data_caption']
  1566. */
  1567. $cfg['Export']['latex_data_caption'] = 'strLatexContent';
  1568. /**
  1569. *
  1570. *
  1571. * @global string $cfg['Export']['latex_data_continued_caption']
  1572. */
  1573. $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
  1574. /**
  1575. *
  1576. *
  1577. * @global string $cfg['Export']['latex_data_label']
  1578. */
  1579. $cfg['Export']['latex_data_label'] = 'tab:@TABLE@-data';
  1580. /**
  1581. *
  1582. *
  1583. * @global string $cfg['Export']['latex_structure_label']
  1584. */
  1585. $cfg['Export']['latex_structure_label'] = 'tab:@TABLE@-structure';
  1586. /**
  1587. *
  1588. *
  1589. * @global string $cfg['Export']['mediawiki_structure_or_data']
  1590. */
  1591. $cfg['Export']['mediawiki_structure_or_data'] = 'data';
  1592. /**
  1593. *
  1594. *
  1595. * @global boolean $cfg['Export']['mediawiki_caption']
  1596. */
  1597. $cfg['Export']['mediawiki_caption'] = true;
  1598. /**
  1599. *
  1600. *
  1601. * @global boolean $cfg['Export']['mediawiki_headers']
  1602. */
  1603. $cfg['Export']['mediawiki_headers'] = true;
  1604. /**
  1605. *
  1606. *
  1607. * @global string $cfg['Export']['ods_structure_or_data']
  1608. */
  1609. $cfg['Export']['ods_structure_or_data'] = 'data';
  1610. /**
  1611. *
  1612. *
  1613. * @global string $cfg['Export']['pdf_structure_or_data']
  1614. */
  1615. $cfg['Export']['pdf_structure_or_data'] = 'data';
  1616. /**
  1617. *
  1618. *
  1619. * @global string $cfg['Export']['phparray_structure_or_data']
  1620. */
  1621. $cfg['Export']['phparray_structure_or_data'] = 'data';
  1622. /**
  1623. *
  1624. *
  1625. * @global string $cfg['Export']['json_structure_or_data']
  1626. */
  1627. $cfg['Export']['json_structure_or_data'] = 'data';
  1628. /**
  1629. * Export functions
  1630. *
  1631. * @global string $cfg['Export']['json_pretty_print']
  1632. */
  1633. $cfg['Export']['json_pretty_print'] = false;
  1634. /**
  1635. * Export functions
  1636. *
  1637. * @global string $cfg['Export']['json_unicode']
  1638. */
  1639. $cfg['Export']['json_unicode'] = true;
  1640. /**
  1641. *
  1642. *
  1643. * @global string $cfg['Export']['sql_structure_or_data']
  1644. */
  1645. $cfg['Export']['sql_structure_or_data'] = 'structure_and_data';
  1646. /**
  1647. *
  1648. *
  1649. * @global string $cfg['Export']['sql_compatibility']
  1650. */
  1651. $cfg['Export']['sql_compatibility'] = 'NONE';
  1652. /**
  1653. * Whether to include comments in SQL export.
  1654. *
  1655. * @global string $cfg['Export']['sql_include_comments']
  1656. */
  1657. $cfg['Export']['sql_include_comments'] = true;
  1658. /**
  1659. *
  1660. *
  1661. * @global boolean $cfg['Export']['sql_disable_fk']
  1662. */
  1663. $cfg['Export']['sql_disable_fk'] = false;
  1664. /**
  1665. *
  1666. *
  1667. * @global boolean $cfg['Export']['sql_views_as_tables']
  1668. */
  1669. $cfg['Export']['sql_views_as_tables'] = false;
  1670. /**
  1671. *
  1672. *
  1673. * @global boolean $cfg['Export']['sql_metadata']
  1674. */
  1675. $cfg['Export']['sql_metadata'] = false;
  1676. /**
  1677. *
  1678. *
  1679. * @global boolean $cfg['Export']['sql_use_transaction']
  1680. */
  1681. $cfg['Export']['sql_use_transaction'] = true;
  1682. /**
  1683. *
  1684. *
  1685. * @global boolean $cfg['Export']['sql_create_database']
  1686. */
  1687. $cfg['Export']['sql_create_database'] = false;
  1688. /**
  1689. *
  1690. *
  1691. * @global boolean $cfg['Export']['sql_drop_database']
  1692. */
  1693. $cfg['Export']['sql_drop_database'] = false;
  1694. /**
  1695. *
  1696. *
  1697. * @global boolean $cfg['Export']['sql_drop_table']
  1698. */
  1699. $cfg['Export']['sql_drop_table'] = false;
  1700. /**
  1701. *
  1702. *
  1703. * true by default for correct behavior when dealing with exporting
  1704. * of VIEWs and the stand-in table
  1705. * @global boolean $cfg['Export']['sql_if_not_exists']
  1706. */
  1707. $cfg['Export']['sql_if_not_exists'] = false;
  1708. /**
  1709. *
  1710. *
  1711. * @global boolean $cfg['Export']['sql_procedure_function']
  1712. */
  1713. $cfg['Export']['sql_procedure_function'] = true;
  1714. /**
  1715. *
  1716. *
  1717. * @global boolean $cfg['Export']['sql_create_table']
  1718. */
  1719. $cfg['Export']['sql_create_table'] = true;
  1720. /**
  1721. *
  1722. *
  1723. * @global boolean $cfg['Export']['sql_create_view']
  1724. */
  1725. $cfg['Export']['sql_create_view'] = true;
  1726. /**
  1727. *
  1728. *
  1729. * @global boolean $cfg['Export']['sql_create_trigger']
  1730. */
  1731. $cfg['Export']['sql_create_trigger'] = true;
  1732. /**
  1733. *
  1734. *
  1735. * @global boolean $cfg['Export']['sql_auto_increment']
  1736. */
  1737. $cfg['Export']['sql_auto_increment'] = true;
  1738. /**
  1739. *
  1740. *
  1741. * @global boolean $cfg['Export']['sql_backquotes']
  1742. */
  1743. $cfg['Export']['sql_backquotes'] = true;
  1744. /**
  1745. *
  1746. *
  1747. * @global boolean $cfg['Export']['sql_dates']
  1748. */
  1749. $cfg['Export']['sql_dates'] = false;
  1750. /**
  1751. *
  1752. *
  1753. * @global boolean $cfg['Export']['sql_relation']
  1754. */
  1755. $cfg['Export']['sql_relation'] = false;
  1756. /**
  1757. *
  1758. *
  1759. * @global boolean $cfg['Export']['sql_truncate']
  1760. */
  1761. $cfg['Export']['sql_truncate'] = false;
  1762. /**
  1763. *
  1764. *
  1765. * @global boolean $cfg['Export']['sql_delayed']
  1766. */
  1767. $cfg['Export']['sql_delayed'] = false;
  1768. /**
  1769. *
  1770. *
  1771. * @global boolean $cfg['Export']['sql_ignore']
  1772. */
  1773. $cfg['Export']['sql_ignore'] = false;
  1774. /**
  1775. * Export time in UTC.
  1776. *
  1777. * @global boolean $cfg['Export']['sql_utc_time']
  1778. */
  1779. $cfg['Export']['sql_utc_time'] = true;
  1780. /**
  1781. *
  1782. *
  1783. * @global boolean $cfg['Export']['sql_hex_for_binary']
  1784. */
  1785. $cfg['Export']['sql_hex_for_binary'] = true;
  1786. /**
  1787. * insert/update/replace
  1788. *
  1789. * @global string $cfg['Export']['sql_type']
  1790. */
  1791. $cfg['Export']['sql_type'] = 'INSERT';
  1792. /**
  1793. *
  1794. *
  1795. * @global integer $cfg['Export']['sql_max_query_size']
  1796. */
  1797. $cfg['Export']['sql_max_query_size'] = 50000;
  1798. /**
  1799. *
  1800. *
  1801. * @global boolean $cfg['Export']['sql_mime']
  1802. */
  1803. $cfg['Export']['sql_mime'] = false;
  1804. /**
  1805. * \n is replaced by new line
  1806. *
  1807. * @global string $cfg['Export']['sql_header_comment']
  1808. */
  1809. $cfg['Export']['sql_header_comment'] = '';
  1810. /**
  1811. * Whether to use complete inserts, extended inserts, both, or neither
  1812. *
  1813. * @global string $cfg['Export']['sql_insert_syntax']
  1814. */
  1815. $cfg['Export']['sql_insert_syntax'] = 'both';
  1816. /**
  1817. *
  1818. *
  1819. * @global string $cfg['Export']['pdf_report_title']
  1820. */
  1821. $cfg['Export']['pdf_report_title'] = '';
  1822. /**
  1823. *
  1824. *
  1825. *@global string $cfg['Export']['xml_structure_or_data']
  1826. */
  1827. $cfg['Export']['xml_structure_or_data'] = 'data';
  1828. /**
  1829. * Export schema for each structure
  1830. *
  1831. * @global string $cfg['Export']['xml_export_struc']
  1832. */
  1833. $cfg['Export']['xml_export_struc'] = true;
  1834. /**
  1835. * Export events
  1836. *
  1837. * @global string $cfg['Export']['xml_export_events']
  1838. */
  1839. $cfg['Export']['xml_export_events'] = true;
  1840. /**
  1841. * Export functions
  1842. *
  1843. * @global string $cfg['Export']['xml_export_functions']
  1844. */
  1845. $cfg['Export']['xml_export_functions'] = true;
  1846. /**
  1847. * Export procedures
  1848. *
  1849. * @global string $cfg['Export']['xml_export_procedures']
  1850. */
  1851. $cfg['Export']['xml_export_procedures'] = true;
  1852. /**
  1853. * Export schema for each table
  1854. *
  1855. * @global string $cfg['Export']['xml_export_tables']
  1856. */
  1857. $cfg['Export']['xml_export_tables'] = true;
  1858. /**
  1859. * Export triggers
  1860. *
  1861. * @global string $cfg['Export']['xml_export_triggers']
  1862. */
  1863. $cfg['Export']['xml_export_triggers'] = true;
  1864. /**
  1865. * Export views
  1866. *
  1867. * @global string $cfg['Export']['xml_export_views']
  1868. */
  1869. $cfg['Export']['xml_export_views'] = true;
  1870. /**
  1871. * Export contents data
  1872. *
  1873. * @global string $cfg['Export']['xml_export_contents']
  1874. */
  1875. $cfg['Export']['xml_export_contents'] = true;
  1876. /**
  1877. *
  1878. *
  1879. * @global string $cfg['Export']['yaml_structure_or_data']
  1880. */
  1881. $cfg['Export']['yaml_structure_or_data'] = 'data';
  1882. /*******************************************************************************
  1883. * Import defaults
  1884. */
  1885. $cfg['Import'] = array();
  1886. /**
  1887. *
  1888. *
  1889. * @global string $cfg['Import']['format']
  1890. */
  1891. $cfg['Import']['format'] = 'sql';
  1892. /**
  1893. * Default charset for import.
  1894. *
  1895. * @global string $cfg['Import']['charset']
  1896. */
  1897. $cfg['Import']['charset'] = '';
  1898. /**
  1899. *
  1900. *
  1901. * @global boolean $cfg['Import']['allow_interrupt']
  1902. */
  1903. $cfg['Import']['allow_interrupt'] = true;
  1904. /**
  1905. *
  1906. *
  1907. * @global integer $cfg['Import']['skip_queries']
  1908. */
  1909. $cfg['Import']['skip_queries'] = 0;
  1910. /**
  1911. *
  1912. *
  1913. * @global string $cfg['Import']['sql_compatibility']
  1914. */
  1915. $cfg['Import']['sql_compatibility'] = 'NONE';
  1916. /**
  1917. *
  1918. *
  1919. * @global string $cfg['Import']['sql_no_auto_value_on_zero']
  1920. */
  1921. $cfg['Import']['sql_no_auto_value_on_zero'] = true;
  1922. /**
  1923. *
  1924. *
  1925. * @global string $cfg['Import']['sql_read_as_multibytes']
  1926. */
  1927. $cfg['Import']['sql_read_as_multibytes'] = false;
  1928. /**
  1929. *
  1930. *
  1931. * @global boolean $cfg['Import']['csv_replace']
  1932. */
  1933. $cfg['Import']['csv_replace'] = false;
  1934. /**
  1935. *
  1936. *
  1937. * @global boolean $cfg['Import']['csv_ignore']
  1938. */
  1939. $cfg['Import']['csv_ignore'] = false;
  1940. /**
  1941. *
  1942. *
  1943. * @global string $cfg['Import']['csv_terminated']
  1944. */
  1945. $cfg['Import']['csv_terminated'] = ',';
  1946. /**
  1947. *
  1948. *
  1949. * @global string $cfg['Import']['csv_enclosed']
  1950. */
  1951. $cfg['Import']['csv_enclosed'] = '"';
  1952. /**
  1953. *
  1954. *
  1955. * @global string $cfg['Import']['csv_escaped']
  1956. */
  1957. $cfg['Import']['csv_escaped'] = '"';
  1958. /**
  1959. *
  1960. *
  1961. * @global string $cfg['Import']['csv_new_line']
  1962. */
  1963. $cfg['Import']['csv_new_line'] = 'auto';
  1964. /**
  1965. *
  1966. *
  1967. * @global string $cfg['Import']['csv_columns']
  1968. */
  1969. $cfg['Import']['csv_columns'] = '';
  1970. /**
  1971. *
  1972. *
  1973. * @global string $cfg['Import']['csv_col_names']
  1974. */
  1975. $cfg['Import']['csv_col_names'] = false;
  1976. /**
  1977. *
  1978. *
  1979. * @global boolean $cfg['Import']['ldi_replace']
  1980. */
  1981. $cfg['Import']['ldi_replace'] = false;
  1982. /**
  1983. *
  1984. *
  1985. * @global boolean $cfg['Import']['ldi_ignore']
  1986. */
  1987. $cfg['Import']['ldi_ignore'] = false;
  1988. /**
  1989. *
  1990. *
  1991. * @global string $cfg['Import']['ldi_terminated']
  1992. */
  1993. $cfg['Import']['ldi_terminated'] = ';';
  1994. /**
  1995. *
  1996. *
  1997. * @global string $cfg['Import']['ldi_enclosed']
  1998. */
  1999. $cfg['Import']['ldi_enclosed'] = '"';
  2000. /**
  2001. *
  2002. *
  2003. * @global string $cfg['Import']['ldi_escaped']
  2004. */
  2005. $cfg['Import']['ldi_escaped'] = '\\';
  2006. /**
  2007. *
  2008. *
  2009. * @global string $cfg['Import']['ldi_new_line']
  2010. */
  2011. $cfg['Import']['ldi_new_line'] = 'auto';
  2012. /**
  2013. *
  2014. *
  2015. * @global string $cfg['Import']['ldi_columns']
  2016. */
  2017. $cfg['Import']['ldi_columns'] = '';
  2018. /**
  2019. * 'auto' for auto-detection, true or false for forcing
  2020. *
  2021. * @global string $cfg['Import']['ldi_local_option']
  2022. */
  2023. $cfg['Import']['ldi_local_option'] = 'auto';
  2024. /**
  2025. *
  2026. *
  2027. * @global string $cfg['Import']['ods_col_names']
  2028. */
  2029. $cfg['Import']['ods_col_names'] = false;
  2030. /**
  2031. *
  2032. *
  2033. * @global string $cfg['Import']['ods_empty_rows']
  2034. */
  2035. $cfg['Import']['ods_empty_rows'] = true;
  2036. /**
  2037. *
  2038. *
  2039. * @global string $cfg['Import']['ods_recognize_percentages']
  2040. */
  2041. $cfg['Import']['ods_recognize_percentages'] = true;
  2042. /**
  2043. *
  2044. *
  2045. * @global string $cfg['Import']['ods_recognize_currency']
  2046. */
  2047. $cfg['Import']['ods_recognize_currency'] = true;
  2048. /*******************************************************************************
  2049. * Schema export defaults
  2050. */
  2051. $cfg['Schema'] = array();
  2052. /**
  2053. * pdf/eps/dia/svg
  2054. *
  2055. * @global string $cfg['Schema']['format']
  2056. */
  2057. $cfg['Schema']['format'] = 'pdf';
  2058. /**
  2059. *
  2060. *
  2061. * @global string $cfg['Schema']['pdf_show_color']
  2062. */
  2063. $cfg['Schema']['pdf_show_color'] = true;
  2064. /**
  2065. *
  2066. *
  2067. * @global string $cfg['Schema']['pdf_show_keys']
  2068. */
  2069. $cfg['Schema']['pdf_show_keys'] = false;
  2070. /**
  2071. *
  2072. *
  2073. * @global string $cfg['Schema']['pdf_all_tables_same_width']
  2074. */
  2075. $cfg['Schema']['pdf_all_tables_same_width'] = false;
  2076. /**
  2077. * L/P
  2078. *
  2079. * @global string $cfg['Schema']['pdf_orientation']
  2080. */
  2081. $cfg['Schema']['pdf_orientation'] = 'L';
  2082. /**
  2083. *
  2084. *
  2085. * @global string $cfg['Schema']['pdf_paper']
  2086. */
  2087. $cfg['Schema']['pdf_paper'] = 'A4';
  2088. /**
  2089. *
  2090. *
  2091. * @global string $cfg['Schema']['pdf_show_grid']
  2092. */
  2093. $cfg['Schema']['pdf_show_grid'] = false;
  2094. /**
  2095. *
  2096. *
  2097. * @global string $cfg['Schema']['pdf_with_doc']
  2098. */
  2099. $cfg['Schema']['pdf_with_doc'] = true;
  2100. /**
  2101. *
  2102. *
  2103. * @global string $cfg['Schema']['pdf_table_order']
  2104. */
  2105. $cfg['Schema']['pdf_table_order'] = '';
  2106. /**
  2107. *
  2108. *
  2109. * @global string $cfg['Schema']['dia_show_color']
  2110. */
  2111. $cfg['Schema']['dia_show_color'] = true;
  2112. /**
  2113. *
  2114. *
  2115. * @global string $cfg['Schema']['dia_show_keys']
  2116. */
  2117. $cfg['Schema']['dia_show_keys'] = false;
  2118. /**
  2119. * L/P
  2120. *
  2121. * @global string $cfg['Schema']['dia_orientation']
  2122. */
  2123. $cfg['Schema']['dia_orientation'] = 'L';
  2124. /**
  2125. *
  2126. *
  2127. * @global string $cfg['Schema']['dia_paper']
  2128. */
  2129. $cfg['Schema']['dia_paper'] = 'A4';
  2130. /**
  2131. *
  2132. *
  2133. * @global string $cfg['Schema']['eps_show_color']
  2134. */
  2135. $cfg['Schema']['eps_show_color'] = true;
  2136. /**
  2137. *
  2138. *
  2139. * @global string $cfg['Schema']['eps_show_keys']
  2140. */
  2141. $cfg['Schema']['eps_show_keys'] = false;
  2142. /**
  2143. *
  2144. *
  2145. * @global string $cfg['Schema']['eps_all_tables_same_width']
  2146. */
  2147. $cfg['Schema']['eps_all_tables_same_width'] = false;
  2148. /**
  2149. * L/P
  2150. *
  2151. * @global string $cfg['Schema']['eps_orientation']
  2152. */
  2153. $cfg['Schema']['eps_orientation'] = 'L';
  2154. /**
  2155. *
  2156. *
  2157. * @global string $cfg['Schema']['svg_show_color']
  2158. */
  2159. $cfg['Schema']['svg_show_color'] = true;
  2160. /**
  2161. *
  2162. *
  2163. * @global string $cfg['Schema']['svg_show_keys']
  2164. */
  2165. $cfg['Schema']['svg_show_keys'] = false;
  2166. /**
  2167. *
  2168. *
  2169. * @global string $cfg['Schema']['svg_all_tables_same_width']
  2170. */
  2171. $cfg['Schema']['svg_all_tables_same_width'] = false;
  2172. /*******************************************************************************
  2173. * PDF options
  2174. */
  2175. /**
  2176. *
  2177. *
  2178. * @global array $cfg['PDFPageSizes']
  2179. */
  2180. $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
  2181. /**
  2182. *
  2183. *
  2184. * @global string $cfg['PDFDefaultPageSize']
  2185. */
  2186. $cfg['PDFDefaultPageSize'] = 'A4';
  2187. /*******************************************************************************
  2188. * Language and character set conversion settings
  2189. */
  2190. /**
  2191. * Default language to use, if not browser-defined or user-defined
  2192. *
  2193. * @global string $cfg['DefaultLang']
  2194. */
  2195. $cfg['DefaultLang'] = 'en';
  2196. /**
  2197. * Default connection collation
  2198. *
  2199. * @global string $cfg['DefaultConnectionCollation']
  2200. */
  2201. $cfg['DefaultConnectionCollation'] = 'utf8mb4_unicode_ci';
  2202. /**
  2203. * Force: always use this language, e.g. 'en'
  2204. *
  2205. * @global string $cfg['Lang']
  2206. */
  2207. $cfg['Lang'] = '';
  2208. /**
  2209. * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
  2210. * English only
  2211. *
  2212. * @global string $cfg['FilterLanguages']
  2213. */
  2214. $cfg['FilterLanguages'] = '';
  2215. /**
  2216. * You can select here which functions will be used for character set conversion.
  2217. * Possible values are:
  2218. * auto - automatically use available one (first is tested iconv, then
  2219. * recode)
  2220. * iconv - use iconv or libiconv functions
  2221. * recode - use recode_string function
  2222. * mb - use mbstring extension
  2223. * none - disable encoding conversion
  2224. *
  2225. * @global string $cfg['RecodingEngine']
  2226. */
  2227. $cfg['RecodingEngine'] = 'auto';
  2228. /**
  2229. * Specify some parameters for iconv used in character set conversion. See iconv
  2230. * documentation for details:
  2231. * https://www.gnu.org/savannah-checkouts/gnu/libiconv/documentation/libiconv-1.15/iconv_open.3.html
  2232. *
  2233. * @global string $cfg['IconvExtraParams']
  2234. */
  2235. $cfg['IconvExtraParams'] = '//TRANSLIT';
  2236. /**
  2237. * Available character sets for MySQL conversion. currently contains all which could
  2238. * be found in lang/* files and few more.
  2239. * Character sets will be shown in same order as here listed, so if you frequently
  2240. * use some of these move them to the top.
  2241. *
  2242. * @global array $cfg['AvailableCharsets']
  2243. */
  2244. $cfg['AvailableCharsets'] = array(
  2245. 'iso-8859-1',
  2246. 'iso-8859-2',
  2247. 'iso-8859-3',
  2248. 'iso-8859-4',
  2249. 'iso-8859-5',
  2250. 'iso-8859-6',
  2251. 'iso-8859-7',
  2252. 'iso-8859-8',
  2253. 'iso-8859-9',
  2254. 'iso-8859-10',
  2255. 'iso-8859-11',
  2256. 'iso-8859-12',
  2257. 'iso-8859-13',
  2258. 'iso-8859-14',
  2259. 'iso-8859-15',
  2260. 'windows-1250',
  2261. 'windows-1251',
  2262. 'windows-1252',
  2263. 'windows-1256',
  2264. 'windows-1257',
  2265. 'koi8-r',
  2266. 'big5',
  2267. 'gb2312',
  2268. 'utf-16',
  2269. 'utf-8',
  2270. 'utf-7',
  2271. 'x-user-defined',
  2272. 'euc-jp',
  2273. 'ks_c_5601-1987',
  2274. 'tis-620',
  2275. 'SHIFT_JIS',
  2276. 'SJIS',
  2277. 'SJIS-win',
  2278. );
  2279. /*******************************************************************************
  2280. * Customization & design
  2281. *
  2282. * The graphical settings are now located in themes/theme-name/layout.inc.php
  2283. */
  2284. /**
  2285. * enable the left panel pointer
  2286. * see also LeftPointerColor
  2287. * in layout.inc.php
  2288. *
  2289. * @global boolean $cfg['NavigationTreePointerEnable']
  2290. */
  2291. $cfg['NavigationTreePointerEnable'] = true;
  2292. /**
  2293. * enable the browse pointer
  2294. * see also BrowsePointerColor
  2295. * in layout.inc.php
  2296. *
  2297. * @global boolean $cfg['BrowsePointerEnable']
  2298. */
  2299. $cfg['BrowsePointerEnable'] = true;
  2300. /**
  2301. * enable the browse marker
  2302. * see also BrowseMarkerColor
  2303. * in layout.inc.php
  2304. *
  2305. * @global boolean $cfg['BrowseMarkerEnable']
  2306. */
  2307. $cfg['BrowseMarkerEnable'] = true;
  2308. /**
  2309. * textarea size (columns) in edit mode
  2310. * (this value will be emphasized (*2) for SQL
  2311. * query textareas and (*1.25) for query window)
  2312. *
  2313. * @global integer $cfg['TextareaCols']
  2314. */
  2315. $cfg['TextareaCols'] = 40;
  2316. /**
  2317. * textarea size (rows) in edit mode
  2318. *
  2319. * @global integer $cfg['TextareaRows']
  2320. */
  2321. $cfg['TextareaRows'] = 15;
  2322. /**
  2323. * double size of textarea size for LONGTEXT columns
  2324. *
  2325. * @global boolean $cfg['LongtextDoubleTextarea']
  2326. */
  2327. $cfg['LongtextDoubleTextarea'] = true;
  2328. /**
  2329. * auto-select when clicking in the textarea of the query-box
  2330. *
  2331. * @global boolean $cfg['TextareaAutoSelect']
  2332. */
  2333. $cfg['TextareaAutoSelect'] = false;
  2334. /**
  2335. * textarea size (columns) for CHAR/VARCHAR
  2336. *
  2337. * @global integer $cfg['CharTextareaCols']
  2338. */
  2339. $cfg['CharTextareaCols'] = 40;
  2340. /**
  2341. * textarea size (rows) for CHAR/VARCHAR
  2342. *
  2343. * @global integer $cfg['CharTextareaRows']
  2344. */
  2345. $cfg['CharTextareaRows'] = 2;
  2346. /**
  2347. * Max field data length in browse mode for all non-numeric fields
  2348. *
  2349. * @global integer $cfg['LimitChars']
  2350. */
  2351. $cfg['LimitChars'] = 50;
  2352. /**
  2353. * Where to show the edit/copy/delete links in browse mode
  2354. * Possible values are 'left', 'right', 'both' and 'none'.
  2355. *
  2356. * @global string $cfg['RowActionLinks']
  2357. */
  2358. $cfg['RowActionLinks'] = 'left';
  2359. /**
  2360. * Whether to show row links (Edit, Copy, Delete) and checkboxes for
  2361. * multiple row operations even when the selection does not have a unique key.
  2362. *
  2363. * @global boolean $cfg['RowActionLinksWithoutUnique']
  2364. */
  2365. $cfg['RowActionLinksWithoutUnique'] = false;
  2366. /**
  2367. * Default sort order by primary key.
  2368. * @global string $cfg['TablePrimaryKeyOrder']
  2369. */
  2370. $cfg['TablePrimaryKeyOrder'] = 'NONE';
  2371. /**
  2372. * remember the last way a table sorted
  2373. *
  2374. * @global string $cfg['RememberSorting']
  2375. */
  2376. $cfg['RememberSorting'] = true;
  2377. /**
  2378. * shows column comments in 'browse' mode.
  2379. *
  2380. * @global boolean $cfg['ShowBrowseComments']
  2381. */
  2382. $cfg['ShowBrowseComments'] = true;
  2383. /**
  2384. * shows column comments in 'table property' mode.
  2385. *
  2386. * @global boolean $cfg['ShowPropertyComments']
  2387. */
  2388. $cfg['ShowPropertyComments']= true;
  2389. /**
  2390. * repeat header names every X cells? (0 = deactivate)
  2391. *
  2392. * @global integer $cfg['RepeatCells']
  2393. */
  2394. $cfg['RepeatCells'] = 100;
  2395. /**
  2396. * Set to true if you want DB-based query history.If false, this utilizes
  2397. * JS-routines to display query history (lost by window close)
  2398. *
  2399. * @global boolean $cfg['QueryHistoryDB']
  2400. */
  2401. $cfg['QueryHistoryDB'] = false;
  2402. /**
  2403. * When using DB-based query history, how many entries should be kept?
  2404. *
  2405. * @global integer $cfg['QueryHistoryMax']
  2406. */
  2407. $cfg['QueryHistoryMax'] = 25;
  2408. /**
  2409. * Use MIME-Types (stored in column comments table) for
  2410. *
  2411. * @global boolean $cfg['BrowseMIME']
  2412. */
  2413. $cfg['BrowseMIME'] = true;
  2414. /**
  2415. * When approximate count < this, PMA will get exact count for table rows.
  2416. *
  2417. * @global integer $cfg['MaxExactCount']
  2418. */
  2419. $cfg['MaxExactCount'] = 50000;
  2420. /**
  2421. * Zero means that no row count is done for views; see the doc
  2422. *
  2423. * @global integer $cfg['MaxExactCountViews']
  2424. */
  2425. $cfg['MaxExactCountViews'] = 0;
  2426. /**
  2427. * Sort table and database in natural order
  2428. *
  2429. * @global boolean $cfg['NaturalOrder']
  2430. */
  2431. $cfg['NaturalOrder'] = true;
  2432. /**
  2433. * Initial state for sliders
  2434. * (open | closed | disabled)
  2435. *
  2436. * @global string $cfg['InitialSlidersState']
  2437. */
  2438. $cfg['InitialSlidersState'] = 'closed';
  2439. /**
  2440. * User preferences: disallow these settings
  2441. * For possible setting names look in libraries/config/user_preferences.forms.php
  2442. *
  2443. * @global array $cfg['UserprefsDisallow']
  2444. */
  2445. $cfg['UserprefsDisallow'] = array();
  2446. /**
  2447. * User preferences: enable the Developer tab
  2448. */
  2449. $cfg['UserprefsDeveloperTab'] = false;
  2450. /*******************************************************************************
  2451. * Window title settings
  2452. */
  2453. /**
  2454. * title of browser window when a table is selected
  2455. *
  2456. * @global string $cfg['TitleTable']
  2457. */
  2458. $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
  2459. /**
  2460. * title of browser window when a database is selected
  2461. *
  2462. * @global string $cfg['TitleDatabase']
  2463. */
  2464. $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
  2465. /**
  2466. * title of browser window when a server is selected
  2467. *
  2468. * @global string $cfg['TitleServer']
  2469. */
  2470. $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
  2471. /**
  2472. * title of browser window when nothing is selected
  2473. * @global string $cfg['TitleDefault']
  2474. */
  2475. $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
  2476. /*******************************************************************************
  2477. * theme manager
  2478. */
  2479. /**
  2480. * if you want to use selectable themes and if ThemesPath not empty
  2481. * set it to true, else set it to false (default is false);
  2482. *
  2483. * @global boolean $cfg['ThemeManager']
  2484. */
  2485. $cfg['ThemeManager'] = true;
  2486. /**
  2487. * set up default theme, you can set up here an valid
  2488. * path to themes or 'original' for the original pma-theme
  2489. *
  2490. * @global string $cfg['ThemeDefault']
  2491. */
  2492. $cfg['ThemeDefault'] = 'pmahomme';
  2493. /**
  2494. * allow different theme for each configured server
  2495. *
  2496. * @global boolean $cfg['ThemePerServer']
  2497. */
  2498. $cfg['ThemePerServer'] = false;
  2499. /**
  2500. * Font size to use by default
  2501. */
  2502. $cfg['FontSize'] = '82%';
  2503. /*******************************************************************************
  2504. *
  2505. */
  2506. /**
  2507. * Default query for table
  2508. *
  2509. * @global string $cfg['DefaultQueryTable']
  2510. */
  2511. $cfg['DefaultQueryTable'] = 'SELECT * FROM @TABLE@ WHERE 1';
  2512. /**
  2513. * Default query for database
  2514. *
  2515. * @global string $cfg['DefaultQueryDatabase']
  2516. */
  2517. $cfg['DefaultQueryDatabase'] = '';
  2518. /*******************************************************************************
  2519. * SQL Query box settings
  2520. * These are the links display in all of the SQL Query boxes
  2521. *
  2522. * @global array $cfg['SQLQuery']
  2523. */
  2524. $cfg['SQLQuery'] = array();
  2525. /**
  2526. * Display an "Edit" link on the results page to change a query
  2527. *
  2528. * @global boolean $cfg['SQLQuery']['Edit']
  2529. */
  2530. $cfg['SQLQuery']['Edit'] = true;
  2531. /**
  2532. * Display an "Explain SQL" link on the results page
  2533. *
  2534. * @global boolean $cfg['SQLQuery']['Explain']
  2535. */
  2536. $cfg['SQLQuery']['Explain'] = true;
  2537. /**
  2538. * Display a "Create PHP code" link on the results page to wrap a query in PHP
  2539. *
  2540. * @global boolean $cfg['SQLQuery']['ShowAsPHP']
  2541. */
  2542. $cfg['SQLQuery']['ShowAsPHP'] = true;
  2543. /**
  2544. * Display a "Refresh" link on the results page
  2545. *
  2546. * @global boolean $cfg['SQLQuery']['Refresh']
  2547. */
  2548. $cfg['SQLQuery']['Refresh'] = true;
  2549. /**
  2550. * Enables autoComplete for table & column names in SQL queries
  2551. *
  2552. * default = 'true'
  2553. */
  2554. $cfg['EnableAutocompleteForTablesAndColumns'] = true;
  2555. /*******************************************************************************
  2556. * Web server upload/save/import directories
  2557. */
  2558. /**
  2559. * Directory for uploaded files that can be executed by phpMyAdmin.
  2560. * For example './upload'. Leave empty for no upload directory support.
  2561. * Use %u for username inclusion.
  2562. *
  2563. * @global string $cfg['UploadDir']
  2564. */
  2565. $cfg['UploadDir'] = '';
  2566. /**
  2567. * Directory where phpMyAdmin can save exported data on server.
  2568. * For example './save'. Leave empty for no save directory support.
  2569. * Use %u for username inclusion.
  2570. *
  2571. * @global string $cfg['SaveDir']
  2572. */
  2573. $cfg['SaveDir'] = '';
  2574. /**
  2575. * Directory where phpMyAdmin can save temporary files.
  2576. *
  2577. * @global string $cfg['TempDir']
  2578. */
  2579. if (defined('TEMP_DIR')) {
  2580. $cfg['TempDir'] = TEMP_DIR;
  2581. } else {
  2582. $cfg['TempDir'] = './tmp/';
  2583. }
  2584. /**
  2585. * Misc. settings
  2586. */
  2587. /**
  2588. * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
  2589. * which is the only safe way to determine GD version.
  2590. *
  2591. * @global string $cfg['GD2Available']
  2592. */
  2593. $cfg['GD2Available'] = 'auto';
  2594. /**
  2595. * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
  2596. *
  2597. * @global array $cfg['TrustedProxies']
  2598. */
  2599. $cfg['TrustedProxies'] = array();
  2600. /**
  2601. * We normally check the permissions on the configuration file to ensure
  2602. * it's not world writable. However, phpMyAdmin could be installed on
  2603. * a NTFS filesystem mounted on a non-Windows server, in which case the
  2604. * permissions seems wrong but in fact cannot be detected. In this case
  2605. * a sysadmin would set the following to false.
  2606. */
  2607. $cfg['CheckConfigurationPermissions'] = false;
  2608. /**
  2609. * Limit for length of URL in links. When length would be above this limit, it
  2610. * is replaced by form with button.
  2611. * This is required as some web servers (IIS) have problems with long URLs.
  2612. * The recommended limit is 2000
  2613. * (see https://www.boutell.com/newfaq/misc/urllength.html) but we put
  2614. * 1000 to accommodate Suhosin, see bug #3358750.
  2615. */
  2616. $cfg['LinkLengthLimit'] = 1000;
  2617. /**
  2618. * Additional string to allow in CSP headers.
  2619. */
  2620. $cfg['CSPAllow'] = '';
  2621. /**
  2622. * Disable the table maintenance mass operations, like optimizing or
  2623. * repairing the selected tables of a database. An accidental execution
  2624. * of such a maintenance task can enormously slow down a bigger database.
  2625. */
  2626. $cfg['DisableMultiTableMaintenance'] = false;
  2627. /**
  2628. * Whether or not to query the user before sending the error report to
  2629. * the phpMyAdmin team when a JavaScript error occurs
  2630. *
  2631. * Available options
  2632. * (ask | always | never)
  2633. *
  2634. * @global string $cfg['SendErrorReports']
  2635. */
  2636. $cfg['SendErrorReports'] = 'ask';
  2637. /**
  2638. * Whether Enter or Ctrl+Enter executes queries in the console.
  2639. *
  2640. * @global boolean $cfg['ConsoleEnterExecutes']
  2641. */
  2642. $cfg['ConsoleEnterExecutes'] = false;
  2643. /**
  2644. * Zero Configuration mode.
  2645. *
  2646. * @global boolean $cfg['ZeroConf']
  2647. */
  2648. $cfg['ZeroConf'] = true;
  2649. /*******************************************************************************
  2650. * Developers ONLY!
  2651. *
  2652. * @global array $cfg['DBG']
  2653. */
  2654. $cfg['DBG'] = array();
  2655. /**
  2656. * Output executed queries and their execution times
  2657. *
  2658. * @global boolean $cfg['DBG']['sql']
  2659. */
  2660. $cfg['DBG']['sql'] = false;
  2661. /**
  2662. * Log executed queries and their execution times to syslog
  2663. *
  2664. * @global boolean $cfg['DBG']['sqllog']
  2665. */
  2666. $cfg['DBG']['sqllog'] = false;
  2667. /**
  2668. * Enable to let server present itself as demo server.
  2669. *
  2670. * @global boolean $cfg['DBG']['demo']
  2671. */
  2672. $cfg['DBG']['demo'] = false;
  2673. /**
  2674. * Enable Simple two-factor authentication
  2675. *
  2676. * @global boolean $cfg['DBG']['simple2fa']
  2677. */
  2678. $cfg['DBG']['simple2fa'] = false;
  2679. /*******************************************************************************
  2680. * MySQL settings
  2681. */
  2682. /**
  2683. * Default functions for above defined groups
  2684. *
  2685. * @global array $cfg['DefaultFunctions']
  2686. */
  2687. $cfg['DefaultFunctions'] = array(
  2688. 'FUNC_CHAR' => '',
  2689. 'FUNC_DATE' => '',
  2690. 'FUNC_NUMBER' => '',
  2691. 'FUNC_SPATIAL' => 'GeomFromText',
  2692. 'FUNC_UUID' => 'UUID',
  2693. 'first_timestamp' => 'NOW',
  2694. );
  2695. /**
  2696. * Max rows retrieved for zoom search
  2697. */
  2698. $cfg['maxRowPlotLimit'] = 500;
  2699. /**
  2700. * Show Git revision if applicable
  2701. *
  2702. * @global boolean $cfg['ShowGitRevision']
  2703. */
  2704. $cfg['ShowGitRevision'] = true;
  2705. /**
  2706. * MySQL minimal version required
  2707. *
  2708. * @global array $cfg['MysqlMinVersion']
  2709. */
  2710. $cfg['MysqlMinVersion'] = array(
  2711. 'internal' => 50500,
  2712. 'human' => '5.5.0'
  2713. );
  2714. /**
  2715. * Disable shortcuts
  2716. *
  2717. * @global array $cfg['DisableShortcutKeys']
  2718. */
  2719. $cfg['DisableShortcutKeys'] = false;
  2720. /**
  2721. * Console configuration
  2722. *
  2723. * This is mostly meant for user preferences.
  2724. */
  2725. $cfg['Console'] = [
  2726. 'StartHistory' => false,
  2727. 'AlwaysExpand' => false,
  2728. 'CurrentQuery' => true,
  2729. 'EnterExecutes' => false,
  2730. 'DarkTheme' => false,
  2731. 'Mode' => 'info',
  2732. 'Height' => 92,
  2733. 'GroupQueries' => false,
  2734. 'OrderBy' => 'exec',
  2735. 'Order' => 'asc',
  2736. ];
  2737. /*******************************************************************************
  2738. * Default options for transformations
  2739. */
  2740. /**
  2741. * Initialize default transformations array
  2742. *
  2743. * @global array $cfg['DefaultTransformations']
  2744. */
  2745. $cfg['DefaultTransformations'] = array();
  2746. /**
  2747. * Default transformations for Substring
  2748. *
  2749. * @global array $cfg['DefaultTransformations']['Substring']
  2750. */
  2751. $cfg['DefaultTransformations']['Substring'] = array(0, 'all', '…');
  2752. /**
  2753. * Default transformations for Bool2Text
  2754. *
  2755. * @global array $cfg['DefaultTransformations']['Bool2Text']
  2756. */
  2757. $cfg['DefaultTransformations']['Bool2Text'] = array('T', 'F');
  2758. /**
  2759. * Default transformations for External
  2760. *
  2761. * @global array $cfg['DefaultTransformations']['External']
  2762. */
  2763. $cfg['DefaultTransformations']['External'] = array(0, '-f /dev/null -i -wrap -q', 1, 1);
  2764. /**
  2765. * Default transformations for PreApPend
  2766. *
  2767. * @global array $cfg['DefaultTransformations']['PreApPend']
  2768. */
  2769. $cfg['DefaultTransformations']['PreApPend'] = array('', '');
  2770. /**
  2771. * Default transformations for Hex
  2772. *
  2773. * @global array $cfg['DefaultTransformations']['Hex']
  2774. */
  2775. $cfg['DefaultTransformations']['Hex'] = array('2');
  2776. /**
  2777. * Default transformations for DateFormat
  2778. *
  2779. * @global array $cfg['DefaultTransformations']['DateFormat']
  2780. */
  2781. $cfg['DefaultTransformations']['DateFormat'] = array(0, '', 'local');
  2782. /**
  2783. * Default transformations for Inline
  2784. *
  2785. * @global array $cfg['DefaultTransformations']['Inline']
  2786. */
  2787. $cfg['DefaultTransformations']['Inline'] = array('100', 100);
  2788. $cfg['DefaultTransformations']['Inline']['wrapper_link'] = null;
  2789. /**
  2790. * Default transformations for TextImageLink
  2791. *
  2792. * @global array $cfg['DefaultTransformations']['TextImageLink']
  2793. */
  2794. $cfg['DefaultTransformations']['TextImageLink'] = array(null, 100, 50);
  2795. /**
  2796. * Default transformations for TextLink
  2797. *
  2798. * @global array $cfg['DefaultTransformations']['TextLink']
  2799. */
  2800. $cfg['DefaultTransformations']['TextLink'] = array(null, null, null);