|
|
|
<?
function get_status($uin){
/*************************************
* Copyright © 2000 Scriptmakers.com *
* Feel free to edit, modify and *
* redistribute as long as this *
* message is kept intact. *
*************************************/
$fp = fsockopen ("wwp.icq.com", 80, &$errno, &$errstr, 30);
if(!$fp){
echo "$errstr ($errno)<br>\n";
}else{
fputs($fp, "GET /scripts/online.dll?icq=$uin&img=5 HTTP/1.0\n\n");
$do = 'no';
while(!feof($fp)) {
$line = fgets ($fp,128);
$do = ($do == 'yes')?'yes':(eregi("^GIF89", $line))?'yes':'no';;
if($do == 'yes'){
if(ereg("á7@ ±40", $line)){
return 'online';
}elseif(ereg("áw` ±40", $line)){
return 'offline';
}elseif(ereg("S³IѱèJ", $line)){
return 'disabled';
}
}
}
fclose($fp);
}
return 'unknown';
}
?> |
|
| Adding a Latest Threads Section to your website Categories : PHP, Miscellaneous | | | How to display any array in several rows and columns of a table. Not just
in one column or in alternate rows. This example shows a nice color table
generated with PHP, but can be used with any array values(e.g. Database) Categories : Arrays, PHP, Miscellaneous, Beginner Guides, Graphics | | | This is a simple PHP3 script to send an instant msg to the webmaster (only for Windows NT). Categories : PHP, Misc, Miscellaneous | | | What does "PHP" stand for? Categories : Miscellaneous, PHP | | | Query2Report : Generating Html, Pdf and Csv Reports from SQL Query Categories : PHP, PHP, HTML, PDF, Excel | | | Invision Forums Latest Threads list Categories : PHP, Miscellaneous, Databases, MySQL | | | Cut your MySQL Connections to 1 line of code Categories : PHP, Beginner Guides, Databases, MySQL | | | A simple class with some HTML output functions that would come in handy for consistent page layout etc. Categories : PHP, PHP Classes, HTML and PHP, HTML, Navigation | | | recode -- Recode a string according to a recode request Categories : PHP, PHP Functions, Recode | | | PhpIBadmin - Web interface to Interbase RBDMS , this is a port of
phpMyadmin Categories : Databases, InterBase, PHP | | | Math operations on big numbers Categories : PHP, Math. | | | phpAds, a complete banner and ad management system with detailled tracking and stats. Categories : MySQL, Complete Programs, Ecommerce, PHP, Databases | | | Point and Click Interface ala MS Access for creating SQL statements. Categories : MySQL, Complete Programs, General SQL, PHP, Databases | | | Tag content retrieval from websites with preg_match Categories : PHP, Regexps, Arrays, HTML and PHP | | | Zephyr: AJAX Based Framework for PHP5 Developers Categories : PHP, AJAX, Frameworks, Java Script, Web Applications | |
|
|
|