2013-06-06 06:04:46 +00:00
|
|
|
<?php
|
2013-09-13 22:39:03 +00:00
|
|
|
/**
|
|
|
|
* This file contains all variables needed by other php scripts.
|
|
|
|
* @author Daan Janssens, mentored by Matthew Lagoe
|
|
|
|
*/
|
2013-06-06 06:04:46 +00:00
|
|
|
|
2013-09-13 22:39:03 +00:00
|
|
|
// Variables for database access to the www/CMS database
|
|
|
|
$cfg['db']['web']['host'] = 'localhost';
|
2013-06-27 16:06:09 +00:00
|
|
|
$cfg['db']['web']['port'] = '3306';
|
|
|
|
$cfg['db']['web']['name'] = 'ryzom_ams';
|
2013-07-31 14:09:39 +00:00
|
|
|
$cfg['db']['web']['user'] = 'shard';
|
|
|
|
$cfg['db']['web']['pass'] = '';
|
2013-06-27 16:06:09 +00:00
|
|
|
|
2013-09-13 22:39:03 +00:00
|
|
|
// Variables for database access to the lib database
|
2013-06-27 16:06:09 +00:00
|
|
|
$cfg['db']['lib']['host'] = 'localhost';
|
|
|
|
$cfg['db']['lib']['port'] = '3306';
|
|
|
|
$cfg['db']['lib']['name'] = 'ryzom_ams_lib';
|
2013-07-31 14:09:39 +00:00
|
|
|
$cfg['db']['lib']['user'] = 'shard';
|
|
|
|
$cfg['db']['lib']['pass'] = '';
|
2013-06-27 16:06:09 +00:00
|
|
|
|
2013-09-13 22:39:03 +00:00
|
|
|
// Variables for database access to the shard database
|
2013-08-09 23:46:21 +00:00
|
|
|
$cfg['db']['shard']['host'] = 'localhost';
|
2013-06-27 16:06:09 +00:00
|
|
|
$cfg['db']['shard']['port'] = '3306';
|
|
|
|
$cfg['db']['shard']['name'] = 'nel';
|
|
|
|
$cfg['db']['shard']['user'] = 'shard';
|
|
|
|
$cfg['db']['shard']['pass'] = '';
|
2013-06-19 23:02:27 +00:00
|
|
|
|
2013-12-17 08:07:09 +00:00
|
|
|
// Variables for database access to the ring_open database
|
2013-07-29 23:46:56 +00:00
|
|
|
$cfg['db']['ring']['host'] = 'localhost';
|
|
|
|
$cfg['db']['ring']['port'] = '3306';
|
|
|
|
$cfg['db']['ring']['name'] = 'ring_open';
|
|
|
|
$cfg['db']['ring']['user'] = 'shard';
|
|
|
|
$cfg['db']['ring']['pass'] = '';
|
|
|
|
|
2013-10-25 03:25:04 +00:00
|
|
|
// Variables for database access to the nel_tool database
|
|
|
|
$cfg['db']['tool']['host'] = 'localhost';
|
|
|
|
$cfg['db']['tool']['port'] = '3306';
|
|
|
|
$cfg['db']['tool']['name'] = 'nel_tool';
|
|
|
|
$cfg['db']['tool']['user'] = 'shard';
|
|
|
|
$cfg['db']['tool']['pass'] = '';
|
|
|
|
|
2013-08-10 11:59:36 +00:00
|
|
|
// To connect to an IMAP server running on port 143 on the local machine,
|
|
|
|
// 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");
|
|
|
|
// To connect to an SSL IMAP or POP3 server with a self-signed certificate,
|
|
|
|
// add /ssl/novalidate-cert after the protocol specification:
|
|
|
|
// $mbox = imap_open ("{localhost:995/pop3/ssl/novalidate-cert}", "user_id", "password");
|
|
|
|
// 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-11 23:11:48 +00:00
|
|
|
//$cfg['mail']['server'] = '{localhost:110/pop3/novalidate-cert}INBOX';
|
2013-09-20 00:41:57 +00:00
|
|
|
|
|
|
|
//imap connection string as explained above
|
|
|
|
$cfg['mail']['default_mailserver']= '{imap.gmail.com:993/imap/ssl}INBOX';
|
|
|
|
//groupemail is the email that sends the email
|
2013-09-20 01:11:04 +00:00
|
|
|
$cfg['mail']['default_groupemail'] = 'example@gmail.com';
|
2013-09-20 00:41:57 +00:00
|
|
|
//groupname will be the name displayed as sender
|
2013-08-16 20:24:11 +00:00
|
|
|
$cfg['mail']['default_groupname'] = 'Ryzomcore Support';
|
2013-09-20 00:41:57 +00:00
|
|
|
//the username of the account
|
2013-09-20 01:11:04 +00:00
|
|
|
$cfg['mail']['default_username'] = 'example@gmail.com';
|
2013-09-20 00:41:57 +00:00
|
|
|
//the matching password
|
|
|
|
$cfg['mail']['default_password'] = 'passw0rd';
|
|
|
|
//the host, being used when a mail is sent from a support group: support_groups_name@host
|
2013-08-17 01:06:22 +00:00
|
|
|
$cfg['mail']['host'] = "ryzomcore.com";
|
2013-08-16 20:24:11 +00:00
|
|
|
|
2013-08-18 22:02:55 +00:00
|
|
|
//Defines mailing related stuff
|
|
|
|
$SUPPORT_GROUP_IMAP_CRYPTKEY = "azerty";
|
2013-09-20 00:41:57 +00:00
|
|
|
$TICKET_MAILING_SUPPORT = false;
|
2013-08-20 02:33:23 +00:00
|
|
|
|
|
|
|
//You have to create this dir at first!
|
2013-09-20 00:41:57 +00:00
|
|
|
//The incoming emails will be backed up here and the log file keeps track of the mail_cron job.
|
2013-09-20 01:11:04 +00:00
|
|
|
$MAIL_DIR = "/home/username/mail";
|
|
|
|
$MAIL_LOG_PATH = "/home/username/mail/cron_mail.log";
|
2013-08-20 02:33:23 +00:00
|
|
|
|
2013-09-13 22:39:03 +00:00
|
|
|
//terms of service url location
|
2013-10-22 06:14:26 +00:00
|
|
|
$TOS_URL ="http://www.gnu.org/licenses/agpl-3.0.html";
|
2013-09-13 22:39:03 +00:00
|
|
|
|
|
|
|
//crypt is being used by encrypting & decrypting of the IMAP password of the supportgroups
|
2013-08-19 18:22:01 +00:00
|
|
|
$cfg['crypt']['key'] = 'Sup3rS3cr3tStuff';
|
|
|
|
$cfg['crypt']['enc_method'] = 'AES-256-CBC';
|
|
|
|
$cfg['crypt']['hash_method'] = "SHA512";
|
|
|
|
|
2013-06-26 01:26:25 +00:00
|
|
|
//-----------------------------------------------------------------------------------------
|
2013-06-06 06:04:46 +00: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 = true ;
|
|
|
|
// if true= the login service automaticaly create a ring user and a editor character if needed
|
|
|
|
$CREATE_RING = true ;
|
|
|
|
|
2013-09-20 00:41:57 +00:00
|
|
|
// site paths definitions (you shouldn't have to edit these..)
|
2013-06-10 11:17:55 +00:00
|
|
|
$AMS_LIB = dirname( dirname( __FILE__ ) ) . '/ams_lib';
|
2013-06-07 05:59:11 +00:00
|
|
|
$AMS_TRANS = $AMS_LIB . '/translations';
|
|
|
|
$AMS_CACHEDIR = $AMS_LIB . '/cache';
|
2013-09-09 01:47:32 +00:00
|
|
|
//Here your inc and func resides
|
2013-08-16 01:40:59 +00:00
|
|
|
$SITEBASE = dirname( __FILE__ ) . '/html/' ;
|
2013-09-09 01:47:32 +00:00
|
|
|
|
2013-09-20 00:41:57 +00:00
|
|
|
//the paths to your website url
|
2013-10-26 10:19:59 +00:00
|
|
|
$BASE_WEBPATH = '';
|
|
|
|
$IMAGELOC_WEBPATH = $BASE_WEBPATH.'img';
|
2013-09-09 01:47:32 +00:00
|
|
|
$WEBPATH = $BASE_WEBPATH . '/index.php';
|
|
|
|
$INGAME_WEBPATH = $BASE_WEBPATH . '/index.php';
|
|
|
|
$CONFIG_PATH = dirname( __FILE__ );
|
2013-06-07 05:59:11 +00:00
|
|
|
|
2013-08-16 01:40:59 +00:00
|
|
|
//defines the default language
|
2013-06-10 11:17:55 +00:00
|
|
|
$DEFAULT_LANGUAGE = 'en';
|
2013-06-15 14:01:11 +00:00
|
|
|
|
2013-08-16 01:40:59 +00:00
|
|
|
//defines if logging actions should happen or not.
|
2013-07-19 23:04:20 +00:00
|
|
|
$TICKET_LOGGING = true;
|
2013-08-16 01:40:59 +00:00
|
|
|
|
|
|
|
//defines the time format display
|
2013-08-03 03:00:39 +00:00
|
|
|
$TIME_FORMAT = "m-d-Y H:i:s";
|
2013-08-16 01:40:59 +00:00
|
|
|
|
|
|
|
//defines which ingame layout template should be used
|
2013-08-12 03:14:00 +00:00
|
|
|
$INGAME_LAYOUT = "basic";
|
2013-08-16 01:40:59 +00:00
|
|
|
|
2013-09-13 22:39:03 +00:00
|
|
|
//forces to load the ingame templates if set to true
|
2013-09-09 01:47:32 +00:00
|
|
|
$FORCE_INGAME = false;
|
2013-08-18 22:02:55 +00:00
|
|
|
|