// Copyright (C) 2007 The Trustees of Princeton University // // $Id$ $ // // Get session and API handles require_once 'plc_session.php'; global $plc, $api, $adm; // Only display dialogs if the user is not logged in. if ( !$plc->person) { // Print header require_once 'plc_drupal.php'; include 'plc_header.php'; if (!empty($_REQUEST['id']) && !empty($_REQUEST['key'])) { $person_id = intval($_REQUEST['id']); drupal_set_title('Password Reset: Confirmed'); if ($adm->ResetPassword($person_id, $_REQUEST['key']) != 1) { print '
'; } else { print ' '; } } elseif (!empty($_REQUEST['email'])) { drupal_set_title('Password Reset: Request Sent'); if ($adm->ResetPassword($_REQUEST['email']) != 1) { print ' '; } else { print ' '; } } else { drupal_set_title('Password Reset'); $self = $_SERVER['PHP_SELF']; if (!empty($_SERVER['QUERY_STRING'])) { $self .= "?" . $_SERVER['QUERY_STRING']; } // XXX Use our own stylesheet instead of drupal.css print <<