";
echo "
";
echo "xLight Downloads
";
$files = array();
$files32 = array();
$files64 = array();
$dir = opendir('.'); // open the cwd..also do an err check.
while(false != ($file = readdir($dir))) {
if(($file != ".") and ($file != "..") and ($file != "index.php")) {
$str14=substr($file,0,14);
$match32=$match64="false";
if($str14=="xLights32_2018")
$match32="true";
else if($str14=="xLights64_2018")
$match64="true";
if($match32=="true")
$files32[] = $file; // put in array.
else if($match64=="true")
$files64[] = $file; // put in array.
# print "$file,$match32,$match64
";
}
}
rsort($files32); // sort.
rsort($files64); // sort.
// print.
$line=0;
echo "";
echo "# | 64bit Xlights |
";
foreach($files64 as $file) {
$line++;
echo("$line | $file |
\n");
}
echo "
";
$line=0;
echo "";
echo "# | 32bit Xlights |
";
foreach($files32 as $file) {
$line++;
echo("$line | $file |
\n");
}
echo "
";
echo "";
echo "