diff options
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php index 28fa093..656d9c6 100644 --- a/usr/local/www/widgets/widgets/system_information.widget.php +++ b/usr/local/www/widgets/widgets/system_information.widget.php @@ -76,7 +76,7 @@ if($_REQUEST['getupdatestatus']) { $curcfg = $config['system']['firmware']; ?> - +</script> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> @@ -90,7 +90,7 @@ $curcfg = $config['system']['firmware']; <br /> built on <?php readfile("/etc/version.buildtime"); ?> <br /> - <?=`uname -sr`?> + <div name="uname" id="uname"><a href="#" onClick='swapuname();'><?=`uname -sr`?></a></div> <div id='updatestatus'><br/>Obtaining update status...</div> </td> </tr> @@ -230,5 +230,8 @@ $curcfg = $config['system']['firmware']; function activitycallback(transport) { $('updatestatus').innerHTML = transport.responseText; } + function swapuname() { + $('uname').innerHTML="<?php echo exec("uname -a"); ?>"; + } setTimeout('getstatus()', 4000); </script> |