diff --git a/config.simple.php b/config.simple.php index 1f3b796..e72ee02 100644 --- a/config.simple.php +++ b/config.simple.php @@ -4,7 +4,7 @@ require 'class/Medoo.php'; use Medoo\Medoo; $db = new medoo([ 'database_type' => 'sqlite', - 'database_file' => 'db/onenav.db3' + 'database_file' => 'data/onenav.db3' ]); //用户名 diff --git a/controller/index.php b/controller/index.php index 00a78a2..cea2a62 100644 --- a/controller/index.php +++ b/controller/index.php @@ -109,8 +109,8 @@ function base64($url){ //获取版本号 $version = get_version(); //载入js扩展 -if( file_exists('templates/admin/static/extend.js') ) { - $onenav['extend'] = ''; +if( file_exists('data/extend.js') ) { + $onenav['extend'] = ''; } else{ $onenav['extend'] = ''; diff --git a/data/index.html b/data/index.html new file mode 100644 index 0000000..0519ecb --- /dev/null +++ b/data/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.php b/index.php index c5cc33b..8cac64f 100644 --- a/index.php +++ b/index.php @@ -11,16 +11,17 @@ $c = strip_tags($c); //读取版本号 //$version = @file_get_contents("./functions/version.txt"); //载入配置文件 -if( !file_exists('./config.php') ) { +if( !file_exists('./data/config.php') ) { exit('