!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/3ros/shindig/external/Zend/Validate/   drwxrwxr-x
Free 15.68 GB of 61.93 GB (25.32%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Date.php (4.38 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Zend Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://framework.zend.com/license/new-bsd
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@zend.com so we can send you a copy immediately.
 *
 * @category   Zend
 * @package    Zend_Validate
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 * @version    $Id: Date.php 8553 2008-03-05 16:39:50Z darby $
 */

/**
 * @see Zend_Validate_Abstract
 */
require_once 'external/Zend/Validate/Abstract.php';

/**
 * @category   Zend
 * @package    Zend_Validate
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */
class Zend_Validate_Date extends Zend_Validate_Abstract {
  
/**
   * Validation failure message key for when the value does not follow the YYYY-MM-DD format
   */
  
const NOT_YYYY_MM_DD 'dateNotYYYY-MM-DD';
  
  
/**
   * Validation failure message key for when the value does not appear to be a valid date
   */
  
const INVALID 'dateInvalid';
  
  
/**
   * Validation failure message key for when the value does not fit the given dateformat or locale
   */
  
const FALSEFORMAT 'dateFalseFormat';
  
  
/**
   * Validation failure message template definitions
   *
   * @var array
   */
  
protected $_messageTemplates = array(self::NOT_YYYY_MM_DD => "'%value%' is not of the format YYYY-MM-DD"
      
self::INVALID => "'%value%' does not appear to be a valid date"
      
self::FALSEFORMAT => "'%value%' does not fit given date format");
  
  
/**
   * Optional format
   *
   * @var string|null
   */
  
protected $_format;
  
  
/**
   * Optional locale
   *
   * @var string|Zend_Locale|null
   */
  
protected $_locale;

  
/**
   * Sets validator options
   *
   * @param  string             $format OPTIONAL
   * @param  string|Zend_Locale $locale OPTIONAL
   * @return void
   */
  
public function __construct($format null$locale null) {
    
$this->setFormat($format);
    
$this->setLocale($locale);
  }

  
/**
   * Returns the locale option
   *
   * @return string|Zend_Locale|null
   */
  
public function getLocale() {
    return 
$this->_locale;
  }

  
/**
   * Sets the locale option
   *
   * @param  string|Zend_Locale $locale
   * @return Zend_Validate_Date provides a fluent interface
   */
  
public function setLocale($locale null) {
    if (
$locale !== null) {
      require_once 
'external/Zend/Locale.php';
      if (! 
Zend_Locale::isLocale($locale)) {
        require_once 
'external/Zend/Validate/Exception.php';
        throw new 
Zend_Validate_Exception("The locale '$locale' is no known locale");
      }
    }
    
$this->_locale $locale;
    return 
$this;
  }

  
/**
   * Returns the locale option
   *
   * @return string|null
   */
  
public function getFormat() {
    return 
$this->_format;
  }

  
/**
   * Sets the format option
   *
   * @param  string $format
   * @return Zend_Validate_Date provides a fluent interface
   */
  
public function setFormat($format null) {
    
$this->_format $format;
    return 
$this;
  }

  
/**
   * Defined by Zend_Validate_Interface
   *
   * Returns true if $value is a valid date of the format YYYY-MM-DD
   * If optional $format or $locale is set the date format is checked
   * according to Zend_Date, see Zend_Date::isDate()
   *
   * @param  string $value
   * @return boolean
   */
  
public function isValid($value) {
    
$valueString = (string)$value;
    
    
$this->_setValue($valueString);
    
    if ((
$this->_format !== null) or ($this->_locale !== null)) {
      require_once 
'external/Zend/Date.php';
      if (! 
Zend_Date::isDate($value$this->_format$this->_locale)) {
        
$this->_error(self::FALSEFORMAT);
        return 
false;
      }
    } else {
      if (! 
preg_match('/^\d{4}-\d{2}-\d{2}$/'$valueString)) {
        
$this->_error(self::NOT_YYYY_MM_DD);
        return 
false;
      }
      
      list(
$year$month$day) = sscanf($valueString'%d-%d-%d');
      
      if (! 
checkdate($month$day$year)) {
        
$this->_error(self::INVALID);
        return 
false;
      }
    }
    
    return 
true;
  }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.6561 ]--