SHARE
TWEET

unzip.php

a guest Mar 1st, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if(!$_REQUEST["myaction"]=="dounzip"){ ?>
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>Quick Installer</title>
  7. <style type="text/css">
  8. body, td {
  9.     font-size: 14px;
  10.     font-family:Arial, Helvetica, sans-serif;
  11.     color: #4e4e4e;
  12.     background:#fff;
  13.     text-align:center;
  14. }
  15. .wrapper {
  16.     text-align:left;
  17.     background:#f4f6f5;
  18.     padding:0px 0 20px;
  19.     width:700px;
  20.     -webkit-border-radius: 5px;
  21.     -moz-border-radius: 5px;
  22.     border-radius: 5px;
  23.     margin:30px auto;
  24. }
  25. .wrap {
  26.     background:#ea433b;
  27.     border-radius: 5px;
  28.     -moz-border-radius: 5px;
  29.     -webkit-border-radius:5px;
  30.     padding:5px;
  31.     color:#fff;
  32. }
  33. .submit {
  34.     border-top:1px solid #dbdbdb;
  35.     padding-top:15px;
  36. }
  37. .submit input {
  38.     margin-left:244px;
  39. }
  40. .indent {
  41.     padding:16px 25px;
  42.     border-top:3px solid #dfe1e0;
  43. }
  44. #message span{
  45.     display: block;
  46. }
  47. #message .error{
  48.     color: #f00;
  49. }
  50. #unzip_form.loader{
  51.     background: url('data:image/gif;base64,R0lGODlhMgAyAKUAACQmJJSWlMTKxNzi3FxeXOzu7NTW1Dw+PKyytOzq7NTS1OTq5HRydPT29Nze3ExKTLy+vDQ2NMzSzPTy9Nza3CwuLKyurMzKzOTi5GxqbOzy7NTa1ERGRMTGxCwqLJyenGRiZDxCRLS6vOTq7ISChFRSVMTCxMzOzOTm5Ozy9NTa3PT29QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFN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bHSJfg5heNpEgBPGyE4LuFpA+7SLY15gFIHUTjQ5fN5KF0On8riqn30NsoLQlTTZarXqypNY3ll/amXatjr6Iw/5pAiblKwY6g3ebzH5dGTY25FFdLgNSP3uwyUVyFQLZ6aRSyAk0kZ+CHJSCUpJJE/nQVVEUf4pLOHAswVEdEiHVmHRwFckwXkjgMmiRGfVhgYsJg+/IQVVoggLhZgNvTNRMx9EEQnQGHGZFhAg1NAgM6CI8qXSWKc4AdIOtfRFdWDw5Gh0ytM9sWdChU1uQiPbCxg33BLZpXHIztNgFA5eCxZzEaeSNUABMqt0mWSjkDQ4UsjAanimyo60MecahrAgAlujWHmImdMwCdmKfwlgTYnxLbAfrsEAQA7') no-repeat;
  52. }
  53. .sect {
  54.     overflow:hidden;
  55.     margin-bottom:10px;
  56.     width:100%;
  57. }
  58. .label {
  59.     width:234px;
  60.     float:left;
  61.     text-align:left;
  62.     margin-right:10px;
  63.     line-height:42px;
  64.     text-indent:100px;
  65.     cursor: pointer;
  66. }
  67. .field {
  68.     width:350px;
  69.     float:left;
  70. }
  71. .field span {
  72.     font-size:10px
  73. }
  74. .css3button {
  75.     cursor:pointer;
  76.     font-family: Arial, Helvetica, sans-serif;
  77.     font-weight:bold;
  78.     font-size: 14px;
  79.     color: #ffffff;
  80.     padding: 10px 20px;
  81.     background: -moz-linear-gradient(  top,  #54cbe9 0%,  #3790cf);
  82.     background: -webkit-gradient(  linear, left top, left bottom,  from(#54cbe9),  to(#3790cf));
  83.     border-radius: 18px;
  84.     -moz-border-radius: 18px;
  85.     -webkit-border-radius: 18px;
  86.     border: 1px solid #ffffff;
  87.     -moz-box-shadow:
  88.  0px 0px 0px rgba(000, 000, 000, 0),  inset 1px 1px 2px rgba(255, 255, 255, 0.6);
  89.     -webkit-box-shadow:
  90.  0px 0px 0px rgba(000, 000, 000, 0),  inset 1px 1px 2px rgba(255, 255, 255, 0.6);
  91.     text-shadow:
  92.  1px 1px 0px rgba(000, 000, 000, 0.4),  0px 1px 0px rgba(255, 255, 255, 0.3);
  93.     background:#54cbe9\9;
  94.     outline: none !important;
  95. }
  96. .css3button[disabled]{
  97.     opacity: .5;
  98.     filter: alpha(opacity=50);
  99.     cursor: not-allowed;
  100. }
  101. .css3input {
  102.     font-size: 14px;
  103.     color: #000000;
  104.     padding: 10px;
  105.     border-radius: 5px;
  106.     -moz-border-radius: 5px;
  107.     -webkit-border-radius:5px;
  108.     border: 1px solid #ccc;
  109.     width:307px;
  110.     -webkit-box-sizing: border-box;
  111.     -moz-box-sizing: border-box;
  112.     box-sizing: border-box;
  113.     outline: none !important;
  114. }
  115. .p3 {
  116.     padding:7px;
  117. }
  118. a {
  119.     color: #000066;
  120.     text-decoration: none;
  121. }
  122. .form_indent {
  123.     padding-left:210px;
  124. }
  125. .small {
  126.     font:normal 11px Arial, Helvetica, sans-serif
  127. }
  128. h1 {
  129.     background:#ea433b;
  130.     border-bottom:1px solid #be382f;
  131.     -webkit-border-top-left-radius: 5px;
  132.     -moz-border-top-left-radius: 5px;
  133.     border-top-left-radius: 5px;
  134.     -webkit-border-top-right-radius: 5px;
  135.     -moz-border-top-right-radius: 5px;
  136.     border-top-right-radius: 5px;
  137.     text-indent:116px;
  138.     color:#fff;
  139.     font:bold 36px Arial, Helvetica, sans-serif;
  140.     line-height:64px;
  141.     margin:0;
  142.     text-shadow:
  143.  1px 2px 2px rgba(000, 000, 000, 0.4),  1px 2px 2px rgba(000, 000, 000, 0.3);
  144. }
  145. h1 div {
  146.     border-bottom:1px solid #d23d36;
  147. }
  148. h1 div div {
  149.     border-bottom:1px solid #e24137;
  150.     height:64px;
  151. }
  152. </style>
  153. <script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
  154. </head>
  155. <body>
  156. <div class="wrapper">
  157.     <h1><div><div>Quick Installer</div></div></h1>
  158.     <div class="indent">
  159.         <form name="myform" id="unzip_form" method="post" action="<?php $_SERVER["PHP_SELF"] ?>" enctype="multipart/form-data">
  160.             <div class="sect">
  161.                 <label for="zipfile" class="label"> Choose your zip file: </label>
  162.                 <div class="field">
  163.                     <select name="zipfile" class="css3input" id="zipfile">
  164.                         <option value="" selected>- Please choose -</option>
  165.                         <?php
  166.                         $fdir = opendir('./');
  167.                         while($file=readdir($fdir)){
  168.                             if(!is_file($file)) continue;
  169.                             if(preg_match('/\.zip$/mis',$file)){
  170.                                 echo "<option value='$file'>$file</option>\r\n";
  171.                             }
  172.                         }
  173.                     ?>
  174.                     </select>
  175.                 </div>
  176.             </div>
  177.             <div class="sect">
  178.                 <label for="todir" class="label"> Unzip to: </label>
  179.                 <div class="field">
  180.                     <input name="todir" type="text" id="todir" value="" size="15" class="css3input">
  181.                     <br>
  182.                     <span>(Leave this field blank if you want to unzip into a current directory. Folder should be writable - 755 permissions)</span> </div>
  183.             </div>
  184.             <div class="sect submit">
  185.                 <input name="myaction" type="hidden" id="myaction" value="dounzip">
  186.                 <input type="submit" id="submit" name="Submit" class="css3button" value="Unzip" disabled>
  187.                 <a href="/" id="root" class="css3button">To ROOT</a>
  188.             </div>
  189.         </form>
  190.         <div id="message"></div>
  191.     </div>
  192. </div>
  193. <script>
  194.     $(function(){
  195.         $('#root').attr({href: window.location.href.replace('unzip.php','')})
  196.         $('#zipfile').change(function(){
  197.             if($(this).val().length){
  198.                 $('#submit').prop( "disabled", false );
  199.             }
  200.             else {
  201.                 $('#submit').prop( "disabled", true );
  202.             }
  203.         })
  204.         $('#unzip_form').submit(function(event){
  205.             value   = $(this).serializeArray();
  206.             console.log(value[1].value);
  207.             $.ajax({
  208.                 type   : 'POST',
  209.                 data   : value,
  210.                 beforeSend: function(){
  211.                     $("#unzip_form")
  212.                     .addClass("loader")
  213.                 },
  214.                 success: function (response) {
  215.                         console.log(response)
  216.                     switch(response) {
  217.                         case 'ok':
  218.                             $("#unzip_form").
  219.                             removeClass("loader")
  220.                             if(!value[1].value.length){
  221.                                 value[1].value = 'ROOT'
  222.                             }
  223.                             $('#message')
  224.                             .append("<span class='success'>Archive \""+value[0].value+"\" unzipped successfully to the \""+value[1].value+"\" directory</span>")
  225.                             $('#unzip_form').trigger('reset');
  226.                             $('#submit').prop( "disabled", true );
  227.                             break;
  228.                         default:
  229.                             $("#unzip_form")
  230.                             .removeClass("loader")
  231.                             $('#message')
  232.                             .append("<span class='error'>Oops... Something wrong. Archive \""+value[0].value+"\" doesn't unzipped.</span>")
  233.                             break;
  234.                     }
  235.                 }
  236.             });
  237.             event.preventDefault();
  238.         })
  239.     })
  240. </script>
  241. </body>
  242. </html>
  243.  
  244.             <?php }
  245.  
  246. else{
  247.  
  248.     set_time_limit(0);
  249.     clearstatcache();
  250.  
  251.     if(!$_POST["todir"]) $_POST["todir"] = ".";
  252.  
  253.     $zip = new ZipArchive;
  254.      $res = $zip->open($_POST["zipfile"]);
  255.      if ($res === TRUE) {
  256.          $zip->extractTo($_POST["todir"]);
  257.          $zip->close();
  258.          echo 'ok';
  259.      } else {
  260.          echo 'false';
  261.      }
  262.  }
  263. ?>
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