Exemplo n.º 1
0
<?php

/**
 * Application Configuration
 *
 * @author David Carr - dave@daveismyname.com
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\Config\Config;
/**
 * The Application configuration.
 */
Config::set('app', array('debug' => ENVIRONMENT == 'development', 'url' => 'http://www.novabasic.dev/', 'email' => '*****@*****.**', 'path' => '/', 'name' => 'Nova 4.0-dev', 'template' => 'Default', 'locale' => 'en', 'timezone' => 'Europe/London', 'key' => 'SomeRandomStringThere_1234567890', 'csrf' => true, 'providers' => array('Nova\\Foundation\\Providers\\ForgeServiceProvider', 'Nova\\Session\\CommandsServiceProvider', 'Nova\\Foundation\\Providers\\ConsoleSupportServiceProvider', 'Nova\\Routing\\ControllerServiceProvider', 'Nova\\Module\\ModuleServiceProvider', 'Nova\\Auth\\AuthServiceProvider', 'Nova\\Cache\\CacheServiceProvider', 'Nova\\Routing\\RoutingServiceProvider', 'Nova\\Cookie\\CookieServiceProvider', 'Nova\\Database\\DatabaseServiceProvider', 'Nova\\Encryption\\EncryptionServiceProvider', 'Nova\\Filesystem\\FilesystemServiceProvider', 'Nova\\Hashing\\HashServiceProvider', 'Nova\\Language\\LanguageServiceProvider', 'Nova\\Log\\LogServiceProvider', 'Nova\\Mail\\MailServiceProvider', 'Nova\\Database\\MigrationServiceProvider', 'Nova\\Pagination\\PaginationServiceProvider', 'Nova\\Redis\\RedisServiceProvider', 'Nova\\Auth\\Reminders\\ReminderServiceProvider', 'Nova\\Database\\SeedServiceProvider', 'Nova\\Session\\SessionServiceProvider', 'Nova\\Validation\\ValidationServiceProvider', 'Nova\\Html\\HtmlServiceProvider', 'Nova\\View\\ViewServiceProvider', 'Nova\\Template\\TemplateServiceProvider', 'Nova\\Cron\\CronServiceProvider'), 'manifest' => storage_path(), 'aliases' => array('Assets' => 'Nova\\Helpers\\Assets', 'Date' => 'Nova\\Helpers\\Date', 'Document' => 'Nova\\Helpers\\Document', 'Ftp' => 'Nova\\Helpers\\Ftp', 'GeoCode' => 'Nova\\Helpers\\GeoCode', 'Inflector' => 'Nova\\Helpers\\Inflector', 'Number' => 'Nova\\Helpers\\Number', 'RainCaptcha' => 'Nova\\Helpers\\RainCaptcha', 'ReservedWords' => 'Nova\\Helpers\\ReservedWords', 'SimpleCurl' => 'Nova\\Helpers\\SimpleCurl', 'TableBuilder' => 'Nova\\Helpers\\TableBuilder', 'Tags' => 'Nova\\Helpers\\Tags', 'Console' => 'Nova\\Forensics\\Console', 'Arr' => 'Nova\\Support\\Arr', 'Str' => 'Nova\\Support\\Str', 'Seeder' => 'Nova\\Database\\Seeder', 'App' => 'Nova\\Support\\Facades\\App', 'Forge' => 'Nova\\Support\\Facades\\Forge', 'Auth' => 'Nova\\Support\\Facades\\Auth', 'Cache' => 'Nova\\Support\\Facades\\Cache', 'Config' => 'Nova\\Support\\Facades\\Config', 'Cookie' => 'Nova\\Support\\Facades\\Cookie', 'Crypt' => 'Nova\\Support\\Facades\\Crypt', 'DB' => 'Nova\\Support\\Facades\\DB', 'Event' => 'Nova\\Support\\Facades\\Event', 'File' => 'Nova\\Support\\Facades\\File', 'Hash' => 'Nova\\Support\\Facades\\Hash', 'Input' => 'Nova\\Support\\Facades\\Input', 'Language' => 'Nova\\Support\\Facades\\Language', 'Mail' => 'Nova\\Support\\Facades\\Mail', 'Paginator' => 'Nova\\Support\\Facades\\Paginator', 'Password' => 'Nova\\Support\\Facades\\Password', 'Redirect' => 'Nova\\Support\\Facades\\Redirect', 'Redis' => 'Nova\\Support\\Facades\\Redis', 'Request' => 'Nova\\Support\\Facades\\Request', 'Response' => 'Nova\\Support\\Facades\\Response', 'Route' => 'Nova\\Support\\Facades\\Route', 'Schema' => 'Nova\\Support\\Facades\\Schema', 'Session' => 'Nova\\Support\\Facades\\Session', 'Validator' => 'Nova\\Support\\Facades\\Validator', 'Log' => 'Nova\\Support\\Facades\\Log', 'URL' => 'Nova\\Support\\Facades\\URL', 'Form' => 'Nova\\Support\\Facades\\Form', 'HTML' => 'Nova\\Support\\Facades\\HTML', 'Template' => 'Nova\\Support\\Facades\\Template', 'View' => 'Nova\\Support\\Facades\\View', 'Module' => 'Nova\\Support\\Facades\\Module', 'Cron' => 'Nova\\Support\\Facades\\Cron')));
Exemplo n.º 2
0
<?php

