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