diff --git a/htdocs/css/default/style.css b/htdocs/css/default/style.css index ea5868d..a5b2d5a 100644 --- a/htdocs/css/default/style.css +++ b/htdocs/css/default/style.css @@ -565,7 +565,7 @@ span.hint { /* Login Box */ #login { - background: url('../../images/default/uid.png') no-repeat 0 1px; + background: url('../../images/default/ldap-uid.png') no-repeat 0 1px; background-color: #FAFAFF; color: #000000; padding-left: 17px; diff --git a/htdocs/images/default/address-book.png b/htdocs/images/default/address-book.png new file mode 100644 index 0000000..907d939 Binary files /dev/null and b/htdocs/images/default/address-book.png differ diff --git a/htdocs/images/default/star.png b/htdocs/images/default/create.png similarity index 100% rename from htdocs/images/default/star.png rename to htdocs/images/default/create.png diff --git a/htdocs/images/default/export-big.png b/htdocs/images/default/export-big.png new file mode 100644 index 0000000..6bb2ec6 Binary files /dev/null and b/htdocs/images/default/export-big.png differ diff --git a/htdocs/images/default/forum-big.png b/htdocs/images/default/forum-big.png new file mode 100644 index 0000000..674a8e9 Binary files /dev/null and b/htdocs/images/default/forum-big.png differ diff --git a/htdocs/images/default/import.png b/htdocs/images/default/import-big.png similarity index 100% rename from htdocs/images/default/import.png rename to htdocs/images/default/import-big.png diff --git a/htdocs/images/default/go.png b/htdocs/images/default/ldap-alias.png similarity index 100% rename from htdocs/images/default/go.png rename to htdocs/images/default/ldap-alias.png diff --git a/htdocs/images/default/dc.png b/htdocs/images/default/ldap-dc.png similarity index 100% rename from htdocs/images/default/dc.png rename to htdocs/images/default/ldap-dc.png diff --git a/htdocs/images/default/object.png b/htdocs/images/default/ldap-default.png similarity index 100% rename from htdocs/images/default/object.png rename to htdocs/images/default/ldap-default.png diff --git a/htdocs/images/default/o.png b/htdocs/images/default/ldap-o.png similarity index 100% rename from htdocs/images/default/o.png rename to htdocs/images/default/ldap-o.png diff --git a/htdocs/images/default/ou.png b/htdocs/images/default/ldap-ou.png similarity index 100% rename from htdocs/images/default/ou.png rename to htdocs/images/default/ldap-ou.png diff --git a/htdocs/images/default/uid.png b/htdocs/images/default/ldap-uid.png similarity index 100% rename from htdocs/images/default/uid.png rename to htdocs/images/default/ldap-uid.png diff --git a/htdocs/images/default/uniquegroup.png b/htdocs/images/default/ldap-uniquegroup.png similarity index 100% rename from htdocs/images/default/uniquegroup.png rename to htdocs/images/default/ldap-uniquegroup.png diff --git a/htdocs/images/default/user.png b/htdocs/images/default/ldap-user.png similarity index 100% rename from htdocs/images/default/user.png rename to htdocs/images/default/ldap-user.png diff --git a/htdocs/images/default/login.png b/htdocs/images/default/login.png new file mode 100644 index 0000000..7be48fb Binary files /dev/null and b/htdocs/images/default/login.png differ diff --git a/htdocs/images/default/logout.png b/htdocs/images/default/logout-big.png similarity index 100% rename from htdocs/images/default/logout.png rename to htdocs/images/default/logout-big.png diff --git a/htdocs/images/default/monitorserver-big.png b/htdocs/images/default/monitorserver-big.png new file mode 100644 index 0000000..d40900d Binary files /dev/null and b/htdocs/images/default/monitorserver-big.png differ diff --git a/htdocs/images/default/request-feature.png b/htdocs/images/default/request-feature-big.png similarity index 100% rename from htdocs/images/default/request-feature.png rename to htdocs/images/default/request-feature-big.png diff --git a/htdocs/images/default/schema.png b/htdocs/images/default/schema-big.png similarity index 100% rename from htdocs/images/default/schema.png rename to htdocs/images/default/schema-big.png diff --git a/htdocs/images/default/search.png b/htdocs/images/default/search-big.png similarity index 100% rename from htdocs/images/default/search.png rename to htdocs/images/default/search-big.png diff --git a/htdocs/images/default/switch.png b/htdocs/images/default/switch.png new file mode 100644 index 0000000..907d939 Binary files /dev/null and b/htdocs/images/default/switch.png differ diff --git a/htdocs/modify_member_form.php b/htdocs/modify_member_form.php index 4511755..29aea39 100644 --- a/htdocs/modify_member_form.php +++ b/htdocs/modify_member_form.php @@ -89,8 +89,8 @@ else echo ''; echo ''; -printf('',IMGDIR,_('Available members')); -printf('',IMGDIR,_('Group members')); +printf('',IMGDIR,_('Available members')); +printf('',IMGDIR,_('Group members')); echo ''; # Generate select box from all possible members diff --git a/lib/AJAXTree.php b/lib/AJAXTree.php index 8d49313..5d72897 100644 --- a/lib/AJAXTree.php +++ b/lib/AJAXTree.php @@ -261,7 +261,7 @@ class AJAXTree extends HTMLTree { $output .= $this->get_indentation($level); $output .= sprintf('--',$img); $output .= sprintf('',htmlspecialchars($href),$entry->getDN()); - $output .= sprintf('->',IMGDIR); + $output .= sprintf('->',IMGDIR); $output .= ''; $output .= ' '; diff --git a/lib/HTMLTree.php b/lib/HTMLTree.php index e40c3f1..7e2be73 100644 --- a/lib/HTMLTree.php +++ b/lib/HTMLTree.php @@ -151,7 +151,7 @@ class HTMLTree extends Tree { if (! is_null($server->inactivityTime())) { $m = sprintf(_('Inactivity will log you off at %s'), strftime('%H:%M',$server->inactivityTime())); - printf(' %s',IMGDIR,$m,$m); + printf(' %s',IMGDIR,$m,'Timeout'); } echo ''; } @@ -193,7 +193,7 @@ class HTMLTree extends Tree { $menu['ajax'] = _('Loading Schema'); $menu['div'] = 'BODY'; $menu['title'] = _('View schema for'); - $menu['img'] = 'schema.png'; + $menu['img'] = 'schema-big.png'; $menu['name'] = _('schema'); break; @@ -205,7 +205,7 @@ class HTMLTree extends Tree { $menu['ajax'] = _('Loading Search'); $menu['div'] = 'BODY'; $menu['title'] = _('Search'); - $menu['img'] = 'search.png'; + $menu['img'] = 'search-big.png'; $menu['name'] = _('search'); break; @@ -230,7 +230,7 @@ class HTMLTree extends Tree { $menu['ajax'] = _('Loading Info'); $menu['div'] = 'BODY'; $menu['title'] = _('Info'); - $menu['img'] = 'info.png'; + $menu['img'] = 'info-big.png'; $menu['name'] = _('info'); break; @@ -257,7 +257,7 @@ class HTMLTree extends Tree { $menu['ajax'] = _('Loading Monitor Info'); $menu['div'] = 'BODY'; $menu['title'] = _('Monitor'); - $menu['img'] = 'ldap-server.png'; + $menu['img'] = 'monitorserver-big.png'; $menu['name'] = _('monitor'); break; @@ -269,7 +269,7 @@ class HTMLTree extends Tree { $menu['ajax'] = _('Loading Import'); $menu['div'] = 'BODY'; $menu['title'] = _('Import'); - $menu['img'] = 'import.png'; + $menu['img'] = 'import-big.png'; $menu['name'] = _('import'); break; @@ -281,7 +281,7 @@ class HTMLTree extends Tree { $menu['ajax'] = _('Loading Export'); $menu['div'] = 'BODY'; $menu['title'] = _('Export'); - $menu['img'] = 'export.png'; + $menu['img'] = 'export-big.png'; $menu['name'] = _('export'); break; @@ -292,7 +292,7 @@ class HTMLTree extends Tree { $href = sprintf('cmd.php?cmd=logout&server_id=%s',$server->getIndex()); return sprintf('%s
%s
', - htmlspecialchars($href),_('Logout of this server'),IMGDIR,'logout.png',_('logout'),_('logout')); + htmlspecialchars($href),_('Logout of this server'),IMGDIR,'logout-big.png',_('logout'),_('logout')); default: return false; @@ -465,7 +465,7 @@ class HTMLTree extends Tree { echo ''; printf('',$level+3); - printf('',$href,IMGDIR,_('new')); + printf('',$href,IMGDIR,_('new')); printf('', $this->getDepth()+3-$level,$href,_('Create a new entry in'),$rdn,_('Create new entry here')); echo ''; @@ -486,12 +486,12 @@ class HTMLTree extends Tree { if (isAjaxEnabled()) { printf('', - $href_parm,$href_parm,_('Loading Login'),_('Login to'),$server->getName(),IMGDIR,'uid.png',_('login')); + $href_parm,$href_parm,_('Loading Login'),_('Login to'),$server->getName(),IMGDIR,'login.png',_('login')); printf('', $this->getDepth()+3-2,$href_parm,$href_parm,_('Loading Login'),_('Login to'),$server->getName(),_('login')); } else { - printf('',$href_parm,IMGDIR,'uid.png',_('login')); + printf('',$href_parm,IMGDIR,'login.png',_('login')); printf('',$this->getDepth()+3-2,$href_parm,_('Login')); } diff --git a/lib/TemplateRender.php b/lib/TemplateRender.php index 8331247..4f58bff 100644 --- a/lib/TemplateRender.php +++ b/lib/TemplateRender.php @@ -623,7 +623,7 @@ class TemplateRender extends PageRender { echo ''; if ($isInValid) - printf('',IMGDIR); + printf('',IMGDIR); else { if (isAjaxEnabled()) @@ -669,7 +669,7 @@ class TemplateRender extends PageRender { else echo ''; - printf('',IMGDIR); + printf('',IMGDIR); printf('',_('Default')); echo ''; } @@ -1114,10 +1114,10 @@ class TemplateRender extends PageRender { $href = sprintf('cmd=template_engine&%s&template=',$this->url_base); if (isAjaxEnabled()) - return sprintf($this->layout['actionajax'],IMGDIR,'catalog.png',_('Switch Template'), + return sprintf($this->layout['actionajax'],IMGDIR,'switch.png',_('Switch Template'), htmlspecialchars($href),_('Change to another template'),htmlspecialchars($href),_('Loading'),_('Switch Template')); else - return sprintf($this->layout['action'],IMGDIR,'catalog.png',_('Switch Template'), + return sprintf($this->layout['action'],IMGDIR,'switch.png',_('Switch Template'), htmlspecialchars($href),_('Change to another template'),_('Switch Template')); } @@ -1127,10 +1127,10 @@ class TemplateRender extends PageRender { $href = sprintf('cmd=export_form&%s&scope=base',$this->url_base); if (isAjaxEnabled()) - return sprintf($this->layout['actionajax'],IMGDIR,'save.png',_('Export'), + return sprintf($this->layout['actionajax'],IMGDIR,'export.png',_('Export'), htmlspecialchars($href),_('Save a dump of this object'),htmlspecialchars($href),_('Loading'),_('Export')); else - return sprintf($this->layout['action'],IMGDIR,'save.png',_('Export'), + return sprintf($this->layout['action'],IMGDIR,'export.png',_('Export'), htmlspecialchars($href),_('Save a dump of this object'),_('Export')); } @@ -1213,11 +1213,11 @@ class TemplateRender extends PageRender { $href = sprintf('cmd=template_engine&server_id=%s&container=%s',$this->getServerID(),rawurlencode($this->template->getDN())); if (isAjaxEnabled()) - return sprintf($this->layout['actionajax'],IMGDIR,'star.png',_('Create'), + return sprintf($this->layout['actionajax'],IMGDIR,'create.png',_('Create'), htmlspecialchars($href),_('Create a child entry'), htmlspecialchars($href),_('Loading'),_('Create a child entry')); else - return sprintf($this->layout['action'],IMGDIR,'star.png',_('Create'), + return sprintf($this->layout['action'],IMGDIR,'create.png',_('Create'), htmlspecialchars($href),_('Create a child entry'),_('Create a child entry')); } @@ -1262,11 +1262,11 @@ class TemplateRender extends PageRender { $href = sprintf('cmd=export_form&%s&scope=%s',$this->url_base,'sub'); if (isAjaxEnabled()) - return sprintf($this->layout['actionajax'],IMGDIR,'save.png',_('Save'), + return sprintf($this->layout['actionajax'],IMGDIR,'export.png',_('Save'), htmlspecialchars($href),_('Save a dump of this object and all of its children'), htmlspecialchars($href),_('Loading'),_('Export subtree')); else - return sprintf($this->layout['action'],IMGDIR,'save.png',_('Save'), + return sprintf($this->layout['action'],IMGDIR,'export.png',_('Save'), htmlspecialchars($href),_('Save a dump of this object and all of its children'),_('Export subtree')); } @@ -1830,9 +1830,9 @@ function fillRec(id,value) { if (DEBUGTMP) printf('%s
',__METHOD__); if (strlen($val) <= 0) - printf('Go ',IMGDIR); + printf('Go ',IMGDIR); elseif ($this->getServer()->dnExists($val)) - printf('Go ', + printf('Go ', $this->getServerID(),rawurlencode($val),_('Go to'),$val,IMGDIR); else printf('Go ',_('DN not available'),$val,IMGDIR); @@ -1852,7 +1852,7 @@ function fillRec(id,value) { protected function drawUrlValueIconAttribute($attribute,$val) { if (DEBUGTMP) printf('%s
',__METHOD__); - $img = sprintf('%s',IMGDIR,_('URL')); + $img = sprintf('%s',IMGDIR,_('URL')); $url = explode(' +',$val,2); if (strlen($val) <= 0) diff --git a/lib/functions.php b/lib/functions.php index 390da72..b85d268 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -384,12 +384,12 @@ function cmd_control_pane($type) { 'external_links:forum'=>array( 'title'=>_('Forum'), 'link'=>sprintf('href="%s" title="%s" target="_blank"',get_href('forum'),_('Forum')), - 'image'=>sprintf('%s',IMGDIR,_('Forum'))), + 'image'=>sprintf('%s',IMGDIR,_('Forum'))), 'external_links:feature'=>array( 'title'=>_('Request feature'), 'link'=>sprintf('href="%s" title="%s" target="_blank"',get_href('add_rfe'),_('Request feature')), - 'image'=>sprintf('%s',IMGDIR,_('Request feature'))), + 'image'=>sprintf('%s',IMGDIR,_('Request feature'))), 'external_links:bug'=>array( 'title'=>_('Report a bug'), @@ -1579,26 +1579,26 @@ function get_icon($server_id,$dn,$object_classes=array()) { in_array('account',$object_classes) || in_array('posixaccount',$object_classes)) - return 'user.png'; + return 'ldap-user.png'; elseif (in_array('organization',$object_classes)) - return 'o.png'; + return 'ldap-o.png'; elseif (in_array('organizationalunit',$object_classes)) - return 'ou.png'; + return 'ldap-ou.png'; elseif (in_array('organizationalrole',$object_classes)) - return 'uid.png'; + return 'ldap-uid.png'; elseif (in_array('dcobject',$object_classes) || in_array('domainrelatedobject',$object_classes) || in_array('domain',$object_classes) || in_array('builtindomain',$object_classes)) - return 'dc.png'; + return 'ldap-dc.png'; elseif (in_array('alias',$object_classes)) - return 'go.png'; + return 'ldap-alias.png'; elseif (in_array('room',$object_classes)) return 'door.png'; @@ -1632,13 +1632,13 @@ function get_icon($server_id,$dn,$object_classes=array()) { in_array('groupofnames',$object_classes) || in_array('group',$object_classes)) - return 'ou.png'; + return 'ldap-ou.png'; elseif (in_array('applicationprocess',$object_classes)) return 'process.png'; elseif (in_array('groupofuniquenames',$object_classes)) - return 'uniquegroup.png'; + return 'ldap-uniquegroup.png'; elseif (in_array('iphost',$object_classes)) return 'host.png'; @@ -1671,7 +1671,7 @@ function get_icon($server_id,$dn,$object_classes=array()) { return 'ldap-server.png'; elseif (in_array('rbscollection',$object_classes)) - return 'ou.png'; + return 'ldap-ou.png'; elseif (in_array('dfsconfiguration',$object_classes)) return 'nt_machine.png'; @@ -1713,11 +1713,11 @@ function get_icon($server_id,$dn,$object_classes=array()) { return 'lock.png'; elseif (strcasecmp($rdn_value,'MicrosoftDNS') == 0) - return 'dc.png'; + return 'ldap-dc.png'; # Oh well, I don't know what it is. Use a generic icon. else - return 'object.png'; + return 'ldap-default.png'; } /** diff --git a/queries/SambaUsers.xml b/queries/SambaUsers.xml index 2018a62..7fcb1e4 100644 --- a/queries/SambaUsers.xml +++ b/queries/SambaUsers.xml @@ -7,7 +7,7 @@ Samba Users -user.png +ldap-user.pngsub1 diff --git a/queries/UserList.xml b/queries/UserList.xml index 4b8767e..4d54c1e 100644 --- a/queries/UserList.xml +++ b/queries/UserList.xml @@ -7,7 +7,7 @@ User List -user.png +ldap-user.pngsub1 diff --git a/templates/creation/alias.xml b/templates/creation/alias.xml index c7f83d6..1cc7555 100644 --- a/templates/creation/alias.xml +++ b/templates/creation/alias.xml @@ -5,7 +5,7 @@
Users %sMembers %sUsers %sMembers %s
%s%s
%s%s%s%s%s...
ErrorDisabled