diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-04-19 14:47:21 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-04-19 14:47:21 +0000 |
| commit | 979fcceb99e555800fdfbc2cecf4ba585e780b73 (patch) | |
| tree | 1c00b2ade37f4fa1ef285c070ddfe3e0d4a70247 /frontends/php/include/html.inc.php | |
| parent | d4f46d541400d6a6a55924d27c9c43430aade509 (diff) | |
| download | zabbix-979fcceb99e555800fdfbc2cecf4ba585e780b73.tar.gz zabbix-979fcceb99e555800fdfbc2cecf4ba585e780b73.tar.xz zabbix-979fcceb99e555800fdfbc2cecf4ba585e780b73.zip | |
- code optimization (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2744 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/html.inc.php')
| -rw-r--r-- | frontends/php/include/html.inc.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/frontends/php/include/html.inc.php b/frontends/php/include/html.inc.php index 277668b7..61ec6dca 100644 --- a/frontends/php/include/html.inc.php +++ b/frontends/php/include/html.inc.php @@ -23,13 +23,6 @@ define("SPACE"," "); define("RARR","⇒"); - function do_vertival_text($str) - { - for($i=0,$out = ""; $i<strlen($str); $i++) $out .= $str[$i].BR; - $str = $out; - return $str; - } - function bold($str) { if(is_array($str)){ @@ -45,7 +38,7 @@ function bfirst($str) // mark first symbol of string as bold { $res = bold($str[0]); - for($i=1; $i<strlen($str); $i++) $res .= $str[$i]; + for($i=1,$max=strlen($str); $i<$max; $i++) $res .= $str[$i]; $str = $res; return $str; } |
