Get a web page. Use proxy if configured
static public getURLContent ( $url, &$msgerr = NULL, $rec ) : content | ||
$url | string to retrieve | |
$msgerr | string set if problem encountered (default NULL) | |
$rec | integer internal use only Must be 0 (default 0) | |
return | content | of the page (or empty) |
} fclose($fp); echo "\n"; } } else { echo "No IMAP server\n"; } // Check CAS if (!empty($CFG_GLPI["cas_host"])) { echo "CAS_SERVER"; $url = $CFG_GLPI["cas_host"]; if (!empty($CFG_GLPI["cas_port"])) { $url .= ':' . intval($CFG_GLPI["cas_port"]); } $url .= $CFG_GLPI["cas_uri"]; $data = Toolbox::getURLContent($url); if (!empty($data)) { echo "_OK"; } else { echo "_PROBLEM"; $ok = false; } echo "\n"; } else { echo "No CAS server\n"; } /// Check mailcollectors $mailcollectors = getAllDatasFromTable('glpi_mailcollectors', '`is_active`=1'); if (count($mailcollectors)) { echo "Check mail collectors:"; $mailcol = new MailCollector();