| 1 | 2 | Manuela | <?php
 | 
      
        | 2 |  |  | /**
 | 
      
        | 3 |  |  |  *
 | 
      
        | 4 |  |  |  * @category        modules
 | 
      
        | 5 |  |  |  * @package         wysiwyg
 | 
      
        | 6 |  |  |  * @author          WebsiteBaker Project
 | 
      
        | 7 |  |  |  * @copyright       WebsiteBaker Org. e.V.
 | 
      
        | 8 |  |  |  * @link            http://websitebaker.org/
 | 
      
        | 9 |  |  |  * @license         http://www.gnu.org/licenses/gpl.html
 | 
      
        | 10 |  |  |  * @platform        WebsiteBaker 2.8.3
 | 
      
        | 11 |  |  |  * @requirements    PHP 5.3.6 and higher
 | 
      
        | 12 |  |  |  * @version         $Id$
 | 
      
        | 13 |  |  |  * @filesource      $HeadURL$
 | 
      
        | 14 |  |  |  * @lastmodified    $Date$
 | 
      
        | 15 |  |  |  *
 | 
      
        | 16 |  |  |  */
 | 
      
        | 17 |  |  | /* -------------------------------------------------------- */
 | 
      
        | 18 |  |  | // Must include code to stop this file being accessed directly
 | 
      
        | 19 |  |  | if(!defined('WB_PATH')) {
 | 
      
        | 20 |  |  |     require_once(dirname(dirname(dirname(__FILE__))).'/framework/globalExceptionHandler.php');
 | 
      
        | 21 |  |  |     throw new IllegalFileException();
 | 
      
        | 22 |  |  | } else {
 | 
      
        | 23 |  |  |     // Insert an extra row into the database
 | 
      
        | 24 |  |  |     $sql = 'INSERT INTO `'.TABLE_PREFIX.'mod_wysiwyg` '
 | 
      
        | 25 |  |  |          . 'SET `page_id`='.$database->escapeString($page_id).', '
 | 
      
        | 26 |  |  |          .     '`section_id`='.$database->escapeString($section_id).', '
 | 
      
        | 27 |  |  |          .     '`content`=\'\', '
 | 
      
        | 28 |  |  |          .     '`text`=\'\'';
 | 
      
        | 29 |  |  |     $database->query($sql);
 | 
      
        | 30 |  |  | }
 |