=1024 && ($bytes/1024)>=1) { $bytes/=1024; $position++; } return round($bytes,$decimal).$units[$position]; } function iconurl($x) { $baseurl='/img/repos/'; $ext=substr(($t=strrchr($x,'.'))!==false?$t:'',1); if($ext=='pdf')$f='pdf.gif'; else if(in_array($ext,array('bin','rpm','deb')))$f='binary.gif'; else if(in_array($ext,array('txt','rtf','doc','pdf')))$f='text.gif'; else if(in_array($ext,array('ogg')))$f='sound.gif'; else if(in_array($ext,array('c','C','h','cpp')))$f='c.gif'; else if(in_array($ext,array('py','pyc')))$f='python.gif'; else if(in_array($ext,array('sh')))$f='shell.gif'; else if(in_array($ext,array('zip','tgz','gz','bz2','rar','ace','7z','tbz','tar.bz2','tar.gz')))$f='compressed.gif'; else if(in_array($ext,array('php','html','html','asp','shtml')))$f='html.gif'; else if(in_array($ext,array('gif','jpg','jpeg','png','bmp')))$f='img.gif'; else $f='unknown.gif'; return $baseurl.$f; } echo ""; ?>

Name Last modified Size
Parent Directory
-