Sublime directory Surf the web anonymous Pagerank Monitor


Make include access_user_class.php more dynamic

keatoh
Mon 19 March 2007, 01:50 pm GMT +0100
Greetings:

I tried to do this:
include($_SERVER['DOCUMENT_ROOT'].$sec_path."access_user_class.php");
but it's not working the way I wanted.

I am trying to make the access_user_class.php include line in everypage more dynamic. So it will allow me to move/change the "classes/access_user" to for example "protected" by changing the config file $sec_path.

Is there a solution for this?

Thanks

olaf
Mon 19 March 2007, 11:21 pm GMT +0100
Greetings:

I tried to do this:
include($_SERVER['DOCUMENT_ROOT'].$sec_path."access_user_class.php");
but it's not working the way I wanted.

I am trying to make the access_user_class.php include line in everypage more dynamic. So it will allow me to move/change the "classes/access_user" to for example "protected" by changing the config file $sec_path.

Is there a solution for this?

Thanks

you need to study the PHP include function, there are different ways to include php files.

The pathes inside the config file are important for redirections

lanandpercy
Sun 25 March 2007, 07:51 am GMT +0200
Greetings:

I tried to do this:
include($_SERVER['DOCUMENT_ROOT'].$sec_path."access_user_class.php");
but it's not working the way I wanted.

I am trying to make the access_user_class.php include line in everypage more dynamic. So it will allow me to move/change the "classes/access_user" to for example "protected" by changing the config file $sec_path.

Is there a solution for this?

Thanks
Are all your files/scipts in the same directory?  If yes, then you could just do something like this...

Just delete what is in red...
include($_SERVER['DOCUMENT_ROOT']."/classes/access_user/access_user_class.php");

It will now say...

include("access_user_class.php");
That is dymanic as it gets!


keatoh
Mon 16 April 2007, 09:24 pm GMT +0200
Yes, right now they are all in the same directory. So, your suggestion will work well.

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional