|
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 | : | 27.58 GB of 70.42 GB (39.17%) |
|
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/
courier-0.66.1/
unicode/
- drwxrwxrwx
|
Viewing file: mkultcase.pl (1.73 KB) -rw-rw-rw-Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
# Copyright 2000-2004 Double Precision, Inc. # See COPYING for distribution information. # # # Generate unicode upper/lower/titlecase translations.
print '/* ** Copyright 2000-2004 Double Precision, Inc. ** See COPYING for distribution information. ** */
#include "unicode.h"
';
my $set=shift;
open (U, "UnicodeData.txt") || die "$!\n";
while (<U>) { chomp;
my @fields= split /;/;
my ($code, $uc, $lc, $tc);
$code="0x$fields[0]"; eval "\$code=$code;";
$uc=$fields[12]; if ($uc ne "") { eval "\$uc=0x$uc;"; $UC{$code}=$uc; $FLAG{$code}=1; }
$lc=$fields[13]; if ($lc ne "") { eval "\$lc=0x$lc;"; $LC{$code}=$lc; $FLAG{$code}=1; }
$tc=$fields[14]; if ($tc ne "") { eval "\$tc=0x$tc;"; $TC{$code}=$tc; $FLAG{$code}=1; } }
close(U);
my $tabsize=2048;
grep ($bucket[ $_ % $tabsize ] .= "$_\n", keys %FLAG);
my $maxcnt=0;
for ($i=0; $i < $tabsize; $i++) { my $cnt=0;
grep ( ++$cnt, split (/\n/, $bucket[$i]));
$maxcnt=$cnt if $cnt > $maxcnt; }
print "const unsigned unicode_case_hash=$tabsize;\n"; print "/* unicode_case_maxbucket=" . ($maxcnt+2) . "*/\n";
print "const unicode_char unicode_case_tab[][4]={\n";
my $idx=0;
for ($i=0; $i<$tabsize; $i++) { $offset[$i]=$idx;
grep { my $j=$_; my $u=$UC{$j}+0; my $l=$LC{$j}+0; my $t=$TC{$j}+0;
if ($u || $l || $t) { $u=$j unless $u; $l=$j unless $l; $t=$u unless $t;
printf("{0x%04x,0x%04x,0x%04x,0x%04x},",$j,$u,$l,$t); print "\n" if ($idx % 4) == 3; ++$idx; } } split(/\n/, $bucket[$i]); } print "{0,0,0,0}};
const unsigned unicode_case_offset[$tabsize]={ ";
for ($i=0; $i<$tabsize;$i++) { printf("%4d", $offset[$i]); print "," if $i < $tabsize-1;
print "\n" if ($i % 16) == 15; } print "};\n";
|