<?php require_once 'phplibgadu.php'; $number = 111111; $password = 'haslo'; $recipient = 222222; $msg = 'wiadomosc'; $gg = new GG; $p['uin'] = $number; $p['password'] = $password; $gg->login($p); $gg->notify(); $gg->send_message($recipient, $msg); $gg->logout(); ?>
Super bo działa, ale wyświetla na stronce też takie cuśik
Kod
[22:18:30]Connecting to: appmsg.gadu-gadu.pl:80 [22:18:30]Connecting to: 91.214.237.92:8074 [22:18:30]read(): 0100 0000 0400 0000 c18b 9e04 [22:18:30]GG_Welcome_Packet seed => 0x49e8bc1 [22:18:30]write(): 3100 0000 8a00 0000 7139 2b00 706c 0236 d2e0 869c a571 d277 8427 5758 e8a0 34c8 6f9d 1600 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0002 0000 0001 0000 0037 0000 0000 0000 0000 0000 0000 0000 00ff 6421 0000 0047 6164 752d 4761 6475 2043 6c69 656e 7420 6275 696c 6420 382e 302e 302e 3932 3135 0000 0000 [22:18:30]GG_Login80_Packet uin => 2832753 language => (2) pl hash_type => 0x2 password => (20) 36d2 e086 9ca5 71d2 7784 2757 58e8 a034 c86f 9d16 status => STATUS_AVAIL = 0x2 flags => FLAG_UNKNOW = 0x1 features => FEATURE_STATUS80BETA, FEATURE_MSG80, FEATURE_STATUS80, FEATURE_DND_FFC, FEATURE_DESCR80 = 0x37 local_addr => 0.0.0.0 local_port => 0 external_addr => 0.0.0.0 external_port => 0 image_size => 255 unknow2 => 0x64 version_size => 33 version => (33) Gadu-Gadu Client build 8.0.0.9215 description_size => 0 description => (0) [22:18:31]read(): 3500 0000 0400 0000 0100 0000 [22:18:31]GG_Login80OK_Packet dunno => 0x1 [22:18:31]Logged in [22:18:31]write(): 1200 0000 0000 0000 [22:18:31]GG_ListEmpty_Packet <span style="color:#000000; font-family:'MS Shell Dlg 2'; font-size:9pt; ">qqqqqqqqqqqq</span> qqqqqqqqqqqq GG_MsgRichtext_Packet_Part format => GG_MsgRichtextFormat_Packet_Part position => 0 font => 0x8 red => 0x0 green => 0x0 blue => 0x0
----
[22:18:31]write(): 2d00 0000 8900 0000 05f3 de01 1724 864e 0800 0000 7300 0000 8000 0000 3c73 7061 6e20 7374 796c 653d 2263 6f6c 6f72 3a23 3030 3030 3030 3b20 666f 6e74 2d66 616d 696c 793a 274d 5320 5368 656c 6c20 446c 6720 3227 3b20 666f 6e74 2d73 697a 653a 3970 743b 2022 3e71 7171 7171 7171 7171 7171 713c 2f73 7061 6e3e 0071 7171 7171 7171 7171 7171 7100 0206 0000 0008 0000 00 [22:18:31]GG_SendMsg80_Packet recipient => 31388421 seq => 0x4e862417 msgclass => CLASS_CHAT = 0x8 offset_plain => 115 offset_attributes => 128 message_html => (94) <span style="color:#000000; font-family:'MS Shell Dlg 2'; font-size:9pt; ">qqqqqqqqqqqq</span> message_plain => (12) qqqqqqqqqqqq appends => GG_MsgRichtext_Packet_Part flag => 0x2 length => 6 format => GG_MsgRichtextFormat_Packet_Part position => 0 font => 0x8 red => 0x0 green => 0x0 blue => 0x0 <span style="color:#ff0000"><b>t</b></span><b>e</b><u>s</u><i>t</i> test GG_MsgRichtext_Packet_Part format => GG_MsgRichtextFormat_Packet_Part position => 0 font => 0x9 red => 0xff green => 0x0 blue => 0x0 GG_MsgRichtextFormat_Packet_Part position => 1 font => 0x1 GG_MsgRichtextFormat_Packet_Part position => 2 font => 0x4 GG_MsgRichtextFormat_Packet_Part position => 3 font => 0x2
----
[22:18:32]write(): 2d00 0000 6f00 0000 05f3 de01 1724 864e 0800 0000 5800 0000 5d00 0000 3c73 7061 6e20 7374 796c 653d 2263 6f6c 6f72 3a23 6666 3030 3030 223e 3c62 3e74 3c2f 623e 3c2f 7370 616e 3e3c 623e 653c 2f62 3e3c 753e 733c 2f75 3e3c 693e 743c 2f69 3e00 7465 7374 0002 0f00 0000 09ff 0000 0100 0102 0004 0300 02 [22:18:32]GG_SendMsg80_Packet recipient => 31388421 seq => 0x4e862417 msgclass => CLASS_CHAT = 0x8 offset_plain => 88 offset_attributes => 93 message_html => (67) <span style="color:#ff0000"><b>t</b></span><b>e</b><u>s</u><i>t</i> message_plain => (4) test appends => GG_MsgRichtext_Packet_Part flag => 0x2 length => 15 format => GG_MsgRichtextFormat_Packet_Part position => 0 font => 0x9 red => 0xff green => 0x0 blue => 0x0 GG_MsgRichtextFormat_Packet_Part position => 1 font => 0x1 GG_MsgRichtextFormat_Packet_Part position => 2 font => 0x4 GG_MsgRichtextFormat_Packet_Part position => 3 font => 0x2 [22:18:32]write(): 3800 0000 0c00 0000 0100 0000 0100 0000 0000 0000 [22:18:32]GG_NewStatus80_Packet status => STATUS_NOT_AVAIL = 0x1 flags => FLAG_UNKNOW = 0x1 description_size => 0 description => (0)
----
[22:18:31]write(): 2d00 0000 8900 0000 05f3 de01 1724 864e 0800 0000 7300 0000 8000 0000 3c73 7061 6e20 7374 796c 653d 2263 6f6c 6f72 3a23 3030 3030 3030 3b20 666f 6e74 2d66 616d 696c 793a 274d 5320 5368 656c 6c20 446c 6720 3227 3b20 666f 6e74 2d73 697a 653a 3970 743b 2022 3e71 7171 7171 7171 7171 7171 713c 2f73 7061 6e3e 0071 7171 7171 7171 7171 7171 7100 0206 0000 0008 0000 00 [22:18:31]GG_SendMsg80_Packet recipient => 31388421 seq => 0x4e862417 msgclass => CLASS_CHAT = 0x8 offset_plain => 115 offset_attributes => 128 message_html => (94) <span style="color:#000000; font-family:'MS Shell Dlg 2'; font-size:9pt; ">qqqqqqqqqqqq</span> message_plain => (12) qqqqqqqqqqqq appends => GG_MsgRichtext_Packet_Part flag => 0x2 length => 6 format => GG_MsgRichtextFormat_Packet_Part position => 0 font => 0x8 red => 0x0 green => 0x0 blue => 0x0 <span style="color:#ff0000"><b>t</b></span><b>e</b><u>s</u><i>t</i> test GG_MsgRichtext_Packet_Part format => GG_MsgRichtextFormat_Packet_Part position => 0 font => 0x9 red => 0xff green => 0x0 blue => 0x0 GG_MsgRichtextFormat_Packet_Part position => 1 font => 0x1 GG_MsgRichtextFormat_Packet_Part position => 2 font => 0x4 GG_MsgRichtextFormat_Packet_Part position => 3 font => 0x2
----
[22:18:32]write(): 2d00 0000 6f00 0000 05f3 de01 1724 864e 0800 0000 5800 0000 5d00 0000 3c73 7061 6e20 7374 796c 653d 2263 6f6c 6f72 3a23 6666 3030 3030 223e 3c62 3e74 3c2f 623e 3c2f 7370 616e 3e3c 623e 653c 2f62 3e3c 753e 733c 2f75 3e3c 693e 743c 2f69 3e00 7465 7374 0002 0f00 0000 09ff 0000 0100 0102 0004 0300 02 [22:18:32]GG_SendMsg80_Packet recipient => 31388421 seq => 0x4e862417 msgclass => CLASS_CHAT = 0x8 offset_plain => 88 offset_attributes => 93 message_html => (67) <span style="color:#ff0000"><b>t</b></span><b>e</b><u>s</u><i>t</i> message_plain => (4) test appends => GG_MsgRichtext_Packet_Part flag => 0x2 length => 15 format => GG_MsgRichtextFormat_Packet_Part position => 0 font => 0x9 red => 0xff green => 0x0 blue => 0x0 GG_MsgRichtextFormat_Packet_Part position => 1 font => 0x1 GG_MsgRichtextFormat_Packet_Part position => 2 font => 0x4 GG_MsgRichtextFormat_Packet_Part position => 3 font => 0x2 [22:18:32]write(): 3800 0000 0c00 0000 0100 0000 0100 0000 0000 0000 [22:18:32]GG_NewStatus80_Packet status => STATUS_NOT_AVAIL = 0x1 flags => FLAG_UNKNOW = 0x1 description_size => 0 description => (0)
Co zrobić aby cały ten zbędny kod się nie wyświetlał
