1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 17:42:24 +00:00
plateforme-tfjm2/server_files/config.php
2019-09-06 13:48:50 +02:00

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();