Custompages : generic registration pages ans css ameliorations

skala
Noel Dieschburg 14 years ago
parent e5cfaca050
commit 2841a9b085
  1. 34
      custompages/registration-feedback.php
  2. 41
      custompages/registration.php
  3. 141
      custompages/style-ie6.css
  4. 102
      custompages/style.css
  5. 307
      main/auth/inscription.php

@ -1,3 +1,31 @@
<?php require_once('../inc/global.inc.php');
header("Location: /user_portal.php");
exit();
<html>
<head>
<title>Registration</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--[if !IE 6]><!-->
<link rel="stylesheet" type="text/css" href="../../custompages/style.css" />
<!--<![endif]-->
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="../../custompages/style-ie6.css" />
<![endif]-->
<script type="text/javascript" src="../../custompages/jquery-1.5.1.min.js"></script>
</head>
<body>
<div id="backgroundimage">
<img src="/custompages/images/page-background.png" class="backgroundimage" />
</div>
<div id="wrapper">
<div id="header">
<img src="../../custompages/images/header.png" alt="Ambassador logo" />
</div> <!-- #header -->
<div id="registration-feedback-box">
<?php
echo $content['info'];
?>
</div> <!-- #feedback -->
<div id="footer">
<img src="../../custompages/images/footer.png" />
</div> <!-- #footer -->
</div> <!-- #wrapper -->
</body>
</html>

@ -1,7 +1,20 @@
<?php
require_once('../inc/global.inc.php');
require_once('../inc/lib/group_portal_manager.lib.php');
require_once('language.php');
require_once('../inc/global.inc.php');
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
require_once api_get_path(LIBRARY_PATH).'usermanager.lib.php';
require_once api_get_path(CONFIGURATION_PATH).'profile.conf.php';
require_once api_get_path(LIBRARY_PATH).'mail.lib.inc.php';
//Removes some unwanted elementend of the form object
$content['form']->removeElement('extra_mail_notify_invitation');
$content['form']->removeElement('extra_mail_notify_message');
$content['form']->removeElement('extra_mail_notify_group_message');
$content['form']->removeElement('official_code');
$content['form']->removeElement('phone');
$content['form']->removeElement('submit');
$content['form']->removeElement('status');
$content['form']->removeElement('status');
?>
<html>
<head>
@ -27,26 +40,10 @@ require_once('language.php');
<?php if (isset($form_error) && !empty($form_error)) {
echo '<div id="registration-form-error" class="form-error"><ul>'.$form_error.'</ul></div>';
}?>
<form id="registration-form" class="form" action="inscription.php" method="post">
<div>
<label for="email"><?php echo cblue_get_lang('langEmail');?>*</label>
<input name="email" type="text" value="<?php echo $values['email']?>" /><br />
<label for="username"><?php echo cblue_get_lang('Username');?>*</label>
<input name="username" type="text" value="<?php echo $values['username']?>" /><br />
<p class="forminfo"><?php echo cblue_get_lang('UsernameWrong')?></p>
<label for="pass1"><?php echo cblue_get_lang('Pass');?>*</label>
<input name="pass1" type="password" value="<?php echo $values['pass1']?>" /><br />
<label for="pass2"><?php echo cblue_get_lang('Confirmation');?>*</label>
<input name="pass2" type="password" value="<?php echo $values['pass2']?>" /><br />
<!--
<label for="phone">*Phone number</label>
<input name="phone" type="text" /><br />
-->
<input name="language" type="hidden" value="<?php echo $_SESSION['user_language_choice']?>" />
<input name="status" type="hidden" value="5" /> <!-- learner -->
</div>
</form>
<div id="registration-form-submit" class="form-submit" onclick="document.forms['registration-form'].submit();">
<?php
$content['form']->display();
?>
<div id="registration-form-submit" class="form-submit" onclick="document.forms['registration'].submit();">
<span><?php echo cblue_get_lang('Subscribe');?></span>
</div> <!-- #form-submit -->
<div id="links">

