39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
|
<?php
|
||
|
|
||
|
// Pandora FMS - http://pandorafms.com
|
||
|
// ==================================================
|
||
|
// Copyright (c) 2005-2011 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 Clippy
|
||
|
*/
|
||
|
|
||
|
function clippy_start($sec2) {
|
||
|
global $config;
|
||
|
|
||
|
if ($sec2 === false) {
|
||
|
$sec2 = 'homepage';
|
||
|
}
|
||
|
|
||
|
$sec2 = str_replace('/', '_', $sec2);
|
||
|
|
||
|
//~ html_debug_print($sec2, true);
|
||
|
|
||
|
if (is_file("include/help/clippy/" . $sec2 . ".php")) {
|
||
|
require("include/help/clippy/" . $sec2 . ".php");
|
||
|
|
||
|
clippy_start_page();
|
||
|
}
|
||
|
}
|
||
|
?>
|