2
0

phpliteadmin.config.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. //
  3. // This is sample configuration file
  4. //
  5. // You can configure phpliteadmin in one of 2 ways:
  6. // 1. Rename phpliteadmin.config.sample.php to phpliteadmin.config.php and change parameters in there.
  7. // You can set only your custom settings in phpliteadmin.config.php. All other settings will be set to defaults.
  8. // 2. Change parameters directly in main phpliteadmin.php file
  9. //
  10. // Please see https://bitbucket.org/phpliteadmin/public/wiki/Configuration for more details
  11. //password to gain access
  12. $password = 'admin';
  13. //directory relative to this file to search for databases (if false, manually list databases in the $databases variable)
  14. $directory = './dict';
  15. //whether or not to scan the subdirectories of the above directory infinitely deep
  16. $subdirectories = false;
  17. //if the above $directory variable is set to false, you must specify the databases manually in an array as the next variable
  18. //if any of the databases do not exist as they are referenced by their path, they will be created automatically
  19. $databases = array(
  20. array(
  21. 'path'=> 'database1.sqlite',
  22. 'name'=> 'Database 1'
  23. ),
  24. array(
  25. 'path'=> 'database2.sqlite',
  26. 'name'=> 'Database 2'
  27. ),
  28. );
  29. /* ---- Interface settings ---- */
  30. // Theme! If you want to change theme, save the CSS file in same folder of phpliteadmin or in folder "themes"
  31. $theme = 'phpliteadmin.css';
  32. // the default language! If you want to change it, save the language file in same folder of phpliteadmin or in folder "languages"
  33. // More about localizations (downloads, how to translate etc.): https://bitbucket.org/phpliteadmin/public/wiki/Localization
  34. $language = 'en';
  35. // set default number of rows. You need to relog after changing the number
  36. $rowsNum = 30;
  37. // reduce string characters by a number bigger than 10
  38. $charsNum = 300;
  39. // maximum number of SQL queries to save in the history
  40. $maxSavedQueries = 10;
  41. /* ---- Custom functions ---- */
  42. //a list of custom functions that can be applied to columns in the databases
  43. //make sure to define every function below if it is not a core PHP function
  44. $custom_functions = array(
  45. 'md5', 'sha1', 'time', 'strtotime',
  46. // add the names of your custom functions to this array
  47. /* 'leet_text', */
  48. );
  49. // define your custom functions here
  50. /*
  51. function leet_text($value)
  52. {
  53. return strtr($value, 'eaAsSOl', '344zZ01');
  54. }
  55. */
  56. /* ---- Advanced options ---- */
  57. //changing the following variable allows multiple phpLiteAdmin installs to work under the same domain.
  58. $cookie_name = 'pla3412';
  59. //whether or not to put the app in debug mode where errors are outputted
  60. $debug = false;
  61. // the user is allowed to create databases with only these extensions
  62. $allowed_extensions = array('db','db3','sqlite','sqlite3');