Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Status z gg
KsY
post 18.05.2004, 19:29:00
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 7.02.2004

Ostrzeżenie: (0%)
-----


Chciałem napisać skrypt taki że się wpisuje nr.gg i jest pokazywane jaki ten ktoś ma status (dostępny , zaraz wram , niedostępny ,tylko dla znajomych ) Jak mam taki skript napisać ? Jestem lewy w sprawy php więc się dopiero ucze winksmiley.jpg
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
essey
post 18.05.2004, 19:43:52
Post #2





Grupa: Zarejestrowani
Postów: 118
Pomógł: 5
Dołączył: 9.07.2003
Skąd: Wołów/Wrocław

Ostrzeżenie: (0%)
-----


zapraszam do kozystania z opcji Szukaj! winksmiley.jpg

zobacz tutaj: http://gg.siedziba.pl/ oraz tod ten adres: http://www.gadu-gadu.pl/pytania.htm#statuswww

rowniez mozesz skozystac z kodu autorstwa cezi
[php:1:f65ebe530a]<?php
# autor - cezi
set_time_limit(0);

function pokaz_status_gg($nr, $error, $BLAD, $ONLINE, $NIEDOSTEPNY,
$AWAY, $LineALL="")
{
$str = 'http://www.gadu-gadu.pl/users/status.asp?id='.$nr.'&styl=2';
if(!@fopen($str, 'r'))
{
print $error;
}
else{
$foo = fopen($str, 'r');
$LineAll = fgets($foo, 300);
$LineAll = str_replace('0', $BLAD, $LineAll);
$LineAll = str_replace('1', $NIEDOSTEPNY, $LineAll);
$LineAll = str_replace('2', $ONLINE, $LineAll);
$LineAll = str_replace('3', $AWAY, $LineAll);
fclose($foo);
}


return eregi_replace("(.*)", "<font
style='font-family:verdana;color:darkblue;font-size:12px'>1</font>",
@$LineAll);
};

print pokaz_status_gg('3910481','error', 'Blad GG', 'Jestem ','Nie ma
mnie ','Jestem On-line ale chwilowo wyszedlem');
?>[/php:1:f65ebe530a]
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 16:07