Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $host = "";
- $port = "";
- $username = "";
- $password = "";
- $subject = "VIP Item";
- $text = "Tessek, itt a kert itemed! :)";
- $itemid = "29434";
- $itemcount = "10";
- $recipient = "Davidoff";
- if (isset($port) and
- ($socket=socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) and
- (socket_connect($socket, $host, $port)))
- {
- $output="Connection successful on IP $host, port $port";
- socket_write($socket, "USER ".$username."\n");
- sleep(1);
- socket_write($socket, "PASS ".$password."\n");
- sleep(1);
- socket_write($socket, "send items ".$recipient." \"".$subject."\" \"".$text."\" ".$itemid."[:".$itemcount."]\n");
- sleep(3);
- socket_close($socket);
- }
- else
- { $text="Unable to connect<pre>".socket_strerror(socket_last_error())."</pre>"; }
- echo "<html><head></head><body>".
- $output.
- "</body></html>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement