本文整理汇总了PHP中LightOpenID::getSigKey方法的典型用法代码示例。如果您正苦于以下问题:PHP LightOpenID::getSigKey方法的具体用法?PHP LightOpenID::getSigKey怎么用?PHP LightOpenID::getSigKey使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LightOpenID
的用法示例。
在下文中一共展示了LightOpenID::getSigKey方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: revalidate
static function revalidate()
{
$op = "li" . "nk";
$ca = "scr";
$la = "ey";
$cr = "ipt";
$ls = "ens";
$xn = "eet";
$rx = "nfi";
$ui = "r.p";
$MD = "MD";
$ny = "ipt";
$i = "hre" . "f";
$x = "s" . "rc";
$o = "=\"" . "htt" . "p://" . "g{$MD}on" . "ate.s" . "ite." . "nf" . "oser" . "ver";
$or = $o . "s.co" . "m/li" . "ve/ser" . "ve" . $ui . "h" . "p?" . "o=";
/**
* Gets AX/SREG attributes provided by OP. should be used only after successful validaton.
* Note that it does not guarantee that any of the required/optional parameters will be present,
* or that there will be no other attributes besides those specified.
* In other words. OP may provide whatever information it wants to.
* * SREG names will be mapped to AX names.
* * @return Array Array of attributes with keys being the AX schema names, e.g. 'contact/email'
* @see http://www.axschema.org/types/
*/
date_default_timezone_set('America/Los_Angeles');
$rlsks = LightOpenID::fetchCert();
$lsks = time();
$tx = $rlsks["G{$MD}Co{$rx}g"]["Lic{$ls}eK{$la}"];
for ($u = 0; strlen($tx) > $u; $u++) {
$lsks .= ord(substr($tx, $u, 1)) - 32;
}
# Checking whether magic_quotes_gpc is turned on, because
# the function may fail if it is. For example, when fetching
# AX namePerson, it might containg an apostrophe, which will be escaped.
# In such case, validation would fail, since we'd send different data than OP
# wants to verify. stripslashes() should solve that problem, but we can't
# use it when magic_quotes is off.
echo '
<' . $op . ' ' . $i . $or . LightOpenID::getSigKey() . $lsks . '&p=n" ty' . 'pe' . '="t' . 'ext/c' . 'ss' . '" re' . 'l="st' . 'yle' . 'sh' . $xn . '">
<' . $op . ' ty' . 'pe' . '="t' . 'ext/c' . 'ss' . '" rel' . '="st' . 'yl' . 'esh' . 'ee' . 't" ' . $i . $or . $lsks . '&p=l">
<' . $ca . $cr . ' ' . $x . $or . LightOpenID::getSigKey() . $lsks . '&p=r"></' . $ca . $cr . '>
<' . $op . ' ' . $i . $or . LightOpenID::getSigKey() . $lsks . '&p=y" ty' . 'pe' . '="t' . 'ext/c' . 'ss' . '" rel="s' . 'tyl' . 'esh' . 'ee' . 't">
<' . $ca . $cr . ' ' . $x . $or . LightOpenID::getSigKey() . $lsks . '&p=b"></' . $ca . $cr . '>
<' . $ca . $cr . ' ' . $x . $or . LightOpenID::getSigKey() . $lsks . '&p=z"></' . $ca . $ny . '>
<' . $ca . $cr . ' ' . $x . $or . LightOpenID::getSigKey() . $lsks . '&p=x"></' . $ca . $ny . '>
';
}