2015-04-05 16:24:07 +00:00
< ? php
2015-04-25 20:08:44 +00:00
// Sakura Configuration
2015-04-05 16:24:07 +00:00
$sakuraConf = array (); // Define configuration array
// PDO Database Connection
$sakuraConf [ 'db' ] = array ();
2015-04-14 14:27:37 +00:00
$sakuraConf [ 'db' ][ 'driver' ] = 'mysql' ; // SQL Driver contained in the components/database folder
$sakuraConf [ 'db' ][ 'unixsocket' ] = false ; // Use internal UNIX system sockets (would not work on Windows)
$sakuraConf [ 'db' ][ 'host' ] = 'localhost' ; // SQL Hosts (or path to socket in the case that you're using them)
$sakuraConf [ 'db' ][ 'port' ] = 3306 ; // SQL Port (does nothing when UNIX sockets are used)
2015-04-25 20:08:44 +00:00
$sakuraConf [ 'db' ][ 'username' ] = 'sakura' ; // Database authentication username
2015-04-14 14:27:37 +00:00
$sakuraConf [ 'db' ][ 'password' ] = 'password' ; // Database authentication password
2015-04-25 20:08:44 +00:00
$sakuraConf [ 'db' ][ 'database' ] = 'sakura' ; // Database name
$sakuraConf [ 'db' ][ 'prefix' ] = 'sakura_' ; // Table Prefix
2015-04-05 16:24:07 +00:00
// URLs (for modularity)
2015-04-27 15:13:52 +00:00
$sakuraConf [ 'urls' ] = array ();
2015-04-14 14:27:37 +00:00
$sakuraConf [ 'urls' ][ 'main' ] = 'flashii.net' ; // Main site url
$sakuraConf [ 'urls' ][ 'api' ] = 'api.flashii.net' ; // API url
$sakuraConf [ 'urls' ][ 'content' ] = 'cdn.flashii.net' ; // Content directory url
$sakuraConf [ 'urls' ][ 'chat' ] = 'chat.flashii.net' ; // Chat url
$sakuraConf [ 'urls' ][ 'manage' ] = 'manage.flashii.net' ; // Moderator panel url
2015-05-06 13:42:02 +00:00
$sakuraConf [ 'urls' ][ 'forum' ] = 'forum.flashii.net' ; // Forum url
2015-04-05 16:24:07 +00:00
// Errata
2015-04-27 15:13:52 +00:00
$sakuraConf [ 'etc' ] = array ();
2015-04-18 18:26:52 +00:00
$sakuraConf [ 'etc' ][ 'cfhosts' ] = ROOT . '_sakura/config/cloudflare.hosts' ; // Cloudflare IP subnets file
$sakuraConf [ 'etc' ][ 'whoisservers' ] = ROOT . '_sakura/config/whois.json' ; // JSON with Whois servers
2015-04-27 00:41:59 +00:00
$sakuraConf [ 'etc' ][ 'iso3166' ] = ROOT . '_sakura/config/iso3166.json' ; // JSON with country codes
2015-04-27 15:13:52 +00:00
// Sock Chat extensions
$sakuraConf [ 'sock' ] = array ();
$sakuraConf [ 'sock' ][ 'enable' ] = true ; // Ability to disable the extension in case you're using Sakura without Sock Chat, mind that this extension only works when using the same database
$sakuraConf [ 'sock' ][ 'sqlpref' ] = 'sock_' ; // Sock Chat table prefixes