|
@@ -1,31 +1,94 @@
|
|
|
<?php
|
|
|
return array
|
|
|
(
|
|
|
- 'token' => 'dever',
|
|
|
+
|
|
|
+ 'token' => DEVER_PROJECT,
|
|
|
+
|
|
|
'lang' => 'zh-cn',
|
|
|
'lang_pack' => array('zh-cn' => '简体中文', 'en' => '英文'),
|
|
|
+
|
|
|
+
|
|
|
'route' => false,
|
|
|
+
|
|
|
+ 'route' => array
|
|
|
+ (
|
|
|
+ 'test' => 'home',
|
|
|
+ 'v(.*?)_(.*?)' => 'src/home.test?type=$1&id=$2',
|
|
|
+ ),*/
|
|
|
+
|
|
|
+
|
|
|
'log' => array('type' => 'file', 'host' => 'host', 'port' => 'port'),
|
|
|
+
|
|
|
+
|
|
|
'shell' => 'debug',
|
|
|
+
|
|
|
+
|
|
|
|
|
|
+
|
|
|
+
|
|
|
'database' => array
|
|
|
(
|
|
|
+
|
|
|
'opt' => true,
|
|
|
-
|
|
|
+
|
|
|
'default' => $env['db'],
|
|
|
- 'db1' => $env['db1'],
|
|
|
+ 'db1' => $env['db'],
|
|
|
|
|
|
-
|
|
|
+
|
|
|
'partition' => array
|
|
|
(
|
|
|
-
|
|
|
+
|
|
|
+ 'create' => true,
|
|
|
+
|
|
|
'database' => 'date("Y")',
|
|
|
'table' => 'date("Ym")',
|
|
|
-
|
|
|
-
|
|
|
- 'field' => 'date("Y-m-d 23:60:60")',
|
|
|
+
|
|
|
+ 'field' => array
|
|
|
+ (
|
|
|
+ 'type' => 'range',
|
|
|
+ 'field' => 'cdate',
|
|
|
+ 'value' => 'date("Y-m-d 23:60:60")'
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'field' => array
|
|
|
+ (
|
|
|
+ 'type' => 'list',
|
|
|
+ 'field' => 'type',
|
|
|
+ 'value' => array('1', '2', '3'),
|
|
|
+ ),
|
|
|
+ 'field' => array
|
|
|
+ (
|
|
|
+ 'type' => 'hash',
|
|
|
+ 'field' => 'id',
|
|
|
+ 'value' => '5'
|
|
|
+ ),
|
|
|
+ 'field' => array
|
|
|
+ (
|
|
|
+ 'type' => 'key',
|
|
|
+ 'field' => 'id',
|
|
|
+ 'value' => '5'
|
|
|
+ ),*/
|
|
|
+
|
|
|
+
|
|
|
),
|
|
|
),
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+ 'template' => array
|
|
|
+ (
|
|
|
+ 'name' => 'pc',
|
|
|
+ 'replace' => array
|
|
|
+ (
|
|
|
+ '../' => '{$host}',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 'cache' => array
|
|
|
+ (
|
|
|
+ 'set/home.test' => 3000,
|
|
|
+ ),*/
|
|
|
);
|