From e550b82c03642c0e89374cc8716bdce6a9032759 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 14 Jan 2013 15:16:49 -0500 Subject: Bold and note manifest entries that match the current architecture, and add a note cautioning against a cross-architecture upgrade. --- usr/local/www/system_firmware_settings.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'usr') diff --git a/usr/local/www/system_firmware_settings.php b/usr/local/www/system_firmware_settings.php index ebdebef..74558b9 100755 --- a/usr/local/www/system_firmware_settings.php +++ b/usr/local/www/system_firmware_settings.php @@ -127,12 +127,21 @@ function enable_altfirmwareurl(enable_over) { {$pus_text[0]}"; + $pus_text = explode("\t", $pus); + if (empty($pus_text[0])) + continue; + if (stristr($pus_text[0], php_uname("m")) !== false) { + $style = " style=\"font-weight: bold\""; + $yourarch = " (Current architecture)"; + } else { + $style = ""; + $yourarch = ""; + } + echo ""; } ?> +

-- cgit v1.1