2013-06-05 23:04:46 -07:00
|
|
|
<?php
|
2013-09-14 00:39:03 +02:00
|
|
|
/**
|
|
|
|
* This file contains all variables needed by other php scripts.
|
|
|
|
* @author Daan Janssens, mentored by Matthew Lagoe
|
|
|
|
*/
|
2013-06-05 23:04:46 -07:00
|
|
|
|
2014-09-07 03:43:00 +02:00
|
|
|
// WARNING: Do not modify this manually on your web server, it will be
|
|
|
|
// overwritten by the upgrade process. Instead, add overrides to the
|
|
|
|
// config_user.php file.
|
|
|
|
|
2014-09-05 09:57:06 +02:00
|
|
|
// Variables for database access to the www/CMS database (only if support role)
|
|
|
|
$cfg['db']['web']['host'] = '%amsSqlHostname%';
|
2013-06-27 18:06:09 +02:00
|
|
|
$cfg['db']['web']['port'] = '3306';
|
2014-09-02 18:34:09 +02:00
|
|
|
$cfg['db']['web']['name'] = '%amsDatabase%';
|
2014-09-05 09:57:06 +02:00
|
|
|
$cfg['db']['web']['user'] = '%amsSqlUsername%';
|
|
|
|
$cfg['db']['web']['pass'] = '%amsSqlPassword%';
|
2013-06-27 18:06:09 +02:00
|
|
|
|
2014-09-05 09:57:06 +02:00
|
|
|
// Variables for database access to the lib database (only if support role)
|
|
|
|
$cfg['db']['lib']['host'] = '%amsSqlHostname%';
|
2013-06-27 18:06:09 +02:00
|
|
|
$cfg['db']['lib']['port'] = '3306';
|
2014-09-02 18:34:09 +02:00
|
|
|
$cfg['db']['lib']['name'] = '%amsLibDatabase%';
|
2014-09-05 09:57:06 +02:00
|
|
|
$cfg['db']['lib']['user'] = '%amsSqlUsername%';
|
|
|
|
$cfg['db']['lib']['pass'] = '%amsSqlPassword%';
|
2013-06-27 18:06:09 +02:00
|
|
|
|
2013-09-14 00:39:03 +02:00
|
|
|
// Variables for database access to the shard database
|
2014-09-07 03:43:00 +02:00
|
|
|
$cfg['db']['shard']['host'] = '%nelSqlHostname%';
|
|
|
|
$cfg['db']['shard']['port'] = '3306';
|
|
|
|
$cfg['db']['shard']['name'] = '%nelDatabase%';
|
|
|
|
$cfg['db']['shard']['user'] = '%nelSqlUsername%';
|
|
|
|
$cfg['db']['shard']['pass'] = '%nelSqlPassword%';
|
2013-06-20 01:02:27 +02:00
|
|
|
|
2014-09-05 09:57:06 +02:00
|
|
|
// Variables for database access to the ring_open database (only if domain role)
|
2014-09-07 03:43:00 +02:00
|
|
|
$cfg['db']['ring']['host'] = '%nelSqlHostname%';
|
|
|
|
$cfg['db']['ring']['port'] = '3306';
|
|
|
|
$cfg['db']['ring']['name'] = '%domainDatabase%';
|
|
|
|
$cfg['db']['ring']['user'] = '%nelSqlUsername%';
|
|
|
|
$cfg['db']['ring']['pass'] = '%nelSqlPassword%';
|
2013-07-30 01:46:56 +02:00
|
|
|
|
2014-09-05 09:57:06 +02:00
|
|
|
// Variables for database access to the nel_tool database (only if service role)
|
2014-09-07 03:43:00 +02:00
|
|
|
$cfg['db']['tool']['host'] = '%nelSqlHostname%';
|
|
|
|
$cfg['db']['tool']['port'] = '3306';
|
|
|
|
$cfg['db']['tool']['name'] = '%toolDatabase%';
|
|
|
|
$cfg['db']['tool']['user'] = '%nelSqlUsername%';
|
|
|
|
$cfg['db']['tool']['pass'] = '%nelSqlPassword%';
|
2013-10-24 20:25:04 -07:00
|
|
|
|
2013-08-10 13:59:36 +02:00
|
|
|
// To connect to an IMAP server running on port 143 on the local machine,
|
2014-09-02 18:34:09 +02:00
|
|
|
// do the following: $mbox = imap_open("{localhost:143}INBOX", "user_id", "password");
|
|
|
|
// POP3 server on port 110: $mbox = imap_open ("{localhost:110/pop3}INBOX", "user_id", "password");
|
|
|
|
// SSL IMAP or POP3 server, add /ssl after the protocol: $mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "user_id", "password");
|
2013-08-10 13:59:36 +02:00
|
|
|
// To connect to an SSL IMAP or POP3 server with a self-signed certificate,
|
|
|
|
// add /ssl/novalidate-cert after the protocol specification:
|
2014-09-02 18:34:09 +02:00
|
|
|
// $mbox = imap_open ("{localhost:995/pop3/ssl/novalidate-cert}", "user_id", "password");
|
2013-08-10 13:59:36 +02:00
|
|
|
// NNTP server on port 119 use: $nntp = imap_open ("{localhost:119/nntp}comp.test", "", "");
|
|
|
|
// To connect to a remote server replace "localhost" with the name or the IP address of the server you want to connect to.
|
2013-08-12 01:11:48 +02:00
|
|
|
//$cfg['mail']['server'] = '{localhost:110/pop3/novalidate-cert}INBOX';
|
2013-09-20 02:41:57 +02:00
|
|
|
|
2014-09-07 03:43:00 +02:00
|
|
|
// IMAP connection string as explained above
|
2013-09-20 02:41:57 +02:00
|
|
|
$cfg['mail']['default_mailserver']= '{imap.gmail.com:993/imap/ssl}INBOX';
|
2014-09-07 03:43:00 +02:00
|
|
|
// The email address that sends the email
|
|
|
|
$cfg['mail']['default_groupemail'] = 'support@ryzomcore.org';
|
|
|
|
// Name displayed as sender
|
2014-09-02 18:34:09 +02:00
|
|
|
$cfg['mail']['default_groupname'] = 'Ryzom Core Support';
|
2014-09-07 03:43:00 +02:00
|
|
|
// Username of the account
|
|
|
|
$cfg['mail']['default_username'] = 'support@ryzomcore.org';
|
|
|
|
// Password of the account
|
2014-09-02 18:34:09 +02:00
|
|
|
$cfg['mail']['default_password'] = 'passw0rd';
|
2014-09-07 03:43:00 +02:00
|
|
|
// The host, being used when a mail is sent from a support group: support_groups_name@host
|
|
|
|
$cfg['mail']['host'] = "ryzomcore.org";
|
2013-08-16 22:24:11 +02:00
|
|
|
|
2013-08-19 00:02:55 +02:00
|
|
|
//Defines mailing related stuff
|
2014-09-07 03:43:00 +02:00
|
|
|
$SUPPORT_GROUP_IMAP_CRYPTKEY = '%cryptKeyIMAP%';
|
2013-09-20 02:41:57 +02:00
|
|
|
$TICKET_MAILING_SUPPORT = false;
|
2013-08-20 04:33:23 +02:00
|
|
|
|
|
|
|
//You have to create this dir at first!
|
2013-09-20 02:41:57 +02:00
|
|
|
//The incoming emails will be backed up here and the log file keeps track of the mail_cron job.
|
2013-09-20 03:11:04 +02:00
|
|
|
$MAIL_DIR = "/home/username/mail";
|
|
|
|
$MAIL_LOG_PATH = "/home/username/mail/cron_mail.log";
|
2013-08-20 04:33:23 +02:00
|
|
|
|
2013-09-14 00:39:03 +02:00
|
|
|
//terms of service url location
|
2013-10-21 23:14:26 -07:00
|
|
|
$TOS_URL ="http://www.gnu.org/licenses/agpl-3.0.html";
|
2013-09-14 00:39:03 +02:00
|
|
|
|
|
|
|
//crypt is being used by encrypting & decrypting of the IMAP password of the supportgroups
|
2014-09-07 03:43:00 +02:00
|
|
|
$cfg['crypt']['key'] = '%cryptKey%';
|
2014-09-02 18:34:09 +02:00
|
|
|
$cfg['crypt']['enc_method'] = 'AES-256-CBC';
|
2013-08-19 20:22:01 +02:00
|
|
|
$cfg['crypt']['hash_method'] = "SHA512";
|
|
|
|
|
2013-06-26 03:26:25 +02:00
|
|
|
//-----------------------------------------------------------------------------------------
|
2014-09-07 03:43:00 +02:00
|
|
|
// If true, the server will add automatically unknown user in the database
|
|
|
|
// (in nel.user, nel.permission, ring.ring_user and ring.characters
|
|
|
|
$ALLOW_UNKNOWN = false;
|
|
|
|
// If true, the login service automaticaly create a ring user and a editor character if needed
|
|
|
|
$CREATE_RING = true;
|
2013-06-05 23:04:46 -07:00
|
|
|
|
2014-09-02 18:34:09 +02:00
|
|
|
// PHP server paths
|
|
|
|
$PUBLIC_PHP_PATH = "%publicPhpDirectory%";
|
|
|
|
$PRIVATE_PHP_PATH = "%privatePhpDirectory%";
|
|
|
|
|
|
|
|
// Site paths definitions (you shouldn't have to edit these..)
|
|
|
|
$AMS_LIB = $PRIVATE_PHP_PATH . '/ams';
|
2013-06-06 22:59:11 -07:00
|
|
|
$AMS_TRANS = $AMS_LIB . '/translations';
|
|
|
|
$AMS_CACHEDIR = $AMS_LIB . '/cache';
|
2014-09-02 18:34:09 +02:00
|
|
|
$AMS_PLUGINS = $AMS_LIB . '/plugins';
|
2014-09-05 19:18:17 -07:00
|
|
|
$AMS_TMPDIR = $AMS_LIB . '/tmp';
|
2014-09-02 18:34:09 +02:00
|
|
|
// Here your inc and func resides
|
|
|
|
$SITEBASE = $PUBLIC_PHP_PATH . '/ams/' ;
|
2013-09-09 03:47:32 +02:00
|
|
|
|
2014-09-07 03:43:00 +02:00
|
|
|
// The paths to your website url
|
2014-09-02 18:34:09 +02:00
|
|
|
$BASE_WEBPATH = '/ams/';
|
|
|
|
$IMAGELOC_WEBPATH = $BASE_WEBPATH . 'img';
|
|
|
|
$WEBPATH = $BASE_WEBPATH . 'index.php';
|
|
|
|
$INGAME_WEBPATH = $BASE_WEBPATH . 'index.php';
|
|
|
|
$CONFIG_PATH = $PUBLIC_PHP_PATH;
|
2013-06-06 22:59:11 -07:00
|
|
|
|
2014-09-07 03:43:00 +02:00
|
|
|
// Defines the default language
|
2013-06-10 04:17:55 -07:00
|
|
|
$DEFAULT_LANGUAGE = 'en';
|
2013-06-15 07:01:11 -07:00
|
|
|
|
2014-09-07 03:43:00 +02:00
|
|
|
// Defines if logging actions should happen or not.
|
2013-07-20 01:04:20 +02:00
|
|
|
$TICKET_LOGGING = true;
|
2013-08-16 03:40:59 +02:00
|
|
|
|
2014-09-07 03:43:00 +02:00
|
|
|
// Defines the time format display
|
2013-08-03 05:00:39 +02:00
|
|
|
$TIME_FORMAT = "m-d-Y H:i:s";
|
2013-08-16 03:40:59 +02:00
|
|
|
|
2014-09-07 03:43:00 +02:00
|
|
|
// Defines which ingame layout template should be used
|
2013-08-12 05:14:00 +02:00
|
|
|
$INGAME_LAYOUT = "basic";
|
2013-08-16 03:40:59 +02:00
|
|
|
|
2014-09-07 03:43:00 +02:00
|
|
|
// Forces to load the ingame templates if set to true
|
2013-09-09 03:47:32 +02:00
|
|
|
$FORCE_INGAME = false;
|
2013-08-19 00:02:55 +02:00
|
|
|
|
2014-09-07 03:43:00 +02:00
|
|
|
// File storage path (must be a publicly accessible url)
|
2014-09-05 10:01:20 +02:00
|
|
|
$FILE_STORAGE_PATH = $PUBLIC_PHP_PATH . '/ams/files/';
|
|
|
|
$FILE_WEB_PATH = $BASE_WEBPATH . 'files/';
|
2014-09-05 09:57:06 +02:00
|
|
|
|
|
|
|
// Setup password
|
|
|
|
$NEL_SETUP_PASSWORD = '%nelSetupPassword%';
|
|
|
|
|
|
|
|
// Name of current domain (only if domain role)
|
|
|
|
$NEL_DOMAIN_NAME = '%nelDomainName%';
|
2014-09-07 03:43:00 +02:00
|
|
|
|
|
|
|
// Currently configured setup version
|
|
|
|
$NEL_SETUP_VERSION_CONFIGURED = %nelSetupVersion%;
|
|
|
|
|
|
|
|
// Get installed version
|
|
|
|
require_once('setup/version.php');
|
|
|
|
|
|
|
|
// Override user parameters
|
|
|
|
require_once('config_user.php');
|
|
|
|
|
|
|
|
/* end of file */
|