| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awebpaca/boutiques/lib/Zend/ |
Upload File : |
<?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, 'Zend/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";
}
}