From 18a067a902ec93d1ff1149e70cc928cf7709bf61 Mon Sep 17 00:00:00 2001 From: Elyrith Date: Sat, 10 Aug 2013 01:38:23 -0400 Subject: [PATCH] All user/ pages require authentication against database users. --- includes/login.inc | 13 +++++++------ user/edit.php | 1 + user/editpost.php | 2 ++ user/index.php | 1 + user/updatepost.php | 1 + 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/includes/login.inc b/includes/login.inc index 8e62561..8a527c1 100644 --- a/includes/login.inc +++ b/includes/login.inc @@ -1,9 +1,6 @@ diff --git a/user/edit.php b/user/edit.php index 5a068e9..7a1a26a 100644 --- a/user/edit.php +++ b/user/edit.php @@ -1,6 +1,7 @@

Find post to edit

diff --git a/user/editpost.php b/user/editpost.php index 9d33e70..45447fd 100644 --- a/user/editpost.php +++ b/user/editpost.php @@ -6,6 +6,8 @@ require "../includes/dbconnect.php"; require "../includes/htmlcode.php"; start_html("Edit post"); +include "../includes/login.inc"; + print "

Edit post

"; $query = "SELECT * FROM blog WHERE date='$_GET[date]' AND title='$_GET[title]'"; diff --git a/user/index.php b/user/index.php index 30b3fa7..14877eb 100644 --- a/user/index.php +++ b/user/index.php @@ -1,6 +1,7 @@

simplog user interface

diff --git a/user/updatepost.php b/user/updatepost.php index 6c79e1e..e4748aa 100644 --- a/user/updatepost.php +++ b/user/updatepost.php @@ -6,6 +6,7 @@ require "../includes/dbconnect.php"; require "../includes/htmlcode.php"; start_html("Post updated"); +include "../includes/login.inc"; $query = "UPDATE blog SET date='$_POST[date]', title='$_POST[title]',