summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b2b53c4)
raw | patch | inline | side by side (parent: b2b53c4)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 24 Sep 2007 09:07:11 +0000 (09:07 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 24 Sep 2007 09:07:11 +0000 (09:07 +0000) |
* Added speed optimization for in_array_ics (use str functions)
* Updated TODO
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7384 594d385d-05f5-0310-b6e9-bd551577e9d8
* Updated TODO
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7384 594d385d-05f5-0310-b6e9-bd551577e9d8
TODO | patch | blob | history | |
include/class_config.inc | patch | blob | history | |
include/functions.inc | patch | blob | history |
index 2fda9c8a4b5a25f4fcfc51922bcea849083564ec..253674027e348e3406befecc95c54d89f2c018bf 100644 (file)
--- a/TODO
+++ b/TODO
Target for 3.0:
===============
-* Complete PHP5 compliance and optimization
-
* Simplify plugins by providing a schema parser
* Replace PHP IMAP module by self made module
index da6ca043213d14d660e4afb4c24ed13699dc093f..3fdc372c35b00b032ab4a7b156ccd6c3265fc471 100644 (file)
--- a/include/class_config.inc
+++ b/include/class_config.inc
$return= strtoupper($return);
if (is_array($arr)){
foreach ($arr as &$a){
- if (isset($a['CLASS']) && preg_match("/^$name$/i", $a['CLASS'])){
+ if (isset($a['CLASS']) && strcasecmp($name, $a['CLASS'])){
return(isset($a[$return])?$a[$return]:"");
} else {
$res= $this->__search ($a, $name, $return);
diff --git a/include/functions.inc b/include/functions.inc
index 506fa4b758be9a67adc4bf787f37dc0fb6e2573e..425bcaa734b19bcdd46b4b33bdfaa42b3bd2ecc0 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
}
foreach ($items as $item){
- if (strtolower($item) == strtolower($value)) {
+ if (strcasecmp($item, $value)) {
return (TRUE);
}
}