. * */ $USERNAME=substr($_SERVER["REQUEST_URI"],strpos($_SERVER["REQUEST_URI"],'.php/')+5); if(strpos($USERNAME,'?')!==false){ $USERNAME=substr($USERNAME,0,strpos($USERNAME,'?')); } if(substr($USERNAME,-1,1)=='/'){//openid sometimes add slashes to the username $USERNAME=substr($USERNAME,0,-1); } if($USERNAME=='' and isset($_SERVER['PHP_AUTH_USER'])){ $USERNAME=$_SERVER['PHP_AUTH_USER']; } $RUNTIME_NOAPPS=true; $RUNTIME_NOAPPS=false; require_once '../../lib/base.php'; OC_Util::checkAppEnabled('user_openid'); if(!OC_User::userExists($USERNAME)){ OCP\Util::writeLog('user_openid',$USERNAME.' doesn\'t exist',OCP\Util::WARN); $USERNAME=''; } $IDENTITY=OC_Helper::linkToAbsolute( "user_openid", "user.php" ).'/'.$USERNAME; require_once 'phpmyid.php'; ?>