@ -1,3 +1,75 @@
/* Color easy change */
body, .form, #links a, .form-info {
color: #DF002A;
}
.form-submit, input, select {
background-color: #DF002A;
}
.form-error {
color: red;
font-size: 9pt;
}
.form-submit {
margin: 0;
padding: 0;
width: 310px;
height: 27px;
background-color: #DF002A;
/*background-image: url(/custompages/images/login-form-submit-bg.jpg);*/
color: white;
cursor: pointer;
cursor: hand;
}
/* end easy change */
/* Registration form */
#registration-form-box {
width: 400px;
margin-left: auto;
margin-right: auto;
margin-top: 50px;
border: solid 1px #CCCCCC;
text-align: left;
background-color: white;
}
#registration-form-box .form-submit{
width: 400px;
}
div.row {
clear: both;
padding-top: 5px;
}
div.row div.form_header {
white-space: nowrap;
padding: 2px;
background-color: #f0f0f0;
border: 1px solid #bbb;
}
div.row div.label {
float: left;
width: 53%;
text-align: right;
padding-right:1%
}
div.row div.formw {
width: 46%;
float:left;
}
[dir=ltr] div.row div.label, [dir=rtl] div.row div.formw {
float: left;
text-align: right;
}
[dir=rtl] div.row div.label, [dir=ltr] div.row div.formw {
float: right;
text-align: left;
}
span.form_required {
color: #f00;
}
span.form_error {
color: #f00;
font-size: x-small;
margin: 2px;
}
html, body {
margin: 0;
padding: 0;
@ -6,11 +78,10 @@ html, body {
body {
font-family: "Arial Black",sans-serif;
font-size: 10pt;
color: #1F3660;
width: 100%;
text-align: center;
/*
background-image: url(images/page-background.png);
color: #1F3660;
/*background-image: url(images/page-background.png);
background-repeat: no-repeat;
background-size: 100%;
*/
@ -37,7 +108,6 @@ body {
left: 0;
width: 100%;
z-index: 1;
text-align: center;
}
#header {
@ -67,22 +137,11 @@ body {
margin-left: 15px;
margin-right: 15px;
margin-top: 30px;
color: #1F3660;
/*color: #1F3660;*/
/*position: relative;*/
text-align: left;
}
.form-submit {
margin: 0;
padding: 0;
width: 310px;
height: 27px;
background-color: #1F3660;
background-image: url(/custompages/images/login-form-submit-bg.jpg);
color: white;
cursor: pointer;
cursor: hand;
}
label {
width: 100px;
@ -99,50 +158,45 @@ input {
margin-bottom: 2em;
width: 150px;
color: white;
background-color: #1F3660;
/*background-color: #1F3660;*/
border: none;
}
.radiobutton {
width: 20px;
background-color: white;
margin: 0;
}
.radiogroup {
margin-bottom: 2em;
}
width: 20px;
background-color: white;
margin: 0;
}
.radiogroup {
margin-bottom: 2em;
}
select {
margin-bottom: 2em;
width: 150px;
color: white;
/*background-color: #1F3660;*/
border: none;
margin-bottom: 2em;
width: 150px;
}
label {
clear: both;
clear: both;
}
input, select, .radiogroup {
float: right;
clear: both;
float: right;
clear: both;
}
.radiogroup input, .radiogroup label {
float: none;
}
float: none;
}
#links {
margin-left: 15px;
margin-right: 15px;
margin-top: 10px;
margin-bottom: 50px;
color: #1F3660;
/*color: #1F3660;*/
}
#links a, #links a:hover, #links a:active, #links a:visited {
color: #1F3660;
}
#links a {
text-decoration: none;
@ -159,11 +213,6 @@ span {
}
.form-info {
color: #1F3660;
font-size: 9pt;
}
.form-error {
color: red;
/*color: #1F3660;*/
font-size: 9pt;
}

