浏览代码

將連線資訊加入detail.php

steve07s 3 年之前
父节点
当前提交
d8b68124b3
共有 2 个文件被更改,包括 7 次插入4 次删除
  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';