EC Assistant for Ecshop product batch upload 1.28 support ECshop2.7.3 method

Source: Internet
Author: User

At present the official with Ecshop V2.73 release also issued the corresponding EC Assistant version 1.30. The default EC assistant 1.28 also supports the Ecshop V2.72, if you want EC assistant 1.28 to support Ecshop V2.73, see what changes Ecshop V2.73 have made on Ecshop V2.72. I told you. EC Assistant 1.28 Download, after downloading please install according to the documentation and tutorials inside.
After the installation is complete, we follow the tutorial to connect our Ecshop V2.73 site will be directly thrown a user name or password error prompt, then open upload to the server interface directory Assistant_ UTF8 under the ecaservice.php file, see the following code in the 51 guild:

functionChecklogin ($username,$password){    $username=Base64_decode($username); $password=Base64_decode($password); //$username = Str_iconv (Ecs_charset, Ec_charset, $username);         $password = Str_iconv (Ecs_charset, Ec_charset, $password); return true;     $sql= "Select user_id, user_name, password, last_login, action_list, Last_login". "From".$GLOBALS[' ECS ']->table (' Admin_user '). "WHERE user_name = '".$username."‘ and password = ' ".MD5($password) ."‘"; $row=$GLOBALS[' DB ']->getrow ($sql); if($row) {returntrue; }Else{returnfalse; }  }
修改这段代码之前,需要你到你网站数据库查看ecs_admin_user表中ec_salt这个字段的值,下面是我这个表的:

<pre name= "Code"class= "PHP" >functionChecklogin ($username,$password){    $username=Base64_decode($username); $password=Base64_decode($password); //$username = Str_iconv (Ecs_charset, Ec_charset, $username);         $password = Str_iconv (Ecs_charset, Ec_charset, $password); return true;          $sql= "Select user_id, user_name, password, last_login, action_list, Last_login". "From".$GLOBALS[' ECS ']->table (' Admin_user '). "WHERE user_name = '".$username. "' and password = '".MD5(MD5($password).‘ 5606 '). "‘"; $row=$GLOBALS[' DB ']->getrow ($sql); if($row)    {         return true; }Else{      return false; }   }</pre><br><br>

Note that this code of 5606 to replace the corresponding value in your database, after the operation of EC Assistant 1.28 will be able to perfectly support ecshop V2.73, simple. In terms of the principle,

ECShop V2.73 Management Login Encryption in the previous version of the change, we look at ECShop V2.73 Administrator login Encrypted part of the code:

if(!Empty($ec _salt))    {          /*Check that the password is correct*/         $sql= "Select user_id, user_name, password, last_login, action_list, Last_login,suppliers_id,ec_salt". "From".$ecs->table (' Admin_user '). "WHERE user_name = '".$_post[' username ']. "' and password = '".MD5(MD5($_post[' Password ']).$ec _salt) . "‘"; }     Else    {          /*Check that the password is correct*/         $sql= "Select user_id, user_name, password, last_login, action_list, Last_login,suppliers_id,ec_salt". "From".$ecs->table (' Admin_user '). "WHERE user_name = '".$_post[' username ']. "' and password = '".MD5($_post[' Password ']) . "‘"; }

More related questions to visit the Cuckoo network.


EC Assistant for Ecshop product batch upload 1.28 support ECshop2.7.3 method

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.