Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
In your mysql.inc.php file change this:

code:

$What = find_environmental ("SCRIPT_NAME");
if ( ($user['U_Status'] != "Administrator")
&& ( (!stristr($What,"createtable")) && (!stristr($What,"altertable"))
&& (!stristr($What,"ubbimport.php")) ) ) {
$error = "Database error only visible to forum administrators";
}
else {
$this->errordesc = mysql_error();
}




to this:

code:

$What = find_environmental ("PHP_SELF");
if ( ($user['U_Status'] != "Administrator")
&& ( (!stristr($What,"createtable")) && (!stristr($What,"altertable"))
&& (!stristr($What,"ubbimport.php")) ) ) {
$error = "Database error only visible to forum administrators";
}
else {
$this->errordesc = mysql_error();
}





And see if that will give you a more descriptive error message. Then post the error message here.

I think I'll mention this change to Scream and see if this needs to be added to 6.1 as I have never been able to get a descriptive error message either. This could be do to how php is set and what environmentals are avialable to the users too.

Last edited by Dave_L; 09/16/2002 5:57 PM.
Sponsored Links
Entire Thread
Subject Posted By Posted
Differences in database security from 6.0.3 to 6.1 Aglavalin 09/16/2002 11:09 PM
Re: Differences in database security from 6.0.3 to 6.1 AllenAyres 09/16/2002 11:18 PM
Re: Differences in database security from 6.0.3 to 6.1 JustDave 09/16/2002 11:20 PM
Re: Differences in database security from 6.0.3 to 6.1 Aglavalin 09/17/2002 12:33 AM
Re: Differences in database security from 6.0.3 to 6.1 JustDave 09/17/2002 12:45 AM
Re: Differences in database security from 6.0.3 to 6.1 Dave_L_dup1 09/17/2002 12:55 AM
Re: Differences in database security from 6.0.3 to 6.1 JustDave 09/17/2002 12:56 AM
Re: Differences in database security from 6.0.3 to 6.1 Aglavalin 09/17/2002 1:00 AM
Re: Differences in database security from 6.0.3 to 6.1 JustDave 09/17/2002 1:04 AM
Re: Differences in database security from 6.0.3 to 6.1 Aglavalin 09/17/2002 1:12 AM
Re: Differences in database security from 6.0.3 to 6.1 JustDave 09/17/2002 1:16 AM
Re: Differences in database security from 6.0.3 to 6.1 Aglavalin 09/17/2002 1:24 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1731
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 20
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)