File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 119119exec (HESTIA_CMD ."v-list-sys-info json " , $ output , $ return_var );
120120$ sys = json_decode (implode ('' , $ output ), true );
121121unset($ output );
122+
123+ exec (HESTIA_CMD ."v-list-sys-php json " , $ output , $ return_var );
124+ $ php = json_decode (implode ('' , $ output ), true );
125+ unset($ output );
126+ $ phpfpm = array ();
127+ foreach ($ php as $ version ){
128+ $ phpfpm [] = 'php ' .$ version .'-fpm ' ;
129+ }
130+
122131exec (HESTIA_CMD ."v-list-sys-services json " , $ output , $ return_var );
123132$ data = json_decode (implode ('' , $ output ), true );
124133ksort ($ data );
Original file line number Diff line number Diff line change 118118 $spnd_icon = 'fa-play';
119119 $state_icon = 'fa-minus-circle status-icon red';
120120 }
121-
122- if (($key == "php5.6-fpm") || ($key == "php7.0-fpm") || ($key == "php7.1-fpm") || ($key == "php7.2-fpm") || ($key == "php7.3-fpm") || ($key == "php7.4-fpm") || ($key == "php8.0-fpm")) {
121+ if(in_array($key, $phpfpm)){
123122 $edit_url="php";
124123 } else {
125124 $edit_url=$key;
You can’t perform that action at this time.
0 commit comments