commit version 1.1

This commit is contained in:
2025-08-16 06:45:14 -04:00
commit b960c387e5
12 changed files with 576 additions and 0 deletions

30
config.php Normal file
View 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;
}
?>