| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -743,13 +743,16 @@ if ($form->validate()) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $tpl->assign('inscription_content', $content); | 
					 | 
					 | 
					 | 
					        $tpl->assign('inscription_content', $content); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $tpl->assign('text_after_registration', $text_after_registration); | 
					 | 
					 | 
					 | 
					        $tpl->assign('text_after_registration', $text_after_registration); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        $tpl->assign('hide_header', $hideHeaders); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $inscription = $tpl->get_template('auth/inscription.tpl'); | 
					 | 
					 | 
					 | 
					        $inscription = $tpl->get_template('auth/inscription.tpl'); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $tpl->display($inscription); | 
					 | 
					 | 
					 | 
					        $tpl->display($inscription); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} else { | 
					 | 
					 | 
					 | 
					} else { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    // Custom pages | 
					 | 
					 | 
					 | 
					    // Custom pages | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if (CustomPages::enabled()) { | 
					 | 
					 | 
					 | 
					    if (CustomPages::enabled()) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        CustomPages::display(CustomPages::REGISTRATION, array('form' => $form)); | 
					 | 
					 | 
					 | 
					        CustomPages::display( | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            CustomPages::REGISTRATION, array('form' => $form) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        ); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } else { | 
					 | 
					 | 
					 | 
					    } else { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (!api_is_anonymous()) { | 
					 | 
					 | 
					 | 
					        if (!api_is_anonymous()) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -775,17 +778,12 @@ if ($form->validate()) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            CourseManager::redirectToCourse([]); | 
					 | 
					 | 
					 | 
					            CourseManager::redirectToCourse([]); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if ($hideHeaders) { | 
					 | 
					 | 
					 | 
					        $tpl = new Template($tool_name); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            $showHeader = false; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } else { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            $showHeader = true; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $tpl = new Template($tool_name, $showHeader, $showHeader); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $tpl->assign('inscription_header', Display::page_header($tool_name)); | 
					 | 
					 | 
					 | 
					        $tpl->assign('inscription_header', Display::page_header($tool_name)); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $tpl->assign('inscription_content', $content); | 
					 | 
					 | 
					 | 
					        $tpl->assign('inscription_content', $content); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $tpl->assign('form', $form->returnForm()); | 
					 | 
					 | 
					 | 
					        $tpl->assign('form', $form->returnForm()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        $tpl->assign('hide_header', $hideHeaders); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $inscription = $tpl->get_template('auth/inscription.tpl'); | 
					 | 
					 | 
					 | 
					        $inscription = $tpl->get_template('auth/inscription.tpl'); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $tpl->display($inscription); | 
					 | 
					 | 
					 | 
					        $tpl->display($inscription); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |