
Originally Posted by
(Basic)
Ignoring above arguments, if you need GFX I can help.
I'm still a noob, but I know my way around Photoshop.
PM me.
1.) Not an argument, his thing is very useless and insecure, we tried to help but he told me to post something more useful.
2.) If he had a lower post-count and less rep, people would see how shitty his code is (which apparently hasn't improved since his first cms release in July, where he claims to have "first started coding php:"
PHP Code:
<center>
<?php
include('config.php');
include_once('functions.php');
if(isset($_POST['register'])){
$username = $_POST['username'];
$password = $_POST['password1'];
$confirm_password = $_POST['password2'];
$email = $_POST['email1'];
$confirm_email = $_POST['email2'];
$pin = $_POST['pin1'];
$confirm_pin = $_POST['pin2'];
if ((preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬-]/', $username)) || (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬-]/', $password))){
echo '<font color="red">Special characters not allowed in account name or password.</font>';
exit();
}
if ((preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬-]/', $pin)) || (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬-]/', $confirm_pin))){
echo '<font color="red">Special characters not allowed in PIN.</font>';
exit();
}
echo '<p><b>-- Result --</b></p>';
if((strlen($username) < "4") || (strlen($username) > "15")){
echo '<font color="red">Account name length must be between 4 and 15 characters.</font>';
exit();
} else if($password != $confirm_password){
echo '<font color="red">Your passwords do not match.</font>';
exit();
} else if((strlen($password) < "4") || (strlen($password) > "15")){
echo '<font color="red">Your password must be between 4 and 15 characters long.</font>';
exit();
} else if($email == NULL){
echo '<font color="red">Please enter an email address.</font>';
exit();
} else if($email != $confirm_email){
echo '<font color="red">Email address does not match.</font>';
exit();
} else if($pin == NULL){
echo '<font color="red">Please enter a security PIN.</font>';
exit();
} else if($pin != $confirm_pin){
echo '<font color="red">Your PIN numbers do not match.</font>';
exit();
} else if(strlen($pin) != "4"){
echo '<font color="red">Your PIN must be 4 numbers.</font>';
exit();
} else {
doAccountDB();
$query = "INSERT INTO t_account (name, pwd, pw2, email, pin) VALUES ('$username', '".md5($password)."', '$confirm_password', '$email', '$pin')";
$res = mysqli_query($mysqli_account, $query) or die(mysqli_error($mysqli_account));
if($res == true){
echo '<font color="green">Account created.</font>';
}
mysqli_close($mysqli_account);
}
}
?>
</center>
If you can't find anything wrong with that code, you cannot code.
3.) Why don't you just help with a real CMS that's actually open source and secure?
Edit: This is not a flame war, it's an eye-opener for a very arrogant person with too many noobs bowing down for nothing.
Want something more useful Ron?
Accept Constructive Criticism. The First Time.