foreach (EfrontSystem::getLanguages() as $key => $value) { if ($value['active']) { $languages[$key] = $value['translation']; } } $form->addElement('select', 'languages_NAME', _LANGUAGE, $languages, 'class = "inputSelect" onchange = "location = \'index.php?ctg=signup&bypass_language=\'+this.options[this.selectedIndex].value"'); //A select drop down for languages if ($_SESSION['s_language']) { $form->setDefaults(array('languages_NAME' => $_SESSION['s_language'])); //The default language is also the selected one } else { $form->setDefaults(array('languages_NAME' => $GLOBALS['configuration']['default_language'])); //The default language is also the selected one } if ($GLOBALS['configuration']['onelanguage']) { $form->freeze(array('languages_NAME')); } if (G_VERSIONTYPE != 'community') { #cpp#ifndef COMMUNITY if (G_VERSIONTYPE == 'enterprise') { #cpp#ifdef ENTERPRISE require_once "../libraries/module_hcd_tools.php"; } #cpp#endif $user_profile = eF_getTableData("user_profile", "*", "active=1 and visible=1", "field_order"); //Get admin-defined form fields for user registration $userProfileFields = array(); foreach ($user_profile as $field) { //Add custom fields, defined in user_profile database table if ($field['type'] != 'branchinfo' && $field['type'] != 'groupinfo') { $userProfileFields[] = $field['name'];