$this->sendForward($unauthorizedPage, 'HTTP/1.1 403 Forbidden'); // Changed by TimGS 22/6/2012. Originally was a 401 but this HTTP code appears intended for situations
// where the client can authenticate via HTTP authentication and send a www-authenticate header.
* Get the method by which the current document/resource was requested
*
* @return string 'alias' (friendly url alias), 'rss' (friendly url alias with rss/ at the start of $_REQUEST['q']) or 'id' (may or may not be an RSS request).
if ($cacheRefreshTime <= $timeNow && $cacheRefreshTime != 0) {
// now, check for documents that need publishing
$sql = "UPDATE ".$this->getFullTableName("site_content")." SET published=1, publishedon=".time()." WHERE ".$this->getFullTableName("site_content").".pub_date <= $timeNow AND ".$this->getFullTableName("site_content").".pub_date!=0 AND published=0";
* Returns the timestamp in the date format defined in $this->config['date_format']
*
* @param int $timestamp Default: 0
* @param string $mode Default: Empty string (adds the time as below). Can also be 'dateOnly' for no time or 'formatOnly' to get the date_format string.
$plugin_file = $this->config['site_url'].$this->config['jquery_plugin_dir'].$plugin_file; // Need [(site_url)] because <base> tags are not present in the backend.
* @param array $extParams Parameters available to plugins. Each array key will be the PHP variable name, and the array value will be the variable value.