Ejemplo n.º 1
0
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; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/
require '../lib/bootstrap.php';
page_open(array('sess' => 'Seminar_Session', 'auth' => 'Seminar_Auth', 'perm' => 'Seminar_Perm', 'user' => 'Seminar_User'));
$auth->login_if($auth->auth['uid'] == 'nobody');
$perm->check('user');
// nobody hat hier nix zu suchen...
include 'lib/seminar_open.php';
// initialise Stud.IP-Session
$hash = Seminar_Register_Auth::get_validation_hash($user->id);
// hier wird noch mal berechnet, welches secret in der Bestaetigungsmail uebergeben wurde
$secret = Request::option('secret');
PageLayout::setHelpKeyword('Basis.AnmeldungMail');
PageLayout::setTitle(_('Aktivierung'));
//user bereits vorhanden
if ($perm->have_perm('autor')) {
    $info = sprintf(_('Sie haben schon den Status <b>%s</b> im System.
                       Eine Aktivierung des Accounts ist nicht mehr nötig, um Schreibrechte zu bekommen'), $auth->auth['perm']);
    $details = array();
    $details[] = sprintf('<a href="%s">%s</a>', URLHelper::getLink('index.php'), _('zurück zur Startseite'));
    $message = MessageBox::info($info, $details);
} else {
    if (empty($secret)) {
        $message = MessageBox::error(_('Sie müssen den vollständigen Link aus der Bestätigungsmail in die Adresszeile Ihres Browsers kopieren.'));
    } else {
Ejemplo n.º 2
0
 /**
  * Change the mail-address and resend validation mail
  *
  * @return void
  */
 function change_mail_address_action()
 {
     if ($GLOBALS['perm']->get_perm() == 'user') {
         $user = new User($GLOBALS['user']->id);
         $user->Email = Request::get('email');
         $user->store();
         $GLOBALS['user']->Email = $user->Email;
         Seminar_Register_Auth::sendValidationMail($user);
         PageLayout::postMessage(MessageBox::success(_('Ihre Mailadresse wurde geändert und die Bestätigungsmail erneut verschickt.')));
     }
     $this->redirect('start');
 }