forked from InterIIT-Tech/iWebApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservConf.php
More file actions
27 lines (27 loc) · 786 Bytes
/
servConf.php
File metadata and controls
27 lines (27 loc) · 786 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
<?php
session_start();
define("USER_NAME", "iwa");
define("PASSWORD", "toorToor123#");
define("SERVER_ADDRESS", "localhost");
define("DATABASE", "iwa");
$webRoot="http://".$_SERVER['HTTP_HOST']."";
if($_SERVER['HTTP_HOST']!="iwebapp.ml" || $_SERVER['HTTP_HOST']!="www.iwebapp.ml" ){
$webRoot .="/iwa";
}
define("webRoot", $webRoot);
ini_set('display_errors', 'Off');
define('MYSQL_BOTH',MYSQLI_BOTH);
define('MYSQL_NUM',MYSQLI_NUM);
define('MYSQL_ASSOC',MYSQLI_ASSOC);
/*if (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] !== 'on') {
if(!headers_sent()) {
header("Status: 301 Moved Permanently");
header(sprintf(
'Location: https://%s%s',
$_SERVER['HTTP_HOST'],
$_SERVER['REQUEST_URI']
));
exit();
}
}*/
?>