| Author |
Message |
Cikey
Nuke Cadet


Joined: Dec 08, 2003
Posts: 4
|
Posted:
Thu Jan 08, 2004 4:11 am |
  |
I have just installed the beta bundle (Jan 7th 2004) but when I trie to enter the forum admin I get this error Code:
| Code: |
| "You are not authorised to administer this board" |
And I am logged in as Admin (superuser)
Any ideas? Please?
(sorry about my bad English, I'm Norwegian ) |
|
|
   |
 |
fn-eagle
Nuke Cadet


Joined: Dec 12, 2003
Posts: 7
|
Posted:
Thu Jan 08, 2004 4:23 am |
  |
|
   |
 |
Cikey
Nuke Cadet


Joined: Dec 08, 2003
Posts: 4
|
Posted:
Thu Jan 08, 2004 4:29 am |
  |
Thanx, but it did not work, still the same error...
Any other ideas ? |
|
|
   |
 |
Daniel-cmw
Site Admin


Joined: Mar 02, 2003
Posts: 1662
Location: The UK!
|
Posted:
Thu Jan 08, 2004 5:14 am |
  |
I take it you mean you are logged in with the God account?
First thing to try is to clear your cookies, the same thing happened to me on my First nuke install and clearing the cookies fixed the problem for me. |
_________________ Read Me |
|
   |
 |
Cikey
Nuke Cadet


Joined: Dec 08, 2003
Posts: 4
|
Posted:
Thu Jan 08, 2004 5:41 am |
  |
Yes, I mean the God account. (not that I haven't tried 100 other admin accounts also )
And I have also tried the cookie solution, but no, I'm still "not authorised to administer this board"  |
|
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Thu Jan 08, 2004 6:16 am |
  |
Edit the users table (using phpMyAdmin) and make sure your userid has a user_level=2. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
XEULAS
Captain


Joined: Oct 20, 2003
Posts: 335
|
Posted:
Thu Jan 08, 2004 7:27 am |
  |
http://bugs.nukecops.com/bug.php?id=205
modules/Forums/admin/pagestart.php
Locate at line 73:
global $admin;
$admin = base64_decode($admin);
$admin = explode(":", $admin);
$aid = "$admin[0]";
$sql = "SELECT radminforum, radminsuper FROM ".$prefix."_authors WHERE
aid='$aid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if ($radminsuper != 1 OR $radminforum != 1) {
message_die(GENERAL_MESSAGE, "You are not authorised to administer
this board");
}
Replace with:
global $admin;
$admin = base64_decode($admin);
$admin = explode(":", $admin);
$aid = "$admin[0]";
$sql = "SELECT radminforum, radminsuper FROM ".$prefix."_authors WHERE
aid='$aid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if ($row['radminsuper'] != 1 OR ($row['radminforum'] != 1 AND
$row['radminsuper'] != 1)) {
message_die(GENERAL_MESSAGE, "You are not authorised to administer
this board");
}
---------------
This code has ALWAYS (check on cvs) been wrong in pagestart.php, it's
just that previous versions "if (condition)" happened to always be
false.
-- StarkHalo |
|
|
    |
 |
fn-eagle
Nuke Cadet


Joined: Dec 12, 2003
Posts: 7
|
Posted:
Thu Jan 08, 2004 12:43 pm |
  |
Yes, this was clear for me, but I can not access phpBBMyAdmin.
This is what I got:
You are not allowed to access phpBBMyAdmin!
To access it I'm using:
User_ID: 2 with User_Level: 2 |
|
|
   |
 |
mr_hunter_eric
Nuke Soldier


Joined: Sep 26, 2003
Posts: 17
|
Posted:
Fri Jan 09, 2004 4:54 am |
  |
Assisting a friend in using the Bundle.
She's using a December CVS download.
She too is having this issue problem.
The server admin is hosting her site for free and does not provide PhpMyAdmin. Server owner lacks support help.
I've tried changing what was needed at http://bugs.nukecops.com/bug.php?id=205 but all we get is a white screen.
SQL-Tap is available via the admin, but I don't see anywhere how to edit the user info. It does show that user_level is 1.
Any other way to edit so it reads level 2?
If pagestart.php can actually fix it, she has given me permission to allow someone into the FTP account to fix things. I've attempted with no success.
PM me please if this is something you can and will be considering to assist. |
|
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Fri Jan 09, 2004 5:43 am |
  |
|
    |
 |
Dawg
Nuke Soldier


Joined: Feb 27, 2003
Posts: 13
Location: Canada
|
Posted:
Tue Jan 13, 2004 11:10 am |
  |
| XEULAS wrote: |
http://bugs.nukecops.com/bug.php?id=205
modules/Forums/admin/pagestart.php
Locate at line 73:
global $admin;
$admin = base64_decode($admin);
$admin = explode(":", $admin);
$aid = "$admin[0]";
$sql = "SELECT radminforum, radminsuper FROM ".$prefix."_authors WHERE
aid='$aid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if ($radminsuper != 1 OR $radminforum != 1) {
message_die(GENERAL_MESSAGE, "You are not authorised to administer
this board");
}
Replace with:
global $admin;
$admin = base64_decode($admin);
$admin = explode(":", $admin);
$aid = "$admin[0]";
$sql = "SELECT radminforum, radminsuper FROM ".$prefix."_authors WHERE
aid='$aid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if ($row['radminsuper'] != 1 OR ($row['radminforum'] != 1 AND
$row['radminsuper'] != 1)) {
message_die(GENERAL_MESSAGE, "You are not authorised to administer
this board");
}
---------------
This code has ALWAYS (check on cvs) been wrong in pagestart.php, it's
just that previous versions "if (condition)" happened to always be
false.
-- StarkHalo |
All I must say is that you are a God. That fixed my Problem  |
_________________ Dawg
Frequent lock ups are a symptom of not enough memory but only in the way that nosebleeds are a symptom of gunshot wounds to the head.
|
|
       |
 |
kjcdude
Captain


Joined: Jun 10, 2003
Posts: 441
Location: Southern California
|
Posted:
Thu Jan 15, 2004 6:53 pm |
  |
|
       |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Jan 15, 2004 7:18 pm |
  |
Wow, what a team spirit we have here! |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
KoshVorlon
Nuke Cadet


Joined: Jan 14, 2004
Posts: 1
|
Posted:
Mon Mar 08, 2004 8:32 am |
  |
FYI, I downloaded betaNC-20040307.tar.gz last night and this still appears to be a problem. I was able to fix it quite quickly using Dawg's code change. |
|
|
   |
 |
badger
Sergeant


Joined: Apr 02, 2003
Posts: 113
Location: Scotland
|
Posted:
Mon Mar 22, 2004 6:56 am |
  |
I can't believe this hasn't been fixed in the latest "update" to 2.0.7. Come on guys!! |
_________________ The Audio Recording Centre
http://www.audio-recording.co.uk |
|
      |
 |
|
|