_openid_meta_httpequiv
modules/openid/openid.inc, строка 204
- Версии
- 6
_openid_meta_httpequiv($equiv, $html)
Pull the http-equiv attribute out of an html meta element
Код
<?php
function _openid_meta_httpequiv($equiv, $html) {
preg_match('|<meta\s+http-equiv=["\']'. $equiv .'["\'](.*)/?>|iUs', $html, $matches);
if (isset($matches[1])) {
preg_match('|content=["\']([^"]+)["\']|iUs', $matches[1], $content);
if (isset($content[1])) {
return $content[1];
}
}
return FALSE;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии