From: Reini U. <ru...@x-...> - 2004-12-20 17:53:25
|
SourceForge.net schrieb: > Read and respond to this message at: > https://sourceforge.net/forum/message.php?msg_id=2904743 > By: mroswell > > Hi, > I appreciate very much your reply! However, I must have a prior version of PHPWiki. > That code doesn't exist in mine. Closest I have in the lib directory is Request.php, > in code I copy below. > > ah, maybe your suggesting that I ADD that code. > - Where would I add it? anywhere. > - How do I add multiple IP addresses? multiple checks. > Sincerely, > Margie > > function setStatus($status) { > if (preg_match('|^HTTP/.*?\s(\d+)|i', $status, $m)) { > header($status); > $status = $m[1]; > } > else { > $status = (integer) $status; > $reasons = array('200' => 'OK', > '302' => 'Found', > '400' => 'Bad Request', > '401' => 'Unauthorized', > '403' => 'Forbidden', > '404' => 'Not Found'); > header(sprintf("HTTP/1.0 %d %s", $status, $reason[$status])); > } I'll have to add something here later for non-apache servers. > > if (isset($this->_log_entry)) > $this->_log_entry->setStatus($status); > } -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |