This commit is contained in:
Andreas 2019-09-17 15:13:28 +02:00
parent fca38ae049
commit e9141f676b
2 changed files with 4 additions and 2 deletions

View File

@ -5,5 +5,7 @@ require_once('./controller/UserSession.php');
session_start(); session_start();
$mvcController = new MVCController(); $mvcController = new MVCController();
$mvcController->executeModel(); $mvcController->executeModel();
include_once("./view/content_pagetemplate.php"); if(!isset($_POST['admin'])){
include_once("./view/content_pagetemplate.php");
}
?> ?>

View File

@ -1,5 +1,5 @@
<?php <?php
echo('test3'); echo($_POST['auth']);
if(isset($_POST['auth'])){ if(isset($_POST['auth'])){
if($_POST['auth'] == getenv('ADMIN_ACTION_KEY')){ if($_POST['auth'] == getenv('ADMIN_ACTION_KEY')){
echo('test2'); echo('test2');