session) { $arLoginOld=$ARCurrent->session->get("ARLogin"); $arPasswordOld=$ARCurrent->session->get("ARPassword"); if (is_string($arCallArgs)) { $arCallArgs.="&arLoginOld=".RawUrlEncode($arLoginOld); } else if (is_array($arCallArgs)) { $arCallArgs=array_merge($arCallArgs, Array("arLoginOld" => $arLoginOld)); } // when current user is logged on as public, then don't delete his // session. if ($AR->user && ($AR->user->data->login!="public")) { // now set the user back to 'public' $temp=$this->get("/system/users/public","system.get.phtml"); if ($temp && $temp[0]) { $AR->user=$temp[0]; $AR->user->grants=$this->GetValidGrants(); // do not update the cookie and session data // cookies must be set only by login.phtml // just kill the session // $ARCurrent->session->kill(); $ARCurrent->session->put("ARLogin","public"); $ARCurrent->session->put("ARPassword","none"); } } } if ($this->CheckConfig($arCallFunction, $arCallArgs)) { global $PATH_INFO, $QUERY_STRING; if (!$arReturnPath) { $split=strrpos($PATH_INFO, "/"); $function=substr($PATH_INFO,$split+1); $arReturnPath=$this->path; } if (!$arReturnTemplate) { $arReturnTemplate=$function; if ($QUERY_STRING) { $arReturnTemplate.="?$QUERY_STRING"; } } ?> Ariadne - <?php echo $arLoginMessage; ?> session && $arLoginOld && $arPasswordOld) { $ARCurrent->session->put("ARLogin",$arLoginOld); $ARCurrent->session->put("ARPassword",$arPasswordOld); } ?>