php 5.6 logo, reorganize logo-functions
Hanno Böck

Hanno Böck commited on 2014-09-01 08:49:13
Zeige 3 geänderte Dateien mit 8 Einfügungen und 25 Löschungen.

... ...
@@ -22,24 +22,10 @@ function icon_warning($title = '')
22 22
   return "<img src=\"{$prefix}images/warning.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
23 23
 }
24 24
 
25
-
26
-
27
-function icon_enabled_php53($title = '')
28
-{
29
-  global $prefix;
30
-  return "<img src=\"{$prefix}images/ok-php53.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
31
-}
32
-
33
-function icon_enabled_php54($title = '')
34
-{
35
-  global $prefix;
36
-  return "<img src=\"{$prefix}images/ok-php54.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
37
-}
38
-
39
-function icon_enabled_php55($title = '')
25
+function icon_enabled_phpxx($title = '', $major, $minor)
40 26
 {
41 27
   global $prefix;
42
-  return "<img src=\"{$prefix}images/ok-php55.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
28
+  return "<img src=\"{$prefix}images/ok-php$major$minor.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
43 29
 }
44 30
 
45 31
 function icon_enabled_warning($title = '')
... ...
@@ -133,20 +133,17 @@ if (count($vhosts) > 0)
133 133
         case NULL:
134 134
           $php = icon_disabled('PHP ausgeschaltet');
135 135
           break;
136
-        case 'mod_php':
137
-          $php = icon_warning('[mod_php] Veraltet, bitte umstellen!').' Apache-Modul';
138
-          break;
139
-        case 'fastcgi':
140
-          $php = icon_enabled_warning('PHP in veralteter Version aktiviert');
141
-          break;
142 136
         case 'php53':
143
-          $php = icon_enabled_php53('PHP in Version 5.3 eingeschaltet');
137
+          $php = icon_enabled_warning('PHP in veralteter Version aktiviert');
144 138
           break;
145 139
         case 'php54':
146
-          $php = icon_enabled_php54('PHP in Version 5.4 eingeschaltet');
140
+          $php = icon_enabled_warning('PHP in veralteter Version aktiviert');
147 141
           break;
148 142
         case 'php55':
149
-          $php = icon_enabled_php55('PHP in Version 5.5 eingeschaltet');
143
+          $php = icon_enabled_phpxx('PHP in Version 5.5 eingeschaltet', 5, 5);
144
+          break;
145
+        case 'php56':
146
+          $php = icon_enabled_phpxx('PHP in Version 5.6 eingeschaltet', 5, 6);
150 147
           break;
151 148
       }
152 149
       output("<td>{$php}</td>");
153 150