1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-27 07:02:22 +00:00
plateforme-tfjm2/server_files/config.php

32 lines
637 B
PHP
Raw Normal View History

2019-08-21 20:56:46 +00:00
<?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");
2019-09-06 11:48:50 +00:00
require_once "model.php";
2019-08-21 20:56:46 +00:00
2019-09-06 11:48:50 +00:00
loadUserValues();