17 lines
362 B
PHP
17 lines
362 B
PHP
<?php
|
|
|
|
header("Content-Type", "text/plain");
|
|
|
|
$path = realpath('mod');
|
|
|
|
$objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST);
|
|
|
|
foreach($objects as $object)
|
|
{
|
|
if (!is_file($object)) continue;
|
|
$url = substr(realpath($object), strlen($path));
|
|
echo hash_file("SHA256", $object) . " $url\n";
|
|
}
|
|
|
|
?>
|