* @license http://www.opensource.org/licenses/bsd-license.php The BSD License * @version CVS: $Id$ * @link https://svn.roundcube.net/trunk * @todo Check IMAP settings. * @todo Check SMTP settings. * @todo HTML/CSS to make it pretty. */ $writable_dirs = array('logs/', 'temp/'); $create_files = array('config/db.inc.php', 'config/main.inc.php'); $path = dirname(__FILE__) . '/'; echo '
RoundCube may need to write/save files into these directories.
'; foreach ($writable_dirs AS $dir) { echo "Directory $dir: "; if (!is_writable($path . $dir)) { echo 'NOT OK'; } else { echo 'OK'; } echo "Checks if the files exist and if they are readable.
'; foreach ($create_files AS $file) { echo "File $file: "; if (file_exists($path . $file) && is_readable($path . $file)) { echo 'OK'; } else { echo 'NOT OK'; } echo '