Browse code

PHP 7.0 support

Hanno Böck authored on 27/11/2015 12:35:36
Showing 4 changed files
1 1
new file mode 100644
2 2
Binary files /dev/null and b/images/ok-php70.png differ
... ...
@@ -121,7 +121,7 @@ $phpoptions = "<h5>PHP</h5>
121 121
  */
122 122
 //if ($vhost['php'] == 'php54')
123 123
 //{
124
-  $options = array("none" => 'ausgeschaltet', "php55" => "PHP 5.5", "php56" => "PHP 5.6");
124
+  $options = array("none" => 'ausgeschaltet', "php55" => "PHP 5.5", "php56" => "PHP 5.6", "php70" => "PHP 7.0 (beta)");
125 125
   $phpoptions = "
126 126
   <h5>PHP</h5>
127 127
   <div style=\"margin-left: 2em;\">
... ...
@@ -96,6 +96,9 @@ if ($_GET['action'] == 'edit')
96 96
       case 'php56':
97 97
         $php = 'php56';
98 98
         break;
99
+      case 'php70':
100
+        $php = 'php70';
101
+        break;
99 102
       /* Wenn etwas anderes kommt, ist das "kein PHP". So einfach ist das. */
100 103
     }
101 104
   }
... ...
@@ -141,6 +141,9 @@ if (count($vhosts) > 0)
141 141
         case 'php56':
142 142
           $php = icon_enabled_phpxx('PHP in Version 5.6 eingeschaltet', 5, 6);
143 143
           break;
144
+        case 'php70':
145
+          $php = icon_enabled_phpxx('PHP in Version 7.0 eingeschaltet', 7, 0);
146
+          break;
144 147
       }
145 148
       output("<td>{$php}</td>");
146 149
       if ($vhost['docroot_is_default'] == 1)