Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- libxml_disable_entity_loader (false);
- $xmlfile = file_get_contents('php://input');
- $dom = new DOMDocument();
- $dom->loadXML($xmlfile, LIBXML_NOENT | LIBXML_DTDLOAD);
- $creds = simplexml_import_dom($dom);
- $user = $creds->user;
- $pass = $creds->pass;
- echo "You have logged in as user $user";?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement