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>";
|
2009-09-02 19:44:41 +02:00
|
|
|
echo "This is a sample of minimal extension in the operation view";
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
|
|
|
|
2009-08-27 18:57:19 +02:00
|
|
|
function test() {
|
2009-09-02 19:44:41 +02:00
|
|
|
echo "<h2>Hello administration world</h2>";
|
|
|
|
echo "This is a sample of minimal extension in the godmode view";
|
2009-08-27 18:57:19 +02:00
|
|
|
}
|
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
/* This adds a option in the operation menu */
|
2009-08-27 18:57:19 +02:00
|
|
|
//add_operation_menu_option ('Hello plugin!');
|
|
|
|
add_godmode_menu_option (__('Hello plugin'), 'PM','gagente',"hello/icon.png");
|
|
|
|
/**
|
|
|
|
* 'estado' is a option of menu you can see in 'operation/menu.php'
|
|
|
|
*/
|
|
|
|
add_operation_menu_option(__('Hello plugin'), 'estado',"hello/icon.png");
|
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
|
|
|
|
/* 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');
|
2009-08-27 18:57:19 +02:00
|
|
|
|
2009-09-02 19:44:41 +02:00
|
|
|
add_extension_godmode_function('test');
|
2008-08-04 10:15:16 +02:00
|
|
|
?>
|