2008-08-04 10:15:16 +02:00
|
|
|
<?php
|
|
|
|
|
2009-06-08 20:26:14 +02:00
|
|
|
//Pandora FMS- http://pandorafms.com
|
|
|
|
// ==================================================
|
|
|
|
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
|
2008-08-22 20:07:32 +02:00
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
2008-08-04 10:53:10 +02:00
|
|
|
/* You can safely delete this file */
|
2008-08-04 10:15:16 +02:00
|
|
|
|
|
|
|
function hello_extension_main () {
|
|
|
|
/* Here you can do almost all you want! */
|
2008-08-22 20:07:32 +02:00
|
|
|
echo "<h1>Hello world!</h1>";
|
2008-10-14 11:19:19 +02:00
|
|
|
echo "This is a sample of minimal extension";
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 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 */
|
2008-08-04 10:53:10 +02:00
|
|
|
add_extension_main_function ('hello_extension_main');
|
2008-08-04 10:15:16 +02:00
|
|
|
?>
|