--- new.php 2001/04/05 11:54:08 1.13 +++ new.php 2001/04/05 12:04:12 1.14 @@ -37,14 +37,7 @@ $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) ); - -function find_html_file($dir,$file) { - $file="./$dir/$file"; - if (is_file("$file") && file_exists("$file")) { return "$file"; } - if (is_file("$file.htm") && file_exists("$file.htm")) { return "$file.htm"; } - if (is_file("$file.html") && file_exists("$file.html")) { return "$file.html"; } - return 0; -} +include("find_html_file.inc"); if (file_exists(find_html_file("news",$more))) {