Freelancer Community Network
Deutscher Freelancer Server Foren-‹bersicht
SuchenSuchen   MitgliederlisteMitgliederliste   BenutzergruppenBenutzergruppen  ProfilProfil   Einloggen, um private Nachrichten zu lesenEinloggen, um private Nachrichten zu lesen   LoginLogin    RegistrierenRegistrieren 
Portal - Album - Player Stats - Mod download (1.0-b2) - Teamspeak - Spenden - IRC Chat

Links

\"DFLS\"
\"FLListServer\"
\"UniQ
\"Templer
\"Teamspeak\"
\"Station

"; $links_out.= "FLSDCT        "; $bilder_ursprung="http://dfls.de/grafik/"; // Links $links=array(); $links[1]['url'] = "www.dfls.de"; $links[2]['url'] = "www.freelancerserver.de"; $links[3]['url'] = "www.freelancer-foren.de"; // Bilder $links[1]['bild'] = "dfls.jpg"; $links[2]['bild'] = "hhc.gif"; $links[3]['bild'] = "berlin88x31.gif"; shuffle($links); foreach ($links as $number => $link) { $links_out.= "".$link[    "; } $links_out.= "

"; ?>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'].=" $zdiff ".__FUNCTION__." ".htmlentities($buffer)." - - "; } */ } function getc() { // if ( $this->idxreadbuf != strlen($this->readbuf) ) { // $this->readbuf = fread($this->sock, 1); // $this->idxreadbuf = 0; // } // return substr($this->readbuf,$this->idxreadbuf,1); $test=microtime(1); [email protected]($this->sock); $test=microtime(1)-$test."
"; $test=number_format ( $test , 5 , "," , "" ); // if(DEBUG_CI) echo "
".__FUNCTION__.": ".$test; return $blub; } function read_till($what) { if(!is_array($what)) { $bla=$what; unset($what); $what=array(); $what[]=$bla; } $buf = ''; while (1) { $IAC = chr(255); $DONT = chr(254); $DO = chr(253); $WONT = chr(252); $WILL = chr(251); $theNULL = chr(0); $c = $this->getc(); if ($c === false) { if(DEBUG_CI) echo "
c=false: ".__FUNCTION__.": ".$test." (".$buf.")"; if(DEBUG_CI) { $zdiff=number_format(microtime(1)-$GLOBALS['ci_last_microtime'],4,",",""); $GLOBALS['ci_last_microtime']=microtime(1); $GLOBALS['ci_debug_output'].=" $zdiff ".__FUNCTION__." ".print_r($what)." getc=false Puffer:".$buf." "; } if ( $this->htmloutput ) return str_replace("\n",'
',$buf); else return $buf; } if ($c == $theNULL) { if(DEBUG_CI) { $zdiff=number_format(microtime(1)-$GLOBALS['ci_last_microtime'],4,",",""); $GLOBALS['ci_last_microtime']=microtime(1); $GLOBALS['ci_debug_output'].=" $zdiff ".__FUNCTION__." ".print_r($what)." getc=null Puffer:".$buf." "; } continue; } if ($c == "\021") { if(DEBUG_CI) { $zdiff=number_format(microtime(1)-$GLOBALS['ci_last_microtime'],4,",",""); $GLOBALS['ci_last_microtime']=microtime(1); $GLOBALS['ci_debug_output'].=" $zdiff ".__FUNCTION__." ".print_r($what)." getc=\021 Puffer:".$buf." "; } continue; } if ($c != $IAC) { $buf .= $c; $gefunden=0; foreach($what as $bla => $etwas) { // echo substr($buf,strlen($buf)-strlen($etwas))."==".$etwas."
"; if(substr($buf,strlen($buf)-strlen($etwas))==$etwas) { $test=microtime(1)-$test."
"; $test=number_format ( $test , 5 , "," , "" ); if(DEBUG_CI) { $zdiff=number_format(microtime(1)-$GLOBALS['ci_last_microtime'],4,",",""); $GLOBALS['ci_last_microtime']=microtime(1); $GLOBALS['ci_debug_output'].=" $zdiff ".__FUNCTION__." ".$etwas." == ".substr($buf,strlen($buf)-strlen($etwas))." Puffer:".$buf." "; } if ( $this->htmloutput ) return str_replace(chr(13).chr(10),'
',substr($buf,0,strlen($buf)-strlen($etwas))); else return substr($buf,0,strlen($buf)-strlen($etwas)); $gefunden=1; } } if(!$gefunden) { continue; } } $c = $this->getc(); if ($c == $IAC) { $buf .= $c; } else if (($c == $DO) || ($c == $DONT)) { $opt = $this->getc(); // echo "we wont ".ord($opt)."\n"; @fwrite($this->sock,$IAC.$WONT.$opt); } elseif (($c == $WILL) || ($c == $WONT)) { $opt = $this->getc(); // echo "we dont ".ord($opt)."\n"; @fwrite($this->sock,$IAC.$DONT.$opt); } else { // echo "where are we? c=".ord($c)."\n"; } } } function sethtml($bool) { $this->htmloutput = $bool; } } ?>