summaryrefslogtreecommitdiff
path: root/includes_old/funktion_SendMessenges.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-06-13 18:05:51 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-06-13 18:05:51 +0200
commit04973d1fa148381978b1251d10118e6bab86f435 (patch)
tree39f5a304342054e9da8c0452866b4f6eb69f87af /includes_old/funktion_SendMessenges.php
parent89fd736f36dc89becacc30dc250d7a3e93e9569f (diff)
moved public files to public, old and yet untouched files to directories ending with _old
Diffstat (limited to 'includes_old/funktion_SendMessenges.php')
-rw-r--r--includes_old/funktion_SendMessenges.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/includes_old/funktion_SendMessenges.php b/includes_old/funktion_SendMessenges.php
new file mode 100644
index 00000000..b6de67cc
--- /dev/null
+++ b/includes_old/funktion_SendMessenges.php
@@ -0,0 +1,14 @@
+<?php
+ function SendData($Data) {
+ include "config_MessegeServer.php";
+ // Create a UDP socket
+ $sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
+
+ //send packed
+ socket_sendto($sock, $Data, 9999, 0x4, SERVER_ADDRESS, SERVER_PORT);
+ }
+
+ function SendMessageJabber($Adresse, $Nachricht) {
+ SendData( "#message $Adresse $Nachricht");
+ }
+?>