Code for external websites to call uchome User Logon

Source: Internet
Author: User

<Form id = "loginform" method = "post" name = "login" action = "http://www.homebk.net: 8080/home/do. php? Ac = login & ref "target =" _ blank ">

<Td width = "186"> User Name:
<Input id = "username" name = "username" type = "text" size = "7" class = "input" tabindex = "2"/> </td>
& Lt; td width = "186" & gt; password:
<Input type = "password" name = "password" id = "password" size = "7" class = "input" tabindex = "3 s"/> </td>
<Td width = "59" align = "right" valign = "middle"> & nbsp;
<Input type = "submit" id = "loginsubmit" name = "loginsubmit" value = "Logon" style = "width: 47px; height: 20px; background: url (/resources/images/btnbg.jpg) no-repeat; border: 0; cursor: pointer; font-size: 12px; color: # FFFFFF; text-align: center; "/>
<Input type = "hidden" name = "formhash" value = "d9d21108"/>
<Input type = "hidden" name = "refer" value = "/home/space. php? Do = home "/>

</Td>

<Td width = "47"> </td>

</Form>

 

Note that you need to change two settings !~

1. Find the line of logon and registration anti-Water Filling Machine in the common. php file and run the following code:

  1. If (empty ($ _ sconfig ['login _ action']) $ _ sconfig ['login _ action'] = MD5 ('login '. MD5 ($ _ sconfig ['sitekey']);
  2. If (empty ($ _ sconfig ['register _ action']) $ _ sconfig ['register _ action'] = MD5 ('register '. MD5 ($ _ sconfig ['sitekey']);

Copy code

Changed:

  1. If (empty ($ _ sconfig ['login _ action']) $ _ sconfig ['login _ action'] = 'login ';
  2. If (empty ($ _ sconfig ['register _ action']) $ _ sconfig ['register _ action'] = 'register ';

Copy code

 

2. Out-of-siteLoginRemove the formhash judgment.
/Source/function_common.php File

& $ _ POST ['formhash'] = formhash ()

Copy code

Delete this code
OtherwiseLoginNo

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.