mirror of
https://github.com/unraid/webgui.git
synced 2026-02-17 22:48:53 -06:00
Vars: only show defined global variables
This commit is contained in:
@@ -27,10 +27,9 @@ $(function() {
|
||||
</script>
|
||||
<?endif;?>
|
||||
<?
|
||||
$myPage['text'] = $page['text'] = $pages['Vars']['text'] = $language = $text = $notes = $site = $webComponentTranslations = '...';
|
||||
$globals = $GLOBALS;
|
||||
ksort($globals);
|
||||
if (isset($globals['_SERVER']['PHP_AUTH_PW'])) $globals['_SERVER']['PHP_AUTH_PW'] = "***";
|
||||
$globals = [];
|
||||
$names = ['devs','disks','sec','sec_nfs','shares','users','var'];
|
||||
foreach ($names as $name) $globals[$name] = $$name;
|
||||
echo "<pre class='up'>",htmlspecialchars(print_r($globals,true)),"</pre>";
|
||||
?>
|
||||
<input type="button" value="_(Done)_" onclick="done()">
|
||||
|
||||
@@ -30,13 +30,13 @@ require_once "$docroot/webGui/include/Helpers.php";
|
||||
extract(parse_plugin_cfg('dynamix',true));
|
||||
|
||||
// Read emhttp status
|
||||
$var = (array)@parse_ini_file('state/var.ini');
|
||||
$sec = (array)@parse_ini_file('state/sec.ini',true);
|
||||
$devs = (array)@parse_ini_file('state/devs.ini',true);
|
||||
$disks = (array)@parse_ini_file('state/disks.ini',true);
|
||||
$users = (array)@parse_ini_file('state/users.ini',true);
|
||||
$shares = (array)@parse_ini_file('state/shares.ini',true);
|
||||
$sec = (array)@parse_ini_file('state/sec.ini',true);
|
||||
$sec_nfs = (array)@parse_ini_file('state/sec_nfs.ini',true);
|
||||
$shares = (array)@parse_ini_file('state/shares.ini',true);
|
||||
$users = (array)@parse_ini_file('state/users.ini',true);
|
||||
$var = (array)@parse_ini_file('state/var.ini');
|
||||
|
||||
// Merge SMART settings
|
||||
require_once "$docroot/webGui/include/CustomMerge.php";
|
||||
|
||||
Reference in New Issue
Block a user