Changeset 263 for quests/action.php


Ignore:
Timestamp:
Jan 26, 2008, 4:40:57 PM (17 years ago)
Author:
maron
Message:

Páru oprav

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/action.php

    r249 r263  
    3535      $Database->SQLCommand("INSERT INTO `shoutbox` ( `user` , `text` , `date` , `IP` )
    3636      VALUES ( '$user', '$text', now(), '".$_SERVER['REMOTE_ADDR']."');");
    37       echo 'Zpráva vlo¾ena!';   
     37      echo 'Zpráva vloµena!';   
    3838    }
    3939  }
     
    4646    if (($vote > 5) OR ($vote < 1)) die ('Spadná známka');
    4747   
    48   //TODO:  if (Licence(0)) die('Hlasovat mùœou jenom registrovaní!');
    49 
    5048
    5149    $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))) { 
    5351      $Line = mysql_fetch_array($Database->SQLCommand("SELECT Vote,CountVote FROM quests WHERE ID = '$questID'"));
    5452      $CountVote = $Line['CountVote']+1;
     
    6260   
    6361      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';
    6563  }
    6664
Note: See TracChangeset for help on using the changeset viewer.