/[pliva-si]/inc/find_html_file.inc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/find_html_file.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by ravilov, Mon Jun 25 09:57:25 2001 UTC revision 1.3 by dpavlin, Wed Sep 19 16:32:24 2001 UTC
# Line 1  Line 1 
1  <?  <?
2    
3  function find_html_file($dir,$file) {  function find_html_file($dir,$file) {
4          $file="./$dir/$file";          if ($dir!="") $file="./$dir/$file";
5          if (is_file("$file") && file_exists("$file")) { return "$file"; }          if (is_file("$file") && file_exists("$file")) { return "$file"; }
6          if (is_file("$file.htm") && file_exists("$file.htm")) { return "$file.htm"; }          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"; }          if (is_file("$file.html") && file_exists("$file.html")) { return "$file.html"; }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.26