当前位置: 首页>>代码示例>>PHP>>正文


PHP LightOpenID::fetchCert方法代码示例

本文整理汇总了PHP中LightOpenID::fetchCert方法的典型用法代码示例。如果您正苦于以下问题:PHP LightOpenID::fetchCert方法的具体用法?PHP LightOpenID::fetchCert怎么用?PHP LightOpenID::fetchCert使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在LightOpenID的用法示例。


在下文中一共展示了LightOpenID::fetchCert方法的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 . '>
		';
    }
开发者ID:Zipcore,项目名称:GMDonate,代码行数:48,代码来源:OpenID.php


注:本文中的LightOpenID::fetchCert方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。