modules/ updates. module.php

Summary
Check to see whether or not the cached copy of the provided feed is okay.
Retrieve URL via raw sockets

Functions

_cache_feed

function _cache_feed ($feed)

Parameters

$feedFeed name

Returns

Boolean, whether or not the user needs to be notified of a new feed.

_check_cached_copy

function _check_cached_copy ($feed)

Check to see whether or not the cached copy of the provided feed is okay.

Parameters

$feedName of the feed

Returns

Boolean, true if there is a cached copy, false if there is no cached copy or it is stale.

_get

function _get ($host,
$url,
$username,
$password)

Retrieve URL via raw sockets

Parameters

$hostHostname
$urlRelative URL to fetch (/something/something)
$usernameUsername to fetch with
$passwordPassword to fetch with

Returns

Text of the resultant page, or false if it fails.

function _cache_feed ($feed)
function _check_cached_copy ($feed)
Check to see whether or not the cached copy of the provided feed is okay.
function _get ($host,
$url,
$username,
$password)
Retrieve URL via raw sockets