Subversion Repositories ALCASAR

Rev

Rev 2093 | Rev 2182 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
<!-- Writen by Rexy -->
<!-- ACC Top Window -->
<HTML>
<HEAD>
<TITLE>Top</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function ouvrir(page)
        {
        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");
        }
</SCRIPT>
<?php
# $Id: haut.php 2134 2017-03-12 19:53:15Z richard $
// Access counter incrementation
$name_fic="compteur.txt";
if (($fp=fopen($name_fic,"r")) == false) exit;
$nb=fgets($fp,10);
fclose($fp);
$nb+=1;
if (($fp=fopen($name_fic,"w")) == false) exit;
fputs($fp, "$nb\n");
fclose($fp);


//Inform admin log about his last connection
$admin_log="admin_log.txt";
$user_htdigest=$_SERVER['PHP_AUTH_USER'];
$date_system=date('d/m/Y H:i:s');
$user_ip=$_SERVER["REMOTE_ADDR"];
$text=$date_system."|||".$user_htdigest."|||".$user_ip."|||";
file_put_contents($admin_log, $text.PHP_EOL, FILE_APPEND);

?>
<link rel="stylesheet" href="/css/style.css" type="text/css">
</HEAD>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
        <TD valign="top" align="left"><A HREF="javascript:ouvrir('about.htm')"><IMG height="80" border="0" SRC="/images/logo-alcasar.png"></A></TD>
        <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>
        <TD valign="top" align="right"><A HREF="admin/logo.php" TARGET="REXY2"><IMG height="80" border="0" SRC="/images/organisme.png"></A></TD>
</TR>
</TABLE>
</BODY>
</HTML>