22 lines
732 B
PHP
22 lines
732 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shimmie2;
|
|
|
|
class ArchiveFileHandlerInfo extends ExtensionInfo
|
|
{
|
|
public const KEY = "handle_archive";
|
|
|
|
public string $key = self::KEY;
|
|
public string $name = "Handle Archives";
|
|
public string $url = self::SHIMMIE_URL;
|
|
public array $authors = self::SHISH_AUTHOR;
|
|
public string $description = "Allow users to upload archives (zip, etc)";
|
|
public ExtensionCategory $category = ExtensionCategory::FILE_HANDLING;
|
|
public ?string $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>";
|
|
}
|