secure included webinterface-modules; add settings-functions to Froxlor-ApiCommand

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-02-22 21:05:58 +01:00
parent dfb5d33a56
commit d9ec214e17
5 changed files with 112 additions and 29 deletions

View File

@@ -1,6 +1,8 @@
<?php
if (! defined('AREA'))
die('You cannot access this file directly!');
if (! defined('AREA')) {
header("Location: index.php");
exit;
}
/**
* This file is part of the Froxlor project.
@@ -77,10 +79,10 @@ foreach ($output_arr as $module => $functions) {
$apihelp .= "<h3>" . ($funcdata['return_type'] == - 1 ? "<span class=\"red\">no-return-type</span>" : $funcdata['return_type']) . "&nbsp;";
$apihelp .= "<b>" . $module . ".<span class=\"blue\">" . $function . "</span></b></h3>";
// description
if (strtoupper(substr($funcdata['head'], 0, 4)) == "TODO")
if (strtoupper(substr($funcdata['head'], 0, 5)) == "@TODO")
$apihelp .= "<span class=\"red\">";
$apihelp .= $funcdata['head'];
if (strtoupper(substr($funcdata['head'], 0, 4)) == "TODO")
if (strtoupper(substr($funcdata['head'], 0, 5)) == "@TODO")
$apihelp .= "</span>";
// output ALL the params;
if (count($funcdata['params_list']) > 0) {