Changeset 138 for trunk/registrace.php
- Timestamp:
- Mar 2, 2009, 8:36:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/registrace.php
r136 r138 13 13 $Team = $_POST['Team']; 14 14 $Language = $_POST['Language']; 15 16 if ($User == 'Addon') die('To jméno uživatele nemůžete použít'); 15 17 16 18 if($Pass == $Pass2) … … 20 22 { 21 23 $Address = $_SERVER['REMOTE_ADDR']; 22 $Database->SQLCommand('INSERT INTO `user` (`user` , `pass` , `LastIP` , `LastLogin` , `Email` , `Language` , `team` )23 VALUES ("'.$User.'", sha1("'.$Pass.'"), "'.$Address.'", NOW(), "'.$Email.'", '.$Language.', '.$Team.' )');24 $Database->SQLCommand('INSERT INTO `user` (`user` , `pass` , `LastIP` , `LastLogin` , `Email` , `Language` , `team` , `NeedUpdate` ) 25 VALUES ("'.$User.'", sha1("'.$Pass.'"), "'.$Address.'", NOW(), "'.$Email.'", '.$Language.', '.$Team.', 1)'); 24 26 // $Database->SQLCommand("INSERT INTO user () VALUES('$User','$Pass','0','$Addres',now(),'0','$Email')"); 25 27 echo('Registrace proběhla úspěšně.<br />');
Note:
See TracChangeset
for help on using the changeset viewer.