37 |
|
|
38 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) ); |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) ); |
39 |
|
|
40 |
|
include("find_html_file.inc"); |
|
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; |
|
|
} |
|
41 |
|
|
42 |
if (file_exists(find_html_file("news",$more))) { |
if (file_exists(find_html_file("news",$more))) { |
43 |
|
|