예제 #1
0
<?php

/**
 * Database configuration
 *
 * @author David Carr - dave@daveismyname.com
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Config\Config;
/**
 * Setup the Database configuration.
 */
Config::set('database', array('fetch' => PDO::FETCH_CLASS, 'default' => 'mysql', 'connections' => array('sqlite' => array('driver' => 'sqlite', 'database' => APPDIR . 'Storage' . DS . 'database.sqlite', 'prefix' => ''), 'mysql' => array('driver' => 'mysql', 'hostname' => 'localhost', 'database' => 'nova', 'username' => 'nova', 'password' => 'password', 'prefix' => PREFIX, 'charset' => 'utf8', 'collation' => 'utf8_general_ci'), 'pgsql' => array('driver' => 'pgsql', 'host' => 'localhost', 'database' => 'nova', 'username' => 'nova', 'password' => 'password', 'charset' => 'utf8', 'prefix' => PREFIX, 'schema' => 'public'))));
예제 #2
0
<?php

/**
 * Active Modules
 *
 * @author David Carr - dave@daveismyname.com
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Config\Config;
Config::set('modules', array('path' => APPDIR . 'Modules', 'namespace' => 'App\\Modules\\', 'modules' => array('demos' => array('namespace' => 'Demos', 'enabled' => true, 'order' => 10001), 'files' => array('namespace' => 'Files', 'enabled' => true, 'order' => 9001), 'system' => array('namespace' => 'System', 'enabled' => true, 'order' => 8001), 'users' => array('namespace' => 'Users', 'enabled' => true, 'order' => 9001))));
<?php

/**
 * All known Languages
 *
 * @author David Carr - dave@daveismyname.com
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Config\Config;
Config::set('languages', array('cs' => array('info' => 'Czech', 'name' => 'čeština', 'locale' => 'cs_CZ', 'dir' => 'ltr'), 'da' => array('info' => 'Danish', 'name' => 'Dansk', 'locale' => 'da_DK', 'dir' => 'ltr'), 'de' => array('info' => 'German', 'name' => 'Deutsch', 'locale' => 'de_DE', 'dir' => 'ltr'), 'en' => array('info' => 'English', 'name' => 'English', 'locale' => 'en_US', 'dir' => 'ltr'), 'es' => array('info' => 'Spanish', 'name' => 'Español', 'locale' => 'es_ES', 'dir' => 'ltr'), 'fa' => array('info' => 'Persian', 'name' => 'پارسی', 'locale' => 'fa_IR', 'dir' => 'rtl'), 'fr' => array('info' => 'French', 'name' => 'Français', 'locale' => 'fr_FR', 'dir' => 'ltr'), 'it' => array('info' => 'Italian', 'name' => 'italiano', 'locale' => 'it_IT', 'dir' => 'ltr'), 'ja' => array('info' => 'Japanesse', 'name' => '日本語', 'locale' => 'ja_JA', 'dir' => 'ltr'), 'nl' => array('info' => 'Dutch', 'name' => 'Nederlands', 'locale' => 'nl_NL', 'dir' => 'ltr'), 'pl' => array('info' => 'Polish', 'name' => 'polski', 'locale' => 'pl_PL', 'dir' => 'ltr'), 'ro' => array('info' => 'Romanian', 'name' => 'Română', 'locale' => 'ro_RO', 'dir' => 'ltr'), 'ru' => array('info' => 'Russian', 'name' => 'ру́сский', 'locale' => 'ru_RU', 'dir' => 'ltr')));
<?php

/**
 * ReCaptcha
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Config\Config;
/**
 * Setup the Google reCAPTCHA configuration
 */
Config::set('recaptcha', array('active' => false, 'siteKey' => '', 'secret' => ''));
예제 #5
0
<?php

/**
 * Config - the Global Configuration loaded BEFORE the Nova Application starts.
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Config\Config;
/**
 * PREFER to be used in Database calls or storing Session data, default is 'nova_'
 */
define('PREFIX', 'nova_');
/**
 * Setup the Config API Mode.
 * For using the 'database' mode, you need to have a database, with a table generated by 'scripts/nova_options'
 */
define('CONFIG_STORE', 'files');
// Supported: "files", "database"
/**
 * Routing configuration
 */
