Private GIT

Skip to content
Snippets Groups Projects
Commit 18f9dc33 authored by Julien Mathis's avatar Julien Mathis
Browse files

change documentation link

parent 888bf76a
No related branches found
No related tags found
No related merge requests found
<?php
/*
* Copyright 2005-2011 MERETHIS
* Centreon is developped by : Julien Mathis and Romain Le Merlus under
* GPL Licence 2.0.
*
* 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 ; either version 2 of the License.
*
* 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, see <http://www.gnu.org/licenses>.
*
* Linking this program statically or dynamically with other modules is making a
* combined work based on this program. Thus, the terms and conditions of the GNU
* General Public License cover the whole combination.
*
* As a special exception, the copyright holders of this program give MERETHIS
* permission to link this program with independent modules to produce an executable,
* regardless of the license terms of these independent modules, and to copy and
* distribute the resulting executable under terms of MERETHIS choice, provided that
* MERETHIS also meet, for each linked independent module, the terms and conditions
* of the license of that module. An independent module is a module which is not
* derived from this program. If you modify this program, you may extend this
* exception to your version of the program, but you are not obliged to do so. If you
* do not wish to do so, delete this exception statement from your version.
*
* For more information : contact@centreon.com
*
* SVN : $URL$
* SVN : $Id$
*
*/
if (function_exists("filter_get")) {
$img = filter_var($_GET["img"]);
$lang = filter_var($_GET["lang"]);
$version = filter_var($_GET["version"]);
} else {
$img = htmlentities($_GET["img"], ENT_QUOTES, "UTF-8");
$lang = htmlentities($_GET["lang"], ENT_QUOTES, "UTF-8");
$version = htmlentities($_GET["version"], ENT_QUOTES, "UTF-8");
}
$tab_images = preg_split("/\//", $img);
foreach ($tab_images as $value)
$image = $value;
header("Content-Type: image/png");
if (file_exists("../../../doc/".$version."/".$lang."/images/".$image)){
$img = fopen("../../../doc/".$version."/".$lang."/images/".$image, "r");
if (isset($img) && $img)
while ($line = fgets($img))
print $line;
}
?>
\ No newline at end of file
<?php
/*
* Copyright 2005-2011 MERETHIS
* Centreon is developped by : Julien Mathis and Romain Le Merlus under
* GPL Licence 2.0.
*
* 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 ; either version 2 of the License.
*
* 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, see <http://www.gnu.org/licenses>.
*
* Linking this program statically or dynamically with other modules is making a
* combined work based on this program. Thus, the terms and conditions of the GNU
* General Public License cover the whole combination.
*
* As a special exception, the copyright holders of this program give MERETHIS
* permission to link this program with independent modules to produce an executable,
* regardless of the license terms of these independent modules, and to copy and
* distribute the resulting executable under terms of MERETHIS choice, provided that
* MERETHIS also meet, for each linked independent module, the terms and conditions
* of the license of that module. An independent module is a module which is not
* derived from this program. If you modify this program, you may extend this
* exception to your version of the program, but you are not obliged to do so. If you
* do not wish to do so, delete this exception statement from your version.
*
* For more information : contact@centreon.com
*
* SVN : $URL$
* SVN : $Id$
*
*/
?>
<div id="EnginesListTitleArea">
<h1>Monitoring Engine Documentation</h1>
</div>
<br />
<div id="EnginesListArea" style="font-size: 18px;">
<ul id="EnginesList" style="padding-left: 40px;">
<li class="EnginesDoc" id="CengineDoc">
<a href="http://documentation.centreon.com/docs/centreon-engine/" target="_blank">Centreon Engine</a>
</li>
<li class="EnginesDoc" id="IcingaDoc">
<a href="http://docs.icinga.org/latest/en/" target="_blank">Icinga</a>
</li>
<li class="EnginesDoc" id="NagiosDoc">
<a href="http://nagios.sourceforge.net/docs/nagioscore/3/en/toc.html" target="_blank">Nagios</a>
</li>
<li class="EnginesDoc" id="ShinkenDoc">
<a href="http://shinken-monitoring.org/wiki/official/start" target="_blank">Shinken</a>
</li>
</ul>
</div>
......@@ -103,7 +103,6 @@
* Init URL
*/
$url = "";
if (!isset($_GET["doc"])){
$acl_page = $centreon->user->access->page($p, true);
if ($acl_page == 1 || $acl_page == 2) {
if ($redirect["topology_page"] < 100){
......@@ -189,9 +188,6 @@
} else {
$url = "./alt_error.php";
}
} else {
$url = "./include/doc/index.php";
}
/*
* Header HTML
......@@ -260,8 +256,6 @@
$centreon->historyLimit[$url] = $_POST["limit"];
}
/*
* Display Footer
*/
......
......@@ -95,7 +95,7 @@
<span id="linkBar"></span>
<span id="logli">
<img id="sound_status" src="./img/icones/24x24/speaker_{$sound_status}.png" style="cursor:pointer;" onClick="{$sound_action}">
<img src='./img/icones/16x16/help.gif' alt="{$Documentation}" />&nbsp;<a href='./main.php?p={$p}&amp;doc=1&amp;page=toc.html' title='{$Documentation}'>{$Documentation}</a>&nbsp;-&nbsp;{$loggedlabel}&nbsp;{if $topology[50104]}<a href="./main.php?p=50104&o=c">{/if}{$user_login}{if $topology[50104]}</a>{/if}&nbsp;{if $autoLoginEnable }<a onClick='return false;' href='{$autoLoginUrl}' title='Centreon - IT and Network Monitoring'><img src='./img/icones/16x16/lock_preferences.gif' title='{$CentreonAutologin}'></a>&nbsp;{/if}<a href="{$LogOutUrl}"><img src="./img/icones/16x16/logout.gif" alt="{$Logout}"/></a>&nbsp;<a href="{$LogOutUrl}">{$Logout}</a>&nbsp;
<img src='./img/icones/16x16/help.gif' alt="{$Documentation}" />&nbsp;<a href='http://documentation.centreon.com' title='{$Documentation}' target='_blank'>{$Documentation}</a>&nbsp;-&nbsp;{$loggedlabel}&nbsp;{if $topology[50104]}<a href="./main.php?p=50104&o=c">{/if}{$user_login}{if $topology[50104]}</a>{/if}&nbsp;{if $autoLoginEnable }<a onClick='return false;' href='{$autoLoginUrl}' title='Centreon - IT and Network Monitoring'><img src='./img/icones/16x16/lock_preferences.gif' title='{$CentreonAutologin}'></a>&nbsp;{/if}<a href="{$LogOutUrl}"><img src="./img/icones/16x16/logout.gif" alt="{$Logout}"/></a>&nbsp;<a href="{$LogOutUrl}">{$Logout}</a>&nbsp;
</span>
<div id="date">{$Date}</div>
<div id="centreonMsg"></div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment