PageRenderTime 37ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/monitorremoto/view/setPTZcommand.php

https://gitlab.com/talueses/SIPVE
PHP | 63 lines | 22 code | 5 blank | 36 comment | 1 complexity | 118511cce7b84cdabe045e6b2d6172d3 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. require_once "../controller/monitorremoto.control.php"; // Class CONTROLLER
  40. $obj = new ControlMonitor();
  41. //echo "<div align='left'><pre>".print_r($_REQUEST)."</pre></div>";
  42. if ($_REQUEST["ptzAcc"]=="moveImg"){
  43. $_REQUEST["comando"] = base64_decode($_REQUEST["comando"]);
  44. $_REQUEST["comando"] .= "center=".$_REQUEST["x"].",".$_REQUEST["y"];
  45. $_REQUEST["comando"] = base64_encode($_REQUEST["comando"]);
  46. ?>
  47. <script type="text/javascript" language="javascript">
  48. setTimeout('window.parent.setPTZcommand(\'<?php echo base64_encode("/axis-cgi/com/ptz.cgi?query=position");?>\');',1000);
  49. </script>
  50. <?php
  51. }
  52. $param["ipv4"] = "150.186.195.66";
  53. $param["puerto"] = "80";
  54. $param["usuario"] = "";
  55. $param["clave"] = "";
  56. $param["comando"] = $_REQUEST["comando"];
  57. echo $obj->setPTZcommand($param);
  58. ?>