mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
parent
61357da35c
commit
fde7525850
20
modules/iframe/application/controllers/IndexController.php
Normal file
20
modules/iframe/application/controllers/IndexController.php
Normal 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');
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
<iframe src="<?= $this->escape($url) ?>" style="height:100%; width:99%;" frameborder="no"></iframe>
|
3
modules/iframe/moduel.info
Normal file
3
modules/iframe/moduel.info
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Module: iframe
|
||||||
|
Version: 2.0.0
|
||||||
|
Description: Display web sites within Icinga Web 2 via iframes
|
Loading…
x
Reference in New Issue
Block a user