-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
39 lines (29 loc) · 747 Bytes
/
config.php
File metadata and controls
39 lines (29 loc) · 747 Bytes
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
35
36
37
38
39
<?php
$Debug = True;
if(strpos(__DIR__, "/Users/assetmalik/") === FALSE) $Debug = False;
if($Debug){
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
}
$servername = "localhost";
$username = "p-134_fablab";
$password = "t^8B0v0u";
$dbname = "p-13462_fablab";
if($Debug){
$username = "root";
$password = "root";
$dbname = "fablabRFID";
}
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
require_once("api/enter.php");
require_once("api/users.php");
require_once("api/user.php");
require_once("api/daneker.php");
require_once("api/asset.php");
?>