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.3
Author Message
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Thu Feb 03, 2005 10:57 am Reply with quote

I added an admin to help me administrate some stuff on the site but when I tested his account I got the

Quote:
You do not have access to this page


I found this odd and was doing some research but came up empty. The next couple days I tested a coule different things but no luck. Today, since it is the start of a new month I went to my Nuke Treasury module and wanted to reconcile but I get the same message:
Quote:

You do not have access to this page


and I'm a superuser!

This has always worked before but now all of a sudden I get this error.

For the life of me I don't know what has happened. Nothing new has been installed for months now. I can still access several modules and admin them but I can't get into my Nuke Treasury module or add new administrators and get them to access modules that I have given them rights to.

This is strange.

/Edit

I run the Protector System for security.


Last edited by Donovan on Thu Feb 03, 2005 11:10 am; edited 1 time in total 
View user's profile Send private message Visit poster's website ICQ Number
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Thu Feb 03, 2005 11:03 am Reply with quote

Nuke Treaury readme states that it is accessable only by the God admin.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
sixonetonoffun







PostPosted: Thu Feb 03, 2005 11:08 am Reply with quote

Ok now to end the confusion only the god admin is allowed to add admins.

So is this making a little more sense or is there more then just these 2 functions giving you grief?
 
Donovan







PostPosted: Thu Feb 03, 2005 11:15 am Reply with quote

Doesn't matter what account I use. The one I have always used or the God Account.
 
Donovan







PostPosted: Thu Feb 03, 2005 11:16 am Reply with quote

I just used the God Account and still the same issue with adding Admins. The new account get's the same message.
 
sixonetonoffun







PostPosted: Thu Feb 03, 2005 11:19 am Reply with quote

Ok then you might have an issue with the number of fields in the nuke_authors table not matching the number of fields in the /admin/modules/authors.php

You will have to take a structure only dump of the authors table and count the number of fields in the table. Then compare that with the number of fields in the insert and/or update fields in the /admin/modules/authors.php file.

If for some reason they match but I doubt they will try uploading the admin files over again.
 
sixonetonoffun







PostPosted: Thu Feb 03, 2005 11:24 am Reply with quote

I just noticed this {I run the Protector System for security.}

This is most likely the issue reread the install directions it looks like you missed a step.
 
Donovan







PostPosted: Thu Feb 03, 2005 11:34 am Reply with quote

I have been running Protector for 6 months now. Why would this issue reveal itself now, when I had no problems before.

I am new to Ravens Web Hosting and just arrived a month ago as a new client. I moved my site here from IPowerweb. Could something have gotten messed up with in the move?

I want to move my security to Sentinal, but have found no instructions on how to remove Protector anywhere. I guess I'll just reverse engineer the install instructions and see if that fixes it.

Thanks for your help.
 
sixonetonoffun







PostPosted: Thu Feb 03, 2005 11:42 am Reply with quote

Protector might not be the issue but I'd think that the fields are not matching most likely.
It would take only a few minutes to find out.
 
Donovan







PostPosted: Thu Feb 03, 2005 11:50 am Reply with quote

The case statment is where I add authors

Code:


case "AddAuthor":
    $add_aid = substr("$add_aid", 0,25);
    $add_name = substr("$add_name", 0,25);
    if (!($add_aid && $add_name && $add_email && $add_pwd)) {
        include("header.php");
        GraphicAdmin();
   OpenTable();
   echo "<center><font class=\"title\"><b>" . _AUTHORSADMIN . "</b></font></center>";
   CloseTable();
   echo "<br>";
        OpenTable();
   echo "<center><font class=\"option\"><b>" . _CREATIONERROR . "</b></font><br><br>"
       ."" . _COMPLETEFIELDS . "<br><br>"
       ."" . _GOBACK . "</center>";
       CloseTable();
   include("footer.php");
   return;
    }
    $add_pwd = md5($add_pwd);
    $result = $db->sql_query("insert into " . $prefix . "_authors values ('$add_aid', '$add_name', '$add_url', '$add_email', '$add_pwd', '0', '$add_radminarticle','$add_radmintopic','$add_radminuser','$add_radminsurvey','$add_radminsection','$add_radminlink','$add_radminephem','$add_radminfaq','$add_radmindownload','$add_radminreviews','$add_radminnewsletter','$add_radminforum','$add_radmincontent','$add_radminency','$add_radminclan','$add_radminsuper','$add_admlanguage','')");
    if (!$result) {
   return;
    }
    Header("Location: admin.php?op=mod_authors");
    break;


Last edited by Donovan on Thu Feb 03, 2005 11:57 am; edited 1 time in total 
Donovan







PostPosted: Thu Feb 03, 2005 11:56 am Reply with quote

This is in my dump. It doesn't match any in my case statement.

`radminblocker` tinyint(2) NOT NULL default '0',
 
sixonetonoffun







PostPosted: Thu Feb 03, 2005 11:58 am Reply with quote

Ok something is strange here for sure because there are 23 or so in this function. None of which are the one I'd expect to see for the Protector.

The file looks about right for version phpnuke 7.3 but the authors table sounds more like 7.5-7.6 ??????
 
Donovan







PostPosted: Thu Feb 03, 2005 12:03 pm Reply with quote

My dump

Code:


