Advertisement
Guest User

Untitled

a guest
Feb 4th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.3.0
  8. * @ Author : DeZender
  9. * @ Release on : 17.05.2011
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function _domain() {
  15. if (substr( $_SERVER['HTTP_HOST'], 0, 4 ) == 'www.') {
  16. $domain = substr( $_SERVER['HTTP_HOST'], 4 );
  17. } else {
  18. $domain = $_SERVER['HTTP_HOST'];
  19. }
  20.  
  21. return $domain;
  22. }
  23.  
  24. function _lisans($domain) {
  25. $a = md5( $domain );
  26. $b = sha1( $domain );
  27. $c = md5( $a . '' . $b );
  28. $lisans = substr( $c, 0, 4 ) . '.' . substr( $c, 8, 4 ) . '.' . substr( $c, 16, 4 ) . '.' . substr( $c, 24, 4 );
  29. return $lisans;
  30. }
  31.  
  32. function _type($id, $access) {
  33. $json = json_decode( curl_get_file_contents( 'https://graph.facebook.com/' . $id . '?access_token=' . $access ) );
  34.  
  35. if (isset( $json->gender )) {
  36. $type = 'user';
  37. } else {
  38. if (isset( $json->category )) {
  39. $type = 'page';
  40. } else {
  41. if (isset( $json->message )) {
  42. $type = 'status';
  43. } else {
  44. if (( isset( $json->height ) && is_array( $json->images ) )) {
  45. $type = 'photo';
  46. } else {
  47. if (( isset( $json->embed_html ) && isset( $json->source ) )) {
  48. $type = 'video';
  49. } else {
  50. $type = 'null';
  51. }
  52. }
  53. }
  54. }
  55. }
  56.  
  57. return $type;
  58. }
  59.  
  60. function _page_id($id, $access) {
  61. $json = json_decode( curl_get_file_contents( 'https://graph.facebook.com/' . $id . '?access_token=' . $access ) );
  62. return $json->id;
  63. }
  64.  
  65. function _user_id($id) {
  66. $json = json_decode( curl_get_file_contents( 'https://graph.facebook.com/' . $id ) );
  67. return $json->id;
  68. }
  69.  
  70. function _uid_kontrol($id, $access, $uid) {
  71. $json = curl_get_file_contents( 'https://graph.facebook.com/' . $id . '?access_token=' . $access );
  72. $bul = stripos( $json, $uid );
  73.  
  74. if ($bul == false) {
  75. return 'hayir';
  76. }
  77.  
  78. return 'evet';
  79. }
  80. ..................................
  81. ................
  82. ........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement