Subversion Repositories ALCASAR

Rev

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

Rev 2182 Rev 2191
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id $
2
# $Id: admin_log.php 2191 2017-04-28 22:00:32Z tom.houdayer $
3
 
3
 
4
$Language = 'en';
4
$Language = 'en';
5
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
5
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
6
	$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
6
	$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
7
	$Language = strtolower(substr(chop($Langue[0]), 0, 2)); 
7
	$Language = strtolower(substr(chop($Langue[0]), 0, 2)); 
Line 32... Line 32...
32
	}
32
	}
33
	fclose($filePtn);
33
	fclose($filePtn);
34
}
34
}
35
$accessLogs = array_reverse($accessLogs);
35
$accessLogs = array_reverse($accessLogs);
36
 
36
 
-
 
37
// Remove access before startTime
-
 
38
if (isset($_GET['startTime'])) {
-
 
39
	$startTime = intval($_GET['startTime']);
-
 
40
	foreach ($accessLogs as $key => $access) {
-
 
41
		$timestamp = date_timestamp_get(date_create_from_format('d/m/Y H:i:s', $access->date));
-
 
42
		if ($timestamp < $startTime) {
-
 
43
			$accessLogs = array_slice($accessLogs, 0, $key);
-
 
44
			break;
-
 
45
		}
-
 
46
	}
-
 
47
}
-
 
48
 
37
?>
49
?>
38
<!doctype html>
50
<!doctype html>
39
<html>
51
<html>
40
<head>
52
<head>
41
	<meta charset="utf-8">
53
	<meta charset="utf-8">