Files
cacti/docs/index.php
T
Tony Roman 4ddd5ae745 Add Support Menu Item
- Add external link support in menu (probably need more work)
 - Added Support -> Documentation menu item
 - Added Support -> Users Community menu item
 - Made documentation loading dynamic, if release documentation is
   not included it will redirect to Github documenation
2018-10-01 00:34:04 -04:00

36 lines
2.0 KiB
PHP

<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2018 The Cacti Group |
| |
| 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, or (at your option) any later version. |
| |
| 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. |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDtool-based Graphing Solution |
+-------------------------------------------------------------------------+
| This code is designed, written, and maintained by the Cacti Group. See |
| about.php and/or the AUTHORS file for specific developer information. |
+-------------------------------------------------------------------------+
| http://www.cacti.net/ |
+-------------------------------------------------------------------------+
*/
// include global
require(__DIR__ . '/../include/global.php');
// determine if we have html documentation otherwise send to Github Documentation Repo
if (file_exists($config['base_path'] . "/" . CACTI_DOCUMENTATION_TOC)) {
// slurp up TOC and output
print file_get_contents($config['base_path'] . "/" . CACTI_DOCUMENTATION_TOC);
} else {
// Redirect to Github documentation
header("Location: https://github.com/Cacti/documentation/blob/develop/README.md");
}