!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/   drwxr-xr-x
Free 28.72 GB of 117.98 GB (24.34%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
PhpMyAdmin\Controllers\Table;

use 
PhpMyAdmin\ConfigStorage\Relation;
use 
PhpMyAdmin\ConfigStorage\RelationCleanup;
use 
PhpMyAdmin\DatabaseInterface;
use 
PhpMyAdmin\Operations;
use 
PhpMyAdmin\ResponseRenderer;
use 
PhpMyAdmin\Sql;
use 
PhpMyAdmin\Template;
use 
PhpMyAdmin\Transformations;
use 
PhpMyAdmin\Url;
use 
PhpMyAdmin\Util;
use 
PhpMyAdmin\Utils\ForeignKey;

use function 
__;
use function 
sprintf;

final class 
DeleteRowsController extends AbstractController
{
    
/** @var DatabaseInterface */
    
private $dbi;

    public function 
__construct(
        
ResponseRenderer $response,
        
Template $template,
        
string $db,
        
string $table,
        
DatabaseInterface $dbi
    
) {
        
parent::__construct($response$template$db$table);
        
$this->dbi $dbi;
    }

    public function 
__invoke(): void
    
{
        global 
$db$goto$sql_query$table$disp_message$disp_query$active_page;

        
$mult_btn $_POST['mult_btn'] ?? '';
        
$original_sql_query $_POST['original_sql_query'] ?? '';
        
$selected $_POST['selected'] ?? [];

        
$relation = new Relation($this->dbi);
        
$sql = new Sql(
            
$this->dbi,
            
$relation,
            new 
RelationCleanup($this->dbi$relation),
            new 
Operations($this->dbi$relation),
            new 
Transformations(),
            
$this->template
        
);

        if (
$mult_btn === __('Yes')) {
            
$default_fk_check_value ForeignKey::handleDisableCheckInit();
            
$sql_query '';

            foreach (
$selected as $row) {
                
$query sprintf(
                    
'DELETE FROM %s WHERE %s LIMIT 1;',
                    
Util::backquote($table),
                    
$row
                
);
                
$sql_query .= $query "\n";
                
$this->dbi->selectDb($db);
                
$this->dbi->query($query);
            }

            if (! empty(
$_REQUEST['pos'])) {
                
$_REQUEST['pos'] = $sql->calculatePosForLastPage($db$table$_REQUEST['pos']);
            }

            
ForeignKey::handleDisableCheckCleanup($default_fk_check_value);

            
$disp_message __('Your SQL query has been executed successfully.');
            
$disp_query $sql_query;
        }

        
$_url_params $GLOBALS['urlParams'];
        
$_url_params['goto'] = Url::getFromRoute('/table/sql');

        if (isset(
$original_sql_query)) {
            
$sql_query $original_sql_query;
        }

        
$active_page Url::getFromRoute('/sql');

        
$this->response->addHTML($sql->executeQueryAndSendQueryResponse(
            
null,
            
false,
            
$db,
            
$table,
            
null,
            
null,
            
null,
            
null,
            
null,
            
$goto,
            
null,
            
null,
            
$sql_query,
            
null
        
));
    }
}

:: 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.0033 ]--