You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 56 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - httpreffers in 6.5 [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Rugeri
Nuke Soldier
Nuke Soldier


Joined: Jan 16, 2003
Posts: 10

Location: Netherlands

PostPosted: Fri Jan 17, 2003 4:26 am Reply with quoteBack to top

Yo friend, I have a new little problem for you to work on Smile as I am not an advanced coder....maybe it is just my site but you never know...

When setting httpreffers in the preferences to 100 max, it won't stop at 100, guess it will go to 1000, checked the database and both nuke.sql's for version 6.0 and 6.5 and there isn't any difference, so why isn't this option not stopping at 100 reffers and start all over again with a new listing ??

_________________
Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
Find all posts by RugeriView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Fri Jan 17, 2003 8:10 am Reply with quoteBack to top

Yes I noticed this bug.. I"ll find time to investigate now.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Rugeri
Nuke Soldier
Nuke Soldier


Joined: Jan 16, 2003
Posts: 10

Location: Netherlands

PostPosted: Fri Jan 17, 2003 9:12 am Reply with quoteBack to top

Wonderfull, I couldn't find it yet, also working on it.... Wink

_________________
Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
Find all posts by RugeriView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Fri Jan 17, 2003 12:17 pm Reply with quoteBack to top

if there's a fix, we'll find it. This is the home of MIBF (Mission Impossible Bug Fixers) after all Wink

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Sat Jan 18, 2003 5:34 pm Reply with quoteBack to top

Code:

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources

Last edited by chatserv on Mon Sep 13, 2004 1:34 pm; edited 1 time in total
Find all posts by chatservView user's profileSend private messageVisit poster's website
Rugeri
Nuke Soldier
Nuke Soldier


Joined: Jan 16, 2003
Posts: 10

Location: Netherlands

PostPosted: Sun Jan 19, 2003 4:09 am Reply with quoteBack to top

Okay will do that, I have add the new code and deleted all reffers, so now we have to wait until 100 is reached again, anyway thanks for your time Exclamation Exclamation

Many will appriciate it, especially Mr. FB if it works Wink

I was searching in the wrong direction.... Wink

_________________
Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
Find all posts by RugeriView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Jan 19, 2003 10:12 am Reply with quoteBack to top

I haven't looked yet, but what I can type is that this site, nuke 6.5 b5 does seem to be working on the # of referers I set it to.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Rugeri
Nuke Soldier
Nuke Soldier


Joined: Jan 16, 2003
Posts: 10

Location: Netherlands

PostPosted: Sun Jan 19, 2003 10:57 am Reply with quoteBack to top

Zhen-Xjell wrote:
I haven't looked yet, but what I can type is that this site, nuke 6.5 b5 does seem to be working on the # of referers I set it to.
Mmmm....I will tell you tomorrow the results of my little investigation on my site, can't say anything yet as I have about 50 reffers at this moment....so.... Wink

_________________
Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
Find all posts by RugeriView user's profileSend private messageVisit poster's website
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Sun Jan 19, 2003 11:10 am Reply with quoteBack to top

Like i mentioned in my previous post this still needs to be confirmed as working, what i did to test it was make a backup of one of my site's referers table, delete it then re-create it with 100 referers, which i made the max setting in admin for the test, i then went to the site using links from at least 5 other sites and no referer was added to the table, i then set the max setting to 1000, went back to using the remote links and sure enough this time they were added, just hope it solves the problem for you.

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
Rugeri
Nuke Soldier
Nuke Soldier


Joined: Jan 16, 2003
Posts: 10

Location: Netherlands

PostPosted: Mon Jan 20, 2003 1:17 am Reply with quoteBack to top

Well it worked half, it stops at 100 reffers now but didn't deleted this 100 to start all over again....funny Wink I am back now to the original situation Exclamation I like to continue testing this option if you guys have any other possibilities Wink

PS. Programming articles for the next day in 6.5 results in that it is written by a Anonymous user and no date and time are published by the article, this is new found bug by me, and the poster was an admin and it is post through the admin function add a story.....any ideas ??

Guess I am a good beta tester Wink Cool

_________________
Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
Find all posts by RugeriView user's profileSend private messageVisit poster's website
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Mon Jan 20, 2003 7:28 am Reply with quoteBack to top

Ok, let's give this one more try, hope you have your referers already at their max, that way you'll find out right away if this is what you want, what it'll do is keep adding referers till it reaches your max limit, once reached, it will wipe them all out and restart, kinda drastic but it's what i could come up with.
Code:

if ($httpref==1) {
    $referer = getenv("HTTP_REFERER");
    if ($referer=="" OR eregi("^unknown", $referer) OR substr("$referer",0,strlen($nukeurl))==$nukeurl OR eregi("^bookmark",$referer)) {
    } else {
    $result = sql_query("select * from ".$prefix."_referer", $dbi);
    $numrows = sql_num_rows($result, $dbi);
    if($numrows<$httprefmax) {
        sql_query("insert into ".$prefix."_referer values (NULL, '$referer')", $dbi);
    } else {
    if($numrows==$httprefmax) {
        sql_query("delete from ".$prefix."_referer", $dbi);
        sql_query("insert into ".$prefix."_referer values (NULL, '$referer')", $dbi);
     }
    }
  }
}

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
Rugeri
Nuke Soldier
Nuke Soldier


Joined: Jan 16, 2003
Posts: 10

Location: Netherlands

PostPosted: Mon Jan 20, 2003 2:03 pm Reply with quoteBack to top

Okay didn't test your new fix, however I have done it myself this time,
the following is the code I am using right now and after 100 refers as
in the config it will be deleted and start all over again with 1.

find: between line 23 - 38 (index.php)

if ($httpref==1) {
$referer = getenv("HTTP_REFERER");
if ($referer=="" OR eregi("^unknown", $referer) OR substr("$referer",0,strlen($nukeurl))==$nukeurl OR eregi("^bookmark",$referer)) {
} else {
$sql = "INSERT INTO ".$prefix."_referer VALUES (NULL, '$referer')";
$result = $db->sql_query($sql);
}
$sql = "SELECT * FROM ".$prefix."_referer";
$result = $db->sql_query($sql);
$numrows = $db->sql_numrows($result);
if($numrows>=$httprefmax) {
$sql = "DELETE FROM from ".$prefix."_referer";
$result = $db->sql_query($sql);

With:
if ($httpref==1) {
$referer = getenv("HTTP_REFERER");
if ($referer=="" OR eregi("^unknown", $referer) OR substr("$referer",0,strlen($nukeurl))==$nukeurl OR eregi("^bookmark",$referer)) {
} else {
sql_query("insert into ".$prefix."_referer values (NULL, '$referer')", $dbi);
}
$result = sql_query("select * from ".$prefix."_referer", $dbi);
$numrows = sql_num_rows($result, $dbi);
if($numrows>=$httprefmax) {
sql_query("delete from ".$prefix."_referer", $dbi);
}
}

Above will work 100%...good luck with it Wink

_________________
Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
Find all posts by RugeriView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Mon Jan 20, 2003 2:19 pm Reply with quoteBack to top

Ahh, just read this after your phpnuke.org forums post. Multiple solutions, cool!

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Mon Jan 20, 2003 2:27 pm Reply with quoteBack to top

Nice, now anyone having a similar problem can use any of both codes, i tested the last one i posted and it does just that, it reaches the max then starts all over at 1. Wink

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
Rugeri
Nuke Soldier
Nuke Soldier


Joined: Jan 16, 2003
Posts: 10

Location: Netherlands

PostPosted: Mon Jan 20, 2003 2:56 pm Reply with quoteBack to top

Cool job guys, I am proud of discussing this here...but what about my
3th problem ?

When programming articles for the next day as an admin it appears
as written by anonymous and no dates and time with the articles Question

I didn't searched for it yet as I am busy with my Windows 2000 installation
as I will try to work with the microsoft IIS server....hihihi...and building a
intranet with phpnuke here....I have 4 computers....pfffffffffff.....keeps me
very busy Wink

_________________
Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
Find all posts by RugeriView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.381 Seconds - 183 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::