}elseif($_GET[act]==complete){
$req = mysql_query(\"SELECT * FROM
`userquests` WHERE `usr` = \'$log\' and
`status`=\'complete\'\"
;
////////////////////////////
$avto=mysql_num_rows($req);
if($avto==\"0\"
{
echo\'Нет квестов!\';
include\"files/down.php\";exit;
}
if(empty($_GET[id])){
While($q = mysql_fetch_array($req))
{
$reqo = mysql_query(\"SELECT * FROM
`quests` WHERE `quest` = \'$q[quest]\'\"
;
$quest = mysql_fetch_array($reqo);
echo\"<div class=inoy> <a href=
\\\"index.php?
mod=quests&act=complete&id
=$q[id]\\\"> $quest[name] </a></div>\";
}
}else{
$req = mysql_query(\"SELECT * FROM
`userquests` WHERE `usr` = \'$log\' and
`status`=\'complete\' and `id`=\'$_GET[id]\'\"
;
////////////////////////////
$avto=mysql_num_rows($req);
if($avto==\"0\"
{
echo\'Нет такого квеста!\';
include\"files/down.php\";exit;
}
$q = mysql_fetch_array($req);
$req = mysql_query(\"SELECT * FROM
`quests` WHERE `quest` = \'$q[quest]\'\"
;
$quest = mysql_fetch_array($req);
echo\"<b><font color=#007F46> $quest
[name] </font></b> <font
color=#FF6A00> [yes] </font><br/>\";
echo\"<br/><font color=#A0A0A0>
$quest[mission] </font><br/><br/>\";
}
}else{
echo \"<div class=inoy>\";
echo\"<a href=\\\"index.php?
mod=quests&act=start
\\\">Активные</a>\";
echo\"<a href=\\\"index.php?
mod=quests&act=complete
\\\">Завершёные</a>\";
echo \"</div>\";
echo\"<br/><div class=inoy><a href=
\\\"index.php?\\\">Назад</a></div>\";
break;
case \'exit\':
setcookie(\'log\', \'\');
setcookie(\'pas\', \'\');
session_destroy();
break;
Добавлено 25.10.13 в 20:53:01:
Это треть кода