Файл: data/hram.dat.php
Строк: 95
<?
if(isset($_SESSION['statusis'])){
print $_SESSION['statusis'];print "<br>";
unset($_SESSION['statusis']);}
$de=mysql_query("select *from super_q where name='$opredelenie'");
$statys_qw=mysql_fetch_array($de);
if (!isset($_GET['st'])) {
if($statys_qw['1']==100){
print"<br><a href=88.php?go=hram&st=101>[Войти]</a>";
exitt($row,$opredelenie);
;}
if($row['polog1']!=501){
print"На это величественное сооружение можно смотреть вечно, любуясь на широкие мраморные ступени, ведущие к массивным деревянным дверям, украшенным золотым орнаментом, втиснутым меж двух статуй первых героев - Воина (символом силы духа, воли и дисциплины) и Мага (символом чистоты разума, мудрости и ответственности)";
}
if($statys_qw['1']==1){
print"<br><a href=88.php?go=hram&st=4>[Магистр Наввир]</a>";}else{
print"<br><a href=88.php?go=hram&st=9>[Войти]</a>";
;}
exitt($row,$opredelenie);
} else {
$qw_me = mysql_query("SELECT *
FROM `qwest_perehod` where `id`='" . (int)$_GET['st'] . "' and step='".$statys_qw['1']."'and sever='".$row['sever']."' and wostok='".$row['wostok']."' ");
}$ro_qw = mysql_fetch_array($qw_me);
if(isset($_GET['exit'])){if(mysql_num_rows($qw_me)>0){
print"<strong>Задание:</strong> ".$ro_qw['zadanie']." !";
mysql_query("update `super_q` set `1`='".$ro_qw['new_step']."' where name='$opredelenie'");
mysql_query("INSERT INTO `a36667_element`.`big_qwest_pers` (
`gorodnum` ,
`num` ,
`status` ,
`s` ,
`w` ,
`opisanie` ,
`id`
)
VALUES (
'', '101', '101', '', '', '".$ro_qw['zadanie']."', '".$row['ID']."'
);");
exitt($row,$opredelenie);}
;}
if(isset($_GET['exit_2'])){if(mysql_num_rows($qw_me)>0){
print"<strong>Задание:</strong> ".$ro_qw['zadanie']." !";
mysql_query("update `super_q` set `1`='3' where name='$opredelenie'");
header("location:88.php?go=hram&st=9") ;exit();
exitt($row,$opredelenie);};}
if(isset($_GET['exit_3'])){if(mysql_num_rows($qw_me)>0){
$rmp=$row['mp']/2;
mysql_query("update `table1` set `mp`='$rmp' where name='$opredelenie'");
header("location:88.php?go=hram&st=10") ;}
;;}
if(isset($_GET['exit_4'])){if(mysql_num_rows($qw_me)>0){
$rmp=$row['hp']/2;
mysql_query("update `table1` set `hp`='$rmp' where name='$opredelenie'");
header("location:88.php?go=hram&st=13") ;}
;;}
if(isset($_GET['exit_5'])){if(mysql_num_rows($qw_me)>0){
$rmp=$row['hp']/2;// чтото в рюкзак!
if(!isset($_SESSION['k'])){
$rrr=rand(1,47);
$query1 = "SELECT *
FROM `potroha` where `id`='$rrr'" ;
$sql1 = mysql_query($query1) ;
$rowpotroha = mysql_fetch_array($sql1) ;
mysql_query("INSERT INTO `rukzak`
( `idrukzak` , `name` , `tip` , `nazvanie` , `try` , `time` , `sozdatel` , `lvl` ,
`odeto` , `chit` ,`table`,`rus_tip`,`rus_par`)
VALUES ('','" . mysql_real_escape_string($opredelenie) . "', 'artefact', '" .
mysql_real_escape_string($rowpotroha['name']) . "',
'" . mysql_real_escape_string($rowpotroha['par']) . "','" .
mysql_real_escape_string(time()) . "','','" .mysql_real_escape_string( $rowpotroha['lvl']) . "','0','" . mysql_real_escape_string($rowpotroha['idtip']) .
"','" . mysql_real_escape_string($rowpotroha['tip']) . "','" . mysql_real_escape_string($rowpotroha['rus_tip']) . "','" .mysql_real_escape_string( $rowpotroha['rus_par']) .
"')") or die(mysql_error()) ;
$_SESSION['statusis']="Вы положили в рюкзак ".$rowpotroha['name'].", но при падении потеряли половину ХП!"
;}
$_SESSION['k']=1;
mysql_query("update `table1` set `hp`='$rmp' where name='$opredelenie'");
header("location:88.php?go=hram&st=13") ;}
;;}
if(isset($_GET['exit_6'])){if(mysql_num_rows($qw_me)>0){
$rmp=$row['hp']/2;// чтото в рюкзак!
mysql_query("update `table1` set `polog1`='501',sever=0,wostok=0 where name='$opredelenie'");
header("location:88.php?go=do") ;}
;;}
if(isset($_GET['exit_7'])){if(mysql_num_rows($qw_me)>0){
$rmp=$row['hp']/2;// чтото в рюкзак!
$rmpm=$row['mp']/2;
mysql_query("update `table1` set `polog1`='0',hp='$rmp', mp='$rmpm' ,sever='0', wostok='0' where name='$opredelenie'");
mysql_query("update `super_q` set `1`='5' where name='$opredelenie'");}
;;}
if(isset($_GET['exit_100'])){if(mysql_num_rows($qw_me)>0){
print "" . $ro_qw['text'] . "<br><font color=green><strong>$opredelenie</strong></font>:
" . $ro_qw['o1'] . "<br>" . $ro_qw['o2'] . "<br>";
mysql_query("update `super_q` set `1`='100' where name='$opredelenie'");
exitt($row,$opredelenie);};}
print "" . $ro_qw['text'] . "<br><font color=green><strong>$opredelenie</strong></font>:
" . $ro_qw['o1'] . "<br>" . $ro_qw['o2'] . "<br>";
;
exitt($row,$opredelenie);
?>