dever há 6 anos atrás
pai
commit
2eb3a5fb48

+ 94 - 0
config/global.config-original.php

@@ -0,0 +1,94 @@
+<?php
+
+/**
+ *
+ * GLOBAL CONFIG
+ * ===============
+ * global configuration file
+ *
+ * - initialize modules
+ * - initialize global resources (db, session, [cache] etc)
+ * - module settings will override global settings
+ *
+ */
+return array(
+    'modules'    => array(
+        'App',
+        'Admin',
+        'Members',
+        'Listings',
+        'Install',
+    ),
+    'locale'     => array(
+        'default' => 'en_US',
+    ),
+    'db'         => array(
+        'adapter'  => '\\Cube\\Db\\Adapter\\PDO\\Mysql',
+        'host'     => '%DB_HOST%',
+        'dbname'   => '%DB_NAME%',
+        'username' => '%DB_USERNAME%',
+        'password' => '%DB_PASSWORD%',
+        'prefix'   => '%TABLES_PREFIX%',
+        'charset'  => 'utf8'
+    ),
+    'cache'      => array(
+        'folder'   => __DIR__ . '/../cache',
+        'queries'  => false,
+        'metadata' => true,
+    ),
+    /* mail is global for all modules */
+    'mail'       => array(
+        'transport'    => 'mail',
+        'layouts_path' => __DIR__ . '/../themes/standard',
+        'views_path'   => __DIR__ . '/../module/App/view/emails',
+        'layout_file'  => 'email.phtml',
+    ),
+    /* navigation is global for all modules except Admin */
+    'navigation' => array(
+        'data_type'  => 'xml',
+        'data_file'  => __DIR__ . '/../module/App/config/data/navigation/navigation.xml',
+        'views_path' => __DIR__ . '/../module/App/view',
+    ),
+    /* session is global for all modules except Admin */
+    'session'    => array(
+        'namespace' => '%SESSION_NAMESPACE%',
+        'secret'    => '%SESSION_SECRET%',
+    ),
+    /* set folders used by the application (relative paths) */
+    'folders'    => array(
+        'themes'  => 'themes', // themes folder (relative path)
+        'img'     => 'img', // global images folder (relative path)
+        'uploads' => 'uploads', // media uploads folder
+        'cache'   => 'uploads/cache', // media uploads folder
+    ),
+    /* set paths used by the application (absolute) */
+    'paths'      => array(
+        'base'      => __DIR__ . '/..', // base path of the application
+        'languages' => __DIR__ . '/data/language', // languages folder
+        'themes'    => __DIR__ . '/../themes',
+        'img'       => __DIR__ . '/../img', // global images folder
+        'uploads'   => __DIR__ . '/../uploads', // media uploads folder
+        'cache'     => __DIR__ . '/../uploads/cache', // cached images folder
+    ),
+    'translate'  => array(
+        'adapter'      => '\\Ppb\\Translate\\Adapter\\Composite',
+        'translations' => array(
+            array(
+                'locale'  => 'en_US',
+                'path'    => __DIR__ . '/data/language/en_US',
+                'img'     => 'flags/en_US.png',
+                'desc'    => 'English',
+                'sources' => array(
+                    array(
+                        'adapter'   => '\\Cube\\Translate\\Adapter\\Gettext',
+                        'extension' => 'mo',
+                    ),
+                    array(
+                        'adapter'   => '\\Cube\\Translate\\Adapter\\ArrayAdapter',
+                        'extension' => 'php',
+                    ),
+                ),
+            ),
+        ),
+    ),
+);

+ 7 - 7
config/global.config.php

@@ -24,11 +24,11 @@ return array(
     ),
     'db'         => array(
         'adapter'  => '\\Cube\\Db\\Adapter\\PDO\\Mysql',
-        'host'     => 'web-mysql',
-        'dbname'   => 'bid',
-        'username' => 'root',
-        'password' => '123456',
-        'prefix'   => 'ppb_',
+        'host'     => '%DB_HOST%',
+        'dbname'   => '%DB_NAME%',
+        'username' => '%DB_USERNAME%',
+        'password' => '%DB_PASSWORD%',
+        'prefix'   => '%TABLES_PREFIX%',
         'charset'  => 'utf8'
     ),
     'cache'      => array(
@@ -51,8 +51,8 @@ return array(
     ),
     /* session is global for all modules except Admin */
     'session'    => array(
-        'namespace' => 'zFLNgArK',
-        'secret'    => 'yLyXBZZW',
+        'namespace' => '%SESSION_NAMESPACE%',
+        'secret'    => '%SESSION_SECRET%',
     ),
     /* set folders used by the application (relative paths) */
     'folders'    => array(

+ 2 - 2
module/Admin/config/module.config.php

@@ -125,7 +125,7 @@ return array(
         'views_path' => __DIR__ . '/../view',
     ),
     'session'    => array(
-        'namespace' => 'AdminWRlOuzmH',
-        'secret'    => 'HbvFDTQS',
+        'namespace' => '%ADMIN_SESSION_NAMESPACE%',
+        'secret'    => '%ADMIN_SESSION_SECRET%',
     ),
 );

+ 2 - 2
module/Install/config/module.config.php

@@ -26,7 +26,7 @@ return array(
         'layout_file'  => 'layout.phtml',
     ),
     'session'    => array(
-        'namespace' => 'InstallWRlOuzmH',
-        'secret'    => 'eIUJyCWG',
+        'namespace' => '%INSTALL_SESSION_NAMESPACE%',
+        'secret'    => '%INSTALL_SESSION_SECRET%',
     ),
 );