added dummyuser
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
<?php 
 | 
			
		||||
session_start();
 | 
			
		||||
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'root', '');
 | 
			
		||||
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');
 | 
			
		||||
 
 | 
			
		||||
if(isset($_GET['login'])) {
 | 
			
		||||
    $email = $_POST['email'];
 | 
			
		||||
@@ -43,4 +43,4 @@ Dein Passwort:<br>
 | 
			
		||||
<input type="submit" value="GO">
 | 
			
		||||
</form> 
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
</html>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<?php 
 | 
			
		||||
session_start();
 | 
			
		||||
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'root', '');
 | 
			
		||||
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');
 | 
			
		||||
?>
 | 
			
		||||
<!DOCTYPE html> 
 | 
			
		||||
<html> 
 | 
			
		||||
@@ -79,4 +79,4 @@ Password (aganin):<br>
 | 
			
		||||
?>
 | 
			
		||||
 
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
</html>
 | 
			
		||||
 
 | 
			
		||||
@@ -7,6 +7,6 @@ if(!isset($_SESSION['userid'])) {
 | 
			
		||||
$userid = $_SESSION['userid'];
 | 
			
		||||
 
 | 
			
		||||
echo "Hi ".$userid;
 | 
			
		||||
echo "<br/>"
 | 
			
		||||
echo "This is secure now!"
 | 
			
		||||
?>
 | 
			
		||||
echo "<br/>";
 | 
			
		||||
echo "This is secure now!";
 | 
			
		||||
?>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user