From 4bd48d769dd9b8e81b4b0a4a1514023c06549782 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 30 Apr 2021 10:16:44 +0300 Subject: Remove debug print_r --- templates/panel.php | 2 -- user/register.php | 2 -- user/update.php | 2 -- 3 files changed, 6 deletions(-) diff --git a/templates/panel.php b/templates/panel.php index 5c090c8..fa43acf 100644 --- a/templates/panel.php +++ b/templates/panel.php @@ -24,7 +24,5 @@ if (isset($_SESSION['user_id']) && $_SESSION['user_id'] != "") { -

_GET:

-

_SESSION:


diff --git a/user/register.php b/user/register.php index fb9ed09..6955d05 100644 --- a/user/register.php +++ b/user/register.php @@ -4,8 +4,6 @@ require_once(TEMPLATES_PATH . "/header.php"); require_once(TEMPLATES_PATH . "/panel.php"); require_once(LIBRARY_PATH . "/functions.php"); -print_r($_POST); - $password = password_hash($_POST['password'], PASSWORD_ARGON2I); $conn = new PDO($config['db']['dsn'], $config['db']['username'], $config['db']['password']); diff --git a/user/update.php b/user/update.php index 1fe291a..b3a21f8 100644 --- a/user/update.php +++ b/user/update.php @@ -4,8 +4,6 @@ require_once(TEMPLATES_PATH . "/header.php"); require_once(TEMPLATES_PATH . "/panel.php"); require_once(LIBRARY_PATH . "/functions.php"); -print_r($_POST); - if (isset($_SESSION['user_id']) && $_SESSION['user_id'] != "") { $conn = new PDO($config['db']['dsn'], $config['db']['username'], $config['db']['password']); $query = $conn->prepare("UPDATE users SET username=:username, email=:email WHERE id={$_SESSION['user_id']}"); -- cgit v1.2.1