Fixed path bugs

This commit is contained in:
Botanic 2013-10-21 23:57:27 -07:00
parent 601cbc8fde
commit b830995450
4 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@
; Comments start with ';', as in php.ini
[install]
login_info = "Please enter your MySQL Username and Password to install the database."
login_info = "Please enter your MySQL Username and Password to install the database.<br>This is being loaded because config.php is missing.<br>This process will take about 30 seconds."
login_here = "here"
[dashboard]

View file

@ -88,7 +88,7 @@ $AMS_CACHEDIR = $AMS_LIB . '/cache';
$SITEBASE = dirname( __FILE__ ) . '/html/' ;
//the paths to your website url
$BASE_WEBPATH = $_SERVER['REQUEST_URI'].;
$BASE_WEBPATH = dirname($_SERVER['PHP_SELF']);
$IMAGELOC_WEBPATH = $_SERVER['REQUEST_URI'].'/img';
$WEBPATH = $BASE_WEBPATH . '/index.php';
$INGAME_WEBPATH = $BASE_WEBPATH . '/index.php';

View file

@ -16,7 +16,7 @@ ini_set('display_errors', 'on');
require_once( '../../ams_lib/libinclude.php' );
if (!@include '../config.php') {
//if config doesnt exist run setup
require( 'install/libsetup.php' );
require( 'installer/libsetup.php' );
} else {
//if config exists then include it
require( '../config.php' );

View file

@ -27,7 +27,7 @@
//var used to access the DB;
global $cfg;
sleep(15);
try{
//SETUP THE WWW DB
$dbw = new DBLayer("install", "web");
@ -490,7 +490,7 @@
echo "failed to copy ../config.php ...\n";
}
}
echo '<a href="/" target="_blank">Reload!</a> ';
echo '<br><a href="'.$_SERVER['REQUEST_URI'].'" >Reload!</a> ';
exit;