Add files via upload
This commit is contained in:
parent
4c3fccca92
commit
ac2b2cfee0
@ -204,6 +204,7 @@
|
||||
default: $menus = array(); break;
|
||||
}
|
||||
|
||||
if($_SESSION["rol"] === $panel){
|
||||
echo"<div class='header sub'>
|
||||
<div class='menu'>
|
||||
<nav>";
|
||||
@ -215,6 +216,7 @@
|
||||
</div>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Print Films Cards:
|
||||
function print_fimls(){
|
||||
|
@ -39,7 +39,7 @@
|
||||
<div class="row">
|
||||
<!-- Panel Menu -->
|
||||
<?php
|
||||
$template->print_panelMenu("admin");
|
||||
$template->print_panelMenu($_SESSION["rol"]);
|
||||
?>
|
||||
<!-- Contents -->
|
||||
<div class="row">
|
||||
|
@ -33,7 +33,7 @@
|
||||
<div class="row">
|
||||
<!-- Panel Menu -->
|
||||
<?php
|
||||
$template->print_panelMenu("manager");
|
||||
$template->print_panelMenu($_SESSION["rol"]);
|
||||
?>
|
||||
<!--Contents -->
|
||||
<div class="row">
|
||||
|
@ -6,7 +6,7 @@
|
||||
//Controller file:
|
||||
include_once('panelUser.php');
|
||||
|
||||
if($_SESSION["login"]){
|
||||
if($_SESSION["login"] && $_SESSION["rol"] === "user"){
|
||||
switch($_GET["option"]){
|
||||
case "manage_profile":
|
||||
$reply = UserPanel::manage();
|
||||
@ -63,7 +63,7 @@
|
||||
<div class="row">
|
||||
<!-- Panel Menu -->
|
||||
<?php
|
||||
$template->print_panelMenu("user");
|
||||
$template->print_panelMenu($_SESSION["rol"]);
|
||||
?>
|
||||
<!-- Contents -->
|
||||
<div class="row">
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once('../assets/php/common/user_dto.php');
|
||||
require_once($prefix.'assets/php/common/user_dto.php');
|
||||
|
||||
class UserPanel {
|
||||
//Atributes:
|
||||
|
Loading…
Reference in New Issue
Block a user