You are here: Big Brother Bot ForumAdd-OnsEchelonURL issues
Pages: [1]   Go Down
  Print  
Author Topic: URL issues  (Read 208 times) Bookmark and Share
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BF3, RO2, COD-BO
Posts: 127
Offline Offline
« on: November 23, 2011, 06:57:38 AM »

Hi,

Recently installed Echelon (v1) on our B3 hosting server (b3.myhostname.co.uk/echelon) with no apparent issues.  I've setup a couple of moderators and they can browse the site and check the stats with no issues.  However, they are now telling me that when they try to change a clients ID level they receive a 'page not found' error.

From what I can see echelon is trying to call a page called http://b3.myhostname.co.uk/echelon/admin/adminadd.php?id=76 (which exists) but is then being bounced to http://b3.myhostname.co.uk/index.php (which doesnt).

If I log in as the super admin I get no errors and the client ID Level is increased correctly.

The path in my inc_config.php file is set to

Code:
$path = "/echelon/";

I've also noticed (although I dont think it matters) that when I log into echelon I get a double // in the URL i.e. http://b3.myhostname.co.uk/echelon//clients.php

Any thoughts?
« Last Edit: November 23, 2011, 08:27:27 AM by Toffees » Logged

Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BF3, RO2, COD-BO
Posts: 127
Offline Offline
« Reply #1 on: November 23, 2011, 07:15:23 AM »

So I took a look at the adminadd.php file and found the following lines :-

Code:
require_once('../login/inc_authorize.php');
require_once('../Connections/b3connect.php');
require_once('../Connections/inc_config.php');

Because $path wasn't being set until inc_config.php, this explains why inc_authorize.php was bumping me to a non existent index.html page and the reason auth was failing was because the min requirements to make an ID Level change is 2 (admin)

Moving the inc_config.php statement to the top of the includes list fixes the 'page not found' error when a user accesses a feature that they are not allowed to use.

All works nicely now :-)
« Last Edit: November 23, 2011, 08:29:23 AM by Toffees » Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal