mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-28 11:20:53 +00:00
Fixed path bugs
This commit is contained in:
parent
60728d34aa
commit
ef9adb7dbf
4 changed files with 5 additions and 5 deletions
|
@ -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]
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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' );
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue