Advertisement
Guest User

Here

a guest
Oct 1st, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.16 KB | None | 0 0
  1. <?php
  2. return array(
  3.     // Example server configuration. You may have more arrays like this one to
  4.     // specify multiple server groups (however they should share the same login
  5.     // server whilst they are allowed to have multiple char/map pairs).
  6.     array(
  7.         'ServerName'     => 'FluxRO',
  8.         // Global database configuration (excludes logs database configuration).
  9.         'DbConfig'       => array(
  10.             //'Socket'     => '/tmp/mysql.sock',
  11.             //'Port'       => 3306,
  12.             //'Encoding'   => 'utf8', // Connection encoding -- use whatever here your MySQL tables collation is.
  13.             'Convert'    => 'utf8',
  14.                 // -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.
  15.                 // -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)
  16.             'Hostname'   => 'xxx.xxx.xxx.xxx',
  17.             'Username'   => 'xxxx',
  18.             'Password'   => 'xxxx',
  19.             'Database'   => 'ragnarok',
  20.             'Persistent' => true,
  21.             'Timezone'   => null // Example: '+0:00' is UTC.
  22.             // The possible values of 'Timezone' is as documented from the MySQL website:
  23.             // "The value can be given as a string indicating an offset from UTC, such as '+10:00' or '-6:00'."
  24.             // "The value can be given as a named time zone, such as 'Europe/Helsinki', 'US/Eastern', or 'MET'." (see below continuation!)
  25.             // **"Named time zones can be used only if the time zone information tables in the mysql database have been created and populated."
  26.         ),
  27.         // This is kept separate because many people choose to have their logs
  28.         // database accessible under different credentials, and often on a
  29.         // different server entirely to ensure the reliability of the log data.
  30. 'LogsDbConfig'   => array(
  31.             //'Socket'     => '/tmp/mysql.sock',
  32.             //'Port'       => 3306,
  33.             //'Encoding'   => null, // Connection encoding -- use whatever here your MySQL tables collation is.
  34.             'Convert'    => 'utf8',
  35.                 // -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.
  36.                 // -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)
  37.             'Hostname'   => 'xxx.xxx.xxx.xxx',
  38.             'Username'   => 'xxxx',
  39.             'Password'   => 'xxxx',
  40.             'Database'   => 'ragnarok',
  41.             'Persistent' => true,
  42.             'Timezone'   => null // Possible values is as described in the comment in DbConfig.
  43.         ),
  44.         // Login server configuration.
  45.         'LoginServer'    => array(
  46.             'Address'  => 'xxx.xxx.xxx.xxx',
  47.             'Port'     => 6900,
  48.             'UseMD5'   => false,
  49.             'NoCase'   => true, // rA account case-sensitivity; Default: Case-INsensitive (true).
  50.             'GroupID'  => 0,    // Default account group ID during registration.
  51.             //'Database' => 'ragnarok'
  52.         ),
  53. 'CharMapServers' => array(
  54.             array(
  55.                 'ServerName'    => 'FluxRO',
  56.                 'BaseExpRates'  => 200,
  57.                 'JobExpRates'   => 200,
  58.                 'MvpExpRates'   => 200,
  59.                 'DropRates'     => 25,
  60.                 'MvpDropRates'  => 25,
  61.                 'CardDropRates' => 25,
  62.                 'MaxCharSlots'  => 9,
  63.                 'DateTimezone'  => null,       // Specifies game server's timezone for this char/map pair. (See: http://php.net/timezones)
  64.                 //'ResetDenyMaps' => 'sec_pri',  // Defaults to 'sec_pri'. This value can be an array of map names.
  65.                 //'Database'      => 'ragnarok', // Defaults to DbConfig.Database
  66.                 'CharServer'    => array(
  67.                     'Address'   => 'xxx.xxx.xxx.xx',
  68.                     'Port'      => 6121
  69.                 ),
  70.                 'MapServer'     => array(
  71.                     'Address'   => 'xx.xx.xx.xx',
  72.                     'Port'      => 5121
  73.                 ),
  74.                 // -- WoE days and times --
  75.                 // First parameter: Starding day 0=Sunday / 1=Monday / 2=Tuesday / 3=Wednesday / 4=Thursday / 5=Friday / 6=Saturday
  76.                 // Second parameter: Starting hour in 24-hr format.
  77.                 // Third paramter: Ending day (possible value is same as starting day).
  78.                 // Fourth (final) parameter: Ending hour in 24-hr format.
  79.                 // ** (Note, invalid times are ignored silently.)
  80.                 'WoeDayTimes'   => array(
  81.                     //array(0, '12:00', 0, '14:00'), // Example: Starts Sunday 12:00 PM and ends Sunday 2:00 PM
  82.                     //array(3, '14:00', 3, '15:00')  // Example: Starts Wednesday 2:00 PM and ends Wednesday 3:00 PM
  83.                 ),
  84.                 // Modules and/or actions to disallow access to during WoE.
  85.                 'WoeDisallow'   => array(
  86.                     array('module' => 'character', 'action' => 'online'),  // Disallow access to "Who's Online" page during WoE.
  87.                     array('module' => 'character', 'action' => 'mapstats') // Disallow access to "Map Statistics" page during WoE.
  88.                 )
  89.             ),
  90.             array(
  91.                 'ServerName'    => 'FluxRO2',
  92.                 'BaseExpRates'  => 200,
  93.                 'JobExpRates'   => 200,
  94.                 'MvpExpRates'   => 200,
  95.                 'DropRates'     => 25,
  96.                 'MvpDropRates'  => 25,
  97.                 'CardDropRates' => 25,
  98.                 'MaxCharSlots'  => 9,
  99.                 'DateTimezone'  => null,       // Specifies game server's timezone for this char/map pair. (See: http://php.net/timezones)
  100.                 //'ResetDenyMaps' => 'sec_pri',  // Defaults to 'sec_pri'. This value can be an array of map names.
  101.                 //'Database'      => 'ragnarok', // Defaults to DbConfig.Database
  102.                 'CharServer'    => array(
  103.                     'Address'   => 'xxx.xx.xx.xx',
  104.                     'Port'      => 6121
  105.                 ),
  106.                 'MapServer'     => array(
  107.                     'Address'   => 'xx.xx.xx.xx',
  108.                     'Port'      => 5121
  109.                 ),
  110.                 // -- WoE days and times --
  111.                 // First parameter: Starding day 0=Sunday / 1=Monday / 2=Tuesday / 3=Wednesday / 4=Thursday / 5=Friday / 6=Saturday
  112.                 // Second parameter: Starting hour in 24-hr format.
  113.                 // Third paramter: Ending day (possible value is same as starting day).
  114.                 // Fourth (final) parameter: Ending hour in 24-hr format.
  115.                 // ** (Note, invalid times are ignored silently.)
  116.                 'WoeDayTimes'   => array(
  117.                     //array(0, '12:00', 0, '14:00'), // Example: Starts Sunday 12:00 PM and ends Sunday 2:00 PM
  118.                     //array(3, '14:00', 3, '15:00')  // Example: Starts Wednesday 2:00 PM and ends Wednesday 3:00 PM
  119.                 ),
  120.                 // Modules and/or actions to disallow access to during WoE.
  121.                 'WoeDisallow'   => array(
  122.                     array('module' => 'character', 'action' => 'online'),  // Disallow access to "Who's Online" page during WoE.
  123.                     array('module' => 'character', 'action' => 'mapstats') // Disallow access to "Map Statistics" page during WoE.
  124.                 )
  125.             )
  126.  
  127.         )
  128.        
  129.     )
  130.     )
  131. );
  132. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement