Merge branch 'fixes' into main/rendor-staging
[ryzomcore.git] / web / public_php / login / config.php
blob6ae107119d12b8dc2220adbfd36b8c4d223a2c55
1 <?php
3 // This file contains all variables needed by other php scripts
5 require_once dirname(__DIR__).'/config.php';
7 // !! IMPORTANT !! keep these outside public webroot
8 $LogRelativePath = '../../logs/';
10 // ----------------------------------------------------------------------------------------
11 // Variables for nel database access
12 // ----------------------------------------------------------------------------------------
14 if ($cfg['db']['shard']['host'] != $cfg['db']['ring']['host'])
15 throw new Exception("Invalid configuration");
17 // where we can find the mysql database
18 $DBHost = $cfg['db']['shard']['host'];
19 $DBUserName = $cfg['db']['shard']['user'];
20 $DBPassword = $cfg['db']['shard']['pass'];
21 $DBName = $cfg['db']['shard']['name'];
23 $RingDBUserName = $cfg['db']['ring']['user'];
24 $RingDBPassword = $cfg['db']['ring']['pass'];
26 // If true, the server will add automatically unknown user in the database
27 // (in nel.user, nel.permission, ring.ring_user and ring.characters
28 $AcceptUnknownUser = $ALLOW_UNKNOWN;
29 // If true, the login service automaticaly create a ring user and a editor character if needed
30 $AutoCreateRingInfo = $CREATE_RING;