<?php require_once __DIR__ . '/config/config.inc.php'; /** * Site's configuration instance. */ $config = new Config(); /** * Add databases here. */ $config->addDatabase('<database alias>', new MySQLDatabase(new DatabaseConfig('<host address>', MySQLDatabase::DEFAULT_PORT, '<database name>', '<database user>', '<database password>'))); /** * Add email servers here. */ $config->addEmailServer('<email server alias>', new SMTPEmailServer(new EmailServerConfig(array('<email server addresses>'), SMTPEmailServer::DEFAULT_PORT, '<email server user>', '<email server password>'))); /*$config->addOAuthClient( '<oauth client alias>', //OAuth client alias. new OAuthClient( //Custom OAuthClient implementation new OAuthClientConfig( new OAuthClientKeys( '<consumer key>', //OAuth client consumer key. '<consumer secret>' //OAuth client consumer secret. ), new OAuthClientUrls( '<request token url>', //Request token URL. '<authorisation url>', //Authorisation URL. '<access token url>', //Access token URL. '<access token refresh url>', //Access token refresh URL. '<authentication url>', //Authentication URL. '<callback url>' //Callback URL. )
<?php require_once __DIR__ . '/config/config.inc.php'; $config = new Config(); $config->addDatabase('restaurant_buddy', new MySQLDatabase(new DatabaseConfig('127.0.0.1', MySQLDatabase::DEFAULT_PORT, 'restaurant_buddy', 'root', ''))); $config->addTheme('restaurantbuddy', new Theme(new ThemeConfig(__DIR__ . '/../themes/restaurantbuddy'))); /** * Set defaults here. */ $config->setDefaultDatabase('restaurant_buddy'); $config->setDefaultTheme('restaurantbuddy');