1 |
4
|
ryan
|
<?php
|
2 |
1376
|
FrankH
|
/**
|
3 |
|
|
*
|
4 |
|
|
* @category modules
|
5 |
|
|
* @package wrapper
|
6 |
|
|
* @author WebsiteBaker Project
|
7 |
|
|
* @copyright 2004-2009, Ryan Djurovich
|
8 |
|
|
* @copyright 2009-2011, Website Baker Org. e.V.
|
9 |
|
|
* @link http://www.websitebaker2.org/
|
10 |
|
|
* @license http://www.gnu.org/licenses/gpl.html
|
11 |
|
|
* @platform WebsiteBaker 2.8.x
|
12 |
|
|
* @requirements PHP 5.2.2 and higher
|
13 |
|
|
* @version $Id$
|
14 |
|
|
* @filesource $HeadURL: http://svn.websitebaker2.org/branches/2.8.x/wb/modules/wrapper/install.php $
|
15 |
|
|
* @lastmodified $Date: 2011-01-10 13:21:47 +0100 (Mo, 10 Jan 2011) $
|
16 |
|
|
*
|
17 |
|
|
*/
|
18 |
4
|
ryan
|
|
19 |
1420
|
Luisehahne
|
// Must include code to stop this file being access directly
|
20 |
|
|
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); }
|
21 |
|
|
|
22 |
591
|
doc
|
// check if module language file exists for the language set by the user (e.g. DE, EN)
|
23 |
|
|
if(!file_exists(WB_PATH .'/modules/wrapper/languages/'.LANGUAGE .'.php')) {
|
24 |
|
|
// no module language file exists for the language set by the user, include default module language file EN.php
|
25 |
|
|
require_once(WB_PATH .'/modules/wrapper/languages/EN.php');
|
26 |
|
|
} else {
|
27 |
|
|
// a module language file exists for the language defined by the user, load it
|
28 |
|
|
require_once(WB_PATH .'/modules/wrapper/languages/'.LANGUAGE .'.php');
|
29 |
|
|
}
|
30 |
|
|
|
31 |
|
|
// get url
|
32 |
4
|
ryan
|
$get_settings = $database->query("SELECT url,height FROM ".TABLE_PREFIX."mod_wrapper WHERE section_id = '$section_id'");
|
33 |
|
|
$fetch_settings = $get_settings->fetchRow();
|
34 |
106
|
stefan
|
$url = ($fetch_settings['url']);
|
35 |
4
|
ryan
|
|
36 |
|
|
?>
|
37 |
1029
|
Ruebenwurz
|
<iframe src="<?php echo $url; ?>" width="100%" height="<?php echo $fetch_settings['height']; ?>" frameborder="0" scrolling="auto">
|
38 |
591
|
doc
|
<?php echo $MOD_WRAPPER['NOTICE']; ?>
|
39 |
4
|
ryan
|
<a href="<?php echo $url; ?>" target="_blank"><?php echo $url; ?></a>
|
40 |
|
|
</iframe>
|