/videovigilancia/view/grabadorDetenerServidor.php
PHP | 114 lines | 63 code | 7 blank | 44 comment | 3 complexity | 35629f51178328277517d06e6279c2bb MD5 | raw file
- <?php
- /*******************************************************************************\
- * @copyright
- *
- * === SIPve ===
- * Sistema Integrado de Protección con capacidades de Videovigilancia
- * Control de Acceso y Carnetización para el resguardo físico de instalaciones.
- *
- * Copyright (C) 2012 Fundación Centro Nacional de Innovación Tecnológica, Cenit.
- * Dirección de Investigación, Desarrollo e Innovación.
- * Gilda Ramos.
- * José Medina.
- * Héctor Reverón.
- * David Concepción.
- * Ronald Delgado.
- * Jenner Fuentes.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either VERSION 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- * Para mas información visite
- * @link http://repositorio.softwarelibre.gob.ve/ - RNA
- * @link http://sourceforge.net/projects/sipve/ - SourceForge
- * @link https://gitlab.com/talueses/SIPVE - Gitlab Repositorio.
- *
- \*******************************************************************************/
- ?>
- <?php
- /*
- * Autor: David Concepcion 08-09-2010 CENIT
- * Archivo de accion detener el servidor de video
- *
- * Modificado por David Concepcion 07-10-2010 CENIT
- * Mensaje Cargando...
- */
- session_start(); // start up your PHP session!
- //echo "<div align='left'><pre>".print_r($_POST)."</pre></div>";
- if(!isset($_SESSION['usuario'])){
- echo "Sesión vencida. Recargue la página para iniciar la sesión.";
- return false;
- }
- header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
- header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
- require_once "../controller/videovigilancia_servidor_control.php";
- $servidor = new ControlServidor();
- $exito = $servidor->detenerServidor();
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Eliminar Servidores Grabadores de Video</title>
- <link href="../../inicio/css/comunes.css" rel="stylesheet" type="text/css" />
- <link type="text/css" href="../../inicio/css/jquery-ui.css" rel="stylesheet" />
- <script type="text/javascript" src="../../inicio/js/jquery.js"></script>
- <script type="text/javascript" src="../../inicio/js/jquery-ui.min.js"></script>
- <style type="text/css">
- #contenido{
- float:left;
- width:99%;
- height:95%;
- padding: 2px;
- border: #aaaaaa solid 1px;
- overflow-x:hidden
- width:95%;
- background:#fff;
- -moz-border-radius: 6px;
- -webkit-border-radius: 6px;
- border-radius: 6px;
- }
- </style>
- </head>
- <body onload="$('#cargando',parent.document).fadeOut('slow');">
- <div id="contenido" align="center">
- <br> <br>
- <div id="divmensaje" style="width:99%;">
- <?php
- $str = "<div class=\"ui-widget\">";
- if(!$exito){
- $str .= " <div class=\"ui-state-error ui-corner-all\" style=\"margin-top: 20px; padding: 0 .7em;\">";
- $str .= " <p>";
- $str .= " <span class=\"ui-icon ui-icon-alert\" style=\"float: left; margin-right: .3em;\"></span>";
- }
- if($exito){
- $str .= " <div class=\"ui-state-highlight ui-corner-all\" style=\"margin-top: 20px; padding: 0 .7em;\">";
- $str .= " <p>";
- $str .= " <span class=\"ui-icon ui-icon-info\" style=\"float: left; margin-right: .3em;\"></span>";
- }
- $str .= " ".$servidor->mensaje;
- $str .= " </p>";
- $str .= " </div>";
- $str .= "</div>";
- echo $str;
- ?>
- </div>
- </div>
- </body>
- </html>