Revision 591
Added by doc almost 17 years ago
view.php | ||
---|---|---|
23 | 23 |
|
24 | 24 |
*/ |
25 | 25 |
|
26 |
// Get url |
|
26 |
// check if module language file exists for the language set by the user (e.g. DE, EN) |
|
27 |
if(!file_exists(WB_PATH .'/modules/wrapper/languages/'.LANGUAGE .'.php')) { |
|
28 |
// no module language file exists for the language set by the user, include default module language file EN.php |
|
29 |
require_once(WB_PATH .'/modules/wrapper/languages/EN.php'); |
|
30 |
} else { |
|
31 |
// a module language file exists for the language defined by the user, load it |
|
32 |
require_once(WB_PATH .'/modules/wrapper/languages/'.LANGUAGE .'.php'); |
|
33 |
} |
|
34 |
|
|
35 |
// get url |
|
27 | 36 |
$get_settings = $database->query("SELECT url,height FROM ".TABLE_PREFIX."mod_wrapper WHERE section_id = '$section_id'"); |
28 | 37 |
$fetch_settings = $get_settings->fetchRow(); |
29 | 38 |
$url = ($fetch_settings['url']); |
30 | 39 |
|
31 | 40 |
?> |
32 | 41 |
<iframe src="<?php echo $url; ?>" width="100%" height="<?php echo $fetch_settings['height']; ?>px" frameborder="0" scrolling="auto"> |
33 |
Your browser does not support inline frames.<br /> |
|
34 |
Click on the link below to visit the website that was meant to be shown here...<br /> |
|
42 |
<?php echo $MOD_WRAPPER['NOTICE']; ?> |
|
35 | 43 |
<a href="<?php echo $url; ?>" target="_blank"><?php echo $url; ?></a> |
36 | 44 |
</iframe> |
Also available in: Unified diff
added language support to all integrated modules (except for news and form module)