Config::set('routing', array('assets' => array('driver' => 'default', 'dispatcher' => 'Shared\\Routing\\Assets\\CustomDispatcher', 'cacheTime' => 10800, 'paths' => array('almasaeed2010/adminlte' => array('bootstrap', 'dist', 'plugins'), 'twbs/bootstrap' => 'dist'))));
예제 #6
0
<?php

use Config\Config;
/**
 * Setup the Profiler configuration
 */
Config::set('profiler', array('useForensics' => false, 'withDatabase' => true));
예제 #7
0
<?php

/**
 * Config - the Module's specific Configuration.
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Config\Config;
/**
 * Configuration constants and options.
 */
Config::set('elFinder', array('locale' => 'en_US.UTF-8', 'debug' => false, 'roots' => array(array('alias' => 'Site Assets', 'driver' => 'LocalFileSystem', 'path' => ROOTDIR . 'assets/', 'URL' => site_url('assets/'), 'mimeDetect' => 'internal', 'tmbPath' => APPDIR . 'Storage/Files/thumbnails', 'quarantine' => APPDIR . 'Storage/Files/quarantine', 'tmbURL' => site_url('admin/files/thumbnails/'), 'utf8fix' => true, 'tmbCrop' => false, 'tmbSize' => 48, 'acceptedName' => '/^[^\\.].*$/', 'accessControl' => 'access', 'dateFormat' => 'j M Y H:i', 'defaults' => array('read' => true, 'write' => true), 'icon' => site_url('modules/files/assets/img/volume_icon_local.png')), array('alias' => 'Site Root', 'driver' => 'LocalFileSystem', 'path' => ROOTDIR, 'URL' => site_url('admin/files/preview/'), 'mimeDetect' => 'internal', 'tmbPath' => APPDIR . 'Storage/Files/thumbnails', 'quarantine' => APPDIR . 'Storage/Files/quarantine', 'tmbURL' => site_url('admin/files/thumbnails/'), 'utf8fix' => true, 'tmbCrop' => false, 'tmbSize' => 48, 'acceptedName' => '/^[^\\.].*$/', 'accessControl' => 'access', 'dateFormat' => 'j M Y H:i', 'defaults' => array('read' => true, 'write' => false), 'icon' => site_url('modules/files/assets/img/volume_icon_local.png')))));
예제 #8
0
<?php

/**
 * Session Configuration.
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Config\Config;
Config::set('session', array('driver' => 'file', 'table' => 'sessions', 'connection' => null, 'lifetime' => 180, 'expireOnClose' => false, 'files' => STORAGE_PATH . 'Sessions', 'lottery' => array(2, 100), 'cookie' => PREFIX . 'session', 'path' => '/', 'domain' => null, 'secure' => false));
예제 #9
0
<?php

/**
 * Config - the Module's specific Configuration.
 *
 * @author David Carr - dave@daveismyname.com
 * @author Edwin Hoksberg - info@edwinhoksberg.nl
 * @version 3.0
 */
use Config\Config;
/**
 * Configuration constants and options.
 */
Config::set('cron', array('token' => 'SomeRandomStringThere_1234567890'));
예제 #10
0
<?php

/**
 * Auth configuration
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Config\Config;
Config::set('auth', array('driver' => 'extended', 'model' => 'App\\Models\\User', 'table' => 'users', 'reminder' => array('email' => 'Emails/Auth/Reminder', 'table' => 'password_reminders', 'expire' => 60)));
 /**
  * Set a given configuration value.
  *
  * @param  string  $key
  * @param  mixed   $value
  * @return void
  */
 public function set($key, $value)
 {
     Config::set($key, $value);
 }
예제 #12
0
<?php

/**
 * Cache configuration
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Config\Config;
Config::set('cache', array('driver' => 'file', 'path' => storage_path() . DS . 'Cache', 'connection' => null, 'table' => 'cache', 'memcached' => array(array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100)), 'prefix' => 'nova'));
예제 #13
0
<?php

/**
 * Application Configuration
 *
 * @author David Carr - dave@daveismyname.com
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Config\Config;
/**
 * The Application configuration.
 */
