Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1ed8dd31 authored by NINASSI Benjamin's avatar NINASSI Benjamin
Browse files

.

parent 99f3c372
No related branches found
No related tags found
No related merge requests found
...@@ -100,17 +100,17 @@ class VerifyStructuresLogoCommand extends ContainerAwareCommand ...@@ -100,17 +100,17 @@ class VerifyStructuresLogoCommand extends ContainerAwareCommand
} }
private function is_url_exist($url){ private function is_url_exist($url){
$ch = curl_init($url); $ch = \curl_init($url);
curl_setopt($ch, CURLOPT_NOBODY, true); \curl_setopt($ch, CURLOPT_NOBODY, true);
curl_exec($ch); \curl_exec($ch);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE); $code = \curl_getinfo($ch, CURLINFO_HTTP_CODE);
if($code == 200){ if($code == 200){
$status = true; $status = true;
}else{ }else{
$status = false; $status = false;
} }
curl_close($ch); \curl_close($ch);
return $status; return $status;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment