mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-11-27 04:53:02 +00:00
32 lines
637 B
PHP
32 lines
637 B
PHP
<?php
|
|
/**
|
|
* Config options
|
|
*/
|
|
|
|
$YEAR = 2020;
|
|
$URL_BASE = "https://galaxyoyo.com/tfjm";
|
|
$LOCAL_PATH = "/var/www/html/tfjm";
|
|
$MAIL_ADDRESS = "contact@galaxyoyo.com";
|
|
|
|
/**
|
|
* DB infos
|
|
*/
|
|
|
|
$DB_HOST = "localhost";
|
|
$DB_NAME = "tfjm";
|
|
$DB_USER = "galaxyoyo";
|
|
$DB_PWD = "***REMOVED***";
|
|
|
|
try {
|
|
$DB = new PDO("mysql:host=$DB_HOST;dbname=$DB_NAME;charset=utf8", "$DB_USER", "$DB_PWD", array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));
|
|
}
|
|
catch (Exception $ex) {
|
|
die("Erreur lors de la connexion à la base de données : " . $ex->getMessage());
|
|
}
|
|
|
|
session_start();
|
|
setlocale(LC_ALL, "fr_FR.utf8");
|
|
|
|
require_once "model.php";
|
|
|
|
loadUserValues(); |