forked from thelia/admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpre.php
More file actions
executable file
·29 lines (18 loc) · 731 Bytes
/
Copy pathpre.php
File metadata and controls
executable file
·29 lines (18 loc) · 731 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
29
<?php
if(strstr( $_SERVER['PHP_SELF'], "/admin/")){
header("Location: changerep.php"); exit;
}
require_once(__DIR__ . "/../fonctions/error_reporting.php");
require_once __DIR__ . "/autoload.php";
ActionsLang::instance()->set_mode_backoffice(true);
Tlog::mode_back_office(true);
require_once(__DIR__ . "/../fonctions/divers.php");
foreach ($_REQUEST as $key => $value) $$key = $value;
if(!ini_get("date.timezone"))
{
date_default_timezone_set("Europe/Paris");
Tlog::error("Timezone not set, set to Europe/Paris for no errors");
}
setlocale(LC_TIME, 'fr_FR.utf8', 'fr_FR');
setlocale(LC_NUMERIC, 'en_US.utf8', 'en_US');
?>