Changeset 8722 for temp/trunk/html/test
- Timestamp:
- 2006/11/21 11:14:14 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/test/uehara/file_view.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/test/uehara/file_view.php
r8721 r8722 10 10 // ľÀÜɽ¼¨¤·¤Ê¤¤¥Õ¥¡¥¤¥ë¤òÄêµÁ 11 11 $arrViewFile = array( 12 'html',13 'htm',14 'tpl',15 'php',12 'html', 13 'htm', 14 'tpl', 15 'php', 16 16 ); 17 17 … … 19 19 $ext = $arrResult[count($arrResult)-1]; 20 20 21 sfprintr($ext);22 23 21 // ¥Õ¥¡¥¤¥ëÆâÍÆÉ½¼¨ 24 header("Content-type: text/plain\n\n"); 25 print(sfReadFile(USER_PATH.$_GET['file'])); 26 22 if(in_array($arrViewFile($ext))) { 23 header("Content-type: text/plain\n\n"); 24 print(sfReadFile(USER_PATH.$_GET['file'])); 25 } else { 26 header("Location :".USER_URL.$_GET['file']); 27 } 27 28 ?>
Note: See TracChangeset
for help on using the changeset viewer.
