modules: Add iframe

resolves #8645
This commit is contained in:
Eric Lippmann 2015-10-01 23:07:34 +02:00
parent 61357da35c
commit fde7525850
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<?php
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
namespace Icinga\Module\Iframe\Controllers;
use Icinga\Web\Controller;
/**
* Display external or internal links within an iframe
*/
class IndexController extends Controller
{
/**
* Display iframe w/ the given URL
*/
public function indexAction()
{
$this->view->url = $this->params->getRequired('url');
}
}

View File

@ -0,0 +1 @@
<iframe src="<?= $this->escape($url) ?>" style="height:100%; width:99%;" frameborder="no"></iframe>

View File

@ -0,0 +1,3 @@
Module: iframe
Version: 2.0.0
Description: Display web sites within Icinga Web 2 via iframes