Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: ar daugiau nk nereikia?

Parašė crawler· 2008 Bir. 10 19:06:55
#1

ar daugiau nk nereikia irasius si skripta?
openside("**Ero SmS Skelbimai**");
class getsms
{
var $user;
var $pass;
var $act='all';
function get()
{
$host="mano.tinklalapis.net";
$method="POST";
$path="/sms.php";
$data="user=".urlencode($this->user);
$data.="&pass=".urlencode($this->pass);
$data.="&act=".urlencode($this->act);
$fp=fsockopen($host,80);
fputs($fp, $method." ".$path." HTTP/1.1\r\n");
fputs($fp, "Host: $host\r\n");
fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
fputs($fp, "Content-length: " . strlen($data) . "\r\n");
fputs($fp, "Connection: close\r\n\r\n");
fputs($fp, $data);
while (!feof($fp))
{
$buf .= fgets($fp,128);
}
fclose($fp);
$buf=substr($buf,strpos($buf,"\r\n\r\n")+4);
$buf=substr($buf,strpos($buf,"\r\n")+2);
return unserialize($buf);
}
}
$obj=new getsms();
$obj->user="";//Jusu unikalus vartotojas
$obj->pass="";//Jusu unikalus slaptazodis
$obj->act="all";
$array = $obj->get();
print $array[0]["txt"];
$msg = ($msg != '')?trimlink($msg,300):'**Nori parašyti čia savo žinute arba reklama? Tada siusk SMS: TIK2 ech tavo žinutė numeriu 1371 (kaina 2lt)';

$msg = preg_replace( "`((http)+(s)?:(//)|(www\.))((\w|\.|\-|_)+)(/)?(\S+)?`i", "<a href=\"http\\3://\\5\\6\\8\\9\" title=\"\\0\" target=\"_blank\">\\5\\6</a>", $msg);

echo "
<html>
<head>

</head>
<body text='red'><marquee behavior='scroll' scrollamount='1' scrolldelay='1' onmouseover='this.stop()' onmouseout='this.start()' align='center'><b>
$msg
</b></marquee>
</body>
</html></head> ";
closeside();


ar nk i ji irasyt nereikia? ar nereikia sukurti sms.php? aciu:)

Redagavo Giedrunskis· 2008 Bir. 10 19:06:56