Include webig config in setup, ref kaetemi/ryzomclassic#4

ryzomclassic-develop
kaetemi 4 years ago
parent e97cf09e04
commit bce886595e
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -130,6 +130,9 @@ $FORCE_INGAME = false;
$FILE_STORAGE_PATH = $PUBLIC_PHP_PATH . '/ams/files/';
$FILE_WEB_PATH = $BASE_WEBPATH . 'files/';
// Shard web storage (without final /)
$USERS_DIR = '%domainUsersDir%';
// Setup password
$NEL_SETUP_PASSWORD = '%nelSetupPassword%';

@ -151,6 +151,7 @@ require_once('setup/version.php');
$config = str_replace("%amsLibDatabase%", addslashes($_POST["amsLibDatabase"]), $config);
$config = str_replace("%nelSetupPassword%", addslashes($_POST["nelSetupPassword"]), $config);
$config = str_replace("%domainDatabase%", addslashes($_POST["domainDatabase"]), $config);
$config = str_replace("%domainUsersDir%", addslashes($_POST["domainUsersDir"]), $config);
$config = str_replace("%nelDomainName%", addslashes($_POST["nelDomainName"]), $config);
$config = str_replace("%nelSetupVersion%", addslashes($NEL_SETUP_VERSION), $config);
$cryptKeyLength = 16;
@ -532,6 +533,12 @@ require_once('setup/version.php');
<input type="text" class="form-control" id="domainDatabase" name="domainDatabase" value="ring_mini01">
</div>
</div>
<div class="form-group">
<label for="domainUsersDir" class="col-sm-3 control-label">Users Directory (MFS, etc)</label>
<div class="col-sm-6">
<input type="text" class="form-control" id="domainUsersDir" name="domainUsersDir" value="/home/nevrax/mini01/www">
</div>
</div>
</div>
</div>
<input name="submit" type="submit" value="Configure" class="btn btn-primary">

@ -1,6 +1,7 @@
<?php
$USERS_DIR = '/home/nevrax/live/www'; // without final /
$TEMPLATE_DIR = './template'; // without final /
require_once dirname(__DIR__).'/config.php';
$TEMPLATE_DIR = $PRIVATE_PHP_PATH + '/webig/template'; // without final /
?>

Loading…
Cancel
Save