a('');
return TRUE;
}
static function putText($text) {
self::init();
self::$msg->a(nl2br(htmlspecialchars($text)));
self::$len += strlen($text);
return TRUE;
}
static function putRichText($text, $bold=FALSE, $italic=FALSE, $underline=FALSE, $R=0, $G=0, $B=0) {
self::init();
self::$len += strlen($text);
$text = nl2br(htmlspecialchars($text));
if($bold) {
$text = ''.$text.'';
}
if($italic) {
$text = ''.$text.'';
}
if($underline) {
$text = ''.$text.'';
}
$color = '#'.sprintf('%02x%02x%02x', $R%256, $G%256, $B%256);
if($color != self::$color) {
$text = ''.$text.'';
}
self::$msg->a($text);
return TRUE;
}
static function getResponse() {
return self::$msg;
}
static function setStatus($status=NULL, $desc='') {}
static function getStatusResponse($status=NULL, $desc='') {}
static function sendResponse() {}
static function antiFlood($numer=NULL) {}
static function getPublicData($number=NULL) {
if($number === NULL) $number = $_GET['from'];
if(!ctype_digit($number)) return FALSE;
$data = @file_get_contents('http://api.gadu-gadu.pl/users/'.$number.'.xml');
if(!$data) return FALSE;
$data = @simplexml_load_string($data);
if(!$data) return FALSE;
return (array)$data->users->user;
}
}
?>