$links_out = "
";
?>
// error_reporting(E_ALL);
$telnetclass_loaded=1;
class Telnet {
// thies@thieso.net 2001
// patched by Niwo 2003 (niwo@freelancerserver.de)
var $sock = NULL;
// var $readbuf = '';
// var $idxreadbuf = -1;
var $htmloutput = false;
function telnet($host,$port) {
@stream_set_timeout($this->sock,2);
$this->sock = @fsockopen($host,$port,$errno, $errstr, 2);
}
function close() {
if ($this->sock)
@fclose($this->sock);
$this->sock = NULL;
}
function write($buffer) {
$buffer = str_replace(chr(255),chr(255).chr(255),$buffer);
@fwrite($this->sock,$buffer);
/*
if(DEBUG_CI)
{
$zdiff=number_format(microtime(1)-$GLOBALS['ci_last_microtime'],4,",","");
$GLOBALS['ci_last_microtime']=microtime(1);
$GLOBALS['ci_debug_output'].="
|