Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $token = "CAAAA.....ZDZD";
- $f = file_get_contents("https://graph.facebook.com/me/notifications?access_token=".$token);
- $jn = json_decode($f)->data;
- foreach($jn as $jjj)
- {
- $kum = file_get_contents("notis.txt");
- $cek = strripos($kum, $jjj->id);
- if($cek > 1)
- {
- }
- else
- {
- $fop = fopen("notis.txt", "a+");
- fwrite($fop, $jjj->id."\n");
- fclose($fop);
- //send notis ke phone
- $data = array('country' => '60',
- 'to' => '60123456789',
- 'msg' => $jjj->title,
- 'agreed' => '1');
- $u = "Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10";
- $cu = curl_init();
- curl_setopt($cu, CURLOPT_URL, 'http://dosms.me/sms.php');
- curl_setopt($cu, CURLOPT_POST, 1);
- curl_setopt($cu, CURLOPT_POSTFIELDS, $data);
- curl_setopt($cu, CURLOPT_USERAGENT, $u);
- curl_setopt($cu, CURLOPT_RETURNTRANSFER, true);
- curl_exec($cu);
- curl_close($cu);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement