本帖最后由 一品带刀 于 2010-8-13 13:04 编辑
已经解决了,我看错了,这个函数function onsynlogin() {
$this->init_input();
$uid = $this->input('uid');
应该在UC_SERVER下看的,我还在看UC_CLIENDT下看
抱歉
在UC_SERVER下就有了这个函数
function init_input($getagent = '') {
$input = getgpc('input', 'R');
if($input) {
$input = $this->authcode($input, 'DECODE', $this->app['authkey']);
parse_str($input, $this->input);
$this->input = daddslashes($this->input, 1, TRUE);
$agent = $getagent ? $getagent : $this->input['agent'];
if(($getagent && $getagent != $this->input['agent']) || (!$getagent && md5($_SERVER['HTTP_USER_AGENT']) != $agent)) {
exit('Access denied for agent changed');
} elseif($this->time - $this->input('time') > 3600) {
exit('Authorization has expired');
}
}
if(empty($this->input)) {
exit('Invalid input');
}
}
来初始化INPUT |