diff options
author | tailor <cygnus@janrain.com> | 2006-08-11 18:28:50 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-08-11 18:28:50 +0000 |
commit | d40bf8c7bd8152f07c2768a2ef5cb59361d25208 (patch) | |
tree | 7f76cf8fa908401960751d2e1dec41e4280cc48d /examples/detect.php | |
parent | bbf6947a76b9b4b2b0280124324cd9221126564c (diff) | |
download | php-openid-d40bf8c7bd8152f07c2768a2ef5cb59361d25208.zip php-openid-d40bf8c7bd8152f07c2768a2ef5cb59361d25208.tar.gz php-openid-d40bf8c7bd8152f07c2768a2ef5cb59361d25208.tar.bz2 |
[project @ Removed yadis support detection from detect.php]
Diffstat (limited to 'examples/detect.php')
-rw-r--r-- | examples/detect.php | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/examples/detect.php b/examples/detect.php index 7ea8095..ea7ecdc 100644 --- a/examples/detect.php +++ b/examples/detect.php @@ -7,8 +7,6 @@ ini_set('include_path', $path); define('IS_WINDOWS', strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'); -$yadis_available = @include_once 'Services/Yadis/XML.php'; - class PlainText { function start($title) { @@ -169,22 +167,6 @@ if (isset($_SERVER['REQUEST_METHOD'])) { $r = new PlainText(); } -function detect_yadis($r, &$out) -{ - global $yadis_available; - - $out .= $r->h2('Yadis Support'); - if (!$yadis_available) { - $out .= $r->p('Yadis support is not present. Please install ' . - 'the PHP Yadis library from ' . - $r->link('http://www.openidenabled.com/')); - return false; - } else { - $out .= $r->p('Yadis support is present.'); - return true; - } -} - function detect_math($r, &$out) { global $_Auth_OpenID_math_extensions; @@ -376,16 +358,10 @@ function detect_stores($r, &$out) function detect_xml($r, &$out) { - global $yadis_available, $__Services_Yadis_xml_extensions; + global $__Services_Yadis_xml_extensions; $out .= $r->h2('XML Support'); - if (!$yadis_available) { - $out .= $r->p('Yadis support absent; please install the PHP Yadis ' . - 'library (see above).'); - return false; - } - // Try to get an XML extension. $ext = Services_Yadis_getXMLParser(); @@ -479,7 +455,6 @@ if (!($_file1 && $_file2)) { } else { $status = array(); - $status[] = detect_yadis($r, $body); $status[] = detect_math($r, $body); $status[] = detect_random($r, $body); $status[] = detect_stores($r, $body); |