So I found Aquaflame CMS which I'm quite fond of and I was wondering if anyone could help with the registration section of it.
The current PHP code for the registration is set at
PHP Code:
mysql_select_db($server_adb,$connection_setup)or die(mysql_error());
$accinfoq = mysql_query("SELECT * FROM account WHERE username = '".$accountName."'");
$accinfo = mysql_num_rows($accinfoq);
if ($accinfo == 0)
{
$sha_pass_hash= sha1(strtoupper($accountName ) . ":" . strtoupper($accountPass));
$register_logon = mysql_query("INSERT INTO account (username,sha_pass_hash,email,last_ip,expansion) VALUES (UPPER('".$accountName."'), CONCAT('".$sha_pass_hash."'),'".$accountEmail."','".$ip."','3')")or die(mysql_error());
mysql_select_db($server_adb,$connection_setup)or die(mysql_error());
$accountinfo = mysql_fetch_assoc(mysql_query("SELECT * FROM account WHERE username = UPPER('".$accountName."')"));
mysql_select_db($server_db,$connection_setup)or die(mysql_error());
$register_cms = mysql_query("INSERT INTO users (id,class,firstName,lastName,registerIp,country,birth,quest1,ans1) VALUES ('".mysql_real_escape_string($accountinfo['id'])."','0','".$firstName."','".$lastName."','".$ip."','".$country."','".$dob."','".$question."',UPPER('".$answer."'))");
I don't see any issues with the current setup, so if anyone has any idea please help. Thanks