PluginProbe
WebTotem Security / 2.1
WebTotem Security v2.1
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 +2 -7 2.1.32.1 View file →
@@ -120,9 +120,9 @@
120 120
121 121 function wtsec_servicePing($service,$domain = '')
122 122 {
123 123 if($domain == NULL) return false;
124 - if(stripos($domain,"http") === false){
124 + if(mb_stripos($domain,"http") === false){
125 125 $domain = "http://".$domain;
126 126 }
127 127 $args = [
128 128 'timeout' => '10',
@@ -206,15 +206,10 @@
206 206
207 207 function wtsec_checkInstalledFile($service)
208 208 {
209 209 $file = wtsec_getInstalledFile($service);
210 - if($service == "waf"){
211 - $root = WTSEC_INSTALLATION_DIR;
212 - }else{
213 - $root = ABSPATH;
214 - }
215 - return ['status' => ((bool) $file) && is_file($root.$file),'file' => $file];
210 + return ['status' => (bool) $file,'file' => $file];
216 211 }
217 212
218 213 function wtsec_getInstalledFile($service){
219 214 return wtsec_app()->get($service."_installed_file");
220 215 }