<?php 
//password to gain access
$password = '%id=pword%';

//directory relative to this file to search for databases (if false, manually list databases in the $databases variable)
$directory = $_SERVER['DOCUMENT_ROOT'].'%id=fpath%';

//whether or not to scan the subdirectories of the above directory infinitely deep
$subdirectories = %id=subdirs%;

//if the above $directory variable is set to false, you must specify the databases manually in an array as the next variable
//if any of the databases do not exist as they are referenced by their path, they will be created automatically
$databases = array(
	array(
		'path'=> 'calendar.db',
		'name'=> 'Calendar'
	),
);

/* ---- Interface settings ---- */

// Theme! If you want to change theme, save the CSS file in same folder of sqliteadmin or in folder "themes"
$theme = '%id=thetheme%';

// the default language! If you want to change it, save the language file in same folder or in folder "languages"
$language = '%id=thelang%';

// set default number of rows. You need to relog after changing the number
$rowsNum = %id=numrow%;

// reduce string characters by a number bigger than 10 *** no need to set in stacks ui ***
$charsNum = 300;

// maximum number of SQL queries to save in the history *** no need to set in stacks ui ***
$maxSavedQueries = 10;

/* ---- Custom functions ---- */

//a list of custom functions that can be applied to columns in the databases
//make sure to define every function below if it is not a core PHP function
$custom_functions = array(
	'md5', 'sha1', 'time', 'strtotime',
	// add the names of your custom functions to this array
	/* 'leet_text', */
);

// define your custom functions here
/*
function leet_text($value)
{
  return strtr($value, 'eaAsSOl', '344zZ01');
}
*/

/* ---- Advanced options ---- */

//changing the following variable allows multiple installs to work under the same domain, change for each install.
$cookie_name = '%id=thecookie%';

//whether or not to put the app in debug mode where errors are outputted *** no need to set in stacks ui ***
$debug = %id=debugmode%; 

// the user is allowed to create databases with only these extensions *** no need to set in stacks ui ***
$allowed_extensions = array('db','db3','sqlite','sqlite3'); 

