- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
if($form_action=="register") {
if($coo_coo=="tootoo") {
if($myusername) {
if($mypassword) {
if($mypassword==$myrepeat) {
$uLength = strlen($myusername);
$pLength = strlen($mypassword);
if($uLength >= 3 && $uLength <= 30) {
$return_error = "";
} else {
$return_error = "Username must be between 3 and 30 characters.";
}
if($pLength >= 3 && $pLength <= 30) {
$return_error = "";
} else {
$return_error = "Password must be between 3 and 30 characters.";
}
if($return_error == "") {
if($db_found) {
$mypassword = md5($mypassword);
$SQL = "SELECT * FROM users WHERE username='$myusername'";
$result = mysql_query($SQL);
$num_rows = mysql_num_rows($result);
if($num_rows==1) {
$return_error = "Username already taken.";
} else {
if(!mysql_query("INSERT INTO users (id,date,ip,username,password) VALUES ('','$date','$ip','$myusername','$mypassword')")){
$return_error = "System error.";
} else {
$return_error = "Logged in.";
$_SESSION['user_session'] = $myusername;
header ("Location: index.php");
}
}
}
}
} else {
$return_error = "Passwords did not match";
}
} else {
$return_error = "No password was entered.";
}
} else {
$return_error = "No username was entered.";
}
} else {
$return_error = "Registrations are disabled.";
}
}
MouseZver 21.12.2018 17:43 # 0
roman-kashitsyn 21.12.2018 17:46 # +1
PHP ?
guest8 21.12.2018 18:52 # −999
crestoblyad 21.12.2018 20:02 # 0
guest8 21.12.2018 20:12 # −999
bormand 21.12.2018 20:14 # 0
yet_another_one_shit 21.12.2018 20:18 # 0
guest8 21.12.2018 21:00 # −999
bormand 21.12.2018 21:19 # 0
yet_another_one_shit 21.12.2018 22:43 # +1
roman-kashitsyn 21.12.2018 23:03 # 0
BoeHHblu_nemyx 06.07.2019 22:27 # 0
crestoblyad 21.12.2018 21:13 # 0
guest8 21.12.2018 21:14 # −999
crestoblyad 21.12.2018 21:18 # −1
guest8 21.12.2018 21:20 # −999
crestoblyad 22.12.2018 01:56 # −1
guest8 22.12.2018 02:33 # −999
crestoblyad 22.12.2018 14:25 # −1
T0PT 22.12.2018 15:05 # 0
crestoblyad 22.12.2018 15:08 # 0
Morgoth 22.12.2018 15:42 # 0
crestoblyad 22.12.2018 15:47 # 0
AnalBoy 22.12.2018 19:47 # −2
crestoblyad 22.12.2018 20:10 # −1
AnalBoy 23.12.2018 00:26 # −1
zhigolo 23.12.2018 00:29 # −2
crestoblyad 23.12.2018 01:01 # −1
AnalBoy 23.12.2018 01:20 # −2
crestoblyad 23.12.2018 01:26 # −1
MouseZver 21.12.2018 20:44 # −1