Changeset 247 for quests/save.php
- Timestamp:
- Jan 19, 2008, 12:17:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/save.php
r238 r247 34 34 } 35 35 36 /* if (array_key_exists('Repair', $_POST)) { 37 $User = mysql_escape_string($_POST['UserRepair']); 38 echo 'Opraveno...'.$User; 39 } */ 40 // echo $User; 41 if (($Title == '') AND ($complete == 1)) 42 die('Musite zadat název Q'); 36 if (($Title == '') AND ($complete == 1)) die('Musite zadat název Q'); 43 37 44 38 $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM quests WHERE user='$UserID' AND entry = '$entry'")); … … 47 41 $Database->SQLCommand("INSERT INTO `quests` (`entry` , `Title` , `Details` , `Objectives` , `OfferRewardText` , `RequestItemsText` , `EndText` , `ObjectiveText1` , `ObjectiveText2` , `ObjectiveText3` , `ObjectiveText4` , `Language` , `User` , `complete` , `Take` ) 48 42 VALUES('$entry','$Title','$Details','$Objectives','$OfferRewardText','$RequestItemsText','$EndText','$ObjectiveText1','$ObjectiveText2','$ObjectiveText3','$ObjectiveText4','$Language','$UserID','$complete','$QuestID')"); 49 // $Database->SQLCommand("INSERT INTO czquests VALUES('$entry','$Title','$Details','$Objectives','$OfferRewardText','$RequestItemsText','1','$User','$complete')");50 // $Database->SQLCommand("UPDATE ajquests SET state = '1' WHERE entry = '$entry'");51 43 echo 'Quest: '.$entry.' ulo¾en!<br />'; 52 44 WriteLog('Quest: '.$entry.' ulo¾en! <a href="form.php?ID='.$QuestID.'">'.$QuestID.'</a>', 1); … … 66 58 } 67 59 68 69 // ++$QuestID;70 60 echo 'Pøekládat: <a href="ListQuests.php?selection">Nepøeloµené</a> '; 71 61
Note:
See TracChangeset
for help on using the changeset viewer.