Changeset 16678
- Timestamp:
- 2007/11/04 22:05:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/html/install/index.php
r16635 r16678 45 45 // テンプレートコンパイルディレクトリの書込み権限チェック 46 46 $temp_dir = $INSTALL_DIR . '/temp'; 47 //$mode = lfGetFileMode($temp_dir);48 47 49 48 if(!is_writable($temp_dir)) { … … 401 400 $err_file = false; 402 401 foreach($arrWriteFile as $val) { 403 402 // listdirsの保持データを初期化 403 initdirs(); 404 404 if (is_dir($val)) { 405 405 $arrDirs = listdirs($val); 406 406 } else { 407 407 $arrDirs = array($val); 408 408 } 409 409 410 410 foreach ($arrDirs as $path) { 411 411 if(file_exists($path)) { … … 415 415 // ディレクトリの場合 416 416 if(is_dir($path)) { 417 if(is_writable($path)) { 418 //$mess.= ">> ○:$real_path($mode) <br>アクセス権限は正常です。<br>"; 419 } else { 417 if(!is_writable($path)) { 420 418 $mess.= ">> ×:$real_path($mode) <br>ユーザ書込み権限(777, 707等)を付与して下さい。<br>"; 421 419 $err_file = true; 422 420 } 423 421 } else { 424 if(is_writable($path)) { 425 //$mess.= ">> ○:$real_path($mode) <br>アクセス権限は正常です。<br>"; 426 } else { 422 if(!is_writable($path)) { 427 423 $mess.= ">> ×:$real_path($mode) <br>ユーザ書込み権限(666, 606等)を付与して下さい。<br>"; 428 424 $err_file = true; … … 1081 1077 * @see http://www.php.net/glob 1082 1078 */ 1079 $alldirs = array(); 1083 1080 function listdirs($dir) { 1084 static $alldirs = array();1081 global $alldirs; 1085 1082 $dirs = glob($dir . '/*'); 1086 1083 if (count($dirs) > 0) { … … 1090 1087 return $alldirs; 1091 1088 } 1089 1090 /** 1091 * 保持したスタティック変数をクリアする。 1092 */ 1093 function initdirs() { 1094 global $alldirs; 1095 $alldirs = array(); 1096 } 1097 1092 1098 ?>
Note: See TracChangeset
for help on using the changeset viewer.