mirror of
https://git.code.sf.net/p/quake/website
synced 2025-02-22 03:31:34 +00:00
Added finger grabber to function library.
This commit is contained in:
parent
84f22cbd80
commit
f66e90fb27
1 changed files with 12 additions and 0 deletions
|
@ -17,6 +17,18 @@
|
||||||
return $found;
|
return $found;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Network functions */
|
||||||
|
// Finger user @ host (for .plan)
|
||||||
|
function finger( $user, $host )
|
||||||
|
{
|
||||||
|
$fp = fsockopen( $host, 79, &$errno, &$errstr ) or die( "$errno: $errstr" );
|
||||||
|
fputs($fp, "$user\n");
|
||||||
|
while ( !feof( $fp ) ) {
|
||||||
|
echo fgets($fp, 128);
|
||||||
|
}
|
||||||
|
fclose($fp);
|
||||||
|
}
|
||||||
|
|
||||||
function progressKey() // Display key for progress bar
|
function progressKey() // Display key for progress bar
|
||||||
{
|
{
|
||||||
echo '<TR><TD> </TD><TD> </TD><TD align="center">' .
|
echo '<TR><TD> </TD><TD> </TD><TD align="center">' .
|
||||||
|
|
Loading…
Reference in a new issue