diff options
author | Renato Botelho <renato@netgate.com> | 2017-07-05 12:59:23 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-07-05 13:22:16 -0300 |
commit | e927083e89798f9d2c8977eee8c7bfb5bc715c2e (patch) | |
tree | 9e4da30274c06617c1353237ecc93f7ad89b72af /src/usr/local | |
parent | 863804a917987ea10993433c84399b5711c3c352 (diff) | |
download | pfsense-e927083e89798f9d2c8977eee8c7bfb5bc715c2e.zip pfsense-e927083e89798f9d2c8977eee8c7bfb5bc715c2e.tar.gz |
Move uniqueid read to a function system_get_uniqueid()
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/widgets/widgets/system_information.widget.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php index a04da18..868554e 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -191,9 +191,9 @@ $rows_displayed = false; <?=gettext("Serial: ");?><strong><?=system_get_serial();?></strong> <?php // If the uniqueID is available, display it here - $idfile = "/var/db/uniqueid"; - if (file_exists($idfile)) { - print("<br />" . gettext("Netgate Unique ID:") . " <strong>" . file_get_contents($idfile) . "</strong>"); + $uniqueid = system_get_uniqueid(); + if (!empty($uniqueid)) { + print("<br />" . gettext("Netgate Device ID:") . " <strong>{$uniqueid}</strong>"); } ?> </td> |