21 |
$title.=" : $row[name]"; |
$title.=" : $row[name]"; |
22 |
if ($row[type]=="h" && file_exists(find_html_file("multi",$row[html]))) { |
if ($row[type]=="h" && file_exists(find_html_file("multi",$row[html]))) { |
23 |
$main=join('',file(find_html_file("multi",$row[html]))); |
$main=join('',file(find_html_file("multi",$row[html]))); |
24 |
} elseif ($row[type]=="p" && file_exists(find_html_file("",$row[path]))) { |
} elseif ($row[type]=="p") { |
25 |
$main=join('',file(find_html_file("",$row[path]))); |
if (file_exists(find_html_file("",$row[path]))) { |
26 |
|
$main=join('',file(find_html_file("",$row[path]))); |
27 |
|
} else { |
28 |
|
$main="<b>can't find $row[path] for id $p</b>"; |
29 |
|
} |
30 |
// try to load translation (html fix-up or something) |
// try to load translation (html fix-up or something) |
31 |
$fix_up="./fix_up/".str_replace("/","_",dirname($row[path])).".inc"; |
$fix_up="./fix_up/".str_replace("/","_",dirname($row[path])).".inc"; |
32 |
|
|
33 |
|
# $main.="<!-- trying to use fixup $fix_up -->"; ## DEBUG |
34 |
if (file_exists($fix_up)) { |
if (file_exists($fix_up)) { |
35 |
include($fix_up); |
include($fix_up); |
36 |
|
# $main.="<!-- fixup: $fix_up -->"; ## DEBUG |
37 |
} |
} |
38 |
} else { |
} else { |
39 |
$main="<b>can't find multi page for id $p</b>"; |
$main="<b>can't find multi page for id $p</b>"; |