- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
<?php global $token;
if (file_exists('token.txt')){
$token = file_get_contents('token.txt');
}
else
{
ShowForm(login, SW_SHOW);
}
$num = c("edit2")->text;
$request = array(
'count' => $num,
'v' => '5.52',
'access_token' => $token
);
$ret = vk('messages.getDialogs', $request);
for ($i = 0; $i != $num; $i++)
{
$check = translate($ret->response->items[$i]->message->body);
$nick = translate($ret->response->items[$i]->message->title);
if (!empty($check))
{
if ($nick == ' ... ')
{
$id = $ret->response->items[$i]->message->user_id;
$text[$i] = '[id '.$id.'] '.translate(nickname($id)->response[0]->first_name) . ' ' . translate(nickname($id)->response[0]->last_name) . ': ' . translate($ret->response->items[$i]->message->body);
}
else
{
$text[$i] = translate($ret->response->items[$i]->message->title) . ': ' . translate($ret->response->items[$i]->message->body);
}
}
}
c("listBox2")->text = $text;
als_1984 01.01.2017 23:35 # 0
FrauSchweinhund 01.01.2017 23:51 # 0
als_1984 01.01.2017 23:55 # 0
FrauSchweinhund 01.01.2017 23:59 # +4
als_1984 02.01.2017 00:07 # −3
bormand 02.01.2017 06:38 # +3
inkanus-gray 02.01.2017 23:04 # +5
bormand 03.01.2017 08:15 # +2
barop 03.01.2017 15:25 # 0
bormand 03.01.2017 15:32 # 0
inkanus-gray 03.01.2017 15:34 # +6
bormand 03.01.2017 15:39 # +5
guest 03.01.2017 16:07 # −1
guest 03.01.2017 17:46 # 0
Xom94ok 04.01.2017 16:47 # +6