web/wp-includes/class-snoopy.php
changeset 194 32102edaa81b
parent 136 bde1974c263b
equal deleted inserted replaced
193:2f6f6f7551ca 194:32102edaa81b
     1 <?php
     1 <?php
     2 if ( !in_array('Snoopy', get_declared_classes() ) ) :
     2 
       
     3 /**
       
     4  * Deprecated. Use WP_HTTP (http.php, class-http.php) instead.
       
     5  */
       
     6 _deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/http.php' );
       
     7 
       
     8 if ( !class_exists( 'Snoopy' ) ) :
     3 /*************************************************
     9 /*************************************************
     4 
    10 
     5 Snoopy - the PHP net client
    11 Snoopy - the PHP net client
     6 Author: Monte Ohrt <monte@ispi.net>
    12 Author: Monte Ohrt <monte@ispi.net>
     7 Copyright (c): 1999-2008 New Digital Group, all rights reserved
    13 Copyright (c): 1999-2008 New Digital Group, all rights reserved
   711 							chr(169),
   717 							chr(169),
   712 							chr(174),
   718 							chr(174),
   713 							chr(176),
   719 							chr(176),
   714 							chr(39),
   720 							chr(39),
   715 							chr(128),
   721 							chr(128),
   716 							"ä",
   722 							chr(0xE4), // ANSI &auml;
   717 							"ö",
   723 							chr(0xF6), // ANSI &ouml;
   718 							"ü",
   724 							chr(0xFC), // ANSI &uuml;
   719 							"Ä",
   725 							chr(0xC4), // ANSI &Auml;
   720 							"Ö",
   726 							chr(0xD6), // ANSI &Ouml;
   721 							"Ü",
   727 							chr(0xDC), // ANSI &Uuml;
   722 							"ß",
   728 							chr(0xDF), // ANSI &szlig;
   723 						);
   729 						);
   724 
   730 
   725 		$text = preg_replace($search,$replace,$document);
   731 		$text = preg_replace($search,$replace,$document);
   726 
   732 
   727 		return $text;
   733 		return $text;