function WriteLog($x)
{
$lockfilename = "_stats/lock";
$w = time();
$statfilename = "_stats/" . date("Y", $w) . "/" . date("Y-m-d", $w) . ".log";
$w = date("H:i:s", $w);
$via = $GLOBALS['HTTP_VIA'];
$remote = $GLOBALS['REMOTE_ADDR'];
$forw = $GLOBALS['HTTP_X_FORWARDED_FOR'];
$rec = "|$w|$x|$via|$remote|$forw|\n";
if (! is_file($lockfilename))
{
// ez elég nagy baj lenne...
return NULL;
}
$lockfp = fopen($lockfilename, "r+");
if (! $lockfp)
{
// ez is elég nagy baj lenne...
return NULL;
}
if (! flock($lockfp, 2))
{
// ez is elég nagy baj lenne...
return NULL;
}
$fp = fopen($statfilename, "a");
fputs($fp, $rec);
fclose($fp);
flock($lockfp, 3);
fclose($lockfp);
return TRUE;
}
$t0 = time();
$t1 = $t0 + 7200;
Header("Expires: " . + gmdate("D, d M Y H:i:s", $t1) . " GMT");
if (preg_match("/vnd.wap.wml/i", getenv("HTTP_ACCEPT")))
{
WriteLog("WAP");
Header("Content-type:text/vnd.wap.wml");
echo '<' . '?xml version="1.0"?' . '>';
echo '';
echo '';
echo '';
echo '';
echo '';
echo 'from
';
echo 'ringtones.freeport.hu
';
echo '
';
echo 'Readme
';
echo 'Classical melodies
';
echo 'National anthems
';
echo 'Well-known tunes
';
echo 'Special effects
';
echo 'Hitlinks
';
echo '
';
echo '';
echo '';
exit;
}
WriteLog("WEB");
?>
ringtones.freeport.hu
If You want to visit our site, then
You need a web-browser, which is
compatible to the HTML 4 standard and can
execute Javascript code.
For Windows we recommend You to use
Netscape Navigator 7 or above or
Internet Explorer 5 or above or
other proper browser...
|
|
Graphic design: Minimal Design Group
WAP emulator concept: Small Faces Inc.
Site realisation: HandMade WebSites Inc.
|
You can reach this site from Your mobile phone via WAP,
so You can download ringtones directly into Your phone.
WAP URL: http://ringtones.freeport.hu :-)))
|
Webmaster and chief-editor: j
Send comments, suggestions, etc.:
ringtones AT freeport DOT hu
|
|