Changeset 247 for quests/save.php


Ignore:
Timestamp:
Jan 19, 2008, 12:17:51 PM (17 years ago)
Author:
maron
Message:

Vysouvací menu, a ještě cosik

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/save.php

    r238 r247  
    3434    }
    3535     
    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');
    4337   
    4438    $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM quests WHERE user='$UserID' AND entry = '$entry'"));
     
    4741      $Database->SQLCommand("INSERT INTO `quests` (`entry` , `Title` , `Details` , `Objectives` , `OfferRewardText` , `RequestItemsText` , `EndText` , `ObjectiveText1` , `ObjectiveText2` , `ObjectiveText3` , `ObjectiveText4` , `Language` , `User` , `complete` , `Take` )
    4842      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'");     
    5143      echo 'Quest: '.$entry.' ulo¾en!<br />';
    5244      WriteLog('Quest: '.$entry.' ulo¾en! <a href="form.php?ID='.$QuestID.'">'.$QuestID.'</a>', 1);
     
    6658    }
    6759   
    68 
    69    // ++$QuestID;
    7060    echo 'Pøekládat: <a href="ListQuests.php?selection">Nepøeloµené</a> ';
    7161     
Note: See TracChangeset for help on using the changeset viewer.