그누보드5

This commit is contained in:
gnuboard
2013-09-13 11:03:33 +09:00
parent 04c3efa279
commit 41d21074b5
974 changed files with 147770 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
$key_dir = G5_OKNAME_PATH.'/key';
if(!is_dir($key_dir)) {
alert_close(G5_PLUGIN_DIR.'/'.G5_OKNAME_DIR.' 에 key 디렉토리를 생성해 주십시오.\\n\\n디렉토리 생성 후 쓰기권한을 부여해 주십시오. 예: chmod 707 key');
}
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
$sapi_type = php_sapi_name();
if (substr($sapi_type, 0, 3) == 'cgi') {
if (!(is_readable($key_dir) && is_executable($key_dir)))
{
$msg = G5_PLUGIN_DIR.'/'.G5_OKNAME_DIR.'/key 디렉토리의 퍼미션을 705로 변경하여 주십시오.\\nchmod 705 key 또는 chmod uo+rx key';
alert_close($msg);
}
} else {
if (!(is_readable($key_dir) && is_writeable($key_dir) && is_executable($key_dir)))
{
$msg = G5_PLUGIN_DIR.'/'.G5_OKNAME_DIR.'/key 디렉토리의 퍼미션을 707로 변경하여 주십시오.\\n\\nchmod 707 key 또는 chmod uo+rwx key';
alert_close($msg);
}
}
}
?>