diff options
author | Ermal <eri@pfsense.org> | 2010-11-16 22:38:49 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-11-16 22:38:49 +0000 |
commit | 7b22832377007621eb3aa33186c8b23332f27f02 (patch) | |
tree | ea4e6a9429c9aa6cd683f4c5ee0ea20bfea81143 /usr/local/www/widgets | |
parent | 1b28121fac36e9807c635f371914b15bf2c87789 (diff) | |
download | pfsense-7b22832377007621eb3aa33186c8b23332f27f02.zip pfsense-7b22832377007621eb3aa33186c8b23332f27f02.tar.gz |
Avoid exec() and use php calls.
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php index b808fde..9604461 100644 --- a/usr/local/www/widgets/widgets/system_information.widget.php +++ b/usr/local/www/widgets/widgets/system_information.widget.php @@ -87,15 +87,11 @@ $curcfg = $config['system']['firmware']; <td width="25%" valign="top" class="vncellt">Version</td> <td width="75%" class="listr"> <strong><?php readfile("/etc/version"); ?></strong> - (<?php - $arch = ""; - exec('uname -m', $arch); - echo $arch[0]; - ?>) + (<?php echo php_uname("m"); ?>) <br /> built on <?php readfile("/etc/version.buildtime"); ?> <br /> - <div name="uname" id="uname"><a href="#" onClick='swapuname(); return false;'><?=`uname -sr`?></a></div> + <div name="uname" id="uname"><a href="#" onClick='swapuname(); return false;'><php echo php_uname("s") . " " . php_uname("r"); ?></a></div> <div id='updatestatus'><br/>Obtaining update status...</div> </td> </tr> @@ -271,7 +267,7 @@ $curcfg = $config['system']['firmware']; $('updatestatus').innerHTML = transport.responseText; } function swapuname() { - $('uname').innerHTML="<?php echo exec("uname -a"); ?>"; + $('uname').innerHTML="<?php echo php_uname("a"); ?>"; } setTimeout('getstatus()', 4000); </script> |