Advertisement
Guest User

Untitled

a guest
Sep 17th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2. require_once("../panel/includes/init.php");
  3. session_start();
  4. $username = $_SESSION['username'];
  5. $password = 'banana7645';
  6.  
  7. $xmppPrebind = new XmppPrebind('siga.uem.mz', 'http://siga.uem.mz:5280/http-bind', '', true, true);
  8. $xmppPrebind->connect($username, $password);
  9. $xmppPrebind->auth();
  10. $sessionInfo = $xmppPrebind->getSessionInfo();
  11. echo json_encode($sessionInfo);
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement