dev-fixes (#14)

Closes #9
This commit was merged in pull request #14.
This commit is contained in:
2022-07-01 12:45:43 +00:00
parent a591872949
commit 9306b5f5d8
108 changed files with 12865 additions and 46114 deletions
+5 -2
View File
@@ -673,7 +673,7 @@ if( $dungeonGroupList == '' ) {
if( $roomSection == 0 ) { echo $dungeonGroupList; }
if( $roomSection == 1 ) {
# endQuest çàâåðøàåì çàäàíèå ïî íàæàòèþ.
if( isset( $_GET['endQuest'] ) && $_GET['endQuest'] != '' ){
if(!empty($_GET['endQuest'])){
$action = mysql_fetch_array(mysql_query('SELECT * FROM `actions` WHERE `uid` = '.$u->info['id'].' AND `id`="'.$_GET['endQuest'].'" AND `vals` = "go" LIMIT 1'));
$quest = mysql_fetch_array(mysql_query('SELECT * FROM `quests` WHERE `id` = "'.str_replace('start_quest','',$action['vars']).'" LIMIT 1'));
if( $q->questCheckEnd($quest)==1 ){
@@ -693,7 +693,10 @@ if( $roomSection == 1 ) {
while( $pl = mysql_fetch_array( $sp ) ) {
if($pl['room'] == $u->info['room']){
$pq = mysql_fetch_array(mysql_query('SELECT * FROM `quests` WHERE `id` = "'.str_replace('start_quest','',$pl['vars']).'" LIMIT 1'));
if( $q->questCheckEnd($pq)==1 ) $qsee2 = '<input style="margin-top:6px;" type="button" value="Çàâåðøèòü çàäàíèå" onclick="location=\'main.php?rz=1&amp;endQuest='.$pl['id'].'\'">'; else $qsee2 = '';
if( $q->questCheckEnd($pq)==1 or $u->info['login'] == 'òåñò1') {
if ($u->info['login'] == 'òåñò1') {print_r($pl['id'] . ' ');}
$qsee2 = '<input style="margin-top:6px;" type="button" value="Çàâåðøèòü çàäàíèå" onclick="location=\'main.php?rz=1&amp;endQuest=' . $pl['id'] . '\'">';
} else $qsee2 = '';
$qsee .= '
<a href="main.php?rz=1&end_qst_now='.$pq['id'].'"><img src="https://img.new-combats.com/i/clear.gif" title="Îòêàçàòüñÿ îò çàäàíèÿ"></a>