[geeklog-cvs] geeklog-1.3/system/classes upload.class.php,1.33,1.34
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Mon Aug 16 09:14:02 EDT 2004
- Previous message (by thread): [geeklog-cvs] geeklog-1.3/public_html article.php,1.50,1.51 index.php,1.62,1.63 lib-common.php,1.360,1.361 submit.php,1.72,1.73
- Next message (by thread): [geeklog-cvs] geeklog-1.3/public_html/docs history,1.231,1.232
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/cvs/geeklog-1.3/system/classes
In directory www:/tmp/cvs-serv22600/system/classes
Modified Files:
upload.class.php
Log Message:
Replaced $GLOBALS['REMOTE_ADDR'] with $HTTP_SERVER_VARS['REMOTE_ADDR']
Index: upload.class.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/classes/upload.class.php,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** upload.class.php 13 Aug 2004 08:52:06 -0000 1.33
--- upload.class.php 16 Aug 2004 13:13:58 -0000 1.34
***************
*** 1185,1194 ****
function uploadFiles()
{
// Before we do anything, let's see if we are limiting file uploads by
// IP address and, if so, verify the poster is originating from one of
// those places
if ($this->_limitByIP) {
! if (!in_array($GLOBALS['REMOTE_ADDR'], $this->_allowedIPS)) {
! $this->_addError('The IP, ' . $GLOBALS['REMOTE_ADDR'] . ' is not in the list of '
. 'accepted IP addresses. Refusing to allow file upload(s)');
return false;
--- 1185,1196 ----
function uploadFiles()
{
+ global HTTP_SERVER_VARS;
+
// Before we do anything, let's see if we are limiting file uploads by
// IP address and, if so, verify the poster is originating from one of
// those places
if ($this->_limitByIP) {
! if (!in_array($HTTP_SERVER_VARS['REMOTE_ADDR'], $this->_allowedIPS)) {
! $this->_addError('The IP, ' . $HTTP_SERVER_VARS['REMOTE_ADDR'] . ' is not in the list of '
. 'accepted IP addresses. Refusing to allow file upload(s)');
return false;
- Previous message (by thread): [geeklog-cvs] geeklog-1.3/public_html article.php,1.50,1.51 index.php,1.62,1.63 lib-common.php,1.360,1.361 submit.php,1.72,1.73
- Next message (by thread): [geeklog-cvs] geeklog-1.3/public_html/docs history,1.231,1.232
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the geeklog-cvs
mailing list