From c56ca0d827134a1062d5a7df13fb848fd2f39335 Mon Sep 17 00:00:00 2001 From: ftimme Date: Wed, 25 Apr 2012 14:34:17 +0000 Subject: [PATCH] - Added PHP-FPM to client and reseller settings. --- interface/web/client/form/client.tform.php | 2 +- interface/web/client/form/client_template.tform.php | 2 +- interface/web/client/form/reseller.tform.php | 2 +- interface/web/client/tools.inc.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/web/client/form/client.tform.php b/interface/web/client/form/client.tform.php index 53d5f8959..85b867104 100644 --- a/interface/web/client/form/client.tform.php +++ b/interface/web/client/form/client.tform.php @@ -665,7 +665,7 @@ $form["tabs"]['limits'] = array ( 'default' => '', 'separator' => ',', 'valuelimit' => 'client:web_php_options', - 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP') + 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM') ), 'limit_web_aliasdomain' => array ( 'datatype' => 'INTEGER', diff --git a/interface/web/client/form/client_template.tform.php b/interface/web/client/form/client_template.tform.php index df15e690d..0b5c1be95 100644 --- a/interface/web/client/form/client_template.tform.php +++ b/interface/web/client/form/client_template.tform.php @@ -331,7 +331,7 @@ $form["tabs"]['limits'] = array ( 'default' => '', 'separator' => ',', 'valuelimit' => 'client:web_php_options', - 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP') + 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM') ), 'limit_web_aliasdomain' => array ( 'datatype' => 'INTEGER', diff --git a/interface/web/client/form/reseller.tform.php b/interface/web/client/form/reseller.tform.php index 77e2f54f7..c60d136d9 100644 --- a/interface/web/client/form/reseller.tform.php +++ b/interface/web/client/form/reseller.tform.php @@ -598,7 +598,7 @@ $form["tabs"]['limits'] = array ( ), 'default' => '', 'separator' => ',', - 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP') + 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM') ), 'limit_web_aliasdomain' => array ( 'datatype' => 'INTEGER', diff --git a/interface/web/client/tools.inc.php b/interface/web/client/tools.inc.php index abc85ae9b..ac9bde1e4 100644 --- a/interface/web/client/tools.inc.php +++ b/interface/web/client/tools.inc.php @@ -128,7 +128,7 @@ function applyClientTemplates($clientId){ $update .= '`' . $k . "`='" . $v . "'"; } } - $sql = 'UPDATE client SET ' . $update . " WHERE client_id = " . intval($clientId); + if($update != '') $sql = 'UPDATE client SET ' . $update . " WHERE client_id = " . intval($clientId); $app->db->query($sql); } ?> -- GitLab