<?php

/***************************************************************************

 gzip.php
 ---------
 copyright : (C) 2002-2003 The ezContents Development Team

 ***************************************************************************/

/***************************************************************************
 The ezContents Development Team offers no warranties on this script.
 The owner/licensee of the script is solely responsible for any problems
 caused by installation of the script or use of the script.

 All copyright notices regarding ezContents must remain intact on the
 scripts and in the HTML for the scripts.

 For more info on ezContents,
 visit http://www.ezcontents.org/

/***************************************************************************

/***************************************************************************
 *
 *	This program is free software; you can redistribute it and/or modify
 *	it under the terms of the License which can be found within the
 *	zipped package.
 *
 ***************************************************************************/

include_once ("rootdatapath.php");
require_once ($GLOBALS["rootdp"]."include/config.php");
require_once ($GLOBALS["rootdp"]."include/db.php");
require_once ($GLOBALS["rootdp"]."include/session.php");

include ("adminfunctions.php");
include ($GLOBALS["rootdp"]."include/functions.php");
include ($GLOBALS["rootdp"]."include/access.php");
include ($GLOBALS["rootdp"]."include/settings.php");
includeLanguageFiles('admin','main','serversettings');


if (strpos($HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"], 'x-gzip') !== FALSE) {
	$GLOBALS["gzip_encoding"] = 'x-gzip';
} elseif (strpos($HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"],'gzip') !== FALSE) {
	$GLOBALS["gzip_encoding"] = 'gzip';
}


admhdr();
?>
<TITLE><?php echo $GLOBALS["tOnlineHelp"].' - '.$GLOBALS["tGzipTest"]; ?></TITLE>
</head>
<body leftmargin=0 topmargin=0 marginwidth="0" marginheight="0" class="mainback">
<table border="0" width="100%" cellspacing="3" cellpadding="3">
	<tr class="headercontent">
		<td class="header"><b><?php echo $GLOBALS["tGzipTest"]; ?></b></td>
	</tr>
	<tr class="tablecontent"><td>
		<?php
		if (isset($GLOBALS["gzip_encoding"])) {
			echo $GLOBALS["tGzipSupported"];
		} else {
			echo $GLOBALS["tGzipUnsupported"];
		}
		?>
	</td></tr>
	<tr class="headercontent">
		<td align="<?php echo $GLOBALS["right"]; ?>"><a href="javascript:window.close();"><?php echo $GLOBALS["tCloseHelp"]; ?></a></td>
	</tr>
</table>
</body>
</html>
