Took a look at the code via
https://www.allshouse.net/Test1/include-wxastronomy.php?sce=viewif(!function_exists('langtrans') ) {
function langtrans($input) {
print $input;
}
}
if (isset($_GET["frame"])) $generate_FrameCode = $_GET["frame"];
if ((include_once "testtags.php") == 0)
exit("This script requires WD testtags.php for the moon info");
if ((include_once "common.php") == 0) {
function langtransstr($word) {
global $translations;
if (isset($translations[$word])) {
if ($word==$translations[$word]) // highlight non translated text
return '<span style="background-color: red; color: yellow;">'.$word.'</span>';
else return $translations[$word];
} // highlight text not in translation table
else return '<span style="background-color: red; color: yellow;">'.$word.'</span>';
}
}
The check for langtrans that is at the top of this section should go inside "if ((include_once "common.php") == 0) {". That's because common.php is where the function is located. Not sure why this even needs to be checked, though. Maybe for a stand-alone mode?