parent
e91d1cc8ee
commit
b5eceeca4c
@ -0,0 +1,5 @@
|
||||
# using https://hub.docker.com/_/php/
|
||||
FROM php:7.0.10-apache
|
||||
|
||||
# load in phpLiteAdmin code
|
||||
COPY . /var/www/html/
|
@ -0,0 +1,82 @@
|
||||
<?php
|
||||
//
|
||||
// This is sample configuration file
|
||||
//
|
||||
// You can configure phpliteadmin in one of 2 ways:
|
||||
// 1. Rename phpliteadmin.config.sample.php to phpliteadmin.config.php and change parameters in there.
|
||||
// You can set only your custom settings in phpliteadmin.config.php. All other settings will be set to defaults.
|
||||
// 2. Change parameters directly in main phpliteadmin.php file
|
||||
//
|
||||
// Please see https://bitbucket.org/phpliteadmin/public/wiki/Configuration for more details
|
||||
|
||||
//password to gain access
|
||||
$password = 'admin';
|
||||
|
||||
//directory relative to this file to search for databases (if false, manually list databases in the $databases variable)
|
||||
$directory = '.';
|
||||
|
||||
//whether or not to scan the subdirectories of the above directory infinitely deep
|
||||
$subdirectories = false;
|
||||
|
||||
//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'=> 'database1.sqlite',
|
||||
'name'=> 'Database 1'
|
||||
),
|
||||
array(
|
||||
'path'=> 'database2.sqlite',
|
||||
'name'=> 'Database 2'
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
/* ---- Interface settings ---- */
|
||||
|
||||
// Theme! If you want to change theme, save the CSS file in same folder of phpliteadmin or in folder "themes"
|
||||
$theme = 'phpliteadmin.css';
|
||||
|
||||
// the default language! If you want to change it, save the language file in same folder of phpliteadmin or in folder "languages"
|
||||
// More about localizations (downloads, how to translate etc.): https://bitbucket.org/phpliteadmin/public/wiki/Localization
|
||||
$language = 'en';
|
||||
|
||||
// set default number of rows. You need to relog after changing the number
|
||||
$rowsNum = 30;
|
||||
|
||||
// reduce string characters by a number bigger than 10
|
||||
$charsNum = 300;
|
||||
|
||||
// maximum number of SQL queries to save in the history
|
||||
$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 phpLiteAdmin installs to work under the same domain.
|
||||
$cookie_name = 'pla3412';
|
||||
|
||||
//whether or not to put the app in debug mode where errors are outputted
|
||||
$debug = false;
|
||||
|
||||
// the user is allowed to create databases with only these extensions
|
||||
$allowed_extensions = array('db','db3','sqlite','sqlite3');
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,143 @@
|
||||
# phpLiteAdmin
|
||||
|
||||
## What is phpLiteAdmin?
|
||||
|
||||
phpLiteAdmin is a web-based SQLite database admin tool written in PHP with
|
||||
support for SQLite3 and SQLite2. Following in the spirit of the flat-file system
|
||||
used by SQLite, phpLiteAdmin consists of a single source file, phpliteadmin.php,
|
||||
that is dropped into a directory on a server and then visited in a browser.
|
||||
There is no installation required. The available operations, feature set,
|
||||
interface, and user experience is comparable to that of phpMyAdmin.
|
||||
|
||||
## Features
|
||||
|
||||
- Lightweight - consists of a single 200KB source file for portability
|
||||
- Supports SQLite3 and SQLite2 databases
|
||||
- Translated and available in over 10 languages - and counting
|
||||
- Specify and manage an unlimited number of databases
|
||||
- Specify a directory and optionally its subdirectories to scan for databases
|
||||
- Create and delete databases
|
||||
- Add, delete, rename, empty, and drop tables
|
||||
- Browse, add, edit, and delete records
|
||||
- Add, delete, and edit table columns
|
||||
- Manage table indexes
|
||||
- Manage table triggers
|
||||
- Import and export tables, structure, indexes, and data (SQL, CSV)
|
||||
- View data as bar, pie, and line charts
|
||||
- Graphical search tool to find records based on specified field values
|
||||
- Create and run your own custom SQL queries in the free-form query editor/builder
|
||||
- Easily apply core SQLite functions to column values using the GUI
|
||||
- Write your own PHP functions to be available to apply to column values
|
||||
- Design your own theme using CSS or install a pre-made theme from the community
|
||||
- All presented in an intuitive, easy-to-use GUI that allows non-technical, SQL-illiterate users to fully manage databases
|
||||
- Allows multiple installations on the same server, each with a different password
|
||||
- Secure password-protected interface with login screen and cookies
|
||||
|
||||
## Demo
|
||||
|
||||
A live demo of phpLiteAdmin can be found here:
|
||||
http://demo.phpliteadmin.christosoft.de/
|
||||
|
||||
## Requirements
|
||||
|
||||
- a server with PHP >= 5.2.0 installed
|
||||
- at least one PHP SQLite library extension installed and enabled: PDO,
|
||||
SQLite3, or SQLiteDatabase
|
||||
|
||||
PHP version 5.3.0 and greater usually comes with the SQLite3 extension installed
|
||||
and enabled by default so no custom action is necessary.
|
||||
|
||||
## Download
|
||||
|
||||
The files in the source repositories are for development.
|
||||
|
||||
You can find the latest stable single-file version here:
|
||||
https://bitbucket.org/phpliteadmin/public/wiki/DownloadLinks
|
||||
|
||||
The latest single-file version of the development version can be found here:
|
||||
https://phpliteadmin.christosoft.de/phpliteadmin.zip
|
||||
|
||||
|
||||
## Installation
|
||||
|
||||
See https://bitbucket.org/phpliteadmin/public/wiki/Installation
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
**NEW** as of 1.9.4: You can now configure phpLiteAdmin in an external file. If
|
||||
you want to do this:
|
||||
|
||||
- rename `phpliteadmin.config.sample.php` into `phpliteadmin.config.php`
|
||||
- do not change the settings in `phpliteadmin.php` but in
|
||||
`phpliteadmin.config.php`
|
||||
|
||||
See https://bitbucket.org/phpliteadmin/public/wiki/Configuration for details.
|
||||
|
||||
1. Open `phpliteadmin.config.php` (or `phpliteadmin.php` before 1.9.4) in
|
||||
a text editor.
|
||||
|
||||
2. If you want to have a directory scanned for your databases instead of
|
||||
listing them manually, specify the directory as the value of the
|
||||
`$directory` variable and skip to step 4.
|
||||
|
||||
3. If you want to specify your databases manually, set the value of the
|
||||
`$directory` variable as false and modify the `$databases` array to
|
||||
hold the databases you would like to manage.
|
||||
|
||||
- The path field is the file path of the database relative to where
|
||||
`phpliteadmin.php` will be located on the server. For example, if
|
||||
`phpliteadmin.php` is located at "databases/manager/phpliteadmin.php" and
|
||||
you want to manage "databases/yourdatabase.sqlite", the path value
|
||||
would be "../yourdatabase.sqlite".
|
||||
|
||||
- The name field is the human-friendly way of referencing the database
|
||||
within the application. It can be anything you want.
|
||||
|
||||
4. Modify the `$password` variable to be the password used for gaining access
|
||||
to the phpLiteAdmin tool.
|
||||
|
||||
5. If you want to have multiple installations of phpLiteAdmin on the same
|
||||
server, change the `$cookie_name` variable to be unique for each installation
|
||||
(optional).
|
||||
|
||||
6. Save and upload `phpliteadmin.php` to your web server.
|
||||
|
||||
7. Open a web browser and navigate to the uploaded `phpliteadmin.php` file. You
|
||||
will be prompted to enter a password. Use the same password you set in step 4.
|
||||
|
||||
## Code Repository and pull requests
|
||||
|
||||
The code repository is available both on bitbucket and github:
|
||||
|
||||
Github: https://github.com/phpLiteAdmin/pla
|
||||
|
||||
Bitbucket: https://bitbucket.org/phpliteadmin/public/src
|
||||
|
||||
You are welcome to fork the project and send us pull requests on any of these
|
||||
platforms.
|
||||
|
||||
## Installing a theme
|
||||
|
||||
1. Download the themes package from the project Downloads page.
|
||||
|
||||
2. Unzip the file and choose your desired theme.
|
||||
|
||||
3. Upload `phpliteadmin.css` from the theme's directory alongside
|
||||
`phpliteadmin.php`.
|
||||
|
||||
4. Your theme will automatically override the default.
|
||||
|
||||
|
||||
## Getting help
|
||||
|
||||
The project's wiki provides information on how to do certain things and is
|
||||
located at https://bitbucket.org/phpliteadmin/public/wiki/Home .
|
||||
In addition, the project's discussion group is located at
|
||||
http://groups.google.com/group/phpliteadmin .
|
||||
|
||||
|
||||
## Reporting errors and bugs
|
||||
|
||||
If you find any issues while using the tool, please report them at
|
||||
https://bitbucket.org/phpliteadmin/public/issues?status=new&status=open .
|
Loading…
Reference in New Issue