mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 17:20:04 -06:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
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.
|
|
*/
|
|
?>
|
|
<?if (_var($display,'resize')):?>
|
|
<script>
|
|
function resize() {
|
|
$('pre.up').height(Math.max(window.innerHeight-320,330));
|
|
}
|
|
$(function() {
|
|
resize();
|
|
$(window).bind('resize',function(){resize();});
|
|
});
|
|
</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'] = "***";
|
|
echo "<pre class='up'>",htmlspecialchars(print_r($globals,true)),"</pre>";
|
|
?>
|
|
<input type="button" value="_(Done)_" onclick="done()">
|