Jump to content

php installer control


mbongo

Recommended Posts

hi!i am mbongo

analyzing the config file and I did not understand why this piece of code

"$dir = ((is_dir($_SERVER['REQUEST_URI']) OR substr($_SERVER['REQUEST_URI'], -1) == '/') ? $_SERVER['REQUEST_URI'] : dirname($_SERVER['REQUEST_URI']).'/');"

in this code below.somebody know the resason?

thanks!

 

 

if (!file_exists(dirname(__FILE__).'/settings.inc.php'))

{

$dir = ((is_dir($_SERVER['REQUEST_URI']) OR substr($_SERVER['REQUEST_URI'], -1) == '/') ? $_SERVER['REQUEST_URI'] : dirname($_SERVER['REQUEST_URI']).'/');

 

if (!file_exists(dirname(__FILE__).'/../install'))

die('Error: \'install\' directory is missing');

header('Location: install/');

exit;

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...