Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2181 → Rev 2182

/web/acc/haut.php
1,46 → 1,48
<!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$
 
// Access counter incrementation
$name_fic="compteur.txt";
if (($fp=fopen($name_fic,"r")) == false) exit;
$nb=fgets($fp,10);
$counterFilename = 'compteur.txt';
$fp = fopen($counterFilename, 'r+');
if ($fp === false) {
exit();
}
$nbAccess = intval(fgets($fp, 10));
$nbAccess++;
rewind($fp);
fputs($fp, $nbAccess.PHP_EOL);
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."|||";
// 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>
 
<!doctype html>
<!-- Writen by Rexy -->
<!-- ACC Top Window -->
<html>
<head>
<meta charset="utf-8">
<title>Top</title>
<script>
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>
<link rel="stylesheet" type="text/css" href="/css/style.css">
</head>
<body>
<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>