本文整理汇总了PHP中ValidateSession函数的典型用法代码示例。如果您正苦于以下问题:PHP ValidateSession函数的具体用法?PHP ValidateSession怎么用?PHP ValidateSession使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ValidateSession函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getLocation_resourcesByResourceId
function getLocation_resourcesByResourceId($sessionkey, $appcode, $id)
{
$main_result = "<VPROFILERESULT>";
$main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
$userId = ValidateSession($sessionkey, $appcode);
if ($userId > -1) {
$main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
$result = BL_manageLocation_resources::getLocation_resourcesListByResourceId($id);
if ($result->type == 1) {
$arr_Location_resourcesList = $result->data;
if (count($arr_Location_resourcesList) > 0) {
$main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
foreach ($arr_Location_resourcesList as $obj_Location_resources) {
$main_result .= getLocation_resourcesXml($obj_Location_resources);
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
}
$main_result .= "</VPROFILERESULT>";
return $main_result;
}
示例2: getVillage_industrialByBusinessId
function getVillage_industrialByBusinessId($sessionkey, $appcode, $id)
{
$main_result = "<VPROFILERESULT>";
$main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
$userId = ValidateSession($sessionkey, $appcode);
if ($userId > -1) {
$main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
$result = BL_manageVillage_industrial::getVillage_industrialListByBusinessId($id);
if ($result->type == 1) {
$arr_Village_industrialList = $result->data;
if (count($arr_Village_industrialList) > 0) {
$main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
foreach ($arr_Village_industrialList as $obj_Village_industrial) {
$main_result .= getVillage_industrialXml($obj_Village_industrial);
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
}
$main_result .= "</VPROFILERESULT>";
return $main_result;
}
示例3: getPerson_olresultByOLResultId
function getPerson_olresultByOLResultId($sessionkey, $appcode, $id)
{
$main_result = "<VPROFILERESULT>";
$main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
$userId = ValidateSession($sessionkey, $appcode);
if ($userId > -1) {
$main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
$result = BL_managePerson_olresult::getPerson_olresultListByOLResultId($id);
if ($result->type == 1) {
$arr_Person_olresultList = $result->data;
if (count($arr_Person_olresultList) > 0) {
$main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
foreach ($arr_Person_olresultList as $obj_Person_olresult) {
$main_result .= getPerson_olresultXml($obj_Person_olresult);
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
}
$main_result .= "</VPROFILERESULT>";
return $main_result;
}
示例4: getGroupByGroupId
function getGroupByGroupId($sessionkey, $appcode, $id)
{
$main_result = "<VPROFILERESULT>";
$main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
$userId = ValidateSession($sessionkey, $appcode);
if ($userId > -1) {
$main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
$result = BL_manageGroup::getGroupListByGroupId($id);
if ($result->type == 1) {
$arr_GroupList = $result->data;
if (count($arr_GroupList) > 0) {
$main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
foreach ($arr_GroupList as $obj_Group) {
$main_result .= getGroupXml($obj_Group);
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
}
$main_result .= "</VPROFILERESULT>";
return $main_result;
}
示例5: getHigherstudysubjectsBySubjectId
function getHigherstudysubjectsBySubjectId($sessionkey, $appcode, $id)
{
$main_result = "<VPROFILERESULT>";
$main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
$userId = ValidateSession($sessionkey, $appcode);
if ($userId > -1) {
$main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
$result = BL_manageHigherstudysubjects::getHigherstudysubjectsListBySubjectId($id);
if ($result->type == 1) {
$arr_HigherstudysubjectsList = $result->data;
if (count($arr_HigherstudysubjectsList) > 0) {
$main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
foreach ($arr_HigherstudysubjectsList as $obj_Higherstudysubjects) {
$main_result .= getHigherstudysubjectsXml($obj_Higherstudysubjects);
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
}
$main_result .= "</VPROFILERESULT>";
return $main_result;
}
示例6: getOrganizationtypeByOrganizationTypeId
function getOrganizationtypeByOrganizationTypeId($sessionkey, $appcode, $id)
{
$main_result = "<VPROFILERESULT>";
$main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
$userId = ValidateSession($sessionkey, $appcode);
if ($userId > -1) {
$main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
$result = BL_manageOrganizationtype::getOrganizationtypeListByOrganizationTypeId($id);
if ($result->type == 1) {
$arr_OrganizationtypeList = $result->data;
if (count($arr_OrganizationtypeList) > 0) {
$main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
foreach ($arr_OrganizationtypeList as $obj_Organizationtype) {
$main_result .= getOrganizationtypeXml($obj_Organizationtype);
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
}
$main_result .= "</VPROFILERESULT>";
return $main_result;
}
示例7: getTraditionalknowledgecategoryByCategoryId
function getTraditionalknowledgecategoryByCategoryId($sessionkey, $appcode, $id)
{
$main_result = "<VPROFILERESULT>";
$main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
$userId = ValidateSession($sessionkey, $appcode);
if ($userId > -1) {
$main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
$result = BL_manageTraditionalknowledgecategory::getTraditionalknowledgecategoryListByCategoryId($id);
if ($result->type == 1) {
$arr_TraditionalknowledgecategoryList = $result->data;
if (count($arr_TraditionalknowledgecategoryList) > 0) {
$main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
foreach ($arr_TraditionalknowledgecategoryList as $obj_Traditionalknowledgecategory) {
$main_result .= getTraditionalknowledgecategoryXml($obj_Traditionalknowledgecategory);
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
}
$main_result .= "</VPROFILERESULT>";
return $main_result;
}
示例8: getSociety_memberByMemberId
function getSociety_memberByMemberId($sessionkey, $appcode, $id)
{
$main_result = "<VPROFILERESULT>";
$main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
$userId = ValidateSession($sessionkey, $appcode);
if ($userId > -1) {
$main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
$result = BL_manageSociety_member::getSociety_memberListByMemberId($id);
if ($result->type == 1) {
$arr_Society_memberList = $result->data;
if (count($arr_Society_memberList) > 0) {
$main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
foreach ($arr_Society_memberList as $obj_Society_member) {
$main_result .= getSociety_memberXml($obj_Society_member);
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
}
$main_result .= "</VPROFILERESULT>";
return $main_result;
}
示例9: FetchUserEmail
function FetchUserEmail($Action)
{
$Email = ValidateSession($Action);
echo json_encode($Email);
}
示例10: getWebservicecallByid
function getWebservicecallByid($sessionkey, $appcode, $id)
{
$main_result = "<AUTHSTATUS>0</AUTHSTATUS>";
$userId = ValidateSession($sessionkey, $appcode);
if ($userId > -1) {
$main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
$result = BL_manageWebservicecall::getWebservicecallListByid($id);
if ($result->type == 1) {
$arr_WebservicecallList = $result->data;
if (count($arr_WebservicecallList) > 0) {
$main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
$main_result .= "<WEBSERVICECALLLIST>";
foreach ($arr_WebservicecallList as $obj_Webservicecall) {
$main_result .= getWebservicecallXml($obj_Webservicecall);
}
$main_result .= "</WEBSERVICECALLLIST>";
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
} else {
$main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
}
}
return $main_result;
}