Skip to content

Commit b9e5bf5

Browse files
committed
Cleanup. Comments.
1 parent 734340d commit b9e5bf5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The Unzipper
22

3-
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).
3+
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).
44

55
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.
66

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

unzipper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22
/**
3-
* The Unzipper extracts .zip archives and .gz files on webservers. It's handy if you
3+
* The Unzipper extracts .zip or .rar archives and .gz files on webservers. It's handy if you
44
* do not have shell access. E.g. if you want to upload a lot of files
55
* (php framework or image collection) as archive to save time.
66
*
77
*
88
* @author Andreas Tasch, at[tec], attec.at
99
* @license GNU GPL v3
1010
* @package attec.toolbox
11-
* @version 0.0.3 Beta
11+
* @version 0.0.4 Beta
1212
*/
1313

1414
$timestart = microtime(TRUE);
@@ -165,7 +165,7 @@ public static function extractGzipFile($archive, $destination) {
165165
public static function extractRarArchive($archive, $destination) {
166166
// Check if webserver supports unzipping.
167167
if (!class_exists('RarArchive')) {
168-
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>';
168+
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>';
169169
return;
170170
}
171171
// Check if archive is readable.
@@ -271,7 +271,7 @@ public static function extractRarArchive($archive, $destination) {
271271
<h1>Archive Unzipper</h1>
272272
<form action="" method="POST">
273273
<fieldset>
274-
<label for="zipfile">Select .zip archive or .gz or .rar archive file you want to extract:</label>
274+
<label for="zipfile">Select .zip or .rar archive or .gz file you want to extract:</label>
275275
<select name="zipfile" size="1" class="select">
276276
<?php foreach ($arc->zipfiles as $zip) {
277277
echo "<option>$zip</option>";

0 commit comments

Comments
 (0)