diff --git a/custompages/registration-dist.php b/custompages/registration-dist.php index 1f6a52258e..ef66213542 100644 --- a/custompages/registration-dist.php +++ b/custompages/registration-dist.php @@ -7,10 +7,14 @@ * Copyright: CBlue SPRL, 20XX (GNU/GPLv3) * @package chamilo.custompages **/ - +/** + * Initialization + */ 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'; /** * Removes some unwanted elementend of the form object */ @@ -19,11 +23,12 @@ $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('submit'); if (isset($content['form']->_elementIndex['status'])) { $content['form']->removeElement('status'); $content['form']->removeElement('status'); } +// Deprecated since 2015-03-26 /** * Code to change the way QuickForm render html */ @@ -79,41 +84,54 @@ EOT; ?>
-
-
-
+
+
-
-
+
+