Config::set('app', array('debug' => ENVIRONMENT == 'development', 'url' => 'http://www.novaframework.dev/', 'email' => '*****@*****.**', 'path' => '/', 'name' => 'Nova 3.0', 'template' => 'Default', 'color_scheme' => 'blue', 'locale' => 'en', 'timezone' => 'Europe/London', 'key' => 'SomeRandomStringThere_1234567890', 'csrf' => true, 'providers' => array('Auth\\AuthServiceProvider', 'Cache\\CacheServiceProvider', 'Routing\\RoutingServiceProvider', 'Cookie\\CookieServiceProvider', 'Language\\LanguageServiceProvider', 'Module\\ModuleServiceProvider', 'Database\\DatabaseServiceProvider', 'Encryption\\EncryptionServiceProvider', 'Filesystem\\FilesystemServiceProvider', 'Hashing\\HashServiceProvider', 'Log\\LogServiceProvider', 'Mail\\MailServiceProvider', 'Pagination\\PaginationServiceProvider', 'Redis\\RedisServiceProvider', 'Auth\\Reminders\\ReminderServiceProvider', 'Session\\SessionServiceProvider', 'Validation\\ValidationServiceProvider', 'Html\\HtmlServiceProvider', 'View\\ViewServiceProvider', 'Template\\TemplateServiceProvider', 'Cron\\CronServiceProvider'), 'manifest' => STORAGE_PATH, 'aliases' => array('Mail' => 'Helpers\\Mailer', 'Assets' => 'Helpers\\Assets', 'Csrf' => 'Helpers\\Csrf', 'Date' => 'Helpers\\Date', 'Document' => 'Helpers\\Document', 'Encrypter' => 'Helpers\\Encrypter', 'FastCache' => 'Helpers\\FastCache', 'Form' => 'Helpers\\Form', 'Ftp' => 'Helpers\\Ftp', 'GeoCode' => 'Helpers\\GeoCode', 'Hooks' => 'Helpers\\Hooks', 'Inflector' => 'Helpers\\Inflector', 'Number' => 'Helpers\\Number', 'RainCaptcha' => 'Helpers\\RainCaptcha', 'ReservedWords' => 'Helpers\\ReservedWords', 'SimpleCurl' => 'Helpers\\SimpleCurl', 'TableBuilder' => 'Helpers\\TableBuilder', 'Tags' => 'Helpers\\Tags', 'Console' => 'Forensics\\Console', 'Arr' => 'Support\\Arr', 'Str' => 'Support\\Str', 'App' => 'Support\\Facades\\App', 'Auth' => 'Support\\Facades\\Auth', 'Cache' => 'Support\\Facades\\Cache', 'Config' => 'Support\\Facades\\Config', 'Cookie' => 'Support\\Facades\\Cookie', 'Crypt' => 'Support\\Facades\\Crypt', 'DB' => 'Support\\Facades\\DB', 'Event' => 'Support\\Facades\\Event', 'File' => 'Support\\Facades\\File', 'Hash' => 'Support\\Facades\\Hash', 'Input' => 'Support\\Facades\\Input', 'Language' => 'Support\\Facades\\Language', 'Mailer' => 'Support\\Facades\\Mailer', 'Paginator' => 'Support\\Facades\\Paginator', 'Password' => 'Support\\Facades\\Password', 'Redirect' => 'Support\\Facades\\Redirect', 'Redis' => 'Support\\Facades\\Redis', 'Request' => 'Support\\Facades\\Request', 'Response' => 'Support\\Facades\\Response', 'Route' => 'Support\\Facades\\Route', 'Router' => 'Support\\Facades\\Router', 'Session' => 'Support\\Facades\\Session', 'Validator' => 'Support\\Facades\\Validator', 'Log' => 'Support\\Facades\\Log', 'URL' => 'Support\\Facades\\URL', 'Form' => 'Support\\Facades\\Form', 'HTML' => 'Support\\Facades\\HTML', 'Template' => 'Support\\Facades\\Template', 'View' => 'Support\\Facades\\View', 'Cron' => 'Support\\Facades\\Cron', 'Module' => 'Support\\Facades\\Module', 'Errors' => 'Shared\\Legacy\\Error', 'Core\\Controller' => 'Shared\\Legacy\\Controller', 'Core\\Model' => 'Shared\\Legacy\\Model', 'Core\\Template' => 'Support\\Facades\\Template', 'Core\\View' => 'Support\\Facades\\View')));
예제 #14
0
<?php

/**
 * Mailer Configuration
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Config\Config;
Config::set('mail', array('driver' => 'smtp', 'host' => '', 'port' => 587, 'from' => array('address' => '*****@*****.**', 'name' => 'The Nova Staff'), 'encryption' => 'tls', 'username' => '', 'password' => '', 'sendmail' => '/usr/sbin/sendmail -bs', 'pretend' => true));