View Single Post
Old 11-30-2011, 10:54 AM  
Cyber Fucker
Hmm
 
Cyber Fucker's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: On an endless road around the world for rock and roll.
Posts: 12,642
Uh, oh I think there is not much more to explain than I already explained. I just need a function that will validate backlink status.

For example here is a php script sample to validate reciprocal link, I don't even know if it works or not but let's presume that it works:

Code:
$linkAction = $_POST['action'];
$recip_url= $_POST['recip_url'];

if($lnkAction == '1' && isset($recip_url))
	{
		$this_url = 'http://www.my_url.com';
		
		$recip_url = $recip_url;
		
		$source = fopen($recip_url, 'r');
		
		$contents = stream_get_contents($source);
		
		if(stristr($contents, $this_url)) {
			echo '0';
		} else {
			echo '1';
		}
		
		fclose($source);
	}

Now, I want to do the same thing but on a client-side preferably using JavaScript (JavaScript extensions like jQuery or Yui are also acceptable).
__________________
Cyber Fucker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote