From: Hendrik B. <nh...@us...> - 2011-06-30 17:25:27
|
Update of /cvsroot/arianne/stendhal_website/content/account In directory vz-cvs-4.sog:/tmp/cvs-serv1625/content/account Modified Files: login.php Log Message: display name of target when acting as openid provider Index: login.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/content/account/login.php,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** login.php 3 Jun 2011 10:39:05 -0000 1.35 --- login.php 30 Jun 2011 17:25:23 -0000 1.36 *************** *** 157,161 **** if ($this->error) { echo "<p class=\"error\">".htmlspecialchars($this->error)."</p>"; ! }?> <form action="" method="post"> --- 157,177 ---- if ($this->error) { echo "<p class=\"error\">".htmlspecialchars($this->error)."</p>"; ! } ! ! if (isset($_REQUEST['url'])) { ! $url = $_REQUEST['url']; ! $urlParamsArray = explode('&', str_replace('?', '&', urldecode($url))); ! $urlParams = array(); ! foreach ($urlParamsArray as $urlParam) { ! $item = explode('=', $urlParam); ! $urlParams[$item[0]] = $item[1]; ! } ! if (isset($urlParams['openid.realm'])) { ! echo '<div class"openidnotice">You are logging in to an external service:'; ! echo '<div class="openidtargetnotice" style="font-size:2em; font-weight: bold">'.STENDHAL_SERVER_NAME.' â '.htmlspecialchars($urlParams['openid.realm']).'</div>'; ! echo '<br>'; ! } ! } ! ?> <form action="" method="post"> |