imageOverride.php 297 B

123456789101112131415
  1. <?php
  2. ini_set('display_errors', 1);
  3. ini_set('display_startup_errors', 1);
  4. error_reporting(E_ALL);
  5. $overridden = htmlspecialchars($_GET["overridden"]);
  6. $urlnew = htmlspecialchars($_GET["new"]);
  7. unlink($overridden);
  8. rename($urlnew, $overridden);
  9. echo "img overriden";
  10. ?>