forked from davprs/BigliettOne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
24 lines (24 loc) · 939 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
<?php
session_start();
require_once("db/db_connect.php");
define('DB_SERVER', 'localhost'); //host's ip
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'blogtw');
define('UPLOAD_DIR', 'uploads/');
define('INDEX', 'index.php');
define('CART', 'cart.php');
define('NOTIFICATION', 'notification.php');
define('ACCOUNT', 'account.php');
define('SERVICE', 'customer_service.php');
define('CONTACTS', 'contacts.php');
define('LEGAL', 'info_legali.php');
define('SIGNUP', 'signup.php');
define('ALERT', '');
define('CREATE', 'crea_evento.php');
require_once("utils/functions.php");
require_once("db/database.php");
$dbh = new DatabaseHelper("localhost", "root", "", "bigliettone");
//$db = new DatabaseHelper(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE);
//$db = new DatabaseHelper("localhost", "root", "", "blogtw");
?>