Project

General

Profile

« Previous | Next » 

Revision 36

Added by stefan about 19 years ago

Created new stripslashes method in class wb. Changed stripslashes() calls to method calls.

View differences:

modify_post.php
1 1
<?php
2 2

  
3
// $Id: modify_post.php,v 1.3 2005/06/21 09:11:44 rdjurovich Exp $
3
// $Id$
4 4

  
5 5
/*
6 6

  
......
51 51
function initEditor() {
52 52
	var editor = new HTMLArea("short");
53 53
	editor.registerPlugin(ContextMenu);
54
	editor.config.pageStyle = "body { <?php echo stripslashes(WYSIWYG_STYLE); ?> }";
54
	editor.config.pageStyle = "body { <?php echo $admin->stripslashes(WYSIWYG_STYLE); ?> }";
55 55
	editor.generate();
56 56
	var editor = new HTMLArea("long");
57 57
	editor.registerPlugin(ContextMenu);
58 58
	editor.registerPlugin(TableOperations);
59
	editor.config.pageStyle = "body { <?php echo stripslashes(WYSIWYG_STYLE); ?> }";
59
	editor.config.pageStyle = "body { <?php echo $admin->stripslashes(WYSIWYG_STYLE); ?> }";
60 60
	editor.generate();
61 61
}
62 62
</script>
......
72 72
<tr>
73 73
	<td width="80"><?php echo $TEXT['TITLE']; ?>:</td>
74 74
	<td>
75
		<input type="text" name="title" value="<?php echo stripslashes(htmlspecialchars($fetch_content['title'])); ?>" style="width: 100%;" maxlength="255" />
75
		<input type="text" name="title" value="<?php echo $admin->stripslashes(htmlspecialchars($fetch_content['title'])); ?>" style="width: 100%;" maxlength="255" />
76 76
	</td>
77 77
</tr>
78 78
<tr>
......
121 121
<tr>
122 122
	<td valign="top"><?php echo $TEXT['SHORT']; ?>:</td>
123 123
	<td>
124
		<textarea name="short" id="short" style="width: 100%; height: 135px;"><?php echo htmlspecialchars(stripslashes($fetch_content['short'])); ?></textarea>
124
		<textarea name="short" id="short" style="width: 100%; height: 135px;"><?php echo htmlspecialchars($admin->stripslashes($fetch_content['short'])); ?></textarea>
125 125
	</td>
126 126
</tr>
127 127
<tr>
128 128
	<td valign="top"><?php echo $TEXT['LONG']; ?>:</td>
129 129
	<td>
130
		<textarea name="long" id="long" style="width: 100%; height: 300px;"><?php echo htmlspecialchars(stripslashes($fetch_content['long'])); ?></textarea>
130
		<textarea name="long" id="long" style="width: 100%; height: 300px;"><?php echo htmlspecialchars($admin->stripslashes($fetch_content['long'])); ?></textarea>
131 131
	</td>
132 132
</tr>
133 133
</table>

Also available in: Unified diff