aboutsummaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/edit.php b/edit.php
index 3ddada5..4ff5b5e 100644
--- a/edit.php
+++ b/edit.php
@@ -1,7 +1,7 @@
<?php
session_start();
-if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) {
+if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_SESSION['admin']) && $_SESSION['admin'] == true) {
try {
$user = "yota_admin";
$password = "quaequaquagh6ahwoh6Chahx1EiFooGh";