Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: sms skriptai

Parašė Lordcraft· 2007 Bal. 21 21:04:24
#7

man reikia sms scripto typo reklamos panele kaip sitas:
openside("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="Vartotojas";//Jusu unikalus vartotojas
$obj->pass="SLAPTAZODIS";//Jusu unikalus slaptazodis
$obj->act="all";
$array = $obj->get();
print $array[0]["txt"];
$msg = ($msg != '')?trimlink($msg,300):'**Nori parasyti cia savo zinute arba reklama? Tada siusk SMS: PAY lala tavo zinute numeriu 1398 (kaina 1lt)';

$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();




jai kas galetu sukurti toki papigiai iki 10lt sms PM me.