diff --git a/twe/install_db.php b/twe/install_db.php index 3ed2c813..5fab35f3 100644 --- a/twe/install_db.php +++ b/twe/install_db.php @@ -43,7 +43,7 @@ if(Session::getUserGrade(true) == 5){
-
+
diff --git a/twe/j_install_db.php b/twe/j_install_db.php index 69256a6f..087436c0 100644 --- a/twe/j_install_db.php +++ b/twe/j_install_db.php @@ -31,7 +31,9 @@ if($fullReset && class_exists('\\sammo\\DB')){ if($mysqli_obj->multi_query(file_get_contents(__dir__.'/sql/reset.sql'))){ do{ - $mysqli_obj->store_result(); + if(!$mysqli_obj->store_result()){ + break; + } } while($mysqli_obj->next_result()); } } diff --git a/twe/js/install_db.js b/twe/js/install_db.js index bd62e222..638d3881 100644 --- a/twe/js/install_db.js +++ b/twe/js/install_db.js @@ -37,7 +37,7 @@ $(document).ready( function () { url:'j_install_db.php', dataType:'json', data:{ - full_reset:$('#full_reset').val(), + full_reset:$('#full_reset input:radio:checked').val(), db_host:$('#db_host').val(), db_port:$('#db_port').val(), db_id:$('#db_id').val(), diff --git a/twe/sql/reset.sql b/twe/sql/reset.sql index a9691592..2fe1499c 100644 --- a/twe/sql/reset.sql +++ b/twe/sql/reset.sql @@ -16,7 +16,7 @@ DROP TABLE IF EXISTS plock; # 게임 테이블 삭제 DROP TABLE IF EXISTS game; -# 외교 테이블 삭제 +# 메시지 테이블 삭제 DROP TABLE IF EXISTS message; # 명전 테이블은 삭제하지 않음