Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) Bug Reports
Author Message
Darrell3831
Worker
Worker



Joined: Feb 18, 2004
Posts: 244

PostPosted: Thu Dec 30, 2004 9:06 am Reply with quote

Nuke Sentinel 2.1.2

The three features called Database Structure, Database Optimize and Database Repair do not work at all if you have certain characters in your database name.

It's either the underscore _ or it's the hypen -.

I didn't bother to test which character because I have both in my database name.

In the Ensim control panel your database name is choosen automatically based on your domain name, plus the suffix you choose. (ie. nuke)

So you'll end up with quite a database name in some instances.

your-domain_org_-_nuke

That database name will not work using the standard queries built into nuke sentinel.

Using what Raven tought me a couple months ago while working with a different script I was able to fix Sentinel as well.

Here's what I did with ABDBOptimize.php

Line 47 is:

Code:
$result = $db->sql_query("SHOW TABLE STATUS FROM ".$dbname);


This query fails because of the special characters.

I changed it to this:

Code:
$result = $db->sql_query('SHOW TABLE STATUS FROM `'.$dbname.'`');


Now the option to optimize a database with speical characters in it will work instead of failing.

Structure, and Repair also do not work currently. I have not made the edits to these files yet, but I'm sure they will work after the database name is enclosed in back ticks.

Darrell

_________________
[ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Dec 30, 2004 2:02 pm Reply with quote

Yes, that is a coding error. The db name should ALWAYS be in back tick marks. Good catch.
 
View user's profile Send private message
Coldy
Hangin' Around



Joined: Apr 24, 2004
Posts: 48
Location: Austria

PostPosted: Wed Jul 20, 2005 12:31 pm Reply with quote

In NukeSentinel 2.3.1 and 2.3.2 there is also a problem with this line:
Code:
$result = $db->sql_query("SHOW TABLE STATUS FROM ".$dbname." LIKE '%_nsnst_%'");

That shows only the database tables from NukeSentinel.

Coldy Cool
 
View user's profile Send private message
Raven







PostPosted: Wed Jul 20, 2005 12:46 pm Reply with quote

Why is that a problem? That's intended to be that way Smile
 
Coldy







PostPosted: Wed Jul 20, 2005 1:15 pm Reply with quote

Ok! Then it is no problem! Razz
Now i have only to change the language file. Mr. Green

Coldy
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) Bug Reports

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 ©