retesere20

pma-removed

Dec 10th, 2019
116
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. public function backend_call($act)
  3. {
  4. if ($this->pma_installed_using_ajax)
  5. {
  6. if($act=="install_pma")
  7. {
  8. $this->download_install_pma();
  9. exit(__('Installation complete.<script>location=location;</script>','wp-phpmyadmin-extension') );
  10. }
  11. }
  12. }
  13.  
  14. REMOVED:
  15. //======================== Download & install ========================
  16. if($this->pma_installed_using_ajax)
  17. {
  18. // download latest pma
  19. if ($this->pma_installed_using_download) if(!file_exists($this->pma_zipPath)) $this->getPmaZip(); // getPmaZip -----> removed: pastebin(dot)com/raw/r8jLN1P7
  20.  
  21. // remove if previous unpack was partial.
  22. $dir = $this->getPMA_FolderName();
  23. if( !empty($dir) && is_dir($dir) ) {
  24. if( !$this->rmdir_recursive($dir) )
  25. exit(__("Failure: can't remove the old $dir folder, click OK to re-try (If you will see this message again, do it manually from FTP).", 'wp-phpmyadmin-extension'));
  26. }
  27.  
  28. // unzip
  29. $this->unzip($this->pma_zipPath, $this->lib_absPath);
  30. usleep(500000);
  31. }
  32. //remove file
  33. if ($this->pma_installed_using_download) unlink($this->pma_zipPath);
  34. // =================================================
  35. */
RAW Paste Data