Subversion Repositories ALCASAR

Rev

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

Rev 2134 Rev 2182
Line 1... Line -...
1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
-
 
2
<!-- Writen by Rexy -->
-
 
3
<!-- ACC Top Window -->
-
 
4
<HTML>
-
 
5
<HEAD>
-
 
6
<TITLE>Top</TITLE>
-
 
7
<SCRIPT LANGUAGE="JavaScript">
-
 
8
function ouvrir(page)
-
 
9
	{
-
 
10
	window.open(page, "portail", "alwaysRaised=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,hotkeys=no,width=640 ,height=480");
-
 
11
	}
-
 
12
</SCRIPT>
-
 
13
<?php
1
<?php
14
# $Id: haut.php 2134 2017-03-12 19:53:15Z richard $
2
# $Id: haut.php 2182 2017-04-25 22:10:46Z tom.houdayer $
-
 
3
 
15
// Access counter incrementation
4
// Access counter incrementation
16
$name_fic="compteur.txt";
5
$counterFilename = 'compteur.txt';
17
if (($fp=fopen($name_fic,"r")) == false) exit;
6
$fp = fopen($counterFilename, 'r+');
18
$nb=fgets($fp,10);
7
if ($fp === false) {
19
fclose($fp);
8
	exit();
-
 
9
}
-
 
10
$nbAccess = intval(fgets($fp, 10));
20
$nb+=1;
11
$nbAccess++;
21
if (($fp=fopen($name_fic,"w")) == false) exit;
12
rewind($fp);
22
fputs($fp, "$nb\n");
13
fputs($fp, $nbAccess.PHP_EOL); 
23
fclose($fp);
14
fclose($fp);
24
 
15
 
25
 
-
 
26
//Inform admin log about his last connection
16
// Inform admin log about his last connection
27
$admin_log="admin_log.txt";
17
$admin_log = 'admin_log.txt';
28
$user_htdigest=$_SERVER['PHP_AUTH_USER'];
18
$user_htdigest = $_SERVER['PHP_AUTH_USER'];
29
$date_system=date('d/m/Y H:i:s');
19
$date_system = date('d/m/Y H:i:s');
30
$user_ip=$_SERVER["REMOTE_ADDR"];
20
$user_ip = $_SERVER['REMOTE_ADDR'];
31
$text=$date_system."|||".$user_htdigest."|||".$user_ip."|||";
21
$text = $date_system . '|||' . $user_htdigest . '|||' . $user_ip;
32
file_put_contents($admin_log, $text.PHP_EOL, FILE_APPEND);
22
file_put_contents($admin_log, $text.PHP_EOL, FILE_APPEND);
33
 
23
 
34
?>
24
?>
-
 
25
<!doctype html>
-
 
26
<!-- Writen by Rexy -->
-
 
27
<!-- ACC Top Window -->
-
 
28
<html>
-
 
29
<head>
-
 
30
	<meta charset="utf-8">
-
 
31
	<title>Top</title>
-
 
32
	<script>
-
 
33
	function ouvrir(page) {
-
 
34
		window.open(page, "portail", "alwaysRaised=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,hotkeys=no,width=640 ,height=480");
-
 
35
	}
-
 
36
	</script>
35
<link rel="stylesheet" href="/css/style.css" type="text/css">
37
	<link rel="stylesheet" type="text/css" href="/css/style.css">
36
</HEAD>
38
</head>
-
 
39
<body>
37
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
40
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
38
<TR>
41
		<tr>
39
	<TD valign="top" align="left"><A HREF="javascript:ouvrir('about.htm')"><IMG height="80" border="0" SRC="/images/logo-alcasar.png"></A></TD>
42
			<td valign="top" align="left"><a href="javascript:ouvrir('about.htm')"><img height="80" border="0" src="/images/logo-alcasar.png"></a></td>
40
	<TD valign="top" align="center"><A HREF="http://www.alcasar.net" TARGET="_new"><IMG height="80" border="0" SRC="/images/titre-alcasar.png"></A></TD>
43
			<td valign="top" align="center"><a href="http://www.alcasar.net" target="_new"><img height="80" border="0" src="/images/titre-alcasar.png"></a></td>
41
	<TD valign="top" align="right"><A HREF="admin/logo.php" TARGET="REXY2"><IMG height="80" border="0" SRC="/images/organisme.png"></A></TD>
44
			<td valign="top" align="right"><a href="admin/logo.php" target="REXY2"><img height="80" border="0" src="/images/organisme.png"></a></td>
42
</TR>
45
		</tr>
43
</TABLE>
46
	</table>
44
</BODY>
47
</body>
45
</HTML>
48
</html>
46
 
-