Changeset 4099
- Timestamp:
- Mon Nov 21 14:13:30 2005
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
-
branches/CAMPSITE_2_3_BRANCH/campsite/.install_conf/is_executable.php
r3185 r4099 15 15 foreach ($paths as $index=>$path) { 16 16 $file_path = "$path/$param"; 17 if (is_executable($file_path)) { 17 if (@is_executable($file_path)) { 17 17 echo $file_path; 18 18 exit(0); 19 19 } 20 if (is_link($file_path)) { 20 if (@is_link($file_path)) { 20 20 $target_path = $file_path; 21 21 do { 22 if (is_executable($target_path)) { 22 if (@is_executable($target_path)) { 22 22 echo $file_path; 23 23 exit(0); 24 24 } 25 $target_path = readlink($target_path); 26 } while (is_link($target_path)); 25 $target_path = @readlink($target_path); 26 } while (@is_link($target_path)); 27 27 } 28 28 }