public function view() { $locales = Localization::getAvailableInterfaceLanguageDescriptions(); $this->set('LANGUAGE_CHOOSE_ON_LOGIN', Config::get('LANGUAGE_CHOOSE_ON_LOGIN')); $this->set('LANGUAGE_MULTILINGUAL_CONTENT_ENABLED', Config::get('LANGUAGE_MULTILINGUAL_CONTENT_ENABLED')); $this->set('interfacelocales', $locales); }
public function on_start() { $this->error = Loader::helper('validation/error'); if (USER_REGISTRATION_WITH_EMAIL_ADDRESS) { $this->set('uNameLabel', t('Email Address')); } else { $this->set('uNameLabel', t('Username')); } $txt = Loader::helper('text'); if (isset($_GET['uName']) && strlen($_GET['uName'])) { // pre-populate the username if supplied, if its an email address with special characters the email needs to be urlencoded first, $this->set("uName", trim($txt->email($_GET['uName']))); } $languages = array(); $locales = array(); if (Config::get('LANGUAGE_CHOOSE_ON_LOGIN')) { $locales = Localization::getAvailableInterfaceLanguageDescriptions(); $locales = array_merge(array('' => t('** Default')), $locales); } $this->locales = $locales; $this->set('locales', $locales); $this->openIDReturnTo = BASE_URL . View::url("/login", "complete_openid"); }
<?php defined('C5_EXECUTE') or die("Access Denied."); $th = Loader::helper('text'); Loader::model('attribute/categories/user'); $attribs = UserAttributeKey::getRegistrationList(); $assignment = PermissionKey::getByHandle('edit_user_properties')->getMyAssignment(); Loader::model("search/group"); $gl = new GroupSearch(); $gl->setItemsPerPage(10000); $gArray = $gl->getPage(); $locales = Localization::getAvailableInterfaceLanguageDescriptions(ACTIVE_LOCALE); ?> <?php echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Add User'), false, false, false); ?> <form method="post" enctype="multipart/form-data" id="ccm-user-form" action="<?php echo $this->url('/dashboard/users/add'); ?> "> <?php echo $valt->output('create_account'); ?> <input type="hidden" name="_disableLogin" value="1"> <div class="ccm-pane-body"> <table class="table table-bordered">
protected function getLocales() { return Localization::getAvailableInterfaceLanguageDescriptions(); }