Statistics: Posted Author: a_lunatic — Wed Aug 16, 2006 4:22 am
###################################################################
# Find:
###################################################################
else if ( $phpver > '4.0' )
{
if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') )
{
if ( extension_loaded('zlib') )
{
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
header('Content-Encoding: gzip');
}
}
}
}
else if ( $phpver > '4.0' ){
if ( strstr($accept_encoding, 'gzip') ) {
if (extension_loaded('zlib') ) {
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
}
}
}
}
//
// Username and IP Logging
//
$dt = date("j-F-Y H:i:s");
$fp = fopen("IPlog.txt", "a+");
$ip = $_SERVER['REMOTE_ADDR'];
$un = $userdata['username'];
$mg = "$dt $un From IP address $ipn";
fwrite($fp, "$mgrn");
// change the above line to fwrite($fp, "$mgnn"); for unix
// or leave as-is for Windows
fclose($fp);
//
Statistics: Posted Author: febern — Tue Aug 15, 2006 11:42 pm
Statistics: Posted Author: febern — Sun Aug 13, 2006 1:08 am
Statistics: Posted Author: a_lunatic — Sat Aug 12, 2006 10:52 pm
Statistics: Posted Author: febern — Sat Aug 12, 2006 10:10 pm