~ubuntu-branches/ubuntu/hardy/gallery2/hardy-security

« back to all changes in this revision

Viewing changes to modules/register/SelfRegistrationSuccess.inc

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2006-04-16 16:42:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060416164235-8uy0u4bfjdxpge2o
Tags: 2.1.1-1
* New upstream release (Closes: #362936)
  + Bugfixes for Postgres7 (Closes: #359000, #362152)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * $RCSfile: SelfRegistrationSuccess.inc,v $
4
4
 *
5
5
 * Gallery - a web based photo album viewer and editor
6
 
 * Copyright (C) 2000-2005 Bharat Mediratta
 
6
 * Copyright (C) 2000-2006 Bharat Mediratta
7
7
 *
8
8
 * This program is free software; you can redistribute it and/or modify
9
9
 * it under the terms of the GNU General Public License as published by
21
21
 */
22
22
 
23
23
/**
24
 
 * @version $Revision: 1.7 $ $Date: 2005/08/23 03:49:52 $
 
24
 * @version $Revision: 1.9 $ $Date: 2006/02/05 10:44:36 $
25
25
 * @package SelfRegistration
26
26
 * @subpackage UserInterface
27
27
 * @author Sebastian Eichner <mailsp@sebastian-eichner.de>
28
28
 */
29
29
 
30
30
/**
31
 
 * This controller will handle the success-confirmation for the selfregistration of an user
32
 
 *
33
 
 * @package SelfRegistration
34
 
 * @subpackage UserInterface
35
 
 *
36
 
 */
37
 
class SelfRegistrationSuccessController extends GalleryController {
38
 
 
39
 
    /**
40
 
     * @see GalleryController::handleRequest
41
 
     */
42
 
    function handleRequest($form) {
43
 
        global $gallery;
44
 
        $results = array();
45
 
        $results['delegate']['view'] = 'core.UserAdmin';
46
 
        $results['delegate']['subView'] = 'register.SelfRegistrationSuccess';
47
 
 
48
 
        return array(GalleryStatus::success(), $results);
49
 
    }
50
 
}
51
 
 
52
 
/**
53
 
 * This view will show a confirmation for the user
 
31
 * This view will show a registration confirmation for the user
54
32
 *
55
33
 * @package SelfRegistration
56
34
 * @subpackage UserInterface
61
39
     * @see GalleryView::loadTemplate
62
40
     */
63
41
    function loadTemplate(&$template, &$form) {
64
 
        global $gallery;
 
42
        list ($pending, $sentConfirmationEmail) =
 
43
            GalleryUtilities::getRequestVariables('pending', 'sentConfirmationEmail');
65
44
 
66
 
        $selfregistration = array('email' => 'e@mail.de');
67
 
        $template->setVariable('selfregistration', $selfregistration);
68
 
        $template->setVariable('controller', 'register.SelfRegistrationSuccess');
69
 
        return array(GalleryStatus::success(),
 
45
        $SelfRegistrationSuccess = array();
 
46
        $SelfRegistrationSuccess['pending'] = $pending;
 
47
        $SelfRegistrationSuccess['sentConfirmationEmail'] = $sentConfirmationEmail;
 
48
        $template->setVariable('SelfRegistrationSuccess', $SelfRegistrationSuccess);
 
49
        return array(null,
70
50
                     array('body' => 'modules/register/templates/SelfRegistrationSuccess.tpl'));
71
51
    }
72
52
}