-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
34 lines (33 loc) · 888 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
// <!--
// - P2 - Project 2
// - Group 15
// - Team Member, Student IDs, and Emails:
// Abdulla ALHAJ ZIN, 40013496, email: [email protected]
//
// Kevin LIN, 40002383, email: [email protected]
//
// Nour EL NATOUR,40013102, email: [email protected]
//
// Omnia GOMAA, 40017116 , email: [email protected]
// -->
/**
* Configuration for database connection
*
*/
// default env is local
// choosing server will disable DB triggers and hence diasble some functionality that depend on it.
$env = 'local';
if ($env == 'server'){
$host = 'orc353.encs.concordia.ca';
} else {
$host = 'localhost';
}
$username = 'orc353_2';
$password = 'H8Y95r';
$dbname = 'orc353_2';
$dsn = "mysql:host=$host;dbname=$dbname";
$options = array(
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ERRMODE_WARNING
);