403Webshell
Server IP : 87.98.154.146  /  Your IP : 216.73.216.101
Web Server : Apache
System : Linux webm005.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : bsiadvisil ( 110003)
PHP Version : 7.3.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/bsiadvisil/www/components/com_rsform/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/bsiadvisil/www/components/com_rsform/helpers/datevalidation.php
<?php
/**
* @package RSForm! Pro
* @copyright (C) 2007-2014 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

class RSFormProDateValidations
{
	public static function none($day, $month, $year, $data = array()) {
		// no validation
		$valid = true;
		return $valid;
	}
	
	public static function fromtoday($day, $month, $year, $data = array()) {
		$today    = JFactory::getDate();
		$selected = JFactory::getDate($year.'-'.self::padding($month).'-'.self::padding($day).' 23:59:59');
		
		return $selected->toUnix() >= $today->toUnix();
	}
	
	public static function fromtomorrow($day, $month, $year, $data = array()) {
		$tomorrow = JFactory::getDate();
		$tomorrow->modify('+1 day');
		$selected = JFactory::getDate($year.'-'.self::padding($month).'-'.self::padding($day).' 23:59:59');
		
		return $selected->toUnix() >= $tomorrow->toUnix();
	}
	
	public static function beforetodayexcluding($day, $month, $year, $data = array()) {
		$today    = JFactory::getDate();
		$today->setTime(0, 0, 0);
		$selected = JFactory::getDate($year.'-'.self::padding($month).'-'.self::padding($day).' 00:00:00');
		
		return $selected->toUnix() < $today->toUnix();
	}
	
	public static function beforetodayincluding($day, $month, $year, $data = array()) {
		$today    = JFactory::getDate();
		$today->setTime(23, 59, 59);
		$selected = JFactory::getDate($year.'-'.self::padding($month).'-'.self::padding($day).' 00:00:00');
		
		return $selected->toUnix() < $today->toUnix();
	}
	
	protected static function padding($value) {
		return str_pad($value, 2, '0', STR_PAD_LEFT);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit