mirror of
https://github.com/appen-isen/site-interpromos.git
synced 2026-01-18 16:37:33 +01:00
29 lines
678 B
PHP
29 lines
678 B
PHP
<?php
|
|
|
|
/**
|
|
* PHP version 8.1.11
|
|
*
|
|
* @author Youn Mélois <youn@melois.dev>
|
|
*/
|
|
|
|
ini_set('display_errors', 1);
|
|
ini_set('display_startup_errors', 1);
|
|
error_reporting(E_ALL);
|
|
|
|
// Basice parameters to connect to the database
|
|
const DB_SERVER = '127.0.0.1';
|
|
const DB_PORT = '5432';
|
|
const DB_NAME = 'interpromos';
|
|
const DB_USER = 'postgres';
|
|
const DB_PASSWORD = '';
|
|
|
|
// Some constants to use in the application
|
|
const ACCESS_TOKEN_NAME = 'interpromos_session';
|
|
|
|
/*
|
|
Creating constants for heavily used paths makes things a lot easier.
|
|
ex. require_once(LIBRARY_PATH . "Paginator.php")
|
|
*/
|
|
defined("LIBRARY_PATH")
|
|
or define("LIBRARY_PATH", realpath(dirname(__FILE__) . '/library'));
|