mirror of
https://github.com/pikami/palm-paste.git
synced 2024-11-25 05:05:43 +00:00
15 lines
465 B
PHP
15 lines
465 B
PHP
<?php
|
|
function GetConnectionToDB(){
|
|
//========SQL_CONFIG========//
|
|
$SQL_Host = "localhost";
|
|
$SQL_Database = "palm-paste";
|
|
$SQL_User = "paste";
|
|
$SQL_Password = "ckQgRJRhib74XMgVpzmn38uj1MrCcNnK7L9bc7zu";
|
|
//========CONNECTION========//
|
|
$conn = new PDO('mysql:host='.$SQL_Host.';dbname='.$SQL_Database.';charset=utf8mb4', $SQL_User, $SQL_Password);
|
|
return $conn;
|
|
}
|
|
//========CRON_JOBS=========//
|
|
$CRON_ExpireKey = "b1g51bf6g";
|
|
?>
|