* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License in GPL.txt for more details. */ define('IN_PONEPASTE', 1); require_once(__DIR__ . '/../includes/common.php'); $row = $conn->querySelectOne('SELECT user, pass FROM admin LIMIT 1'); $adminid = $row['user']; $password = $row['pass']; if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($adminid === trim($_POST['username']) && password_verify($_POST['password'], $password)) { $_SESSION['login'] = true; header("Location: dashboard.php"); exit(); } else { $msg = '
Wrong User/Password
'; } } ?> Paste - Login

Paste