<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------+
| Modified by PHP-Fusion SF Group
| Copyright © 2007 by SF
| http://www.rus-phpfusion.com/
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td align='right' style='padding: 8px 4px 8px 4px; text-align:left; font-size: 10px; font-weight:bold;'  class='tbl2' width='30%'>";
$date = date('Y');
	$link_class = "";
	$res = base64_decode ("UG93ZXJlZCBieSA8bm9pbmRleD48YSBocmVmPSdodHRwOi8vd3d3LnBocC1mdXNpb24uY28udWsndGFyZ2V0PSdfYmxhbmsnPlBIUC1GdXNpb248L2E+PC9ub2luZGV4Pjxicj4KTW9kaWZpZWQgYnkgPGEgaHJlZj0naHR0cDovL3d3dy5ydXMtcGhwZnVzaW9uLmNvbSd0YXJnZXQ9J19ibGFuayc+UEhQLUZ1c2lvbjwvYT4mbmJzcDs8YSBocmVmPSdodHRwOi8vc2Z1c2lvbi5ydSd0YXJnZXQ9J19ibGFuayc+U0YgR3JvdXA8L2E+ICZjb3B5OyAyMDA3IC0g");
	$res .= $date."<br>\n";
	echo $res;
echo "</td>
<td align='right' style='padding: 8px 4px 8px 4px; text-align:center; font-size: 10px; font-weight:bold;'  class='tbl2' width='40%'>"; 
if (isset($settings['footer']))
{echo stripslashes($settings['footer']);} 
else {echo "&nbsp;";}
echo "</td>
<td align='right' style='padding: 8px 4px 8px 4px; text-align:right; font-size: 10px; font-weight:bold;'  class='tbl2' width='30%'>".showcounter()."<br />ρειχΰρ: ".showsubdate()."</td></tr></table>";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
</table>
</td></tr>
</table>\n";

echo "</body>\n</html>\n";

if (iADMIN) {
	$result = dbquery("DELETE FROM ".$db_prefix."flood_control WHERE flood_timestamp < '".(time()-360)."'");
	$result = dbquery("DELETE FROM ".$db_prefix."thread_notify WHERE notify_datestamp < '".(time()-1209600)."'");
	//$result = dbquery("DELETE FROM ".$db_prefix."vcode WHERE vcode_datestamp < '".(time()-360)."'");
	$result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time()-86400)."'");
}

/* gzip start footer */
if (isset($site_gzipper_encoding)) {
$site_gzipper_in = ob_get_contents();
$site_gzipper_inlenn = strlen($site_gzipper_in);
$site_gzipper_out = gzencode($site_gzipper_in, 3);
$site_gzipper_lenn = strlen($site_gzipper_out);
$pcs_of_total = $site_gzipper_inlenn / 100;
$percent = ceil ($site_gzipper_lenn / $pcs_of_total);
$percent = 100 - $percent;

$site_gzipper_in = str_replace('<!-- site gzipper -->', 'Original size:'.ceil(strlen($site_gzipper_in)/1024).' κα.<br>GZipped size: '.ceil($site_gzipper_lenn/1024).' κα.<br>Compression:'.$percent.'%</span>', $site_gzipper_in);
$site_gzipper_out = gzencode($site_gzipper_in, 2);
ob_clean();
header('Content-Encoding: '.$site_gzipper_encoding);
echo $site_gzipper_out;
}
/* gzip end footer */
mysql_close();

ob_end_flush();
?>