everything should be db.inc not hardcoded!

This commit is contained in:
Thies Mueller
2021-01-10 12:17:26 +01:00
parent d900b2a57f
commit cbebd4339c
8 changed files with 8 additions and 8 deletions

View File

@@ -7,7 +7,7 @@
</head>
<body>
<?php
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');
include 'db.inc.php';
if(!isset($_GET['userid']) || !isset($_GET['code'])) {
die('<div class="alert alert-warning" role="alert">No code delivered. nothing to do here.</div>');