} else {
    $messages[] = array('type' => 'warning', 'text' => PerchLang::get('%sNo image processing library.%s Consider installing GD or ImageMagick for resizing images.', '<strong>', '</strong>'));
}
if (!function_exists('json_encode')) {
    $messages[] = array('type' => 'warning', 'text' => PerchLang::get('%sNo native JSON library.%s Consider installing the PHP JSON library if possible.', '<strong>', '</strong>'));
}
if (!is_writable(PERCH_RESFILEPATH)) {
    $messages[] = array('type' => 'failure', 'text' => PerchLang::get('%sResources folder is not writable%s', '<strong>', '</strong>'));
}
if ($max_upload < 8) {
    $messages[] = array('type' => 'warning', 'text' => PerchLang::get('%sFile upload size is low.%s You can only upload files up to %sM.', '<strong>', '</strong>', $max_upload));
}
if ($memory_limit < 64) {
    $messages[] = array('type' => 'warning', 'text' => PerchLang::get('%sMemory limit is low.%s Memory use is limited to %sM, which could cause problems manipulating large images.', '<strong>', '</strong>', $memory_limit));
}
if (PerchUtil::find_executable_files_in_resources()) {
    $messages[] = array('type' => 'failure', 'text' => PerchLang::get('%sThere are PHP files in your resources folder.%s These could be dangerous and a sign of a security breach.', '<strong>', '</strong>'));
}
if (PERCH_RUNWAY) {
    $env_config = PerchConfig::get('env');
    if (!isset($env_config['temp_folder']) || !is_writable($env_config['temp_folder'])) {
        $messages[] = array('type' => 'warning', 'text' => PerchLang::get('%sTemp folder is not writable.%s Check the path to your temp folder in your %srunway.php%s file and check permissions are set for PHP to write to it.', '<strong>', '</strong>', '<code>', '</code>'));
        $Alert->set('notice', PerchLang::get('Your backup temp folder is not set, or is not writable.'));
        $errors = true;
    }
}
if (strpos(PERCH_LICENSE_KEY, 'LOCAL-TESTING') > 2) {
    $product .= ' LTM';
}
foreach ($messages as $message) {
    echo '<li class="icon ' . $message['type'] . '">' . $message['text'] . '</li>';