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