Skip to content
Browse files

Revert "[ remove closing ?> tag from all files ]"

This reverts commit a2bdc5c.

I'm going to stop playing in bce's fork, and start messing in my own. Sorry for the mess Brian :)
  • Loading branch information...
1 parent 7a75121 commit 2a45a7f8f4cd3dcb5e56cbdd1281e9c7c5417282 Luke Shepard committed
Showing with 172 additions and 111 deletions.
  1. +1 −1 Auth/OpenID.php
  2. +1 −0 Auth/OpenID/AX.php
  3. +1 −0 Auth/OpenID/Association.php
  4. +1 −1 Auth/OpenID/BigMath.php
  5. +1 −1 Auth/OpenID/Consumer.php
  6. +1 −0 Auth/OpenID/CryptUtil.php
  7. +1 −0 Auth/OpenID/DatabaseConnection.php
  8. +1 −1 Auth/OpenID/DiffieHellman.php
  9. +1 −1 Auth/OpenID/Discover.php
  10. +1 −0 Auth/OpenID/DumbStore.php
  11. +1 −0 Auth/OpenID/Extension.php
  12. +1 −1 Auth/OpenID/FileStore.php
  13. +1 −0 Auth/OpenID/HMAC.php
  14. +1 −0 Auth/OpenID/Interface.php
  15. +1 −0 Auth/OpenID/KVForm.php
  16. +1 −0 Auth/OpenID/MemcachedStore.php
  17. +1 −1 Auth/OpenID/Message.php
  18. +1 −0 Auth/OpenID/MySQLStore.php
  19. +1 −0 Auth/OpenID/Nonce.php
  20. +1 −0 Auth/OpenID/PAPE.php
  21. +1 −0 Auth/OpenID/Parse.php
  22. +1 −0 Auth/OpenID/PostgreSQLStore.php
  23. +1 −1 Auth/OpenID/SQLStore.php
  24. +1 −0 Auth/OpenID/SQLiteStore.php
  25. +1 −1 Auth/OpenID/SReg.php
  26. +1 −1 Auth/OpenID/Server.php
  27. +1 −0 Auth/OpenID/ServerRequest.php
  28. +1 −0 Auth/OpenID/TrustRoot.php
  29. +1 −1 Auth/OpenID/URINorm.php
  30. +1 −0 Auth/Yadis/HTTPFetcher.php
  31. +1 −0 Auth/Yadis/Manager.php
  32. +1 −0 Auth/Yadis/Misc.php
  33. +1 −0 Auth/Yadis/ParanoidHTTPFetcher.php
  34. +1 −0 Auth/Yadis/ParseHTML.php
  35. +1 −0 Auth/Yadis/PlainHTTPFetcher.php
  36. +1 −1 Auth/Yadis/XML.php
  37. +1 −0 Auth/Yadis/XRDS.php
  38. +1 −1 Auth/Yadis/XRI.php
  39. +1 −1 Auth/Yadis/XRIRes.php
  40. +1 −1 Auth/Yadis/Yadis.php
  41. +1 −0 Tests/Auth/OpenID/AX.php
  42. +1 −1 Tests/Auth/OpenID/Association.php
  43. +1 −0 Tests/Auth/OpenID/AssociationResponse.php
  44. +1 −0 Tests/Auth/OpenID/AuthRequest.php
  45. +1 −0 Tests/Auth/OpenID/BigMath.php
  46. +1 −1 Tests/Auth/OpenID/Consumer.php
  47. +1 −0 Tests/Auth/OpenID/CryptUtil.php
  48. +1 −1 Tests/Auth/OpenID/DiffieHellman.php
  49. +1 −0 Tests/Auth/OpenID/Discover_OpenID.php
  50. +1 −0 Tests/Auth/OpenID/Extension.php
  51. +1 −1 Tests/Auth/OpenID/HMAC.php
  52. +1 −1 Tests/Auth/OpenID/KVForm.php
  53. +1 −1 Tests/Auth/OpenID/MemStore.php
  54. +1 −1 Tests/Auth/OpenID/Message.php
  55. +1 −0 Tests/Auth/OpenID/Negotiation.php
  56. +1 −1 Tests/Auth/OpenID/Nonce.php
  57. +2 −1 Tests/Auth/OpenID/OpenID_Yadis.php
  58. +1 −1 Tests/Auth/OpenID/PAPE.php
  59. +1 −1 Tests/Auth/OpenID/Parse.php
  60. +6 −5 Tests/Auth/OpenID/RPVerify.php
  61. +1 −0 Tests/Auth/OpenID/SReg.php
  62. +1 −1 Tests/Auth/OpenID/Server.php
  63. +1 −1 Tests/Auth/OpenID/StoreTest.php
  64. +1 −0 Tests/Auth/OpenID/TestUtil.php
  65. +1 −1 Tests/Auth/OpenID/TrustRoot.php
  66. +1 −0 Tests/Auth/OpenID/URINorm.php
  67. +1 −1 Tests/Auth/OpenID/Util.php
  68. +1 −0 Tests/Auth/OpenID/VerifyDisco.php
  69. +1 −0 Tests/Auth/Yadis/DiscoverData.php
  70. +1 −0 Tests/Auth/Yadis/Discover_Yadis.php
  71. +1 −0 Tests/Auth/Yadis/ParseHTML.php
  72. +1 −1 Tests/Auth/Yadis/TestUtil.php
  73. +1 −0 Tests/Auth/Yadis/XRDS.php
  74. +1 −0 Tests/Auth/Yadis/XRI.php
  75. +1 −0 Tests/Auth/Yadis/Yadis.php
  76. +1 −1 Tests/TestDriver.php
  77. +1 −0 admin/adminutil.php
  78. +1 −0 admin/otb_test.php
  79. +1 −1 admin/texttest.php
  80. +1 −1 admin/webtest.php
  81. +1 −1 contrib/signed_assertions/AP.php
  82. +1 −1 contrib/signed_assertions/SAML.php
  83. +1 −0 examples/consumer/common.php
  84. +1 −0 examples/consumer/finish_auth.php
  85. +5 −5 examples/consumer/index.php
  86. +1 −0 examples/consumer/try_auth.php
  87. +1 −1 examples/detect.php
  88. +14 −14 examples/discover.php
  89. +1 −0 examples/server/index.php
  90. +1 −0 examples/server/lib/actions.php
  91. +1 −0 examples/server/lib/common.php
  92. +1 −0 examples/server/lib/render.php
  93. +1 −0 examples/server/lib/render/about.php
  94. +2 −1 examples/server/lib/render/idpXrds.php
  95. +1 −1 examples/server/lib/render/idpage.php
  96. +1 −0 examples/server/lib/render/login.php
  97. +1 −0 examples/server/lib/render/trust.php
  98. +2 −1 examples/server/lib/render/userXrds.php
  99. +1 −0 examples/server/lib/session.php
  100. +2 −1 examples/server/server.php
  101. +46 −46 examples/server/setup.php
