mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 11:29:12 +02:00
* include/functions_menu.php, include/functions_html.php, include/functions_events.php, include/functions_messages.php, include/functions_modules.php, include/functions_exportserver.php, include/functions_reporting.php, include/functions_filemanager.php, include/pchart_graph.php, include/pandora_graph.php, include/auth/ldap.php, include/auth/mysql.php, include/config.inc.php, include/functions_networkmap.php, include/functions_servers.php, include/functions_network_profiles.php, include/gettext.php, include/functions_network_components.php, include/functions_visual_map.php, include/fgraph2.php, include/Image/image_functions.php, include/functions_config.php, include/config_process.php, include/functions_ui.php, include/htmlawed.php, include/functions_custom_graphs.php, include/fgraph.php, include/functions_incidents.php, include/functions.php, include/functions_agents.php, include/functions_db.php, include/functions_themes.php, include/streams.php, include/functions_fsgraph.php, include/functions_alerts.php, include/functions_reports.php, include/functions_extensions.php, include/functions_ui_renders.php: change or add the subpackage in phpdoc comment blocks for to organize more the result phpdoc files. Start to document undocument functions. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1882 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
47 lines
1.2 KiB
PHP
47 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;
|
|
}
|
|
|
|
?>
|