3 * This file contains all variables needed by other php scripts.
4 * @author Daan Janssens, mentored by Matthew Lagoe
7 // Variables for database access to the www/CMS database
8 $cfg['db']['web']['host'] = 'localhost';
9 $cfg['db']['web']['port'] = '3306';
10 $cfg['db']['web']['name'] = 'ryzom_ams';
11 $cfg['db']['web']['user'] = 'shard';
12 $cfg['db']['web']['pass'] = '';
14 // Variables for database access to the lib database
15 $cfg['db']['lib']['host'] = 'localhost';
16 $cfg['db']['lib']['port'] = '3306';
17 $cfg['db']['lib']['name'] = 'ryzom_ams_lib';
18 $cfg['db']['lib']['user'] = 'shard';
19 $cfg['db']['lib']['pass'] = '';
21 // Variables for database access to the shard database
22 $cfg['db']['shard']['host'] = 'localhost';
23 $cfg['db']['shard']['port'] = '3306';
24 $cfg['db']['shard']['name'] = 'nel';
25 $cfg['db']['shard']['user'] = 'shard';
26 $cfg['db']['shard']['pass'] = '';
28 // Variables for database access to the ring_open database
29 $cfg['db']['ring']['host'] = 'localhost';
30 $cfg['db']['ring']['port'] = '3306';
31 $cfg['db']['ring']['name'] = 'ring_open';
32 $cfg['db']['ring']['user'] = 'shard';
33 $cfg['db']['ring']['pass'] = '';
35 // Variables for database access to the nel_tool database
36 $cfg['db']['tool']['host'] = 'localhost';
37 $cfg['db']['tool']['port'] = '3306';
38 $cfg['db']['tool']['name'] = 'nel_tool';
39 $cfg['db']['tool']['user'] = 'shard';
40 $cfg['db']['tool']['pass'] = '';
42 // To connect to an IMAP server running on port 143 on the local machine,
43 // do the following: $mbox = imap_open("{localhost:143}INBOX", "user_id", "password");
44 // POP3 server on port 110: $mbox = imap_open ("{localhost:110/pop3}INBOX", "user_id", "password");
45 // SSL IMAP or POP3 server, add /ssl after the protocol: $mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "user_id", "password");
46 // To connect to an SSL IMAP or POP3 server with a self-signed certificate,
47 // add /ssl/novalidate-cert after the protocol specification:
48 // $mbox = imap_open ("{localhost:995/pop3/ssl/novalidate-cert}", "user_id", "password");
49 // NNTP server on port 119 use: $nntp = imap_open ("{localhost:119/nntp}comp.test", "", "");
50 // To connect to a remote server replace "localhost" with the name or the IP address of the server you want to connect to.
51 //$cfg['mail']['server'] = '{localhost:110/pop3/novalidate-cert}INBOX';
53 //imap connection string as explained above
54 $cfg['mail']['default_mailserver']= '{imap.gmail.com:993/imap/ssl}INBOX';
55 //groupemail is the email that sends the email
56 $cfg['mail']['default_groupemail'] = 'example@gmail.com';
57 //groupname will be the name displayed as sender
58 $cfg['mail']['default_groupname'] = 'Ryzomcore Support';
59 //the username of the account
60 $cfg['mail']['default_username'] = 'example@gmail.com';
61 //the matching password
62 $cfg['mail']['default_password'] = 'passw0rd';
63 //the host, being used when a mail is sent from a support group: support_groups_name@host
64 $cfg['mail']['host'] = "ryzomcore.com";
66 //Defines mailing related stuff
67 $SUPPORT_GROUP_IMAP_CRYPTKEY = "azerty";
68 $TICKET_MAILING_SUPPORT = false;
70 //You have to create this dir at first!
71 //The incoming emails will be backed up here and the log file keeps track of the mail_cron job.
72 $MAIL_DIR = "/home/username/mail";
73 $MAIL_LOG_PATH = "/home/username/mail/cron_mail.log";
75 //terms of service url location
76 $TOS_URL ="http://www.gnu.org/licenses/agpl-3.0.html";
78 //crypt is being used by encrypting & decrypting of the IMAP password of the supportgroups
79 $cfg['crypt']['key'] = 'Sup3rS3cr3tStuff';
80 $cfg['crypt']['enc_method'] = 'AES-256-CBC';
81 $cfg['crypt']['hash_method'] = "SHA512";
83 //-----------------------------------------------------------------------------------------
84 // If true= the server will add automatically unknown user in the database
85 // (in nel.user= nel.permission= ring.ring_user and ring.characters
86 $ALLOW_UNKNOWN = true ;
87 // if true= the login service automaticaly create a ring user and a editor character if needed
90 // site paths definitions (you shouldn't have to edit these..)
91 $AMS_LIB = dirname( dirname( __FILE__
) ) . '/ams_lib';
92 $AMS_TRANS = $AMS_LIB . '/translations';
93 $AMS_CACHEDIR = $AMS_LIB . '/cache';
94 //Here your inc and func resides
95 $SITEBASE = dirname( __FILE__
) . '/html/' ;
97 //the paths to your website url
99 $IMAGELOC_WEBPATH = $BASE_WEBPATH.'img';
100 $WEBPATH = $BASE_WEBPATH . '/index.php';
101 $INGAME_WEBPATH = $BASE_WEBPATH . '/index.php';
102 $CONFIG_PATH = dirname( __FILE__
);
104 //defines the default language
105 $DEFAULT_LANGUAGE = 'en';
107 //defines if logging actions should happen or not.
108 $TICKET_LOGGING = true;
110 //defines the time format display
111 $TIME_FORMAT = "m-d-Y H:i:s";
113 //defines which ingame layout template should be used
114 $INGAME_LAYOUT = "basic";
116 //forces to load the ingame templates if set to true
117 $FORCE_INGAME = false;