DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • December 05, 2016, 02:27:13 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Referers Cleanup  (Read 2194 times)
0 Members and 1 Guest are viewing this topic.
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« on: December 26, 2004, 12:41:38 AM »

Is it possible to have a function in referers much like what I have posted below just for a cleanup whenever wanted?

I had considered asking for a hook, but the more I think...I can't think of any other reason to be hooking into referers.  So I wouldn't think it would make much sense to add a hook for just one function.

if ($_GET['op']=="delref"){
        $sql="DELETE FROM referers WHERE site='$settings[serverurl]'"; db_query($sql);
        $sql="DELETE FROM referers where count=1"; db_query($sql);
}

If not, I understand.

Thanks,
Arune
« Last Edit: December 26, 2004, 12:42:24 AM by Arune » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
58 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search