Project

General

Profile

« Previous | Next » 

Revision 70

Added by stefan about 19 years ago

Removed support for internal HTMLArea editor. Created new stock module HTMLArea.

View differences:

save.php
106 106
	return $default_dir_mode;
107 107
}
108 108

  
109
require_once('../framework/class.wb.php');
109
function add_slashes($input) {
110
		if ( get_magic_quotes_gpc() || ( !is_string($input) ) ) {
111
			return $input;
112
		}
113
		$output = addslashes($input);
114
		return $output;
115
	}
110 116

  
111 117
// Begin check to see if form was even submitted
112 118
// Set error if no post vars found
......
221 227
if(!isset($_POST['website_title']) OR $_POST['website_title'] == '') {
222 228
	set_error('Please enter a website title');
223 229
} else {
224
	$website_title = wb::add_slashes($_POST['website_title']);
230
	$website_title = add_slashes($_POST['website_title']);
225 231
}
226 232
// End website title code
227 233

  
......
290 296
"define('PAGE_TRASH', 'disabled');\n".
291 297
"define('HOMEPAGE_REDIRECTION', false);\n".
292 298
"define('PAGE_LANGUAGES', false);\n".
299
"define('WYSIWYG_EDITOR', 'htmlarea');\n".
293 300
"\n".
294 301
"define('MANAGE_SECTIONS', true);\n".
295 302
"define('SECTION_BLOCKS', false);\n".

Also available in: Unified diff