| | |
| | | $wildcard_available = true; |
| | | if($vhostdomain_type != 'domain') $wildcard_available = false; |
| | | $ssl_available = true; |
| | | $backup_available = true; |
| | | $backup_available = ($vhostdomain_type == 'domain'); |
| | | if(!$app->auth->is_admin()) { |
| | | $client_group_id = $_SESSION["s"]["user"]["default_group"]; |
| | | $client = $app->db->queryOneRecord("SELECT limit_wildcard, limit_ssl FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); |
| | | $client = $app->db->queryOneRecord("SELECT limit_wildcard, limit_ssl, limit_backup FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); |
| | | |
| | | if($client['limit_wildcard'] != 'y') $wildcard_available = false; |
| | | if($client['limit_ssl'] != 'y') $ssl_available = false; |
| | |
| | | 'formtype' => 'SELECT', |
| | | 'default' => 'fast-cgi', |
| | | 'valuelimit' => 'client:web_php_options', |
| | | 'value' => array('no' => 'disabled_txt', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM'), |
| | | 'value' => array('no' => 'disabled_txt', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM', 'hhvm' => 'HHVM'), |
| | | 'searchable' => 2 |
| | | ), |
| | | 'fastcgi_php_version' => array ( |
| | |
| | | ); |
| | | } |
| | | |
| | | if($_SESSION["s"]["user"]["typ"] == 'admin') { |
| | | if($_SESSION["s"]["user"]["typ"] == 'admin' |
| | | || ($web_config['reseller_can_use_options'] == 'y' && $app->auth->has_clients($_SESSION['s']['user']['userid']))) { |
| | | |
| | | $form["tabs"]['advanced'] = array ( |
| | | 'title' => "Options", |