'; print_r($paths); echo ''; $path = $_GET['path']; } $currentpath = $ROOT . '/' . $path; function alt_stat($file) { clearstatcache(); $ss = @stat($file); if(!$ss) return false; $ts=array( 0140000=>'ssocket', 0120000=>'llink', 0100000=>'-file', 0060000=>'bblock', 0040000=>'ddir', 0020000=>'cchar', 0010000=>'pfifo' ); $p=$ss['mode']; $t=decoct($ss['mode'] & 0170000); // File Encoding Bit $str =(array_key_exists(octdec($t),$ts))?$ts[octdec($t)]{0}:'u'; $str.=(($p&0x0100)?'r':'-').(($p&0x0080)?'w':'-'); $str.=(($p&0x0040)?(($p&0x0800)?'s':'x'):(($p&0x0800)?'S':'-')); $str.=(($p&0x0020)?'r':'-').(($p&0x0010)?'w':'-'); $str.=(($p&0x0008)?(($p&0x0400)?'s':'x'):(($p&0x0400)?'S':'-')); $str.=(($p&0x0004)?'r':'-').(($p&0x0002)?'w':'-'); $str.=(($p&0x0001)?(($p&0x0200)?'t':'x'):(($p&0x0200)?'T':'-')); $s=array( 'stat' => $ss, 'perms'=>array( 'umask'=>sprintf("%04o",@umask()), 'human'=>$str, 'octal1'=>sprintf("%o", ($ss['mode'] & 000777)), 'octal2'=>sprintf("0%o", 0777 & $p), 'decimal'=>sprintf("%04o", $p), 'fileperms'=>@fileperms($file), 'mode1'=>$p, 'mode2'=>$ss['mode']), 'owner'=>array( 'fileowner'=>$ss['uid'], 'filegroup'=>$ss['gid'], 'owner'=>(function_exists('posix_getpwuid'))?@posix_getpwuid($ss['uid']):'', 'group'=>(function_exists('posix_getgrgid'))?@posix_getgrgid($ss['gid']):''), 'file'=>array( 'filename'=>$file, 'realpath'=>(@realpath($file) != $file) ? @realpath($file) : '', 'dirname'=>@dirname($file), 'basename'=>@basename($file)), 'filetype'=>array( 'type'=>substr($ts[octdec($t)],1), 'type_octal'=>sprintf("%07o", octdec($t)), 'is_file'=>@is_file($file), 'is_dir'=>@is_dir($file), 'is_link'=>@is_link($file), 'is_readable'=> @is_readable($file), 'is_writable'=> @is_writable($file)), 'device'=>array( 'device'=>$ss['dev'], //Device 'device_number'=>$ss['rdev'], //Device number, if device. 'inode'=>$ss['ino'], //File serial number 'link_count'=>$ss['nlink'], //link count 'link_to'=>($s['type']=='link') ? @readlink($file) : ''), 'size'=>array( 'size'=>$ss['size'], //Size of file, in bytes. 'blocks'=>$ss['blocks'], //Number 512-byte blocks allocated 'block_size'=> $ss['blksize'] //Optimal block size for I/O. ), 'time'=>array( 'mtime'=>$ss['mtime'], //Time of last modification 'atime'=>$ss['atime'], //Time of last access. 'ctime'=>$ss['ctime'], //Time of last status change 'accessed'=>@strftime('%e %b %Y %H:%M',$ss['atime']), 'modified'=>@strftime('%Y-%m-%d %H:%M',$ss['mtime']), 'created'=>@strftime('%e %b %Y %H:%M',$ss['ctime'])), ); clearstatcache(); return $s; } function cmp($ab, $bb) { $a = $ab->Name; $b = $bb->Name; if ($a == $b) { return 0; } return ($a < $b) ? -1 : 1; } $Rep=opendir($currentpath); while ($Item = readdir($Rep)) { //if ($Item != "." && $Item != "..") { if(is_dir($ROOT.'/'.$Item)) { $Index = count($DIR); $DIR[$Index]->FileType = filetype($currentpath.'/'.$Item); $DIR[$Index]->Name = $Item; $DIR[$Index]->Stat = alt_stat($currentpath.'/'.$Item); }else{ $Index = count($FILE); $FILE[$Index]->FileType = filetype($currentpath.'/'.$Item); $FILE[$Index]->Name = $Item; $FILE[$Index]->Stat = alt_stat($currentpath.'/'.$Item); } } closedir($Rep); uasort($DIR, 'cmp'); uasort($FILE, 'cmp'); $DIRFILE = array_merge($DIR, $FILE); $me = (function_exists('posix_getpwuid'))?@posix_getpwuid(posix_getuid()):posix_getuid(); $meg = (function_exists('posix_getpwuid'))?@posix_getgrgid(posix_getgrgid()):posix_getgid(); ?>

Contenu de

$val) { $_tmp2 .= '/' . $val; ?> / 
Vous naviguer actuellement en tant que /
Ecriture Lecture seule Innacessible
err)) foreach($DIRFILE as $DirFile) { $Nbr++; if ($Nbr % 2 == 1) $CLASS = 'even'; //Pair if ($Nbr % 2 == 0) $CLASS = 'odd'; //Impair ?> err)) { ?>
  Nom du fichier / dossier Taille Propriétaire Groupe Permissions Modification
Stat['filetype']['is_dir']) { $path2go = $path . '/' . $DirFile->Name; if($DirFile->Name == '.') $path2go = $path; if($DirFile->Name == '..') { $_tmp = explode('/',$path2go); //echo '
'; print_r($_tmp); echo '
'; $_tmp = array_slice($_tmp,0,count($_tmp)-2); //echo '
'; print_r($_tmp); echo '
'; $path2go = implode('/',$_tmp); } ?> Name == '1FilePhpExplorer.php') { ?>
I am this script :-D (Name?>)
Name,-4) == '.php') { ?>
Name?>
Name,-4) == '.jpg') { ?>
Name?>
Name,-4) == '.gif') { ?>
Name?>
Name,-4) == '.png') { ?>
Name?>
Name,-4) == '.bmp') { ?>
Name?>
Name,-4) == '.exe') { ?>
Name?>
Name,-4) == '.bat') { ?>
Name?>
Name,-4) == '.css') { ?>
Name?>
Name,-4) == '.pdf') { ?>
Name?>
Name,-4) == '.zip') { ?>
Name?>
Name,-3) == '.gz') { ?>
Name?>
Name,-4) == '.txt') { ?>
Name?>
Name,-4) == '.log') { ?>
Name?>
Name,-5) == '.html') { ?>
Name?>
Name,-4) == '.htm') { ?>
Name?>
Name,-3) == '.js') { ?>
Name?>
Name?>
Stat['filetype']['is_dir']) echo $DirFile->Stat['size']['size'] . ' o'; ?>  Stat['owner']['owner']['name']; ?> Stat['owner']['group']['name']; ?> Stat['perms']['human']; ?> Stat['perms']['octal1']; ?>
  
Stat['time']['modified']; ?>
 

err?>

Yves Réveillon - eurower.fr
'; print_r($DIRFILE); echo ''; ?>