Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url_post = "http://localhost/joomla/joomlathree/index.php?option=com_users&task=user.login&lang=en";
- $postdata = "username=".urlencode($uname)."&password=".urlencode($upswd)."&return=".urlencode($matches1[1][0])."&".urlencode($matches2[1][0])."=1";
- curl_setopt($ch, CURLOPT_URL, $url_post);
- curl_setopt($ch, CURLOPT_POST, TRUE);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
- $results1 = curl_exec($ch);
- $url_data = "http://localhost/joomla/joomlathree/index.php?option=com_users&lang=en"; //MOD REWRITE Disabled
- curl_setopt($ch, CURLOPT_URL, $url_data);
- $results2 = curl_exec($ch);
- $error = curl_error($ch);
- $errno = curl_errno($ch);
- echo ($error);
- curl_close($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement