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 -> phpnuke 7.6
Author Message
drmike
Worker
Worker



Joined: Jul 15, 2004
Posts: 108
Location: Charlotte, NC

PostPosted: Sun Dec 12, 2004 3:50 pm Reply with quote

Greets:

Kindly hit the following page to see what I mean:

http://www.tdjc.net/content-10.html

When you get past the episode review, you see the beginnings of a block with a big old "Access Denied".

Now I had the problem discussed earlier where I was getting the 'Access Denied" along the tops of my admin pages. I started deleting those out of the admin/case, admin/links, and admin/modules subdirectories and it's fixed that error as far as I can tell.

Did I miss one maybe?

Thanks for any help,
-drmike

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website ICQ Number
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Sun Dec 12, 2004 4:55 pm Reply with quote

in footer.php find:
Code:
function foot() {

    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;

change to:
Code:
function foot() {

    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name, $admin;

also find:
Code:
if ($module == 1 AND file_exists("modules/$name/admin/panel.php")) {

change to:
Code:
if ($module == 1 AND (file_exists("modules/$name/admin/panel.php") && is_admin($admin))) {


With this panel.php will only get included if it exists and the user is an admin.
 
View user's profile Send private message Visit poster's website
drmike







PostPosted: Sun Dec 12, 2004 5:04 pm Reply with quote

Looks good.

I have to ask if this was a known problem. You came back pretty quick on it. I searched but didn't see anything about this issue before.

Thanks again,
-drmike
 
seanieb
New Member
New Member



Joined: Jan 25, 2005
Posts: 1

PostPosted: Tue Jan 25, 2005 2:57 pm Reply with quote

chatserv thank you very much, as "drmike" said i also didn't see anything about this issue on other website's.

Thanks again

seanieb Very Happy
 
View user's profile Send private message
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 -> phpnuke 7.6

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 ©