403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.216.231
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 8.2.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/ngoaingusonganh.com-bk/public_html/site/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/ngoaingusonganh.com-bk/public_html/site/helpers/date_helper.php
<?php
function datemysql($day=''){
	return strftime("%Y-%m-%d", strtotime($day));
} 
function datevn2mysql($day=''){
	$data = explode("/", $day) ;
	return $data[2]."-".$data[1]."-".$data[0];
}
function dateus2mysql($day=''){
	$data = explode("/", $day) ;
	return $data[2]."-".$data[0]."-".$data[1];
}
function datevn($day='', $dot='.'){
	if(empty($day)) return '';
	return strftime("%d$dot%m$dot%Y", strtotime($day));
} 
function disdate($d1,$d2){
    //date yyyy-mm-dd
    $ar = explode("-",$d1) ;
    $br = explode("-",$d2) ;
   
    $a = mktime(0,0,0,intval($ar[1]),intval($ar[2]),intval($ar[0])) ;
    $b = mktime(0,0,0,intval($br[1]),intval($br[2]),intval($br[0])) ;
   
    $c = $b - $a ;
    $e = $c / (24 * 60 * 60) ;
   
    return $e ;
}

function countdate($date, $str)
{
	$date = new DateTime($date);
	$date->modify($str);
	return $date->format('Y-m-d');

}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit