~titan-phpdevshell/phpdevshell/main

« back to all changes in this revision

Viewing changes to plugins/PHPDevShell/controllers/user/register.php

  • Committer: Jason Schoeman
  • Date: 2011-12-06 14:03:32 UTC
  • Revision ID: titan@phpdevshell.org-20111206140332-4ej6qy4b36d3q96s
Crud Added
ORM Added
Control Panel optimized

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
 
3
3
/**
4
 
 * PHPDevShell is a RAD Framework aimed at developing administrative applications.
5
 
 *
6
 
 * @package PHPDevShell
7
 
 * @link http://www.phpdevshell.org
8
 
 * @copyright Copyright (C) 2007 Jason Schoeman, All rights reserved.
9
 
 * @license GNU/LGPL, see readme/licensed_under_lgpl or http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
10
 
 * @author Jason Schoeman, Contact: titan [at] phpdevshell [dot] org.
11
 
 *
12
 
 * Copyright notice: See readme/notice
13
 
 * By using PHPDevShell you agree to notice and license, if you dont agree to this notice/license you are not allowed to use PHPDevShell.
14
 
 */
15
 
 
16
 
/**
17
4
 * Controller Class: Handles registration.
18
5
 * @author Jason Schoeman
19
6
 * @return string
88
75
                                // Registration Information.
89
76
                                $this->template->heading(_('Register Special or Private Account'));
90
77
                                $this->template->info(_('You may register a new special or private account, after successful registration you can log-in to use the system.'));
91
 
                                // Reg info.
92
 
                                $reg_info = _('Please complete all mandatory fields for successful registration.');
 
78
 
93
79
                                // Check if a key was used, if so, we do not need selection dropdown.
94
80
                                if (empty($this->security->get['token_key'])) {
95
81
                                        $registration_selection = $this->db->invokeQuery('PHPDS_SelectTokensQuery');
116
102
                                // Registration Information.
117
103
                                $this->template->heading(_('Register Private Account'));
118
104
                                $this->template->info(_('You may register a new account, after successful registration you can log-in to use the system.'));
119
 
                                if (empty($this->security->post))
120
 
                                                $this->template->notice(_('Please complete all mandatory fields for successful registration.'));
 
105
 
121
106
                                break;
122
107
                        // Token registrations only, only users with registration tokens can register.
123
108
                        case 3:
124
109
                                // Registration Information.
125
110
                                $this->template->heading(_('Register Special Account'));
126
111
                                $this->template->info(_('You may register a special or invitation account only, after successful registration you can log-in to use the system.'));
127
 
                                if (empty($this->security->post))
128
 
                                                $this->template->notice(_('Please complete all mandatory fields for successful registration. You must provide a "Registration Token Key" if it was not automatically inserted.'));
 
112
 
129
113
                                // Determine token key field.
130
114
                                if (!empty($this->security->get['token_key'])) {
131
115
                                        $token_key_field_type = 'class="boxdisabled" readonly';