Zend InfoCard Interfaces
Description:
This plugin embeds and loads the Zend InfoCard PHP 5 client interfaces for Windows Cardspace so that the client interfaces can be shared by different WordPress plugins.
Usage:
Zend InfoCard Interfaces is automatically made available in the PHP include path.
You may check Zend InfoCard Interfaces availability using the WP_ZEND_INFOCARD_INTERFACES constant:
function check_for_zend_infocard_interfaces() {
// if the Zend InfoCard Interfaces plugin is successfully loaded this constant is set to true
if (defined('WP_ZEND_INFOCARD_INTERFACES') && constant('WP_ZEND_INFOCARD_INTERFACES')) {
return true;
}
// you can also check if the Zend InfoCard Interfaces are available on the system
$paths = explode(PATH_SEPARATOR, get_include_path());
foreach ($paths as $path) {
if (file_exists("$path/Zend/Loader.php")) {
define('WP_ZEND_INFOCARD_INTERFACES', true);
return true;
}
}
// nothing found, you may advice the user to install the Zend InfoCard Interfaces plugin
define('WP_ZEND_INFOCARD_INTERFACES', false);
}
add_action('init', 'check_for_zend_infocard_interfaces');


