[Nextcms-commits] CVS: nextcms class.Log.php,1.1.1.1,1.2 processor.conf.php-dist,1.2,1.3
Status: Alpha
Brought to you by:
andrejb
|
From: Andrej B. <an...@us...> - 2002-03-25 10:21:59
|
Update of /cvsroot/nextcms/nextcms
In directory usw-pr-cvs1:/tmp/cvs-serv27877
Modified Files:
class.Log.php processor.conf.php-dist
Log Message:
added new option for processor.conf RESOLVE_HOST_NAMES
Index: class.Log.php
===================================================================
RCS file: /cvsroot/nextcms/nextcms/class.Log.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** class.Log.php 19 Mar 2002 17:51:04 -0000 1.1.1.1
--- class.Log.php 25 Mar 2002 10:21:56 -0000 1.2
***************
*** 18,23 ****
$referer = getenv('HTTP_REFERER');
if (empty($referer)) $referer = '-';
! fputs($f, getenv('REMOTE_ADDR') . " - " . $remote_user . ' ' . date('[d/M/Y:H:i:s O]', time()) . ' "' . getenv('REQUEST_METHOD') . ' ' . getenv('REQUEST_URI') . ' ' . getenv('SERVER_PROTOCOL') . '" '. getenv('REDIRECT_STATUS') . ' ' . '-' . ' "' . $referer . '" "' . getenv('HTTP_USER_AGENT') . '" ' . "\n");
fclose($f);
--- 18,28 ----
$referer = getenv('HTTP_REFERER');
if (empty($referer)) $referer = '-';
+
+ $remote_addr = getenv('REMOTE_ADDR');
+ if (isset($GLOBALS['RESOLVE_HOST_NAMES']))
+ if ($GLOBALS['RESOLVE_HOST_NAMES'])
+ gethostbyaddr($remote_addr);
! fputs($f, $remote_addr . " - " . $remote_user . ' ' . date('[d/M/Y:H:i:s O]', time()) . ' "' . getenv('REQUEST_METHOD') . ' ' . getenv('REQUEST_URI') . ' ' . getenv('SERVER_PROTOCOL') . '" '. getenv('REDIRECT_STATUS') . ' ' . '-' . ' "' . $referer . '" "' . getenv('HTTP_USER_AGENT') . '" ' . "\n");
fclose($f);
Index: processor.conf.php-dist
===================================================================
RCS file: /cvsroot/nextcms/nextcms/processor.conf.php-dist,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** processor.conf.php-dist 19 Mar 2002 19:18:37 -0000 1.2
--- processor.conf.php-dist 25 Mar 2002 10:21:56 -0000 1.3
***************
*** 15,23 ****
// each extension should be registered here
$EXTENSIONS = Array('ExtHMenu' => "$EXTENSION_DIR/hmenu.php",
! 'ExtVMenu' => "$EXTENSION_DIR/vmenu.php");
// check if the requested file is a contentfile and should
// be handled by the cms
$CHECK_IF_CONTENTFILE = true;
// the document_root can be detected automaticly
--- 15,28 ----
// each extension should be registered here
$EXTENSIONS = Array('ExtHMenu' => "$EXTENSION_DIR/hmenu.php",
! 'ExtVMenu' => "$EXTENSION_DIR/vmenu.php",
! 'sitemap' => "$EXTENSION_DIR/sitemap.php",
! 'index' => "$EXTENSION_DIR/index.php");
// check if the requested file is a contentfile and should
// be handled by the cms
$CHECK_IF_CONTENTFILE = true;
+
+ // should host names be resolved
+ $RESOLVE_HOST_NAMES = true;
// the document_root can be detected automaticly
|