/usr/share/zabbix/include/page_footer.php is in zabbix-frontend-php 1:1.8.11-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | <?php
/*
** ZABBIX
** Copyright (C) 2000-2005 SIA Zabbix
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**/
?>
<?php
require_once('include/config.inc.php');
// if we include footer in some function
if(!isset($USER_DETAILS)) global $USER_DETAILS;
if(!isset($page)) global $page;
if(!isset($ZBX_PAGE_POST_JS)) global $ZBX_PAGE_POST_JS;
// ---
if(!defined('PAGE_HEADER_LOADED')){
define ('PAGE_HEADER_LOADED', 1);
}
// HISTORY{
if(isset($page['hist_arg']) && ($USER_DETAILS['alias'] != ZBX_GUEST_USER) && ($page['type'] == PAGE_TYPE_HTML) && !defined('ZBX_PAGE_NO_MENU')){
add_user_history($page);
}
// HISTORY}
// last page
if(!defined('ZBX_PAGE_NO_MENU') && ($page['file'] != 'profile.php')){
CProfile::update('web.paging.lastpage', $page['file'], PROFILE_TYPE_STR);
}
CProfile::flush();
// END Transactions if havn't been -----------------
if(isset($DB) && isset($DB['TRANSACTIONS']) && ($DB['TRANSACTIONS'] != 0)){
error(S_TRANSACTION_HAVE_NOT_BEEN_CLOSED_ABORTING);
DBend(false);
}
//--------------------------------------------------
show_messages();
$post_script = '';
if(uint_in_array($page['type'], array(PAGE_TYPE_HTML_BLOCK, PAGE_TYPE_HTML))){
if(!is_null($USER_DETAILS) && isset($USER_DETAILS['debug_mode']) && ($USER_DETAILS['debug_mode'] == GROUP_DEBUG_MODE_ENABLED)){
COpt::profiling_stop('script');
COpt::show();
}
}
if($page['type'] == PAGE_TYPE_HTML){
$post_script.= 'var page_refresh = null;'."\n";
if(isset($JS_TRANSLATE)){
$post_script.='var newLocale = '.zbx_jsvalue($JS_TRANSLATE)."\n";
$post_script.='var locale = (typeof(locale) == "undefined" ? {} : locale);'."\n";
$post_script.='for(key in newLocale){locale[key] = newLocale[key];}'."\n";
}
$post_script.= 'function zbxCallPostScripts(){'."\n";
if(isset($ZBX_PAGE_POST_JS)){
foreach($ZBX_PAGE_POST_JS as $num => $script){
$post_script.=$script."\n";
}
}
if(defined('ZBX_PAGE_DO_REFRESH') && $USER_DETAILS['refresh']){
$post_script.= 'PageRefresh.init('.($USER_DETAILS['refresh']*1000).');'."\n";
}
$post_script.= 'cookie.init();'."\n";
$post_script.= 'chkbxRange.init();'."\n";
$post_script.= 'if(IE6){ie6pngfix.run(false);}'."\n";
$post_script.='}'."\n";
if(!defined('ZBX_PAGE_NO_MENU') && !defined('ZBX_PAGE_NO_FOOTER')){
$table = new CTable(NULL,"page_footer");
$table->setCellSpacing(0);
$table->setCellPadding(1);
$table->addRow(array(
new CCol(new CLink(
S_ZABBIX.SPACE.ZABBIX_VERSION.SPACE.S_COPYRIGHT_BY.SPACE.S_SIA_ZABBIX,
'http://www.zabbix.com', 'highlight', null, true),
'page_footer_l'),
new CCol(array(
new CSpan(SPACE.SPACE.'|'.SPACE.SPACE,'divider'),
new CSpan(($USER_DETAILS['userid'] == 0)?S_NOT_CONNECTED:S_CONNECTED_AS.SPACE."'".$USER_DETAILS['alias']."'".
(ZBX_DISTRIBUTED ? SPACE.S_FROM_SMALL.SPACE."'".$USER_DETAILS['node']['name']."'" : ''),'footer_sign')
),
'page_footer_r')
));
$table->show();
}
insert_js($post_script);
echo "</body>\n";
echo "</html>\n";
}
exit;
?>
|