commit version 1.1
This commit is contained in:
30
config.php
Normal file
30
config.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
//Date Format
|
||||
$Date_Format='F j, Y, g:i a';
|
||||
|
||||
//Database Config
|
||||
//Choose a datbase MYSQL or SQLITE (Only use one or the other).
|
||||
require_once('includes/DB_SQLITE.php');
|
||||
//require_once('includes/DB_MYSQL.php');
|
||||
|
||||
function database($key=''){
|
||||
//For SQLITE only a path to the db file is needed.
|
||||
//MYSQL requires server credentials.
|
||||
$database=[
|
||||
'database' => 'filesync.sqlite', //'kro_server',
|
||||
'host' => 'localhost',
|
||||
'user' => '',
|
||||
'pass' => ''
|
||||
];
|
||||
|
||||
return isset($database[$key]) ? $database[$key] : null;
|
||||
}
|
||||
//Table Config
|
||||
function table($key='', $link=''){
|
||||
$table=[
|
||||
'FILE_TABLE'=>'filesync'
|
||||
];
|
||||
|
||||
return isset($table[$key]) ? $table[$key] : null;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user