Files
FileSync/config.php
2025-08-16 06:58:30 -04:00

30 lines
768 B
PHP

<?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', //'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;
}
?>