21
LazyBadger
Re: [myREFERER] new module : Check whos refering to you !

Quote:

@Lazy: sorry, I don't get you well about:
Quote:
for preventing "referral-spam"

Could you please let me know what it is about?

No problem... When I had in SiteStats module referrer page visible for anonymous user, I got heavy DoS-attack on site (as side effect of promouting spamvertized by fake referrer-field sites) - 100-120 hits per minute from one (I was happy to be target only one attack)... Your (opened to everybody) myReferer/referer.php can also give such effect, thus - I close it from anonymous
Quote:

An about your problem (not sure I get you well):

I had to write it more clean: I have only one problem
- Blank page on myReferer/query.php (and PHP-debug show nothing useful... at least for me... and related to your module - only some notice and warnings about other modules)
Notice [PHP]: Undefined offset1 in file modules/statistics/include/hitcounter.php line 55
Notice 
[PHP]: Constant _MI_NEWS_DATEFORMAT_DESC already defined in file modules/news/language/russian/modinfo.php line 127
Notice 
[PHP]: Constant _MI_NAME already defined in file modules/profiles/language/english/modinfo.php line 27
Notice 
[PHP]: Constant _MI_DESC already defined in file modules/profiles/language/english/modinfo.php line 28
Notice 
[PHP]: Undefined indexcanusersubmit in file modules/profiles/xoops_version.php line 42
Notice 
[PHP]: Undefined indexsubmitarts in file modules/PDdownloads/xoops_version.php line 78
Warning 
[PHP]: array_intersect(): Argument #1 is not an array in file modules/PDdownloads/xoops_version.php line 78


All other separate page shown correctly...

And small notice about sort-order on blocks. Both block have second order-by identical (last-visit), but one block uses ASC-order (Last Referers - oldest on top), second uses DESC(Search Engines - newest on top).
It seems strange and somehow alogical for me... ORDER BY must be unified, I suppose?
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

22
JamesSAEP
Re: [myREFERER] new module : Check whos refering to you !
  • 2005/8/18 15:51

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


I'm still getting this error on my sites when in PHP Debug mode:

Quote:
Notice [PHP]: Undefined variable: HTTP_SERVER_VARS in file modules/myReferer/record.php line 17


What am I missing?

23
solo71
Re: [myREFERER] new module : Check whos refering to you !
  • 2005/8/22 13:59

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


Nothing. You are probably using the module on a local website. This function works only on a production site.


24
JamesSAEP
Re: [myREFERER] new module : Check whos refering to you !
  • 2005/8/22 14:29

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Thanks Solo71, but yes this is on a hosted site. IXwebhosting is the company, http://www.ultimate-sacrifice.com is the site.

25
solo71
Re: [myREFERER] new module : Check whos refering to you !
  • 2005/8/23 12:07

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


I have read somewhere that this function was threatened to be canceled from some servers... Maybe is it already the case on your server?


26
Dave_L
Re: [myREFERER] new module : Check whos refering to you !
  • 2005/8/23 12:26

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Quote:

Jamescne wrote:
I'm still getting this error on my sites when in PHP Debug mode:

Quote:
Notice [PHP]: Undefined variable: HTTP_SERVER_VARS in file modules/myReferer/record.php line 17


What am I missing?


What version of PHP are you running?

$HTTP_SERVER_VARS is deprecated, and should be replaced by $_SERVER in newer versions of PHP.

You may be able to get it to work by enabling register_long_arrays in an .htaccess file:

php_flag register_long_arrays on

27
zoullou
Re: [myREFERER] new module : Check whos refering to you !
  • 2005/8/23 12:28

  • zoullou

  • Quite a regular

  • Posts: 250

  • Since: 2004/3/2 0


$HTTP_*_VARS array are deprecated :

Quote:
Since PHP 4.1.0, the preferred method for retrieving external variables is with the superglobals mentioned below. Before this time, people relied on either register_globals or the long predefined PHP arrays ($HTTP_*_VARS). As of PHP 5.0.0, the long PHP predefined variable arrays may be disabled with the register_long_arrays directive.

You must use $_SERVER instead of $HTTP_SERVER_VARS, $_POST instead of $HTTP_POST_VARS, $_GET instead of $HTTP_GET_VARS...

Cheers

28
solo71
Re: [myREFERER] new module : Check whos refering to you !
  • 2005/8/23 16:17

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


Indeed. This has been changed in the latest, stable version. Please download and reinstall the module.


29
JamesSAEP
Re: [myREFERER] new module : Check whos refering to you !
  • 2005/8/23 17:22

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Quote:

solo71 wrote:
Please download and reinstall the module.


Can you post a link to the new download? Thanks.

30
solo71
Re: [myREFERER] new module : Check whos refering to you !
  • 2005/8/24 6:34

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29



Login

Who's Online

499 user(s) are online (378 user(s) are browsing Support Forums)


Members: 0


Guests: 499


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits