!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/src/Utilities/   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:     StringUtil.php (1.68 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * A class of utilities for dealing with strings.
 */

namespace Automattic\Kkart\Utilities;

/**
 * A class of utilities for dealing with strings.
 */
final class StringUtil {

    
/**
     * Checks to see whether or not a string starts with another.
     *
     * @param string $string The string we want to check.
     * @param string $starts_with The string we're looking for at the start of $string.
     * @param bool   $case_sensitive Indicates whether the comparison should be case-sensitive.
     *
     * @return bool True if the $string starts with $starts_with, false otherwise.
     */
    
public static function starts_withstring $stringstring $starts_withbool $case_sensitive true ): bool {
        
$len strlen$starts_with );
        if ( 
$len strlen$string ) ) {
            return 
false;
        }

        
$string substr$string0$len );

        if ( 
$case_sensitive ) {
            return 
strcmp$string$starts_with ) === 0;
        }

        return 
strcasecmp$string$starts_with ) === 0;
    }

    
/**
     * Checks to see whether or not a string ends with another.
     *
     * @param string $string The string we want to check.
     * @param string $ends_with The string we're looking for at the end of $string.
     * @param bool   $case_sensitive Indicates whether the comparison should be case-sensitive.
     *
     * @return bool True if the $string ends with $ends_with, false otherwise.
     */
    
public static function ends_withstring $stringstring $ends_withbool $case_sensitive true ): bool {
        
$len strlen$ends_with );
        if ( 
$len strlen$string ) ) {
            return 
false;
        }

        
$string substr$string, -$len );

        if ( 
$case_sensitive ) {
            return 
strcmp$string$ends_with ) === 0;
        }

        return 
strcasecmp$string$ends_with ) === 0;
    }
}

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