1
|
<?php
|
2
|
/**
|
3
|
*
|
4
|
* @category modules
|
5
|
* @package wysiwyg
|
6
|
* @author WebsiteBaker Project
|
7
|
* @copyright 2009-2012, 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: view.php 1576 2012-01-16 17:29:11Z darkviper $
|
13
|
* @filesource $HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/modules/wysiwyg/view.php $
|
14
|
* @lastmodified $Date: 2012-01-16 18:29:11 +0100 (Mon, 16 Jan 2012) $
|
15
|
*
|
16
|
*/
|
17
|
/* -------------------------------------------------------- */
|
18
|
// Must include code to stop this file being accessed directly
|
19
|
if(!defined('WB_PATH')) {
|
20
|
require_once(dirname(dirname(__FILE__)).'/framework/globalExceptionHandler.php');
|
21
|
throw new IllegalFileException();
|
22
|
}
|
23
|
/* -------------------------------------------------------- */
|
24
|
$MEDIA_URL = WB_URL.MEDIA_DIRECTORY;
|
25
|
// Get content
|
26
|
$content = '';
|
27
|
$sql = 'SELECT `content` FROM `'.TABLE_PREFIX.'mod_wysiwyg` WHERE `section_id`='.(int)$section_id;
|
28
|
if( ($content = $database->get_one($sql)) ) {
|
29
|
$content = str_replace('{SYSVAR:MEDIA_REL}',$MEDIA_REL, $content );
|
30
|
}
|
31
|
echo $content;
|