Changeset 12764 for trunk/register.php
- Timestamp:
- Dec 18, 2011, 10:46:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/register.php
r12610 r12764 38 38 } 39 39 40 $errors = array();41 40 if (isset($_POST['submit'])) 42 41 { … … 44 43 { 45 44 set_status_header(403); 46 array_push($ errors, 'Invalid/expired form key');45 array_push($page['errors'], 'Invalid/expired form key'); 47 46 } 48 47 49 48 if ($_POST['password'] != $_POST['password_conf']) 50 49 { 51 array_push($ errors, l10n('please enter your password again'));50 array_push($page['errors'], l10n('please enter your password again')); 52 51 } 53 52 54 $ errors=53 $page['errors'] = 55 54 register_user($_POST['login'], 56 55 $_POST['password'], 57 56 $_POST['mail_address'], 58 57 true, 59 $ errors);58 $page['errors']); 60 59 61 if (count($ errors) == 0)60 if (count($page['errors']) == 0) 62 61 { 63 62 $user_id = get_userid($_POST['login']); … … 92 91 )); 93 92 94 //-------------------------------------------------------------- errors display95 if (count($errors) != 0)96 {97 $template->assign('errors', $errors);98 }99 100 93 // include menubar 101 94 $themeconf = $template->get_template_vars('themeconf');
Note: See TracChangeset
for help on using the changeset viewer.