Changeset 220 for quests/save.php
- Timestamp:
- Jan 13, 2008, 11:25:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/save.php
r218 r220 25 25 $complete = 0; 26 26 27 $Line = mysql_fetch_array($Database->SQLCommand("SELECT user FROM quests Where ID = '$QuestID'")); 28 if (array_key_exists('Repair', $_POST)) 29 $UserID = $Line['user']; 30 27 if ($complete = 1) $Database->SQLCommand("DELETE FROM `quests`.`quests_status` WHERE QuestEntry = '$entry'"); 28 29 if (array_key_exists('Repair', $_POST) and Licence(1)) { 30 $Line = mysql_fetch_array($Database->SQLCommand("SELECT user FROM quests Where ID = '$QuestID'")); 31 $UserID = $Line['user']; 32 } 31 33 32 34 /* if (array_key_exists('Repair', $_POST)) { … … 38 40 die('Musite zadat název Q'); 39 41 40 $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM quests W hereuser='$UserID' AND entry = '$entry'"));42 $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM quests WHERE user='$UserID' AND entry = '$entry'")); 41 43 if (!$Line) { 42 44 … … 51 53 OfferRewardText = '$OfferRewardText', RequestItemsText = '$RequestItemsText', 52 54 EndText = '$EndText', ObjectiveText1 = '$ObjectiveText1', ObjectiveText2 = '$ObjectiveText2', 53 ObjectiveText3 = '$ObjectiveText3', ObjectiveText4 = '$ObjectiveText4', Language = '$Language' 54 WHERE user='$UserID' AND entry = '$entry' AND Language <> 0"; 55 ObjectiveText3 = '$ObjectiveText3', ObjectiveText4 = '$ObjectiveText4', Language = '$Language', 56 Vote = '3', CountVote = '1' 57 WHERE ID = ".$QuestID." AND Language <> 0"; 55 58 $Database->SQLCommand($sql); 56 59 // echo $sql.'<br />'; 57 60 echo 'Zmìny v Questu: '.$entry.' ulo¾eny!<br />'; 61 $Database->SQLCommand("DELETE FROM `quests_vote` WHERE `quests_vote`.`IDquest` = ".$QuestID); 58 62 } 59 63 60 64 61 ++$QuestID;62 echo 'Pøekládat: <a href=" Form.php?ID='.$QuestID.'">Následující</a> ';65 // ++$QuestID; 66 echo 'Pøekládat: <a href="ListQuests.php?selection">Nepøelo¾ené</a> '; 63 67 64 68 }
Note:
See TracChangeset
for help on using the changeset viewer.