forked from sentanos/roblox-bots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshout.php
32 lines (32 loc) · 920 Bytes
/
shout.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
include_once'Includes/GetPostArray.php'
function shout($group,$cookie,$msg) {
$url = "http://www.roblox.com/My/Groups.aspx?gid=$group";
$curl = curl_init($url);
curl_setopt_array($curl,array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_COOKIEFILE => $cookie,
CURLOPT_COOKIEJAR => $cookie
));
$response = curl_exec($curl);
curl_close($curl);
$nextPost = getPostArray(substr($response,curl_getinfo($curl,CURLINFO_HEADER_SIZE)),
array(
'ctl00$cphRoblox$GroupStatusPane$StatusTextBox' => $msg,
'ctl00$cphRoblox$GroupStatusPane$StatusSubmitButton' => 'Group Shout'
)
);
$curl = curl_init($url);
curl_setopt_array($curl,array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $nextPost,
CURLOPT_COOKIEFILE => $cookie,
CURLOPT_COOKIEJAR => $cookie
));
if (curl_exec($curl)) {
return "Shouted $msg.";
}
return 'Failure';
}
?>