aboutsummaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-04 00:16:49 +0200
committerMateja <mail@matejamaric.com>2020-10-04 00:16:49 +0200
commita3094caeb564821870870d57efb4a4fc3fd659e7 (patch)
tree9399de7d6fd48900d1d01573a81a286aa2fdfa74 /edit.php
parent1e44886d6f53d5bb9621211810fdea247f7fbd71 (diff)
downloadold-php-yota-a3094caeb564821870870d57efb4a4fc3fd659e7.tar.gz
old-php-yota-a3094caeb564821870870d57efb4a4fc3fd659e7.zip
A whole lot of shaking going on...
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";