" . "";
if ($i % 3 == 0)
echo "
";
}
}
if (isset($_POST['format']) && $_POST['format'] =='php') {
$machineid = htmlentities(mysqli_real_escape_string($link, $_POST['machine']));
$filelist = glob($PNG_WEB_DIR .$machineid. "/"."*.php");
for ($i = 0; $i < count($filelist); $i++) {
// echo $filelist[$i];
echo "" . $filelist[$i] . "";
echo "
";
}
}
if (isset($_POST['format']) && $_POST['format'] =='txt') {
$machineid = htmlentities(mysqli_real_escape_string($link, $_POST['machine']));
$filelist = glob($PNG_WEB_DIR .$machineid. "/"."*.txt");
for ($i = 0; $i < count($filelist); $i++) {
// echo $filelist[$i];
echo "" . $filelist[$i] . "";
echo "
";
}
}
if (isset($_POST['format']) && $_POST['format'] =='all') {
$machineid = htmlentities(mysqli_real_escape_string($link, $_POST['machine']));
$filelist = glob($PNG_WEB_DIR .$machineid. "/"."*.*");
for ($i = 0; $i < count($filelist); $i++) {
// echo $filelist[$i];
echo "" . $filelist[$i] . "";
echo "
";
}
}
?>