$txt";
}
?>
");
print("
Bibliotecas de Jclic
");
// loop through the array of files and print them all
$rootdirectory = opendir(".");
//Read directory
while($jclicdirectory = readdir($rootdirectory))
{
//Only list directories
if (filetype($jclicdirectory) == "dir")
{
//Only enter non hide directory
if (substr("$jclicdirectory", 0, 1) != ".")
{
$jclicconten = opendir($jclicdirectory);
$lista = array();
while($jclicfile = readdir($jclicconten))
{
if (substr("$jclicfile", 0, 1) != ".")
{
$lista[] = $jclicfile;
}
}
if(count($lista)>0)
{
sort($lista);
$resource = array();
$filterlist = array('/^.*\.jclic$/',
'/^.*\.jclic.zip$/'
);
foreach($filterlist as $jfilter)
{
$resource = preg_grep($jfilter,$lista);
if(count($resource)>0){break;}
}
if(count($resource)>0)
{
$recurso = array_shift($resource);
?>
}
}
}
}
}
print("");
?>