summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-04-14 10:11:50 +0000
committeralecpl <alec@alec.pl>2008-04-14 10:11:50 +0000
commita63e10ee7d43ab71ed4b66c51a1f78badb69e25d (patch)
treebf8a22b9911925d84f075d8918ab0920a58d72d4 /program/include
parenta901aa564a73e85d37eda6b53c21c0638d435169 (diff)
- removed strrstr() definition as it was needed only for php4
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_shared.inc23
1 files changed, 0 insertions, 23 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index f3ff0aa02..556cffd50 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -659,29 +659,6 @@ function get_offset_time($offset_str, $factor=1)
/**
- * Return the last occurence of a string in another string
- *
- * @param haystack string string in which to search
- * @param needle string string for which to search
- * @return index of needle within haystack, or false if not found
- */
-function strrstr($haystack, $needle)
-{
- $pver = phpversion();
- if ($pver[0] >= 5)
- return strrpos($haystack, $needle);
- else
- {
- $index = strpos(strrev($haystack), strrev($needle));
- if($index === false)
- return false;
-
- $index = strlen($haystack) - strlen($needle) - $index;
- return $index;
- }
-}
-
-/**
* A method to guess the mime_type of an attachment.
*
* @param string $path Path to the file.