mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* split Screenshot upload & management into separate endpoints * move shared functions to manager classes * cleanup javascript * move test for config screenshot min size to cfg class
24 lines
658 B
PHP
24 lines
658 B
PHP
<?php
|
|
|
|
namespace Aowow;
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
|
|
class AdminScreenshotsActionListResponse extends TextResponse
|
|
{
|
|
protected int $requiredUserGroup = U_GROUP_ADMIN | U_GROUP_BUREAU | U_GROUP_SCREENSHOT;
|
|
|
|
protected array $expectedGET = array(
|
|
'all' => ['filter' => FILTER_CALLBACK, 'options' => [self::class, 'checkEmptySet']]
|
|
);
|
|
|
|
protected function generate() : void
|
|
{
|
|
$pages = ScreenshotMgr::getPages($this->_get['all'], $nPages);
|
|
$this->result = 'ssm_screenshotPages = '.Util::toJSON($pages).";\n";
|
|
$this->result .= 'ssm_numPagesFound = '.$nPages.';';
|
|
}
|
|
}
|