smsonayla.org - c99shell

!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: LiteSpeed. PHP/7.4.33 

uname -a: Linux server704.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13
UTC 2025 x86_64
 

uid=1309(necipbey) gid=1314(necipbey) groups=1314(necipbey) 

Safe-mode: OFF (not secure)

/home/necipbey/public_html/system/Validation/StrictRules/   drwxr-xr-x
Free 3432.42 GB of 4265.01 GB (80.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

declare(strict_types=1);

/**
 * This file is part of CodeIgniter 4 framework.
 *
 * (c) CodeIgniter Foundation <admin@codeigniter.com>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace CodeIgniter\Validation\StrictRules;

use 
CodeIgniter\Validation\FormatRules as NonStrictFormatRules;

/**
 * Format validation Rules.
 */
class FormatRules
{
    private 
NonStrictFormatRules $nonStrictFormatRules;

    public function 
__construct()
    {
        
$this->nonStrictFormatRules = new NonStrictFormatRules();
    }

    
/**
     * Alpha
     *
     * @param mixed $str
     */
    
public function alpha($str null): bool
    
{
        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->alpha($str);
    }

    
/**
     * Alpha with spaces.
     *
     * @param mixed $value Value.
     *
     * @return bool True if alpha with spaces, else false.
     */
    
public function alpha_space($value null): bool
    
{
        if (! 
is_string($value)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->alpha_space($value);
    }

    
/**
     * Alphanumeric with underscores and dashes
     *
     * @param mixed $str
     */
    
public function alpha_dash($str null): bool
    
{
        if (
is_int($str)) {
            
$str = (string) $str;
        }

        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->alpha_dash($str);
    }

    
/**
     * Alphanumeric, spaces, and a limited set of punctuation characters.
     * Accepted punctuation characters are: ~ tilde, ! exclamation,
     * # number, $ dollar, % percent, & ampersand, * asterisk, - dash,
     * _ underscore, + plus, = equals, | vertical bar, : colon, . period
     * ~ ! # $ % & * - _ + = | : .
     *
     * @param mixed $str
     *
     * @return bool
     */
    
public function alpha_numeric_punct($str)
    {
        if (
is_int($str) || is_float($str)) {
            
$str = (string) $str;
        }

        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->alpha_numeric_punct($str);
    }

    
/**
     * Alphanumeric
     *
     * @param mixed $str
     */
    
public function alpha_numeric($str null): bool
    
{
        if (
is_int($str)) {
            
$str = (string) $str;
        }

        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->alpha_numeric($str);
    }

    
/**
     * Alphanumeric w/ spaces
     *
     * @param mixed $str
     */
    
public function alpha_numeric_space($str null): bool
    
{
        if (
is_int($str)) {
            
$str = (string) $str;
        }

        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->alpha_numeric_space($str);
    }

    
/**
     * Any type of string
     *
     * @param mixed $str
     */
    
public function string($str null): bool
    
{
        return 
$this->nonStrictFormatRules->string($str);
    }

    
/**
     * Decimal number
     *
     * @param mixed $str
     */
    
public function decimal($str null): bool
    
{
        if (
is_int($str) || is_float($str)) {
            
$str = (string) $str;
        }

        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->decimal($str);
    }

    
/**
     * String of hexidecimal characters
     *
     * @param mixed $str
     */
    
public function hex($str null): bool
    
{
        if (
is_int($str)) {
            
$str = (string) $str;
        }

        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->hex($str);
    }

    
/**
     * Integer
     *
     * @param mixed $str
     */
    
public function integer($str null): bool
    
{
        if (
is_int($str)) {
            
$str = (string) $str;
        }

        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->integer($str);
    }

    
/**
     * Is a Natural number  (0,1,2,3, etc.)
     *
     * @param mixed $str
     */
    
public function is_natural($str null): bool
    
{
        if (
is_int($str)) {
            
$str = (string) $str;
        }

        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->is_natural($str);
    }

    
/**
     * Is a Natural number, but not a zero  (1,2,3, etc.)
     *
     * @param mixed $str
     */
    
public function is_natural_no_zero($str null): bool
    
{
        if (
is_int($str)) {
            
$str = (string) $str;
        }

        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->is_natural_no_zero($str);
    }

    
/**
     * Numeric
     *
     * @param mixed $str
     */
    
public function numeric($str null): bool
    
{
        if (
is_int($str) || is_float($str)) {
            
$str = (string) $str;
        }

        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->numeric($str);
    }

    
/**
     * Compares value against a regular expression pattern.
     *
     * @param mixed $str
     */
    
public function regex_match($strstring $pattern): bool
    
{
        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->regex_match($str$pattern);
    }

    
/**
     * Validates that the string is a valid timezone as per the
     * timezone_identifiers_list function.
     *
     * @see http://php.net/manual/en/datetimezone.listidentifiers.php
     *
     * @param mixed $str
     */
    
public function timezone($str null): bool
    
{
        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->timezone($str);
    }

    
/**
     * Valid Base64
     *
     * Tests a string for characters outside of the Base64 alphabet
     * as defined by RFC 2045 http://www.faqs.org/rfcs/rfc2045
     *
     * @param mixed $str
     */
    
public function valid_base64($str null): bool
    
{
        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->valid_base64($str);
    }

    
/**
     * Valid JSON
     *
     * @param mixed $str
     */
    
public function valid_json($str null): bool
    
{
        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->valid_json($str);
    }

    
/**
     * Checks for a correctly formatted email address
     *
     * @param mixed $str
     */
    
public function valid_email($str null): bool
    
{
        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->valid_email($str);
    }

    
/**
     * Validate a comma-separated list of email addresses.
     *
     * Example:
     *     valid_emails[one@example.com,two@example.com]
     *
     * @param mixed $str
     */
    
public function valid_emails($str null): bool
    
{
        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->valid_emails($str);
    }

    
/**
     * Validate an IP address (human readable format or binary string - inet_pton)
     *
     * @param mixed       $ip
     * @param string|null $which IP protocol: 'ipv4' or 'ipv6'
     */
    
public function valid_ip($ip null, ?string $which null): bool
    
{
        if (! 
is_string($ip)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->valid_ip($ip$which);
    }

    
/**
     * Checks a string to ensure it is (loosely) a URL.
     *
     * Warning: this rule will pass basic strings like
     * "banana"; use valid_url_strict for a stricter rule.
     *
     * @param mixed $str
     */
    
public function valid_url($str null): bool
    
{
        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->valid_url($str);
    }

    
/**
     * Checks a URL to ensure it's formed correctly.
     *
     * @param mixed       $str
     * @param string|null $validSchemes comma separated list of allowed schemes
     */
    
public function valid_url_strict($str null, ?string $validSchemes null): bool
    
{
        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->valid_url_strict($str$validSchemes);
    }

    
/**
     * Checks for a valid date and matches a given date format
     *
     * @param mixed $str
     */
    
public function valid_date($str null, ?string $format null): bool
    
{
        if (! 
is_string($str)) {
            return 
false;
        }

        return 
$this->nonStrictFormatRules->valid_date($str$format);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0046 ]--