Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke
Author Message
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Sat Jun 18, 2005 10:19 am Reply with quote

After upload and insert a new row for the browser into nuke_counter I got an error.


Whats the reason for this fatal error ?

Fatal error: Call to undefined function: update_points() in /www/xxx/xxx/includes/counter.php on line 55


--------------
PHP Nuke 6.5
 
View user's profile Send private message
64bitguy
The Mouse Is Extension Of Arm



Joined: Mar 06, 2004
Posts: 1164

PostPosted: Sat Jun 18, 2005 10:42 am Reply with quote

Well, if you are using Nuke 6.5, you shouldn't have points in the first place, so something is definately awry.

Where did you get the counter.php and what is on line 55 of that file?

Thanks

_________________
Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. 
View user's profile Send private message
Susann







PostPosted: Sat Jun 18, 2005 11:36 am Reply with quote

"Instructions for adding Firefox as independant counter in your PHP Nuke statistics modules
Copy all files to your root from html folder."

Folder includes/counter.php is on line 55 is update_ points(13);
Code:
/* Save on the databases the obtained values */


$db->sql_query("UPDATE ".$prefix."_counter SET count=count+1 WHERE (type='total' AND var='hits') OR (var='$browser' AND type='browser') OR (var='$os' AND type='os')");
update_points(13);

/* Start Detailed Statistics */


If Im using my old counter.php with his code I get in the statistics the new browser Firefox % ():

Code:
/* Save on the databases the obtained values */


$db->sql_query("UPDATE ".$prefix."_counter SET count=count+1 WHERE (type='total' AND var='hits') OR (var='$browser' AND type='browser') OR (var='$os' AND type='os')");

/* Start Detailed Statistics */
 
64bitguy







PostPosted: Sat Jun 18, 2005 11:48 am Reply with quote

Use your old files and modify them to reflect the new browser information.

If you see anthing that says points, that is intended for a Nuke version that is 7.0 or greater.

If you are getting no values for Firefox, chances are good that:
a) Either the field doesn't exist in the database to collect and store statistics for that broswer.

Or

b) The detection script is wrong and is instead recording firefox visits under either netscape, mozilla or another browser type.
 
Susann







PostPosted: Sat Jun 18, 2005 1:00 pm Reply with quote

Thanks !

First I thought that my gpoints are the reason for the error. Smile
But it´s the counter.php. I have in nuke_counter browser FF count 2 and in my stats.html FF() Confused
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©