commit | author | age
|
8bd4d9
|
1 |
<?php |
JK |
2 |
class BotMessageGG extends BotMessage { |
|
3 |
function __construct() { |
|
4 |
if(!ctype_digit($_GET['from'])) { |
|
5 |
$_GET['from'] = 'invalid'; |
|
6 |
} |
|
7 |
|
|
8 |
if(!ctype_digit($_GET['to'])) { |
|
9 |
$_GET['to'] = 'invalid'; |
|
10 |
} |
|
11 |
|
|
12 |
$uid = 'Gadu-Gadu://'.$_GET['from'].'@gadu-gadu.pl'; |
|
13 |
|
|
14 |
$this->userAlt = new BotUser($uid); |
|
15 |
$this->user = new BotUser($uid.'/'.$_GET['to']); |
|
16 |
$this->session = new BotSession($uid); |
|
17 |
$this->setText(file_get_contents('php://input')); |
|
18 |
} |
|
19 |
} |
|
20 |
?> |