. * */ $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'; if(!OC_User::userExists($USERNAME)){ error_log($USERNAME.' doesn\'t exist'); $USERNAME=''; } $IDENTITY=OC_Helper::linkTo( "user_openid", "user.php", null, true ).'/'.$USERNAME; require_once 'phpmyid.php'; ?>