array( 'timeout' => 5 ) )); $status = trim((string) file_get_contents('http://ws.colissimo.fr/supervision-pudo/supervision.jsp', 0, $context)); if(empty($status) || $status == '[KO]') { Db::getInstance()->Execute(' UPDATE `'._DB_PREFIX_.'carrier` SET `active` = 1 WHERE `name` = "'.pSQL(Configuration::get('SOCOLISSIMO_FALLBACK')).'" AND `deleted` = 0 '); } else { Db::getInstance()->Execute(' UPDATE `'._DB_PREFIX_.'carrier` SET `active` = 0 WHERE `name` = "'.pSQL(Configuration::get('SOCOLISSIMO_FALLBACK')).'" AND `deleted` = 0 '); }