CREATE TABLE `nuke_authors` (
  `aid` varchar(25) NOT NULL default '',
  `name` varchar(50) default NULL,
  `url` varchar(255) NOT NULL default '',
  `email` varchar(255) NOT NULL default '',
  `pwd` varchar(40) default NULL,
  `counter` int(11) NOT NULL default '0',
  `radminarticle` tinyint(2) NOT NULL default '0',
  `radmintopic` tinyint(2) NOT NULL default '0',
  `radminuser` tinyint(2) NOT NULL default '0',
  `radminsurvey` tinyint(2) NOT NULL default '0',
  `radminsection` tinyint(2) NOT NULL default '0',
  `radminlink` tinyint(2) NOT NULL default '0',
  `radminephem` tinyint(2) NOT NULL default '0',
  `radminfaq` tinyint(2) NOT NULL default '0',
  `radmindownload` tinyint(2) NOT NULL default '0',
  `radminreviews` tinyint(2) NOT NULL default '0',
  `radminnewsletter` tinyint(2) NOT NULL default '0',
  `radminforum` tinyint(2) NOT NULL default '0',
  `radmincontent` tinyint(2) NOT NULL default '0',
  `radminency` tinyint(2) NOT NULL default '0',
  `radminsuper` tinyint(2) NOT NULL default '1',
  `admlanguage` varchar(30) NOT NULL default '',
  `radminblocker` tinyint(2) NOT NULL default '0',
  `radminclan` tinyint(2) NOT NULL default '0',
  PRIMARY KEY  (`aid`),
  KEY `aid` (`aid`)
) TYPE=MyISAM;
 
sixonetonoffun







PostPosted: Thu Feb 03, 2005 12:06 pm Reply with quote

Ok wait don't do that then lol we crossed here.

Thats more then 9 fields.
 
sixonetonoffun







PostPosted: Thu Feb 03, 2005 12:14 pm Reply with quote

This should work for this function but we will have to fix the rest of the file too (the form part).

Code:


case "AddAuthor":
    $add_aid = substr("$add_aid", 0,25);
    $add_name = substr("$add_name", 0,25);
    if (!($add_aid && $add_name && $add_email && $add_pwd)) {
        include("header.php");
        GraphicAdmin();
   OpenTable();
   echo "<center><font class=\"title\"><b>" . _AUTHORSADMIN . "</b></font></center>";
   CloseTable();
   echo "<br>";
        OpenTable();
   echo "<center><font class=\"option\"><b>" . _CREATIONERROR . "</b></font><br><br>"
       ."" . _COMPLETEFIELDS . "<br><br>"
       ."" . _GOBACK . "</center>";
       CloseTable();
   include("footer.php");
   return;
    }
    $add_pwd = md5($add_pwd);
    $result = $db->sql_query("insert into " . $prefix . "_authors values ('$add_aid', '$add_name', '$add_url', '$add_email', '$add_pwd', '0', '$add_radminarticle','$add_radmintopic','$add_radminuser','$add_radminsurvey','$add_radminsection','$add_radminlink','$add_radminephem','$add_radminfaq','$add_radmindownload','$add_radminreviews','$add_radminnewsletter','$add_radminforum','$add_radmincontent','$add_radminency','$add_radminsuper','$add_admlanguage','$add_radminblocker','$add_radminclan')");
    if (!$result) {
   return;
    }
    Header("Location: admin.php?op=mod_authors");
    break;
 
Donovan







PostPosted: Thu Feb 03, 2005 12:26 pm Reply with quote

Since I plan on upgrading to 7.5 soon and getting rid of Protector could I get away with just doing this as a temp fix, or do I have to fix the form as well?

Nobody else is a superuser on my site.
 
Donovan







PostPosted: Thu Feb 03, 2005 12:30 pm Reply with quote

Why would this only effect Nuke Treasury?
 
sixonetonoffun







PostPosted: Thu Feb 03, 2005 12:42 pm Reply with quote

I can't say whats up with that one. To be honest I have no idea I've never used or even installed it for anyone.

For a real quick fix yes I'd remove the protector for Nuke Sentinel then you could drop the radminblocker field and the problem of admin authors would go away.

I don't think you'll gain much by an upgrade right now I'd wait until chatserv finishes the 2.9 patched series files and they've been tested a little before making a switch right now.
 
Donovan







PostPosted: Tue Feb 15, 2005 9:59 pm Reply with quote

Well I took off Protector and installed Sentinal 2.1.3, but the problem remains.

Still can't access my Nuke Treasury. It says "You do not have access to this page" and part of the table is missing.
 
Donovan







PostPosted: Tue Feb 22, 2005 12:46 pm Reply with quote

FOUND THE ANSWER!!!


I was having trouble getting into my Nuke Treasury but found this tidbit at [ Only registered users can see links on this board! Get registered or login! ]

I used to run their Protector system but switched to Sentinal. Anyway I quickly realized that this was the issue since I used to have Clan_Nuke on my site.

Quote:

Users that have Clan_nuke add-on are experiencing an error with limited admins.
This error causes a message “You do not have access to this page” when the Admin user is not a God.
But it's simple to fix. Just open the file /admin/links/links.clan.php then find the code line:
if ($radminsuper==1) { adminmenu("admin.php?op=ClanAdmin", "Clan_Nuke", "clan.gif"); }
else {die("You do not have access to this page");}
Removing the line else {die("You do not have access to this page");} will fix your problem.

This coding is quite useless, it only lets Superusers in and gives the others
“You do not have access to this page” text, removing it will NOT damage your Clan_Nuke Add-on.

Posted by Mister


Case closed.
 
sixonetonoffun







PostPosted: Tue Feb 22, 2005 3:02 pm Reply with quote

Thanks for posting back. I'd have never guessed the admin link was at fault.
 
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.3

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 ©