Browse Source

更改初始化数据库位置

pull/14/head
xiaoz 4 years ago
parent
commit
db22d97b1e
  1. 0
      data/onenav.simple.db3
  2. 2
      db/.htaccess
  3. 1
      db/index.html
  4. 2
      index.php

0
db/onenav.simple.db3 → data/onenav.simple.db3

2
db/.htaccess

@ -1,2 +0,0 @@
order allow,deny
deny from all

1
db/index.html

@ -1 +0,0 @@

2
index.php

@ -16,7 +16,7 @@ if( !file_exists('./data/config.php') ) {
} }
//检查数据库是否存在,不存在则复制数据库 //检查数据库是否存在,不存在则复制数据库
if( !file_exists('./data/onenav.db3') ) { if( !file_exists('./data/onenav.db3') ) {
copy('db/onenav.simple.db3','data/onenav.db3'); copy('data/onenav.simple.db3','data/onenav.db3');
// copy('db/.htaccess','data/.htaccess'); // copy('db/.htaccess','data/.htaccess');
} }

Loading…
Cancel
Save