Forum Index   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sndincOffline



Joined: Sep 09, 2004
Posts: 8

Status: Offline
Post   Posted: Jun 17, 2005 - 07:58 PM Reply with quote Back to top

I'm using PN .750 and pncUserHack 1.6 successfully on one site. I tried setting it up on a new site and I'm having a problem. I unzipped everything except the pntables file. I added the pntables content to the file. I went to the link to do "New Installation" and hit go. It seems like the page just refreshes (not sure if I'm supposed to get a message it's succesful). I delete the install.php in NS-User. Everything looks good but when I am in the PN Admin area, I click on User Admin and get "Access Denied". I can't do anything.

My admin account is not admin (but I don't think that was an issue) and before the update I had registration turn off (awaiting the install of pncuserhack). I'm sure I'm doing something stupid but I can't think of what. Any help would be appreciated. Thanks.
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jun 17, 2005 - 08:46 PM Reply with quote Back to top

As far as I can remember, you cannot install pncUserHack without admin rights...

Or at least, some access via admin.php

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
sndincOffline



Joined: Sep 09, 2004
Posts: 8

Status: Offline
Post   Posted: Jun 17, 2005 - 09:12 PM Reply with quote Back to top

Sorry...poor wording on my part. The user account when I did the postnuke install was not called "admin" or "administrator" (or whatever the default admin account is called). So I have one user named "sndinc" and that user should have adminstrator rights.

That was just one of the things I did differently between my working website and none working one.

I can get to the adminstation panel and access everything I tried, just not the User Configuration section.
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jun 17, 2005 - 09:27 PM Reply with quote Back to top

Sorry myself as my last post was made really fast as I had a little urgency.

Following what you say, apparently, I don't think the installation went well... you should have had a message showing something like "Table created, etc..."

If not, check if the users_modrequest table is there. If not, there there is many reason for not being able to access some things later.

Also... install file is very old and might not work on a current php version with register_globals off...

In the install.php file, before this line :

Code:

switch ($go){


put this :

Code:

$go = pnVarCleanFromInput('go');


and run the install again... it should be ok !

_________________
Chestnut ! Cool
Administrator
PNConcept.com


Last edited by Chestnut on Jun 17, 2005 - 09:29 PM; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
sndincOffline



Joined: Sep 09, 2004
Posts: 8

Status: Offline
Post   Posted: Jun 17, 2005 - 09:50 PM Reply with quote Back to top

Alright...I added the code and did the install process again...
This time I got the the message about the tables being created. I checked and user_modrequest does exist now.

Bad news...I still get access denied if I go to user configuration (i tried the link when I got the message about the tables being created and I tried from the admin menu).
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jun 17, 2005 - 10:43 PM Reply with quote Back to top

in modules/(NS-)User/admin.php

change first lines of code

from
Code:

if (!eregi("admin.php", $PHP_SELF)) {
    die ("Access Denied");
}


to
Code:

//if (!eregi("admin.php", $PHP_SELF)) {
//    die ("Access Denied");
//}


I remembered too late that MACscr did some work on those files... The file you are using are to be considered unsecure and unrecommended...

Mac might have new files... Otherwise, this hack is dead.
Files are too old and you'll face many of these annoying problems.

_________________
Chestnut ! Cool
Administrator
PNConcept.com


Last edited by Chestnut on Jun 17, 2005 - 10:44 PM; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
sndincOffline



Joined: Sep 09, 2004
Posts: 8

Status: Offline
Post   Posted: Jun 17, 2005 - 11:13 PM Reply with quote Back to top

This seemed to get me into the user configuration. I checked my other .750 site and it's not commented out there. I'm not sure what the difference in the sites would be. Anyway, I'll see if I come across any other snags. Thanks for the help with this unsupported hack. I must say it's one of my favorite addons to the website.
View user's profile Send private message
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits
DarkMindZ