當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PerchUtil::find_executable_files_in_resources方法代碼示例

本文整理匯總了PHP中PerchUtil::find_executable_files_in_resources方法的典型用法代碼示例。如果您正苦於以下問題:PHP PerchUtil::find_executable_files_in_resources方法的具體用法?PHP PerchUtil::find_executable_files_in_resources怎麽用?PHP PerchUtil::find_executable_files_in_resources使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PerchUtil的用法示例。


在下文中一共展示了PerchUtil::find_executable_files_in_resources方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

} 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>';
開發者ID:Bloom-web,項目名稱:bloom-web,代碼行數:31,代碼來源:diagnostics.post.php


注:本文中的PerchUtil::find_executable_files_in_resources方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。