ShellBanner
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:23.29 GB of 70.42 GB (33.08%)
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,

/ usr/ src/ maildrop-2.2.0/ rfc2045/ - drwxr-xr-x

Directory:
Viewing file:     rfc2646.c (1.66 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
** Copyright 2000 Double Precision, Inc.  See COPYING for
** distribution information.
*/

#include "rfc2045_config.h"
#include    "rfc2646.h"
#include    <stdlib.h>
#include    <string.h>

static const char rcsid[]="$Id: rfc2646.c,v 1.2 2003/03/07 00:47:31 mrsam Exp $";

struct rfc2646parser *rfc2646_alloc( int (*f)(struct rfc2646parser *, int,
                         void *),
                     void *a)
{
    struct rfc2646parser *p=(struct rfc2646parser *)
        calloc(1, sizeof(struct rfc2646parser));

    if (!p)
        return (0);

    p->handler=f;
    p->voidarg=a;
    return (p);
}

#define PARSER_QUOTECNT    1
#define PARSER_LINE    2

int rfc2646_parse_cb(const char *s, size_t c, void *vp)
{
    return (rfc2646_parse( (struct rfc2646parser *)vp, s, c));
}

int rfc2646_parse(struct rfc2646parser *p, const char *s, size_t c)
{
    for ( ; c; --c, ++s)
    {
        if (*s == '\r')
            continue;

        if (!p->parse_mode)
        {
            p->parse_mode=PARSER_QUOTECNT;
            p->quote_depth=0;
            p->linelen=0;
        }

        if (*s == '\n')
        {
            int rc;
            int isflowed=0;

            if (p->linelen && p->line[p->linelen-1] == ' ' &&
                (p->linelen != 3 || strncmp(p->line, "-- ", 3)))
            {
                --p->linelen;
                isflowed=1;
            }

            p->line[p->linelen]=0;

            p->parse_mode=0;
            rc=(*p->handler)(p, isflowed, p->voidarg);
            if (rc)
                return (rc);
            continue;
        }

        if (p->parse_mode == PARSER_QUOTECNT)
        {
            if (*s == '>')
            {
                ++p->quote_depth;
                continue;
            }

            p->parse_mode=PARSER_LINE;
            if (*s == ' ')
            {
                continue;
            }
        }
        if (p->linelen < sizeof(p->line)-1)
            p->line[p->linelen++]= *s;
    }
    return (0);
}

int rfc2646_free(struct rfc2646parser *p)
{
    int rc=0;

    if (p->parse_mode)
        rc=rfc2646_parse(p, "\n", 1);
    free(p);
    return (rc);
}
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.2208 seconds