-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_constants.php
More file actions
25 lines (23 loc) · 868 Bytes
/
_constants.php
File metadata and controls
25 lines (23 loc) · 868 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
<?php
function url(){
return sprintf(
"%s://%s",
isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http',
$_SERVER['SERVER_NAME']
);
}
define("MAIN_DIR", url());
define("ROOT",$_SERVER["DOCUMENT_ROOT"]);
$url = filter_input(INPUT_GET, "url");
$rtrim = rtrim($url, "/");
define("URL",$rtrim);
define("ADMIN_FOLDER","_admin@");
define("MAIN_LANGUAGE","ka");
define("CURRENT_URL","http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
// define("HOME","http://mcla.404.ge/mcla@/");
// define("ERROR_PAGE","http://mcla.404.ge/mcla@/ka/error");
define("WEBSITE_NAME_KA","სასჯელაღსრულებისა და პრობაციის სამინისტრო");
define("WEBSITE_NAME_EN","MINISTRY OF CORRECTIONS OF GEORGIA");
define("MAIN_EMAIL","info@moc.gov.ge");
define("TIMEZONE","Asia/Tbilisi");
?>