You must complete all of the fields, please Go Back and complete all of the fields.
"; exit; } $pass_len = password_check($_SESSION[min_pass_len], $_SESSION[max_pass_len], $_POST[password]); if ($pass_len == "no") { echo "You must use a password between $_SESSION[min_pass_len] and $_SESSION[max_pass_len] characters in length, please Go Back and try again.
"; exit; } //make connection to dbase $connection = @mysql_connect($_SESSION[dbase_server], $_SESSION[dbase_username], $_SESSION[dbase_password]) or die(mysql_error()); $db = @mysql_select_db($_SESSION[dbase_name],$connection) or die(mysql_error()); $check_name = "SELECT * FROM $_SESSION[table_name] WHERE username = '$_POST[user_name]'"; $name_result = @mysql_query($check_name,$connection) or die(mysql_error()); //get the number of rows in the result set $num = mysql_num_rows($name_result); if ($num != 0) { echo "That username already exists. Please Go Back and enter a different username.
"; exit; } $date = last_login(); //enter information into table $sql = "INSERT INTO $_SESSION[table_name] VALUES ('$_POST[first_name]', '$_POST[last_name]', '$_POST[user_name]', password('$_POST[password]'), 'Administrators', '', '', '0', '$_SESSION[admin_email]', '$_POST[redirect_to]', '1', '$date')"; $result = @mysql_query($sql,$connection) or die(mysql_error()); if($result) { ?>The last step is to create a file named config.php.
";
echo "Copy and paste the below into this file and upload to $_SESSION[install_dir].
For a sample of the header of each secure page, please Click Here
"; echo "Should you have any difficulties, please visit the Help Forum:";
echo "
MPDolan.com Help Forum
Please login as with the Adminstrator's Account to complete testing.";
echo "
Login Now