From: hickert Date: Mon, 19 Apr 2010 13:17:40 +0000 (+0000) Subject: removed "generate_alphabet" method from functions.inc - it is unused now X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8ddd669be7816ea5873043a5d636eda640467477;p=gosa.git removed "generate_alphabet" method from functions.inc - it is unused now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17694 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 0bf8608a9..5ca66f4db 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -2216,38 +2216,6 @@ function in_array_ics($value, $items) } -/*! \brief Generate a clickable alphabet */ -function generate_alphabet($count= 10) -{ - $characters= _("*ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"); - $alphabet= ""; - $c= 0; - - /* Fill cells with charaters */ - for ($i= 0, $l= mb_strlen($characters, 'UTF8'); $i<$l; $i++){ - if ($c == 0){ - $alphabet.= ""; - } - - $ch = mb_substr($characters, $i, 1, "UTF8"); - $alphabet.= " ".$ch." "; - - if ($c++ == $count){ - $alphabet.= ""; - $c= 0; - } - } - - /* Fill remaining cells */ - while ($c++ <= $count){ - $alphabet.= " "; - } - - return ($alphabet); -} - - /*! \brief Removes malicious characters from a (POST) string. */ function validate($string) {