-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathblankheader.php
53 lines (47 loc) · 1.31 KB
/
blankheader.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
43
44
45
46
47
48
49
50
51
52
53
<?php
// Start output buffer
ob_start();
// ******************************************
// Load System Serttings
require_once 'config.inc.php';
?>
<script type="text/javascript">
function gotomainsite()
{
top.window.location='<?=SITE_DOMAIN?>';
}
function gotoURL(url)
{
url = typeof url !== 'undefined' ? url : '<?=SITE_DOMAIN?>';
//console.log("Redirect to "+url);
top.window.location = url;
}
</script>
<?php
if (isset($_GET["locale"]) and ($_GET["locale"] == 'en' or $_GET["locale"] == 'it' ))
{
$locale = $_GET["locale"];
$_SESSION['locale'] = $locale;
}
elseif (isset($_SESSION["locale"]) and ($_SESSION["locale"] == 'en' or $_SESSION["locale"] == 'it' ))
{
$locale = $_SESSION["locale"];
}
else
{
$locale = fetch_preferred_language_from_client();
$_SESSION['locale'] = $locale;
}
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
@include getLanguage($locale);
// Get user ID if logged in
$userid=isloggedin();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="expires" content="Thu, 16 Mar 2000 11:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<link rel="stylesheet" type="text/css" href="../style.css" media="screen, print" >
</head>