Subversion Repositories ALCASAR

Rev

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

Rev 2413 Rev 2418
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: status.php 2413 2017-09-17 16:05:20Z tom.houdayer $
2
# $Id: status.php 2418 2017-09-19 16:48:11Z tom.houdayer $
3
#
3
#
4
# status.php for ALCASAR captive portal
4
# status.php for ALCASAR captive portal
5
# by steweb57 & Rexy
5
# by steweb57 & Rexy
6
# 
6
# 
7
/****************************************************************
7
/****************************************************************
Line 312... Line 312...
312
				$row = @da_sql_fetch_array($res,$config);
312
				$row = @da_sql_fetch_array($res,$config);
313
				$cn = (!empty($row['name'])) ? $row['name'] : $user[5];
313
				$cn = (!empty($row['name'])) ? $row['name'] : $user[5];
314
			}
314
			}
315
		}
315
		}
316
	}
316
	}
-
 
317
 
-
 
318
	$filename = '/var/tmp/havp/current_users.txt';
-
 
319
	$user_needKeepOpen = (preg_match("/^$remote_ip:PERM/m", file_get_contents($filename)) === 0);
317
}
320
}
318
 
321
 
319
// Cleaning the cache
322
// Cleaning the cache
320
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
323
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
321
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
324
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
Line 431... Line 434...
431
							<td colspan="2" id="conHistoryLabel" class="chilliLabel"><?= $l_conn_history ?></td>
434
							<td colspan="2" id="conHistoryLabel" class="chilliLabel"><?= $l_conn_history ?></td>
432
						</tr>
435
						</tr>
433
						<tr id="conHistoryRow">
436
						<tr id="conHistoryRow">
434
							<td colspan="2" id="conHistory" class="chilliValue"><?= $connection_history ?></td>
437
							<td colspan="2" id="conHistory" class="chilliValue"><?= $connection_history ?></td>
435
						</tr>
438
						</tr>
-
 
439
						<?php if ($user_needKeepOpen): ?>
436
						<tr>
440
							<tr>
437
							<td colspan="2" id="close-warning">(<?= $l_close_warning ?>)</td>
441
								<td colspan="2" id="close-warning">(<?= $l_close_warning ?>)</td>
438
						</tr>
442
							</tr>
-
 
443
						<?php endif; ?>
439
					</table>
444
					</table>
440
				</div>
445
				</div>
441
				<div id="waitPage">
446
				<div id="waitPage">
442
					<table id="waitTable">
447
					<table id="waitTable">
443
						<tr>
448
						<tr>