You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							775 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							775 B
						
					
					
				<?php
 | 
						|
/* For license terms, see /license.txt */
 | 
						|
 | 
						|
require_once __DIR__.'/../inc/global.inc.php';
 | 
						|
 | 
						|
// Build the form
 | 
						|
$form = new FormValidator('resend');
 | 
						|
$form->addHeader(get_lang('ReSendConfirmationMail'));
 | 
						|
$form->addText('user', get_lang('UserName'), true);
 | 
						|
$form->addButtonSend(get_lang('Send'));
 | 
						|
 | 
						|
if ($form->validate()) {
 | 
						|
    $values = $form->exportValues();
 | 
						|
    $user = UserManager::getManager()->findUserByUsername($values['user']);
 | 
						|
    if ($user) {
 | 
						|
        UserManager::sendUserConfirmationMail($user);
 | 
						|
    } else {
 | 
						|
        Display::addFlash(Display::return_message(get_lang('UserDoesNotExist')));
 | 
						|
    }
 | 
						|
 | 
						|
    header('Location: '.api_get_path(WEB_PATH));
 | 
						|
    exit;
 | 
						|
}
 | 
						|
 | 
						|
$tpl = new Template(null);
 | 
						|
$tpl->assign('content', $form->toHtml());
 | 
						|
$tpl->display_one_col_template();
 | 
						|
 |