- Timestamp:
- 2007/07/20 15:58:59 (17 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update
-
Property
svn:ignore
set to
.cache
.settings
.projectOptions
-
Property
svn:ignore
set to
-
branches/feature-module-update/html/admin/contents/file_view.php
r12157 r15078 9 9 require_once(DATA_PATH . "include/file_manager.inc"); 10 10 11 // ¥½¡¼¥¹¤È¤·¤Æɽ¼¨¤¹¤ë¥Õ¥¡¥¤¥ë¤òÄêµÁ(ľÀܼ¹Ԥ·¤Ê¤¤¥Õ¥¡¥¤¥ë)11 // ソースとして表示するファイルを定義(直接実行しないファイル) 12 12 $arrViewFile = array( 13 13 'html', … … 19 19 ); 20 20 21 // ³ÈÄ¥»Ò¼èÆÀ21 // 拡張子取得 22 22 $arrResult = split('\.', $_GET['file']); 23 23 $ext = $arrResult[count($arrResult)-1]; 24 24 25 // ¥Õ¥¡¥¤¥ëÆâÍÆɽ¼¨25 // ファイル内容表示 26 26 if(in_array($ext, $arrViewFile)) { 27 // ¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤ó¤Çɽ¼¨27 // ファイルを読み込んで表示 28 28 header("Content-type: text/plain\n\n"); 29 29 print(sfReadFile(USER_PATH.$_GET['file']));
Note: See TracChangeset
for help on using the changeset viewer.