Fixed path bugs
--HG-- branch : rc-botanic-webdev
This commit is contained in:
parent
16bd70c50a
commit
54d13d93d0
4 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
||||||
; Comments start with ';', as in php.ini
|
; Comments start with ';', as in php.ini
|
||||||
|
|
||||||
[install]
|
[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"
|
login_here = "here"
|
||||||
|
|
||||||
[dashboard]
|
[dashboard]
|
||||||
|
|
|
@ -88,7 +88,7 @@ $AMS_CACHEDIR = $AMS_LIB . '/cache';
|
||||||
$SITEBASE = dirname( __FILE__ ) . '/html/' ;
|
$SITEBASE = dirname( __FILE__ ) . '/html/' ;
|
||||||
|
|
||||||
//the paths to your website url
|
//the paths to your website url
|
||||||
$BASE_WEBPATH = $_SERVER['REQUEST_URI'].;
|
$BASE_WEBPATH = dirname($_SERVER['PHP_SELF']);
|
||||||
$IMAGELOC_WEBPATH = $_SERVER['REQUEST_URI'].'/img';
|
$IMAGELOC_WEBPATH = $_SERVER['REQUEST_URI'].'/img';
|
||||||
$WEBPATH = $BASE_WEBPATH . '/index.php';
|
$WEBPATH = $BASE_WEBPATH . '/index.php';
|
||||||
$INGAME_WEBPATH = $BASE_WEBPATH . '/index.php';
|
$INGAME_WEBPATH = $BASE_WEBPATH . '/index.php';
|
||||||
|
|
|
@ -16,7 +16,7 @@ ini_set('display_errors', 'on');
|
||||||
require_once( '../../ams_lib/libinclude.php' );
|
require_once( '../../ams_lib/libinclude.php' );
|
||||||
if (!@include '../config.php') {
|
if (!@include '../config.php') {
|
||||||
//if config doesnt exist run setup
|
//if config doesnt exist run setup
|
||||||
require( 'install/libsetup.php' );
|
require( 'installer/libsetup.php' );
|
||||||
} else {
|
} else {
|
||||||
//if config exists then include it
|
//if config exists then include it
|
||||||
require( '../config.php' );
|
require( '../config.php' );
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
//var used to access the DB;
|
//var used to access the DB;
|
||||||
global $cfg;
|
global $cfg;
|
||||||
|
|
||||||
|
sleep(15);
|
||||||
try{
|
try{
|
||||||
//SETUP THE WWW DB
|
//SETUP THE WWW DB
|
||||||
$dbw = new DBLayer("install", "web");
|
$dbw = new DBLayer("install", "web");
|
||||||
|
@ -490,7 +490,7 @@
|
||||||
echo "failed to copy ../config.php ...\n";
|
echo "failed to copy ../config.php ...\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo '<a href="/" target="_blank">Reload!</a> ';
|
echo '<br><a href="'.$_SERVER['REQUEST_URI'].'" >Reload!</a> ';
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue