diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-04-14 10:11:50 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-04-14 10:11:50 +0000 |
| commit | 5708d2e925c1d9ad56701cadae6a7e61a7206739 (patch) | |
| tree | 3b0b67e45d111b2bbbb9ca5d750963fef22a02d7 /roundcubemail/program/include | |
| parent | 83935676d4f60639d63ce93ee3dd6f033bab26d3 (diff) | |
- removed strrstr() definition as it was needed only for php4
git-svn-id: https://svn.roundcube.net/trunk@1301 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_shared.inc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc index f3ff0aa02..556cffd50 100644 --- a/roundcubemail/program/include/rcube_shared.inc +++ b/roundcubemail/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. |
