Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv24212/lib
Modified Files:
stdlib.php
Log Message:
Rename Rfc822DateTime() to Rfc2822DateTime(). (Also fix it.)
Add CTime().
Remove debugging cruft.
Index: stdlib.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/stdlib.php,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -r1.57 -r1.58
*** stdlib.php 2001/12/11 17:47:10 1.57
--- stdlib.php 2001/12/11 18:16:12 1.58
***************
*** 106,110 ****
list ($proto) = explode(':', $protocol_or_url, 2);
- echo "PROTO: $proto<br>\n";
if (isset($URL_LINK_ICONS[$proto])) {
--- 106,109 ----
***************
*** 115,120 ****
}
- echo "IMG: $linkimg<br>\n";
-
if (empty($linkimg))
return '';
--- 114,117 ----
***************
*** 583,590 ****
* @return string Date and time in RFC-2822 format.
*/
! function Rfc822DateTime ($time = false) {
if ($time === false)
$time = time();
! return date('D, d F H:i:s ', $time) . TimezoneOffset($time, 'no colon');
}
--- 580,600 ----
* @return string Date and time in RFC-2822 format.
*/
! function Rfc2822DateTime ($time = false) {
! if ($time === false)
! $time = time();
! return date('D, j M Y H:i:s ', $time) . TimezoneOffset($time, 'no colon');
! }
!
! /**
! * Format time to standard 'ctime' format.
! *
! * @param $time time_t Time. Default: now.
! * @return string Date and time in RFC-2822 format.
! */
! function CTime ($time = false)
! {
if ($time === false)
$time = time();
! return date("D M j H:i:s Y", $time);
}
|