diff options
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); |