Changeset 295 for quests/action.php
- Timestamp:
- Feb 7, 2008, 5:27:54 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/action.php
r263 r295 21 21 if ($shoutbox == '') { 22 22 echo '<form action="action.php?shoutbox=1" method="post"> 23 U µivatel: ';23 U¾ivatel: '; 24 24 if (Licence(0)) echo '<b>'.$_SESSION['User'].'</b><br />'; else echo '<input type="text" name="user"><br />'; 25 25 echo 'Text zprávy: <input type="text" name="text" size="50"> 26 <input type="submit" value="Ulo µit"><br />26 <input type="submit" value="Ulo¾it"><br /> 27 27 </form>'; 28 28 } else { … … 30 30 $user = $_POST['user']; 31 31 $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM user WHERE user = '$user'")); 32 if ((!$Line) or ($user == '')) {} else die('Toto jméno je registrováno nemù µete psát za nìj. Pokud jste '.$user.' pak se pøihlaste.');32 if ((!$Line) or ($user == '')) {} else die('Toto jméno je registrováno nemù¾ete psát za nìj. Pokud jste '.$user.' pak se pøihlaste.'); 33 33 } 34 34 $text = $_POST['text']; 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!<br>Budete pøesmìrováni...'; 38 echo ' 39 <script type="text/javascript" language="JavaScript" charset="iso-8859-2"> 40 setTimeout("parent.location.href=\'index.php\'",1000) 41 </script>'; 42 38 43 } 39 44 }
Note:
See TracChangeset
for help on using the changeset viewer.