Home  >  Article  >  Backend Development  >  请问熟悉DiscuzX1.5的大猿~

请问熟悉DiscuzX1.5的大猿~

WBOY
WBOYOriginal
2016-06-13 10:14:191088browse

请教熟悉DiscuzX1.5的大猿~~
RT,本人想改它的登陆代码,但是不知道如何修改,只知道代码在member_logging.php里面。。。

------解决方案--------------------
我也不知道我的版本是不是1.5

$ctl_obj = new logging_ctl();
$ctl_obj->setting = $_G['setting'];
$method = 'on_'.$_G['gp_action'];
$ctl_obj->template = 'member/login';
$ctl_obj->$method();
这是验证的代码 logging_ctl定义在 source\class\class_member.php
你是登陆 所以 action是login 你看下url后面的参数 
调用 function on_login() 方法 这个函数中有一段
$result = userlogin($_G['gp_username'], $_G['gp_password'], $_G['gp_questionid'], $_G['gp_answer'], $this->setting['autoidselect'] ? 'auto' : $_G['gp_loginfield']);
调用了userlogin函数 这个函数定义在source\function\function_member.php

------解决方案--------------------
userlogin是ucenter里面的方法

使用之前必须loaducenter();

http://dev.discuz.org/wiki/

http://wiki.blueidea.com/index.php?title=Discuz!X/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%AD%97%E5%85%B8

http://www.discuz.net/thread-636553-1-1.html

你需要仔细看看这些资料

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn