<?php
session_start();
define("MODULE_FILE",true);
require_once("functions/function.php");
global $db,$prefix;
if(isset($_GET["page"]))
{
$id=intval($_GET["page"]);
$result=$db->sql_query("SELECT title,body FROM ".$prefix."content WHERE id=".$id);
list($title,$content) = $db->sql_fetchrow($result);
$title=cleantxt($title);
}
else
{
$title="Страница не найдена";
$content="Страница не найдена";
}
define("CAT",true);
include("body.php");
?>