Super Secure Login Script – PHP + MySQL +

Super Secure Login Script – PHP + MySQL +
Posted on януари 7th, 2015

Hello guys,
i made this Super Secure Login Script – PHP MySQL script for CodeCanyon, but unfortunately they decided to reject it, because „this type of scripts are flooded the net“.

Well, I don’t think so but this doesn’t matter. So i decided to share the „Super Secure Login Script – PHP + MySQL“ with you absolutely for free 🙂

Here is the Super Secure Login Script – PHP + MySQL in files:

Super Secure Login Script – PHP MySQL :: constants.php


This file includes every main variables needed by the script.

Super Secure Login Script – PHP + MySQL :: db_connect.php


Here is the connection to the MySQL

Super Secure Login Script – PHP + MySQL :: index.php









Super Secure Login Script - PHP MySQL


Wrong user name or/and password";
}
elseif ($_GET['l'] == '1'){
echo "
You are not loggedin
"; } ?>

This is the main login page for the user.

Super Secure Login Script – PHP MySQL :: secured_page.php

 '$time'");
	$num_rows = mysql_num_rows($result);
	if ($num_rows == 0) {
		header("Location: index.php?l=1"); // Redirect to the index.php and print message "You are not loggedin"
		die();
	}

}
else {

	header("Location: index.php?l=2"); // Redirect to the index.php and print message "You are not loggedin"
	die();
}

?>

....................... Secured page content .......................

This is the page that you secure with login.

Super Secure Login Script – PHP + MySQL :: check_login.php


Let’s check if the user has right user and pass.

Super Secure Login Script – PHP MySQL :: add_user_to_db.php

alert('SUCCSESS: User added!')";
}
else {
			echo "";	
}

		//