Subversion Repositories ALCASAR

Rev

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

Rev 958 Rev 2093
Line 11... Line 11...
11
	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
	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");
12
	}
12
	}
13
</script>
13
</script>
14
<!-- fin javascript -->
14
<!-- fin javascript -->
15
<?php
15
<?php
16
# $Id: haut.php 958 2012-07-19 09:01:30Z franck $
16
# $Id: haut.php 2093 2016-12-16 23:41:37Z raphael.pion $
17
// Access counter incrementation
17
// Access counter incrementation
18
$name_fic="compteur.txt";
18
$name_fic="compteur.txt";
19
if (($fp=fopen($name_fic,"r")) == false) exit;
19
if (($fp=fopen($name_fic,"r")) == false) exit;
20
$nb=fgets($fp,10);
20
$nb=fgets($fp,10);
21
fclose($fp);
21
fclose($fp);
22
$nb+=1;
22
$nb+=1;
23
if (($fp=fopen($name_fic,"w")) == false) exit;
23
if (($fp=fopen($name_fic,"w")) == false) exit;
24
fputs($fp, "$nb\n");
24
fputs($fp, "$nb\n");
25
fclose($fp);
25
fclose($fp);
-
 
26
 
-
 
27
 
-
 
28
//Inform admin log about his last connection
-
 
29
$admin_log="admin_log.txt";
-
 
30
$user_htdigest=$_SERVER['PHP_AUTH_USER'];
-
 
31
$date_system=date('d/m/Y H:i:s');
-
 
32
$user_ip=$_SERVER["REMOTE_ADDR"];
-
 
33
$text=$date_system."|||".$user_htdigest."|||".$user_ip."|||";
-
 
34
file_put_contents($admin_log, $text.PHP_EOL, FILE_APPEND);
-
 
35
 
26
?>
36
?>
27
<link rel="stylesheet" href="/css/style.css" type="text/css">
37
<link rel="stylesheet" href="/css/style.css" type="text/css">
28
</HEAD>
38
</HEAD>
29
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
39
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
30
	<TD valign="top" align="left"><A HREF=javascript:ouvrir("about.htm")><IMG height="80" border="0" SRC="/images/logo-alcasar.png"f></A></TD>
40
	<TD valign="top" align="left"><A HREF=javascript:ouvrir("about.htm")><IMG height="80" border="0" SRC="/images/logo-alcasar.png"f></A></TD>
31
	<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="center"><A HREF="http://www.alcasar.net" TARGET="_new"><IMG height="80" border="0" SRC="/images/titre-alcasar.png"></A></TD>
32
	<TD valign="top" align="right"><A HREF="admin/logo.php" TARGET="REXY2"><IMG height="80" border="0" SRC="/images/organisme.png"></A></TD>
42
	<TD valign="top" align="right"><A HREF="admin/logo.php" TARGET="REXY2"><IMG height="80" border="0" SRC="/images/organisme.png"></A></TD>
33
</TABLE>
43
</TABLE>
34
</BODY>
44
</BODY>
35
</HTML>
45
</HTML>
-
 
46