View
2 Auth/OpenID.php
@@ -549,4 +549,4 @@ function autoSubmitHTML($form, $title="OpenId transaction in progress")
"</html>");
}
}
-
+?>
View
1 Auth/OpenID/AX.php
@@ -1020,3 +1020,4 @@ function getExtensionArgs()
}
}
+?>
View
1 Auth/OpenID/Association.php
@@ -610,3 +610,4 @@ function getAllowedType()
}
}
+?>
View
2 Auth/OpenID/BigMath.php
@@ -468,4 +468,4 @@ function Auth_OpenID_noMathSupport()
return defined('Auth_OpenID_NO_MATH_SUPPORT');
}
-
+?>
View
2 Auth/OpenID/Consumer.php
@@ -2226,4 +2226,4 @@ function Auth_OpenID_SetupNeededResponse($endpoint,
}
}
-
+?>
View
1 Auth/OpenID/CryptUtil.php
@@ -106,3 +106,4 @@ function randomString($length, $population = null)
}
}
+?>
View
1 Auth/OpenID/DatabaseConnection.php
@@ -128,3 +128,4 @@ function getAll($sql, $params = array())
}
}
+?>
View
2 Auth/OpenID/DiffieHellman.php
@@ -110,4 +110,4 @@ function xorSecret($composite, $secret, $hash_func)
}
}
-
+?>
View
2 Auth/OpenID/Discover.php
@@ -545,4 +545,4 @@ function Auth_OpenID_discover($uri, &$fetcher)
return $result;
}
-
+?>
View
1 Auth/OpenID/DumbStore.php
@@ -97,3 +97,4 @@ function getAuthKey()
}
}
+?>
View
1 Auth/OpenID/Extension.php
@@ -59,3 +59,4 @@ function toMessage(&$message)
}
}
+?>
View
2 Auth/OpenID/FileStore.php
@@ -615,4 +615,4 @@ function cleanupAssociations()
}
}
-
+?>
View
1 Auth/OpenID/HMAC.php
@@ -96,3 +96,4 @@ function Auth_OpenID_HMACSHA256($key, $text)
define('Auth_OpenID_HMACSHA256_SUPPORTED', false);
}
+?>
View
1 Auth/OpenID/Interface.php
@@ -194,3 +194,4 @@ function reset()
}
}
+?>
View
1 Auth/OpenID/KVForm.php
@@ -109,3 +109,4 @@ function fromArray($values)
}
}
+?>
View
1 Auth/OpenID/MemcachedStore.php
@@ -205,3 +205,4 @@ function supportsCleanup()
}
}
+?>
View
2 Auth/OpenID/Message.php
@@ -917,4 +917,4 @@ function getAliasedArg($aliased_key, $default = null)
}
}
-
+?>
View
1 Auth/OpenID/MySQLStore.php
@@ -75,3 +75,4 @@ function blobEncode($blob)
}
}
+?>
View
1 Auth/OpenID/Nonce.php
@@ -106,3 +106,4 @@ function Auth_OpenID_mkNonce($when = null)
return $time_str . $salt;
}
+?>
View
1 Auth/OpenID/PAPE.php
@@ -298,3 +298,4 @@ function getExtensionArgs()
}
}
+?>
View
1 Auth/OpenID/Parse.php
@@ -349,3 +349,4 @@ function Auth_OpenID_legacy_discover($html_text, $server_rel,
}
}
+?>
View
1 Auth/OpenID/PostgreSQLStore.php
@@ -110,3 +110,4 @@ function blobDecode($blob)
}
}
+?>
View
2 Auth/OpenID/SQLStore.php
@@ -566,4 +566,4 @@ function cleanupAssociations()
}
}
-
+?>
View
1 Auth/OpenID/SQLiteStore.php
@@ -68,3 +68,4 @@ function _add_nonce($server_url, $timestamp, $salt)
}
}
+?>
View
2 Auth/OpenID/SReg.php
@@ -518,4 +518,4 @@ function contents()
}
}
-
+?>
View
2 Auth/OpenID/Server.php
@@ -1757,4 +1757,4 @@ function decodeRequest($query=null)
}
}
-
+?>
View
1 Auth/OpenID/ServerRequest.php
@@ -34,3 +34,4 @@ function Auth_OpenID_ServerRequest()
}
}
+?>
View
1 Auth/OpenID/TrustRoot.php
@@ -459,3 +459,4 @@ function Auth_OpenID_verifyReturnTo($realm_str, $return_to, &$fetcher,
}
}
+?>
View
2 Auth/OpenID/URINorm.php
@@ -246,4 +246,4 @@ function Auth_OpenID_urinorm($uri)
return $scheme . '://' . $authority . $path . $query . $fragment;
}
-
+?>
View
1 Auth/Yadis/HTTPFetcher.php
@@ -144,3 +144,4 @@ function get($url, $headers = null)
}
}
+?>
View
1 Auth/Yadis/Manager.php
@@ -526,3 +526,4 @@ function destroyManager($force=false)
}
}
+?>
View
1 Auth/Yadis/Misc.php
@@ -56,3 +56,4 @@ function Auth_Yadis_startswith($s, $stuff)
return strpos($s, $stuff) === 0;
}
+?>
View
1 Auth/Yadis/ParanoidHTTPFetcher.php
@@ -223,3 +223,4 @@ function post($url, $body, $extra_headers = null)
}
}
+?>
View
1 Auth/Yadis/ParseHTML.php
@@ -256,3 +256,4 @@ function getHTTPEquiv($html_string)
}
}
+?>
View
1 Auth/Yadis/PlainHTTPFetcher.php
@@ -246,3 +246,4 @@ function post($url, $body, $extra_headers = null)
}
}
+?>
View
2 Auth/Yadis/XML.php
@@ -371,4 +371,4 @@ function &Auth_Yadis_getXMLParser()
return $p;
}
-
+?>
View
1 Auth/Yadis/XRDS.php
@@ -475,3 +475,4 @@ function services($filters = null,
}
}
+?>
View
2 Auth/Yadis/XRI.php
@@ -231,4 +231,4 @@ function Auth_Yadis_getCanonicalID($iname, $xrds)
return $canonicalID;
}
-
+?>
View
2 Auth/Yadis/XRIRes.php
@@ -69,4 +69,4 @@ function query($xri, $service_types, $filters = array())
}
}
-
+?>
View
2 Auth/Yadis/Yadis.php
@@ -379,4 +379,4 @@ function discover($uri, &$fetcher,
}
}
-
+?>
View
1 Tests/Auth/OpenID/AX.php
@@ -790,3 +790,4 @@ function Tests_Auth_OpenID_AX()
}
}
+?>
View
2 Tests/Auth/OpenID/Association.php
@@ -51,4 +51,4 @@ function test_me256()
}
}
-
+?>
View
1 Tests/Auth/OpenID/AssociationResponse.php
@@ -375,3 +375,4 @@ function test_badDHValues()
$Tests_Auth_OpenID_AssociationResponse_other[] = new TestExtractAssociationDiffieHellman();
}
+?>
View
1 Tests/Auth/OpenID/AuthRequest.php
@@ -297,3 +297,4 @@ function Tests_Auth_OpenID_AuthRequest()
}
}
+?>
View
1 Tests/Auth/OpenID/BigMath.php
@@ -232,3 +232,4 @@ function Tests_Auth_OpenID_BigMath($name)
}
}
+?>
View
2 Tests/Auth/OpenID/Consumer.php
@@ -2526,4 +2526,4 @@ function test_500()
$Tests_Auth_OpenID_Consumer_other[] = new TestOpenID2SHA256();
}
-
+?>
View
1 Tests/Auth/OpenID/CryptUtil.php
@@ -52,3 +52,4 @@ function test_cryptrand()
}
}
+?>
View
2 Tests/Auth/OpenID/DiffieHellman.php
@@ -156,4 +156,4 @@ function Tests_Auth_OpenID_DiffieHellman($name)
}
}
-
+?>
View
1 Tests/Auth/OpenID/Discover_OpenID.php
@@ -779,3 +779,4 @@ function test_discoverSSL()
new Tests_Auth_OpenID_SSLSupport()
);
+?>
View
1 Tests/Auth/OpenID/Extension.php
@@ -42,3 +42,4 @@ function test_OpenID2()
}
}
+?>
View
2 Tests/Auth/OpenID/HMAC.php
@@ -162,4 +162,4 @@ function _addTestByValue($test) {
}
}
-
+?>
View
2 Tests/Auth/OpenID/KVForm.php
@@ -257,4 +257,4 @@ function Tests_Auth_OpenID_KVForm($name)
}
}
-
+?>
View
2 Tests/Auth/OpenID/MemStore.php
@@ -173,4 +173,4 @@ function cleanupAssociations()
}
}
-
+?>
View
2 Tests/Auth/OpenID/Message.php
@@ -1248,4 +1248,4 @@ class Tests_Auth_OpenID_Message extends PHPUnit_Framework_TestCase {
new Tests_Auth_OpenID_GeneralMessageTest()
);
-
+?>
View
1 Tests/Auth/OpenID/Negotiation.php
@@ -344,3 +344,4 @@ function Tests_Auth_OpenID_Negotiation()
}
}
+?>
View
2 Tests/Auth/OpenID/Nonce.php
@@ -163,4 +163,4 @@ function runTest()
}
}
-
+?>
View
3 Tests/Auth/OpenID/OpenID_Yadis.php
@@ -9,7 +9,7 @@
require_once "Auth/OpenID/Discover.php";
global $__XRDS_BOILERPLATE;
-$__XRDS_BOILERPLATE = '<?xml version="1.0" encoding="UTF-8"
+$__XRDS_BOILERPLATE = '<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)"
xmlns:openid="http://openid.net/xmlns/1.0">
@@ -226,3 +226,4 @@ function getName()
}
+?>
View
2 Tests/Auth/OpenID/PAPE.php
@@ -241,4 +241,4 @@ function Tests_Auth_OpenID_PAPE() {
}
}
-
+?>
View
2 Tests/Auth/OpenID/Parse.php
@@ -182,4 +182,4 @@ function Tests_Auth_OpenID_Parse()
}
}
-
+?>
View
11 Tests/Auth/OpenID/RPVerify.php
@@ -90,7 +90,7 @@ function test_badXML()
function test_noEntries()
{
- $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"
+ $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)"
>
@@ -102,7 +102,7 @@ function test_noEntries()
function test_noReturnToEntries()
{
- $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"
+ $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)"
>
@@ -118,7 +118,7 @@ function test_noReturnToEntries()
function test_oneEntry()
{
- $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"
+ $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)"
>
@@ -134,7 +134,7 @@ function test_oneEntry()
function test_twoEntries()
{
- $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"
+ $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)"
>
@@ -155,7 +155,7 @@ function test_twoEntries()
function test_twoEntries_withOther()
{
- $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"
+ $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)"
>
@@ -294,3 +294,4 @@ function Tests_Auth_OpenID_RPVerify()
}
+?>
View
1 Tests/Auth/OpenID/SReg.php
@@ -670,3 +670,4 @@ function Tests_Auth_OpenID_SReg()
}
}
+?>
View
2 Tests/Auth/OpenID/Server.php
@@ -2460,4 +2460,4 @@ function Tests_Auth_OpenID_Server()
}
}
-
+?>
View
2 Tests/Auth/OpenID/StoreTest.php
@@ -703,4 +703,4 @@ function Tests_Auth_OpenID_StoreTest()
$this->addTestSuite('Tests_Auth_OpenID_MemcachedStore_Test');
}
}
-
+?>
View
1 Tests/Auth/OpenID/TestUtil.php
@@ -58,3 +58,4 @@ function failIfOpenIDKeyExists($msg, $key, $ns=null)
}
}
+?>
View
2 Tests/Auth/OpenID/TrustRoot.php
@@ -169,4 +169,4 @@ function _addTestByValue($test) {
}
}
-
+?>
View
1 Tests/Auth/OpenID/URINorm.php
@@ -64,3 +64,4 @@ function Tests_Auth_OpenID_URINorm($name)
}
}
+?>
View
2 Tests/Auth/OpenID/Util.php
@@ -316,4 +316,4 @@ function test_getQuery()
}
}
-
+?>
View
1 Tests/Auth/OpenID/VerifyDisco.php
@@ -420,3 +420,4 @@ function test_endpointWithoutLocalID()
new Tests_openID1Fallback1_0(),
);
+?>
View
1 Tests/Auth/Yadis/DiscoverData.php
@@ -150,3 +150,4 @@ function generateResult($base_url, $input_name, $id_name, $result_name, $success
return array($input_url, $result);
}
+?>
View
1 Tests/Auth/Yadis/Discover_Yadis.php
@@ -228,3 +228,4 @@ function test_blank_content_type()
new Tests_Auth_Yadis_Discover_Yadis_ContentTypes()
);
+?>
View
1 Tests/Auth/Yadis/ParseHTML.php
@@ -84,3 +84,4 @@ function Tests_Auth_Yadis_ParseHTML()
}
}
+?>
View
2 Tests/Auth/Yadis/TestUtil.php
@@ -27,4 +27,4 @@ function Tests_Auth_Yadis_readlines($name)
return Tests_Auth_Yadis_datafile($name, 'file');
}
-
+?>
View
1 Tests/Auth/Yadis/XRDS.php
@@ -245,3 +245,4 @@ function test_multisegment_xri()
}
}
+?>
View
1 Tests/Auth/Yadis/XRI.php
@@ -140,3 +140,4 @@ function Tests_Auth_Yadis_XRI()
}
}
+?>
View
1 Tests/Auth/Yadis/Yadis.php
@@ -86,3 +86,4 @@ function Tests_Auth_Yadis_Yadis()
}
+?>
View
2 Tests/TestDriver.php
@@ -199,4 +199,4 @@ function loadSuite($names=null)
return $result;
}
-
+?>
View
1 admin/adminutil.php
@@ -27,3 +27,4 @@ function getParent()
return dirname(dirname(realpath(__FILE__)));
}
+?>
View
1 admin/otb_test.php
@@ -17,3 +17,4 @@ function pass2(
{
}
+?>
View
2 admin/texttest.php
@@ -194,4 +194,4 @@ function microtime_float()
exit(1);
}
-
+?>
View
2 admin/webtest.php
@@ -9,4 +9,4 @@
$gui->addSuites($suites);
$gui->show();
-
+?>
View
2 contrib/signed_assertions/AP.php
@@ -177,4 +177,4 @@ function verifyAssertion(&$attributeVerifier,$response)
}
-
+?>
View
2 contrib/signed_assertions/SAML.php
@@ -217,4 +217,4 @@ function validSamlDateFormat($samlDate)
}
}
-
+?>
View
1 examples/consumer/common.php
@@ -94,3 +94,4 @@ function getTrustRoot() {
dirname($_SERVER['PHP_SELF']));
}
+?>
View
1 examples/consumer/finish_auth.php
@@ -95,3 +95,4 @@ function run() {
run();
+?>
View
10 examples/consumer/index.php
@@ -2,7 +2,7 @@
require_once "common.php";
global $pape_policy_uris;
-
+?>
<html>
<head><title>PHP OpenID Authentication Example</title></head>
<style type="text/css">
@@ -48,9 +48,9 @@
is your identity URL.
</p>
- <?php if (isset($msg)) { print "<div class=\"alert\">$msg</div>"; }
- <?php if (isset($error)) { print "<div class=\"error\">$error</div>"; }
- <?php if (isset($success)) { print "<div class=\"success\">$success</div>"; }
+ <?php if (isset($msg)) { print "<div class=\"alert\">$msg</div>"; } ?>
+ <?php if (isset($error)) { print "<div class=\"error\">$error</div>"; } ?>
+ <?php if (isset($success)) { print "<div class=\"success\">$success</div>"; } ?>
<div id="verify-form">
<form method="get" action="try_auth.php">
@@ -63,7 +63,7 @@
<?php foreach ($pape_policy_uris as $i => $uri) {
print "<input type=\"checkbox\" name=\"policies[]\" value=\"$uri\" />";
print "$uri<br/>";
- }
+ } ?>
</p>
<input type="submit" value="Verify" />
View
1 examples/consumer/try_auth.php
@@ -80,3 +80,4 @@ function run() {
run();
+?>
View
2 examples/detect.php
@@ -514,4 +514,4 @@ function detect_fetcher($r, &$out)
$out .= $body . $r->end();
print $out;
-
+?>
View
28 examples/discover.php
@@ -17,7 +17,7 @@ function escape($x)
$identifier = getOpenIDIdentifier();
-
+?>
<html>
<head>
<title>OpenID discovery</title>
@@ -38,40 +38,40 @@ function escape($x)
list($normalized_identifier, $endpoints) = Auth_OpenID_discover(
$identifier, $fetcher);
-
- <h3>Discovery Results for <?= escape($identifier) </h3>
+?>
+ <h3>Discovery Results for <?= escape($identifier) ?></h3>
<table cellpadding="7" cellspacing="0">
<tbody>
<tr>
<th>Claimed Identifier</th>
- <td><?= escape($normalized_identifier) </td>
+ <td><?= escape($normalized_identifier) ?></td>
</tr>
<?
if (!$endpoints) {
-
+?>
<tr>
<td colspan="2">No OpenID services discovered.</td>
</tr>
<?
} else {
-
+?>
<tr>
<td colspan="2">Discovered OpenID services:</td>
</tr>
<?
foreach ($endpoints as $endpoint) {
-
+?>
<tr>
<td colspan="2"><hr/></td>
</tr>
<tr>
<th>Server URL</th>
- <td><tt><?= escape($endpoint->server_url) </tt></td>
+ <td><tt><?= escape($endpoint->server_url) ?></tt></td>
</tr>
<tr>
<th>Local ID</th>
- <td><tt><?= escape($endpoint->local_id) </tt></td>
+ <td><tt><?= escape($endpoint->local_id) ?></tt></td>
</tr>
<tr>
<td colspan="2">
@@ -79,22 +79,22 @@ function escape($x)
<ul>
<?
foreach ($endpoint->type_uris as $type_uri) {
-
- <li><tt><?= escape($type_uri) </tt></li>
+?>
+ <li><tt><?= escape($type_uri) ?></tt></li>
<?
}
-
+?>
</ul>
</td>
</tr>
<?
}
}
-
+?>
</tbody>
</table>
<?
}
-
+?>
</body>
</html>
View
1 examples/server/index.php
@@ -2,3 +2,4 @@
header("Location: server.php");
+?>
View
1 examples/server/lib/actions.php
@@ -161,3 +161,4 @@ function action_userXrds()
return userXrds_render($identity);
}
+?>
View
1 examples/server/lib/common.php
@@ -92,3 +92,4 @@ function doAuth($info, $trusted=null, $fail_cancels=false,
}
}
+?>
View
1 examples/server/lib/render.php
@@ -111,3 +111,4 @@ function page_render($body, $user, $title, $h1=null, $login=false)
return array($headers, $text);
}
+?>
View
1 examples/server/lib/render/about.php
@@ -55,3 +55,4 @@ function about_render($error=false, $internal=true)
return page_render($body, $current_user, 'OpenID Server Endpoint');
}
+?>
View
3 examples/server/lib/render/idpXrds.php
@@ -5,7 +5,7 @@
require_once "Auth/OpenID/Discover.php";
-define('idp_xrds_pat', '<?xml version="1.0" encoding="UTF-8"
+define('idp_xrds_pat', '<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS
xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)">
@@ -29,3 +29,4 @@ function idpXrds_render()
return array($headers, $body);
}
+?>
View
2 examples/server/lib/render/idpage.php
@@ -28,4 +28,4 @@ function idpage_render($identity)
return array($headers, $body);
}
-
+?>
View
1 examples/server/lib/render/login.php
@@ -62,3 +62,4 @@ function loginError_render($errors)
}
return sprintf("<ul class=\"error\">\n%s</ul>\n", $text);
}
+?>
View
1 examples/server/lib/render/trust.php
@@ -53,3 +53,4 @@ function noIdentifier_render()
return page_render(no_id_pat, null, 'No Identifier Sent');
}
+?>
View
3 examples/server/lib/render/userXrds.php
@@ -5,7 +5,7 @@
require_once "Auth/OpenID/Discover.php";
-define('user_xrds_pat', '<?xml version="1.0" encoding="UTF-8"
+define('user_xrds_pat', '<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS
xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)">
@@ -31,3 +31,4 @@ function userXrds_render($identity)
return array($headers, $body);
}
+?>
View
1 examples/server/lib/session.php
@@ -175,3 +175,4 @@ function idFromURL($url)
return @$parts['user'];
}
+?>
View
3 examples/server/server.php
@@ -29,7 +29,7 @@
writeResponse($resp);
} else {
-
+?>
<html>
<head>
<title>PHP OpenID Server</title>
@@ -45,3 +45,4 @@
</html>
<?php
}
+?>
View
92 examples/server/setup.php
@@ -192,7 +192,7 @@ function render_form() {
$pgsql_found = true;
}
-
+?>
<html>
<head>
<style type="text/css">
@@ -256,7 +256,7 @@ function render_form() {
print "</div>";
}
-
+?>
<p>
Your browser has been redirected to this page so you can configure the
@@ -269,13 +269,13 @@ function render_form() {
<p>
The server URL is the URL that points to the "server.php" file. It
- looks like your server URL should be <code><?php print build_url(); </code>.
+ looks like your server URL should be <code><?php print build_url(); ?></code>.
</p>
<span class="label"><label for="i_server_url">Server URL:</label></span>
<span>
<input type="text" id="i_server_url" size="35" name="server_url"
- value="<?php print $_SESSION['server_url'] ">
+ value="<?php print $_SESSION['server_url'] ?>">
</span>
</div>
@@ -292,7 +292,7 @@ function render_form() {
</span>
<span>
<input type="text" id="i_include_path" size="35" name="include_path"
- value="<?php print $_SESSION['include_path'] ">
+ value="<?php print $_SESSION['include_path'] ?>">
</span>
</div>
@@ -308,64 +308,64 @@ function render_form() {
<div>
<input type="radio" name="store_type" value="Filesystem"
- id="i_filesystem"<?php if ($_SESSION['store_type'] == 'Filesystem') { print " CHECKED"; } >
+ id="i_filesystem"<?php if ($_SESSION['store_type'] == 'Filesystem') { print " CHECKED"; } ?>>
<label for="i_filesystem">Filesystem</label>
<div>
<label for="i_fs_path" class="field">Filesystem path:</label>
<input type="text" name="fs_path" id="i_fs_path"
- value="<?php print @$_SESSION['store_data']['fs_path']; ">
- <?php print $basedir_msg;
+ value="<?php print @$_SESSION['store_data']['fs_path']; ?>">
+ <?php print $basedir_msg; ?>
</div>
</div>
-<?php if ($sqlite_found) {
+<?php if ($sqlite_found) { ?>
<div>
<input type="radio" name="store_type" value="SQLite"
- id="i_sqlite"<?php if ($_SESSION['store_type'] == 'SQLite') { print " CHECKED"; } >
+ id="i_sqlite"<?php if ($_SESSION['store_type'] == 'SQLite') { print " CHECKED"; } ?>>
<label for="i_sqlite">SQLite</label>
<div>
<label for="i_sqlite_path" class="field">SQLite database path:</label>
- <input type="text" value="<?php print @$_SESSION['store_data']['sqlite_path']; "
+ <input type="text" value="<?php print @$_SESSION['store_data']['sqlite_path']; ?>"
name="sqlite_path" id="i_sqlite_path">
- <?php print $basedir_msg;
+ <?php print $basedir_msg; ?>
</div>
</div>
-<?php }
+<?php } ?>
-<?php if ($mysql_found || $pgsql_found) {
+<?php if ($mysql_found || $pgsql_found) { ?>
<div>
-<?php if ($mysql_found) {
+<?php if ($mysql_found) { ?>
<input type="radio" name="store_type" value="MySQL"
- id="i_mysql"<?php if ($_SESSION['store_type'] == 'MySQL') { print " CHECKED"; } >
+ id="i_mysql"<?php if ($_SESSION['store_type'] == 'MySQL') { print " CHECKED"; } ?>>
<label for="i_mysql">MySQL</label>
-<?php }
+<?php } ?>
-<?php if ($pgsql_found) {
+<?php if ($pgsql_found) { ?>
<input type="radio" name="store_type" value="PostgreSQL"
- id="i_pgsql"<?php if ($_SESSION['store_type'] == 'PostgreSQL') { print " CHECKED"; } >
+ id="i_pgsql"<?php if ($_SESSION['store_type'] == 'PostgreSQL') { print " CHECKED"; } ?>>
<label for="i_pgsql">PostgreSQL</label>
-<?php }
+<?php } ?>
<div>
<label for="i_m_host" class="field">Host:</label>
- <input type="text" value="<?php print @$_SESSION['store_data']['host']; " name="host" id="i_m_host">
+ <input type="text" value="<?php print @$_SESSION['store_data']['host']; ?>" name="host" id="i_m_host">
</div>
<div>
<label for="i_m_database" class="field">Database:</label>
- <input value="<?php print @$_SESSION['store_data']['database']; " type="text" name="database" id="i_m_database">
+ <input value="<?php print @$_SESSION['store_data']['database']; ?>" type="text" name="database" id="i_m_database">
</div>
<div>
<label for="i_m_username" class="field">Username:</label>
- <input type="text" name="username" id="i_m_username" value="<?php print @$_SESSION['store_data']['username']; ">
+ <input type="text" name="username" id="i_m_username" value="<?php print @$_SESSION['store_data']['username']; ?>">
</div>
<div>
<label for="i_m_password" class="field">Password:</label>
- <input type="password" name="password" id="i_m_password" value="<?php print @$_SESSION['store_data']['password']; ">
+ <input type="password" name="password" id="i_m_password" value="<?php print @$_SESSION['store_data']['password']; ?>">
</div>
</div>
-<?php }
+<?php } ?>
</div>
</div>
@@ -416,14 +416,14 @@ function generate_config($download = false) {
header("Content-disposition: attachment; filename=config.php");
print "<?php\n";
} else {
-
+?>
<html>
<body>
<h2>OpenID Example Server Configuration</h2>
<p>
-Put the following text into <strong><?php print dirname(__FILE__); print DIRECTORY_SEPARATOR; config.php</strong>.
+Put the following text into <strong><?php print dirname(__FILE__); print DIRECTORY_SEPARATOR; ?>config.php</strong>.
</p>
<p>
@@ -438,16 +438,16 @@ function generate_config($download = false) {
<?php
print "&lt;?php\n";
}
-
-<?php if ($_SESSION['include_path']) {
+?>
+<?php if ($_SESSION['include_path']) { ?>
/**
* Set any extra include paths needed to use the library
*/
set_include_path(get_include_path() . PATH_SEPARATOR . "<?php
print $_SESSION['include_path'];
-");
+?>");
-<?php }
+<?php } ?>
/**
* The URL for the server.
*
@@ -459,7 +459,7 @@ function generate_config($download = false) {
*/
$server_url = "<?php
print $_SESSION['server_url'];
-";
+?>";
/**
* Initialize an OpenID store
@@ -488,14 +488,14 @@ function getOpenIDStore()
case "MySQL":
- require_once 'Auth/OpenID/MySQLStore.php';
+ ?>require_once 'Auth/OpenID/MySQLStore.php';
require_once 'DB.php';
$dsn = array(
'phptype' => 'mysql',
- 'username' => '<?php print $_SESSION['store_data']['username']; ',
- 'password' => '<?php print $_SESSION['store_data']['password']; ',
- 'hostspec' => '<?php print $_SESSION['store_data']['host']; '
+ 'username' => '<?php print $_SESSION['store_data']['username']; ?>',
+ 'password' => '<?php print $_SESSION['store_data']['password']; ?>',
+ 'hostspec' => '<?php print $_SESSION['store_data']['host']; ?>'
);
$db =& DB::connect($dsn);
@@ -504,7 +504,7 @@ function getOpenIDStore()
return null;
}
- $db->query("USE <?php print $_SESSION['store_data']['database']; ");
+ $db->query("USE <?php print $_SESSION['store_data']['database']; ?>");
$s =& new Auth_OpenID_MySQLStore($db);
@@ -516,15 +516,15 @@ function getOpenIDStore()
case "PostgreSQL":
- require_once 'Auth/OpenID/PostgreSQLStore.php';
+ ?>require_once 'Auth/OpenID/PostgreSQLStore.php';
require_once 'DB.php';
$dsn = array(
'phptype' => 'pgsql',
- 'username' => '<?php print $_SESSION['store_data']['username']; ',
- 'password' => '<?php print $_SESSION['store_data']['password']; ',
- 'hostspec' => '<?php print $_SESSION['store_data']['host']; ',
- 'database' => '<?php print $_SESSION['store_data']['database']; '
+ 'username' => '<?php print $_SESSION['store_data']['username']; ?>',
+ 'password' => '<?php print $_SESSION['store_data']['password']; ?>',
+ 'hostspec' => '<?php print $_SESSION['store_data']['host']; ?>',
+ 'database' => '<?php print $_SESSION['store_data']['database']; ?>'
);
$db =& DB::connect($dsn);
@@ -542,17 +542,17 @@ function getOpenIDStore()
break;
}
-
+ ?>
}
<?php
- print "";
+ print "?>";
if (!$download) {
-
+?>
</pre>
</body>
</html>
<?php
}
} // end function generate_config ()
-
+?>

0 comments on commit 2a45a7f

Please sign in to comment.
Something went wrong with that request. Please try again.