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:27.42 GB of 70.42 GB (38.93%)
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,

/ http/ guitar.1/ libraries/ phputf8/ - drwxr-xr-x

Directory:
Viewing file:     str_ireplace.php (1.93 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* @package utf8
* @subpackage strings
*/

//---------------------------------------------------------------
/**
* UTF-8 aware alternative to str_ireplace
* Case-insensitive version of str_replace
* Note: requires utf8_strtolower
* Note: it's not fast and gets slower if $search / $replace is array
* Notes: it's based on the assumption that the lower and uppercase
* versions of a UTF-8 character will have the same length in bytes
* which is currently true given the hash table to strtolower
* @param string
* @return string
* @see http://www.php.net/str_ireplace
* @see utf8_strtolower
* @package utf8
* @subpackage strings
*/
function utf8_ireplace($search$replace$str$count NULL){

    if ( !
is_array($search) ) {

        
$slen strlen($search);
        if ( 
$slen == ) {
            return 
$str;
        }

        
$lendif strlen($replace) - strlen($search);
        
$search utf8_strtolower($search);

        
$search preg_quote($search'/');
        
$lstr utf8_strtolower($str);
        
$i 0;
        
$matched 0;
        while ( 
preg_match('/(.*)'.$search.'/Us',$lstr$matches) ) {
            if ( 
$i === $count ) {
                break;
            }
            
$mlen strlen($matches[0]);
            
$lstr substr($lstr$mlen);
            
$str substr_replace($str$replace$matched+strlen($matches[1]), $slen);
            
$matched += $mlen $lendif;
            
$i++;
        }
        return 
$str;

    } else {

        foreach ( 
array_keys($search) as $k ) {

            if ( 
is_array($replace) ) {

                if ( 
array_key_exists($k,$replace) ) {

                    
$str utf8_ireplace($search[$k], $replace[$k], $str$count);

                } else {

                    
$str utf8_ireplace($search[$k], ''$str$count);

                }

            } else {

                
$str utf8_ireplace($search[$k], $replace$str$count);

            }
        }
        return 
$str;

    }

}


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: 1.8404 seconds