|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 22.56 GB of 70.42 GB (32.04%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
src/
maildrop-2.2.0/
rfc822/
- drwxr-xr-x
|
Viewing file: rfc822_mkdate.c (1.47 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
/* ** Copyright 1998 - 1999 Double Precision, Inc. ** See COPYING for distribution information. */
/* ** $Id: rfc822_mkdate.c,v 1.4 2002/04/09 02:49:55 mrsam Exp $ */
#include "rfc822.h"
#include <sys/types.h> #include <time.h> #include <stdio.h> #include <string.h> #if HAVE_UNISTD_H #include <unistd.h> #endif
static const char * const months[]={ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
static const char * const wdays[]={ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
void rfc822_mkdate_buf(time_t t, char *buf) { struct tm *p; int offset;
#if USE_TIME_ALTZONE
p=localtime(&t); offset= -(int)timezone;
if (p->tm_isdst > 0) offset= -(int)altzone;
if (offset % 60) { offset=0; p=gmtime(&t); } offset /= 60; #else #if USE_TIME_DAYLIGHT
p=localtime(&t); offset= -(int)timezone;
if (p->tm_isdst > 0) offset += 60*60; if (offset % 60) { offset=0; p=gmtime(&t); } offset /= 60; #else #if USE_TIME_GMTOFF p=localtime(&t); offset= p->tm_gmtoff;
if (offset % 60) { offset=0; p=gmtime(&t); } offset /= 60; #else p=gmtime(&t); offset=0; #endif #endif #endif
offset = (offset % 60) + offset / 60 * 100;
sprintf(buf, "%s, %02d %s %04d %02d:%02d:%02d %+05d", wdays[p->tm_wday], p->tm_mday, months[p->tm_mon], p->tm_year+1900, p->tm_hour, p->tm_min, p->tm_sec, offset); }
const char *rfc822_mkdate(time_t t) { static char buf[50];
rfc822_mkdate_buf(t, buf); return (buf); }
|