PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/videovigilancia/view/grabadorDetenerServidor.php

https://gitlab.com/talueses/SIPVE
PHP | 114 lines | 63 code | 7 blank | 44 comment | 3 complexity | 35629f51178328277517d06e6279c2bb MD5 | raw file
  1. <?php
  2. /*******************************************************************************\
  3. * @copyright
  4. *
  5. * === SIPve ===
  6. * Sistema Integrado de Protección con capacidades de Videovigilancia
  7. * Control de Acceso y Carnetización para el resguardo físico de instalaciones.
  8. *
  9. * Copyright (C) 2012 Fundación Centro Nacional de Innovación Tecnológica, Cenit.
  10. * Dirección de Investigación, Desarrollo e Innovación.
  11. * Gilda Ramos.
  12. * José Medina.
  13. * Héctor Reverón.
  14. * David Concepción.
  15. * Ronald Delgado.
  16. * Jenner Fuentes.
  17. *
  18. * This program is free software: you can redistribute it and/or modify
  19. * it under the terms of the GNU General Public License as published by
  20. * the Free Software Foundation, either VERSION 3 of the License, or
  21. * (at your option) any later version.
  22. *
  23. * This program is distributed in the hope that it will be useful,
  24. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  25. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26. * GNU General Public License for more details.
  27. *
  28. * You should have received a copy of the GNU General Public License
  29. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  30. *
  31. * Para mas información visite
  32. * @link http://repositorio.softwarelibre.gob.ve/ - RNA
  33. * @link http://sourceforge.net/projects/sipve/ - SourceForge
  34. * @link https://gitlab.com/talueses/SIPVE - Gitlab Repositorio.
  35. *
  36. \*******************************************************************************/
  37. ?>
  38. <?php
  39. /*
  40. * Autor: David Concepcion 08-09-2010 CENIT
  41. * Archivo de accion detener el servidor de video
  42. *
  43. * Modificado por David Concepcion 07-10-2010 CENIT
  44. * Mensaje Cargando...
  45. */
  46. session_start(); // start up your PHP session!
  47. //echo "<div align='left'><pre>".print_r($_POST)."</pre></div>";
  48. if(!isset($_SESSION['usuario'])){
  49. echo "Sesión vencida. Recargue la página para iniciar la sesión.";
  50. return false;
  51. }
  52. header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
  53. header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
  54. require_once "../controller/videovigilancia_servidor_control.php";
  55. $servidor = new ControlServidor();
  56. $exito = $servidor->detenerServidor();
  57. ?>
  58. <html>
  59. <head>
  60. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  61. <title>Eliminar Servidores Grabadores de Video</title>
  62. <link href="../../inicio/css/comunes.css" rel="stylesheet" type="text/css" />
  63. <link type="text/css" href="../../inicio/css/jquery-ui.css" rel="stylesheet" />
  64. <script type="text/javascript" src="../../inicio/js/jquery.js"></script>
  65. <script type="text/javascript" src="../../inicio/js/jquery-ui.min.js"></script>
  66. <style type="text/css">
  67. #contenido{
  68. float:left;
  69. width:99%;
  70. height:95%;
  71. padding: 2px;
  72. border: #aaaaaa solid 1px;
  73. overflow-x:hidden
  74. width:95%;
  75. background:#fff;
  76. -moz-border-radius: 6px;
  77. -webkit-border-radius: 6px;
  78. border-radius: 6px;
  79. }
  80. </style>
  81. </head>
  82. <body onload="$('#cargando',parent.document).fadeOut('slow');">
  83. <div id="contenido" align="center">
  84. <br>&nbsp;<br>&nbsp;
  85. <div id="divmensaje" style="width:99%;">
  86. <?php
  87. $str = "<div class=\"ui-widget\">";
  88. if(!$exito){
  89. $str .= " <div class=\"ui-state-error ui-corner-all\" style=\"margin-top: 20px; padding: 0 .7em;\">";
  90. $str .= " <p>";
  91. $str .= " <span class=\"ui-icon ui-icon-alert\" style=\"float: left; margin-right: .3em;\"></span>";
  92. }
  93. if($exito){
  94. $str .= " <div class=\"ui-state-highlight ui-corner-all\" style=\"margin-top: 20px; padding: 0 .7em;\">";
  95. $str .= " <p>";
  96. $str .= " <span class=\"ui-icon ui-icon-info\" style=\"float: left; margin-right: .3em;\"></span>";
  97. }
  98. $str .= " ".$servidor->mensaje;
  99. $str .= " </p>";
  100. $str .= " </div>";
  101. $str .= "</div>";
  102. echo $str;
  103. ?>
  104. </div>
  105. </div>
  106. </body>
  107. </html>