| 1 |
1420
|
Luisehahne
|
<?php
|
| 2 |
|
|
/**
|
| 3 |
|
|
*
|
| 4 |
|
|
* @category modules
|
| 5 |
|
|
* @package wysiwyg
|
| 6 |
|
|
* @author WebsiteBaker Project
|
| 7 |
1576
|
darkviper
|
* @copyright 2009-2012, Website Baker Org. e.V.
|
| 8 |
1420
|
Luisehahne
|
* @link http://www.websitebaker2.org/
|
| 9 |
|
|
* @license http://www.gnu.org/licenses/gpl.html
|
| 10 |
1652
|
Luisehahne
|
* @platform WebsiteBaker 2.8.3
|
| 11 |
1420
|
Luisehahne
|
* @requirements PHP 5.2.2 and higher
|
| 12 |
|
|
* @version $Id$
|
| 13 |
|
|
* @filesource $HeadURL$
|
| 14 |
|
|
* @lastmodified $Date$
|
| 15 |
|
|
*
|
| 16 |
|
|
*/
|
| 17 |
1538
|
Luisehahne
|
/* -------------------------------------------------------- */
|
| 18 |
1576
|
darkviper
|
// Must include code to stop this file being accessed directly
|
| 19 |
|
|
if(!defined('WB_PATH')) {
|
| 20 |
1652
|
Luisehahne
|
require_once(dirname(dirname(dirname(__FILE__))).'/framework/globalExceptionHandler.php');
|
| 21 |
1576
|
darkviper
|
throw new IllegalFileException();
|
| 22 |
1538
|
Luisehahne
|
}
|
| 23 |
|
|
/* -------------------------------------------------------- */
|
| 24 |
2058
|
darkviper
|
//$sMediaUrl = WB_URL.MEDIA_DIRECTORY;
|
| 25 |
1581
|
darkviper
|
// Get content
|
| 26 |
2058
|
darkviper
|
$sql = 'SELECT `content` FROM `'.TABLE_PREFIX.'mod_wysiwyg` '
|
| 27 |
|
|
. 'WHERE `section_id`='.(int)$section_id;
|
| 28 |
2007
|
darkviper
|
if(($content = $database->get_one($sql))) {
|
| 29 |
2058
|
darkviper
|
echo $content;
|
| 30 |
|
|
} else {
|
| 31 |
|
|
echo '';
|
| 32 |
1576
|
darkviper
|
}
|