@ -1,3 +1,75 @@
/* Color easy change */
body, .form, #links a, .form-info {
color: #DF002A;
}
.form-submit, input, select {
background-color: #DF002A;
}
.form-error {
color: red;
font-size: 9pt;
}
.form-submit {
margin: 0;
padding: 0;
width: 310px;
height: 27px;
background-color: #DF002A;
/*background-image: url(/custompages/images/login-form-submit-bg.jpg);*/
color: white;
cursor: pointer;
cursor: hand;
}
/* end easy change */
/* Registration form */
#registration-form-box {
width: 400px;
margin-left: auto;
margin-right: auto;
margin-top: 50px;
border: solid 1px #CCCCCC;
text-align: left;
background-color: white;
}
#registration-form-box .form-submit{
width: 400px;
}
div.row {
clear: both;
padding-top: 5px;
}
div.row div.form_header {
white-space: nowrap;
padding: 2px;
background-color: #f0f0f0;
border: 1px solid #bbb;
}
div.row div.label {
float: left;
width: 53%;
text-align: right;
padding-right:1%
}
div.row div.formw {
width: 46%;
float:left;
}
[dir=ltr] div.row div.label, [dir=rtl] div.row div.formw {
float: left;
text-align: right;
}
[dir=rtl] div.row div.label, [dir=ltr] div.row div.formw {
float: right;
text-align: left;
}
span.form_required {
color: #f00;
}
span.form_error {
color: #f00;
font-size: x-small;
margin: 2px;
}
html, body {
margin: 0;
padding: 0;
@ -8,7 +80,7 @@ body {
font-size: 10pt;
width: 100%;
text-align: center;
color: #1F3660;
/*color: #1F3660;*/
/*background-image: url(images/page-background.png);
background-repeat: no-repeat;
background-size: 100%;
@ -65,22 +137,11 @@ body {
margin-left: 15px;
margin-right: 15px;
margin-top: 30px;
color: #1F3660;
/*color: #1F3660;*/
position: relative;
text-align: left;
}
.form-submit {
margin: 0;
padding: 0;
width: 310px;
height: 27px;
background-color: #1F3660;
background-image: url(/custompages/images/login-form-submit-bg.jpg);
color: white;
cursor: pointer;
cursor: hand;
}
label {
width: 100px;
@ -97,14 +158,14 @@ input {
margin-bottom: 2em;
width: 150px;
color: white;
background-color: #1F3660;
/*background-color: #1F3660;*/
border: none;
}
select {
width: 150px;
color: white;
background-color: #1F3660;
/*background-color: #1F3660;*/
border: none;
margin-bottom: 2em;
}
@ -113,12 +174,9 @@ select {
margin-right: 15px;
margin-top: 10px;
margin-bottom: 50px;
color: #1F3660;
/*color: #1F3660;*/
}
#links a, #links a:hover, #links a:active, #links a:visited {
color: #1F3660;
}
#links a {
text-decoration: none;
@ -135,10 +193,6 @@ span {
}
.form-info {
color: #1F3660;
font-size: 9pt;
}
.form-error {
color: red;
/*color: #1F3660;*/
font-size: 9pt;
}

@ -18,127 +18,6 @@ require_once api_get_path(LIBRARY_PATH).'mail.lib.inc.php';
require_once api_get_path(LIBRARY_PATH).'legal.lib.php';
require_once api_get_path(LIBRARY_PATH).'custompages.lib.php';
// Load terms & conditions from the current lang
if (api_get_setting('allow_terms_conditions') == 'true') {
$get = array_keys($_GET);
if (isset($get)) {
if ($get[0] == 'legal'){
$language = api_get_interface_language();
$language = api_get_language_id($language);
$term_preview = LegalManager::get_last_condition($language);
if (!$term_preview) {
//look for the default language
$language = api_get_setting('platformLanguage');
$language = api_get_language_id($language);
$term_preview = LegalManager::get_last_condition($language);
}
$tool_name = get_lang('TermsAndConditions');
Display :: display_header('');
echo '<div class="actions-title">';
echo $tool_name;
echo '</div>';
if (!empty($term_preview['content'])) {
echo $term_preview['content'];
} else {
echo get_lang('ComingSoon');
}
Display :: display_footer();
exit;
}
}
}
// Custom pages
if (api_get_setting('use_custom_pages') == 'true') {
if (isset($_POST['username'])) {
$values = array();
$values['firstname'] = $_POST['firstname'];
$values['lastname'] = $_POST['lastname'];
$values['status'] = $_POST['status'];
$values['email'] = $_POST['email'];
$values['username'] = $_POST['username'];
$values['pass1'] = $_POST['pass1'];
$values['official_code'] = '';
$values['language'] = $_POST['language'];
$values['phone'] = $_POST['phone'];
$picture_uri = null;
$user_id = UserManager::create_user($values['firstname'], $values['lastname'], $values['status'], $values['email'], $values['username'], $values['pass1'], $values['official_code'], $values['language'], $values['phone'], $picture_uri);
if ($user_id) {
/*
SESSION REGISTERING
*/
$_user['firstName'] = stripslashes($values['firstname']);
$_user['lastName'] = stripslashes($values['lastname']);
$_user['mail'] = $values['email'];
$_user['language'] = $values['language'];
$_user['user_id'] = $user_id;
$is_allowedCreateCourse = $values['status'] == 1;
api_session_register('_user');
api_session_register('is_allowedCreateCourse');
//stats
event_login();
// last user login date is now
$user_last_login_datetime = 0; // used as a unix timestamp it will correspond to : 1 1 1970
api_session_register('user_last_login_datetime');
/*
EMAIL NOTIFICATION
*/
if (strpos($values['email'], '@') !== false) {
// Let us predefine some variables. Be sure to change the from address!
$recipient_name = api_get_person_name($values['firstname'], $values['lastname']);
$email = $values['email'];
$emailfromaddr = api_get_setting('emailAdministrator');
$emailfromname = api_get_setting('siteName');
$emailsubject = '['.api_get_setting('siteName').'] '.get_lang('YourReg',null,$_user['language']).' '.api_get_setting('siteName');
// The body can be as long as you wish, and any combination of text and variables
$portal_url = $_configuration['root_web'];
if ($_configuration['multiple_access_urls']) {
$access_url_id = api_get_current_access_url_id();
if ($access_url_id != -1 ){
$url = api_get_access_url($access_url_id);
$portal_url = $url['url'];
}
}
$emailbody = get_lang('Dear',null,$_user['language']).' '.stripslashes(Security::remove_XSS($recipient_name)).",\n\n".get_lang('YouAreReg',null,$_user['language']).' '.api_get_setting('siteName').' '.get_lang('WithTheFollowingSettings',null,$_user['language'])."\n\n".get_lang('Username',null,$_user['language']).' : '.$values['username']."\n".get_lang('Pass',null,$_user['language']).' : '.stripslashes($values['pass1'])."\n\n".get_lang('Address',null,$_user['language']).' '.api_get_setting('siteName').' '.get_lang('Is',null,$_user['language']).' : '.$portal_url."\n\n".get_lang('Problem',null,$_user['language'])."\n\n".get_lang('Formula',null,$_user['language']).",\n\n".api_get_person_name(api_get_setting('administratorName'), api_get_setting('administratorSurname'))."\n".get_lang('Manager',null,$_user['language']).' '.api_get_setting('siteName')."\nT. ".api_get_setting('administratorTelephone')."\n".get_lang('Email',null,$_user['language']).' : '.api_get_setting('emailAdministrator');
// Here we are forming one large header line
// Every header must be followed by a \n except the last
$sender_name = api_get_person_name(api_get_setting('administratorName'), api_get_setting('administratorSurname'), null, PERSON_NAME_EMAIL_ADDRESS);
$email_admin = api_get_setting('emailAdministrator');
@api_mail($recipient_name, $email, $emailsubject, $emailbody, $sender_name, $email_admin);
}
CustomPages::displayPage('registration-feedback');
}
}
else {
CustomPages::displayPage('registration');
}
}
$tool_name = get_lang('Registration',null,(!empty($_POST['language'])?$_POST['language']:$_user['language']));
Display :: display_header($tool_name);
echo Display::tag('h1', $tool_name);
$home = api_get_path(SYS_PATH).'home/';
if ($_configuration['multiple_access_urls']) {
$access_url_id = api_get_current_access_url_id();
if ($access_url_id != -1) {
$url_info = api_get_access_url($access_url_id);
$url = api_remove_trailing_slash(preg_replace('/https?:\/\//i', '', $url_info['url']));
$clean_url = replace_dangerous_char($url);
$clean_url = str_replace('/', '-', $clean_url);
$clean_url .= '/';
$home_old = api_get_path(SYS_PATH).'home/';
$home = api_get_path(SYS_PATH).'home/'.$clean_url;
}
}
if (!empty($_SESSION['user_language_choice'])) {
$user_selected_language = $_SESSION['user_language_choice'];
} elseif (!empty($_SESSION['_user']['language'])) {
@ -146,30 +25,6 @@ if (!empty($_SESSION['user_language_choice'])) {
} else {
$user_selected_language = get_setting('platformLanguage');
}
if (file_exists($home.'register_top_'.$user_selected_language.'.html')) {
$home_top_temp = @(string)file_get_contents($home.'register_top_'.$user_selected_language.'.html');
$open = str_replace('{rel_path}', api_get_path(REL_PATH), $home_top_temp);
$open = api_to_system_encoding($open, api_detect_encoding(strip_tags($open)));
if (!empty($open)) {
echo '<div style="border:1px solid #E1E1E1; padding:2px;">'.$open.'</div>';
}
}
// Forbidden to self-register
if (api_get_setting('allow_registration') == 'false') {
api_not_allowed();
}
//api_display_tool_title($tool_name);
if (api_get_setting('allow_registration') == 'approval') {
Display::display_normal_message(get_lang('YourAccountHasToBeApproved'));
}
//if openid was not found
if (!empty($_GET['openid_msg']) && $_GET['openid_msg'] == 'idnotfound') {
Display::display_warning_message(get_lang('OpenIDCouldNotBeFoundPleaseRegister'));
}
$form = new FormValidator('registration');
if (api_get_setting('allow_terms_conditions') == 'true') {
$display_all_form = !isset($_SESSION['update_term_and_condition'][1]);
@ -384,6 +239,111 @@ if ($display_all_form) {
}
}
$form->addElement('style_submit_button', 'submit', get_lang('RegisterUser'), 'class="save"');
if (isset($_SESSION['user_language_choice']) && $_SESSION['user_language_choice'] != '') {
$defaults['language'] = $_SESSION['user_language_choice'];
} else {
$defaults['language'] = api_get_setting('platformLanguage');
}
if (!empty($_GET['username'])) {
$defaults['username'] = Security::remove_XSS($_GET['username']);
}
if (!empty($_GET['email'])) {
$defaults['email'] = Security::remove_XSS($_GET['email']);
}
if (!empty($_GET['phone'])) {
$defaults['phone'] = Security::remove_XSS($_GET['phone']);
}
if (api_get_setting('openid_authentication') == 'true' && !empty($_GET['openid'])) {
$defaults['openid'] = Security::remove_XSS($_GET['openid']);
}
$defaults['status'] = STUDENT;
if (is_array($extra_data)) {
$defaults = array_merge($defaults, $extra_data);
}
$form->setDefaults($defaults);
if (api_get_setting('use_custom_pages') != 'true') {
// Load terms & conditions from the current lang
if (api_get_setting('allow_terms_conditions') == 'true') {
$get = array_keys($_GET);
if (isset($get)) {
if ($get[0] == 'legal'){
$language = api_get_interface_language();
$language = api_get_language_id($language);
$term_preview = LegalManager::get_last_condition($language);
if (!$term_preview) {
//look for the default language
$language = api_get_setting('platformLanguage');
$language = api_get_language_id($language);
$term_preview = LegalManager::get_last_condition($language);
}
$tool_name = get_lang('TermsAndConditions');
Display :: display_header('');
echo '<div class="actions-title">';
echo $tool_name;
echo '</div>';
if (!empty($term_preview['content'])) {
echo $term_preview['content'];
} else {
echo get_lang('ComingSoon');
}
Display :: display_footer();
exit;
}
}
}
$tool_name = get_lang('Registration',null,(!empty($_POST['language'])?$_POST['language']:$_user['language']));
Display :: display_header($tool_name);
echo Display::tag('h1', $tool_name);
$home = api_get_path(SYS_PATH).'home/';
if ($_configuration['multiple_access_urls']) {
$access_url_id = api_get_current_access_url_id();
if ($access_url_id != -1) {
$url_info = api_get_access_url($access_url_id);
$url = api_remove_trailing_slash(preg_replace('/https?:\/\//i', '', $url_info['url']));
$clean_url = replace_dangerous_char($url);
$clean_url = str_replace('/', '-', $clean_url);
$clean_url .= '/';
$home_old = api_get_path(SYS_PATH).'home/';
$home = api_get_path(SYS_PATH).'home/'.$clean_url;
}
}
if (file_exists($home.'register_top_'.$user_selected_language.'.html')) {
$home_top_temp = @(string)file_get_contents($home.'register_top_'.$user_selected_language.'.html');
$open = str_replace('{rel_path}', api_get_path(REL_PATH), $home_top_temp);
$open = api_to_system_encoding($open, api_detect_encoding(strip_tags($open)));
if (!empty($open)) {
echo '<div style="border:1px solid #E1E1E1; padding:2px;">'.$open.'</div>';
}
}
// Forbidden to self-register
if (api_get_setting('allow_registration') == 'false') {
api_not_allowed();
}
//api_display_tool_title($tool_name);
if (api_get_setting('allow_registration') == 'approval') {
Display::display_normal_message(get_lang('YourAccountHasToBeApproved'));
}
//if openid was not found
if (!empty($_GET['openid_msg']) && $_GET['openid_msg'] == 'idnotfound') {
Display::display_warning_message(get_lang('OpenIDCouldNotBeFoundPleaseRegister'));
}
}
// Terms and conditions
if (api_get_setting('allow_terms_conditions') == 'true') {
@ -427,34 +387,6 @@ if (api_get_setting('allow_terms_conditions') == 'true') {
}
}
$form->addElement('style_submit_button', 'submit', get_lang('RegisterUser'), 'class="save"');
if (isset($_SESSION['user_language_choice']) && $_SESSION['user_language_choice'] != '') {
$defaults['language'] = $_SESSION['user_language_choice'];
} else {
$defaults['language'] = api_get_setting('platformLanguage');
}
if (!empty($_GET['username'])) {
$defaults['username'] = Security::remove_XSS($_GET['username']);
}
if (!empty($_GET['email'])) {
$defaults['email'] = Security::remove_XSS($_GET['email']);
}
if (!empty($_GET['phone'])) {
$defaults['phone'] = Security::remove_XSS($_GET['phone']);
}
if (api_get_setting('openid_authentication') == 'true' && !empty($_GET['openid'])) {
$defaults['openid'] = Security::remove_XSS($_GET['openid']);
}
$defaults['status'] = STUDENT;
if (is_array($extra_data)) {
$defaults = array_merge($defaults, $extra_data);
}
$form->setDefaults($defaults);
if ($form->validate()) {
/*
@ -583,7 +515,10 @@ if ($form->validate()) {
}
// 3. exit the page
unset($user_id);
Display :: display_footer();
if (api_get_setting('use_custom_pages') != 'true') {
Display :: display_footer();
}
exit;
}
@ -638,15 +573,15 @@ if ($form->validate()) {
}
}
echo '<p>'.get_lang('Dear',null,$_user['language']).' '.stripslashes(Security::remove_XSS($recipient_name)).',<br /><br />'.get_lang('PersonalSettings',null,$_user['language']).".</p>\n";
$display_text = '<p>'.get_lang('Dear',null,$_user['language']).' '.stripslashes(Security::remove_XSS($recipient_name)).',<br /><br />'.get_lang('PersonalSettings',null,$_user['language']).".</p>\n";
if (!empty ($values['email'])) {
echo '<p>'.get_lang('MailHasBeenSent',null,$_user['language']).'.</p>';
$display_text.= '<p>'.get_lang('MailHasBeenSent',null,$_user['language']).'.</p>';
}
$button_text = '';
if ($is_allowedCreateCourse) {
echo '<p>', get_lang('NowGoCreateYourCourse',null,$_user['language']), ".</p>\n";
$display_text .= '<p>'. get_lang('NowGoCreateYourCourse',null,$_user['language']). ".</p>\n";
$action_url = '../create_course/add_course.php';
$button_text = api_get_setting('course_validation') == 'true'
? get_lang('CreateCourseRequest', null, $_user['language'])
@ -656,16 +591,24 @@ if ($form->validate()) {
$action_url = 'courses.php?action=subscribe';
else
$action_url = api_get_path(WEB_PATH).'user_portal.php';
echo '<p>', get_lang('NowGoChooseYourCourses',null,$_user['language']), ".</p>\n";
$display_text.='<p>'. get_lang('NowGoChooseYourCourses',null,$_user['language']). ".</p>\n";
$button_text = get_lang('Next',null,$_user['language']);
}
// ?uidReset=true&uidReq=$_user['user_id']
echo '<form action="', $action_url, '" method="post">', "\n", '<button type="submit" class="next" name="next" value="', get_lang('Next',null,$_user['language']), '" validationmsg=" ', get_lang('Next',null,$_user['language']), ' ">', $button_text, '</button>', "\n", '</form><br />', "\n";
$display_text .= '<form action="'. $action_url. '" method="post">'. "\n". '<button type="submit" class="next" name="next" value="'. get_lang('Next',null,$_user['language']). '" validationmsg=" '. get_lang('Next',null,$_user['language']). ' ">'. $button_text. '</button>'. "\n". '</form><br />'. "\n";
if (api_get_setting('use_custom_pages') == 'true') {
CustomPages::displayPage('registration-feedback', array('info' => $display_text));
}
echo $display_text;
} else {
// Custom pages
if (api_get_setting('use_custom_pages') == 'true') {
CustomPages::displayPage('registration', array('form' => $form));
} else {
$form->display();
}
}
?>
<br />
@ -680,4 +623,4 @@ if (!isset($_POST['username'])) {
<?php
}
Display :: display_footer();
Display :: display_footer();

Loading…
Cancel
Save