<?php/*This file belongs to the Webinterface of schokokeks.org HostingWritten by schokokeks.org Hosting, namelyBernd Wurst <bernd@schokokeks.org>Hanno Böck <hanno@schokokeks.org>This code is published under a 0BSD license.Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.*/require_once("inc/base.php");require_once("inc/error.php");require_once("inc/security.php");require_once('class/domain.php');require_once("certs.php");function valid_php_versions(){/* In der konfiguration ist die Variable "php_versions" eine kommaseparierte Liste der unterstützten Versionen.Dabei gelten folgende Suffixe (nicht kombinierbar!):*: Standardversion für neue Konfigurationen/: Deprecated+: Beta-Version*/$tags = explode(',', config('php_versions'));$ret = [];foreach ($tags as $t) {$key = $t;$ver = ['major' => null, 'minor' => null, 'status' => 'regular', 'default' => false];if (substr($t, -1, 1) == '+') {$ver['status'] = 'beta';$key = substr($t, 0, -1);} elseif (substr($t, -1, 1) == '/') {$ver['status'] = 'deprecated';$key = substr($t, 0, -1);} elseif (substr($t, -1, 1) == '*') {$ver['default'] = true;$key = substr($t, 0, -1);}/* Wir nehmen an, dass unsere Tags immer an zweitletzter Stelle die Major-Version undan letzter Stelle die Minor-Version enthalten */$ver['major'] = substr($key, -2, 1);$ver['minor'] = substr($key, -1, 1);$ret[$key] = $ver;