This php sign-in source code, how can I write if I want to fix two accounts in the code? @ Sibang thank you!

Source: Internet
Author: User
Tags file url
How can I write this php sign-in source code if I want to fix two accounts in the code? @ Sibang thank you! At the end of this post, tangdeli98 edited the following php sign-in source code from 2013-12-1715: 08: 00. if I want to fix the two accounts in the code, how can I write them? & Nbsp; (thanks to sibang Daxia for the code I modified yesterday .) & nbsp; I don't use this php sign-in source code. if I want to fix the two accounts in the code, how can I write them? @ Sibang thank you!

This post was last edited by tangdeli98 at 15:08:00, January 17 ,.

Below is the php sign-in source code. if I want to fix the two accounts in the code, how can I write them? (Thanks to sibang Daxia for the code I modified yesterday .)

I don't know how to use php. I only use desktop software. I tried to make the following changes myself. the logic of using my desktop software should be okay, that is, the variable is constantly assigned and then executed. however, the modified php code reported that the deployment was not successful. it should be wrong. what should I do? I want to sign multiple accounts at a time, when the time to hang up the cron task, access this php file URL link (such as http://checkuxin.duapp.com/index.php? Id = & pw = & vi). it's too much trouble to sign all of them.
For more information about php, the more specific the better. thank you !!
----- This is the modified part that I want to build in two accounts (the second line of the complete code begins to be changed, that is, adding an assignment, and the rest are not moved ):----

If ($ id! = ''And $ do = 'vi '){
$ Id = '000000' // ----------------------------- account 1
$ Pw = '000000'
$ 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 (Random, 99999 ). rand (Random, 99999 ). rand (Random, 99999 );
$ Cont = httpreq ($ url, 1 );
If (strstr ($ cont, 'uid ')){
Echo "logon successful
";
} Else {
Echo "logon 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 = '000000' // ----------------------------- 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 (Random, 99999 ). rand (Random, 99999 ). rand (Random, 99999 );
$ Cont = httpreq ($ url, 1 );
If (strstr ($ cont, 'uid ')){
Echo "logon successful
";
} Else {
Echo "logon 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 code is available when the 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;
}?>





Sign in

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.