diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-03-25 10:37:56 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-03-25 10:37:56 +0000 |
| commit | 1b9900bb3e3059518fbed4f986ce83bb2d3102a2 (patch) | |
| tree | e5589be98d6b04b624bdfdd3a82899b06642e19c /frontends/php/history.php | |
| parent | 0a6110e779f37aaf9793e10c0778f715de2c6caf (diff) | |
| download | zabbix-1b9900bb3e3059518fbed4f986ce83bb2d3102a2.tar.gz zabbix-1b9900bb3e3059518fbed4f986ce83bb2d3102a2.tar.xz zabbix-1b9900bb3e3059518fbed4f986ce83bb2d3102a2.zip | |
- fixed error on items copy to host (Artem)
- fixed html code view in history (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5516 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/history.php')
| -rw-r--r-- | frontends/php/history.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/frontends/php/history.php b/frontends/php/history.php index 788d13fa..bf6beb95 100644 --- a/frontends/php/history.php +++ b/frontends/php/history.php @@ -536,20 +536,20 @@ COpt::profiling_start("history"); $value = $row["value"]; $new_row = array(date("Y.M.d H:i:s",$row["clock"])); - if(str_in_array($item_type,array(ITEM_VALUE_TYPE_FLOAT,ITEM_VALUE_TYPE_UINT64))) - { + if(str_in_array($item_type,array(ITEM_VALUE_TYPE_FLOAT,ITEM_VALUE_TYPE_UINT64))){ array_push($new_row,$value); } - else - { - array_push($new_row,array("<pre>",htmlspecialchars($value),"</pre>")); + else{ + $pre = new CTag('pre','yes'); + $pre->AddItem($value); + + array_push($new_row,$pre); } - if(!isset($_REQUEST["plaintext"])) - { + + if(!isset($_REQUEST["plaintext"])){ $table->ShowRow($new_row); } - else - { + else{ echo date("Y-m-d H:i:s",$row["clock"]); echo "\t".$row["clock"]."\t".$row["value"]."\n"; } |
