Subversion Repositories ALCASAR

Rev

Rev 958 | Rev 2134 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
318 richard 1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
2
<!-- Writen by Rexy -->
3
<!-- fenetre "haut" -->
4
<HTML>
5
<HEAD>
6
<TITLE>Haut</TITLE>
7
<!-- Fonctions JavaScript -->
8
<SCRIPT LANGUAGE="JavaScript">
9
function ouvrir(page)
10
	{
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
	}
13
</script>
14
<!-- fin javascript -->
958 franck 15
<?php
16
# $Id: haut.php 2093 2016-12-16 23:41:37Z raphael.pion $
17
// Access counter incrementation
589 richard 18
$name_fic="compteur.txt";
19
if (($fp=fopen($name_fic,"r")) == false) exit;
20
$nb=fgets($fp,10);
21
fclose($fp);
22
$nb+=1;
23
if (($fp=fopen($name_fic,"w")) == false) exit;
24
fputs($fp, "$nb\n");
25
fclose($fp);
2093 raphael.pi 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
 
589 richard 36
?>
318 richard 37
<link rel="stylesheet" href="/css/style.css" type="text/css">
38
</HEAD>
39
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
340 richard 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>
830 richard 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>
318 richard 42
	<TD valign="top" align="right"><A HREF="admin/logo.php" TARGET="REXY2"><IMG height="80" border="0" SRC="/images/organisme.png"></A></TD>
43
</TABLE>
44
</BODY>
45
</HTML>
2093 raphael.pi 46