--- a/busui/owa/modules/base/usersPasswordEntry.php +++ b/busui/owa/modules/base/usersPasswordEntry.php @@ -1,1 +1,93 @@ - + + * @copyright Copyright © 2006 Peter Adams + * @license http://www.gnu.org/copyleft/gpl.html GPL v2.0 + * @category owa + * @package owa + * @version $Revision$ + * @since owa 1.0.0 + */ + +class owa_usersPasswordEntryController extends owa_controller { + + function owa_usersPasswordEntryController($params) { + + return owa_usersPasswordEntryController::__construct($params); + } + + function __construct($params) { + + return parent::__construct($params); + } + + function action() { + + $this->set('key', $this->getParam('k')); + $this->setView('base.usersPasswordEntry'); + return; + } + + +} + +/** + * Change Password View + * + * Presents a simple form to the user asking them to enter a new password. + * + * @author Peter Adams + * @copyright Copyright © 2006 Peter Adams + * @license http://www.gnu.org/copyleft/gpl.html GPL v2.0 + * @category owa + * @package owa + * @version $Revision$ + * @since owa 1.0.0 + */ + +class owa_usersPasswordEntryView extends owa_view { + + function owa_usersPasswordEntryView() { + + return owa_usersPasswordEntryView::__construct(); + } + + function __construct() { + + return parent::__construct(); + } + + function render($data) { + + $this->t->set_template('wrapper_public.tpl'); + $this->body->set_template('users_change_password.tpl'); + $this->body->set('headline', $this->getMsg(3005)); + $this->body->set('key', $this->get('key')); + } +} + +?>