Beispiel #1
0
 public function on_start()
 {
     parent::on_start();
     $this->set('groupSets', GroupSet::getList());
     $gl = new GroupSearch();
     $gl->setItemsPerPage(10000);
     $gArray = $gl->getPage();
     $groups = array();
     foreach ($gArray as $g) {
         $groups[] = Group::getByID($g['gID']);
     }
     $this->set('groups', $groups);
 }
}
$users = array();
if (is_array($_REQUEST['uID'])) {
    foreach ($_REQUEST['uID'] as $uID) {
        $ui = UserInfo::getByID($uID);
        $users[] = $ui;
    }
}
foreach ($users as $ui) {
    if (!$sk->validate($ui)) {
        die(t("Access Denied."));
    }
}
Loader::model('search/group');
$gl = new GroupSearch();
$gl->setItemsPerPage(-1);
$g1 = $gl->getPage();
if ($_POST['task'] == 'group_remove') {
    if (!$token->validate('bulk_group_remove')) {
        echo Loader::helper('json')->encode(array('error' => t("Invalid token.")));
        exit;
    }
    // build the group array
    $groupIDs = $_REQUEST['groupIDs'];
    $groups = array();
    if (is_array($groupIDs) && count($groupIDs)) {
        foreach ($groupIDs as $gID) {
            $groups[] = Group::getByID($gID);
        }
    }
    foreach ($users as $ui) {
<?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();
$languages = Localization::getAvailableInterfaceLanguages();
?>

<?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">