-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.php
More file actions
28 lines (19 loc) · 710 Bytes
/
config.php
File metadata and controls
28 lines (19 loc) · 710 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
<?php
date_default_timezone_set('Asia/Calcutta');
if ($_SERVER['HTTPS']) {
$httpReq = 'https://';
} else {
$httpReq = 'http://';
}
define('WEBROOT', $_SERVER['DOCUMENT_ROOT'].'/Tutorial/');
define('DOMAIN', $httpReq . $_SERVER['HTTP_HOST']);
define('INCLUDES', $_SERVER['DOCUMENT_ROOT'] . '/Tutorial/');
define('APIDOMAIN', $httpReq . $_SERVER['HTTP_HOST'] . 'apis/');
define('APICLUDE', WEBROOT . 'apis/include/');
define('MAPKEY', '');
$db['testdb'] = array('localhost', 'root', '', 'basic_sample_db');
include APICLUDE . 'class.common.php';
$comm = new Common();
$comm->clearParam($_GET);
$comm->clearParam($_POST, 1);
?>