SHARE
TWEET

Untitled

a guest Jul 17th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * Debian local configuration file
  4.  *
  5.  * This file overrides the settings made by phpMyAdmin interactive setup
  6.  * utility.
  7.  *
  8.  * For example configuration see /usr/share/doc/phpmyadmin/examples/config.default.php.gz
  9.  *
  10.  * NOTE: do not add security sensitive data to this file (like passwords)
  11.  * unless you really know what you're doing. If you do, any user that can
  12.  * run PHP or CGI on your webserver will be able to read them. If you still
  13.  * want to do this, make sure to properly secure the access to this file
  14.  * (also on the filesystem level).
  15.  */
  16.  
  17. /**
  18.  * Server(s) configuration
  19.  */
  20. $i = 0;
  21. // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
  22. // You can disable a server config entry by setting host to ''.
  23. $i++;
  24.  
  25. /**
  26.  * Read configuration from dbconfig-common
  27.  * You can regenerate it using: dpkg-reconfigure -plow phpmyadmin
  28.  */
  29. if (is_readable('/etc/phpmyadmin/config-db.php')) {
  30.     require('/etc/phpmyadmin/config-db.php');
  31. }
  32.  
  33. /* Configure according to dbconfig-common if enabled */
  34. if (!empty($dbname)) {
  35.     /* Authentication type */
  36.     /*$cfg['Servers'][$i]['auth_type'] = 'cookie';*/
  37.     $cfg['Servers'][$i]['auth_type'] = 'config';
  38.     $cfg['Servers'][$i]['user'] = 'root';
  39.     $cfg['Servers'][$i]['password'] = 'urpassgoeshereusillyboosrsitdoesthoughsodontignorethisshitplzandtyalsouraveryniceperson';
  40.     /* Server parameters */
  41.     if (empty($dbserver)) $dbserver = 'localhost';
  42.     $cfg['Servers'][$i]['host'] = $dbserver;
  43.  
  44.     if (!empty($dbport)) {
  45.         $cfg['Servers'][$i]['connect_type'] = 'tcp';
  46.         $cfg['Servers'][$i]['port'] = $dbport;
  47.     }
  48.     //$cfg['Servers'][$i]['compress'] = false;
  49.     /* Select mysqli if your server has it */
  50.     $cfg['Servers'][$i]['extension'] = 'mysqli';
  51.     /* Optional: User for advanced features */
  52.     $cfg['Servers'][$i]['controluser'] = $dbuser;
  53.     $cfg['Servers'][$i]['controlpass'] = $dbpass;
  54.     /* Optional: Advanced phpMyAdmin features */
  55.     $cfg['Servers'][$i]['pmadb'] = $dbname;
  56.     $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
  57.     $cfg['Servers'][$i]['relation'] = 'pma_relation';
  58.     $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
  59.     $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
  60.     $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
  61.     $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
  62.     $cfg['Servers'][$i]['history'] = 'pma_history';
  63.     $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
  64.     $cfg['Servers'][$i]['tracking'] = 'pma_tracking';
  65.  
  66.     /* Uncomment the following to enable logging in to passwordless accounts,
  67.      * after taking note of the associated security risks. */
  68.     /*$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;*/
  69.  
  70.     /* Advance to next server for rest of config */
  71.     $i++;
  72. }
  73.  
  74. /* Authentication type */
  75. //$cfg['Servers'][$i]['auth_type'] = 'cookie';
  76. /* Server parameters */
  77. //$cfg['Servers'][$i]['host'] = 'localhost';
  78. //$cfg['Servers'][$i]['connect_type'] = 'tcp';
  79. //$cfg['Servers'][$i]['compress'] = false;
  80. /* Select mysqli if your server has it */
  81. //$cfg['Servers'][$i]['extension'] = 'mysql';
  82. /* Optional: User for advanced features */
  83. // $cfg['Servers'][$i]['controluser'] = 'pma';
  84. // $cfg['Servers'][$i]['controlpass'] = 'pmapass';
  85. /* Optional: Advanced phpMyAdmin features */
  86. // $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  87. // $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
  88. // $cfg['Servers'][$i]['relation'] = 'pma_relation';
  89. // $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
  90. // $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
  91. // $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
  92. // $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
  93. // $cfg['Servers'][$i]['history'] = 'pma_history';
  94. // $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
  95. /* Uncomment the following to enable logging in to passwordless accounts,
  96.  * after taking note of the associated security risks. */
  97. // $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
  98.  
  99. /*
  100.  * End of servers configuration
  101.  */
  102.  
  103. /*
  104.  * Directories for saving/loading files from server
  105.  */
  106. $cfg['UploadDir'] = '';
  107. $cfg['SaveDir'] = '';
RAW Paste Data
Pastebin PRO Summer Special!
Get 60% OFF on Pastebin PRO accounts!
Top