Satellite Housekeeping
PACS Housekeeping
\n"; if ($curOD > 0) { $prevOD = $curOD - 1; $dir_prevOD = sprintf("OD%04d",$prevOD); echo "

Previous OD

\n"; } echo "

$dir_curOD

\n"; if ($curOD < $lastOD) { $nextOD = $curOD + 1; $dir_nextOD = sprintf("OD%04d",$nextOD); echo "

Next OD

\n"; } echo "\n"; echo "Location of sensors\n"; if($handle = opendir($dir_curOD)) { $file_list = fopen($name_file_list,"r"); while(!feof($file_list)) { $file = rtrim(fgets($file_list)); $ext = strtolower(substr($file, strrpos($file, '.'))); if($ext==".png") { $name = basename($file,$ext); echo "\n"; if ($curOD > 0) { $prevOD = $curOD - 1; $dir_prevOD = sprintf("OD%04d",$prevOD); if(file_exists($dir_prevOD."/".$file)) { echo "\n"; } else { echo "\n"; } } echo "\n"; if ($curOD < $lastOD) { $nextOD = $curOD + 1; $dir_nextOD = sprintf("OD%04d",$nextOD); if(file_exists($dir_nextOD."/".$file)) { echo "\n"; } else { echo "\n"; } } } } } ?>

Previous OD

No data for $dir_prevOD

Next OD

No data for $dir_nextOD