PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
technocrat
Involved
Involved


Joined: Jul 07, 2005
Posts: 492

PostPosted: Tue Jan 03, 2006 11:19 am Reply with quote Back to top

includes/nukesentinel.php

Has:
Code:
$db->sql_query('INSERT INTO `'.$prefix."_nsnst_flood` (`ip`, `lastpost`) VALUES (`".$nsnst_const['remote_ip']."`, `".time()."`)");


Which causes an error because its trying to look for a field due to the ` in values so it should be:
Code:
$db->sql_query('INSERT INTO `'.$prefix."_nsnst_flood` (`ip`, `lastpost`) VALUES ('".$nsnst_const['remote_ip']."', '".time()."')");
View user's profile Send private message
technocrat
Involved
Involved


Joined: Jul 07, 2005
Posts: 492

PostPosted: Tue Jan 03, 2006 1:02 pm Reply with quote Back to top

Couple more

Find:
Code:
$checkrow = $db->sql_query('SELECT `lastpost` FROM `'.$prefix."_nsnst_flood` WHERE `ip` = `".$nsnst_const['remote_ip']."`");


Replace with:
Code:
$checkrow = $db->sql_query('SELECT `lastpost` FROM `'.$prefix."_nsnst_flood` WHERE `ip` = '".$nsnst_const['remote_ip']."'");


Find:
Code:
$db->sql_query('UPDATE `'.$prefix."_nsnst_flood` SET `lastpost` = `".time()."` WHERE `ip` = `".$nsnst_const['remote_ip']."`");


Replace with:
Code:
$db->sql_query('UPDATE `'.$prefix."_nsnst_flood` SET `lastpost` = '".time()."' WHERE `ip` = '".$nsnst_const['remote_ip']."'");
View user's profile Send private message
BobMarion
Site Admin


Joined: Oct 30, 2002
Posts: 1039
Location: RedNeck Land (known as Kentucky)

PostPosted: Sat Feb 11, 2006 1:17 am Reply with quote Back to top

Added for 2.4.2pl4
View user's profile Send private message Send e-mail Visit poster's website
technocrat
Involved
Involved


Joined: Jul 07, 2005
Posts: 492

PostPosted: Sat Feb 11, 2006 9:35 am Reply with quote Back to top

This is even more messed up beyond just fixing that code. The whole function has code in it that isnt right. You might want to look at everything in there very closely.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum