| @@ -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 | } |