<?php
$dir = __DIR__;
$files = glob($dir . '/*.php');
sort($files);

header('Content-Type: text/html; charset=utf-8');
echo "<h3>ملفات PHP الموجودة داخل admin/</h3>";
echo "<ul>";
foreach($files as $f){
  $b = basename($f);
  echo "<li><a href='$b'>$b</a></li>";
}
echo "</ul>";
