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