Subversion Repositories eFlore/Applications.cel

Rev

Rev 634 | Rev 1621 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 634 Rev 996
Line 75... Line 75...
75
}
75
}
Line 76... Line 76...
76
 
76
 
77
// http://uk.php.net/manual/en/function.getdate.php
77
// http://uk.php.net/manual/en/function.getdate.php
78
function gmgetdate($ts = null){
78
function gmgetdate($ts = null){
79
	$k = array('seconds','minutes','hours','mday','wday','mon','year','yday','weekday','month',0);
79
	$k = array('seconds','minutes','hours','mday','wday','mon','year','yday','weekday','month',0);
80
	return(array_comb($k,split(":",gmdate('s:i:G:j:w:n:Y:z:l:F:U',is_null($ts)?time():$ts))));
80
	return(array_comb($k,explode(":",gmdate('s:i:G:j:w:n:Y:z:l:F:U',is_null($ts)?time():$ts))));
Line 81... Line 81...
81
	} 
81
	} 
82
 
82
 
83
// Added for PHP4 compatibility
83
// Added for PHP4 compatibility
Line 840... Line 840...
840
			return array('string'=>$num, 'formatColor'=>null); 
840
			return array('string'=>$num, 'formatColor'=>null); 
841
		}
841
		}
Line 842... Line 842...
842
 
842
 
843
		// Custom pattern can be POSITIVE;NEGATIVE;ZERO
843
		// Custom pattern can be POSITIVE;NEGATIVE;ZERO
844
		// The "text" option as 4th parameter is not handled
844
		// The "text" option as 4th parameter is not handled
845
		$parts = split(";",$format);
845
		$parts = explode(";",$format);
846
		$pattern = $parts[0];
846
		$pattern = $parts[0];
847
		// Negative pattern
847
		// Negative pattern
848
		if (count($parts)>2 && $num==0) {
848
		if (count($parts)>2 && $num==0) {
849
			$pattern = $parts[2];
849
			$pattern = $parts[2];