PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
Darrell3831
Worker
Worker


Joined: Feb 18, 2004
Posts: 244

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

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
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Coldy
Hangin' Around


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

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

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 Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Why is that a problem? That's intended to be that way Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Coldy
Hangin' Around


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

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

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

Coldy
View user's profile Send private message Visit poster's website
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.

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-2011 by Raven

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 Modified by the RavenNuke™ Team ::

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

zerosum