diff --git a/gosa-core/plugins/generic/references/class_reference.inc b/gosa-core/plugins/generic/references/class_reference.inc
index 472e42e11ba944957ad3611271ec69288fc84c1c..4b1753531865d1517e9cfed7baf4f9da67d55611 100644 (file)
<?php
+/*
+ * This code is part of GOsa (http://www.gosa-project.org)
+ * Copyright (C) 2003-2008 GONICUS GmbH
+ *
+ * ID: $$Id$$
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
class reference extends plugin
{
$this->dn= $dn;
/* Fill translation array */
- $this->obtypes= array( "gosaAccount" => array( "text" => _("Generic"),
- "image" => "penguin.png"),
+ $this->obtypes= array(
+ "gosaAccount" => array( "text" => _("Generic"),
+ "image" => "images/penguin.png"),
"posixAccount" => array( "text" =>_("UNIX"),
- "image" => "select_user.png"),
- "gosaMailAccount" => array("text" => _("Mail"),
- "image" => "mailto.png"),
- "sambaSamAccount" => array("text" => _("Samba"),
- "image" => "select_winstation.png"),
- "sambaAccount" => array( "text" => _("Samba"),
- "image" => "select_winstation.png"),
- "goFaxAccount" => array( "text" => _("FAX"),
- "image" => "fax_small.png"),
- "gosaProxyAccount" => array("text" => _("Proxy"),
- "image" => "select_proxy.png"),
- "PureFTPdUser" => array( "text" => _("FTP"),
- "image" => "select_proxy.png"),
- "posixGroup" => array( "text" => _("Group"),
- "image" => "select_groups.png"),
- "gosaDepartment" => array( "text" => _("Department"),
- "image" => "select_department.png"),
- "goFonHardware" => array( "text" => _("Phone"),
- "image" => "select_phone.png"),
- "gosaApplication" => array("text" => _("Application"),
- "image" => "select_application.png"),
- "goServer" => array( "text" => _("Server"),
- "image" => "select_server.png"),
- "gotoTerminal" => array( "text" => _("Thin Client"),
- "image" => "select_terminal.png"),
- "gotoWorkstation" => array("text" => _("Workstation"),
- "image" => "select_workstation.png"),
- "gosaGroupOfNames" => array("text" => _("Object group"),
- "image" => "select_ogroup.png"),
- "gotoPrinter" => array( "text" => _("Printer"),
- "image" => "select_printer.png"));
+ "image" => "plugins/users/images/select_user.png"),
+ "gosaMailAccount" => array("text" => _("Mail"),
+ "image" => "images/mailto.png"),
+ "sambaSamAccount" => array("text" => _("Samba"),
+ "image" => "plugins/systems/images/select_winstation.png"),
+ "sambaAccount" => array( "text" => _("Samba"),
+ "image" => "plugins/sysmtes/images/select_winstation.png"),
+ "goFaxAccount" => array( "text" => _("FAX"),
+ "image" => "plugins/gofax/images/fax_small.png"),
+ "gosaProxyAccount" => array("text" => _("Proxy"),
+ "image" => "images/select_proxy.png"),
+ "PureFTPdUser" => array( "text" => _("FTP"),
+ "image" => "images/select_proxy.png"),
+ "posixGroup" => array( "text" => _("Group"),
+ "image" => "images/select_groups.png"),
+ "gosaDepartment" => array( "text" => _("Department"),
+ "image" => "images/select_department.png"),
+ "goFonHardware" => array( "text" => _("Phone"),
+ "image" => "plugins/systems/images/select_phone.png"),
+ "gosaApplication" => array("text" => _("Application"),
+ "image" => "plugins/goto/images/select_application.png"),
+ "goServer" => array( "text" => _("Server"),
+ "image" => "plugins/systems/images/select_server.png"),
+ "gotoTerminal" => array( "text" => _("Thin Client"),
+ "image" => "images/select_terminal.png"),
+ "gotoWorkstation" => array("text" => _("Workstation"),
+ "image" => "plugins/systems/images/select_workstation.png"),
+ "gosaGroupOfNames" => array("text" => _("Object group"),
+ "image" => "plugins/ogroups/images/select_ogroup.png"),
+ "gotoPrinter" => array( "text" => _("Printer"),
+ "image" => "plugins/systems/images/select_printer.png"));
}
function execute()
{
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
- $ldap->search("(|(member=".$this->dn.")(memberUid=".$this->uid."))",array("memberUid","member","cn","description","objectClass"));
+
+ $ldap->search("(|(gotoHotplugDeviceDN=".LDAP::prepare4filter($this->dn).")(member=".LDAP::prepare4filter($this->dn).")(memberUid=".$this->uid."))",array("memberUid","member","cn","description","objectClass"));
$cycle= array("F5F5F5", "ECECEC");
$id= 0;
/* Add more information? */
$addon= "";
- if (in_array($attrs['dn'], $this->fold)){
+ if (in_array_strict($attrs['dn'], $this->fold)){
$memberattr= "";
if (isset($attrs['memberUid'])){
unset($attrs['memberUid']['count']);
}
$content= $this->createContentString($attrs['objectClass']);
if ($addon == ""){
- $img= "images/expand.png";
+ $img= "images/lists/expand.png";
} else {
- $img= "images/sort_down.png";
+ $img= "images/lists/sort-down.png";
}
$this->objectlist.= '<tr style="background-color:'.$cycle[$id&1].';"><td class="phonelist" title="'.$attrs['cn'][0].'"><a href="main.php?plug='.$_GET['plug'].'&start=&show='.base64_encode($attrs['dn']).'"><img alt="" src="'.$img.'" border=0> '.$attrs['cn'][0].'</a></td><td>'.$description.'</td><td>'.$content.'</td> </tr>'.$addon;
if(!is_null($classes)) {
foreach ($classes as $class){
if (isset($this->obtypes[$class])){
- $result.= "<a><img alt=\"\" border=0 src='images/".$this->obtypes[$class]['image']."'> ".$this->obtypes[$class]['text']."</a> ";
+ $result.= "<a><img alt=\"\" border=0 src='".$this->obtypes[$class]['image']."'> ".$this->obtypes[$class]['text']."</a> ";
}
}
}