";
}
usort($updateFiles, function($a, $b) {
// Extract version numbers from filenames
$versionA = str_replace('update_log_', '', basename($a, '.txt'));
$versionB = str_replace('update_log_', '', basename($b, '.txt'));
return version_compare($versionB, $versionA);
});
if (!empty($updateFiles)) {
$latestVersionFile = '/updates/' . basename($updateFiles[0]);
$latestVersion = str_replace('update_log_', '', basename($updateFiles[0], '.txt'));
}
} else {
echo "Directory does not exist or is not accessible.
"; // Debugging line
}
?>
Looks like you need to log in to continue. Please check your credentials or contact support if you believe this is an error.
Login