PluginProbe
WebTotem Security / 1.0
WebTotem Security v1.0
3.0.2 3.0.1 3.0.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 2.0 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.1 2.2.2 2.2.3 All 110 releases
← All changes | services.php +6 -6 1.3.31.0 View file →
@@ -1,5 +1,5 @@
1 -<?php defined('ABSPATH') or die("Protected By Webtotem Wordpress Security!");
1 +<?php defined('ABSPATH') or die("Protected By WT!");
2 2
3 3 function wtsec_cmd($wp_filesystem,$cmd, $service, $_service, $uid, $status,$domain = ''){
4 4
5 5 switch ($cmd) {
@@ -38,9 +38,9 @@
38 38 WTSEC_LIBRARY_WT::changeStatus($status['config_id'],$uid);
39 39 wtsec_app()->set($_service.'_status',"start");
40 40 break;
41 41 case $_service . "_stop":
42 -// WTSEC_LIBRARY_WT::changeStatus($status['config_id'],$uid);
42 + WTSEC_LIBRARY_WT::changeStatus($status['config_id'],$uid);
43 43 wtsec_app()->set($_service.'_status',"stop");
44 44 break;
45 45 case $_service . "_connect":
46 46 $file = wtsec_getInstalledFile($_service);
@@ -170,21 +170,21 @@
170 170 $url = $domain.'/'.$installedFile['file'];
171 171 }
172 172 $connected = wtsec_servicePing($service,$url);
173 173 if (!$connected) {
174 - $disable_uninstall = false;
174 + $disable_uninstall = true;
175 175 $cmd = $_service . '_connect';
176 176 $buttons[] = ['place' => 'first','button' => wtsec_button(WTSEC_LIBRARY_Localization::lmsg('connect'),$first_class."ww-button--success"),'cmd' => $cmd];
177 177 } else {
178 178 if ($runned) {
179 179 $cmd = $_service . '_stop';
180 -// $buttons[] = ['place' => 'second','button' => wtsec_button(WTSEC_LIBRARY_Localization::lmsg('stop'),"ww-button--primary"),'cmd' => $cmd];
180 + $buttons[] = ['place' => 'second','button' => wtsec_button(WTSEC_LIBRARY_Localization::lmsg('stop'),"ww-button--primary"),'cmd' => $cmd];
181 181 } else {
182 182 $cmd = $_service . '_start';
183 -// $buttons[] = ['place' => 'second','button' => wtsec_button(WTSEC_LIBRARY_Localization::lmsg('run'),"ww-button--primary"),'cmd' => $cmd];
183 + $buttons[] = ['place' => 'second','button' => wtsec_button(WTSEC_LIBRARY_Localization::lmsg('run'),"ww-button--primary"),'cmd' => $cmd];
184 184 }
185 185 }
186 - if(!$disable_uninstall){
186 + if(!$disable_uninstall && !$runned){
187 187 $cmd = $_service . '_uninstall';
188 188 $buttons[] = ['place' => 'first','button' => wtsec_button(WTSEC_LIBRARY_Localization::lmsg('uninstall'),$first_class."ww-button--attention"),'cmd' => $cmd];
189 189 }
190 190 }