diff --git a/wp-admin/menu-header.php b/wp-admin/menu-header.php index bbdfe1a709..d8b7e6af3e 100644 --- a/wp-admin/menu-header.php +++ b/wp-admin/menu-header.php @@ -1,11 +1,45 @@ -
'.__('You do not have sufficient permissions to edit templates for this blog.').'
'); - - if (strpos($file, 'wp-config.php') !== false) - wp_die(''.__('The config file cannot be edited or viewed through the web interface. Sorry!').'
'); - - update_recently_edited($file); - - if (!is_file($real_file)) - $error = true; - - if (!$error) { - $f = @ fopen($real_file, 'r'); - if ( $f ) { - if ( filesize($real_file ) > 0 ) { - $content = fread($f, filesize($real_file)); - $content = htmlspecialchars($content); - } else { - $content = ''; - } - } else { - $error = true; - } - } - - ?> - - -' . __('Oops, no such file exists! Double check the name and try again, merci.') . '
writable by the server, e.g. CHMOD 666.') ?>
- - - -