Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function auto($id, $fb_dtsg, $log){
- $data = array(
- 'fb_dtsg' => $fb_dtsg,
- 'charset_test' => '€,´,€,´,水,Д,Є',
- 'group_id' => $id,
- 'prevent_readd' => '',
- 'confirm' => 'Konfirmasi',
- );
- $fields = '';
- foreach($data as $key => $value){
- $fields .= $key . '=' . $value . '&';
- }
- rtrim($fields, '&');
- $post = curl_init();
- curl_setopt($post, CURLOPT_URL, 'https://m.facebook.com/a/group/leave/');
- curl_setopt($post, CURLOPT_POST, count($data));
- curl_setopt($post, CURLOPT_POSTFIELDS, $fields);
- curl_setopt($post,
- CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($post,
- CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($post,
- CURLOPT_HEADER, 0);
- curl_setopt($post,
- CURLOPT_NOBODY, 0);
- curl_setopt($post,CURLOPT_COOKIEJAR, $log);
- curl_setopt($post,CURLOPT_COOKIEFILE, $log);
- $result = curl_exec($post);
- curl_close($post);
- return $result;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement