forked from web-cyradm/web-cyradm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
failed.php
99 lines (86 loc) · 2.62 KB
/
failed.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
if (!defined('WC_BASE')) define('WC_BASE', dirname(__FILE__));
include WC_BASE . "/config/conf.php";
include WC_BASE . "/lib/nls.php";
$browserlang=explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
if (isset($_GET['LANG'])) {
// Use Language setting from session
$LANG = $_GET['LANG'];
} elseif (isset($nls['aliases'][substr($browserlang[0], 0, 2)])) {
// Get language from the browser
$LANG = $nls['aliases'][substr($browserlang[0], 0, 2)];
} else {
// Fall back to default language
$LANG = $DEFAULTLANG;
$LANG = $nls['aliases'][substr($DEFAULTLANG,0,2)];
}
$charset = isset($nls["charsets"][$LANG])?$nls["charsets"][$LANG]:'iso-8859-1';
header('Vary: Accept-Language');
header('Content-type: text/html; charset=' . $charset);
#include WC_BASE . "/header.inc.php";
setlocale(LC_MESSAGES, "$LANG");
putenv("LANG=$LANG");
putenv("LANGUAGE=$LANG");
setlocale(LC_ALL, $LANG);
// Specify location of translation tables
bindtextdomain("web-cyradm", "./locale");
// Choose domain
textdomain("web-cyradm");
?>
<html>
<head>
<title>Web-cyradm</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php print $charset;?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" style="margin: 0;">
<table width="100%" border="0" style="height: 100%;">
<tr>
<td align="center" valign="middle">
<table width="450" border="0"
cellpadding="1" cellspacing="1"
style="height: 150px;">
<tr>
<td bgcolor="#000000">
<table border="0" bgcolor="#FFFFFF"
cellpadding=0 cellspacing=0 width=450
style="height: 150px;">
<tr>
<td bgcolor="#000666"
style="font-family: Verdana, Arial, sans-serif; color: #ffffff; font-weight: bold;">
Web-cyradm
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<p align="center"
style="font-family: Verdana, Arial, sans-serif; color: #000; ">
<?php print _("Login failed");?>
</p>
<p align="center"
style="font-family: Verdana, Arial, sans-serif; color: #000; font-weight: bold;">
<?php print _("This is only for authorized users");?>
</p>
<p align="center"
style="font-family: Verdana, Arial, sans-serif; color: #000; ">
<?php print _("If you like to login click"); ?>
<a class="navi" href="index.php"><?php
print _("here");
?></a>
</p>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>