request.php 352 B

123456789101112131415
  1. <?php
  2. include '../auth.php';
  3. ?>
  4. <?php
  5. $username = $_GET['username'];
  6. $password = $_GET['password'];
  7. $url = $_GET['url'];
  8. $context = stream_context_create(array(
  9. 'http' => array(
  10. 'header' => "Authorization: Basic " . base64_encode("$username:$password")
  11. )
  12. ));
  13. $data = file_get_contents($url, false, $context);
  14. echo strip_tags($data);
  15. ?>