Skip to content

Commit

Permalink
v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Nov 10, 2016
1 parent a702e57 commit 34ff611
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
6 changes: 2 additions & 4 deletions Application/Common/Conf/config.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php
return array(
//'配置项'=>'配置值'
//使用sqlite数据库(ShowDoc默认)
//使用sqlite数据库
'DB_TYPE' => 'Sqlite',
'DB_NAME' => 'Sqlite/showdoc.db.php',
//使用mysql数据库
//'DB_TYPE' => 'mysql',
//'DB_NAME' => 'showdoc',
//showdoc不再支持mysql http://www.showdoc.cc/help?page_id=31990
'DB_HOST' => 'localhost',
'DB_USER' => 'showdoc',
'DB_PWD' => 'showdoc123456',
Expand Down
5 changes: 5 additions & 0 deletions Application/Home/Controller/BaseController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ public function message($msg , $redirect = ''){
}

public function checkLogin($redirect = true){
if (strtolower(C("DB_TYPE")) == 'mysql' ) {
echo 'ShowDoc does not support mysql any more . http://www.showdoc.cc/help?page_id=31990 ';
clear_runtime();
exit();
}
if ( ! session("login_user")) {
$cookie_token = cookie('cookie_token');
if ($cookie_token) {
Expand Down
2 changes: 1 addition & 1 deletion Application/Home/Controller/UpdateController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public function db(){
$this->_clear_runtime();
if (strtolower(C("DB_TYPE")) == 'mysql' ) {
//$this->mysql();
echo 'ShowDoc does not support mysql any more';
echo 'ShowDoc does not support mysql any more . http://www.showdoc.cc/help?page_id=31990 ';
}
elseif (strtolower(C("DB_TYPE")) == 'sqlite' ) {
$this->sqlite();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
"keywords": ["showdoc","documents","Api"],
"homepage": "https://github.com/star7th/showdoc",
"version":"v1.2.2",
"version":"v1.2.3",
"license": "Apache-2.0",
"authors": [
{
Expand Down
8 changes: 3 additions & 5 deletions install/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
user_sqlite();
}
elseif ($db_type == "mysql") {
//user_mysql();
//showdoc不再支持mysql http://www.showdoc.cc/help?page_id=31990
}
function user_sqlite(){
clear_runtime();//清除缓存
Expand All @@ -53,12 +53,10 @@ function user_sqlite(){
<?php
return array(
//'配置项'=>'配置值'
//使用sqlite数据库(ShowDoc默认)
//使用sqlite数据库
'DB_TYPE' => 'Sqlite',
'DB_NAME' => 'Sqlite/showdoc.db.php',
//使用mysql数据库
//'DB_TYPE' => 'mysql',
//'DB_NAME' => 'showdoc',
//showdoc不再支持mysql http://www.showdoc.cc/help?page_id=31990
'DB_HOST' => 'localhost',
'DB_USER' => 'showdoc',
'DB_PWD' => 'showdoc123456',
Expand Down
2 changes: 1 addition & 1 deletion install/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function(data){
install();
return false;
});

//showdoc不再支持mysql,所以不再让用户选择数据库,而是直接跳过去.
install();

});
Expand Down

0 comments on commit 34ff611

Please sign in to comment.