Advertisement
Guest User

Untitled

a guest
Apr 18th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. $url_post = "http://localhost/joomla/joomlathree/index.php?option=com_users&task=user.login&lang=en";
  2. $postdata = "username=".urlencode($uname)."&password=".urlencode($upswd)."&return=".urlencode($matches1[1][0])."&".urlencode($matches2[1][0])."=1";
  3. curl_setopt($ch, CURLOPT_URL, $url_post);
  4. curl_setopt($ch, CURLOPT_POST, TRUE);
  5. curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
  6. $results1 = curl_exec($ch);
  7.  
  8. $url_data = "http://localhost/joomla/joomlathree/index.php?option=com_users&lang=en"; //MOD REWRITE Disabled
  9. curl_setopt($ch, CURLOPT_URL, $url_data);
  10.  
  11. $results2 = curl_exec($ch);
  12. $error = curl_error($ch);
  13. $errno = curl_errno($ch);
  14. echo ($error);
  15.  
  16. curl_close($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement