mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-12-09 23:00:14 +01:00
* include/functions_reporting.php: SLA readjust to be used in SLA view. * include/config_process.php, * include/functions_config.php: Added support for custom_logo option. * include/help/en/help_agent_access.php, include/help/en/help_custom_logo.php: New help topics. * include/functions_agents.php: Replaced audit_db with pandora_audit(). * include/functions_db.php: pandora_audit() will replace audit_db(). * operation/agentes/sla_view.php: now show render ok modules with min_critical defined and uses to calculate automatically a SLA based on it's critical definition. * operation/messages/message.php: Message view was not working!. Fixed * Some new images added: images/people_2.png images/MiniLogoArtica.jpg images/pandora_header_logo_enterprise.png images/custom_logo images/custom_logo/sourceforge.png images/custom_logo/artica_logo.png images/custom_logo/pandora_logo_head.png images/pandora_header_logo.png images/people_1.png: * general/header.php: Changes to add new custom logo feature and replace logos with a image instead text. * godmode/setup/setup_visuals.php: now is possible to choose a custom logo to be displayed in header. *operation/agentes/ver_agente.php, * godmode/agentes/configurar_agente.php: Tabs do not have text at sides. This avoid problems in other languages different than english with long text strings. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2148 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
49 lines
1.2 KiB
PHP
49 lines
1.2 KiB
PHP
<?php
|
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
// ==================================================
|
|
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
|
|
// Please see http://pandorafms.org for full contribution list
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
// modify it under the terms of the GNU Lesser General Public License
|
|
// as published by the Free Software Foundation; version 2
|
|
|
|
// 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.
|
|
|
|
/**
|
|
* @package Include
|
|
* @subpackage HTML
|
|
*/
|
|
|
|
/**
|
|
* Get a list of CSS themes installed.
|
|
*
|
|
* @return array An indexed array with the file name in the index and the theme
|
|
* name (if available) as the value.
|
|
*/
|
|
function get_css_themes () {
|
|
$theme_dir = 'include/styles/';
|
|
|
|
$files = list_files ($theme_dir, "pandora", 1, 0);
|
|
|
|
$retval = array ();
|
|
foreach ($files as $file) {
|
|
$data = implode ('', file ($theme_dir.'/'.$file));
|
|
preg_match ('|Name:(.*)$|mi', $data, $name);
|
|
if (isset ($name[1]))
|
|
$retval[$file] = trim ($name[1]);
|
|
else
|
|
$retval[$file] = $file;
|
|
}
|
|
|
|
return $retval;
|
|
}
|
|
|
|
|
|
|
|
?>
|