thomascube
2006-07-18 bac7d1742d45f256ded98656482ec9995e1c330a
program/include/rcube_shared.inc
@@ -1334,7 +1334,8 @@
    }
// replace the middle part of a string with ...
// if it is longer than the allowed length
function abbrevate_string($str, $maxlength, $place_holder='...')
  {
  $length = strlen($str);
@@ -1350,6 +1351,20 @@
  }
// make sure the string ends with a slash
function slashify($str)
  {
  return unslashify($str).'/';
  }
// remove slash at the end of the string
function unslashify($str)
  {
  return preg_replace('/\/$/', '', $str);
  }
// delete all files within a folder
function clear_directory($dir_path)
  {