zoukankan      html  css  js  c++  java
  • EcStore操作笔记

    1.去掉首页里面代码

    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <!--↑↑模板中请务必使用HTML5的标准DOCTYPE↑↑-->
    <meta name="generator" content="ecstore.'.$app_exclusion['app_id'].'" />
    <!--ecstore 系列产品前端由 ShopEx UED 团队倾力打造-->
    <!--========== Authors ==========-->
    <!--Leader: zinkwind@gmail.com-->
    <!--ID: wosqiqi@gmail.com-->
    <!--VD: luyunfang11@163.com-->
    <!--VD: yubin@shopex.cn-->
    <!--FE: tylerchao.sh@gmail.com-->
    <!--WAP: 4769946@qq.com-->
    

    解决:

    文件路径:app/site/lib/view/helper.php

    2.修改后台登录路径

    文件路径:config/mapper.php

    3.Powered By出现的文件
    1)app/base/lib/view/compiler.php
    2)app/desktop/contoller/default.php
    3)app/desktop/view/about.html
    4)app/desktop/view/tpl.html
    5)public/app/desktop/statics/about.html

    4.去掉首页底部版权
    注释文件app/site/lib/view/helper.php

    $obj = kernel::service('site_footer_copyright');
    if(is_object($obj) && method_exists($obj, 'get')){
    $html .= $obj->get();
    }else{
    if(!defined('WITHOUT_POWERED') || !constant('WITHOUT_POWERED')){
    $html .= ecos_cactus('site','copyr',$html);
    }
    }

    5.增加超级管理员
    相关表:
    1.sdb_pam_account
    2.sdb_desktop_users
    获得密码:
    apppamlibpassportdesktopasic.php

    $password_string = pam_encrypt::get_encrypted_password($_POST['password'],$auth- 
    >type,array('login_name'=>$_POST['uname']));
    

    6.密码加密方式
    相关页面:
    1.apppamlibencrypt.php
    2.apppamlibencryptdefault.php

    函数:extends_md5()

    核心代码:

    $string_md5 = md5(md5($source_str).$username.$createtime);
    $front_string = substr($string_md5,0,31);
    $end_string = 's'.$front_string;
    

    如果用户名是手机,又不想用手机验证,可稍加改造:比如:13100000000->s13100000000
    打开页面:app2ccontrollersitepassport.php
    找到函数:post_login();
    修改代码:'login_account' => $post['uname'] 为 'login_account' => 's'.$post['uname'];

    或者

    打开页面: app2clibuserpassport.php
    找到函数:get_login_account_type()
    注释掉手机类型验证:

    /*if(preg_match("/^1[34578]{1}[0-9]{9}$/",$login_account)){
          $login_type = 'mobile';
          return $login_type;
    }*/

    7.商品详细页图片过大导致页面错乱

    后台【控制面板】->【商品图片配置】->【商品页详细图设定】

    默认尺寸:宽300px 高300px

    8.去掉PC和WAP版免费注册(分销模式推荐注册会用到)

    PC文件位置:app/b2c/view/site/passport/signin/signin.html
    WAP文件位置:app/b2c/view/wap/passport/index.html

    更新中......

  • 相关阅读:
    [LeetCode] Range Sum Query
    [LeetCode] Longest Increasing Subsequence
    [LeetCode] Bulls and Cows
    [LeetCode] Serialize and Deserialize Binary Tree
    [LeetCode] Find Median from Data Stream
    [LeetCode] Convert Sorted List to Binary Search Tree
    [LeetCode] Nim Game
    [LeetCode] Word Pattern
    安装配置说明与注意
    java.lang.OutOfMemoryError: PermGen space及其解决方法
  • 原文地址:https://www.cnblogs.com/zhijiangch/p/5804344.html
Copyright © 2011-2022 走看看