-

 - e-mail

 

 -

php seo nikon

 -

 LiveInternet.ru:
: 14.02.2009
:
:
: 23

:

(3)

ucoz`

, 27 2009 . 13:44 +

- - .

http://$HOST/gb/

POST-:

$postdata = array(
	"id" => '/gb/',
	"name" => "[]",
	"message" => "[ ]",
	"email" => "",
	"www"	=> "",
	"code" => "[  ]",
	"a" => "[    ]",
	"m"	=> "[    ]",
	"syst" => "",
	"sos" => []
);

, , ( ).  “” . sos - , . JS- ( ):

var _y8M='';
function _dS(s)
{
	var i;
	var r="";
	var l=s.length-1;
	var k=s.substr(l,1);
	for (i=0;i<32){
		c=127-(32-c);
		}
		r+=String.fromCharCode(c);
	}
return r;
}
_y8M=_dS('>kprwv"v{rg?$jkffgp$"pcog?$uqu$"xcnwg?$37234;746:$"1@2');

- . , :

<input name="sos" type="hidden" value="1501295248" />

. . PHP, :

function sos_decode($code)
{
	$ret = '';
	$code = stripcslashes($code);
	$l = strlen($code)-1;
	$k = substr($code,$l,1);
	for($i=0;$i<$l;$i++){
		$c = ord($code[$i])-$k;
		if($c<32){
			$c = 127-(32-$c);
		}
		$ret .= chr($c);
	}
	return $ret;
}

. .. , ! UCOZ - - .


:  
(0)

addurl

, 16 2009 . 13:40 +

- , “ “, - .

: addurl (webmaster.yandex.ru)

PHP anti-captcha.com.

http://webmaster.yandex.ru/add.xml

:

url => url
key =>
rep =>

- . , . ,

// , $left $right $str
function cut_str($str, $left, $right)
{
$str = substr(stristr($str, $left), strlen($left));
$leftLen = strlen(stristr($str, $right));
$leftLen = $leftLen ? -($leftLen) : strlen($str);
$str = substr($str, 0, $leftLen);
return $str;
}

<input type=“hidden” name=“key” value=“41b8227dcc2c765d90386921797db4ca”>

,

$key = cut_str($data, ‘name=”key” value=”‘,’”‘);

.

http://captcha.yandex.net/image?key={ }

. . ,   .

$postdata = array(
‘url’ => $link,
‘key’ => $key,
‘rep’ => $captcha_value
);

$cap = geturl(”http://webmaster.yandex.ru/add.xml”,$postdata);

. .. , !


:  
(3)

, 13 2009 . 00:44 +

- SEO ( ).

“” !

- ?! . , .. . , - !

, , . ? , anti-captcha.com! …

 

anti-captcha.com. - $0.001-   - ($1 1000 )

( $key) .

http://myseoincome.ru/php/anticaptcha/

- . .

, :

 
 

:

    !

.  :

user -  
captcha -  
act=reg -  

POST. img.php

, , .

:

  1. (http://myseoincome.ru/php/anticaptcha/img.php)
  2. .

, . .

- geturl(). .

URL , $postdata POST $header. ,

<?php
function geturl($url,$postdata=0,$header=0)
{
	$poststr="";
	if ($postdata)
		while (list($name,$value)=each($postdata)){
	    	if (strlen($poststr)>0)
	    		$poststr.="&";
	    	$poststr.=$name."=".urlencode($value);
	        }

	//  
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);

	if ($header){
		curl_setopt($ch, CURLOPT_HEADER, 1);
		curl_setopt($ch, CURLOPT_NOBODY, 1);
	}else{
		curl_setopt($ch, CURLOPT_HEADER, 0);
	}

	if ($postdata){
		curl_setopt($ch, CURLOPT_POST, 1);
		curl_setopt($ch, CURLOPT_POSTFIELDS, $poststr);
	}

	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	$res = curl_exec($ch);
	curl_close($ch);
	return $res;
}

?>

.

$header = geturl('http://myseoincome.ru/php/anticaptcha/',0,1);

HTTP/1.1 200 OK
Date: Sat, 13 Dec 2008 09:16:20 GMT
Server: Apache/1.3.34 (Debian)
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
X-Powered-By: PHP/5.2.0-8+etch13
Set-Cookie: PHPSESSID=edd8be2ff7a1577cc048734b43607415; path=/
Connection: close
Content-Type: text/html

ID (edd8be2ff7a1577cc048734b43607415)

preg_match('|PHPSESSID=(.*);|U', $header, $out);
$session = $out[1];

, , anti-captcha.com

, , , .

$postdata = array(
	'PHPSESSID' => $session
);
$captcha = geturl('http://myseoincome.ru/php/anticaptcha/img.php',$postdata);

$postdata = array(
    'method'    => 'base64',
    'key'       => $key,
    'body'      => base64_encode($captcha),
    'ext' 	=> 'png'
);
$rev = geturl("http://anti-captcha.com/in.php",$postdata);

if (substr($rev,0,2)=='OK'){
	// id   
	$anti_captcha_id = substr($rev,3);
}else{
	echo "Upload ERROR";
	exit;
}
// 15    
sleep(15);

$postdata = array(
    'key'       => $key,
    'action'    => 'get',
    'id' 	=> $anti_captcha_id
);

$cap = geturl("http://anti-captcha.com/res.php",$postdata);

if (substr($cap,0,2)=='OK'){
	$captcha_value = substr($cap,3);
}else{
	echo "ERROR";
	exit;
}

. ID . ID , . , , 15 ! 5 . , , .

, , .  !

$postdata = array(
	"user" => "SEO-",
	"captcha" => $captcha_value,
	"act" => "reg",
	"PHPSESSID" => $session

);
$recdata = geturl('http://myseoincome.ru/php/anticaptcha/',$postdata);
echo $recdata;

:

SEO-

, . .

. . !


:  
(0)

JavaScript

, 13 2009 . 00:32 +

.

PHP JavaScript.

-

<?php
header('Content-type: text/javascript');
...
$msg = '....';
?>
alert('<?=$msg;?>');

,  $msg , JavaScript , !

php.net

function jsAddSlashes($str) {
$pattern = array(
“/\\\\/”  , “/\n/”    , “/\r/”    , “/\”/”    ,
“/\’/”    , “/&/”     , “/</”     , “/>/”
);
$replace = array(
“\\\\\\\\”, “\\n”     , “\\r”     , “\\\”"    ,
“\\’”     , “\\x26″   , “\\x3C”   , “\\x3E”
);
return preg_replace($pattern, $replace, $str);
}

- js

myseoincome.ru


:  

 : [1]