Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a8fe6f3274 | ||
|
0c334f0385 | ||
|
9fac4b415a | ||
|
f4c8c3d31e | ||
|
e45e71fd08 |
@@ -173,6 +173,10 @@ $config->custom->commands['script'] = array(
|
|||||||
// $config->custom->appearance['tree_width'] = null;
|
// $config->custom->appearance['tree_width'] = null;
|
||||||
# $config->custom->appearance['tree_width'] = 250;
|
# $config->custom->appearance['tree_width'] = 250;
|
||||||
|
|
||||||
|
/* Number of tree command icons to show, 0 = show all icons on 1 row. */
|
||||||
|
// $config->custom->appearance['tree_icons'] = 0;
|
||||||
|
# $config->custom->appearance['tree_icons'] = 4;
|
||||||
|
|
||||||
/* Confirm create and update operations, allowing you to review the changes
|
/* Confirm create and update operations, allowing you to review the changes
|
||||||
and optionally skip attributes during the create/update operation. */
|
and optionally skip attributes during the create/update operation. */
|
||||||
// $config->custom->confirm['create'] = true;
|
// $config->custom->confirm['create'] = true;
|
||||||
@@ -243,7 +247,6 @@ $config->custom->appearance['friendly_attrs'] = array(
|
|||||||
/* Attribute that is added to the group member attribute. */
|
/* Attribute that is added to the group member attribute. */
|
||||||
// $config->custom->modify_member['attr'] = 'dn';
|
// $config->custom->modify_member['attr'] = 'dn';
|
||||||
|
|
||||||
|
|
||||||
/* For Posix attributes */
|
/* For Posix attributes */
|
||||||
// $config->custom->modify_member['posixattr'] = 'uid';
|
// $config->custom->modify_member['posixattr'] = 'uid';
|
||||||
// $config->custom->modify_member['posixfilter'] = '(uid=*)';
|
// $config->custom->modify_member['posixfilter'] = '(uid=*)';
|
||||||
|
@@ -65,7 +65,7 @@ for ($i=0;$i<count($possible_values);$i++) {
|
|||||||
if (preg_match("/^".$request['attr']."$/i",$_SESSION[APPCONFIG]->getValue('modify_member','posixgroupattr')))
|
if (preg_match("/^".$request['attr']."$/i",$_SESSION[APPCONFIG]->getValue('modify_member','posixgroupattr')))
|
||||||
$possible_members[$i] = $possible_values[$i][$_SESSION[APPCONFIG]->getValue('modify_member','posixattr')][0];
|
$possible_members[$i] = $possible_values[$i][$_SESSION[APPCONFIG]->getValue('modify_member','posixattr')][0];
|
||||||
else
|
else
|
||||||
$possible_members[$i] = $possible_values[$i][$_SESSION[APPCONFIG]->getValue('modify_member','attr')][0];
|
$possible_members[$i] = $possible_values[$i][$_SESSION[APPCONFIG]->getValue('modify_member','attr')];
|
||||||
}
|
}
|
||||||
|
|
||||||
# Show only user that are not already in group.
|
# Show only user that are not already in group.
|
||||||
|
@@ -184,10 +184,15 @@ class HTMLTree extends Tree {
|
|||||||
|
|
||||||
$links = '';
|
$links = '';
|
||||||
|
|
||||||
|
$i = 0;
|
||||||
|
$icons = $_SESSION[APPCONFIG]->getValue('appearance','tree_icons');
|
||||||
if (is_array($_SESSION[APPCONFIG]->getValue('menu','session')))
|
if (is_array($_SESSION[APPCONFIG]->getValue('menu','session')))
|
||||||
foreach ($_SESSION[APPCONFIG]->getValue('menu','session') as $link => $title) {
|
foreach ($_SESSION[APPCONFIG]->getValue('menu','session') as $link => $title) {
|
||||||
if ($this->get_menu_item($link))
|
if ($this->get_menu_item($link))
|
||||||
$links .= sprintf('<td class="server_links">%s</td>',$this->get_menu_item($link));
|
$links .= sprintf('<td class="server_links">%s</td>',$this->get_menu_item($link));
|
||||||
|
|
||||||
|
if ($icons && ++$i%$icons == 0)
|
||||||
|
$links .= '</tr><tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
# Finally add our logout link.
|
# Finally add our logout link.
|
||||||
|
@@ -264,6 +264,9 @@ class TemplateRender extends PageRender {
|
|||||||
*
|
*
|
||||||
* * arg 8 (for MultiList)
|
* * arg 8 (for MultiList)
|
||||||
* - size of displayed list (default: 10 lines)
|
* - size of displayed list (default: 10 lines)
|
||||||
|
*
|
||||||
|
* * arg 9
|
||||||
|
* - if whether to include parent in sub query TRUE|FALSE
|
||||||
*/
|
*/
|
||||||
case 'MultiList':
|
case 'MultiList':
|
||||||
case 'PickList':
|
case 'PickList':
|
||||||
@@ -322,6 +325,9 @@ class TemplateRender extends PageRender {
|
|||||||
$vals = array();
|
$vals = array();
|
||||||
|
|
||||||
foreach ($picklistvalues as $key => $values) {
|
foreach ($picklistvalues as $key => $values) {
|
||||||
|
if (! empty($args[9]) && $container == $key)
|
||||||
|
continue;
|
||||||
|
|
||||||
$display = $args[3];
|
$display = $args[3];
|
||||||
|
|
||||||
foreach ($matchall[1] as $key => $arg) {
|
foreach ($matchall[1] as $key => $arg) {
|
||||||
|
@@ -261,6 +261,10 @@ class Config {
|
|||||||
'desc'=>'LDAP search filter for the tree entries',
|
'desc'=>'LDAP search filter for the tree entries',
|
||||||
'default'=>'(objectClass=*)');
|
'default'=>'(objectClass=*)');
|
||||||
|
|
||||||
|
$this->default->appearance['tree_icons'] = array(
|
||||||
|
'desc'=>'Number of Tree Icons to display on a row',
|
||||||
|
'default'=>0);
|
||||||
|
|
||||||
# PLA will not display the header and footer parts in minimal mode.
|
# PLA will not display the header and footer parts in minimal mode.
|
||||||
$this->default->appearance['minimalMode'] = array(
|
$this->default->appearance['minimalMode'] = array(
|
||||||
'desc'=>'Minimal mode hides header and footer parts',
|
'desc'=>'Minimal mode hides header and footer parts',
|
||||||
|
@@ -939,7 +939,7 @@ class ldap extends DS {
|
|||||||
$dn = $this->getContainer($dn);
|
$dn = $this->getContainer($dn);
|
||||||
|
|
||||||
if ($dn == $top)
|
if ($dn == $top)
|
||||||
break;
|
continue;
|
||||||
|
|
||||||
} elseif($value)
|
} elseif($value)
|
||||||
$dn = sprintf('%s,%s',$value,$dn);
|
$dn = sprintf('%s,%s',$value,$dn);
|
||||||
@@ -1146,12 +1146,12 @@ class ldap extends DS {
|
|||||||
if (is_array($dn)) {
|
if (is_array($dn)) {
|
||||||
$a = array();
|
$a = array();
|
||||||
foreach ($dn as $key => $rdn) {
|
foreach ($dn as $key => $rdn) {
|
||||||
$a[$key] = preg_replace_callback('/\\\([0-9A-Fa-f]{2})/', function($m) { return chr(hexdec('${m[1]}')); }, $rdn);
|
$a[$key] = preg_replace_callback('/\\\([0-9A-Fa-f]{2})/', function($m) { return chr(hexdec($m[1])); }, $rdn);
|
||||||
}
|
}
|
||||||
return $a;
|
return $a;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return preg_replace_callback('/\\\([0-9A-Fa-f]{2})/', function($m) { return chr(hexdec('${m[1]}')); }, $dn);
|
return preg_replace_callback('/\\\([0-9A-Fa-f]{2})/', function($m) { return chr(hexdec($m[1])); }, $dn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user