<?php 
require($_SERVER["DOCUMENT_ROOT"]."/anykey/inf.php");
Error_Reporting(E_ALL & ~E_NOTICE);
$db=mysql_connect("$HOST", "$USER", "$PASS");
mysql_select_db("$BASE");
$thispage = substr($PHP_SELF, 1); 
$result = mysql_query("SELECT * FROM `htmlcodes` WHERE `src`='$thispage'");

 while ($page = mysql_fetch_array($result)) {
      $text = $page[1];
     $title = $page[4];
     $keywords = $page[5];
     $description = $page[6];
$include=$page['include_file'];
    }
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<title>
<?php echo  $title;?>
</title>
<META http-equiv=content-type content="text/html; charset=windows-1251">
<META 
content="<?php echo  $keywords;?>" 
name=keywords>
<META 
content="<?php echo $description;?>" 
name=description>
<?
require($_SERVER["DOCUMENT_ROOT"]."/anykey/head.php");
print ($text);
if($include) require($_SERVER["DOCUMENT_ROOT"]."/anykey/modules/".$include);
require($_SERVER["DOCUMENT_ROOT"]."/anykey/foot.php");
?>