Файл: qwest/1.dat.php
Строк: 43
<?
if($row['lvl']<11){print'Алликен Дорф: -Приходи когда будешь 11 уровня'; exitt($row,$opredelenie);}
if (!isset($_GET['numtext'])) {
$kr = '';
} else {
$kr = "and numtext='" . $_GET['numtext'] . "'";
}
$qw = mysql_query("select*from big_qwest where gorodnum='" . $rowg['number'] .
"' and num='" . $_GET['num'] . "' $kr") or die(mysql_error());
if (mysql_num_rows($qw) == 0) {
header('location:88.php?go=do');
$_SESSION['statusis']='Вы получили новое задание!';
exit;
;
}
$qw_viv = mysql_fetch_array($qw);
print "<strong>" . $qw_viv['mob'] . "</strong>:<br>";
if ($qw_viv['num'] == 1) {
$big_p = mysql_query("select*from `qwest_book` where id_qw='9' and id_pers='" . $row['ID'] . "'
");
$status = mysql_fetch_array($big_p);
if(mysql_num_rows($big_p)==1){
if ($status['status'] == 0) {
print "Вы уже взялись за это задание!";
exitt($row, $opredelenie);
}
if ($status['status'] == 1) {
print "Спасибо за твою помошь, приходи позже!";
exitt($row, $opredelenie);
};}
if ($qw_viv['numtext'] == 1) {
if ($status['status'] !== 1) {
$s = rand(24, 26);
$w = rand(30, 35);
mysql_query("
INSERT INTO `a36667_element`.`qwest_book` (`id` ,
`id_pers` ,
`id_qw` ,
`name_qw` ,
`opisan_qw` ,
`tek_status` ,
`status`,`qw_kolvo`
)
VALUES (NULL , '".$row['ID']."', '9','Письмо!', 'Отнести письмо Джеку, который живет в районе Флеймена','1', '0','10'
); "
);
$e = "Письмо" ;
mysql_query("INSERT INTO `rukzak` ( `name` , `tip` , `nazvanie`,`chit`,`time`,`rus_tip` )
VALUES (
'" . mysql_real_escape_string($opredelenie) . "', 'kamen', '" .
mysql_real_escape_string($e) . "','pismo','".time()."','Письмо которое нужно отнести Джеку!'
)") or die(mysql_error()) ;
}
;
}
$t = $qw_viv['numtext'] + 1;
print "" . $qw_viv['text'] . "<br><a href=88.php?go=ploshad&num=" . $qw_viv['num'] .
"&numtext=$t >" . $qw_viv['pers'] . "</a>";
;}
exitt($row, $opredelenie);
?>