mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Merge pull request #1667 from miken32/master
changes needed to run under a web server subdirectory
This commit is contained in:
		@@ -29,7 +29,7 @@ if($stage == "4" || $stage == "3") {
 | 
			
		||||
 | 
			
		||||
require '../includes/defaults.inc.php';
 | 
			
		||||
// Work out the install directory
 | 
			
		||||
$cur_dir = explode('/',$_SERVER['DOCUMENT_ROOT']);
 | 
			
		||||
$cur_dir = explode('/',__DIR__);
 | 
			
		||||
$check = end($cur_dir);
 | 
			
		||||
if( empty($check) ) {
 | 
			
		||||
    $install_dir = array_pop($cur_dir);
 | 
			
		||||
@@ -90,7 +90,6 @@ $complete = 1;
 | 
			
		||||
<html>
 | 
			
		||||
<head>
 | 
			
		||||
  <title><?php echo($config['page_title_prefix']); ?></title>
 | 
			
		||||
  <base href="<?php echo($config['base_url']); ?>" />
 | 
			
		||||
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 | 
			
		||||
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
 | 
			
		||||
  <meta http-equiv="content-language" content="en-us" />
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user