Advertisement
Garrix

Fixing phpMyAdmin

Jul 13th, 2015
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. <?php
  2. /* Fix By Ann DDvn */
  3. /* vim: set expandtab sw=4 ts=4 sts=4: */
  4. /**
  5. * phpMyAdmin sample configuration, you can use it as base for
  6. * manual configuration. For easier setup you can use setup/
  7. *
  8. * All directives are explained in documentation in the doc/ folder
  9. * or at <http://docs.phpmyadmin.net/>.
  10. *
  11. * @package PhpMyAdmin
  12. */
  13.  
  14. /*
  15. * This is needed for cookie based authentication to encrypt password in
  16. * cookie
  17. */
  18. $cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
  19.  
  20. /*
  21. * Servers configuration
  22. */
  23. $i = 0;
  24.  
  25. /*
  26. * First server
  27. */
  28. $i++;
  29. /* Authentication type */
  30. $cfg['Servers'][$i]['auth_type'] = 'cookie';
  31. /* Server parameters */
  32. $cfg['Servers'][$i]['host'] = getenv('IP');
  33. $cfg['Servers'][$i]['user'] = getenv('$C9_USER');
  34. $cfg['Servers'][$i]['password'] = '';
  35. $cfg['Servers'][$i]['connect_type'] = 'tcp';
  36. $cfg['Servers'][$i]['compress'] = false;
  37. $cfg['Servers'][$i]['AllowNoPassword'] = true;
  38.  
  39.  
  40. /*
  41. * phpMyAdmin configuration storage settings.
  42. */
  43.  
  44. /* User used to manipulate with storage */
  45. // $cfg['Servers'][$i]['controlhost'] = '';
  46. // $cfg['Servers'][$i]['controlport'] = '';
  47. // $cfg['Servers'][$i]['controluser'] = 'pma';
  48. // $cfg['Servers'][$i]['controlpass'] = 'pmapass';
  49.  
  50. /* Storage database and tables */
  51. // $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  52. // $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
  53. // $cfg['Servers'][$i]['relation'] = 'pma__relation';
  54. // $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
  55. // $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
  56. // $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
  57. // $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
  58. // $cfg['Servers'][$i]['history'] = 'pma__history';
  59. // $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
  60. // $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
  61. // $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
  62. // $cfg['Servers'][$i]['recent'] = 'pma__recent';
  63. // $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
  64. // $cfg['Servers'][$i]['users'] = 'pma__users';
  65. // $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
  66. // $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
  67. // $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
  68. // $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
  69. /* Contrib / Swekey authentication */
  70. // $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';
  71.  
  72. /*
  73. * End of servers configuration
  74. */
  75.  
  76. /*
  77. * Directories for saving/loading files from server
  78. */
  79. $cfg['UploadDir'] = '';
  80. $cfg['SaveDir'] = '';
  81.  
  82. /**
  83. * Whether to display icons or text or both icons and text in table row
  84. * action segment. Value can be either of 'icons', 'text' or 'both'.
  85. */
  86. //$cfg['RowActionType'] = 'both';
  87.  
  88. /**
  89. * Defines whether a user should be displayed a "show all (records)"
  90. * button in browse mode or not.
  91. * default = false
  92. */
  93. //$cfg['ShowAll'] = true;
  94.  
  95. /**
  96. * Number of rows displayed when browsing a result set. If the result
  97. * set contains more rows, "Previous" and "Next".
  98. * default = 30
  99. */
  100. //$cfg['MaxRows'] = 50;
  101.  
  102. /**
  103. * disallow editing of binary fields
  104. * valid values are:
  105. * false allow editing
  106. * 'blob' allow editing except for BLOB fields
  107. * 'noblob' disallow editing except for BLOB fields
  108. * 'all' disallow editing
  109. * default = blob
  110. */
  111. //$cfg['ProtectBinary'] = 'false';
  112.  
  113. /**
  114. * Default language to use, if not browser-defined or user-defined
  115. * (you find all languages in the locale folder)
  116. * uncomment the desired line:
  117. * default = 'en'
  118. */
  119. //$cfg['DefaultLang'] = 'en';
  120. //$cfg['DefaultLang'] = 'de';
  121.  
  122. /**
  123. * How many columns should be used for table display of a database?
  124. * (a value larger than 1 results in some information being hidden)
  125. * default = 1
  126. */
  127. //$cfg['PropertiesNumColumns'] = 2;
  128.  
  129. /**
  130. * Set to true if you want DB-based query history.If false, this utilizes
  131. * JS-routines to display query history (lost by window close)
  132. *
  133. * This requires configuration storage enabled, see above.
  134. * default = false
  135. */
  136. //$cfg['QueryHistoryDB'] = true;
  137.  
  138. /**
  139. * When using DB-based query history, how many entries should be kept?
  140. *
  141. * default = 25
  142. */
  143. //$cfg['QueryHistoryMax'] = 100;
  144.  
  145. /**
  146. * Should error reporting be enabled for JavaScript errors
  147. *
  148. * default = 'ask'
  149. */
  150. //$cfg['SendErrorReports'] = 'ask';
  151.  
  152. /*
  153. * You can find more configuration options in the documentation
  154. * in the doc/ folder or at <http://docs.phpmyadmin.net/>.
  155. */
  156. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement