Browse Source

將連線資訊加入detail.php

steve07s 3 years ago
parent
commit
d8b68124b3
2 changed files with 7 additions and 4 deletions
  1. 1 4
      script/php/authenticate.php
  2. 6 0
      script/php/sql_detail.php

+ 1 - 4
script/php/authenticate.php

@@ -7,10 +7,7 @@ if ((empty($_SESSION['check_word'])) || (empty($_POST['captcha']))) {
         die("驗證碼錯誤,請重新輸入");
     }
 }
-$hostname = 'GMGIS\SQLEXPRESS';
-$username = 'BIMuser';
-$password = 'Component3444';
-$db_name = 'permissions';
+include("sql_detail.php");
 
 
 try {

+ 6 - 0
script/php/sql_detail.php

@@ -0,0 +1,6 @@
+<?php
+$hostname = 'GMGIS\SQLEXPRESS';
+$username = 'BIMuser';
+$password = 'Component3444';
+$db_name = 'permissions';
+//$hostname = 'DESKTOP-5JAT8FP\TEST';