• 22-02-2008, 18:01:54
    #10
    Üyeliği durduruldu
    xmlrpc.php 2121 satır koda var,
    2000den sonrası kodlar aynen böyle;

    sleep(1);
    
    		// Let's check the remote site
    		$linea = wp_remote_fopen( $pagelinkedfrom );
    		if ( !$linea )
    	  		return new IXR_Error(16, __('The source URL does not exist.'));
    
    		// Work around bug in strip_tags():
    		$linea = str_replace('<!DOC', '<DOC', $linea);
    		$linea = preg_replace( '/[\s\r\n\t]+/', ' ', $linea ); // normalize spaces
    		$linea = preg_replace( "/ <(h1|h2|h3|h4|h5|h6|p|th|td|li|dt|dd|pre|caption|input|textarea|button|body)[^>]*>/", "\n\n", $linea );
    
    		preg_match('|<title>([^<]*?)</title>|is', $linea, $matchtitle);
    		$title = $matchtitle[1];
    		if ( empty( $title ) )
    			return new IXR_Error(32, __('We cannot find a title on that page.'));
    
    		$linea = strip_tags( $linea, '<a>' ); // just keep the tag we need
    
    		$p = explode( "\n\n", $linea );
    
    		$preg_target = preg_quote($pagelinkedto);
    
    		foreach ( $p as $para ) {
    			if ( strpos($para, $pagelinkedto) !== false ) { // it exists, but is it a link?
    				preg_match("|<a[^>]+?".$preg_target."[^>]*>([^>]+?)</a>|", $para, $context);
    
    				// If the URL isn't in a link context, keep looking
    				if ( empty($context) )
    					continue;
    
    				// We're going to use this fake tag to mark the context in a bit
    				// the marker is needed in case the link text appears more than once in the paragraph
    				$excerpt = preg_replace('|\</?wpcontext\>|', '', $para);
    
    				// prevent really long link text
    				if ( strlen($context[1]) > 100 )
    					$context[1] = substr($context[1], 0, 100) . '...';
    
    				$marker = '<wpcontext>'.$context[1].'</wpcontext>';    // set up our marker
    				$excerpt= str_replace($context[0], $marker, $excerpt); // swap out the link for our marker
    				$excerpt = strip_tags($excerpt, '<wpcontext>');        // strip all tags but our context marker
    				$excerpt = trim($excerpt);
    				$preg_marker = preg_quote($marker);
    				$excerpt = preg_replace("|.*?\s(.{0,100}$preg_marker.{0,100})\s.*|s", '$1', $excerpt);
    				$excerpt = strip_tags($excerpt); // YES, again, to remove the marker wrapper
    				break;
    			}
    		}
    
    		if ( empty($context) ) // Link to target not found
    			return new IXR_Error(17, __('The source URL does not contain a link to the target URL, and so cannot be used as a source.'));
    
    		$pagelinkedfrom = str_replace('&', '&amp;', $pagelinkedfrom);
    
    		$context = '[...] ' . wp_specialchars( $excerpt ) . ' [...]';
    		$original_pagelinkedfrom = $pagelinkedfrom;
    		$pagelinkedfrom = $wpdb->escape( $pagelinkedfrom );
    		$original_title = $title;
    
    		$comment_post_ID = (int) $post_ID;
    		$comment_author = $title;
    		$this->escape($comment_author);
    		$comment_author_url = $pagelinkedfrom;
    		$comment_content = $context;
    		$this->escape($comment_content);
    		$comment_type = 'pingback';
    
    		$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_content', 'comment_type');
    
    		$comment_ID = wp_new_comment($commentdata);
    		do_action('pingback_post', $comment_ID);
    
    		return sprintf(__('Pingback from %1$s to %2$s registered. Keep the web talking! :-)'), $pagelinkedfrom, $pagelinkedto);
    	}
    
    
    	/* pingback.extensions.getPingbacks returns an array of URLs
    	that pingbacked the given URL
    	specs on http://www.aquarionics.com/misc/archives/blogite/0198.html */
    	function pingback_extensions_getPingbacks($args) {
    
    		global $wpdb;
    
    		$this->escape($args);
    
    		$url = $args;
    
    		$post_ID = url_to_postid($url);
    		if (!$post_ID) {
    			// We aren't sure that the resource is available and/or pingback enabled
    	  		return new IXR_Error(33, __('The specified target URL cannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.'));
    		}
    
    		$actual_post = wp_get_single_post($post_ID, ARRAY_A);
    
    		if (!$actual_post) {
    			// No such post = resource not found
    	  		return new IXR_Error(32, __('The specified target URL does not exist.'));
    		}
    
    		$comments = $wpdb->get_results("SELECT comment_author_url, comment_content, comment_author_IP, comment_type FROM $wpdb->comments WHERE comment_post_ID = $post_ID");
    
    		if (!$comments) {
    			return array();
    		}
    
    		$pingbacks = array();
    		foreach($comments as $comment) {
    			if ( 'pingback' == $comment->comment_type )
    				$pingbacks[] = $comment->comment_author_url;
    		}
    
    		return $pingbacks;
    	}
    }
    
    
    $wp_xmlrpc_server = new wp_xmlrpc_server();
    
    ?>
    beni yönlendirdiği site ismini tarattım yok çıkmadı,

    herhalde en iyisi yeniden yüklemek olucak...
  • 23-02-2008, 20:28:47
    #11
    Üyeliği durduruldu
    Sağolun arkadaşlar, giren virüsler herşeyi alüst etti, format çektim onuda kabul etmedi, bilgisyarcıya götürdüm herşeyi sildi baştan yükledi, şimdi sağlam, sitede virüs falan yok, pcme giren virüs buna sebep oluyodu;
    neyse teşekkürler yinede...
  • 24-02-2008, 22:07:01
    #12
    sorununu düzelttiğin için sevim...

    FTP Şifrelerinide değiştir... bence bi ftp deki dosyaları indir kasper yada nod32 ile tarat...

    kolay gelsin
  • 28-02-2008, 20:25:14
    #13
    Üyeliği durduruldu
    tmm hocam onlarıda değiştirdim, 3-4 gün bu siteye giremedim, herhalde kapalıydı yada benim nette sorun vardı, anlamaıdm gitti?