Там я нашел такой код:Посмотри повнимательнее
<?
// Ядро
if(!IsSet($_GET['page'])) $_GET['page']='index';
if($_GET['page']=='index')
{
$title='index';
$txt='index';
}
elseif($_GET['page']=='prices')
{
$title='prices';
$txt='prices';
}
else
{
$title='error404';
$txt='error404';
}
?>
<html>
<head>
<title><?=$title?></title>
</head>
<body>
<?
require_once('txt/'.$txt.'.txt');
?>
</body>
</html>
$_GET['index"]
if(!IsSet($_GET['index'])) $_GET['page']='index';
<?
// Ядро
if($_SERVER['QUERY_STRING']) $_GET['index']=TRUE;
if(IsSet($_GET['index']))
{
$title='index';
$txt='index';
}
elseif(IsSet($_GET['news']))
{
$title='news';
$txt='news';
}
elseif(IsSet($_GET['prices']))
{
$title='prices';
$txt='prices';
}
else
{
$title='error404';
$txt='error404';
}
?>
<html>
<head>
<title><?=$title?></title>
</head>
<body>
<?
require_once('txt/'.$txt.'.txt');
?>
</body>
</html>
if($_SERVER['QUERY_STRING']) $_GET['index']=TRUE;
<?
// Ядро
if($_SERVER['QUERY_STRING']) $_GET['index']=TRUE;
if(IsSet($_GET['index']))
{
$title='index';
$txt='index';
}
elseif(IsSet($_GET['eisk']))
{
$title='eisk';
$txt='eisk';
}
else
{
$title='error404';
$txt='error404';
}
?>
<tr>
<td class="mainmenu"><a href="?index" class="mainverh">Главная</a></td>
</tr>
<tr>
<td class="mainmenu"><a href="?eisk" class="mainverh">О Ейске</a></td>
</tr>
<?
require_once('txt/'.$txt.'.txt');
?>
if($_SERVER['QUERY_STRING']) $_GET['eisk']=TRUE;
Спасибо тебе, работает отлично! Можно ещё пояснить первую сточку(кода)?!Недоглядел. Исправление.
Код:if($_SERVER['QUERY_STRING']=='') $_GET['index']=TRUE;