Yo friend, I have a new little problem for you to work on 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
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Fri Jan 17, 2003 8:10 am
Yes I noticed this bug.. I"ll find time to investigate now.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Rugeri Nuke Soldier
Joined: Jan 16, 2003
Posts: 10
Location: Netherlands
Posted:
Fri Jan 17, 2003 9:12 am
Wonderfull, I couldn't find it yet, also working on it....
_________________ Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Fri Jan 17, 2003 12:17 pm
if there's a fix, we'll find it. This is the home of MIBF (Mission Impossible Bug Fixers) after all
ArtificialIntel
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Sat Jan 18, 2003 5:34 pm
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
Rugeri Nuke Soldier
Joined: Jan 16, 2003
Posts: 10
Location: Netherlands
Posted:
Sun Jan 19, 2003 4:09 am
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
Many will appriciate it, especially Mr. FB if it works
I was searching in the wrong direction....
_________________ Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Sun Jan 19, 2003 10:12 am
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]
Rugeri Nuke Soldier
Joined: Jan 16, 2003
Posts: 10
Location: Netherlands
Posted:
Sun Jan 19, 2003 10:57 am
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....
_________________ Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Sun Jan 19, 2003 11:10 am
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
Rugeri Nuke Soldier
Joined: Jan 16, 2003
Posts: 10
Location: Netherlands
Posted:
Mon Jan 20, 2003 1:17 am
Well it worked half, it stops at 100 reffers now but didn't deleted this 100 to start all over again....funny I am back now to the original situation I like to continue testing this option if you guys have any other possibilities
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
_________________ Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Mon Jan 20, 2003 7:28 am
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
Rugeri Nuke Soldier
Joined: Jan 16, 2003
Posts: 10
Location: Netherlands
Posted:
Mon Jan 20, 2003 2:03 pm
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
_________________ Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Mon Jan 20, 2003 2:19 pm
Ahh, just read this after your phpnuke.org forums post. Multiple solutions, cool!
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Mon Jan 20, 2003 2:27 pm
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.
_________________ 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
Rugeri Nuke Soldier
Joined: Jan 16, 2003
Posts: 10
Location: Netherlands
Posted:
Mon Jan 20, 2003 2:56 pm
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
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
_________________ Stupid Microsoft logic: hitting start to shut down the Pc....
My PhpNuke 6.5 playground: http://rikmerle.f1ferrarifan.com
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