mirror of
https://github.com/pikami/palm-paste.git
synced 2025-12-21 09:49:49 +00:00
Reorganize file structure
This commit is contained in:
13
src/includes/config.php
Normal file
13
src/includes/config.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
function GetConnectionToDB() {
|
||||
//========SQL_CONFIG========//
|
||||
$SQL_Host = getenv('SQL_HOST') ?: "localhost";
|
||||
$SQL_Database = getenv('SQL_DB') ?: "palm-paste";
|
||||
$SQL_User = getenv('SQL_USER') ?: "paste";
|
||||
$SQL_Password = getenv('SQL_PASS') ?: "ckQgRJRhib74XMgVpzmn38uj1MrCcNnK7L9bc7zu";
|
||||
//========CONNECTION========//
|
||||
$conn = new PDO('mysql:host=' . $SQL_Host . ';dbname=' . $SQL_Database . ';charset=utf8mb4', $SQL_User, $SQL_Password);
|
||||
return $conn;
|
||||
}
|
||||
//========CRON_JOBS=========//
|
||||
$CRON_ExpireKey = getenv('CRON_EXPIREKEY') ?: "b1g51bf6g";
|
||||
Reference in New Issue
Block a user