Changeset 238 for quests/action.php
- Timestamp:
- Jan 16, 2008, 9:59:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/action.php
r235 r238 4 4 5 5 if (array_key_exists('delete', $_GET) and Licence(1)) { 6 $ questID = $_GET['ID'];7 $Database->SQLCommand("DELETE FROM quests WHERE ID = '$ questID' AND Language <> '0'");6 $QuestID = $_GET['ID']; 7 $Database->SQLCommand("DELETE FROM quests WHERE ID = '$QuestID' AND Language <> '0'"); 8 8 echo 'Quest byl smazán!'; 9 WriteLog('Quest smazán! <a href="form.php?ID='.$QuestID.'">'.$QuestID.'</a>', 4); 10 } 11 12 if (array_key_exists('NotComplete', $_GET) and Licence(1)) { 13 $QuestID = $_GET['ID']; 14 $Database->SQLCommand("UPDATE quests SET Complete = '0' WHERE ID = '$QuestID'"); 15 echo 'Quest byl vrázen k opravì!'; 16 WriteLog('Quest Byl brácen k opravì <a href="form.php?ID='.$QuestID.'">'.$QuestID.'</a>', 4); 9 17 } 10 18 … … 15 23 U¾ivatel: '; 16 24 if (Licence(0)) echo '<b>'.$_SESSION['User'].'</b><br />'; else echo '<input type="text" name="user"><br />'; 17 echo 'Text zprávy: <input type="text" name="text" size=" 20"><br />25 echo 'Text zprávy: <input type="text" name="text" size="50"> 18 26 <input type="submit" value="Ulo¾it"><br /> 19 27 </form>'; … … 29 37 echo 'Zpráva vlo¾ena!'; 30 38 } 31 }32 33 if (array_key_exists('NotComplete', $_GET) and Licence(1)) {34 $questID = $_GET['ID'];35 $Database->SQLCommand("UPDATE quests SET Complete = '0' WHERE ID = '$questID'");36 echo 'Quest byl vrázen k opravì!';37 39 } 38 40
Note:
See TracChangeset
for help on using the changeset viewer.