- Timestamp:
- Dec 3, 2008, 12:28:32 AM (16 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r2856 r2917 1541 1541 return $str; //??? 1542 1542 } 1543 1544 /** 1545 * makes sure a index.htm protects the directory from browser file listing 1546 * 1547 * @param string dir directory 1548 */ 1549 function secure_directory($dir) 1550 { 1551 $file = $dir.'/index.htm'; 1552 if (!file_exists($file)) 1553 { 1554 @file_put_contents($file, 'Not allowed!'); 1555 } 1556 } 1543 1557 ?> -
trunk/include/ws_functions.inc.php
r2786 r2917 952 952 } 953 953 954 secure_directory($upload_dir); 955 954 956 // compute file path 955 957 $date_string = preg_replace('/[^\d]/', '', $dbnow); … … 994 996 } 995 997 } 998 999 secure_directory($thumbnail_dir); 996 1000 997 1001 // thumbnail path, the filename may use a prefix and the extension is … … 1044 1048 } 1045 1049 } 1050 1051 secure_directory($high_dir); 1046 1052 1047 1053 // high resolution path, same name as web size file
Note: See TracChangeset
for help on using the changeset viewer.