/home/altere25/sportzsoft.altereddigital.com/wp-includes
NameSizeModeActions
assets/-0755rm
block-patterns/-0755rm
block-supports/-0755rm
blocks/-0755rm
certificates/-0755rm
css/-0755rm
customize/-0755rm
fonts/-0755rm
html-api/-0755rm
ID3/-0755rm
images/-0755rm
IXR/-0755rm
js/-0755rm
php-compat/-0755rm
PHPMailer/-0755rm
pomo/-0755rm
Requests/-0755rm
rest-api/-0755rm
SimplePie/-0755rm
sitemaps/-0755rm
sodium_compat/-0755rm
style-engine/-0755rm
Text/-0755rm
theme-compat/-0755rm
widgets/-0755rm
.htaccess1780644editdlrm
admin-bar.php359960644editdlrm
atomlib.php119500644editdlrm
author-template.php189510644editdlrm
block-editor.php279230644editdlrm
block-i18n.json3160644editdlrm
block-patterns.php129420644editdlrm
block-template-utils.php484840644editdlrm
block-template.php122880644editdlrm
blocks.php728840644editdlrm
bookmark-template.php129090644editdlrm
bookmark.php153780644editdlrm
cache-compat.php59690644editdlrm
cache.php134740644editdlrm
canonical.php344600644editdlrm
capabilities.php400260644editdlrm
category-template.php570030644editdlrm
category.php127090644editdlrm
class-feed.php5290644editdlrm
class-http.php3670644editdlrm
class-IXR.php25430644editdlrm
class-json.php436840644editdlrm
class-oembed.php4010644editdlrm
class-phpass.php67080644editdlrm
class-phpmailer.php6640644editdlrm
class-pop3.php209690644editdlrm
class-requests.php22370644editdlrm
class-simplepie.php981240644editdlrm
class-smtp.php4570644editdlrm
class-snoopy.php377150644editdlrm
class-walker-category-dropdown.php24690644editdlrm
class-walker-category.php84770644editdlrm
class-walker-comment.php142130644editdlrm
class-walker-nav-menu.php113130644editdlrm
class-walker-page-dropdown.php27100644editdlrm
class-walker-page.php76120644editdlrm
class-wp-admin-bar.php173640644editdlrm
class-wp-ajax-response.php52660644editdlrm
class-wp-application-passwords.php128540644editdlrm
class-wp-block-editor-context.php13500644editdlrm
class-wp-block-list.php47730644editdlrm
class-wp-block-parser-block.php25550644editdlrm
class-wp-block-parser-frame.php19160644editdlrm
class-wp-block-parser.php115320644editdlrm
class-wp-block-pattern-categories-registry.php53710644editdlrm
class-wp-block-patterns-registry.php100770644editdlrm
class-wp-block-styles-registry.php58830644editdlrm
class-wp-block-supports.php55190644editdlrm
class-wp-block-template.php19510644editdlrm
class-wp-block-type-registry.php50130644editdlrm
class-wp-block-type.php147430644editdlrm
class-wp-block.php84010644editdlrm
class-wp-classic-to-block-menu-converter.php40880644editdlrm
class-wp-comment-query.php478290644editdlrm
class-wp-comment.php93720644editdlrm
class-wp-customize-control.php258420644editdlrm
class-wp-customize-manager.php2022570644editdlrm
class-wp-customize-nav-menus.php575660644editdlrm
class-wp-customize-panel.php106700644editdlrm
class-wp-customize-section.php112440644editdlrm
class-wp-customize-setting.php298890644editdlrm
class-wp-customize-widgets.php716120644editdlrm
class-wp-date-query.php357190644editdlrm
class-wp-dependencies.php140620644editdlrm
class-wp-dependency.php26270644editdlrm
class-wp-duotone.php394430644editdlrm
class-wp-editor.php720840644editdlrm
class-wp-embed.php159940644editdlrm
class-wp-error.php75020644editdlrm
class-wp-fatal-error-handler.php78720644editdlrm
class-wp-feed-cache-transient.php25860644editdlrm
class-wp-feed-cache.php9690644editdlrm
class-wp-hook.php160000644editdlrm
class-wp-http-cookie.php73890644editdlrm
class-wp-http-curl.php125410644editdlrm
class-wp-http-encoding.php66890644editdlrm
class-wp-http-ixr-client.php35060644editdlrm
class-wp-http-proxy.php59800644editdlrm
class-wp-http-requests-hooks.php20220644editdlrm
class-wp-http-requests-response.php44000644editdlrm
class-wp-http-response.php29770644editdlrm
class-wp-http-streams.php168590644editdlrm
class-wp-http.php405850644editdlrm
class-wp-image-editor-gd.php175250644editdlrm
class-wp-image-editor-imagick.php376390644editdlrm
class-wp-image-editor.php175840644editdlrm
class-wp-list-util.php74430644editdlrm
class-wp-locale-switcher.php65610644editdlrm
class-wp-locale.php161150644editdlrm
class-wp-matchesmapregex.php18260644editdlrm
class-wp-meta-query.php305330644editdlrm
class-wp-metadata-lazyloader.php68330644editdlrm
class-wp-navigation-fallback.php92110644editdlrm
class-wp-network-query.php192910644editdlrm
class-wp-network.php121890644editdlrm
class-wp-object-cache.php176050644editdlrm
class-wp-oembed-controller.php68790644editdlrm
class-wp-oembed.php313940644editdlrm
class-wp-paused-extensions-storage.php50620644editdlrm
class-wp-post-type.php299780644editdlrm
class-wp-post.php64840644editdlrm
class-wp-query.php1515820644editdlrm
class-wp-recovery-mode-cookie-service.php68770644editdlrm
class-wp-recovery-mode-email-service.php111830644editdlrm
class-wp-recovery-mode-key-service.php45010644editdlrm
class-wp-recovery-mode-link-service.php34630644editdlrm
class-wp-recovery-mode.php114350644editdlrm
class-wp-rewrite.php634300644editdlrm
class-wp-role.php25230644editdlrm
class-wp-roles.php85800644editdlrm
class-wp-scripts.php286630644editdlrm
class-wp-session-tokens.php74510644editdlrm
class-wp-simplepie-file.php33770644editdlrm
class-wp-simplepie-sanitize-kses.php17700644editdlrm
class-wp-site-query.php310200644editdlrm
class-wp-site.php74540644editdlrm
class-wp-styles.php108980644editdlrm
class-wp-tax-query.php195450644editdlrm
class-wp-taxonomy.php185670644editdlrm
class-wp-term-query.php410150644editdlrm
class-wp-term.php52980644editdlrm
class-wp-text-diff-renderer-inline.php8290644editdlrm
class-wp-text-diff-renderer-table.php188070644editdlrm
class-wp-textdomain-registry.php59760644editdlrm
class-wp-theme-json-data.php15530644editdlrm
class-wp-theme-json-resolver.php246410644editdlrm
class-wp-theme-json-schema.php42230644editdlrm
class-wp-theme-json.php1295580644editdlrm
class-wp-theme.php642670644editdlrm
class-wp-user-meta-session-tokens.php29900644editdlrm
class-wp-user-query.php433910644editdlrm
class-wp-user-request.php22220644editdlrm
class-wp-user.php227620644editdlrm
class-wp-walker.php131660644editdlrm
class-wp-widget-factory.php33470644editdlrm
class-wp-widget.php183860644editdlrm
class-wp-xmlrpc-server.php2141400644editdlrm
class-wp.php261190644editdlrm
class-wpdb.php1194570644editdlrm
class.wp-dependencies.php3730644editdlrm
class.wp-scripts.php3430644editdlrm
class.wp-styles.php3380644editdlrm
comment-template.php1014320644editdlrm
comment.php1291120644editdlrm
compat.php152190644editdlrm
cron.php414730644editdlrm
date.php4000644editdlrm
default-constants.php111710644editdlrm
default-filters.php345060644editdlrm
default-widgets.php22220644editdlrm
deprecated.php1838090644editdlrm
embed-template.php3380644editdlrm
embed.php376590644editdlrm
error-protection.php41210644editdlrm
feed-atom-comments.php54510644editdlrm
feed-atom.php30480644editdlrm
feed-rdf.php26680644editdlrm
feed-rss.php11890644editdlrm
feed-rss2-comments.php40800644editdlrm
feed-rss2.php37990644editdlrm
feed.php230570644editdlrm
fonts.php23380644editdlrm
formatting.php3349910644editdlrm
functions.php2762850644editdlrm
functions.wp-scripts.php147590644editdlrm
functions.wp-styles.php85830644editdlrm
general-template.php1677240644editdlrm
global-styles-and-settings.php202050644editdlrm
http.php256240644editdlrm
https-detection.php56610644editdlrm
https-migration.php47410644editdlrm
kses.php720650644editdlrm
l10n.php627830644editdlrm
link-template.php1560750644editdlrm
load.php541290644editdlrm
locale.php1620644editdlrm
media-template.php618210644editdlrm
media.php2074260644editdlrm
meta.php640780644editdlrm
ms-blogs.php256280644editdlrm
ms-default-constants.php49000644editdlrm
ms-default-filters.php66360644editdlrm
ms-deprecated.php217580644editdlrm
ms-files.php27110644editdlrm
ms-functions.php912580644editdlrm
ms-load.php198700644editdlrm
ms-network.php37820644editdlrm
ms-settings.php41240644editdlrm
ms-site.php405020644editdlrm
nav-menu-template.php257850644editdlrm
nav-menu.php440520644editdlrm
option.php913400644editdlrm
pluggable-deprecated.php62630644editdlrm
pluggable.php1130210644editdlrm
plugin.php354650644editdlrm
post-formats.php71000644editdlrm
post-template.php667930644editdlrm
post-thumbnail-template.php103080644editdlrm
post.php2783200644editdlrm
query.php370350644editdlrm
registration-functions.php2000644editdlrm
registration.php2000644editdlrm
rest-api.php971440644editdlrm
revision.php309050644editdlrm
rewrite.php195140644editdlrm
robots-template.php51850644editdlrm
rss-functions.php2550644editdlrm
rss.php230150644editdlrm
script-loader.php1300790644editdlrm
session.php2580644editdlrm
shortcodes.php238560644editdlrm
sitemaps.php32380644editdlrm
spl-autoload-compat.php4410644editdlrm
style-engine.php72000644editdlrm
taxonomy.php1735280644editdlrm
template-canvas.php5440644editdlrm
template-loader.php33500644editdlrm
template.php235250644editdlrm
theme-i18n.json11510644editdlrm
theme-previews.php28260644editdlrm
theme-templates.php62230644editdlrm
theme.json73030644editdlrm
theme.php1312090644editdlrm
update.php368240644editdlrm
user.php1717980644editdlrm
vars.php62020644editdlrm
version.php9290644editdlrm
widgets.php698750644editdlrm
wp-db.php4450644editdlrm
wp-diff.php6470644editdlrm
Edit: /home/altere25/sportzsoft.altereddigital.com/wp-includes/class-pop3.php (20969B)
BUFFER,"integer"); if( !empty($server) ) { // Do not allow programs to alter MAILSERVER // if it is already specified. They can get around // this if they -really- want to, so don't count on it. if(empty($this->MAILSERVER)) $this->MAILSERVER = $server; } if(!empty($timeout)) { settype($timeout,"integer"); $this->TIMEOUT = $timeout; if(function_exists("set_time_limit")){ set_time_limit($timeout); } } return true; } /** * PHP4 constructor. */ public function POP3( $server = '', $timeout = '' ) { self::__construct( $server, $timeout ); } function update_timer () { if(function_exists("set_time_limit")){ set_time_limit($this->TIMEOUT); } return true; } function connect ($server, $port = 110) { // Opens a socket to the specified server. Unless overridden, // port defaults to 110. Returns true on success, false on fail // If MAILSERVER is set, override $server with its value. if (!isset($port) || !$port) {$port = 110;} if(!empty($this->MAILSERVER)) $server = $this->MAILSERVER; if(empty($server)){ $this->ERROR = "POP3 connect: " . _("No server specified"); unset($this->FP); return false; } $fp = @fsockopen("$server", $port, $errno, $errstr); if(!$fp) { $this->ERROR = "POP3 connect: " . _("Error ") . "[$errno] [$errstr]"; unset($this->FP); return false; } socket_set_blocking($fp,-1); $this->update_timer(); $reply = fgets($fp,$this->BUFFER); $reply = $this->strip_clf($reply); if($this->DEBUG) error_log("POP3 SEND [connect: $server] GOT [$reply]",0); if(!$this->is_ok($reply)) { $this->ERROR = "POP3 connect: " . _("Error ") . "[$reply]"; unset($this->FP); return false; } $this->FP = $fp; $this->BANNER = $this->parse_banner($reply); return true; } function user ($user = "") { // Sends the USER command, returns true or false if( empty($user) ) { $this->ERROR = "POP3 user: " . _("no login ID submitted"); return false; } elseif(!isset($this->FP)) { $this->ERROR = "POP3 user: " . _("connection not established"); return false; } else { $reply = $this->send_cmd("USER $user"); if(!$this->is_ok($reply)) { $this->ERROR = "POP3 user: " . _("Error ") . "[$reply]"; return false; } else return true; } } function pass ($pass = "") { // Sends the PASS command, returns # of msgs in mailbox, // returns false (undef) on Auth failure if(empty($pass)) { $this->ERROR = "POP3 pass: " . _("No password submitted"); return false; } elseif(!isset($this->FP)) { $this->ERROR = "POP3 pass: " . _("connection not established"); return false; } else { $reply = $this->send_cmd("PASS $pass"); if(!$this->is_ok($reply)) { $this->ERROR = "POP3 pass: " . _("Authentication failed") . " [$reply]"; $this->quit(); return false; } else { // Auth successful. $count = $this->last("count"); $this->COUNT = $count; return $count; } } } function apop ($login,$pass) { // Attempts an APOP login. If this fails, it'll // try a standard login. YOUR SERVER MUST SUPPORT // THE USE OF THE APOP COMMAND! // (apop is optional per rfc1939) if(!isset($this->FP)) { $this->ERROR = "POP3 apop: " . _("No connection to server"); return false; } elseif(!$this->ALLOWAPOP) { $retVal = $this->login($login,$pass); return $retVal; } elseif(empty($login)) { $this->ERROR = "POP3 apop: " . _("No login ID submitted"); return false; } elseif(empty($pass)) { $this->ERROR = "POP3 apop: " . _("No password submitted"); return false; } else { $banner = $this->BANNER; if( (!$banner) or (empty($banner)) ) { $this->ERROR = "POP3 apop: " . _("No server banner") . ' - ' . _("abort"); $retVal = $this->login($login,$pass); return $retVal; } else { $AuthString = $banner; $AuthString .= $pass; $APOPString = md5($AuthString); $cmd = "APOP $login $APOPString"; $reply = $this->send_cmd($cmd); if(!$this->is_ok($reply)) { $this->ERROR = "POP3 apop: " . _("apop authentication failed") . ' - ' . _("abort"); $retVal = $this->login($login,$pass); return $retVal; } else { // Auth successful. $count = $this->last("count"); $this->COUNT = $count; return $count; } } } } function login ($login = "", $pass = "") { // Sends both user and pass. Returns # of msgs in mailbox or // false on failure (or -1, if the error occurs while getting // the number of messages.) if( !isset($this->FP) ) { $this->ERROR = "POP3 login: " . _("No connection to server"); return false; } else { $fp = $this->FP; if( !$this->user( $login ) ) { // Preserve the error generated by user() return false; } else { $count = $this->pass($pass); if( (!$count) || ($count == -1) ) { // Preserve the error generated by last() and pass() return false; } else return $count; } } } function top ($msgNum, $numLines = "0") { // Gets the header and first $numLines of the msg body // returns data in an array with each returned line being // an array element. If $numLines is empty, returns // only the header information, and none of the body. if(!isset($this->FP)) { $this->ERROR = "POP3 top: " . _("No connection to server"); return false; } $this->update_timer(); $fp = $this->FP; $buffer = $this->BUFFER; $cmd = "TOP $msgNum $numLines"; fwrite($fp, "TOP $msgNum $numLines\r\n"); $reply = fgets($fp, $buffer); $reply = $this->strip_clf($reply); if($this->DEBUG) { @error_log("POP3 SEND [$cmd] GOT [$reply]",0); } if(!$this->is_ok($reply)) { $this->ERROR = "POP3 top: " . _("Error ") . "[$reply]"; return false; } $count = 0; $MsgArray = array(); $line = fgets($fp,$buffer); while ( !preg_match('/^\.\r\n/',$line)) { $MsgArray[$count] = $line; $count++; $line = fgets($fp,$buffer); if(empty($line)) { break; } } return $MsgArray; } function pop_list ($msgNum = "") { // If called with an argument, returns that msgs' size in octets // No argument returns an associative array of undeleted // msg numbers and their sizes in octets if(!isset($this->FP)) { $this->ERROR = "POP3 pop_list: " . _("No connection to server"); return false; } $fp = $this->FP; $Total = $this->COUNT; if( (!$Total) or ($Total == -1) ) { return false; } if($Total == 0) { return array("0","0"); // return -1; // mailbox empty } $this->update_timer(); if(!empty($msgNum)) { $cmd = "LIST $msgNum"; fwrite($fp,"$cmd\r\n"); $reply = fgets($fp,$this->BUFFER); $reply = $this->strip_clf($reply); if($this->DEBUG) { @error_log("POP3 SEND [$cmd] GOT [$reply]",0); } if(!$this->is_ok($reply)) { $this->ERROR = "POP3 pop_list: " . _("Error ") . "[$reply]"; return false; } list($junk,$num,$size) = preg_split('/\s+/',$reply); return $size; } $cmd = "LIST"; $reply = $this->send_cmd($cmd); if(!$this->is_ok($reply)) { $reply = $this->strip_clf($reply); $this->ERROR = "POP3 pop_list: " . _("Error ") . "[$reply]"; return false; } $MsgArray = array(); $MsgArray[0] = $Total; for($msgC=1;$msgC <= $Total; $msgC++) { if($msgC > $Total) { break; } $line = fgets($fp,$this->BUFFER); $line = $this->strip_clf($line); if(strpos($line, '.') === 0) { $this->ERROR = "POP3 pop_list: " . _("Premature end of list"); return false; } list($thisMsg,$msgSize) = preg_split('/\s+/',$line); settype($thisMsg,"integer"); if($thisMsg != $msgC) { $MsgArray[$msgC] = "deleted"; } else { $MsgArray[$msgC] = $msgSize; } } return $MsgArray; } function get ($msgNum) { // Retrieve the specified msg number. Returns an array // where each line of the msg is an array element. if(!isset($this->FP)) { $this->ERROR = "POP3 get: " . _("No connection to server"); return false; } $this->update_timer(); $fp = $this->FP; $buffer = $this->BUFFER; $cmd = "RETR $msgNum"; $reply = $this->send_cmd($cmd); if(!$this->is_ok($reply)) { $this->ERROR = "POP3 get: " . _("Error ") . "[$reply]"; return false; } $count = 0; $MsgArray = array(); $line = fgets($fp,$buffer); while ( !preg_match('/^\.\r\n/',$line)) { if ( $line[0] == '.' ) { $line = substr($line,1); } $MsgArray[$count] = $line; $count++; $line = fgets($fp,$buffer); if(empty($line)) { break; } } return $MsgArray; } function last ( $type = "count" ) { // Returns the highest msg number in the mailbox. // returns -1 on error, 0+ on success, if type != count // results in a popstat() call (2 element array returned) $last = -1; if(!isset($this->FP)) { $this->ERROR = "POP3 last: " . _("No connection to server"); return $last; } $reply = $this->send_cmd("STAT"); if(!$this->is_ok($reply)) { $this->ERROR = "POP3 last: " . _("Error ") . "[$reply]"; return $last; } $Vars = preg_split('/\s+/',$reply); $count = $Vars[1]; $size = $Vars[2]; settype($count,"integer"); settype($size,"integer"); if($type != "count") { return array($count,$size); } return $count; } function reset () { // Resets the status of the remote server. This includes // resetting the status of ALL msgs to not be deleted. // This method automatically closes the connection to the server. if(!isset($this->FP)) { $this->ERROR = "POP3 reset: " . _("No connection to server"); return false; } $reply = $this->send_cmd("RSET"); if(!$this->is_ok($reply)) { // The POP3 RSET command -never- gives a -ERR // response - if it ever does, something truly // wild is going on. $this->ERROR = "POP3 reset: " . _("Error ") . "[$reply]"; @error_log("POP3 reset: ERROR [$reply]",0); } $this->quit(); return true; } function send_cmd ( $cmd = "" ) { // Sends a user defined command string to the // POP server and returns the results. Useful for // non-compliant or custom POP servers. // Do NOT include the \r\n as part of your command // string - it will be appended automatically. // The return value is a standard fgets() call, which // will read up to $this->BUFFER bytes of data, until it // encounters a new line, or EOF, whichever happens first. // This method works best if $cmd responds with only // one line of data. if(!isset($this->FP)) { $this->ERROR = "POP3 send_cmd: " . _("No connection to server"); return false; } if(empty($cmd)) { $this->ERROR = "POP3 send_cmd: " . _("Empty command string"); return ""; } $fp = $this->FP; $buffer = $this->BUFFER; $this->update_timer(); fwrite($fp,"$cmd\r\n"); $reply = fgets($fp,$buffer); $reply = $this->strip_clf($reply); if($this->DEBUG) { @error_log("POP3 SEND [$cmd] GOT [$reply]",0); } return $reply; } function quit() { // Closes the connection to the POP3 server, deleting // any msgs marked as deleted. if(!isset($this->FP)) { $this->ERROR = "POP3 quit: " . _("connection does not exist"); return false; } $fp = $this->FP; $cmd = "QUIT"; fwrite($fp,"$cmd\r\n"); $reply = fgets($fp,$this->BUFFER); $reply = $this->strip_clf($reply); if($this->DEBUG) { @error_log("POP3 SEND [$cmd] GOT [$reply]",0); } fclose($fp); unset($this->FP); return true; } function popstat () { // Returns an array of 2 elements. The number of undeleted // msgs in the mailbox, and the size of the mbox in octets. $PopArray = $this->last("array"); if($PopArray == -1) { return false; } if( (!$PopArray) or (empty($PopArray)) ) { return false; } return $PopArray; } function uidl ($msgNum = "") { // Returns the UIDL of the msg specified. If called with // no arguments, returns an associative array where each // undeleted msg num is a key, and the msg's uidl is the element // Array element 0 will contain the total number of msgs if(!isset($this->FP)) { $this->ERROR = "POP3 uidl: " . _("No connection to server"); return false; } $fp = $this->FP; $buffer = $this->BUFFER; if(!empty($msgNum)) { $cmd = "UIDL $msgNum"; $reply = $this->send_cmd($cmd); if(!$this->is_ok($reply)) { $this->ERROR = "POP3 uidl: " . _("Error ") . "[$reply]"; return false; } list ($ok,$num,$myUidl) = preg_split('/\s+/',$reply); return $myUidl; } else { $this->update_timer(); $UIDLArray = array(); $Total = $this->COUNT; $UIDLArray[0] = $Total; if ($Total < 1) { return $UIDLArray; } $cmd = "UIDL"; fwrite($fp, "UIDL\r\n"); $reply = fgets($fp, $buffer); $reply = $this->strip_clf($reply); if($this->DEBUG) { @error_log("POP3 SEND [$cmd] GOT [$reply]",0); } if(!$this->is_ok($reply)) { $this->ERROR = "POP3 uidl: " . _("Error ") . "[$reply]"; return false; } $line = ""; $count = 1; $line = fgets($fp,$buffer); while ( !preg_match('/^\.\r\n/',$line)) { list ($msg,$msgUidl) = preg_split('/\s+/',$line); $msgUidl = $this->strip_clf($msgUidl); if($count == $msg) { $UIDLArray[$msg] = $msgUidl; } else { $UIDLArray[$count] = 'deleted'; } $count++; $line = fgets($fp,$buffer); } } return $UIDLArray; } function delete ($msgNum = "") { // Flags a specified msg as deleted. The msg will not // be deleted until a quit() method is called. if(!isset($this->FP)) { $this->ERROR = "POP3 delete: " . _("No connection to server"); return false; } if(empty($msgNum)) { $this->ERROR = "POP3 delete: " . _("No msg number submitted"); return false; } $reply = $this->send_cmd("DELE $msgNum"); if(!$this->is_ok($reply)) { $this->ERROR = "POP3 delete: " . _("Command failed ") . "[$reply]"; return false; } return true; } // ********************************************************* // The following methods are internal to the class. function is_ok ($cmd = "") { // Return true or false on +OK or -ERR if( empty($cmd) ) return false; else return( stripos($cmd, '+OK') !== false ); } function strip_clf ($text = "") { // Strips \r\n from server responses if(empty($text)) return $text; else { $stripped = str_replace(array("\r","\n"),'',$text); return $stripped; } } function parse_banner ( $server_text ) { $outside = true; $banner = ""; $length = strlen($server_text); for($count =0; $count < $length; $count++) { $digit = substr($server_text,$count,1); if(!empty($digit)) { if( (!$outside) && ($digit != '<') && ($digit != '>') ) { $banner .= $digit; } if ($digit == '<') { $outside = false; } if($digit == '>') { $outside = true; } } } $banner = $this->strip_clf($banner); // Just in case return "<$banner>"; } } // End class // For php4 compatibility if (!function_exists("stripos")) { function stripos($haystack, $needle){ return strpos($haystack, stristr( $haystack, $needle )); } }