Project

General

Profile

« Previous | Next » 

Revision 445

Added by Matthias over 17 years ago

Optimized search and highlighting funktions

View differences:

save.php
29 29
$update_when_modified = true; // Tells script to update when this page was last updated
30 30
require(WB_PATH.'/modules/admin.php');
31 31

  
32
// Include the WB functions file
33
require_once(WB_PATH.'/framework/functions.php');
34

  
32 35
// Update the mod_wysiwygs table with the contents
33 36
if(isset($_POST['content'.$section_id])) {
34 37
	$content = $admin->add_slashes($_POST['content'.$section_id]);
35
	$text = strip_tags($content);
38
	// searching in $text will be much easier this way
39
	$text = umlauts_to_entities(strip_tags($content), strtoupper(DEFAULT_CHARSET), 0);
36 40
	$database = new database();
37 41
	$query = "UPDATE ".TABLE_PREFIX."mod_wysiwyg SET content = '$content', text = '$text' WHERE section_id = '$section_id'";
38 42
	$database->query($query);	

Also available in: Unified diff