Revision 36
Added by stefan about 19 years ago
modify.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
// $Id: modify.php,v 1.3 2005/06/21 09:11:10 rdjurovich Exp $
|
|
3 |
// $Id$ |
|
4 | 4 |
|
5 | 5 |
/* |
6 | 6 |
|
... | ... | |
29 | 29 |
$query = "SELECT content FROM ".TABLE_PREFIX."mod_wysiwyg WHERE section_id = '$section_id'"; |
30 | 30 |
$get_content = $database->query($query); |
31 | 31 |
$content = $get_content->fetchRow(); |
32 |
$content = stripslashes(htmlspecialchars($content['content'])); |
|
32 |
$content = $admin->stripslashes(htmlspecialchars($content['content']));
|
|
33 | 33 |
|
34 | 34 |
// Load HTMLArea |
35 | 35 |
if(!isset($loaded_htmlarea)) { |
... | ... | |
55 | 55 |
echo 'var editor = new HTMLArea("content'.$wysiwyg_section["section_id"].'");' |
56 | 56 |
. 'editor.registerPlugin(ContextMenu);' |
57 | 57 |
. 'editor.registerPlugin(TableOperations);' |
58 |
. 'editor.config.pageStyle = "body { '.stripslashes(WYSIWYG_STYLE).' }";' |
|
58 |
. 'editor.config.pageStyle = "body { '.$admin->stripslashes(WYSIWYG_STYLE).' }";'
|
|
59 | 59 |
. 'editor.generate();'; |
60 | 60 |
} |
61 | 61 |
} |
Also available in: Unified diff
Created new stripslashes method in class wb. Changed stripslashes() calls to method calls.