Project

General

Profile

« Previous | Next » 

Revision 1471

Added by Dietmar over 13 years ago

change to Release Candiate 7

View differences:

intro2.php
42 42
$admin->print_header();
43 43
// Write new content
44 44
$filename = WB_PATH.PAGES_DIRECTORY.'/intro'.PAGE_EXTENSION;
45
if(is_writable($filename)) {
46
	if(file_put_contents($filename, utf8_encode($content))===false){
47
		$admin->print_error($MESSAGE['PAGES_NOT_SAVED']);
48
	} else {
49
		change_mode($filename);
50
		$admin->print_success($MESSAGE['PAGES']['INTRO_SAVED']);
51
	}
45
if(file_put_contents($filename, utf8_encode($content))===false){
46
	$admin->print_error($MESSAGE['PAGES_NOT_SAVED']);
52 47
} else {
48
	change_mode($filename);
49
	$admin->print_success($MESSAGE['PAGES']['INTRO_SAVED']);
50
}
51
if(!is_writable($filename)) {
53 52
	$admin->print_error($MESSAGE['PAGES']['INTRO_NOT_WRITABLE']);
54 53
}
55 54

  

Also available in: Unified diff