Index: /branches/feature-module-update/data/class/util/SC_Utils.php
===================================================================
--- /branches/feature-module-update/data/class/util/SC_Utils.php	(revision 16710)
+++ /branches/feature-module-update/data/class/util/SC_Utils.php	(revision 16764)
@@ -21,5 +21,5 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
- 
+
 /**
  * 各種ユーティリティクラス.
@@ -1385,5 +1385,5 @@
         }
     }
-    
+
     // ディレクトリを再帰的に生成する
     function sfMakeDir($path) {
@@ -1407,10 +1407,10 @@
 	                    GC_Utils::gfPrintLog("mkdir $dir");
 					}
-				}        
+				}
     	   }
     	}
     	return;
     }
-        
+
     // ディレクトリ以下のファイルを再帰的にコピー
     function sfCopyDir($src, $des, $mess = "", $override = false){
@@ -1476,13 +1476,13 @@
 	                $ret = SC_Utils::sfDelFile($del_file);
 	            }
-	
+
 	            if(!$ret){
 	                return $ret;
 	            }
 	        }
-	
+
 	        // 閉じる
 	        closedir($dh);
-	
+
 	        // フォルダを削除
 	        return rmdir($dir);
@@ -1535,5 +1535,5 @@
         flush();
 
-        ob_end_flush();
+        ob_flush();
         ob_start();
 
@@ -1639,6 +1639,6 @@
         }
     }
-	
-	/* 
+
+	/*
 	 * 関数名：sfGetFileList()
 	 * 説明　：指定パス配下のディレクトリ取得
@@ -1648,7 +1648,7 @@
 		$arrFileList = array();
 		$arrDirList = array();
-		
+
 		if (is_dir($dir)) {
-			if ($dh = opendir($dir)) { 
+			if ($dh = opendir($dir)) {
 				$cnt = 0;
 				// 行末の/を取り除く
@@ -1657,14 +1657,14 @@
 				// アルファベットと数字でソート
 				natcasesort($arrDir);
-				foreach($arrDir as $file) {				
+				foreach($arrDir as $file) {
 					// ./ と ../を除くファイルのみを取得
 					if($file != "." && $file != "..") {
-	
+
 						$path = $dir."/".$file;
 						// SELECT内の見た目を整えるため指定文字数で切る
-						$file_name = SC_Utils::sfCutString($file, FILE_NAME_LEN);						
+						$file_name = SC_Utils::sfCutString($file, FILE_NAME_LEN);
 						$file_size = SC_Utils::sfCutString(SC_Utils::sfGetDirSize($path), FILE_NAME_LEN);
 						$file_time = date("Y/m/d", filemtime($path));
-						
+
 						// ディレクトリとファイルで格納配列を変える
 						if(is_dir($path)) {
@@ -1672,5 +1672,5 @@
 							$arrDirList[$cnt]['file_path'] = $path;
 							$arrDirList[$cnt]['file_size'] = $file_size;
-							$arrDirList[$cnt]['file_time'] = $file_time; 
+							$arrDirList[$cnt]['file_time'] = $file_time;
 							$arrDirList[$cnt]['is_dir'] = true;
 						} else {
@@ -1678,5 +1678,5 @@
 							$arrFileList[$cnt]['file_path'] = $path;
 							$arrFileList[$cnt]['file_size'] = $file_size;
-							$arrFileList[$cnt]['file_time'] = $file_time; 
+							$arrFileList[$cnt]['file_time'] = $file_time;
 							$arrFileList[$cnt]['is_dir'] = false;
 						}
@@ -1684,13 +1684,13 @@
 					}
 		        }
-		        closedir($dh); 
+		        closedir($dh);
 		    }
 		}
-	
+
 		// フォルダを先頭にしてマージ
 		return array_merge($arrDirList, $arrFileList);
 	}
-	
-	/* 
+
+	/*
 	 * 関数名：sfGetDirSize()
 	 * 説明　：指定したディレクトリのバイト数を取得
@@ -1701,16 +1701,16 @@
 			// ディレクトリの場合下層ファイルの総量を取得
 			if (is_dir($dir)) {
-			    $handle = opendir($dir); 
+			    $handle = opendir($dir);
 			    while ($file = readdir($handle)) {
 					// 行末の/を取り除く
 					$dir = ereg_replace("/$", "", $dir);
 					$path = $dir."/".$file;
-			        if ($file != '..' && $file != '.' && !is_dir($path)) { 
-			            $bytes += filesize($path); 
+			        if ($file != '..' && $file != '.' && !is_dir($path)) {
+			            $bytes += filesize($path);
 			        } else if (is_dir($path) && $file != '..' && $file != '.') {
 						// 下層ファイルのバイト数を取得する為、再帰的に呼び出す。
-			            $bytes += SC_Utils::sfGetDirSize($path); 
-			        } 
-			    } 
+			            $bytes += SC_Utils::sfGetDirSize($path);
+			        }
+			    }
 			} else {
 				// ファイルの場合
@@ -1720,9 +1720,9 @@
 		// ディレクトリ(ファイル)が存在しない場合は0byteを返す
 		if($bytes == "") $bytes = 0;
-		
+
 	    return $bytes;
 	}
-	
-	/* 
+
+	/*
 	 * 関数名：sfDeleteDir()
 	 * 説明　：指定したディレクトリを削除
@@ -1754,12 +1754,12 @@
 				// ファイル削除
 				$arrResult[0]['result'] = @unlink("$dir");
-				$arrResult[0]['file_name'] = "$dir";			
+				$arrResult[0]['file_name'] = "$dir";
 			}
 		}
-		
+
 		return $arrResult;
 	}
-	
-	/* 
+
+	/*
 	 * 関数名：sfGetFileTree()
 	 * 説明　：ツリー生成用配列取得(javascriptに渡す用)
@@ -1768,16 +1768,16 @@
 	 */
 	function sfGetFileTree($dir, $tree_status) {
-		
+
 		$cnt = 0;
 		$arrTree = array();
 		$default_rank = count(split('/', $dir));
-	
+
 		// 文末の/を取り除く
-		$dir = ereg_replace("/$", "", $dir);	
+		$dir = ereg_replace("/$", "", $dir);
 		// 最上位層を格納(user_data/)
 		if(sfDirChildExists($dir)) {
 			$arrTree[$cnt]['type'] = "_parent";
 		} else {
-			$arrTree[$cnt]['type'] = "_child";	
+			$arrTree[$cnt]['type'] = "_child";
 		}
 		$arrTree[$cnt]['path'] = $dir;
@@ -1790,12 +1790,12 @@
 			$arrTree[$cnt]['open'] = true;
 		}
