summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3fe808c)
raw | patch | inline | side by side (parent: 3fe808c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 13 Sep 2007 10:40:50 +0000 (10:40 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 13 Sep 2007 10:40:50 +0000 (10:40 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7288 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_plugin.inc | patch | blob | history | |
include/functions.inc | patch | blob | history |
index 47dd20c517adc7de44330e857ac973e9059d537f..462be0b6c6c61a82f151c4162707a860abdee671 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
}
/* Is Account? */
- error_reporting(0);
$found= TRUE;
foreach ($this->objectclasses as $obj){
if (preg_match('/top/i', $obj)){
break;
}
}
- error_reporting(E_ALL | E_STRICT);
if ($found){
$this->is_account= TRUE;
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,
}
$r=ldap_bind($ds,$this->config->current['ADMIN'], $this->config->current['PASSWORD']);
- error_reporting (0);
$sr=ldap_read($ds, @LDAP::fix($src_dn), "objectClass=*");
/* Fill data from LDAP */
}
/* close conncetion */
- error_reporting (E_ALL | E_STRICT);
ldap_unbind($ds);
/* Adapt naming attribute */
diff --git a/include/functions.inc b/include/functions.inc
index e6645288a2410105e3efd1fb2e1ba6408df7fa7b..27eac9098d4639d1ad0c9f1ff9d4c256a432f235 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
}
-function array_search_r($needle, $key, $haystack){
-
- foreach($haystack as $index => $value){
- $match= 0;
-
- if (is_array($value)){
- $match= array_search_r($needle, $key, $value);
- }
-
- if ($index==$key && !is_array($value) && preg_match("/$needle/i", $value)){
- $match=1;
- }
-
- if ($match){
- return 1;
- }
- }
-
- return 0;
-}
-
-
/* Sadly values like memory_limit are perpended by K, M, G, etc.
Need to convert... */
function to_byte($value) {