soap_activesession.php

来自「一个通用的php网站的会员系统和通行证系统」· PHP 代码 · 共 30 行

PHP
30
字号
<?php
import("com.member.biz.Auth");

function SOAP_ActiveSession(&$soap, &$params)
{	
	global $db,$table;
	//print_r($params);
 	if(empty($params['sId'])) {
		$soap->Response_hRet = SOAP_LOGIC_ERROR;
		$soap->Response_FeatureStr = "ActionReq Action [ActiveSession] Error: sId is null";
		return false;
	}  

 
	$Auth = new Auth();
	$Auth->sId = $params["sId"];

	if($Auth->activeSession()) {
		$soap->Response_hRet = SOAP_OK;
		$soap->Response_FeatureStr = "activeSession success";
 		return true;
	} else {
		$soap->Response_hRet = SOAP_LOGIC_ERROR;
 		$soap->Response_FeatureStr = "activeSession error";
 		return false;
 		
	}

}
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?