$body->set('new_password', 1); } // success message $GLOBALS['script_message_log'][] = _("Your profile information was updated."); } else { $GLOBALS['script_error_log'][] = _("We could not find a match to your email and memorable date. Please contact the service owner."); } } } $openIDMode = GetFromURL("openid_mode"); if ($openIDMode) { $openid_mode = $openIDMode; } require_once 'class/Openid.class.php'; if (isset($openid_mode) && !isset($_POST['login']) && !isset($_POST['trust'])) { $server = new OpenidServer($db, $core_config['security']['openid_encryption_level']); switch ($openid_mode) { case 'associate': $server->associate(); break; case 'checkid_setup': $server->checkid_setup(); break; case 'check_authentication': $server->check_authentication(); break; case 'checkid_immediate': $server->checkid_immediate(); break; default: }
// it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; see the file COPYING.txt. If not, see // <http://www.gnu.org/licenses/> // openid.realm // ----------------------------------------------------------------------- require_once 'class/Openid.class.php'; $server = new OpenidServer($db, $core_config['security']['openid_encryption_level']); //$server->_debug(); $opneIDtrust = GetFromURL("trust"); $openIDtrustroot = GetFromURL("openid_trust_root"); $openIDrealm = GetFromURL("openid_realm"); $openIDreturnTo = GetFromURL("openid_return_to"); $openIDMode = GetFromURL("openid_mode"); if (isset($_POST['trust'])) { if ($openIDtrustroot) { $trust_url = $server->normalize($openIDtrustroot); } elseif ($openIDrealm) { $trust_url = $server->normalize($openIDrealm); } else { $trust_url = $server->normalize($openIDreturnTo); } $query = "\n\t\tSELECT trust_id\n\t\tFROM " . $db->prefix . "_trust\n\t\tWHERE trust_url=" . $db->qstr($trust_url);