Menu="WebGui"
Title="Vars"
Icon="icon-vars"
Tag="code"
---
<?PHP
/* Copyright 2005-2023, Lime Technology
 * Copyright 2012-2023, Bergware International.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 2,
 * as published by the Free Software Foundation.
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 */
?>
<?
$globals = [];
$names   = ['_SERVER','devs','disks','sec','sec_nfs','shares','users','var'];
foreach ($names as $name) $globals[$name] = $$name;
// show outgoing proxy information, is in the environment but not a superglobal
$globals['environment'] = ['http_proxy' => getenv('http_proxy'), 'no_proxy' => getenv('no_proxy')];
?>
<?if (_var($display,'resize')):?>
<script>
$(function() {
  fillAvailableHeight({
    targetElementSelector: '.js-fill-available-height',
    elementSelectorsForHeight: [
      '.js-actions',
    ],
  });
});
</script>
<?endif;?>

<pre class='js-fill-available-height up'><?= htmlspecialchars(print_r($globals,true));?></pre>

<div class="js-actions">
  <input type="button" value="_(Done)_" onclick="done()">
</div>
