Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
Author Message
Olaf_The_White
New Member
New Member



Joined: Feb 12, 2005
Posts: 3

PostPosted: Sat Feb 12, 2005 9:42 pm Reply with quote

I just installed 4.4.0
When I go to the Admin panel and click on Edit Users I get an "Access Denied Error"

Not sure whats wrong?

Olaf
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Sun Feb 13, 2005 9:29 am Reply with quote

The only place I know of that this error will happen is if your not logged in as admin.
There are 2 things to do with the install manually.
add these lines to your mainfile.php
Code:


  if ($forum_admin == 1) {
         include_once("../../../modules/Your_Account/includes/mainfileend.php");
     } elseif ($inside_mod == 1) {
         include_once("../../modules/Your_Account/includes/mainfileend.php");
     } else {
         include_once("modules/Your_Account/includes/mainfileend.php");
     }


And Optionally edit the modules/Your_Account/includes/constants.php
Which not that I just checked is in the files wrong it is like this now.
Code:


// define("CNBYA_DOMAINNAME", "");
// if (($_SERVER['SERVER_NAME'] != CNBYA_DOMAINNAME OR $_SERVER['SERVER_NAME'] != CNBYA_DOMAINNAME) AND CNBYA_DOMAINNAME != "") {exit();}


It should have been like this:
Code:


if ((defined('CNBYA_DOMAINNAME')) AND ($_SERVER['SERVER_NAME'] != CNBYA_DOMAINNAME)) { echo "CNBYA domain protection"; exit(); }


Or alternatively you could use:
Code:


if ((defined('CNBYA_DOMAINNAME')) AND ($_SERVER['SERVER_NAME'] != CNBYA_DOMAINNAME OR $_SERVER['HTTP_HOST'] != CNBYA_DOMAINNAME)) { echo "CNBYA domain protection"; exit(); }

_________________
[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
Olaf_The_White







PostPosted: Sun Feb 13, 2005 2:54 pm Reply with quote

Thanks for the reply Sixonetonoffun

Ok I have edited the mainfile.php with

if ($forum_admin == 1) {
include_once("../../../modules/Your_Account/includes/mainfileend.php");
} elseif ($inside_mod == 1) {
include_once("../../modules/Your_Account/includes/mainfileend.php");
} else {
include_once("modules/Your_Account/includes/mainfileend.php");
}


And my modules/Your_Account/includes/constants.php now looks like this

if ((defined('CNBYA_DOMAINNAME')) AND ($_SERVER['SERVER_NAME'] != CNBYA_DOMAINNAME OR $_SERVER['HTTP_HOST'] != CNBYA_DOMAINNAME)) { echo "CNBYA domain protection"; exit(); }

and when I goto
http://www.raidersfromthenorth.com/modules.php?name=Your_Account&file=admin
I still egt the access denied error
I am logged in as admin, I can do everything else admin wise, well almost everything I get a blank screen when I try and add a new admin user ( I can still edit/delete admin just submitting the info for a new one doesnt work, I just get a blank page) I also get the 'Access Denied' error when going to Ephemerids or Sections in the admin section also.

Thanks
 
menelaos61
Worker
Worker



Joined: Nov 10, 2004
Posts: 110

PostPosted: Sun Feb 13, 2005 8:53 pm Reply with quote

Hi Olaf,
What version of nuke are you using?
Do you use the new admin links in Your_Account/admin
or the old ones from admin/links?
Are you logged in as a superadmin?

These are some questions that probably have to do with your problem.

Cheers,
Richard
 
View user's profile Send private message Send e-mail
ashketchum
New Member
New Member



Joined: May 29, 2006
Posts: 9

PostPosted: Tue Jun 13, 2006 2:02 am Reply with quote

I am having the same problem. I am using RavenNuke 7.6 and CNB Your_Account 740 420. So what do I have to do to fix it??? Everything else seems to be working fine. And I already added that piece of code to mainfile.php.
 
View user's profile Send private message
Samtron
New Member
New Member



Joined: Jul 10, 2006
Posts: 4

PostPosted: Mon Jul 10, 2006 8:39 am Reply with quote

I'm logged as superadmin.

I get this error :
Fatal error: Call to a member function on a non-object in /home/user12345/html/mainfile.php on line 677
after adding
Code:
  if ($forum_admin == 1) {

         include_once("../../../modules/Your_Account/includes/mainfileend.php");
     } elseif ($inside_mod == 1) {
         include_once("../../modules/Your_Account/includes/mainfileend.php");
     } else {
         include_once("modules/Your_Account/includes/mainfileend.php");
     }


What might cause this?
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sat Jul 15, 2006 1:56 am Reply with quote

You may need to change

Code:


if ($forum_admin == 1) {

TO

if (defined('FORUM_ADMIN')) {



} elseif ($inside_mod == 1) {

TO

} elseif (defined('INSIDE_MOD')) {


That should make it compatible with the latest phpNukes and Patched

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Samtron







PostPosted: Sat Jul 15, 2006 6:44 am Reply with quote

evaders99 wrote:
That should make it compatible with the latest phpNukes and Patched
Ok, I changed them, but it shows the same error message.

If I remove that:
Code:
  if (defined('FORUM_ADMIN')) {

         include_once("../../../modules/Your_Account/includes/mainfileend.php");
     } elseif (defined('INSIDE_MOD')) {
         include_once("../../modules/Your_Account/includes/mainfileend.php");
     } else {
         include_once("modules/Your_Account/includes/mainfileend.php");
     }

And click "Edit Users".. it says "Access Denied".

Do I need to chmod my files/folders to something different?.. folders are 755 and files are 644.

Sorry if I ask stupid questions, I'm just starting to get use to PHP-Nuke and it's add-ons.
 
evaders99







PostPosted: Sat Jul 15, 2006 1:05 pm Reply with quote

Sorry, what version of phpNuke are you using? It is Patched?
 
SwT-King
New Member
New Member



Joined: Jul 15, 2006
Posts: 1

PostPosted: Sat Jul 15, 2006 4:38 pm Reply with quote

i got the same problem, and i am running Phpnuke 7.8 but everytime i got the admin and click on edit user keep get Access Denied
 
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Sat Jul 15, 2006 4:57 pm Reply with quote

Any addons made or patches applied?

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sat Jul 15, 2006 6:40 pm Reply with quote

similar things have been discussed a few times peeps...
ever tried ravens search on top and use the site search by google...
type.. cnbya access denied
happy reading.... Wink
 
View user's profile Send private message
Samtron







PostPosted: Mon Jul 17, 2006 5:46 pm Reply with quote

evaders99 wrote:
Sorry, what version of phpNuke are you using? It is Patched?

My PHP-Nuke is version 7.9 and it's not patched. It's the default setup.
 
kevinkap
Involved
Involved



Joined: Apr 22, 2006
Posts: 356

PostPosted: Sun Jan 14, 2007 9:40 pm Reply with quote

ok, i am running rn 7.6 2.02.02 and cnbya 750.442.
I have most everything working, but jr admins are not able to access the ya admin panel, they get access denied. I can change them to a superuser and they have access, but not as a jr admin.

I have searched before I get that reply, and tried all the suggestions and nothing works.
I have read of course this thread, and
http://www.ravenphpscripts.com/postt2501.html
http://www.ravenphpscripts.com/posts5337-highlight-cnb+access+denied.html
http://www.ravenphpscripts.com/posts9535-highlight-cnbya+access+denied.html
and others, none of these solutions has worked.

_________________
Kevin Kappes 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

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 ©