Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Setting Username dan Password
- $username = $_POST['email'];
- $password = $_POST['pass'];
- // Saatnya Menghajar
- //init curl
- $ch = curl_init('http://www.bilna.com/ajaxlogin/index/loginPost/');
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch,CURLOPT_POST,1);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE);
- curl_setopt($ch,CURLOPT_POST,TRUE);
- curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);
- curl_setopt($ch,CURLOPT_COOKIEFILE,"cookie.txt");
- curl_setopt($ch,CURLOPT_COOKIEJAR, "cookie.txt");
- curl_setopt($ch,CURLOPT_POSTFIELDS,"email=$username&password=$password&send=&location=http%3A%2F%2Fwww.bilna.com%2F");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
- $result = curl_exec($ch);
- echo "$result";
- ?><br><br>
- <a href="index.php">Back</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement