25 lines
714 B
PHP
25 lines
714 B
PHP
<?php
|
|
|
|
/*
|
|
* Name: Handle Archives
|
|
* Author: Shish <webmaster@shishnet.org>
|
|
* Description: Allow users to upload archives (zip, etc)
|
|
* Documentation:
|
|
*
|
|
*/
|
|
|
|
class ArchiveFileHandlerInfo extends ExtensionInfo
|
|
{
|
|
public const KEY = "handle_archive";
|
|
|
|
public $key = self::KEY;
|
|
public $name = "Handle Archives";
|
|
public $url = self::SHIMMIE_URL;
|
|
public $authors = self::SHISH_AUTHOR;
|
|
public $description = "Allow users to upload archives (zip, etc)";
|
|
public $documentation =
|
|
"Note: requires exec() access and an external unzip command
|
|
<p>Any command line unzipper should work, some examples:
|
|
<p>unzip: <code>unzip -d \"%d\" \"%f\"</code>
|
|
<br>7-zip: <code>7zr x -o\"%d\" \"%f\"</code>";
|
|
}
|