This PHP check-in source, my little brother if I want to put two account fixed in the code, how to write it? Thank you, @sibang Warrior.

Source: Internet
Author: User
Tags file url
This PHP check-in source, if I want to put two account fixed in the code, how to write it? @sibang Warrior Thank you!
This post was last edited by tangdeli98 on 2013-12-17 15:08:00

Below this PHP check-in source, if I want to put two account fixed in the code, how to write it? (thank Sibang, yesterday to help me modify the code.)

I do not PHP, only do desktop software. I try to do the following, according to the logic of my desktop software should be possible, that is, the variable is constantly re-assigned value and then execute the command. But the revised PHP code is not successfully deployed, it should be wrong. How do I write it? I want to sign multiple accounts at once. Then hang cron task up, access the php file URL link (such as HTTP://CHECKUXIN.DUAPP.COM/INDEX.PHP?ID=&PW=&VI) all signed. Get too much trouble.
Ask the PHP predecessors to help look, the more specific the better. Thanks a lot!!
-----This is my own modification of the two account to be built into the modified part (the 97th line of the complete code to change, that is, more than one assignment, the rest is not moving):----

if ($id! = "and $do = = ' VI ') {
$id = ' 1355114 '//-----------------------------account 1
$PW = ' 653 '
$rang =rand (333,8888);
$url = "http://im.uxin.com:8887/login?sn=". $rang. " &account= ". $id." &pwd= ". MD5 ($PW)." &pv=android&v=2.8.4&sign= ". MD5 ($rang. $id." K1oet&yh7@eqnp2xdtp1o/vo= "). &netmode=1&brand=xiaomi&model=mi+2sc&osv=4.1.1&imei= ". Rand (10000,99999). Rand (10000,99999). Rand (10000,99999);
$cont =httpreq ($url, 1);
if (Strstr ($cont, ' uid ')) {
echo "Login Successful
";
}else{
echo "Login failed
";
}
$url = "http://im.uxin.com:8887/signin?sn=". $rang. " &sign= ". MD5 ($rang." K1oet&yh7@eqnp2xdtp1o/vo= ");
$content =json_decode (Httpreq ($url), true);

echo $content [' content '];
Echo '
', Var_dump ($content), '
';
Die ();

$id = ' 151175 '//-----------------------------account 2
$PW = ' 053 '
$rang =rand (333,8888);
$url = "http://im.uxin.com:8887/login?sn=". $rang. " &account= ". $id." &pwd= ". MD5 ($PW)." &pv=android&v=2.8.4&sign= ". MD5 ($rang. $id." K1oet&yh7@eqnp2xdtp1o/vo= "). &netmode=1&brand=xiaomi&model=mi+2sc&osv=4.1.1&imei= ". Rand (10000,99999). Rand (10000,99999). Rand (10000,99999);
$cont =httpreq ($url, 1);
if (Strstr ($cont, ' uid ')) {
echo "Login Successful
";
}else{
echo "Login failed
";
}
$url = "http://im.uxin.com:8887/signin?sn=". $rang. " &sign= ". MD5 ($rang." K1oet&yh7@eqnp2xdtp1o/vo= ");
$content =json_decode (Httpreq ($url), true);

echo $content [' content '];
Echo '
', Var_dump ($content), '
';
Die ();

-------The following is the code that is available when a built-in account is not fixed:--------------------------------
 
Set_time_limit (0);
Ini_set (' display_errors ', ' on ');
Error_reporting (E_all);
Header (' content-type:text/html; Charset=utf-8 ');

$id = (Isset ($_request["id"]))? Trim ($_request["id"]): ';
$PW = (isset ($_request["PW"))? Trim ($_request["PW"]): ";
$do = (Isset ($_request["do"))? Trim ($_request["Do"]): ";

if ($id! = "and $PW! =") {
Setcookie ("id", $id);
Setcookie ("PW", $PW);
}
Header ("content-type:text/html; Charset=utf-8 ");
$cookie _file = dirname (__file__). " /cookie_ ". MD5 (basename (__file__)).". TXT ";

Date_default_timezone_set (' PRC ');

function Httpreq ($url, $getcookie =0) {
$ch = Curl_init ();
curl_setopt ($ch, Curlopt_url, $url);
curl_setopt ($ch, Curlopt_useragent, "dalvik/1.6.0 (Linux; U Android 4.1.1; MI 2SC miui/jlb14.0) ");
curl_setopt ($ch, Curlopt_returntransfer, 1);
$getcookie curl_setopt ($ch, Curlopt_cookiejar, $GLOBALS [' Cookie_file ']): curl_setopt ($ch, Curlopt_cookiefile, $ globals[' Cookie_file ');
$result = curl_exec ($ch);
Curl_close ($ch);

return $result;
}?>





<title>Sign</title>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.