Skip to content

Commit

Permalink
Cleanup. Comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeet committed Jul 17, 2016
1 parent 734340d commit b9e5bf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The Unzipper

The Unzipper extracts .zip archives or .gz files on webservers. It detects .zip/.gz archives and let you choose which one to extract (if there are multiple archives available).
The Unzipper extracts .zip and .rar archives or .gz files on webservers. It detects .zip/.rar/.gz archives and let you choose which one to extract (if there are multiple archives available).

It's handy if you do not have shell access. E.g. if you want to upload a lot of files (php framework or image collection) as archive - because it is much faster than uploading each file by itself.

Expand All @@ -13,7 +13,7 @@ PHP 5.3 and newer
## Usage
* Download unzipper.php and place it in the same directory as your .zip archive.
* In Browser type URL to unzipper.php
* Choose .zip archive you want to extract
* Choose .zip, .rar archive or .gz file you want to extract
* Optionally select an extraction path, defaults to current directory
* Click "Unzip Archive"

Expand Down
8 changes: 4 additions & 4 deletions unzipper.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
/**
* The Unzipper extracts .zip archives and .gz files on webservers. It's handy if you
* The Unzipper extracts .zip or .rar archives and .gz files on webservers. It's handy if you
* do not have shell access. E.g. if you want to upload a lot of files
* (php framework or image collection) as archive to save time.
*
*
* @author Andreas Tasch, at[tec], attec.at
* @license GNU GPL v3
* @package attec.toolbox
* @version 0.0.3 Beta
* @version 0.0.4 Beta
*/

$timestart = microtime(TRUE);
Expand Down Expand Up @@ -165,7 +165,7 @@ public static function extractGzipFile($archive, $destination) {
public static function extractRarArchive($archive, $destination) {
// Check if webserver supports unzipping.
if (!class_exists('RarArchive')) {
self::$status = '<span class="status--ERROR">Error: Your PHP version does not support Rar functionality.<a class="info" href="http://php.net/manual/en/rar.installation.php">How to install RarArchive</a></span>';
self::$status = '<span class="status--ERROR">Error: Your PHP version does not support .rar archive functionality. <a class="info" href="http://php.net/manual/en/rar.installation.php" target="_blank">How to install RarArchive</a></span>';
return;
}
// Check if archive is readable.
Expand Down Expand Up @@ -271,7 +271,7 @@ public static function extractRarArchive($archive, $destination) {
<h1>Archive Unzipper</h1>
<form action="" method="POST">
<fieldset>
<label for="zipfile">Select .zip archive or .gz or .rar archive file you want to extract:</label>
<label for="zipfile">Select .zip or .rar archive or .gz file you want to extract:</label>
<select name="zipfile" size="1" class="select">
<?php foreach ($arc->zipfiles as $zip) {
echo "<option>$zip</option>";
Expand Down

0 comments on commit b9e5bf5

Please sign in to comment.