Changeset 263 for quests/action.php
- Timestamp:
- Jan 26, 2008, 4:40:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/action.php
r249 r263 35 35 $Database->SQLCommand("INSERT INTO `shoutbox` ( `user` , `text` , `date` , `IP` ) 36 36 VALUES ( '$user', '$text', now(), '".$_SERVER['REMOTE_ADDR']."');"); 37 echo 'Zpráva vlo ¾ena!';37 echo 'Zpráva vloµena!'; 38 38 } 39 39 } … … 46 46 if (($vote > 5) OR ($vote < 1)) die ('Spadná známka'); 47 47 48 //TODO: if (Licence(0)) die('Hlasovat mùou jenom registrovaní!');49 50 48 51 49 $Line = mysql_fetch_row($Database->SQLCommand("SELECT * FROM quests_vote WHERE IDuser = '$IDuser' AND IDquest = '$questID'")); 52 if ( !$Line) {50 if ((!$Line) and (Licence(0))) { 53 51 $Line = mysql_fetch_array($Database->SQLCommand("SELECT Vote,CountVote FROM quests WHERE ID = '$questID'")); 54 52 $CountVote = $Line['CountVote']+1; … … 62 60 63 61 WriteLog('U¾ivatel hlasoval: '.$vote.'! Nyní je známka questu (<a href="form.php?ID='.$questID.'">'.$questID.'</a>): '.$NewVote, 5); 64 } else echo 'Ji¾ jste hlasoval! ';62 } else echo 'Ji¾ jste hlasoval!, nebo nem¾e¹ hlasovat'; 65 63 } 66 64
Note:
See TracChangeset
for help on using the changeset viewer.