Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- date_default_timezone_set("Asia/Jakarta");
- //require './includes/class_curl.php';
- $iflix = new iflix();
- echo $iflix->check($_GET['e'], $_GET['p']);
- class iflix{
- public function check($email, $pass){
- $array = array(
- "email" => "$email",
- "password" => "$pass"
- );
- $param = json_encode($array);
- $ch = curl_init('https://m.iflix.com/api/identity/auth/iflix/login');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLINFO_HEADER_OUT, true);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
- $result = curl_exec($ch);
- echo $result;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment