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:00:40 -0300 |
commit | cb61e2d84439af4c8958292f83dd08279ed8a2ae (patch) | |
tree | 70175c8b6c7441d97d4c80ea6dcabe900187cdb2 /src/usr/local/www/widgets | |
parent | 0577d9df462063bb3d26f0805c1e06fbdb359157 (diff) | |
download | pfsense-cb61e2d84439af4c8958292f83dd08279ed8a2ae.zip pfsense-cb61e2d84439af4c8958292f83dd08279ed8a2ae.tar.gz |
Move uniqueid read to a function system_get_uniqueid()
Diffstat (limited to 'src/usr/local/www/widgets')
-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> |