-
Notifications
You must be signed in to change notification settings - Fork 8
/
yt-config.php
42 lines (36 loc) · 984 Bytes
/
yt-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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*-------------------------------------------------------+
| Ytronic PHP Website
| https://github.com/elyonox/ytronic-php-website
+--------------------------------------------------------+
| Author: Ionut Manole (Yonox)
| Email: [email protected]
| Author URL: https://github.com/elyonox
+--------------------------------------------------------+*/
/**
* Url Website.
*/
function site_url()
{
$httpScheme = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
$url_site = $httpScheme .'://'. $_SERVER['HTTP_HOST'] .'/';
return $url_site;
}
/**
* Base Path.
*/
define ('REQABSP', __DIR__ .'/');
/**
* Dirs names.
*/
define ('TMPLDIRNAME', 'yt-template');
define ('CONTENTDIRNAME', 'yt-content');
/**
* Template and Content dirs paths.
*/
define ('TMPLDIR', REQABSP . TMPLDIRNAME .'/');
define ('CONTENTDIR', REQABSP . CONTENTDIRNAME .'/');
/**
* Allow search engines (on development = false).
*/
define ('ALLOWSEARCHENGINE', false);