nb Core Community
February 07, 2012, 11:20:41 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: 1.2.3 +nb is now final and released

@new registrations. I will not allow any new registrations here as there are more (real person) spambots here than ever.... captcha proved to be ineffective.

After your registration, mail me at ( admin AT shinobilegends.com ) from the mail address you want to register. Provide some text about you and possibly your game.
 
   Home   Help Search Calendar Downloads Login Register  
Pages: [1]
  Print  
Author Topic: Error in lib/dbwrapper_mysql.php - superfluous code  (Read 1426 times)
Nightborn
Administrator
Sr. Member
*****

Karma: +20/-0
Posts: 306



View Profile WWW
« on: June 03, 2009, 11:52:14 am »

*cough*

sorry, it seems my private logging was carried over to the nb-snapshots Sad this occurs in 1.2.0 and ongoing until the 1.2.2 beta

sorry. please re-download the package you got and replace:

lib/dbwrapper_mysql.php


That should do the trick.

I have fixed all versions.

If not, tell me.

The code you can safely remove is:

Code:

62                 if ($data==array() && strpos($name,"inject")!==false) {
 63                         //log for me
 64                         System("echo \"".date("Y:m:d H:i:s:").": Sorry, we g    ot an empty query here: $sql\" >>/var/log/shino/emptyqueries.log");
 65                         System("echo >>/var/log/shino/emptyqueries.log");
 66                 }

This was done to log empty queries on my server.
Logged

It should be fixed, but it won't be easy and it won't be fast. If you want
to help - wonderful. But keep in mind that it will take months of wading
through the ugliest code we have in the tree. If you've got a weak stomach -
stay out. I've been there and it's not a nice place.

   - Al Viro
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!