<style type="text/css">a[data-mtli~="mtli_filesize162kB"]:after {content:" (1.62 kB)"}</style><style type="text/css">a[data-mtli~="mtli_filesize162kB"]:after {content:" (1.62 kB)"}</style>{"id":630,"date":"2017-12-13T16:53:08","date_gmt":"2017-12-13T16:53:08","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=630"},"modified":"2017-12-13T16:56:47","modified_gmt":"2017-12-13T16:56:47","slug":"http-view","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/http-view\/","title":{"rendered":"HTTP view"},"content":{"rendered":"<h2>Module data<\/h2>\n<p>Permite conectarse al agente, desde la vista detalla del agente, por HTTP. Por ejemplo, si tenemos, un gateway de voz o un PBX, y falla alg\u00fan m\u00f3dulo, nos podr\u00edas conectar a \u00e9l directamente desde la consola.<\/p>\n<p>Es una modificaci\u00f3n de la extensi\u00f3n, VNC, pero para conectarse por HTTP.<\/p>\n<pre>&lt;?php\u00a0\r\n\r\n\/\/ Egilea : Aitor Arregi\u00a0\r\n\r\n\/\/ This program is free software; you can redistribute it and\/or\u00a0\r\n\/\/ modify it under the terms of the GNU General Public License\u00a0\r\n\/\/ as published by the Free Software Foundation; version 2\u00a0\r\n\r\n\/\/ This program is distributed in the hope that it will be useful,\u00a0\r\n\/\/ but WITHOUT ANY WARRANTY; without even the implied warranty of\u00a0\r\n\/\/ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\u00a0\r\n\/\/ GNU General Public License for more details.\u00a0\r\n\r\nfunction http_view() {\u00a0\r\n$idAgent = (int)get_parameter('id_agente', 0);\u00a0\r\n$ipAgent = db_get_value('direccion', 'tagente', 'id_agente', $idAgent);\u00a0\r\n\r\necho \"&lt;iframe src='http:\/\/$ipAgent' width='100%' height='650'&gt;\";\u00a0\r\necho \"&lt;\/iframe&gt;\";\u00a0\r\n}\u00a0\r\nextensions_add_opemode_tab_agent('http_view',__('HTTP'),'images\/http_view.png','http_view');\u00a0\r\n?&gt;<\/pre>\n<h2>Files:<\/h2>\n<p><a href=\"\/library\/files_repository\/1328083873.aarregi.http_view.zip\" class=\"mtli_attachment mtli_zip\" data-mtli=\"mtli_filesize162kB\" target=\"_blank\" rel=\"noopener\">http_view.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Module data Permite conectarse al agente, desde la vista detalla del agente, por HTTP. Por ejemplo, si tenemos, un gateway de voz o un PBX, y falla alg\u00fan m\u00f3dulo, nos podr\u00edas conectar a \u00e9l directamente desde la consola. Es una modificaci\u00f3n de la extensi\u00f3n, VNC, pero para conectarse por HTTP. &lt;?php\u00a0 \/\/ Egilea : Aitor [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[4],"tags":[138,137],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/630"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=630"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/630\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}