<?php

// Egilea : Aitor Arregi

// 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; version 2

// 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.

function http_view() {
	$idAgent = (int)get_parameter('id_agente', 0);
	$ipAgent = db_get_value('direccion', 'tagente', 'id_agente', $idAgent);

	echo "<iframe src='http://$ipAgent' width='100%' height='650'>";
	echo "</iframe>";
}
extensions_add_opemode_tab_agent('http_view',__('HTTP'),'images/http_view.png','http_view');
?>
