+ /* Open the file for writing, or else display an error to the user. */
+ if(!$file = @fopen($filename, 'w'))
+ {
+ include_once( '../functions/display_messages.php' );
+ logout_error( sprintf( _("Preference file, %s, could not be opened. Contact your system administrator to resolve this issue."), $filename) );
+ exit;
+ }
+