本文整理汇总了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>';