BLUE
PHP 7.4.33
Path:
/usr/share/phpmyadmin/libraries/classes/Controllers/Server/Status/Monitor
Run
Logout
Edit File
Size: 1.74 KB
Close
/usr/share/phpmyadmin/libraries/classes/Controllers/Server/Status/Monitor/GeneralLogController.php
Text
Base64
<?php declare(strict_types=1); namespace PhpMyAdmin\Controllers\Server\Status\Monitor; use PhpMyAdmin\Controllers\Server\Status\AbstractController; use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\ResponseRenderer; use PhpMyAdmin\Server\Status\Data; use PhpMyAdmin\Server\Status\Monitor; use PhpMyAdmin\Template; use PhpMyAdmin\Url; final class GeneralLogController extends AbstractController { /** @var Monitor */ private $monitor; /** @var DatabaseInterface */ private $dbi; public function __construct( ResponseRenderer $response, Template $template, Data $data, Monitor $monitor, DatabaseInterface $dbi ) { parent::__construct($response, $template, $data); $this->monitor = $monitor; $this->dbi = $dbi; } public function __invoke(): void { global $errorUrl; $params = [ 'time_start' => $_POST['time_start'] ?? null, 'time_end' => $_POST['time_end'] ?? null, 'limitTypes' => $_POST['limitTypes'] ?? null, 'removeVariables' => $_POST['removeVariables'] ?? null, ]; $errorUrl = Url::getFromRoute('/'); if ($this->dbi->isSuperUser()) { $this->dbi->selectDb('mysql'); } if (! $this->response->isAjax()) { return; } $data = $this->monitor->getJsonForLogDataTypeGeneral( (int) $params['time_start'], (int) $params['time_end'], (bool) $params['limitTypes'], (bool) $params['removeVariables'] ); if ($data === null) { $this->response->setRequestStatus(false); return; } $this->response->addJSON(['message' => $data]); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ChartingDataController.php
1.31 KB
lrwxr-xr-x
2023-02-07 16:26:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GeneralLogController.php
1.74 KB
lrwxr-xr-x
2023-02-07 16:26:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LogVarsController.php
1.40 KB
lrwxr-xr-x
2023-02-07 16:26:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
QueryAnalyzerController.php
1.41 KB
lrwxr-xr-x
2023-02-07 16:26:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SlowLogController.php
1.53 KB
lrwxr-xr-x
2023-02-07 16:26:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).