@@ -643,9 +643,9 @@ discard block |
||
643 | 643 | } |
644 | 644 | break; |
645 | 645 | |
646 | - default: |
|
647 | - // Don't generate form elements for things that aren't explicitly form |
|
648 | - // elements (i.e. 'title', '@attributes' keys, and the like) |
|
646 | + default: |
|
647 | + // Don't generate form elements for things that aren't explicitly form |
|
648 | + // elements (i.e. 'title', '@attributes' keys, and the like) |
|
649 | 649 | } |
650 | 650 | } |
651 | 651 | |
@@ -1990,31 +1990,31 @@ discard block |
||
1990 | 1990 | */ |
1991 | 1991 | function pretty_application_version($appverid, $vernum, $plan_class, $plfm) { |
1992 | 1992 | switch ($appverid) { |
1993 | - case ANON_PLATFORM_UNKNOWN: |
|
1994 | - return "Anonymous platform"; |
|
1995 | - case ANON_PLATFORM_CPU: |
|
1996 | - return "Anonymous platform CPU"; |
|
1997 | - case ANON_PLATFORM_NVIDIA: |
|
1998 | - return "Anonymous platform NVIDIA GPU"; |
|
1999 | - case ANON_PLATFORM_ATI: |
|
2000 | - return "Anonymous platform AMD GPU"; |
|
2001 | - case ANON_PLATFORM_INTEL_GPU: |
|
2002 | - return "Anonymous platform Intel GPU"; |
|
2003 | - case ANON_PLATFORM_APPLE_GPU: |
|
2004 | - return "Anonymous platform Apple GPU"; |
|
2005 | - case 0: |
|
2006 | - return "---"; |
|
2007 | - default: |
|
2008 | - // Handle the case where the appversid is still negative. This |
|
2009 | - // may be cause BOINC has introduced a new anonymous platform |
|
2010 | - // that is not handled by the above case statements. |
|
2011 | - if ($appverid < 0) { |
|
2012 | - return "Unknown Anonymous platform"; |
|
2013 | - } |
|
2014 | - else { |
|
2015 | - $prettyv = sprintf("%d.%02d", $vernum/100, $vernum%100); |
|
2016 | - $prettyc = ($plan_class) ? "($av->plan_class)" : ''; |
|
2017 | - return "v$prettyv $prettyc $plfm"; |
|
2018 | - } |
|
1993 | + case ANON_PLATFORM_UNKNOWN: |
|
1994 | + return "Anonymous platform"; |
|
1995 | + case ANON_PLATFORM_CPU: |
|
1996 | + return "Anonymous platform CPU"; |
|
1997 | + case ANON_PLATFORM_NVIDIA: |
|
1998 | + return "Anonymous platform NVIDIA GPU"; |
|
1999 | + case ANON_PLATFORM_ATI: |
|
2000 | + return "Anonymous platform AMD GPU"; |
|
2001 | + case ANON_PLATFORM_INTEL_GPU: |
|
2002 | + return "Anonymous platform Intel GPU"; |
|
2003 | + case ANON_PLATFORM_APPLE_GPU: |
|
2004 | + return "Anonymous platform Apple GPU"; |
|
2005 | + case 0: |
|
2006 | + return "---"; |
|
2007 | + default: |
|
2008 | + // Handle the case where the appversid is still negative. This |
|
2009 | + // may be cause BOINC has introduced a new anonymous platform |
|
2010 | + // that is not handled by the above case statements. |
|
2011 | + if ($appverid < 0) { |
|
2012 | + return "Unknown Anonymous platform"; |
|
2013 | + } |
|
2014 | + else { |
|
2015 | + $prettyv = sprintf("%d.%02d", $vernum/100, $vernum%100); |
|
2016 | + $prettyc = ($plan_class) ? "($av->plan_class)" : ''; |
|
2017 | + return "v$prettyv $prettyc $plfm"; |
|
2018 | + } |
|
2019 | 2019 | } |
2020 | 2020 | } |