mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
* include/config_process.php: Added ENTERPRISE_DIR constant. * extensions/hello.php: Use extension better than plugin which is already used in other places. * godmode/reporting/map_builder.php: Use process_sql() to make SQL queries. * include/functions_db.php: Fixed some functions documentation. Added order_field to get_db_all_fields_in_table(). Style correction. * include/functions_extensions.php: Support to load enterprise extensions. * include/functions_reporting.php: Fixed general_stats() to returns stats also with a field name. * include/javascript/jquery.ui.core.js, include/javascript/jquery.ui.draggable.js, include/javascript/jquery.ui.droppable.js: Updated to latest version of jQuery UI. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1149 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
33 lines
1.3 KiB
PHP
33 lines
1.3 KiB
PHP
<?php
|
|
|
|
// Pandora FMS - the Flexible Monitoring System
|
|
// ============================================
|
|
// Copyright (c) 2008 Artica Soluciones Tecnologicas, http://www.artica.es
|
|
// Please see http://pandora.sourceforge.net for full contribution list
|
|
|
|
// 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 for 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.
|
|
// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
/* You can safely delete this file */
|
|
|
|
function hello_extension_main () {
|
|
/* Here you can do almost all you want! */
|
|
echo "<h1>Hello world!</h1>";
|
|
echo "This is a sample of minimal extension";
|
|
}
|
|
|
|
/* This adds a option in the operation menu */
|
|
add_operation_menu_option ('Hello plugin!');
|
|
|
|
/* This sets the function to be called when the extension is selected in the operation menu */
|
|
add_extension_main_function ('hello_extension_main');
|
|
?>
|