Subversion Repositories ALCASAR

Rev

Rev 536 | Rev 640 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 536 Rev 537
Line 1... Line 1...
1
<?php
1
<?php
2
#
2
#
3
# status.php for Alcasar captive portal
3
# status.php for Alcasar captive portal
4
# by steweb57
4
# by steweb57
5
# 
5
# 
6
$organisme = "";
6
$organisme = "steweb57";
7
 
7
 
8
# Choice of language
8
# Choice of language
9
//reste quelques traductions à faire
9
//reste quelques traductions à faire
10
$Language = 'en';
10
$Language = 'en';
11
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
11
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
Line 131... Line 131...
131
<meta http-equiv="Pragma" content="no-cache">
131
<meta http-equiv="Pragma" content="no-cache">
132
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
132
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
133
<script type="text/javascript" src="./js/ChilliLibrary.js"></script>
133
<script type="text/javascript" src="./js/ChilliLibrary.js"></script>
134
<script type="text/javascript" src="./js/statusControler.js"></script>
134
<script type="text/javascript" src="./js/statusControler.js"></script>
135
<link type="text/css" href="./css/status.css" rel="stylesheet">
135
<link type="text/css" href="./css/status.css" rel="stylesheet">
136
<script language="JavaScript">
-
 
137
	if (typeof isloggedout == 'undefined') isloggedout = true;
-
 
138
	
-
 
139
	function closePopup(){
-
 
140
		this.focus();
-
 
141
		self.opener=this;
-
 
142
		self.close();
-
 
143
	}
-
 
144
  	function alcasarLogoff(){
-
 
145
	//pb sous Safari et Opera (OnbeforeUnload)
-
 
146
		if (isloggedout === false){
-
 
147
	  		chilliClock.stop();
-
 
148
			chilliController.logoff();
-
 
149
			showWaitPage(5000);	
-
 
150
			alert("<?php echo $l_loggedout; ?>");
-
 
151
		}
-
 
152
		isloggedout = true;
-
 
153
	}
-
 
154
	function logout() {
-
 
155
		alcasarLogoff();
-
 
156
		window.setTimeout("closePopup()",1000);
-
 
157
	}
-
 
158
	function logoutWithConfirmation(msg) {
-
 
159
		if (confirm(msg)) {
-
 
160
			logout();
-
 
161
		}
-
 
162
		return false;
-
 
163
	}
-
 
164
</script>
-
 
165
</head>
136
</head>
166
<body OnbeforeUnload="javascript:alcasarLogoff();">
137
<body>
167
<div id="Chilli">
138
<div id="Chilli">
168
<div id="locationName"></div>
139
<div id="locationName"></div>
169
<div id="chilliPage">
140
<div id="chilliPage">
170
<div id="loggedOutPage" class="c1">
141
<div id="loggedOutPage" class="c1">
171
<table id="disconnectTable">
142
<table id="disconnectTable">
Line 176... Line 147...
176
</td>
147
</td>
177
</tr>
148
</tr>
178
</table>
149
</table>
179
</div>
150
</div>
180
<div id="statusPage" class="c1">
151
<div id="statusPage" class="c1">
181
<table border="0" id="statusTable"><!-- style="padding-top:4px;font-size:70%" -->
152
<table border="0" id="statusTable">
182
<tr>
153
<tr>
183
<td rowspan="2" valign="top"><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
154
<td rowspan="2" valign="top"><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
184
<td>
155
<td>
185
<p class="text_auth"><?php echo $l_welcome; ?> <span id="userName"></span>.</p>
156
<p class="text_auth"><?php echo $l_welcome; ?> <span id="userName"></span>.</p>
186
<p class="text_auth"><?php echo $l_login1; ?></p>
157
<p class="text_auth"><?php echo $l_login1; ?></p>