View file page.php
<? require "include/avto.php"; $page_name=""; $dir="../"; include("include/1.php"); if(!isset($_GET['id']))header("Location: index.php?error=404"); $id=$_GET['id']; $page_1=mysql_query("select * from `shurik_pages` where `url`='$id'"); if(mysql_num_rows($page_1)==0)header("Location: ../index.php?error=404"); $page_2=mysql_fetch_array($page_1); echo $page_2['text']; include("include/2.php"); ?>