Add files via upload
This commit is contained in:
287
admin/db/languages/lang_it.php
Normal file
287
admin/db/languages/lang_it.php
Normal file
@ -0,0 +1,287 @@
|
||||
<?php
|
||||
// Italian language
|
||||
// file by FRANCO TASSI - franco7tassi@gmail.com
|
||||
// (http://www.linkedin.com/profile/view?id=73367896)
|
||||
// (http://www.facebook.com/franco.tassi)
|
||||
// Rev.0 - 25.3.2013
|
||||
// Read our wiki on how to translate: http://code.google.com/p/phpliteadmin/wiki/Localization
|
||||
$lang = array(
|
||||
"direction" => "LTR",
|
||||
"date_format" => 'G:i \d\e\l j M, Y \A\.\D\. (T)', // see http://php.net/manual/en/function.date.php for what the letters stand for
|
||||
"ver" => "versione",
|
||||
"for" => "per",
|
||||
"to" => "a",
|
||||
"go" => "Vai",
|
||||
"yes" => "Si",
|
||||
"sql" => "SQL",
|
||||
"csv" => "CSV",
|
||||
"csv_tbl" => "Table that CSV pertains to",
|
||||
"srch" => "Ricerca",
|
||||
"srch_again" => "Nuova ricerca",
|
||||
"login" => "Log In",
|
||||
"logout" => "Logout",
|
||||
"view" => "Vista",
|
||||
"confirm" => "Conferma",
|
||||
"cancel" => "Cancella",
|
||||
"save_as" => "Salva con nome",
|
||||
"options" => "Opzioni",
|
||||
"no_opt" => "Nessuna opzione",
|
||||
"help" => "Help",
|
||||
"installed" => "installato",
|
||||
"not_installed" => "non installato",
|
||||
"done" => "fatto",
|
||||
"insert" => "Inserisci",
|
||||
"export" => "Esporta",
|
||||
"import" => "Importa",
|
||||
"rename" => "Rinomina",
|
||||
"empty" => "Vuoto",
|
||||
"drop" => "Elimina",
|
||||
"tbl" => "Tabella",
|
||||
"chart" => "Chart",
|
||||
"err" => "ERRORE",
|
||||
"act" => "Azione",
|
||||
"rec" => "Records",
|
||||
"col" => "Colonna",
|
||||
"cols" => "Colonna(e)",
|
||||
"rows" => "riga(e)",
|
||||
"edit" => "Modifica",
|
||||
"del" => "Cancella",
|
||||
"add" => "Aggiungi",
|
||||
"backup" => "Backup database file",
|
||||
"before" => "Prima",
|
||||
"after" => "Dopo",
|
||||
"passwd" => "Password",
|
||||
"passwd_incorrect" => "Password errata.",
|
||||
"chk_ext" => "Controlla le estensioni SQLite PHP supportate",
|
||||
"autoincrement" => "Autoincremento",
|
||||
"not_null" => "Not NULL",
|
||||
"attention" => "Attenzione",
|
||||
|
||||
"sqlite_ext" => "Estensione di SQLite",
|
||||
"sqlite_ext_support" => "Sembra che nessuna delle librerie SQLite supportate sono disponibili nella tua installazione di PHP. Potresti non essere in grado di usare %s finchè non ne installi almeno una.",
|
||||
"sqlite_v" => "Versione di SQLite",
|
||||
"sqlite_v_error" => "Sembra che il tuo database è un versione di SQLite %s ma la tua installazione PHP non contiene le estensioni necessarie per gestire questa versione. Per risolvere il problema, cancella il database and consenti a %s di crearlo automaticamente oppure ricrealo manualmente nella versione SQLite %s.",
|
||||
"report_issue" => "Il problema non può essere digniosticato The problem cannot be diagnosticato correttamente. Si prega di inviare un resoconto del problema a",
|
||||
"sqlite_limit" => "A causa delle limitazioni di SQLite, solo i campi nome e tipo di data possono essere modificati.",
|
||||
|
||||
"php_v" => "Versione di PHP",
|
||||
|
||||
"db_dump" => "database dump",
|
||||
"db_f" => "database file",
|
||||
"db_ch" => "Cambia Database",
|
||||
"db_event" => "Database Event",
|
||||
"db_name" => "Nome del database",
|
||||
"db_rename" => "Rinomina il Database",
|
||||
"db_renamed" => "Il Database '%s' è stato rinominato in",
|
||||
"db_del" => "Cancella il Database",
|
||||
"db_path" => "Percorso del database",
|
||||
"db_size" => "Dimensione del database",
|
||||
"db_mod" => "Ultima modifica del database",
|
||||
"db_create" => "Crea un nuovo database",
|
||||
"db_vac" => "Il database, '%s', è stato ridotto.",
|
||||
"db_not_writeable" => "Il database, '%s', non esiste e non può essere creato perchè la directory che lo ospita, '%s', non ha il permesso di scrittura. Il programma non è utilizzabile finchè non modifi i permessi di scrittura.",
|
||||
"db_setup" => "C'è stato un problema con il tuo database, %s. Verrà fatto un tentativo per scoprire cosa succede in modo da consentirti di sistemare il problema più facilemtne",
|
||||
"db_exists" => "Un database, un latro file oppure il nome di una directory '%s' già esiste.",
|
||||
|
||||
"exported" => "Esportato",
|
||||
"struct" => "Struttura",
|
||||
"struct_for" => "struttura per",
|
||||
"on_tbl" => "Sulla tabella",
|
||||
"data_dump" => "Dump dei dati per",
|
||||
"backup_hint" => "Suggerimento: Per eseguire il backup del tuo database, la via più semplice è %s.",
|
||||
"backup_hint_linktext" => "scaricare il file del database",
|
||||
"total_rows" => "un totale di %s righe",
|
||||
"total" => "In Totale",
|
||||
"not_dir" => "La directory che hai specificato per eseguire la scansione del database non esiste oppure non è una directory.",
|
||||
"bad_php_directive" => "sembra che la direttiva PHP, 'register_globals' è abilitata. Questo è male. Hai bisogno di disabilitarla prima di continuare.",
|
||||
"page_gen" => "Pagina generata in %s secondi.",
|
||||
"powered" => "Powered by",
|
||||
"remember" => "Ricordami",
|
||||
"no_db" => "Benvenuto in %s. Sembra che tu abbia scelto di scansionare una directory per gestire i database. Comunque, %s potrebbe non trovare alcun valido database SQLite. Puoi usare la forma sottostante per creare il tuo primo database.",
|
||||
"no_db2" => "La directory che hai specificato non contiene alcun database da gestire, e la directory non è scrivibile. Questo significa che non puoi creare nessun nuovo database usando %s. Rendi la directory scrivibile oppure aggiungi manualmente del databases nella directory.",
|
||||
|
||||
"create" => "Crea",
|
||||
"created" => "è stata creata",
|
||||
"create_tbl" => "Crea una nuova tabella",
|
||||
"create_tbl_db" => "Crea una nuova tabella sul database",
|
||||
"create_trigger" => "Crea un nuovo trigger sulla tabella",
|
||||
"create_index" => "Crea un nuovo indice sulla tabella",
|
||||
"create_index1" => "Crea Indice",
|
||||
"create_view" => "Crea una nuova view sul database",
|
||||
|
||||
"trigger" => "Trigger",
|
||||
"triggers" => "Triggers",
|
||||
"trigger_name" => "Nome del Trigger",
|
||||
"trigger_act" => "Azione del Trigger",
|
||||
"trigger_step" => "Trigger Steps (semicolon terminated)",
|
||||
"when_exp" => "WHEN expression (type expression without 'WHEN')",
|
||||
"index" => "Indice",
|
||||
"indexes" => "Indici",
|
||||
"index_name" => "Nome dell'indice",
|
||||
"name" => "Nome",
|
||||
"unique" => "Unique",
|
||||
"seq_no" => "Seq. No.",
|
||||
"emptied" => "has been emptied",
|
||||
"dropped" => "è stato cancellato",
|
||||
"renamed" => "è stato(a) rinominato(a) in",
|
||||
"altered" => "è stata alterata con successo",
|
||||
"inserted" => "inserita",
|
||||
"deleted" => "cancellata",
|
||||
"affected" => "interessata",
|
||||
"blank_index" => "Il nome dell'indice non deve essere vuoto.",
|
||||
"one_index" => "Devi specificare una colonna indice.",
|
||||
"docu" => "Documentazione",
|
||||
"license" => "Licenza",
|
||||
"proj_site" => "Sito del progetto",
|
||||
"bug_report" => "Questo potrebbe essere un bug che necessita di essere riportato a",
|
||||
"return" => "Return",
|
||||
"browse" => "Browse",
|
||||
"fld" => "Campo",
|
||||
"fld_num" => "Numero di campi",
|
||||
"fields" => "Campi",
|
||||
"type" => "Tipo",
|
||||
"operator" => "Operatore",
|
||||
"val" => "Valore",
|
||||
"update" => "Update",
|
||||
"comments" => "Commmenti",
|
||||
|
||||
"specify_fields" => "Devi specificare il numero di campi della tabella.",
|
||||
"specify_tbl" => "Devi specificare il nome della tabella.",
|
||||
"specify_col" => "Devi specificare una colonna.",
|
||||
|
||||
"tbl_exists" => "Esiste già una tabella con lo stesso nome.",
|
||||
"show" => "Mostra",
|
||||
"show_rows" => "Mostra %s row(s). ",
|
||||
"showing" => "Showing",
|
||||
"showing_rows" => "Mostra righe",
|
||||
"query_time" => "(Query elaborata in %s sec)",
|
||||
"syntax_err" => "C'è un problema con la sintassi della tua query (La query non è stata eseguita)",
|
||||
"run_sql" => "Esegui la(e) query SQL sul database '%s'",
|
||||
|
||||
"ques_empty" => "Sei sicuro di voler svuotare la tabella '%s'?",
|
||||
"ques_drop" => "Sei sicuro di voler eliminare la tabella '%s'?",
|
||||
"ques_drop_view" => "Sei sicuro di voler eliminare la view '%s'?",
|
||||
"ques_del_rows" => "Sei sicuro di voler cancellare la(e) riga(e) %s dalla tabella '%s'?",
|
||||
"ques_del_db" => "Sei sicuro di voler cancellare il database '%s'?",
|
||||
"ques_del_col" => "Sei sicuro di voler cancellare la(e) coonna(e) \"%s\" dalla tabella '%s'?",
|
||||
"ques_del_index" => "Sei sicuro di vole cancellare l'indice '%s'?",
|
||||
"ques_del_trigger" => "Sei sicuro di voler cancellare il trigger '%s'?",
|
||||
|
||||
"export_struct" => "Export with structure",
|
||||
"export_data" => "Export with data",
|
||||
"add_drop" => "Add DROP TABLE",
|
||||
"add_transact" => "Add TRANSACTION",
|
||||
"fld_terminated" => "Fields terminated by",
|
||||
"fld_enclosed" => "Fields enclosed by",
|
||||
"fld_escaped" => "Fields escaped by",
|
||||
"fld_names" => "Nome del campo nella prima riga",
|
||||
"rep_null" => "Sostituisci NULL con",
|
||||
"rem_crlf" => "Rimuovi i caratteri CRLF all'interno dei campi",
|
||||
"put_fld" => "Metti i nomi dei campi nella prima riga",
|
||||
"null_represent" => "NULL represented by",
|
||||
"import_suc" => "Importato con successo.",
|
||||
"import_into" => "Importa dentro",
|
||||
"import_f" => "File da importare",
|
||||
"rename_tbl" => "Rinomina la tabella '%s' in",
|
||||
|
||||
"rows_records" => "riga(e) partendo dal record # ",
|
||||
"rows_aff" => "riga(e) interessate. ",
|
||||
|
||||
"as_a" => "as a",
|
||||
"readonly_tbl" => "'%s' è una view, questo significa che si tratta di un istruzione SELECT trattata come una tabella di sola lettura. Non puoi ne editarla ne inserire nuovi record.",
|
||||
"chk_all" => "Seleziona tutto",
|
||||
"unchk_all" => "Deseleziona tutto",
|
||||
"with_sel" => "Operazione selezionata",
|
||||
|
||||
"no_tbl" => "Nessuna tabella nel database.",
|
||||
"no_chart" => "Se leggi questo, significa che il grafico potrebbe non essere generato. I dati che stai cercando di visualizzare potrebbero essere non appropriati per il grafico.",
|
||||
"no_rows" => "Non ci sono righe nella tabella per il range che hai selezionato.",
|
||||
"no_sel" => "Non hai selezionato nulla.",
|
||||
|
||||
"chart_type" => "Tipo di grafico",
|
||||
"chart_bar" => "Grafico a barre",
|
||||
"chart_pie" => "Grafico a torta",
|
||||
"chart_line" => "Spezzata",
|
||||
"lbl" => "Etichette",
|
||||
"empty_tbl" => "Questa tabella è vuota.",
|
||||
"click" => "Clicca qui",
|
||||
"insert_rows" => "Per inserire righe.",
|
||||
"restart_insert" => "Ricomincia l'inserimento con ",
|
||||
"ignore" => "Ignora",
|
||||
"func" => "Funzione",
|
||||
"new_insert" => "Insierisci come Riga Nuova",
|
||||
"save_ch" => "Salva le Modifiche",
|
||||
"def_val" => "Valore di Default",
|
||||
"prim_key" => "Chiave Primaria",
|
||||
"tbl_end" => "campo(i) alla fine della tabella",
|
||||
"query_used_table" => "Query usata per creare questa tabella",
|
||||
"query_used_view" => "Query usata per creare questa view",
|
||||
"create_index2" => "Crea un indice su",
|
||||
"create_trigger2" => "Crea un nuovo trigger",
|
||||
"new_fld" => "Adding new field(s) to table '%s'",
|
||||
"add_flds" => "Aggiungi il campo",
|
||||
"edit_col" => "Editing column '%s'",
|
||||
"vac" => "Vacuum",
|
||||
"vac_desc" => "Large databases sometimes need to be VACUUMed per ridurre l'impronta sul server. Clicca il bottone sotto per eseguire il VACUUM del database '%s'.",
|
||||
"event" => "Event",
|
||||
"each_row" => "Per ogni riga",
|
||||
"define_index" => "Define index properties",
|
||||
"dup_val" => "Duplica i valori",
|
||||
"allow" => "Consentito",
|
||||
"not_allow" => "Con consentito",
|
||||
"asc" => "Ascendente",
|
||||
"desc" => "Discendente",
|
||||
"warn0" => "Sei stato avvisato.",
|
||||
"warn_passwd" => "Stai usando la password di default, può essere pericoloso. Puoi cambiarla facilmente editando %s.",
|
||||
"warn_dumbass" => "Non hai cambiato dumbass ;-)",
|
||||
"sel_state" => "Seleziona l'istruzione",
|
||||
"delimit" => "Delimitatore",
|
||||
"back_top" => "Torna in cima",
|
||||
"choose_f" => "Scegli il File",
|
||||
"instead" => "Invece di",
|
||||
"define_in_col" => "Definisci index column(s)",
|
||||
|
||||
"delete_only_managed" => "Puoi cancellare solamente i database gestiti da questo strumento!",
|
||||
"rename_only_managed" => "Puoi rinominare solamente i database gestiti da questo strumento!",
|
||||
"db_moved_outside" => "Hai certato di spotare dentro una direcotry dove non può essere gestita anylonger, oppure il controllo è fallito per la mancanza di diritti.",
|
||||
"extension_not_allowed" => "L'estensione che hai fornito non è contenuta nella lista delle estensioni consentire. Per favore usa una delle seguenti estensioni",
|
||||
"add_allowed_extension" => "Puoi aggiungere estensioni per questa lista aggiungendo la tua estensione to \$allowed_extensions nella configurazione.",
|
||||
"directory_not_writable" => "Il file del database è di per se editabile, ma per poterci scrivere, anche la direcotory che lo ospita deve essere aggiornabile. Questo perchè SQLite ha bisogno di inserirvi file temporanei per il locking.",
|
||||
"tbl_inexistent" => "La tabella %s non esiste",
|
||||
|
||||
// errors that can happen when ALTER TABLE fails. You don't necessarily have to translate these.
|
||||
"alter_failed" => "Altering of Table %s failed",
|
||||
"alter_tbl_name_not_replacable" => "could not replace the table name with the temporary one",
|
||||
"alter_no_def" => "nessuna definzione ALTER",
|
||||
"alter_parse_failed" =>"fallito il parsing (controllo) della definzione ALTER",
|
||||
"alter_action_not_recognized" => "l'azione ALTER non è stata riconosciuta",
|
||||
"alter_no_add_col" => "non è stata rilevata nessuna colonna da aggiungere nell'istruzione ALTER",
|
||||
"alter_pattern_mismatch"=>"La sequenza non ha combaciato sulla tua istruzione originale CREATE TABLE",
|
||||
"alter_col_not_recognized" => "non è stata rilevato il nome della nuova o della vecchia colonna",
|
||||
"alter_unknown_operation" => "L'operazione ALTER non è riconosciuta!",
|
||||
|
||||
/* Help documentation */
|
||||
"help_doc" => "Documentazione",
|
||||
"help1" => "SQLite Librerie di Estensioni",
|
||||
"help1_x" => "%s usa Librerie di Estensioni di PHP che consentono di interagire con i database SQLite. Attualmente, %s supporta PDO, SQLite3, e SQLiteDatabase. Sia PDO che SQLite3 trattano la versione 3 di SQLite, mentre SQLiteDatabase tratta con la versione 2. Così, se la tua installazione PHP include più di una libreria di estesione SQLite, PDO e SQLite3 avranno la precedenza nel fare uso della tecnologia migliore. Comunque, se possiedi database che sono nella versione 2 di SQLite, %s forzerà ad usare SQLiteDatabase solamente per quei database. Non tutti i database hanno bisogno di essere della stessa versione. Durante la creazione del database, comunque, l'estenzione verrà utilizzata l'estenzione più avanzata.",
|
||||
"help2" => "Creare un Nuovo Database",
|
||||
"help2_x" => "Quando crei un nuovo database, il nome che inserisci sarà appeso con l'estensione del file appropriata (.db, .db3, .sqlite, etc.) se non la includi tu stesso. Il database verrà creato nella directory che tu specifichi come directory \$directory variable.",
|
||||
"help3" => "Tabelle vs. Viste",
|
||||
"help3_x" => "Sulla pagina del database principale, c'è una lista di tabele e viste. Poichè le view sono di sola lettura, certe operazioni verranno disabilitate. Al posto di queste operazioni disabilitate verranno mostrati spazi vuoti (omissioni) nella righa di comando della vista. Se vuoi cambiare il dato di una vista, devi cancellare la vista e crearne una nuova con l'istruzione SELECT desiderata che interroga altre tabelle esistenti. Per maggiori informazioni, guarda <a href='http://en.wikipedia.org/wiki/View_(database)' target='_blank'>http://en.wikipedia.org/wiki/View_(database)</a>",
|
||||
"help4" => "Scrivere un'istruzione di selezione per una nuova View",
|
||||
"help4_x" => "Quando crei una nuova view, devi scrivere un istruzione SQL SELECT che verrà usata come suo dato. Una view è semplicemente una tabella di sola lettura alla quale si può accedere e porre interrogazioni come una normale tabella , ad eccezione del fatto che non può essere modificata con inserimenti, editing di colonna, or editing di riga. E' usata soltamente per estrapolare dati.",
|
||||
"help5" => "Exportazione della Struttura verso il file SQL",
|
||||
"help5_x" => "Durante il processo di esportazione verso un file SQL, puoi scegliere di includere le istruzioni (query) che consentono di creare tabella e colonne.",
|
||||
"help6" => "Esporta i dati verso il File SQL",
|
||||
"help6_x" => "Durante il processo di esportazione verso un file SQL, puoi scegliere di includere le istruzioni (query) che popolano la tabella(e) with the current records of the table(s).",
|
||||
"help7" => "Aggiungi Drop Table (cancella tabella) al File SQL esportato",
|
||||
"help7_x" => "Durante il processo di esportazione verso un file SQL, puoi scegliere di includere le istruzioni (query) per cancellare (DROP) le tabelle esistenti prima di aggiungerle così che non occorreranno problemi cercando di crearetabelle che già esistono.",
|
||||
"help8" => "Aggiungi Transaction al File SQLto esportato",
|
||||
"help8_x" => "Durante il processo di esportazione verso un file SQL, puoi scegliere di includere le istruzioni (query) around a TRANSACTION so that if an error occurs at any time during the importation process using the exported file, the database can be reverted to its previous state, preventing partially updated data from populating the database.",
|
||||
"help9" => "Aggiungi commenti al File esportato",
|
||||
"help9_x" => "Durante il processo di esportazione verso un file SQL, puoi includere commenti spiegano ogni passo del processo così che umano può comprendere meglio cosa sta succedendo."
|
||||
|
||||
);
|
||||
|
||||
|
||||
?>
|
81
admin/db/phpliteadmin.config.php
Normal file
81
admin/db/phpliteadmin.config.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?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 = '[REDACTED]';
|
||||
|
||||
//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 = 'it';
|
||||
|
||||
// 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 = 'pla3419342';
|
||||
|
||||
//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');
|
291
admin/db/phpliteadmin.css
Normal file
291
admin/db/phpliteadmin.css
Normal file
@ -0,0 +1,291 @@
|
||||
/*
|
||||
phpLiteAdmin Modern Theme
|
||||
Created by Petar Koretic on 01/04/2013
|
||||
*/
|
||||
|
||||
html,body
|
||||
{
|
||||
font: 81.25% arial, helvetica, sans-serif;
|
||||
}
|
||||
/* overall styles for entire page */
|
||||
body
|
||||
{
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
font-size: 1em;
|
||||
color: #000;
|
||||
background:#F5F5FA;
|
||||
}
|
||||
/* general styles for hyperlink */
|
||||
a
|
||||
{
|
||||
color: #15c;
|
||||
text-decoration: none;
|
||||
cursor :pointer;
|
||||
text-shadow: 0 1px 1px #FFF;
|
||||
}
|
||||
a:hover
|
||||
{
|
||||
color: #00A;
|
||||
}
|
||||
/* horizontal rule */
|
||||
hr
|
||||
{
|
||||
height:1px;
|
||||
border: 0;
|
||||
color: #d2d2d2;
|
||||
background: #d2d2d2;
|
||||
width: 100%;
|
||||
}
|
||||
/* logo text containing name of project */
|
||||
h1
|
||||
{
|
||||
margin: 0px;
|
||||
padding: 5px;
|
||||
font-size: 1.85em;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
/* version text within the logo */
|
||||
h1 #version
|
||||
{
|
||||
font-size: 0.65em;
|
||||
color:#FFF;
|
||||
text-shadow: 0 1px 1px #194B7E;
|
||||
}
|
||||
/* logo text within logo */
|
||||
h1 #logo
|
||||
{
|
||||
color:#FFF;
|
||||
text-shadow: 0 1px 1px #194B7E;
|
||||
}
|
||||
/* general header for various views */
|
||||
h2
|
||||
{
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
font-size:1em;
|
||||
margin-bottom:20px;
|
||||
}
|
||||
select
|
||||
{
|
||||
background: #FFF;
|
||||
border: 1px solid #CCC;
|
||||
height:27px;
|
||||
line-height:27px;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
[multiple]
|
||||
{
|
||||
height:100%;
|
||||
}
|
||||
|
||||
|
||||
/* input buttons and areas for entering text */
|
||||
textarea
|
||||
{
|
||||
background:#FBFBFF;
|
||||
padding:5px;
|
||||
margin:0;
|
||||
outline: none;
|
||||
border:1px solid #FFF;
|
||||
border-color:#D2D2DC #E6E6F0 #E6E6F0 #D2D2DC;
|
||||
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
|
||||
-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
|
||||
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
|
||||
|
||||
}
|
||||
input[type=text],
|
||||
input[type=password]
|
||||
{
|
||||
background:#FBFBFF;
|
||||
display: inline-block;
|
||||
height: 25px;
|
||||
line-height:25px;
|
||||
margin: 0;
|
||||
padding: 0 8px;
|
||||
vertical-align:middle;
|
||||
border:1px solid #FFF;
|
||||
border-color:#D2D2DC #E6E6F0 #E6E6F0 #D2D2DC;
|
||||
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
|
||||
-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
|
||||
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
|
||||
}
|
||||
/* just input buttons */
|
||||
input.btn
|
||||
{
|
||||
cursor:pointer;
|
||||
vertical-align:middle;
|
||||
display:inline-block;
|
||||
margin: 0;
|
||||
outline:none;
|
||||
border:1px solid #C8C8C8;
|
||||
border-bottom-color:#B4B4B4;
|
||||
border-right-color:#AAAAAA;
|
||||
height:27px;
|
||||
padding:0 10px;
|
||||
}
|
||||
input.btn:hover
|
||||
{
|
||||
border-color:#D2D2D2;
|
||||
}
|
||||
|
||||
/* general styles for hyperlink */
|
||||
fieldset,.confirm
|
||||
{
|
||||
padding:15px;
|
||||
background:#f9f9f9;
|
||||
border: 1px solid #B4B4FA;
|
||||
}
|
||||
/* outer div that holds everything */
|
||||
#container
|
||||
{
|
||||
padding:10px;
|
||||
}
|
||||
/* div of left box with log, list of databases, etc. */
|
||||
#leftNav
|
||||
{
|
||||
float:left;
|
||||
width:250px;
|
||||
padding:0px;
|
||||
padding-bottom:15px;
|
||||
border:1px solid #B4B4FA;
|
||||
background:#FFF;
|
||||
}
|
||||
/* div holding the content to the right of the leftNav */
|
||||
#content
|
||||
{
|
||||
overflow:hidden;
|
||||
padding-left:10px;
|
||||
}
|
||||
/* div holding the login fields */
|
||||
#loginBox
|
||||
{
|
||||
width:500px;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
margin-top:50px;
|
||||
border:1px solid #B4B4FA;
|
||||
background:#FFF;
|
||||
}
|
||||
/* div under tabs with tab-specific content */
|
||||
#main
|
||||
{
|
||||
border:1px solid #B4B4FA;
|
||||
padding:15px;
|
||||
overflow:auto;
|
||||
background:#FFF;
|
||||
}
|
||||
/* odd-numbered table rows */
|
||||
.td1
|
||||
{
|
||||
background:#fff;
|
||||
text-align:right;
|
||||
font-size:0.9em;
|
||||
padding-left:10px;
|
||||
padding-right:10px;
|
||||
}
|
||||
/* even-numbered table rows */
|
||||
.td2
|
||||
{
|
||||
background:#F9F9F9;
|
||||
text-align:right;
|
||||
font-size:0.9em;
|
||||
padding-left:10px;
|
||||
padding-right:10px;
|
||||
}
|
||||
/* table column headers */
|
||||
.tdheader
|
||||
{
|
||||
border:1px solid #B4B4FA;
|
||||
font-weight:bold;
|
||||
font-size:0.9em;
|
||||
padding-left:10px;
|
||||
padding-right:10px;
|
||||
}
|
||||
/* tab navigation for each table */
|
||||
.tab
|
||||
{
|
||||
display:block;
|
||||
padding:5px;
|
||||
padding-right:8px;
|
||||
padding-left:8px;
|
||||
border:1px solid #B4B4FA;
|
||||
margin-right:1px;
|
||||
float:left;
|
||||
position:relative;
|
||||
top:1px;
|
||||
padding-bottom:4px;
|
||||
background:#eaeaea;
|
||||
}
|
||||
/* pressed state of tab */
|
||||
.tab_pressed
|
||||
{
|
||||
display:block;
|
||||
padding:5px 8px;
|
||||
border:1px solid #B4B4FA;
|
||||
margin-right:1px;
|
||||
float:left;
|
||||
border-bottom-style:none;
|
||||
position:relative;
|
||||
top:1px;
|
||||
background:#FFF;
|
||||
cursor:default;
|
||||
}
|
||||
/* tooltip styles */
|
||||
#tt
|
||||
{
|
||||
position:absolute;
|
||||
display:block;
|
||||
}
|
||||
#tttop
|
||||
{
|
||||
display:block;
|
||||
height:5px;
|
||||
margin-left:5px;
|
||||
overflow:hidden
|
||||
}
|
||||
#ttcont
|
||||
{
|
||||
display:block;
|
||||
padding:2px 12px 3px 7px;
|
||||
margin-left:5px;
|
||||
background:#f3cece;
|
||||
color:#333
|
||||
}
|
||||
#ttbot
|
||||
{
|
||||
display:block;
|
||||
height:5px;
|
||||
margin-left:5px;
|
||||
overflow:hidden
|
||||
}
|
||||
|
||||
h1
|
||||
{
|
||||
background: #81a8ce; /* Old browsers */
|
||||
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzgxYThjZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM1ZTg3YjAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
|
||||
background: linear-gradient(#81a8ce,#5e87b0); /* W3C */
|
||||
}
|
||||
|
||||
input.btn, .tab, .tdheader
|
||||
{
|
||||
background: #fdfdfd; /* Old browsers */
|
||||
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZkZmRmZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlZWVlZWUiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
|
||||
background: linear-gradient(#fdfdfd,#eeeeee); /* W3C */
|
||||
}
|
||||
|
||||
table
|
||||
{
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table td
|
||||
{
|
||||
border: 1px solid #eee;
|
||||
padding:5px;
|
||||
}
|
||||
#headerlinks
|
||||
{
|
||||
text-align:center; }
|
||||
|
6181
admin/db/phpliteadmin.php
Normal file
6181
admin/db/phpliteadmin.php
Normal file
File diff suppressed because it is too large
Load Diff
174
admin/db/readme.md
Normal file
174
admin/db/readme.md
Normal file
@ -0,0 +1,174 @@
|
||||
# phpLiteAdmin
|
||||
|
||||
Website: https://www.phpliteadmin.org/
|
||||
|
||||
Bitbucket: https://bitbucket.org/phpliteadmin/public/
|
||||
|
||||
## 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.
|
||||
|
||||
## News
|
||||
|
||||
**05.09.2019: phpLiteAdmin 1.9.8.2 released [Download now](https://www.phpliteadmin.org/download/)**
|
||||
|
||||
**03.09.2019: phpLiteAdmin 1.9.8.1 released [Download now](https://www.phpliteadmin.org/download/)**
|
||||
|
||||
**30.08.2019: phpLiteAdmin 1.9.8 released [Download now](https://www.phpliteadmin.org/download/)**
|
||||
|
||||
**17.08.2017: [Security alert: phpLiteAdmin 1.9.8-dev](https://www.phpliteadmin.org/2017/08/17/security-alert-1-9-8-dev/) (stable versions not affected)**
|
||||
|
||||
**14.12.2016: Just released phpLiteAdmin 1.9.7.1 as 1.9.7 was built incorrectly [Download now](https://www.phpliteadmin.org/download/)**
|
||||
|
||||
**13.12.2016: Just released phpLiteAdmin 1.9.7! [Download now](https://www.phpliteadmin.org/download/)**
|
||||
|
||||
**05.07.2015: Just released phpLiteAdmin 1.9.6! [Download now](https://www.phpliteadmin.org/download/)**
|
||||
|
||||
## 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:
|
||||
https://demo.phpliteadmin.org/
|
||||
|
||||
## Requirements
|
||||
|
||||
- a server with PHP >= 5.2.4 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 meant for development, not for use in production.
|
||||
|
||||
You can find the latest downloads here:
|
||||
https://www.phpliteadmin.org/download/
|
||||
|
||||
## 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](https://www.phpliteadmin.org/download/).
|
||||
|
||||
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
|
||||
https://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 .
|
||||
|
||||
## License
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the **GNU General Public License** as published by
|
||||
the Free Software Foundation, either **version 3** of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <[https://www.gnu.org/licenses/](https://www.gnu.org/licenses/)>.
|
Reference in New Issue
Block a user