Ejemplo n.º 1
0
    //Si no es el index revisar si tiene el permiso adecuado para ingresar al Sistema
    if (!count($mv)) {
        header("Location:" . url_base() . $directory . "login/?u=" . $_SERVER['PHP_SELF']);
    } else {
        $mv = array_shift($mv);
        if ($mv['SubMenu']) {
            if (!count($submenu->verificar($url_separada, $_SESSION['Nivel']))) {
                header("Location:" . url_base() . $directory . "login/?u=" . $_SERVER['PHP_SELF']);
            }
        }
    }
}
/*Agenda de Actividades*/
include_once "class/agendaactividades.php";
$agendaac = new agendaactividades();
$cant = $agendaac->cantidadActividades();
$cantagendaactividades = array_shift($cant);
/*Fin de Cantidad de Actividades*/
/*Notitifaciones*/
include_once "class/notificaciones.php";
$notificacionesi = new notificaciones();
$noti1 = $notificacionesi->listarmensajes($_SESSION['Nivel'], 1);
$noti2 = $notificacionesi->listarmensajes($_SESSION['Nivel'], 2);
$noti3 = $notificacionesi->listarmensajes($_SESSION['Nivel'], 3);
/*Fin de Notificaciones*/
/*Codigo para ver qen que menu nos encontramos*/
$rurl = str_replace("index.php", "", $_SERVER['SCRIPT_NAME']);
$rurl = str_replace("/" . $directory, "", $rurl);
$rurl = explode("/", $rurl);
$rmenu = array_shift($rurl) . "/";
$rsubmenu = implode("/", $rurl);