asminog / webicqpro Goto Github PK
View Code? Open in Web Editor NEWSet of PHP tools for simple and clear work with ICQ(OSCAR) protocol
Home Page: http://asminog.github.io/WebIcqPro
Set of PHP tools for simple and clear work with ICQ(OSCAR) protocol
Home Page: http://asminog.github.io/WebIcqPro
При подключении выдаёт ошибку: Error: Server close connection. Смена сервера на slogin.icq.com:5190 и другие не помогает. Что делать?
Hello.
You could adapt the library to work with the composer?
The error is: fsockopen(): unable to connect to login.icq.com:5190 (No route to host)
I've tried to change a $this->setTimeout(30, 0); in anyway, even $this->setTimeout(60, 60000); but it doesn't work, unfortunately.
в логе:
msg from
array(6) {
* ["from"]=>
string(19) "[email protected]"*
["channel"]=>
int(1)
["cookie"]=>
float(1.2754960363181E-68)
["encoding"]=>
array(2) {
["numset"]=>
string(5) "ASCII"
["subset"]=>
int(0)
}
["message"]=>
string(21) "!to 217411320 message"
["type"]=>
string(7) "message"
}
на самом деле отправитель был я (217411320) возможно ли как то получать UIN отправителя, вместо [email protected] ?
protected $first_ver = 4294964838;
protected $second_ver = 1123;
...
protected function ClientStatus($args) {
...
$snac .= $this->packTLV(0x0C, pack('NNcnNNNNNNn', 0x00, 0x00, 0x06, $this->protocol_version, 0x00, 0x00, 0x03, $this->first_ver, $this->second_ver, 0x00, 0x00));
...
}
Значения first_ver и second_ver определяют версию R&Q и отображаются так:
Как в других клиентах не знаю)
Библиотека перестала отправлять сообщения примерно с 24.07.2015
Скажите, вы у себя эту проблему заметили? Или она частный характер носит?
Пытаюсь отправить:
if($icq->sendMessage('[email protected]', 'Hello world!!!')) {
echo "Message send";
}
Пишет что послано, но по факту не доходит.
Как запустить работу скрипта через прокси (с авторизацией)?
Нашел на просторах интернета вот это
protected function socetOpen()
{
$proxy_server = 'proxy_ip';
$proxy_port = 'proxy_port';
$this->socet = fsockopen($proxy_server, $proxy_port, $erorno, $errormsg, ($this->timeout_second+$this->timeout_msecond/1000));
if ($this->socet)
{
$out = 'CONNECT '.$this->server_url.':'.$this->server_port.' HTTP/1.0'."\r\n";
$out .= "\r\n";
# send CONNECT
fwrite($this->socet, $out);
# check status
if(strpos(trim(fgets($this->socet, 64).fgets($this->socet, 64)), '200 Connection Established') !== NULL)
{
return true;
}
fclose($this->socet);
}
$this->error = 'Error: Cant establish connection to: '.$this->server_url.':'.$this->server_port."\n".$errormsg;
return false;
}
Добавил такую штуку
$id = base64_encode("login:pass");
$out = 'CONNECT '.$this->server_url.':'.$this->server_port.' HTTP/1.0'."\r\n";
$out .= "\r\n";
$out .= 'Proxy-Authorization: Basic ' . $id;
$out .= "\r\n";
$out .= "\r\n";
Вроде подключается но сообщения не уходят
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.