-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
40 lines (34 loc) · 1 KB
/
index.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
35
36
37
38
39
40
<?php
$t = isset($t) ? $t : [];
if ($_SERVER['SERVER_NAME'] === 'mgine.sologub.od.ua') {
define('DEV_MODE', 'development');
} else {
define('DEV_MODE', 'production');
}
require_once 'includes/mail-handler.php';
$publishersPageLink = '#publishers-info';
$advertisersPageLink = '#advertisers-info';
switch ($_SERVER['REQUEST_URI'])
{
case '/privacy-policy.html':
require_once 'includes/privacy-policy.php';
break;
case '/advertisers-terms-and-conditions.html':
require_once 'includes/advertisers-terms-and-conditions.php';
break;
case '/publisher-terms-and-conditions.html':
require_once 'includes/publisher-terms-and-conditions.php';
break;
/*
case '/advertisers.html':
require_once 'includes/advertisers.php';
break;
case '/publishers.html':
require_once 'includes/publishers.php';
break;
*/
default:
require_once 'includes/main.php';
break;
}
?>