2010-11-17 17:01:31 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
2011-03-22 23:11:57 +01:00
|
|
|
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
|
2010-11-17 17:01:31 +01:00
|
|
|
// Please see http://pandorafms.org for full contribution list
|
|
|
|
|
|
|
|
// This program is free software; you can redistribute it and/or
|
2011-03-23 Raul Mateos <raulofpandora@gmail.com>
* extensions/ssh_console.php, extensions/vnc_view.php,
extensions/update_manager.php, extensions/users_connected.php,
extensions/extension_uploader.php, extensions/insert_data.php,
extensions/module_groups.php, extensions/plugin_registration.php,
extensions/agent_modules.php, extensions/resource_registration.php,
extensions/resource_exportation.php, extensions/dbmanager.php,
extensions/pandora_logs.php, general/*.php, ajax.php,
operation/search_*.php, operation/menu.php, operation/extensions.php,
godmode/menu.php, godmode/extensions.php, godmode/admin_access_logs.php:
CReverted unwanted license changes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4126 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-23 17:13:28 +01:00
|
|
|
// modify it under the terms of the GNU General Public License
|
2011-03-22 23:11:57 +01:00
|
|
|
// as published by the Free Software Foundation; version 2
|
|
|
|
|
2010-11-17 17:01:31 +01:00
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-03-22 23:11:57 +01:00
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2010-11-17 17:01:31 +01:00
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
function vnc_view() {
|
|
|
|
$idAgent = (int)get_parameter('id_agente', 0);
|
|
|
|
$ipAgent = get_db_value('direccion', 'tagente', 'id_agente', $idAgent);
|
2011-01-30 14:34:11 +01:00
|
|
|
|
2011-03-22 23:11:57 +01:00
|
|
|
echo '<applet code="VncViewer.class" archive="extensions/vnc/VncViewer.jar" width="750" height="800">';
|
2011-01-30 14:34:11 +01:00
|
|
|
echo '<param name="Host" value="'.$ipAgent.'">';
|
|
|
|
echo '<param name="Port" value="5901">';
|
2011-03-22 23:11:57 +01:00
|
|
|
echo '<param name="Scaling factor" value="75">';
|
|
|
|
echo '</applet>';
|
2011-01-30 14:34:11 +01:00
|
|
|
|
|
|
|
/* <iframe width="95%" height="500px" src="http://<?php echo $ipAgent;?>:5801"></iframe> */
|
2010-11-17 17:01:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
add_extension_opemode_tab_agent('vnc_view', __('VNC view'), 'images/computer.png', 'vnc_view');
|
2011-01-26 22:08:40 +01:00
|
|
|
?>
|