/**
 * Database configuration
 *
 * @author David Carr - dave@daveismyname.com
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\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', 'host' => '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')), 'migrations' => 'migrations', 'redis' => array('cluster' => false, 'default' => array('host' => '127.0.0.1', 'port' => 6379, 'database' => 0))));
Exemplo n.º 3
0
<?php

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

/**
 * Config - the Module's specific Configuration.
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\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')))));
Exemplo n.º 5
0
<?php

/**
 * Additional Compiled Classes
 *
 * @author David Carr - dave@daveismyname.com
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\Config\Config;
Config::set('compile', array());
Exemplo n.º 6
0
<?php

/**
 * Cache configuration
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\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'));
Exemplo n.º 7
0
<?php

use Nova\Config\Config;
/**
 * Setup the Profiler configuration
 */
Config::set('profiler', array('useForensics' => false, 'withDatabase' => true));
Exemplo n.º 8
0
<?php

/**
 * Config - the Global Configuration loaded BEFORE the Nova Application starts.
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\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'))));
Exemplo n.º 9
0
<?php

/**
 * Database configuration
 *
 * @author David Carr - dave@daveismyname.com
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\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' => 'novacms', 'username' => 'root', 'password' => 'root', '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'))));
Exemplo n.º 10
0
<?php

/**
 * All known Languages
 *
 * @author David Carr - dave@daveismyname.com
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\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')));
Exemplo n.º 11
0
<?php

/**
 * Active Modules
 *
 * @author David Carr - dave@daveismyname.com
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\Config\Config;
Config::set('modules', array('path' => APPDIR . 'Modules', 'namespace' => 'App\\Modules\\', 'modules' => array('files' => array('namespace' => 'Files', 'enabled' => true, 'order' => 1))));
Exemplo n.º 12
0
<?php

/**
 * Session Configuration.
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\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));
Exemplo n.º 13
0
<?php

/**
 * Auth configuration
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\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)));
Exemplo n.º 14
0
 /**
  * Set a given configuration value.
  *
  * @param  string  $key
  * @param  mixed   $value
  * @return void
  */
 public function set($key, $value)
 {
     Config::set($key, $value);
 }
Exemplo n.º 15
0
<?php

/**
 * Mailer Configuration
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\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));
Exemplo n.º 16
0
<?php

/**
 * Modules Configuration
 *
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\Config\Config;
Config::set('modules', array('path' => app_path('Modules'), 'enabled' => true, 'namespace' => 'App\\Modules\\', 'driver' => 'local', 'custom_driver' => 'App\\Repositories\\Modules\\CustomRepository'));
Exemplo n.º 17
0
<?php

/**
 * Active Modules
 *
 * @author David Carr - dave@daveismyname.com
 * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com
 * @version 3.0
 */
use Nova\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))));
Exemplo n.º 18
0
<?php

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

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