-		$cnt++;	
-	
+		$cnt++;
+
 		sfGetFileTreeSub($dir, $default_rank, $cnt, $arrTree, $tree_status);
-	
+
 		return $arrTree;
 	}
-	
-	/* 
+
+	/*
 	 * 関数名：sfGetFileTree()
 	 * 説明　：ツリー生成用配列取得(javascriptに渡す用)
@@ -1806,8 +1806,8 @@
 	 */
 	function sfGetFileTreeSub($dir, $default_rank, &$cnt, &$arrTree, $tree_status) {
-		
+
 		if(file_exists($dir)) {
 			if ($handle = opendir("$dir")) {
-				while (false !== ($item = readdir($handle))) $arrDir[] = $item; 
+				while (false !== ($item = readdir($handle))) $arrDir[] = $item;
 				// アルファベットと数字でソート
 				natcasesort($arrDir);
@@ -1823,7 +1823,7 @@
 								$arrTree[$cnt]['type'] = "_parent";
 							} else {
-								$arrTree[$cnt]['type'] = "_child";	
+								$arrTree[$cnt]['type'] = "_child";
 							}
-							
+
 							// 階層を割り出す
 							$arrCnt = split('/', $path);
@@ -1843,6 +1843,6 @@
 		}
 	}
-	
-	/* 
+
+	/*
 	 * 関数名：sfDirChildExists()
 	 * 説明　：指定したディレクトリ配下にファイルがあるか
@@ -1852,20 +1852,20 @@
 		if(file_exists($dir)) {
 			if (is_dir($dir)) {
-			    $handle = opendir($dir); 
+			    $handle = opendir($dir);
 			    while ($file = readdir($handle)) {
 					// 行末の/を取り除く
 					$dir = ereg_replace("/$", "", $dir);
 					$path = $dir."/".$file;
-					if ($file != '..' && $file != '.' && is_dir($path)) { 
+					if ($file != '..' && $file != '.' && is_dir($path)) {
 						return true;
-			        } 
-			    } 
+			        }
+			    }
 			}
 		}
-	    
+
 		return false;
 	}
-	
-	/* 
+
+	/*
 	 * 関数名：lfIsFileOpen()
 	 * 説明　：指定したファイルが前回開かれた状態にあったかチェック
@@ -1878,9 +1878,9 @@
 			return true;
 		}
-		
+
 		return false;
 	}
-	
-	/* 
+
+	/*
 	 * 関数名：sfDownloadFile()
 	 * 引数1 ：ファイルパス
@@ -1895,6 +1895,6 @@
 		echo (sfReadFile($file));
 	}
-	
-	/* 
+
+	/*
 	 * 関数名：sfCreateFile()
 	 * 引数1 ：ファイルパス
@@ -1909,26 +1909,26 @@
 			$ret = @mkdir($file);
 		}
-		
+
 		return $ret;
 	}
-	
-	/* 
+
+	/*
 	 * 関数名：sfReadFile()
 	 * 引数1 ：ファイルパス
 	 * 説明　：ファイル読込
 	 */
-	function sfReadFile($filename) { 
-	    $str = ""; 
-	    // バイナリモードでオープン 
-	    $fp = @fopen($filename, "rb" ); 
-	    //ファイル内容を全て変数に読み込む 
-	    if($fp) { 
-	        $str = @fread($fp, filesize($filename)+1); 
-	    } 
+	function sfReadFile($filename) {
+	    $str = "";
+	    // バイナリモードでオープン
+	    $fp = @fopen($filename, "rb" );
+	    //ファイル内容を全て変数に読み込む
+	    if($fp) {
+	        $str = @fread($fp, filesize($filename)+1);
+	    }
 	    @fclose($fp);
-	
-	    return $str; 
+
+	    return $str;
 	}
-	
+
     /**
      * 出力バッファをフラッシュし, バッファリングを開始する.
@@ -1941,5 +1941,5 @@
         ob_start();
     }
-	
+
     /* デバッグ用 ------------------------------------------------------------------------------------------------*/
     function sfPrintR($obj) {
