Viewing file: index.php (2.63 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<style> a.egyszeru { text-decoration: none } </style> <body background=bg.bmp link=white alink=white vlink=white>
<a href=welcome.html target=keret><img border=0 src=logo.bmp style="position:relative; top:3;"></a>
<H3>Rendelés: <a href=mailto:gagagabor@freemail.hu>Galántai Gábor</a></h3> <br><br><br>
<table border=0 width=100% height=85%><tr><td width=100 valign=top> <table style="border-spacing: 5px; border-color: rgb(47, 129, 196) rgb(47, 129, 196) rgb(47, 129, 196) rgb(47, 129, 196); border-style: groove groove groove groove;" border=1 width=100 height=300> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=list.php?team=Arsenal target=keret>Arsenal</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=list.php?team=Barcelona target=keret>Barcelona</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=list.php?team=Bayern target=keret>Bayern München</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=list.php?team=Chelsea target=keret>Chelsea</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=list.php?team=Inter target=keret>Inter</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=list.php?team=Juventus target=keret>Juventus</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=list.php?team=Liverpool target=keret>Liverpool</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=list.php?team=Manchester target=keret>Manchester United</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=list.php?team=Milan target=keret>Milan</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=list.php?team=Realmadrid target=keret>Real Madrid</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=list.php?team=Roma target=keret>Roma</a> </table> <td>
</table>
<center> <small>Made by <a href=mailto:gerydeft@yahoo.com>GeryDeft</a></small>
<?php
$today = date("Y. m. d. G:i:s"); $ip = gethostbyaddr($_SERVER[REMOTE_ADDR]);
$somecontent = "[ MIKOR: ".$today." ][ IP: ".$ip." ] \n"; $filename = 'log.txt';
// Let's make sure the file exists and is writable first. if (is_writable($filename)) {
// In our example we're opening $filename in append mode. // The file pointer is at the bottom of the file hence // that's where $somecontent will go when we fwrite() it. if (!$handle = fopen($filename, 'a')) { echo "Cannot open file ($filename)"; exit; }
// Write $somecontent to our opened file. if (fwrite($handle, $somecontent) === FALSE) { echo "Cannot write to file ($filename)"; exit; } fclose($handle); }
?>
|