different changes

- change from $ _REQUEST to $ _POST / $ _ GET
- Session messages are managed globally by template
This commit is contained in:
Daniel Muñoz Garcia
2021-04-14 11:38:51 +02:00
committed by GitHub
parent 5ad88e6e35
commit 4968bc8e25
7 changed files with 95 additions and 63 deletions

View File

@ -6,8 +6,8 @@
require_once('../panel_admin/panelAdmin.php');
$template = new Template();
if(isset($_REQUEST['state'])) {
$panel = new Panel($_REQUEST['state']);
if(isset($_GET['state'])) {
$panel = new Panel($_GET['state']);
}
else {
$panel = new Panel('');
@ -66,6 +66,7 @@
<div class="column side"></div>
<div class="column middle">
<?php
$template->print_msg();
$panel->showPanel();
?>
</div>