summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/profiles.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-06 09:13:51 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-06 09:13:51 +0000
commit8465ff8a0e531247f41f4d3c7b3b1cbe03643974 (patch)
tree11a89a3bea5b2720cd839a7a2455d4d47caf9815 /frontends/php/include/profiles.inc.php
parent37085eb0c73b06780c4f3a34f82693d04a1c2596 (diff)
downloadzabbix-8465ff8a0e531247f41f4d3c7b3b1cbe03643974.tar.gz
zabbix-8465ff8a0e531247f41f4d3c7b3b1cbe03643974.tar.xz
zabbix-8465ff8a0e531247f41f4d3c7b3b1cbe03643974.zip
- [DEV-137] fixes to GUI (Artem) big thanks to Palmertree
git-svn-id: svn://svn.zabbix.com/trunk@5677 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/profiles.inc.php')
-rw-r--r--frontends/php/include/profiles.inc.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/frontends/php/include/profiles.inc.php b/frontends/php/include/profiles.inc.php
index 885b6361..7bb9f159 100644
--- a/frontends/php/include/profiles.inc.php
+++ b/frontends/php/include/profiles.inc.php
@@ -255,6 +255,27 @@ function get_user_history(){
return $history;
}
+function get_last_history_page($same_page=false){
+ global $page;
+ $title = explode('[',$page['title']);
+ $title = $title[0];
+
+ $rows=false;
+ for($i = 0; $i < ZBX_HISTORY_COUNT; $i++){
+ $new_rows = get_multi_profile('web.history.'.$i,false,PROFILE_TYPE_MULTI);
+
+ if(!$same_page && ($title == $new_rows['value'])) continue;
+ $rows = $new_rows;
+ }
+
+ if(is_array($rows)){
+ $rows['page'] = $rows['value'];
+ $rows['url'] = $rows['value2'];
+ }
+
+return $rows;
+}
+
// Author: Aly
function add_user_history($page){