php session_start define MODULE_FILE true require_once functions funct

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
<?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");
?>