Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <?php
  2. libxml_disable_entity_loader (false);
  3. $xmlfile = file_get_contents('php://input');
  4. $dom = new DOMDocument();
  5. $dom->loadXML($xmlfile, LIBXML_NOENT | LIBXML_DTDLOAD);
  6. $creds = simplexml_import_dom($dom);
  7. $user = $creds->user;
  8. $pass = $creds->pass;
  9. echo "You have logged in as user $user";?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement