Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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");
 }
Ejemplo n.º 3
0
<?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">
Ejemplo n.º 4
0
 protected function getLocales()
 {
     return Localization::getAvailableInterfaceLanguageDescriptions();
 }