Parent Directory | Revision Log
take from corp.page
1 | ravilov | 1.1 | <? |
2 | |||
3 | function find_html_file($dir,$file) { | ||
4 | dpavlin | 1.2 | if ($dir!="") $file="./$dir/$file"; |
5 | ravilov | 1.1 | if (is_file("$file") && file_exists("$file")) { return "$file"; } |
6 | if (is_file("$file.htm") && file_exists("$file.htm")) { return "$file.htm"; } | ||
7 | if (is_file("$file.html") && file_exists("$file.html")) { return "$file.html"; } | ||
8 | return 0; | ||
9 | } | ||
10 | |||
11 | ?> |
ViewVC Help | |
Powered by ViewVC 1.1.26 |