Changeset 261 for quests


Ignore:
Timestamp:
Jan 22, 2008, 6:01:34 PM (17 years ago)
Author:
maron
Message:

opravy

Location:
quests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quests/npc_form.php

    r251 r261  
    88    $LineAJ = mysql_fetch_array($Database->SQLCommand("SELECT * FROM npc_text Where Language = '0' AND entry = '".$Line['entry']."'"));
    99    $LineUser = mysql_fetch_array($Database->SQLCommand("SELECT * FROM user Where id = '".$Line['User']."'"));
    10     $LineVote = mysql_fetch_array($Database->SQLCommand("SELECT * FROM npc_vote WHERE IDuser = ".$_SESSION['UserID']." AND IDnpc = $npc_ID"));
     10    $LineVote = mysql_fetch_array($Database->SQLCommand("SELECT * FROM npc_vote WHERE IDuser = '".@$_SESSION['UserID']."' AND IDnpc = $npc_ID"));
    1111 
    1212     
  • quests/save.php

    r260 r261  
    4848      '$ObjectiveText2','$ObjectiveText3','$ObjectiveText4','$Language','$UserID','$complete','$QuestID','3','1')");
    4949      echo 'Quest: '.$entry.' ulo¾en!<br />';
    50       WriteLog('Quest: '.$entry.' uloµen! <a href="form.php?ID='.$QuestID.'">'.$QuestID.'</a>', 1);
     50      WriteLog('Quest: '.$entry.' ulo¾en! <a href="form.php?ID='.$QuestID.'">'.$QuestID.'</a>', 1);
    5151    } else {
    5252      $sql = "UPDATE quests SET complete = '$complete', Title = '$Title',
     
    6060    //  echo $sql.'<br />';     
    6161      echo 'Zmìny v Questu: '.$entry.' ulo¾eny!<br />';
    62       WriteLog('Zmìny v Questu: '.$entry.' uloµeny! <a href="form.php?ID='.$QuestID.'">'.$QuestID.'</a>', 1);
     62      WriteLog('Zmìny v Questu: '.$entry.' ulo¾eny! <a href="form.php?ID='.$QuestID.'">'.$QuestID.'</a>', 1);
    6363      $Database->SQLCommand("DELETE FROM `quests_vote` WHERE `quests_vote`.`IDquest` = ".$QuestID);
    6464    }
    6565   
    66     echo 'Pøekládat: <a href="ListQuests.php?selection">Nepøeloœené</a> ';
     66    echo 'Pøekládat: <a href="ListQuests.php?selection">Nepøeloené</a> ';
    6767     
    6868  }
Note: See TracChangeset for help on using the changeset viewer.