42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
|
|
<?php
|
|||
|
|
include("seguridad.php");
|
|||
|
|
include("functions.php");
|
|||
|
|
|
|||
|
|
/*
|
|||
|
|
* S<EFBFBD>lo los administrador tablas -> 2
|
|||
|
|
*/
|
|||
|
|
if(!$usuario->tieneRol("2")){
|
|||
|
|
header("Location: aplicacion.php?e=permiso");
|
|||
|
|
exit;
|
|||
|
|
}
|
|||
|
|
include_once("html/cabecera.php");
|
|||
|
|
include_once("Objects/Administracion.php");
|
|||
|
|
if($_GET['action']=="mantener"){
|
|||
|
|
try{
|
|||
|
|
$admin=new Administracion($usuario,$locale);
|
|||
|
|
$acciones=$admin->mantenSistema();
|
|||
|
|
$tipo="ok";
|
|||
|
|
foreach($acciones as $accion){
|
|||
|
|
$msg.=$accion."<br />";
|
|||
|
|
}
|
|||
|
|
} catch(Exception $e){
|
|||
|
|
$msg=$e->getMessage();
|
|||
|
|
$tipo="error";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
?>
|
|||
|
|
<h2><?php echo $locale['2315']; ?></h2>
|
|||
|
|
<?php if($msg!=""){
|
|||
|
|
echo "<div class=\"aviso ".$tipo."\">".$msg."</div>";
|
|||
|
|
} ?>
|
|||
|
|
|
|||
|
|
El mantenimiento de la base de datos supone:<ul>
|
|||
|
|
<li>Eliminación de vacaciones no aprobadas cuya modificación sea de más de 7 días</li>
|
|||
|
|
<li>Eliminación de permisos no aprobados cuya modificación sea de más de 7 días</li>
|
|||
|
|
</ul>
|
|||
|
|
<a href="mantenimientoSistema.php?action=mantener" class="menuOption" style="color:#000000">Realizar mantenimiento</a>
|
|||
|
|
<?php
|
|||
|
|
|
|||
|
|
include_once("html/pie.php");
|
|||
|
|
?>
|