function extractfilename($s) { if($i=strrpos($s,'.')) $s=substr($s,0,$i); return($s); } //****************************************************************** function extractfilepath($s) { if($i=strrpos($s,'/')) $s=substr($s,0,$i); return($s); } //****************************************************************** function extractfileext($s) { if($i=strrpos($s,'.')) $s=substr($s,$i,strlen($s)); return($s); } //********************************************************** function getlstfiles($path,$ext='') { $t=array(); if($dir=@opendir($path)) { while(($file=readdir($dir))!==false) { if(($file!='..')&&($file!='.')&&(($ext=='')||(extractfileext($file)==$ext))) { $t[]="$path/$file"; } } closedir($dir); } return($t); } //********************************************************** $html.="\n"; $html.="
\n"; $html.=" \n"; $html.=" \n"; $html.=" \n"; $html.=" \n"; $html.=" \n"; $html.=" \n"; $html.=" \n"; $html.=" \n"; //$html.="\n";
$html.=" \n"; $html.=" ![]() | \n";
$html.="