|
|
|
@ -14,6 +14,8 @@ if (!empty($_POST['language'])) { |
|
|
|
|
} |
|
|
|
|
require_once '../inc/global.inc.php'; |
|
|
|
|
|
|
|
|
|
$hideHeaders = isset($_GET['hide_headers']); |
|
|
|
|
|
|
|
|
|
$htmlHeadXtra[] = api_get_password_checker_js('#username', '#pass1'); |
|
|
|
|
|
|
|
|
|
// User is not allowed if Terms and Conditions are disabled and |
|
|
|
@ -687,6 +689,7 @@ if ($form->validate()) { |
|
|
|
|
echo Display::page_header($tool_name); |
|
|
|
|
echo $content; |
|
|
|
|
echo $text_after_registration; |
|
|
|
|
|
|
|
|
|
Display:: display_footer(); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
@ -718,11 +721,17 @@ if ($form->validate()) { |
|
|
|
|
CourseManager::redirectToCourse([]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($hideHeaders) { |
|
|
|
|
Display:: display_no_header(); |
|
|
|
|
} else { |
|
|
|
|
Display:: display_header($tool_name); |
|
|
|
|
} |
|
|
|
|
echo Display::page_header($tool_name); |
|
|
|
|
echo $content; |
|
|
|
|
$form->display(); |
|
|
|
|
|
|
|
|
|
if ($hideHeaders == false) { |
|
|
|
|
Display:: display_footer(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|