';
}else{
installLog("/custom directory and subdirectory check passed");
}
// cache dir
$cache_files[] = '';
$cache_files[] = 'images';
$cache_files[] = 'layout';
$cache_files[] = 'pdf';
$cache_files[] = 'xml';
$cache_files[] = 'include/javascript';
$filelist = '';
foreach($cache_files as $c_file)
{
$dirname = sugar_cached($c_file);
$ok = false;
if ((is_dir($dirname)) || @sugar_mkdir($dirname,0555)) // set permissions to restrictive - use make_writable to change in a standard way to the required permissions
{
$ok = make_writable($dirname);
}
if (!$ok)
{
$filelist .= ' '.getcwd()."/$dirname";
}
}
if (strlen($filelist)>0)
{
$error_found = true;
installLog("ERROR:: Some subdirectories in cache subfolder were not read/writeable:");
installLog($filelist);
$error_txt .= '
EOQ;
return $out;
}else{
installLog("Outputting HTML for System check");
installLog("No Errors were found *************");
return 'passed';
}
}
//// END PAGEOUTPUT
///////////////////////////////////////////////////////////////////////////////
?>